Announcement Announcement Module
Collapse
No announcement yet.
DisplayTag form binding example Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • DisplayTag form binding example

    FYI, Thought some folks might find this helpful:

    Code:
        <display:table pagesize="25" class="rows-table" sort="list" name="${commandForm.searchResults }"
                       style="width:680px" excludedParams="*" defaultsort="4" uid="parent">
    
            <display:column property="rowNumber" sortable="false" title=""/>
            <display:column sortable="true" title="${ label1 }">
                <spring:bind path="commandForm.searchResults[${parent_rowNum - 1}].keyValue">
                    <c:url var="rowUrl" value="mypage.do">
                        <c:param name="selectedItem" value="${status.value}"/>
                        <c:param name="_eventId" value="showDetails"/>
                        <c:param name="_flowExecutionKey" value="${ flowExecutionKey }"/>
                    </c:url>
                </spring:bind>
                <a href="${rowUrl}">SHOW DETAILS</a>
            </display:column>
        </display:table>
    Of course, you also need a property editor with a property on your object in the collection called 'keyValue'.

    This uses spring web flow but it will work with spring mvc also.

  • #2
    hi,

    I have n issue with the display tag... I am using spring 3. I am using annotations and display tags. I had followed ur way to achieve my objective. I had discussed the issue in http://forum.springsource.org/showth...761#post414761 this link. But got no replies yet. Plz help me

    Comment

    Working...
    X