Page redirection after XForms action

45 views
Skip to first unread message

hicham...@gmail.com

unread,
May 5, 2008, 5:45:46 PM5/5/08
to tempo-dev
Hello,

I would like to redirect the user to an external page once he/she
submits an XForm in the UI-FW. Where should I give this parameter ?

Thank you

Nicolas Modrzyk

unread,
May 5, 2008, 6:01:28 PM5/5/08
to temp...@googlegroups.com
Hi,
Welcome to tempo :)

How would you want this rediection to work ?
Do you want to always redirect to the same page ? or depending on the
submit action ?

Niko

hicham...@gmail.com

unread,
May 5, 2008, 6:52:56 PM5/5/08
to tempo-dev
Thanks. There maybe different cases. But let's say for now, I want to
redirect to the same page, a big "Thank You".

On May 5, 6:01 pm, "Nicolas Modrzyk" <hellon...@gmail.com> wrote:
> Hi,
> Welcome to tempo :)
>
> How would you want this rediection to work ?
> Do you want to always redirect to the same page ? or depending on the
> submit action ?
>
> Niko
>

hicham...@gmail.com

unread,
May 5, 2008, 6:55:41 PM5/5/08
to tempo-dev
I forgot to mention that I would like to have the XForm open in a new
window, not in the lower frame of the UI-FW....My purpose is I don't
want the user to come back to the UI-FW...

On May 5, 6:52 pm, "hicham.jel...@gmail.com" <hicham.jel...@gmail.com>
wrote:

Nicolas Modrzyk

unread,
May 5, 2008, 7:44:16 PM5/5/08
to temp...@googlegroups.com
we have quite a few actions possible as submit. (start process, claim,
revoke, complete, and dismiss in notification) ...
Do I understand you want to redirect the user to the same page,
whatever the action has been clicked on?

Niko

hicham...@gmail.com

unread,
May 5, 2008, 8:19:12 PM5/5/08
to tempo-dev
Let's say on Complete only. Do I have to work on the OPS pipelines ?

On May 5, 7:44 pm, "Nicolas Modrzyk" <hellon...@gmail.com> wrote:
> we have quite a few actions possible as submit. (start process, claim,
> revoke, complete, and dismiss in notification) ...
> Do I understand you want to redirect the user to the same page,
> whatever the action has been clicked on?
>
> Niko
>

Nicolas Modrzyk

unread,
May 5, 2008, 8:53:09 PM5/5/08
to temp...@googlegroups.com
in the exploded xforms-manager webapp, there ia file called act.xpl.

The original source code would be there:
http://tempo.intalio.org/tempo/trunk/xforms-manager/src/main/webapp/WEB-INF/workflow/formManager/act.xpl

and the lines you would want:
<!-- Display after submit done,
waiting for reply -->
<xforms:case id="refresh-all">
<xsl:if
test="doc('input:xpl-input')/task/reloadTaskList">
<xhtml:html>
<xhtml:body
onLoad="window.open('../../ui-fw/tasks.htm', '_parent')">
<xhtml:center>Wait for
refresh please...</xhtml:center>
<xhtml:center>
<xhtml:img
src="/images/loading.gif" alt="..."/>
</xhtml:center>
</xhtml:body>
</xhtml:html>
</xsl:if>
</xforms:case>

Would that suits your needs?

Niko

Oleg Zenzin

unread,
May 5, 2008, 9:22:43 PM5/5/08
to temp...@googlegroups.com
It looks for me as some sort of Chained execution, I'm not sure but it might be interesting to look into "nextTaskURL" use in complete-action.xpl.

Oleg

hicham...@gmail.com

unread,
May 6, 2008, 8:03:57 AM5/6/08
to tempo-dev
Thanks, it works !
I can then specify the redirection page.

On May 5, 8:53 pm, "Nicolas Modrzyk" <hellon...@gmail.com> wrote:
> in the exploded xforms-manager webapp, there ia file called act.xpl.
>
> The original source code would be there:http://tempo.intalio.org/tempo/trunk/xforms-manager/src/main/webapp/W...
>
> and the lines you would want:
> <!-- Display after submit done,
> waiting for reply -->
> <xforms:case id="refresh-all">
> <xsl:if
> test="doc('input:xpl-input')/task/reloadTaskList">
> <xhtml:html>
> <xhtml:body
> onLoad="window.open('../../ui-fw/tasks.htm', '_parent')">
> <xhtml:center>Wait for
> refresh please...</xhtml:center>
> <xhtml:center>
> <xhtml:img
> src="/images/loading.gif" alt="..."/>
> </xhtml:center>
> </xhtml:body>
> </xhtml:html>
> </xsl:if>
> </xforms:case>
>
> Would that suits your needs?
>
> Niko
>

hicham...@gmail.com

unread,
May 6, 2008, 8:06:32 AM5/6/08
to tempo-dev
I take this suggestion (chained execution) as a better approach since
it will let me adapt the page redirections depending on the workflow
step I'm in.
I beleive working on the *.xpl is interesting in simple cases, but
might reduce the possibilities.
On May 5, 9:22 pm, "Oleg Zenzin" <oleg....@gmail.com> wrote:
> It looks for me as some sort of Chained execution, I'm not sure but it might
> be interesting to look into "nextTaskURL" use in complete-action.xpl.
>
> Oleg
>
> On 5/5/08, Nicolas Modrzyk <hellon...@gmail.com> wrote:
>
>
>
> > in the exploded xforms-manager webapp, there ia file called act.xpl.
>
> > The original source code would be there:
>
> >http://tempo.intalio.org/tempo/trunk/xforms-manager/src/main/webapp/W...
>
> > and the lines you would want:
> > <!-- Display after submit done,
> > waiting for reply -->
> > <xforms:case id="refresh-all">
> > <xsl:if
> > test="doc('input:xpl-input')/task/reloadTaskList">
> > <xhtml:html>
> > <xhtml:body
> > onLoad="window.open('../../ui-fw/tasks.htm', '_parent')">
> > <xhtml:center>Wait for
> > refresh please...</xhtml:center>
> > <xhtml:center>
> > <xhtml:img
> > src="/images/loading.gif" alt="..."/>
> > </xhtml:center>
> > </xhtml:body>
> > </xhtml:html>
> > </xsl:if>
> > </xforms:case>
>
> > Would that suits your needs?
>
> > Niko
>

Oleg Zenzin

unread,
May 6, 2008, 1:48:48 PM5/6/08
to temp...@googlegroups.com
After re-reading the thread and based on your refined reqs it looks that Nico's solution should give you what you asked for, just change that onLoad script.
Down the road (redirect differently, depending on the process) you might be interested to use Chained Execution as well.

Oleg
Reply all
Reply to author
Forward
0 new messages