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

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


This is the button that when triggered should bring the completed description field to do editing, but it is not loading.
[code]<ace:column>
<h:commandButton image="/resources/icones/pencil.png"
onclick="ice.ace.instance('#{dialogo.clientId}').show();"
actionListener="#{setorBean.editar}">
</h:commandButton>
<f:attribute name="setorSelecionado" value="#{setor}" />
</ace:column>

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>

<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();" />
</h:panelGrid>
</ace:dialog>
artzambrano

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


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

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