Announcement Announcement Module
No announcement yet.
Popup window from a webflow page. Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Popup window from a webflow page.


    My requirement is:

    I have a button- revoke on all page & from any page user can revoke the rights by clicking that button. Once revoke, user wont see 'revoke' button on further pages.

    Clicking 'Revoke' button opens new popup window and base/parent window should freeze until user
    clicks - 'Yes' or closes the window without clicking.
    If user clicks 'Yes' , popup closes and parent page is re-rendered with 'Revoke' button gone on that page and further pages.

    I am using SWF2.0 and JSPs and have a template jsp with revoke button which is inherited by all other jsps.
    Thus it appears everywhere.

    I have this view defined in tiles(revokeView) which should be rendered but it does not open up in popup window but
    in main web flow page only.

    In my template.jsp, revoke event should invoke 'revoke' view state
    	<c:if test="${showRevoke== 'true'}">
    		  	<td align="center">	
    			<input  title="Revoke"  	type="submit" 	 name="_eventId_revoke" />
    	<view-state id="revoke" view="revokeView" popup="true" redirect="true">
            <transition on="cancel" to="cancel"/>
            <transition on="revoke" to="revoke"/>
    Please suggest where am in wrong here and what else is required to make it work.