This
is great! I was just looking for such an example the other day, as I was
having trouble with the new workings of the property tag and wondering how to
get internationalized table column header. Am I correct in assuming that
the obtains attribute titleKey="label.global.actions"
obtains the value from the WW2 properties
file?
/Ian
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Matthew Payne
Sent: Wednesday, January 28, 2004 9:08 PM
To: [EMAIL PROTECTED]
Subject: RE: [OS-webwork] Display Tag & WebWorkThe 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>