eventos en el inputText

Agregar un <p:remoteCommand>

       <p:remoteCommand  update=":form:content :form:panel"
                          name="remoteid" 
                          actionListener="#{cc.attrs.isnew}"/>

En el inputText usar ajax e invocar el remoteCommand

onkeypress="if (event.keyCode == 13) {
remoteid();
return false;
}"
 <b:inputText       
                     style="text-transform: uppercase"
                    placeholder="#{app['info.ingresenuevodato']}"
                             value="#{cc.attrs.value}" 
                             disabled="#{cc.attrs.disabled}" 
                             readonly="#{cc.attrs.readonly}" 
                             required="false"
                             requiredMessage="#{cc.attrs.label} #{app['info.required']}"
                             immediate="true"
                             onkeypress="if (event.keyCode == 13) {
                                         remoteid();
                                         return false;
                                     }">

Last updated