myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Heath Borders <heath.bord...@gmail.com>
Subject Re: inner dataTable
Date Wed, 22 Dec 2004 14:12:39 GMT
No, it can't.


On Wed, 22 Dec 2004 15:08:14 +0100, Gabor Beres <gabor_beres@freemail.hu> wrote:
> Maybe because contracts is a Set, and teams is a List.
> Can dataTable iterate through a Set?
> 
> -----Original Message-----
> From: Heath Borders [mailto:heath.borders@gmail.com]
> Sent: Tuesday, December 21, 2004 8:54 PM
> To: MyFaces Discussion
> Subject: Re: inner dataTable
> 
> There are bugs with nested datatables, so its probably a good idea to
> shy away from them for the time being.
> 
> I'm not really sure what's causing your problem, though.
> 
> On Tue, 21 Dec 2004 19:25:50 +0100, Gabor Beres
> <gabor_beres@freemail.hu> wrote:
> >
> >
> > Hi
> >
> >
> >
> > I have a list property named teams. It contains several team that has
> > several contracts (fetched with an orm tool)
> >
> > i'd like to view it like this:
> >
> >
> >
> > <x:dataTable var="team" value="#{listpilot.teams}">
> >
> >   <h:column>
> >
> >     <h:outputText value="#{team.name}"/>
> >
> >   </h:column>
> >
> >   <h:column>
> >
> >     <x:dataTable var="contract" value="#{team.contracts}">
> >
> >       <h:column>
> >
> >         <h:outputText value="#{contract.id}"/>
> >
> >       </h:column>
> >
> >     </x:dataTable>
> >
> >   </h:column>
> >
> > </x:dataTable>
> >
> >
> >
> > it throws this:
> >
> >  javax.servlet.ServletException: Expression: '#{contract.id}'
> > javax.faces.webapp.FacesServlet.service(FacesServlet.java:125)
> >
> net.sourceforge.myfaces.custom.fileupload.MultipartFilter.doFilter(Multi
> partFilter.java:88)
> >  what's wrong with that? Is it not possible to do such kind of inner
> > iteration? Thanks.
> >
> >
> > ______________________________________________________________
> > Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes
> a
> > FreeStarttol.
> > Probald ki most! http://www.freestart.hu
> >
> >
> 
> --
> -Heath Borders-Wing
> hborders@mail.win.org
> 
> 
> ____________________________________________________________________
> Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
> Probald ki most! http://www.freestart.hu
> 


-- 
-Heath Borders-Wing
hborders@mail.win.org

Mime
View raw message