5 Replies Latest reply on Mar 9, 2009 5:06 AM by adubovsky

    modalpanel and include

    guimoz

      guys i have a datatable, and a modal with is included to my jsp, like this

      <f:subview id="modal">
       <a4j:outputPanel ajaxRendered="true">
       <a4j:include viewId="/jspf/modals/modalCidade.jsp" ajaxRendered="true"/>
       </a4j:outputPanel>
       </f:subview>


      this is the modal page
      <rich:modalPanel id="cidadeEdit" label="Cidades" >
       <h:form>
       <h:panelGrid id="cidadeinfo">
       <h:outputLabel for="inputCodigo" value="Codigo:"/>
       <h:inputText id="inputCodigo" readonly="true" value="#{mbCidade.cidade.codigo}"/>
       <h:outputLabel for="inputNome" value="Nome:"/>
       <h:inputText id="inputNome" value="#{mbCidade.cidade.nome}"/>
       <h:panelGrid columns="2">
       <a4j:commandLink onclick="#{rich:component('cidadeEdit')}.hide();return false">
       Fechar
       </a4j:commandLink>
       <a4j:commandLink actionListener="#{mbCidade.Salvar}"
       oncomplete="#{rich:component('cidadeEdit')}.hide()"
       reRender="nome">
       Salvar
       </a4j:commandLink>
       </h:panelGrid>
       </h:panelGrid>
       </h:form>
       </rich:modalPanel>





      this is the action

      <a4j:commandButton value="Editar"
       action="#{mbCidade.populaModal}"
       oncomplete="#{rich:component('cidadeEdit')}.show()"
       reRender="cidadeinfo">
       <a4j:actionparam id="paramEditar" name="paramEditar"
       value="#{cid.codigo}" binding="#{mbCidade.parametroTabela}"/>
       </a4j:commandButton>


      my action its a simply void that update on my database ...
      it just dont execute any action of my modal, ... like it doesn't exists

      why ?