[
https://issues.apache.org/jira/browse/WICKET-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467141
]
Marc-Andre Houle commented on WICKET-206:
-----------------------------------------
The problem was that I wanted the pop-up window to change the page displayed in
the main window(the one that open the pop-up)
Because of the null name, the window.name and the pagemap name was not in
synched and the window.name is "hardcoded" to wicket:default. I think that it
should not do an hard-code to set the window name since everywhere else, the
window.name is the same as the pagemap name.
I don't know if you follow me. If not, I'll provide more details. This is not
directly a problem, it is just inconsistent with the window.name value....
See this page for a code example :
http://cwiki.apache.org/WICKET/how-to-redirect-page-from-a-pop-up.html
> Default page map is null, should be set to something more usable
> ----------------------------------------------------------------
>
> Key: WICKET-206
> URL: https://issues.apache.org/jira/browse/WICKET-206
> Project: Wicket
> Issue Type: New Feature
> Components: wicket
> Affects Versions: 1.2.4
> Environment: JBoss, windows 2k
> Reporter: Marc-Andre Houle
> Priority: Minor
>
> Related to thread :
> http://www.nabble.com/From-pop-up%2C-page-link-to-change-the-parent-wihtout-changing-the-popup-tf2966574.html
> Problem is to open a pop-up and change page in the calling page. To do that,
> we used BookmarkablePageLink. This one need to set a PageMap and set the
> attribute target to the page map of the calling page.
> When in the calling page, you can get the pageMap name by doing a :
> getPage().getPageMap().getName().
> the problem is that the default page map have a name set to null by default.
> this can be resolved (I Think, but not sure) by changing the DEFAULT_NAME in
> PageMap to something else than null. The other possibility is to add a
> method in webpage called getwindowname() that would return the window name,
> which is the default name for the default pageMap.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.