Problem while using <h:selectOneMenu tag>

Hello All,

I am facing a problem while using the <h:selectOneMenu in my JSP.

My requirement is as below,

I am having a list of manager in the select box.

User will select any of the manager and click a command link to assign the manager.

On click of this command link backerbean method should be invoked.

My problem is,

I am able to display the list box without any problem.

But Once I select any value from the list box the command link is not working.

That is click on the command link is not invoking the backer bean method.

My code look as below,

JSP

><td>

<h:selectOneMenu value="#pc_EmployeeDetailsView.assignedMgrPositionId}" id="assignedMgrPositionId" style="width: 170px">

<f:selectItems value="#{pc_EmployeeDetailsView.managerList}" />

</h:selectOneMenu>

</td><td>?lt;/td>

<td><h:commandLink action="#pc_EmployeeDetailsView.assignManager}" onmousedown="setEditAction('assign');">

<h:outputText value="Assign"></h:outputText>

</h:commandLink></td>

Backer Bean

--

SelectItem managerSelectItem =new SelectItem("0","Select Manager");

ArrayList managerSelectItemList =new ArrayList();

managerSelectItemList.add(managerSelectItem);

int managerListSize = managerSearchList.size();

for (int i=0; i<managerListSize; i++){

Employee manager = (Employee) managerSearchList.get(i);

managerSelectItem =new SelectItem(StringUtils.isNotEmpty(manager.getOrgInfo().getPositionNumber())?manager.getOrgInfo().getPositionNumber():"",StringUtils.isNotEmpty(manager.getFullDisplayName())?manager.getFullDisplayName():"");

managerSelectItemList.add(managerSelectItem);

}

setManagerList(managerSelectItemList);

Please help me on this.

Thanks In Advance>

[2469 byte] By [BijuKunniyura] at [2007-11-26 17:57:18]
# 1
I have solved this problem by putting the list in portlet session and allowing the get method to get the SelectItem from the session
BijuKunniyura at 2007-7-9 5:10:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...