Hey Scott, One option might be to provide your own JavaScript function to be called when the popup window closes (the onPopupDone attribute of the netui:configurePopup tag). Your routine could get the fields from the map passed to your routine and then do submit. And the other option would be to design your nested flow for the popup to do the actual submit of the login then the value returned to the original flow could be the status of the login or the username to display.
Good luck with this. Carlin On 9/11/06, Scott Symmank <[EMAIL PROTECTED]> wrote:
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>
