myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave <>
Subject Re: submitOnEvent callback
Date Fri, 01 Feb 2008 03:38:50 GMT
  The bean method is not called. 

Dave <> wrote:    for <s:submitOnEvent>, in my case, whether
to submit depends on a bean variable. So I need a "rendered" property.
  <h:selectOneMenu .... >
  <s:submitOnEvent for="aButton" event="change" rendered="#{bean.submitOnChange}" />
  <h:commandButton id="aButton" .../>
  But the <s:submitOnEvent> does not have a rendered property.  It has a callback for
the purpose. The callback function's signature 
  function mySpecialUserCallback(event, srcComponentId, clickComponentId);
  How to let the callback function use the backing bean's variable?
  If the callback is javascript code, it can serve the purpose
  callback="#{bean.variable? return true: return false}"
  Thanks for help

  Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

Looking for last minute shopping deals?  Find them fast with Yahoo! Search.
View raw message