[
https://issues.apache.org/jira/browse/WICKET-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521069
]
wensveen edited comment on WICKET-12 at 8/20/07 6:27 AM:
------------------------------------------------------------------
Nobody is saying that this should be done without javascript, just without Ajax!
When a page is shown that has a modal window that needs to be open without some
user action that provides an AjaxRequestTarget, this is very hard to do. A
workaround would be to use AjaxSelfUpdatingTimerBehavior and use that target to
open the window, but this is slightly ugly.
Unfortunately ModalWindow.getWindowOpenJavaScript is private, otherwise a
subclass could use that to output to the response (onLoad or onDomReady or
something).
Edit: Oops, I think I'm saying exactly the same thing as Johan Compagnier is...
sorry 'bout that :S
was (Author: wensveen):
Nobody is saying that this should be done without javascript, just without
Ajax!
When a page is shown that has a modal window that needs to be open without some
user action that provides an AjaxRequestTarget, this is very hard to do. A
workaround would be to use AjaxSelfUpdatingTimerBehavior and use that target to
open the window, but this is slightly ugly.
Unfortunately ModalWindow.getWindowOpenJavaScript is private, otherwise a
subclass could use that to output to the response (onLoad or onDomReady or
something).
> open Modal Window without AjaxRequestTarget
> -------------------------------------------
>
> Key: WICKET-12
> URL: https://issues.apache.org/jira/browse/WICKET-12
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.2.6, 1.3.0-beta1, 2.0 branch (discontinued)
> Reporter: J.W. Janssen
> Assignee: Johan Compagner
>
> Wicket 1.2.2 included a new Modal Window component. However, this component
> can only be used with a valid AjaxRequestTarget. It would be useful if Modal
> Windows could be opened programmatically at any time without an
> AjaxRequestTarget.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.