What's your problem?

Sven

On 10/25/2013 10:40 AM, ha...@dds.nl wrote:
Dear Wicketeers,

I am puzzling how to break out of an inlineFrame ( IFrame ) on an form submission. I have an a Form in a InlineFrame. The result of submitted this form should be opening a new tab/ page.

The code:

Form form = new Form("form")

....

AjaxSubmitLink submitButton = new AjaxSubmitLink("submitButton", form) {

    @Override
    protected void onSubmit(AjaxRequestTarget target, Form<?> form) {


getRequestCycle().scheduleRequestHandlerAfterCurrent(new RedirectRequestHandler(newUrl));
    }
  }

HTML:

<form wicket:id="form" id="form" method="get" target="_blank">
....
<span class="button link"> <input wicket:id="submitButton" type="submit"/>
</form>


Has anyone dealt with such an issue or has any pointers how to approach this issue?

Regards,

Haiko









---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to