>-------------- Original message -------------- >From: "Demetz Markus" <[EMAIL PROTECTED]> > > Hi! > > I'm trying to integrate struts-faces to my Struts applications. > > In the execute(...) method I put a Collection of items ("bookList") to the > request and forward to a faces page. I wondered if in the faces page i could > do something like this: ><h:dataTable var="book" value="#{request.getAttribute('bookList'}"> ><h:column> ><f:facet name="header">Title</f:facet> ><h:outputText value="#{book.title}"/> ></h:column> ><h:column> ><f:facet name="header">Author</f:facet> ><h:outputText value="#{book.author}"/> ></h:column> ><h:column> ><f:facet name="header">Available</f:facet> ><h:outputText value="#{book.available}"/> ></h:column> ></h:dataTable> > > But this leads to an Assertion-Error. > > Is it possible in any way to use a request attribute as an input for the > dataTable? >
This will not work. The value attribute of the dataTable is a value binding expression. That means it must have your standard java bean getter with an empty args actual parameter. The JSF EL will not allow you to pass parameters in the expression even for a method binding expression. The faces context should be used to find the parameter in another context. > Thanks, > Markus > Gary > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >