Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

page flow question

 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, i have two page flows is it possible to jump from one page flow to another page flow. And is it correct that the variables will be shared across the page flows. thanks again
 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Per my understanding, page flow is a bunch of related pages and actions for a certain business logic.

I am wondering why you have the requirement of jumping from one page flow to another. Or you mean communication?

Thanks

Lin
 
Cyrus Serrano
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi lin, the application was divided into page flows, meaning common(name) scripts were grouped together. So for example in Flow # 1 page A will jump to Flow # 2 page D. something like that.

But i get your point on application design that one page flow for a certain business logic. thanks

Any idea on how to attain my first question.

thanks again
 
Cyrus Serrano
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
any one has an idea if this is possible.. thanks
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I wouldn't use globalApp for much of anything really. Try using request attributes (or parameters for non sensitive info) to pass data between flows.

 
Cyrus Serrano
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi kevin

thanks for that info. i didn't know that..

can i use session variables instead?

all thorough out the web application that variable is to be accessed much like a login information of a user like password and username which will be accessed anytime or anywhere of the web application.

i tried it, but it prompts an error.. it says about something about binding..
[ September 15, 2006: Message edited by: Cyrus Serrano ]
 
Kevin Conaway
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the error your getting? Please paste

I wouldn't use session variables for communicating between page flows.

Kevin
 
Cyrus Serrano
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i was able to make it work now.

previous code

<netui:textbox datasource={pageFlow.globalApp.sessionVar.Input1}/>

into

<netui:textbox datasource={globalApp.sessionVar.Input1}/>

by removing the pageFlow keyword, it worked fine now.

Additional question, is it a good design to jump from one page flow to another page flow and not starting on the begin action, but rather jumping to a jsp.

@Kevin,

what would you recommend to use rather than session variables. thanks.

Also this was the previous error..

Caught exception when evaluating expression "{pageFlow.globalApp.callVars.inputA}" with available binding contexts [actionForm, pageFlow, globalApp, request, session, appication, pageContext, bundle, container, url, pageInput]. Root cause: knex.scripting.javascript.EvaluatorException: The undefined value has no properties.

[ September 20, 2006: Message edited by: Cyrus Serrano ]
[ September 20, 2006: Message edited by: Cyrus Serrano ]
 
Get off me! Here, read this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic