[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-4281) Conversations are not propagated to modal windows

Clint Popetz (JIRA) jira-events at lists.jboss.org
Wed Jul 1 10:19:51 EDT 2009


Conversations are not propagated to modal windows
-------------------------------------------------

                 Key: JBSEAM-4281
                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4281
             Project: Seam
          Issue Type: Bug
          Components: Wicket
    Affects Versions: 2.2.0.CR1
            Reporter: Clint Popetz
            Assignee: Clint Popetz
             Fix For: 2.2.1.CR1


Wicket does not use its own RequestCycleProcessor.respond when showing a ModalWindow, so the seam/wicket integration mechanism that propagates conversations doesn't propagate them to modal windows.

A workaround is to create the modal window with an anonymous subclass that puts the conversation id in the javascript that is appended for opening the window:

	    add(modalWindow = new ModalWindow("yourModalTitle") { 
	    	protected AppendingStringBuffer postProcessSettings(AppendingStringBuffer settings) {
	    		return settings.replace(0, Integer.MAX_VALUE, 
	    				settings.toString().replaceFirst("(settings.src=\"[^\"]+)\"", "$1&cid=" + org.jboss.seam.core.Manager.instance().getCurrentConversationId()+'"'));
	    	}
	    });


-- 
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

        



More information about the seam-issues mailing list