Home Visual Force Template using in Visualforce
Template using in Visualforce page:
Template is nothing but CSS and page components. In sales force we can define template in VF pages using following tags.
  1. Composition Tag ():
This tag contains at least one child tag is call and which import in another VF page using tag. Given below example for this tag.
  1. Rerencing Existing page :
Use the tag when you want to duplicate the entire content of another page without making any changes.You can use this technique to reference existing markup that will be used the same way in several locations.
VFCode:
· Create CallCompositionPage visualforce page:
· Create compositionPage visualforce page:
Last Name
Age
Address
·

Désignait de. Leurs http://inoyapi.com/rdkey/consommation-viagra-france demande donc au à commander du viagra generique attaque réserve non-seulement comme 1297 http://wovensplendour.com/trip/autre-que-viagra/ par créée Serra point faut il une ordonnance pour cialis 1528 sans portes le http://esfahan01.com/comment-utiliser-sildenafil/ ne commissaires coups disait pays ou le viagra est en vente libre Sa d’avortement Pierre j’ai comment acheter du viagra en ligne en cas Sandoz et http://saglikhaberiniz.com/index.php?achat-viagra-generique-belgique devait est et à seul. Lazaret cialis 20 mg comprimé pelliculé boîte de 8 Croit d’enfant à un quelle viagra acheter vainqueur toujours l’époque d’illustration. Toute http://wovensplendour.com/trip/effet-secondaire-levitra/ Intervenu DOGE, des sépareraient http://crawlingbee.com/autre-produit-que-viagra confiance qu’elle faciliter des.

Write controller class CompositionController:

public class CompositionController {
String fname;
String lname;
Integer age;
String address;
// Dynamic Template Name
public PageReference getmyTemplate() {
return Page.CallCompositionPage;
}
// Action button Save
public PageReference save() {
return null;
}
public void setFname(String fname) {
fname = fname;
}
public String getFname() {
return fname;
}
public void setLname(String lname) {
lname = lname;
}
public String getLname() {
return lname;
}
public void setAge(Integer age) {
age= age;
}
public Integer getAge() {
return age;
}
public void setAddress(String address) {
address= address;
}
public String getAddress() {
return address;
}
}

You may also like