Hi Volker!

You are right. My comment was not exact enough. With that gridLayout jumping
occurs.
Without a gridlayout the visible panel consumes exactly the place that would
be consumed
when both are visible (in my complex grid). Finally I decided to implement a
solution without changing components, not only due to the bug, the workflow
is better now as well. We are collecting all render bugs
and post them at JIRA these days.

Regards

Sebastian



Volker Weber-5 wrote:
> 
> 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.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Tobago--replace-components-via-rendered-tf3125327.html#a8660737
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to