Can you try with
panel.getAttributes().put("columns", 2 );
and see what happens? I think it is trying to cast a String to integer..
Regards,
Bruno
2005/7/29, Duncan Krebs <[EMAIL PROTECTED]>:
>
>
>
> Hi,
>
> I'm instantiating and configuring a UIPanel in code using the two lines
> below.
>
>
>
> (UIPanel)context.getApplication().createComponent(UIPanel.COMPONENT_TYPE);
>
> panel.getAttributes().put("columns", "2" );
>
>
>
> However in the encodeEnd method of HtmlGridRenderer I'm getting a Classcast
> exception when trying to get the value of columns attribute. Below is the
> line that is causing the exception.
>
>
>
> Integer i =
> (Integer)component.getAttributes().get(JSFAttr.COLUMNS_ATTR);
>
>
>
> Does anyone see what is wrong? Should I be creating an HtmlPanelGrid
> instead? Thanks!
>
>
>
>