primefaces - p:autocomplete updating other parts of the page when complete-method called -
maybe missing basic.
i have p:autocomplete p:ajax event="itemselect" child , forceselection="true" attribute. when user selects value list can update parts of page itemselect event. works fine. now, want page update when user types in field. handle unselect. unfortunatedly see no way update when complete-method called. stuff
final requestcontext requestcontext = requestcontext.getcurrentinstance(); requestcontext.update("content_form:table"); in complete-method not help.
any ideas? hope expressed myself in comprehensive way.
you can use 1 of key events onkeyup, onkeydown etc
<h:panelgrid id="components2update"> <ui:param name="teststuff" value="#{areasbean.somevaluethatgotupdated}" /> <p:outputlabel value="#{teststuff}" /> </h:panelgrid> <p:autocomplete id="acsimple" value="#{somebean.somevalue}" completemethod="#{somebean.autocompmethod}" .... > <p:ajax event="keyup" oncomplete="alert('ddd')" update=":#{p:component('components2update')}" /> </p:autocomplete>
Comments
Post a Comment