Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability for define tag to append to an existing definition #1008

Open
eclipse-faces-bot opened this issue May 22, 2011 · 4 comments
Open

Comments

@eclipse-faces-bot
Copy link

In Facelets one can use a ui:define tag to define content in a template client. This named content can be inserted into a template by using ui:insert.

When the template client that defines the content is itself a template, its template client may also want to contribute to this content, typically by appending to it. This is currently not possible. The template needs to use a new ui:insert tag with a new name.

E.g.

template.xml

<f:view>            
    <ui:insert name="links"/>        
</f:view>

general.xml

<ui:composition template="template.xhtml">     
   <ui:define name="links">
         <h:link ... />
         <ui:insert name="links1"/>    
   </ui:define>        
 </ui:composition>

orders.xml

<ui:composition template="general.xhtml">     
   <ui:define name="links1">
      <h:link ... />
      <ui:insert name="links2"/>     
   </ui:define>        
 </ui:composition>

etc

Instead of manually 'chaining' defines and inserts in this way, Facelets could define tags or attributes for contributing to existing definitions. E.g.:

general.xml

<ui:composition template="template.xhtml">     
   <ui:append name="links">
      <h:link ... />    
   </ui:append>        
 </ui:composition>

orders.xml

<ui:composition template="general.xhtml">     
   <ui:append name="links">
      <h:link ... />    
   </ui:append>        
 </ui:composition>

Instead of introducing a new ui:append tag, a contribute="append" on ui:define could be used instead. Next to appending, prepending could be considered via a ui:contribute tag or contribute="prepend" attribute.

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
Reported by @arjantijms

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-1008

@eclipse-faces-bot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant