jsf problem

<h:selectOneMenu value="#{transaction.tranType}">

<f:selectItem itemValue="" itemLabel="" />

<f:selectItem itemValue="red" itemLabel="RED" />

<f:selectItem itemValue="white" itemLabel="WHITE" />

<f:selectItem itemValue="black" itemLabel="BLACK" />

</h:selectOneMenu>

<h:commandButton action="red" value="#{common.select}" />

I would like to be able to have "#{transaction.tranType}" instead of red

please any help will be great

thank you

[543 byte] By [bfa0210a] at [2007-11-26 16:53:06]
# 1
I don't understand the problem, can you please clarify?By the way, the commandButton action value is not a methodbinding. Maybe this is your problem?
BalusCa at 2007-7-8 23:20:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
For this you have to create converter that will convert color like "red","blue" to your tranType.
amitteva at 2007-7-8 23:20:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...