myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Wynn" <bigwy...@gmail.com>
Subject Re: designing h:dataTable
Date Tue, 05 Jun 2007 14:30:38 GMT
t:dataList allows you more fine grained control over the display.

On 6/5/07, ncheltsov <ncheltsov@obs.bg> wrote:
> I am not sure, that I fully understand your question, but I think, that
> h:dataTable element is not intended
> for such use. You can display with it some tabular information, set
> header and footer and apply some visual cosmetic.
> That's all. Consider using other  component.
>
> P.S. Of course  I can be wrong. I will be glad someone to correct me :)
>
> sandipp wrote:
> > Hi All,
> >
> > I want to design datatTable as,
> >
> > -----------------------------------------------------------------------------------
> > Edit |               Personal Information        | Account Information |
> > -----------------------------------------------------------------------------------
> > edit | first name | middle name |last name | bank name | a/c no |
> > -----------------------------------------------------------------------------------
> >
> > I am able to get second row by follwoing code as.
> >
> > <h:dataTable width="100%" border="0" headerClass="firstRow"
> > rowClasses="row1,row2" value="SomeValue">
> > <h:column>
> > <f:facet name="header">
> > <h:outputText id="editHeader" value="edit" />
> > </f:facet>
> > </h:column>
> > <h:column>
> > <f:facet name="header">
> > <h:outputText id="editHeader" value="first name" />
> > </f:facet>
> > </h:column>
> > <h:column>
> > <f:facet name="header">
> > <h:outputText id="editHeader" value="middle name" />
> > </f:facet>
> > </h:column>
> > <h:column>
> > <f:facet name="header">
> > <h:outputText id="editHeader" value="last name" />
> > </f:facet>
> > </h:column>
> > <h:column>
> > <f:facet name="header">
> > <h:outputText id="editHeader" value="bank name" />
> > </f:facet>
> > </h:column>
> > <h:column>
> > <f:facet name="header">
> > <h:outputText id="editHeader" value="a/c no" />
> > </f:facet>
> > </h:column>
> > </h:dataTable>
> >
> > But I am not able to set first row.
> > i.e. I want Edit from first row will fit for edit for second row
> > lly, Personal Information will fit for first name,middle name,last name
> > and Account Information will fit for bank name a/c no
> >
> > Can anybody tell me how to do this ?
> >
> > Thanks
> > Sandip
> >
> >
>
>

Mime
View raw message