开发者

value Change Listener is not calling in h:selectOneMenu component

this is my .XHTML file

 <h:form id="limit" styleClass="edit">
    <h:selectOneMenu value="#{limitHome.condition[0]}" style="width:146px;"  
     valueChangeListener="#{limitMasterController.conditionValueChangeListener()}" >
                <a:support event="onchange" reRender="mapdMdlPnl" limitToList="true" />
                <f:selectItems  value="#{limitHome.conditionFech}"/>
    </h:selectOneMenu>
</h:form>

and i am calling one method in .java class

public void conditionValueChangeListener(ValueChangeEvent event) {

    System.out.println("cal :::::::::: ");

    String oldValue = (String) event.getOldValue();
    String newValue = (String) event.getNewValue();

    System.out.println("oldValueoldValueoldValueoldValueoldValue = > " + oldValue);
开发者_Python百科    System.out.println("newValuenewValuenewValuenewValuenewValue ==> " + newValue);

}

here i amy cod but i am not getting any single sysout. so i dont know where is a problem..


Possible reasons I noticed are:

  • a:support, shouldn't it be a4j:support

  • your call should be
    valueChangeListener="#limitMasterController.conditionValueChangeListener}" without braces.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜