[Building Sakai] Dropdown menus in user-tool (velocity) do not work
Rafael Morales Gamboa
rmorales at suv.udg.mx
Mon Mar 11 23:28:20 PDT 2013
Hello,
I have done some changes to UserAction.java and chef_user_create.vm in
the User Tool, so that now I have two additional fields (organization
and category) displayed as dropdown menus. The options for the first one
are read from a file and everything works fine... but cannot get values
back from the menus. Files are attached, and this is the core part of
the changes (additions) to user_create.vm
<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>
<p class="shorttext required">
<label for="category">
#if(!$user)<span class="reqStar">*</span>#end $tlang.getString("usecre.category")
</label>
<select name="category" id="category"/>
<option>Investigador</option>
<option>Académico</option>
<option>Alumno</option>
<option>Administrativo</option>
<option>Consejero CUDI</option>
<option>Representante CUDI</option>
<option>Coordinador CUDI</option>
</select>
</p>
It seems the point is to put something in valueOrganization and
valueCategory, but how can I do that? It is not apparent how it is done
for email, firstname, etc.
Any ideas?
More information about the sakai-dev
mailing list