i have a login.jsp which has a 'Login' link which pops a netui window via a
nested pageflow.

the use case is almost the same as the popupWindows sample, but i would like
to automatically
submit the form once the popup window values has been returned to login.jsp.

currently, the user has to press the submit button in login.jsp.

http://beehive.apache.org/docs/1.0.1/netui/popupWindows.html

does anyone have any suggestions for a way to achieve this?

many thanks,
scott

<login.jsp>
...
       <c:otherwise>
           <netui:form action="login" >
               <netui:hidden dataSource="actionForm.submitted"
tagId="r_submitted" />
               <netui:hidden dataSource="actionForm.username"
tagId="r_username" />
               <netui:hidden dataSource="actionForm.password"
tagId="r_password" />
               <netui:hidden dataSource="actionForm.persist"
tagId="r_persist" />
               <netui:anchor action="getLoginForm" popup="true"
value="Login">
                   <netui:configurePopup onPopupDone="alert('closing
popup');"
                       updateFormFields="true" resizable="true" width="500"
height="350">
                       <netui:retrievePopupOutput tagIdRef="r_submitted"
dataSource="outputFormBean.submitted" />
                       <netui:retrievePopupOutput tagIdRef="r_username"
dataSource="outputFormBean.username" />
                       <netui:retrievePopupOutput tagIdRef="r_password"
dataSource="outputFormBean.password" />
                       <netui:retrievePopupOutput tagIdRef="r_persist"
dataSource="outputFormBean.persist" />
                   </netui:configurePopup>
               </netui:anchor>
               <netui:button type="submit" value="Submit"
tagId="r_submit"/>
           </netui:form>
       </c:otherwise>
...
</login.jsp>

<loginPopup.jsp>
...
   <netui:form action="done">
       <netui:hidden dataSource="actionForm.submitted" tagId="r_submitted"
dataInput="true" />
       <div>
       <table>
           <tr valign="top">
               <td><label for="r_username"> Username: </label></td>
               <td><netui:textBox dataSource="actionForm.username"
tagId="r_username" /></td>
           </tr>
           <tr valign="top">
               <td><label for="r_password"> Password: </label></td>
               <td><netui:textBox dataSource="actionForm.password"
tagId="r_password" password="true" /></td>
           </tr>
           <tr valign="top">
               <td><netui:checkBox dataSource="actionForm.persist"
tagId="r_persist" /></td>
               <td><label for="r_persist"> Remember me on this computer.
</label></td>
           </tr>
       </table>
       </div>
       <netui:button type="submit" value="submit"/>
       <netui:button type="submit" action="cancel" value="cancel" />
   </netui:form>
  ...
</loginPopup.jsp>

Reply via email to