I'm glancing through the svn repository for tobago, so maybe what I'm
looking at is out of date.
I'm not sure if it makes a difference, but I notice that the
setColumns method of UIGridLayout is marked private and takes an int.
private void setColumns(int columns) {
I'm not sure how you get from
columns="fixed;*"
to an int value.....
All I see in GridLayoutTag is
ComponentUtil.setStringProperty(component, ATTR_COLUMNS, columns);
Actually, here's probably the problem:
TobagoConstants:
public static final String ATTR_COLUMNS = "colunms";
It's misspelled :)
But I still don't see how you get from "fixed;*" to an integer constant.
On 2/8/06, Volker Weber <[EMAIL PROTECTED]> wrote:
> This looks like the coulums attribute of tc:gridlayout is lost,
> the resulting output is exact as exected if no columns is set.
>
> Arvid Hülsebus wrote:
> > Hello!
> >
> > Here is a short description of my findings before I go to bed:
> >
> > I started to write a Facelets taglib for some of the Tobago core tags:
> > page, out, gridLayout, panel, label and in.
> >
> > A simple XML file like this
> >
> > <f:view xmlns:f="http://java.sun.com/jsf/core"
> > xmlns:tc="http://myfaces.apache.org/tobago/component">
> > <tc:page>
> > <f:facet name="layout">
> > <tc:gridLayout/>
> > </f:facet>
> > <tc:out value="Hello World"/>
> > <tc:panel>
> > <f:facet name="layout">
> > <tc:gridLayout columns="fixed;*"/>
> > </f:facet>
> > <tc:label value="foo"/>
> > <tc:in value="bar"/>
> > </tc:panel>
> > </tc:page>
> > </f:view>
> >
> > results in this
> >
> >
> >
> > There are still problems with the out and panel elements. This is the
> > result, if I render the same tags via JSP:
> >
> >
> >
> > It looks like we have still some bugs to fix until this really works...
> >
> > Regards,
> > Arvid
>
> --
> Don't answer to From: address!
> Mail to this account are droped if not recieved via mailinglist.
> To contact me direct create the mail address by
> concatenating my forename to my senders domain.
>