I haven't been able to successfully mix displaytag with jsf.  You're better off 
trying to get tomahawk's t:dataTable tag working as you won't have to deal with 
jsp/jsf tag lifecycle issues.

> -----Original Message-----
> From: PSI [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 06, 2006 1:21 PM
> To: [email protected]
> Subject: Re: displaytag dynamic title value binding??
> 
> 
> 
> yeah i understand, but in order to display dynamic columns on 
> displaytag, i
> have to use nested JSTL tags. also about value binding i have 
> already tried
> expressions with '#', it did not worked thats why i have added JSTL
> expression. Everything else works except the fact that 
> "Title" it does not
> take any kind of expressions to assign values. :(
> 
> 
> Following is more indepth code view.
> 
> <f:view>
> <f:loadBundle var="text" basename="#{userList.bundleName}"/>
> 
> <head>
>     <title><fmt:message key="userList.title"/></title>
> </head>
> <h:form id="editUser">
> 
> 
> <%-- Use a non-displayed dataTable to pull actionList into 
> request --%>
> <h:dataTable var="user" value="#{actionList.users}" 
> style="display:none"/>
> 
> <display:table name="userList.users" cellspacing="0" cellpadding="0"
> requestURI=""
>     id="users" pagesize="25" class="table userList" export="true" >
> 
>      <c:forEach var="columnVal" varStatus="status"
> items="${users.dataRowList}">
>        
>        <display:column 
>                               title="${columnVal}" 
>                               sortable="true">
>                       <c:out value="${columnVal}"/>
>        </display:column>                                 
>      </c:forEach>
> 
>     <display:setProperty name="paging.banner.item_name" value="user"/>
>     <display:setProperty name="paging.banner.items_name" 
> value="users"/>
> 
> </display:table> 
> 
> ....
> ....
> 
> 
> 
> 
> 
> Jeff Bischoff wrote:
> > 
> > PSI wrote:
> >  > I am using MyFaces, and following code works except for 
> "title" ?? 
> > some how
> >  > it does not bind values to title.
> > 
> > Okay, but these are not JSF tags... they are not MyFaces tags.
> > 
> > You will run into problems using the c:forEach like that in 
> JSF 1.1. 
> > Please see [1].
> > 
> > title="${columnVal}" - this is NOT a value-binding 
> expression. It would 
> > look more like #{columnVal}... except then you get problems 
> I mentioned 
> > above.
> > 
> > [1] http://java.sun.com/developer/technicalArticles/J2EE/jsp_21/
> > 
> > Regards,
> > 
> > Jeff Bischoff
> > Kenneth L Kurz & Associates, Inc.
> > 
> > PSI wrote:
> >> I am using MyFaces, and following code works except for 
> "title" ?? some
> >> how
> >> it does not bind values to title.
> >> 
> >> 
> >> 
> >> Nebinger, David wrote:
> >>> Well, first of all your syntax appears to be JSP-based 
> and not JSF. 
> >>> Second of all (and someone please correct me if I am wrong), but
> >>> displaytag is displaytag supported by jsf?
> >>>
> >>>> -----Original Message-----
> >>>> From: PSI [mailto:[EMAIL PROTECTED]
> >>>> Sent: Monday, November 06, 2006 12:39 PM
> >>>> To: [email protected]
> >>>> Subject: displaytag dynamic title value binding??
> >>>>
> >>>>
> >>>>
> >>>> Hi!
> >>>>
> >>>> I am trying to display dynamic columns, i am able to display 
> >>>> those though
> >>>> but problem is "title" it is not binding values.
> >>>>
> >>>>      <c:forEach var="columnVal" varStatus="status" 
> >>>> items="${dataRowList}">
> >>>>        
> >>>>        <display:column 
> >>>>                          title="${columnVal}" 
> >>>>                          sortable="true">
> >>>>                  <c:out value="${columnVal}"/>
> >>>>        </display:column>                            
> >>>>      </c:forEach>
> >>>>
> >>>>
> >>>>
> >>>> title does not bind any values, it simply outputs anything as 
> >>>> string !!
> >>>> title="${columnVal}" 
> >>>>
> >>>> Any help would be appreciated.
> >>>>
> >>>> Thanks,
> >>>> Anil G
> >>>> -- 
> >>>> View this message in context: 
> >>>> http://www.nabble.com/displaytag-dynamic-title-value-binding--
> >>>> -tf2583889.html#a7203355
> >>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>>>
> >>>>
> >>>
> >> 
> > 
> > 
> > 
> > 
> 
> -- 
> View this message in context: 
http://www.nabble.com/displaytag-dynamic-title-value-binding---tf2583889.html#a7204133
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to