Here's an example from my own project.  The first column is a row
header, and the rest of the columns are checkboxes.

<x:dataTable id="datatable"
    value="#{backingBean.rowDataModel}"
    var="row">

    <h:column>
        <h:outputText value="#{row.rowName}"/>
    </h:column>

    <x:columns
            value="#{backingBean.columnDataModel}"
            var="column">

        <f:facet name="header">
            <h:outputText value="#{column.columnName}"/>
        </f:facet>

        <h:selectBooleanCheckbox value="#{backingBean.relationshipValue}"/>

    </x:columns>

</x:dataTable>

On 11/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Can you give me an example(code) with additional flag, so that I know it's 
> really the first column..
>
> Thx
> Andy
>
> -----Ursprüngliche Nachricht-----
> Von: Mathias Brökelmann [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 7. November 2005 14:59
> An: MyFaces Discussion
> Betreff: Re: Drawing first column of t:columns as outputtext, the others
> as inputtext
>
>
> either use h:column for this specific column or use some additional
> boolean flag since your boolean expression in rendered attribute can
> can be combined with boolean operators.
>
> 2005/11/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> >
> >
> > Hi all!
> >
> > I'm drawing a dynamic table with t:columns.
> > Is it now possible to draw the first column as a outputtext and the second
> > and so on as Inputtext.
> > The first columns is always of type long, so I can perhaps do it like:
> >
> > <h:outputText rendered="#{userRolesBean.longValue}"
> > value="#{userRolesBean.columnValue}"/>
> >
> > But the problem is, that in the second column, there can also be a data of
> > type long... So is it possible only to draw the first column as a
> > outputtext, no matter what datatype this column has?
> >
> > Regards
> > Andy
> > ______________________________________________________________________
> > This email and any files transmitted with it are confidential and intended
> > solely for the use of the individual or entity to whom they are addressed.
> > If you have received this email in error please notify your system manager.
> > This footnote also confirms that this email message has been swept for the
> > presence of computer viruses.
> > ______________________________________________________________________
> >
>
>
> --
> Mathias
>
>
> ______________________________________________________________________
>
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> your system manager.
>
> This footnote also confirms that this email message has been swept
> for the presence of computer viruses.
> ______________________________________________________________________
>

Reply via email to