p:dialog quando setado para show() fica visivel por um tempo

UI Components for JSF
Post Reply
anibaldiniz
Posts: 1
Joined: 05 Jun 2010, 03:16

05 Jun 2010, 03:28

Olá pessoal, estou usando um p:dialog dentro de outro, um sempre visível e o outro inicialmente invisível. Quando um botão faz nome.show() do segundo, ele aparece, fica um tempo visível e depois desaparece...... alguma dica...??????

Obridado.

Code: Select all

<h:form id="principal" prependId="false">
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateProjetoLabel_idProjeto}" for="idProjeto" />
                    <h:inputText id="idProjeto" value="#{projetoController.selected.nome}" title="#{bundle.CreateProjetoTitle_idProjeto}" required="true" requiredMessage="#{bundle.CreateProjetoRequiredMessage_idProjeto}"/>
                    <h:outputLabel value="#{bundle.CreateProjetoLabel_idTipo}" for="idTipo" />
                    <h:panelGroup>
                        <h:selectOneMenu id="idTipo" value="#{projetoController.selected.idTipo}" title="#{bundle.CreateProjetoTitle_idTipo}" >
                            <f:selectItems value="#{tipoProjetoController.itemsAvailableSelectOne}"/>
                        </h:selectOneMenu>
                        <h:commandLink immediate="true" onclick="novoTipoProjeto.show();" >
                            <h:graphicImage title="Listagem" url="../../images/toggle_blue.png"/>
                        </h:commandLink>
                    </h:panelGroup>
                    <h:outputLabel value="#{bundle.CreateProjetoLabel_idContaBancaria}" for="idContaBancaria" />
                    <h:selectOneMenu id="idContaBancaria" value="#{projetoController.selected.idContaBancaria}" title="#{bundle.CreateProjetoTitle_idContaBancaria}">
                        <f:selectItems value="#{ccBancoContaController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateProjetoLabel_idFundacao}" for="idFundacao" />
                    <h:selectOneMenu id="idFundacao" value="#{projetoController.selected.idFundacao}" title="#{bundle.CreateProjetoTitle_idFundacao}" required="true" requiredMessage="#{bundle.CreateProjetoRequiredMessage_idFundacao}">
                        <f:selectItems value="#{fundacaoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="Data Início" for="inicio" />
                    <p:inputMask id="inicio" value="#{projetoController.selected.dataInicio}" title="Data Início" mask="99/99/9999" required="true" requiredMessage="Preencha a data de início">
                        <f:convertDateTime pattern="dd/MM/yyyy" />
                    </p:inputMask>
                    <h:outputLabel value="Data Previsão Término" for="previsaoTermino" />
                    <p:inputMask id="previsaoTermino" value="#{projetoController.selected.dataPrevisaoTermino}" title="Data Previsão Término" mask="99/99/9999" required="true" requiredMessage="Preencha a data de previsão de término">
                        <f:convertDateTime pattern="dd/MM/yyyy" />
                    </p:inputMask>
                </h:panelGrid>

                <p:dialog widgetVar="novoTipoProjeto" underlay="shadow" >
                    <form>
                        <ui:include src="/atendentes/tipoProjeto/CreateParcial.xhtml"/>
                    </form>
                </p:dialog>
                <br />

                <h:commandLink action="#{projetoController.create}">
                    <h:graphicImage url="../../icones_gran/Symbol-Check.png"/>
                </h:commandLink>
                <h:commandLink action="#{projetoController.prepareList}" immediate="true">
                    <h:graphicImage url="../../icones_gran/bt_listar.png"/>
                </h:commandLink>

                <h:commandLink action="#{cp.doVoltar}"  immediate="true" >
                    <h:graphicImage url="../../icones_gran/bt_voltar.png"/>
                </h:commandLink>
            </h:form>

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

05 Jun 2010, 10:56

Hi,

This forum is English.

User avatar
boscooo
Posts: 55
Joined: 07 Apr 2010, 15:48
Location: Brazil

05 Jun 2010, 19:12

Translating to English...

"Hi folks, i'm using one p:dialog inside another, the first is always visible and the other is not initiallly visible. When one button do 'nome.show()' of the second, it shows, stay a while and them disappears.... any tips?????

Thanks.
"
Last edited by boscooo on 07 Jun 2010, 20:23, edited 1 time in total.
JBoss Seam 2.2.0 GA Web Framework
Mojarra 1.2_15-SNAPSHOT JSF Implementation
PrimeFaces 1.0.2 Final
RichFaces 3.3.3 Final
JBoss AS 4.2.2 GA

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

07 Jun 2010, 12:24

Thanks for the translation, I'd suggest avoiding using nested p:dialogs.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests