2 Replies Latest reply on Jul 26, 2007 11:16 PM by liu ming

    Irrespective 'get' method invoked with selectOneMenu

    liu ming Newbie

      I have problem with selectOneMenu?

      Page code:

      <h:inputText id="brxminput" value="#{curuser.regczy.cash.xm}"
      onkeypress="changeFocus(event)" required="true" size="4">
      <a4j:support event="onblur" ajaxSingle="true" />
      </h:inputText>

      <h:selectOneMenu id="brxbselect" value="#{curuser.regczy.cash.xb}"
      onkeypress="changeFocus(event)">
      <f:selectItems value="#{curuser.mpubsource.flml.xb}" />
      <a4j:support event="onblur" ajaxSingle="true" />
      </h:selectOneMenu>

      <h:selectOneMenu id="fylxselect" value="#{curuser.regczy.cash.fylx}"
      onkeypress="changeFocus(event)">
      <f:selectItems value="#{curuser.mpubsource.flml.fylx}" />
      <a4j:support event="onblur" ajaxSingle="true" />
      </h:selectOneMenu>

      When the inputText-->brxminput lost focus,the 'get' method of other selectOneMenu invoked,
      i have put 'System.out.println("beging to get ...")' inside there 'get' method,so i get these messeges:

      07-07-27 09:22:19 INFO [localhost]:147 - ---------------------------------------------------------------
      beging to get Xm
      beging to get Xb
      beging to get fylx

      In some case,i need to put some code inside there 'get' method,thus this will waste the server's source?
      Can anybody help me?
      Thanks!