jsf - f:param or f:attribute support on primefaces autocomplete? -


i've read core jsf components support f:param , f:attribute tag, in order pass values serverside enclosing ui components.

there's need me able primefaces' autocomplete component, autocomplete method able make use of parameter supplied f:param or f:attribute. tried finding out ways accomplish this, , found out complete method parameter fixed , cannot take more arguments, hence im thinking of using f:param or f:attribute.

im use 2.2.x version, , based on experiment, cant seem f:param or f:attribute working

<p:autocomplete ...>    <f:param name="myparam" value="xxxx" /> </p:autocomplete> 

is primefaces going support feature on autocomplete component ? there anyway can find out tags support parameters , dont ?

thank !

finally got working !

here's jsf part :

<p:autocomplete id="#{cc.attrs.id}" label="#{cc.attrs.label}"     ....     completemethod="#{filterableraceautocompletebean.filterrace}">      <f:attribute name="filter" value="#{cc.attrs.filter}" />  </p:autocomplete> 

and here source :

public list<dto> filterrace(string filterstring) {     string filtervalue = (string) uicomponent.getcurrentcomponent(facescontext.getcurrentinstance()).getattributes().get("filter");     log.debug("filter string : " + filterstring + ", query filter of : " + filtervalue);      ....      return result; } 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -