[Building Sakai] Dropdown list choice is not recovered by UsersAction.readUserForm

Rafael Morales Gamboa rmorales at suv.udg.mx
Wed Mar 13 22:11:34 PDT 2013


Hello,

I have added a new entry (organization) in the user registration form. 
First it was an INPUT field, just as all others, and it did work fine.

         <p class="shorttext required">
             <label for="organization">
                 #if(!$user)<span class="reqStar">*</span>#end 
$tlang.getString("usecre.organization")
             </label>
             <input type="text" name="organization" id="organization"
#if($userOrganization)value="$validator.escapeHtml($userOrganization)"
#elseif($valueOrganization)value="$validator.escapeHtml($valueOrganization)"#end 
/>
         </p>

Then I replaced it by a SELECT field

         <p class="shorttext required">
             <label for="organization">
                 #if(!$user)<span class="reqStar">*</span>#end 
$tlang.getString("usecre.organization")
             </label>
             <select name="organization" id="organization"/>
                 #foreach($item in $orgList)
                     <option value="$item"
                     #if($userOrganization && 
$item.equals($validator.escapeHtml($userOrganization)))selected="selected"
                     #elseif($valueOrganization && 
$item.equals($validator.escapeHtml($valueOrganization)))selected="selected"
                     #end/>$item</option>
                 #end
             </select>
         </p>

and now it displays pretty but does not record the user choice.

Any ideas? Some explanation of (or references to) how form data is 
recovered?

Regards,
Rafael



More information about the sakai-dev mailing list