Hi,

Also something that had me for a few minutes which you might encounter after
making the change Matt suggests was the following:

The multiselect box in userForm.jsp also needs to have a javascript function
to select all the values in the right hand box before form submission - so
just make sure you have the onclick="onFormSubmit(this.form)" on the submit
button and the onFormSubmit specified as below, but with the id of your
right multiselect id in there (i.e. the value you set for "rightId").

       <s:submit cssClass="button" method="save" key="button.save"
onclick="onFormSubmit(this.form)"/>

<script type="text/javascript">

function onFormSubmit(theForm) {
    selectAll('traderCategories');
}
</script>

Cheers,

Pete



On 3/26/07, Matt Raible <[EMAIL PROTECTED]> wrote:

The "rightId" parameter should be a String value that you can get
using request.getParameterValues("rightId").  Have you looked at your
source code to see the id/name that's generated for the right-most
<select> box?

Matt

On 2/28/07, hquinn <[EMAIL PROTECTED]> wrote:
>
> Greetings everyone!!
> I'm working with spring/appfuse, I have a relationship many-to-many
> Person-Activity.. just like User-Roles .. and I'm doing the same thing
in
> the PersonForm.jsp ... I have a 2 list boxes where one list has the
> activities availables and the other list has the current activities a
person
> has... I'm using the picklist.jsp just like the userForm uses it... it
is
> pretty much the same... but here it goes my question... I've seen that
in
> the userFormController .. the way to get the roles to add it is through
a
> request.getParameterValues("userRoles") ... I've tried to do the same
> thing.. but.. it doesn't work.. I think I problably misunderstood this
> method.. or the way the roles are saved to a User ... can someone
explain
> me??
>
> This is the part where I have my 2 listbox
> <li>
>         <fieldset class="pickList">
>             <legend><fmt:message key="datosDia.actividades"/></legend>
>             <table class="pickList">
>                 <tr>
>                     <th class="pickLabel">
>                         <dif:label key="datosDia.actividadesDisponibles"
> colon="false" styleClass="required"/>
>                     </th>
>                     <td></td>
>                     <th class="pickLabel">
>                         <dif:label key="datosDia.actividadesAsignadas"
> colon="false" styleClass="required"/>
>                     </th>
>                 </tr>
>                 <c:set var="leftList" value="${availableActivities}"
> scope="request"/>
>                 <c:set var="rightList"
> value="${datosDia.beneficiarioActividades}" scope="request"/>
>                 <c:out value="${beneficiarioActividades}" />
>                 <c:import url="/common/pickList.jsp">
>                     <c:param name="listCount" value="1"/>
>                     <c:param name="leftId" value="availableActivities"/>
>                     <c:param name="rightId"
> value="${datosDia.beneficiarioActividades}"/>
>                 </c:import>
>             </table>
>         </fieldset>
>     </li>
> Thanks
> Hazel Q.
> --
> View this message in context:
http://www.nabble.com/List-in-JSP---getParameterValues-tf3324009s2369.html#a9241007
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
http://raibledesigns.com

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


Reply via email to