You need to sign in to do that
Don't have an account?
Numaan A.M
HTML tags or Apex tags
Hello All,
I want to know what is the difference between using html tags and apex tags. I am good at html tags so if i use it is there would be any problem. Thanks.
I want to know what is the difference between using html tags and apex tags. I am good at html tags so if i use it is there would be any problem. Thanks.
You can use both apex/vf tags and HTML tags. It depends on the scenarios. I have written one small example to explain both scenarios.
If you use the HTML tags then you have to write Javascript functions to call apex methods like in below example ( Scenario 1 ).
Scenario 1. Using HTML tags:
If you use VF tags then you can directly call apex methods through action attribute ( scenario 2 ).
Scenario 2: Using Apex/VF tags:
Apex Class:
For the VF performance and best practices please refer to the following links:
http://www.salesforce.com/docs/en/cce/salesforce_visualforce_best_practices/salesforce_visualforce_best_practices.pdf (http://www.salesforce.com/docs/en/cce/salesforce_visualforce_best_practices/salesforce_visualforce_best_practices.pdf)
http://www.salesforce.com/us/developer/docs/pages/Content/pages_best_practices_performance.htm
Please mark as best answer if it solves your problem.
Regards,
Grazitti Team
www.grazitti.com
All Answers
You can use both apex/vf tags and HTML tags. It depends on the scenarios. I have written one small example to explain both scenarios.
If you use the HTML tags then you have to write Javascript functions to call apex methods like in below example ( Scenario 1 ).
Scenario 1. Using HTML tags:
If you use VF tags then you can directly call apex methods through action attribute ( scenario 2 ).
Scenario 2: Using Apex/VF tags:
Apex Class:
For the VF performance and best practices please refer to the following links:
http://www.salesforce.com/docs/en/cce/salesforce_visualforce_best_practices/salesforce_visualforce_best_practices.pdf (http://www.salesforce.com/docs/en/cce/salesforce_visualforce_best_practices/salesforce_visualforce_best_practices.pdf)
http://www.salesforce.com/us/developer/docs/pages/Content/pages_best_practices_performance.htm
Please mark as best answer if it solves your problem.
Regards,
Grazitti Team
www.grazitti.com