I'm new to AppFuse and the display tag, so I apologize if I am asking a dumb
question.

I'm modifying one of the blahBlahList.jsp pages to allow the product user to
change some attributes without going to the detailed blahBlahForm page. (An
example of this might be allowing an Admin to correct the spelling of a
user's name off of the userList page.) 

I have the display tag working the way that I want it to, getting a
collection off of an attribute of the request and iterating through that
collection correctly (I can display the current settings correctly).
However, when I try to use the Spring form:input and form:select tags, I
can't seem to find the correct syntax to display an attribute of the
collection in a form:input tag (scoping problem?). what I want is something
like: 
 
.........................

<display:table name="myAttribute.collections" cellspacing="0"
cellpadding="0" requestURI=""
    id="collections" pagesize="25" export="false" class="table
collectionList" >
    
    <%--
------------------------------------------------------------------------------------------------------------------------
    -- Column 1 just displays the name of the current collection item we are
iterating over 
   
--------------------------------------------------------------------------------------------------------------------------
--%>
    <display:column property="itemName"
titleKey="myAttribute.collectionsNameText" escapeXml="true"/>
    
    <%--
---------------------------------------------------------------------------------------------------------------------------
    -- Column 2 should display a select box of possible statuses (displaying
the status' name 
    -- attribute and using its id attribute as the value), with the current
status of the current 
    -- collection item pre-selected
   
-------------------------------------------------------------------------------------------------------------------------
--%>
    <display:column titleKey="myAttribute.collectionsItemStatusText">
                
        <form:errors path="collections.currentStatus"
cssClass="fieldError"/>
        <form:select path="collections.currentStatus" cssClass="text medium"
id="currentStatus_${collections.id}">

                <form:options items="${lookup.statusTypes}" itemValue="id"
itemLabel="name"/>

        </form:select>

    </display:column>
    
    <%--
--------------------------------------------------------------------------------------------------------
    -- Column 3 should display an input box with the current item's due date
   
---------------------------------------------------------------------------------------------------------
--%>
    <display:column titleKey="myAttribute.collectionsDueDateText">
                
        <form:errors path="collections.dueDate" cssClass="fieldError"/>
                <form:input path="collections.dueDate" 
id="dueDate_${collections.id}"
cssClass="text medium"/>
                                                
    </display:column>
                                         
    <display:setProperty name="paging.banner.item_name" value="collection"/>
    <display:setProperty name="paging.banner.items_name"
value="collections"/>
</display:table> 

........................

Help us Obi-Wan Raible, you're our only hope.

-- 
View this message in context: 
http://www.nabble.com/using-display-tag-with-Spring-form-tag-tf3143012s2369.html#a8711548
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to