How do I load a "dialog" from the IceFaces framework with the data to edit it?  XML
Forum Index -> General Help
Author Message

Joined: 27/Oct/2016 10:34:42
Messages: 1

This is the button that when triggered should bring the completed description field to do editing, but it is not loading.
<h:commandButton image="/resources/icones/pencil.png"
<f:attribute name="setorSelecionado" value="#{setor}" />

This is the dialog that serves to register and also to edit.
<ace:dialog header="Setores - Cadastro" id="dialogo"
binding="#{dialogo}" draggable="false" resizable="false" modal="true"
closable="false" showEffect="explode" hideEffect="puff" width="400">
<h:panelGrid columns="2" width="100%">
<h:outputLabel value="Descrição" />
<ace:textEntry value="#{setorBean.setor.descricao}" />

<h:panelGrid columns="2" width="100%" style="text-align: center;">
<h:commandButton id="submit" value="Salvar"
actionListener="#{setorBean.salvar}" />
<h:commandButton id="fechar" value="Fechar"
onclick="ice.ace.instance('#{dialogo.clientId}').hide();" />

Joined: 21/Mar/2007 00:00:00
Messages: 177

For that to work, you have to declare the ace:dialog component in the same row, preferably in the same column as the button, so that it can have its own unique client id to be accessed by ice.ace.instance and to be able to access that row data specifically.


Art Zambrano
ICEsoft Technologies Inc.
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team