[ 
https://issues.apache.org/jira/browse/MYFACES-4268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16697738#comment-16697738
 ] 

Thomas Andraschko commented on MYFACES-4268:
--------------------------------------------

Found the example in the PF forum:



{code:java}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";
        xmlns:h="http://xmlns.jcp.org/jsf/html";
        xmlns:f="http://xmlns.jcp.org/jsf/core";
        xmlns:p="http://primefaces.org/ui";>

 <f:view>
  <h:head />
  <h:body>
        <p:commandButton title="Show" process="@this" update=":form" 
resetValues="true" oncomplete="PF('dialogWidget').show()" />
        <p:dialog id="dialog" widgetVar="dialogWidget" dynamic="true">  
            <h:form id="form">  
                                <p:outputLabel for="@next" value="Label" />
                                <p:inputText required="true" />
                                <p:commandButton value="Submit" update="@form" 
/>
            </h:form>  
        </p:dialog> 
  </h:body>
 </f:view>
</html>{code}

> Opening a dynamic dialog from a command with resetAttributes="true" makes a 
> duplicated POST request.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-4268
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4268
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.3.2
>            Reporter: Antgar
>            Priority: Minor
>
> If a dynamic dialog containing a form is oppened from a command with 
> resetValues set to true, two POST requests are made returning the same 
> information. It should be loaded only once.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to