1 Reply Latest reply on Feb 10, 2009 11:01 AM by Nick Belaevski

    Component inside other components template file

    Chris Prins Newbie

      I created 2 components a custom richfaces button and a custom richfaces dialog component. The dialog component needs to have 2 buttons (1 "cancel" and 1 "ok" button). Now I can easily add the buttons like:

       <customRich:button text="cancel"/>
       <customRich:button text="ok"/>

      but then every time I needed the customRich:dialog component I need to add the 2 buttons. I can't add the <customRich:button text="cancel"/> to the template file of the customRich:dialog component as then I just see the tag in the source html file....is there a way to add the component to the template file without using java statements inside the template file?