Cool. I will check it out.

Thanks,
Ian

Matthew Payne wrote:

/The Internationalized table column header is not yet released. You can grab it from displaytag's cvs./

Matt

On Sat, 2004-01-31 at 12:47, Ian Roughley wrote:

/ //
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]
    Behalf Of *Matthew Payne
    *Sent:* Wednesday, January 28, 2004 9:08 PM
    *To:* [EMAIL PROTECTED]
    *Subject:* RE: [OS-webwork] Display Tag & WebWork


/


/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='<c:out value="${viewurl}"/>'><fmt:message key="label.global.view"/></a> |
<a href='<c:out value="${editurl}"/>'><fmt:message key="label.global.edit"/></a> |
<a href='<c:out value="${exeurl}"/>'><fmt:message key="label.global.execute"/></a> &nbsp;
</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] <mailto:[EMAIL PROTECTED]>>








-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to