Either submit the form to the new window (using target="windowName") or else
you will need to submit the form, then in the response generate JS that
opens a window to display the results.  Of course, the second option will
likely be blocked by many popup blockers because it isn't the direct result
of a user action.

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, Jan 18, 2010 at 2:27 PM, Jered Myers
<[email protected]>wrote:

> I need to process my Form and then popup a report in a new browser window
> with the result of the Form processing.  I would like to do this with one
> click from the user.  Any ideas if this solution is already built?  I tried
> to use Link with PopupSettings, but the form submit does not trigger and
> results in the form not being validated and the form component models not
> being updated with the user input.
>
> Here is a simplified example, in Form.onSubmit():
> {
>    int sum = userInput1 + userInput2;
>    PageParameters params = new PageParameters();
>    params.add("Total", String.valueOf(sum));
>
>    // I want the response in a new window
>    setResponse(new ReportPage(params));
> }
> --
> Jered Myers
> Programmer/Project Analyst
> [email protected] <mailto:[email protected]>
>
> Maplewood Software
> 508 W. 6th Ave, Suite 900
> Spokane, WA 99204
> (509) 252-3550 ext. 109
> www.maplewoodsoftware.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to