I have a datatable with a column button that fires a dialog modal and a .properties file with the various id's of the application pages.
Column example:
<p:column style="width:32px;text-align: center">
<p:commandButton icon="ui-icon-search" headerText="Detail" update=":form_datatable:dialog_datatable" oncomplete="PF('dialog_datatable').show()">
<f:setPropertyActionListener value="#{row}" target="#{testBean.selectedRow}" />
</p:commandButton>
</p:column>
Propierties:
application.table.dialog=dialog_datatable
I just want to avoid hardcoding the oncomplete="PF('dialog_datatable').show()" and use .propierties inside of the EL expresion. There is any posible way?
Like: oncomplete="PF(#{app.['application.table.detail']}).show()"
EDIT: @BalusC Isn't the same type of question, the other one is using a var="" inside the same xhtml datatable, im trying to use a .propierties file to don't hardcode id/widgetVar.
EDIT2: After some research in my free time i finally found a way to do it, is better than hardcode it. (i don't know how i can answer my own question...)
<ui:param name="var_dialog" value="#{app['application.table.dialog']}" />
<p:commandButton icon="ui-icon-search" update=":form_city:dialog_city" oncomplete="PF('#{var_dialog}').show()">