it was present in Seam2
s:fragment --> ui:fragment (from facelets)
s:span you can create a composite component yourself.
But this does not have rendered option
You can use rendered on ui:fragment, I've done it a lot.
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.
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 Independentproperty, 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.
<s:span> -> <h:panelGroup>
<s:div> -> <h:panelGroup layout="block">
You can easily create a JSF composite if you want to have your own