Sign in

E-mail *, (xx@domain.com)
Password *

Register | Forgot password

End of flow not doing its job

The "WCB: JSP front-end design" forum contains threads on issues that are related to JSP front-end design while programming a WCB (WebManager Component Bundle). The Presentation & Element component contain JSPs that will be used for front-end rendering. Ask your questions related to these JSPs here. Some example topics: integration of AJAX, use of the taglibs, how to handle multiple websites, and so forth.

Answered
Not marked as answered yet

Forums  >  WCB: JSP Front-end design  >  End of flow not doing its job


Author End of flow not doing its job
ronaldz


Posts: 11

Posted: 30-08-2010 10:45

Hi all,

I have a problem with a 'Mail a friend' form I created. Here's what's happening:

1. User visits an article and clicks 'Mail a friend'
2. User is presented a form, fills this form correctly
3. After clicking 'Send' the form is handled and an e-mail is sent to a friend
4. User visits a different article and clicks 'Mail a friend' again
5. User is presented with the form, but all fields are filled... This should not be the case.

Now the first thing that popped to my mind when I saw this 'bug', was: 'End of flow!'. However, in the 'Flow' tab of the form, I can see a mailhandler and a requestrouter that sends the user back to the previous page, with 'endofflow' enabled.

When I view the article with xmldebug I can see the flow of the form visible, which shouldn't be the case as endofflow is enabled.

Think I'm missing out on a detail here, any clues as to why the form is still filled and available in xmldebug?

williamb



Posts: 310

Posted: 30-08-2010 21:03

I wonder.

Could you connect the form-logger on /web/admin/log, check what the 'formdefinition url' is, and request that one?

Is the end-of-flow in here?

p.s. How did you create it? Any idea's for https://connect.gxsoftware.com/Forums/Forum-JSP-Front-End-Development....

ronaldz


Posts: 11

Posted: 31-08-2010 12:10

Hi William,

Thanks for your response. I do spot something strange in the formdefinition. It contains two routers at the end:

<component>
<!--
Rule: "Terug naar vorige pagina" id:40996, wu_form_rule instance id:141077
-->
<classname>
nl.gx.webmanager.handler.forms.routing.RequestRouter
</classname>
<parameter>
<name>requestparameter</name>
<value>orgurl</value>
</parameter>
<parameter>
<name>endofflow</name>
<value>true</value>
</parameter>
</component>
<!-- Automatically added router to the original page. -->
<component>
<classname>
nl.gx.webmanager.handler.forms.routing.RequestRouter
</classname>
<parameter>
<name>requestparameter</name>
<value>originalurl</value>
</parameter>
<parameter>
<name>endofflow</name>
<value>false</value>
</parameter>
</component>

This is strange, as there's only one router defined..

Back to top

New message: "End of flow not doing its job"
Message:
bold boitalicd underline url quote code smile cool eek grin mad razz sad wink
 
© 2012 GX Software B.V.

Disclaimer

This website (Connect.gxsoftware.com) may discuss or contain opinions, (sample) coding, software or other information that does not include GX official interfaces, instructions or guidelines and therefore is not supported by GX. Changes made based on this information are not supported.  GX will not be held liable for any damages caused by using or misusing the information, software, instructions, code or methods suggested on this website, and anyone using these methods does so at his/her own risk. GX offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this website, including any liability resulting from incompatibility between the content of this website and the materials and services offered by GX. By using this website you will not hold, or seek to hold, GX responsible or liable with respect to the content of this website.