Sorted out,
Did not include the javascript stuff in JSP !!!!
Travers

-----Original Message-----
From: Travers Snyman [mailto:[EMAIL PROTECTED] 
Sent: 26 January 2007 11:57 AM
To: [email protected]
Subject: RE: [appfuse-user] pickList in struts

Thanks Matt,
I have something similar. I see my lists, but when the move buttons are
selected, IE gives me an error on the page (that is if I click on the
Error on Page icon) as follows:

Line : 244
Char : 1
Error: Object expected
Code : 0

The view source generated for the part in question is as follows:

  <td class="moveOptions">
<button name="moveRight" id="moveRight1" type="button" 
<------------ Line with problem -------->
onclick="moveSelectedOptions($('cellList'),$('cellSelected'),true)">
            &gt;&gt;</button><br />
<------------ Line with problem -------->  
        <button name="moveAllRight" id="moveAllRight1" type="button"
 
onclick="moveAllOptions($('cellList'),$('cellSelected'),true)">
            All &gt;&gt;</button><br />
        <button name="moveLeft" id="moveLeft1" type="button"
 
onclick="moveSelectedOptions($('cellSelected'),$('cellList'),true)">
            &lt;&lt;</button><br />
        <button name="moveAllLeft" id="moveAllLeft1" type="button"
 
onclick="moveAllOptions($('cellSelected'),$('cellList'),true)">
            All &lt;&lt;</button>
I don't understand the Object expected error - looks like cellList and
cellSelected are passed in correctly to moveSelectedOptions. What am I
missing?
The rest of html generated <html:select etc. looks ok to me
My JSP is below: with cellList and cellSelected two LabelValue based
lists.

   <tr>
    <td></td>
    <td>
     <fieldset>
            <legend><fmt:message key="cellList.assignCells"/></legend>
            <table class="pickList">
                <tr>
                    <th class="pickLabel">
                        <label class="required">
                            <fmt:message key="cellList.availableCells"/>
                        </label>
                    </th>
                    <td></td>
                    <th class="pickLabel">
                        <label class="required">
                            <fmt:message key="cellList.selectedCells"/>
                        </label>
                    </th>
                </tr>
                <c:set var="leftList" value="${cellList}"
scope="request"/>
                <c:set var="rightList" value="${cellSelected}"
scope="request"/>
   
                <c:import url="/common/pickList.jsp">
                    <c:param name="listCount" value="1"/>
                    <c:param name="leftId" value="cellList"/>
                    <c:param name="rightId" value="cellSelected"/>
                 </c:import>
   
             </table>
        </fieldset>
        </td>
       </tr>
-----Original Message-----
From: Matt Raible [mailto:[EMAIL PROTECTED] 
Sent: 25 January 2007 09:16 PM
To: [email protected]
Subject: Re: [appfuse-user] pickList in struts

Here's an example from Struts Resume:

            <fieldset class="pickList">
                <legend>
                    <bean:message key="userProfile.assignRoles"/>
                </legend>
            <table class="pickList">
                <tr>
                    <th class="pickLabel">
                        <struts-resume:label
key="userFormEx.availableRoles"
                            colon="false" styleClass="required"/>
                    </th>
                    <td>
                    </td>
                    <th class="pickLabel">
                        <struts-resume:label key="userFormEx.roles"
                            colon="false" styleClass="required"/>
                    </th>
                </tr>
                <c:set var="leftList" value="${availableRoles}"
scope="request"/>
                <c:set var="rightList" value="${userRoles}"
scope="request"/>
                <c:import url="/WEB-INF/pages/pickList.jsp">
                    <c:param name="listCount" value="1"/>
                    <c:param name="leftId" value="availableRoles"/>
                    <c:param name="rightId" value="userRoles"/>
                </c:import>
            </table>
            </fieldset>

Matt

On 1/25/07, Travers Snyman <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi ,
>
> Can anyone point me to an example using pickList.jsp in a struts
framework ?
> I am using Appfuse 1.9.4. I can't figure out how to setup the
rightList.
>
>
>
> Travers


-- 
http://raibledesigns.com

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

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

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

Reply via email to