ow to get select value from selectOneMenu using <f:selectItems>

Hi All,

We are trying to get the selectvalue from the list .

The code like this:

<h:selectOneMenu value="#{leaveDetailBean.processLeaveType}">

<f:selectItems value="#{leaveDetailBean.leaveTypesSelectType}" />

</h:selectOneMenu>

Here leaveTypesSelectType

contains ArrayList of selectItem and it holds string values.

It is working fine with <f:selectItem> but not with selectItems.

Please help me out.

Regards,

Kranthi

[565 byte] By [Aurora_Greena] at [2007-11-27 8:25:56]
# 1
What errors do you get?
RaymondDeCampoa at 2007-7-12 20:15:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
What exactly is leaveTypesSelectType? List<SelectItem>The value of selectitem is the same type that processLeaveType returns?If so there would be no issue, it this what your are saying?
smurray_eriea at 2007-7-12 20:15:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...