[ 
https://jira.jboss.org/jira/browse/RF-5672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nick Belaevski resolved RF-5672.
--------------------------------

    Resolution: Won't Fix
      Assignee: Tsikhon Kuprevich


Form should be inside modalPanel and not outside. Nested forms are not allowed 
also.

> bean not getting updated on action
> ----------------------------------
>
>                 Key: RF-5672
>                 URL: https://jira.jboss.org/jira/browse/RF-5672
>             Project: RichFaces
>          Issue Type: Task
>    Affects Versions: 3.2.1
>            Reporter: Prateek Agarwal
>            Assignee: Tsikhon Kuprevich
>
> Im using modal panel and have a inputText where i enter the data.
> the data needs to be validated ( i m performing server side validation 
> ).After the data is validated the panel needs to be closed and the data is 
> stores in DB.
> the problem i m facing is if onclick i dont hide the modalpanel the data 
> entered in textbox is not updated in the bean and the requirement is that i 
> should not close the panel until and unless i validate that the data is 
> correct.
> now if i hide the panel onclick the data gets updated in the bean.
> here is the code.
> <body>
>     <h:form id="travelform" >
>     <rich:modalPanel id="travelPanel" moveable="true" width="450" 
> height="150" >
>         <f:facet name="controls">
>             <h:commandButton image="images/remove2.gif" 
> onclick="Richfaces.hideModalPanel('travelform')"/>
>         </f:facet>
>          <table>
>             <tr>
>               <td><table>
>                   <tr>
>                     <td>
>       <h:inputText id="name" styleClass="textbox4" 
>                        value="#{Travel.name}" />
>       </td>
>                   </tr>
>       <tr>
>                     <td>
>       <a4j:commandButton value="#{bundle.mc_save_button}"
>       id="save"
>       action="#{Travel.save}"
>       onclick="javascript:Richfaces.hideModalPanel('travelform');  (Note : I 
> dont want this line becoz i dont want to hide my panel until my validation is 
> done )
>                       javascript:Richfaces.showModalPanel('processing');"
>       oncomplete="if (# {! (empty facesContext.maximumSeverity)})
>               javascript:Richfaces.hideModalPanel('processing');
>               javascript:Richfaces.showModalPanel('errorPanel');
>       }else{
>               javascript:Richfaces.hideModalPanel('processing');
>               javascript:Richfaces.hideModalPanel('travelform');
>       };"
>       reRender="errorPanel">
>                   </a4j:commandButton></td></tr>
>                 </table></td>
>             </tr>
>           </table>
>      </rich:modalPanel>
> </h:form>
> </body>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to