Thanks.
Gregg
On 6/28/06, Gregg Bolinger
<[EMAIL PROTECTED]> wrote:
Well, when I do the saveState I keep getting NotSerializableException's on various faces components. Any other solutions?
Thanks.On 6/28/06, Gregg Bolinger <[EMAIL PROTECTED]> wrote:I'll try it. Thanks.On 6/28/06, Rogerio Pereira < [EMAIL PROTECTED]> wrote:I solved this after put the bean in session scope, maybe u can solve this by using t:saveState to save your bean entirely.2006/6/28, Gregg Bolinger < [EMAIL PROTECTED]>:On my form I have 3 selectOneMenu's.
category
subCategory
subSubCategory
When category is changed, I call changeCategory(ValueChangeEvent event). When subCategory is changed I call changeSubCategory(ValueChangeEvent event).
I have noticed that when changeCategory is called, changeSubCategory is also called. I know why this happens. That is fine. However, afterwhich, I change the subCategory select and changeSubCategory is not called again. Any suggestions?
<t:outputText value="Category" />
<t:selectOneMenu id="catSelect" value="#{ArticleListBean.category}" valueChangeListener="#{ ArticleListBean.changeCategory}">
<f:selectItem itemLabel="ALL" itemValue="0" />
<f:selectItems value="#{ArticleListBean.catList }" />
</t:selectOneMenu>
<t:outputText value="Sub-category" />
<t:selectOneMenu id="subCatSelect" value="#{ ArticleListBean.subCategory}" valueChangeListener="#{ArticleListBean.changeSubCategory}">
<f:selectItem itemLabel="ALL" itemValue="0" />
<f:selectItems value="#{ ArticleListBean.subCatList}" />
</t:selectOneMenu>
public void changeCategory(ValueChangeEvent event)
{
setCategory((Integer)event.getNewValue());
}
public void changeSubCategory(ValueChangeEvent event)
{
setSubCategory((Integer)event.getNewValue());
System.out.println("################### " + getSubCategory());
}
--
Yours truly (Atenciosamente),
Rogério