Thank you Mike!

>You could also try using "#{true}" as this sometimes will
>work depending on how the setter was written.

This works perfectly in this scenario!

As you recommended I opened a JIRA issue...


>On 3/9/06, Schaal, Roland <[EMAIL PROTECTED]> wrote:
>>
>> Hello,
>>
>> I have a problem in using panelTabbedPane with the nightly build 
>> tomahawk-1.1.2-SNAPSHOT.jar.
>>
>> When using
>> serverSideTabSwitch="true"
>> I get the following ClassCastException:
>>
>> java.lang.ClassCastException
>>         at
>>
org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane.isClientSide(Ht
mlPanelTabbedPane.java:142)
>>         at
>>
org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer.encodeEnd(Ht
mlTabbedPaneRenderer.java:92)
>>         at
>>
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536
)
>>         at
>>
org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(Rende
rerUtils.java:442)
>>         at
>>
org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(Re
ndererUtils.java:419)
>>         at
>>
org.apache.myfaces.shared_impl.renderkit.html.HtmlGroupRendererBase.enco
deEnd(HtmlGroupRendererBase.java:75)
>>         at
>>
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536
)
>>         at
>>
org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(Rende
rerUtils.java:442)
>>         at
>>
org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.ren
>> derChildren(HtmlGridRendererBase.java:216)
>> ...
>>
>> Looking at the code of HtmlPanelTabbedPane it seems to me that they 
>> try to cast a String- into a Boolean-object, which causes the
exception:
>>
>> public boolean isClientSide(){
>> Boolean serverSideTabSwitch =
>> (Boolean)getAttributes().get("serverSideTabSwitch");
>> return serverSideTabSwitch != null ?
>> !serverSideTabSwitch.booleanValue() : true; }
>>
>> I wonder if the nightly build is missing something or if it is a
bug?!
>>
>> Regards,
>>
>> Roland Schaal


Reply via email to