Well tks for your help, but in the end i put everything in the same bean, it
is more easy. And work fine.
Tks for your help.
smurray wrote:
>
> This does not look correct to me. The answer is really no but you might
> be able to fake it. First the value of h:selectOneMenu is both a setter
> and a getter. It is a getter to determine the initially selected value
> and then its a setter to record the users selection. This sort of answers
> your question in that you cannot not re-direct setter to another bean.
>
> Finally I think your inner should be h:selectItems not h:selectItem and it
> should return a list of list<javax.faces.model.SelectItem>. If so you
> would not need to specify a label. If you are using this mechanism then
> the setter of h:selectOneMenu would be the value associated with the
> SelectItem.
>
> One thing you might do is add a valueChangeListener and have this method
> set the value in registerSchedule.newCalendar. Just a suggestion.
>
>
> ignicolist wrote:
>>
>> Hi to all!
>>
>> i have this code:
>>
>> <h:selectOneMenu id="calendar"
>> value="#{scheduleexampleHandler.scheduleSelect}" >
>>
>> <f:selectItem
>> itemValue="#{scheduleexampleHandler.scheduleItems}" itemLabel="d" />
>>
>> </h:selectOneMenu>
>>
>> every thing is fine here, so what i want is when i submit the form the
>> value selected go to something like this:
>> value="#{registerSchedule.newSchedule.calendar}" i want the value select
>> go to other bean!
>>
>> Is that possible? how?
>>
>> Tks for all.
>>
>
>
--
View this message in context:
http://www.nabble.com/selectOneMenu-submit-tf4262736.html#a12132504
Sent from the My Faces - Dev mailing list archive at Nabble.com.