Ich habe identische Aktionen für commandLink und commandButton. CommandLink funktioniert jedoch wie erwartet. Aber mit commandButton tritt keine Aktion auf. Fehle ich Syntax?Primefaces commandLink funktioniert aber nicht commandButton
<p:commandLink value="Submit" action="#{beanController.getStr(strSearch)}" ajax="false"/>
<p:commandButton value="Submit" actionListener="#{beanController.getStr(strSearch)}" ajax="false"/>
Wollen Sie keine Navigation stattfindet? Wenn ja, haben Sie vor, "action" anstelle von "actionListener" in Ihrem 'commandButton' zu verwenden? – PDStat
Danke, das war es. Es funktioniert jetzt. – Moe