-
1. Re: equivalent for seam2 fragment
bjoice Nov 4, 2011 4:25 AM (in response to bjoice)it was present in Seam2
-
2. Re: equivalent for seam2 fragment
hantsy Nov 4, 2011 4:28 AM (in response to bjoice)s:fragment --> ui:fragment (from facelets)
s:span you can create a composite component yourself. -
3. Re: equivalent for seam2 fragment
bjoice Nov 7, 2011 12:23 AM (in response to bjoice)But this does not have rendered option
-
4. Re: equivalent for seam2 fragment
lightguard Nov 7, 2011 1:12 PM (in response to bjoice)You can use rendered on ui:fragment, I've done it a lot.
-
5. Re: equivalent for seam2 fragment
bjoice Nov 8, 2011 3:54 AM (in response to bjoice)With jsf2.0, the ui:fragment does not have rendered attribute. It has only id and binding. Tried with jsf2.1 also but it did not work for me. Please suggest the required changes for ui:fragment to have rendered attribute also.
-
6. Re: equivalent for seam2 fragment
lightguard Nov 8, 2011 11:57 AM (in response to bjoice)It works. I just spent the last 20 minutes digging through the source code of Mojarra. It also says in the docs (you have to follow it around) that it creates a component and adds it to the tree. Every single component in Mojarra is a subclass (eventually) of UIComponentBase. It also shows in the Spec in section 3.1.12 that rendered is a
Rendered Independent
property, meaning it's on every UIComponent (which is part of the API, so it should also behave that way in MyFaces).Try it, if it doesn't work, it's a bug. Your IDE may not say it's a valid attribute, but I'd blame the docs and xsd generation for not having it there.
-
7. Re: equivalent for seam2 fragment
clerum Nov 11, 2011 2:34 PM (in response to bjoice)<s:span> -> <h:panelGroup>
<s:div> -> <h:panelGroup layout="block">
You can easily create a JSF composite if you want to have your own
s:div
ors:span