Ok, thanks a lot! -----Mensagem original----- De: Matt Raible [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 9 de janeiro de 2004 16:05 Para: [EMAIL PROTECTED] Assunto: RE: [displaytag-devel] How to decorate a nested bean property
If you add an "id" attribute to your table, it will expose the current row as a pageContext variable. Just eliminate the property from your tag and grab the output in the <display:column>'s body. <display:table name="test" id="test"> <display:column title="CityName"> <c:out value="${test.city.name}"/> </display:column> > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Expedito Reinaldo da Silva Júnior > Sent: Friday, January 09, 2004 10:41 AM > To: '[EMAIL PROTECTED]' > Subject: [displaytag-devel] How to decorate a nested bean property > > > Hi All! > > Sorry to send this doubt to this list, but no one had > answered this question in the user list. > > Supose I want to decorate a table column wich represents a > nested bean like in the JSP piece below: > > <% > Person person = new Person( "Joseph" ); > > Address address = new Address( ); > address.setCity( new City("Brasilia") ); > > person.setAddress( address ); > > List addressList = new ArrayList( ); > addressList.add( address ); > > request.setAttribute( "test", person); > %> > > <display:table name="test"> > <display:column property="address.city" > title="CityName"/> > <!-- supose I want use the 'city' object to change the > default output --> > </display:table> > > How can I create a decorator (TableDecorator) to accomplish > this?? I want to use a TableDecorator but I don't know how > would be the method's signature... > > Thanks, > > Expedito. > > > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System > offering advanced branching capabilities and atomic changes > on 50+ platforms. Free Eval! > http://www.perforce.com/perforce/loadprog.html > > _______________________________________________ > displaytag-devel mailing list [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/displaytag-devel > ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel