0

I want to select the execution of one method or another with EL.

Is it possible to do it?

    <p:commandButton icon="fa fa-save"  
         value="#{bean.disabledProperty == false? 'Save':'Update'}"
         actionListener="#{bean.disabledProperty == false? 'bean.save()':'bean.update()'}"
         oncomplete="PF('widgetDialog').hide(),PF('widgetDT').clearFilters()"
         update="dataForm" />
QA_Col
  • 1,095
  • 9
  • 23

0 Answers0