Hi,
i did not see any jumping in your simple example, but if i add a gridLayout like
<tc:cell>
<f:facet name="layout">
<tc:gridLayout rows="1*;1*" />
</f:facet>
<tc:panel rendered="#{myController.show == false}"/>
<tc:panel rendered="#{myController.show == true}" />
</tc:cell>
than there is a jumping, the second component starts 5px lower than the first.
This is a bug in the layout renderer. Please file a jira entry.
You can stop the jumping by adding a 0px size empty panel on top. This
will consume 5px padding, but the jumping stops:
<tc:cell>
<f:facet name="layout">
<tc:gridLayout rows="0px;1*;1*" />
</f:facet>
<tc:panel/>
<tc:panel rendered="#{myController.show == false}"/>
<tc:panel rendered="#{myController.show == true}" />
</tc:cell>
Regards,
Volker
2007/1/26, sieppl <[EMAIL PROTECTED]>:
Hi!
<tc:cell>
<tc:panel rendered="#{myController.show == false}"/>
<tc:panel rendered="#{myController.show == true}" />
</tc:cell>
Basically that works fine, but the hidden panel is taken into alignment
calculation.
Thus the at a time visible panel is jumping. JSTL cannot work here because
it does
not evaluate JSF's backing beans. Any ideas for a clean component switching
inside
a tobago layout? I don't want to set up a whole new JSP page because a few
buttons
have to change..
Regards
Sebastian
--
View this message in context:
http://www.nabble.com/-Tobago--replace-components-via-rendered-tf3125327.html#a8659209
Sent from the MyFaces - Users mailing list archive at Nabble.com.