only works if I select an element. If is different of the arraylist don´t work the action.
Code: Select all
<p:autoComplete value="#{cadastroPessoasMB.selectedTag}"
completeMethod="#{cadastroPessoasMB.loadTags}"
var="tag"
required="true"
itemLabel="#{tag.nome}"
itemValue="#{tag}"
converter="converteTag"
forceSelection="false"
maxResults="10"/>
</p:column>
<p:column style="width: 170px">
<p:commandButton
value="New"
action="#{cadastroPessoasMB.gravaPalavra}"
/>
</p:column>