Hi,

I have some questions about the selectOneMenu. In my work on this so far, if I set the value attribute as:

<h:selectOneMenu required="true" value="#{tableform.selectedTable}">

and if my selectedTable property of the form bean is set to a present value in the tableform class, the change on the UI is not reflected in the class. It always works with the same value. If I set the default value to null, it works. Why is this so?

I am facing a problem with this behaviour. If I don't set a default value, I get a null pointer exception in some functions that are called when the page first loads. If I set it to a default value, the component is not refreshed. (I am doing this using ajax4jsf). Is there supposed to be any other way to make this work?

Thanks,
Aneesha


Reply via email to