http://wiki.opensymphony.com/space/Example%2C+exposing+webwork+objects+to+JSTL%2C+with+a+JSTL+and+DisplayTag+Example
On Sun, 2004-02-01 at 10:26, Rene Gielen wrote:
Matthew, How about adding this example to wiki? On Thursday 29 January 2004 03:08, Matthew Payne wrote: > The displaytag works fine with webwork if, grab it off the value stack like > ---> <ww:set name="jobz" value="jobs" scope="request" /> > > However, I have no idea how to do something like below with webwork's > velocity "#tag" implementation. > > Here is a full example below ---> > > > <%@ taglib uri="/WEB-INF/tlds/c.tld" prefix="c" %> > <%@ taglib uri="/WEB-INF/tlds/fmt.tld" prefix="fmt" %> > <%@ taglib uri="/WEB-INF/tlds/displaytag-el-12.tld" prefix="display" %> > <%@ taglib uri="/WEB-INF/tlds/webwork.tld" prefix="ww" %> > > <ww:set name="jobz" value="jobs" scope="request" /> > > <h1><fmt:message key="title.listAllJobs"/></h1> > <!--decorator="org.quartz.ui.Decorator" --> > <display:table name="jobz" class="simple" id="row" > > <display:column titleKey="label.global.actions" > > <c:url var="viewurl" value="/viewJobDetail.action"> > <c:param name="name" value="${row.name}"/> > <c:param name="groupName" value="${row.group}"/> > </c:url> > <c:url var="exeurl" value="/viewJobDetail.action"> > <c:param name="name" value="${row.name}"/> > <c:param name="groupName" value="${row.group}"/> > <c:param name="executeJobAction" value="execute"/> > </c:url> > <c:url var="editurl" value="/viewJobDetail.action"> > <c:param name="name" value="${row.name}"/> > <c:param name="groupName" value="${row.group}"/> > <c:param name="editAction" value="edit"/> > </c:url> > <a href=''><fmt:message > key="label.global.view"/></a> | <a href=''><fmt:message key="label.global.edit"/></a> | <a > href=''><fmt:message > key="label.global.execute"/></a> </display:column> > > <display:column property="group" titleKey="label.job.group" > sortable="true" /> <display:column property="name" > titleKey="label.job.name" sortable="true" /> <display:column > property="description" titleKey="label.job.description" /> <display:column > property="jobClass" titleKey="label.job.jobClass" sortable="true" /> > > </display:table>
-- Matthew Payne <[EMAIL PROTECTED]> |