• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Web Flow View state identification parameter at client side

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a query regarding spring web flow.
Is there any way i can determine what view state the user is shown at client side. i mean is there any parameter that is present in the flow/request scope which i can use in my jsps to get the value of the view state.
I know it can be done by setting a property in the form bean with a value for each view and using that property in the JSPs, i was kind of thinking whether spring web flow provides that by default.

~ Moin
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use flowRequestContext, take look at RequestContext API.
 
Moin Yadageri
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
requescontext would give me the view name in the action classes, i was looking at a view identifier which i can use in my JSP.
Something similar to flowExecutionKey (which i can access using ${flowExecutionKey}), i was looking for a property present in flow/request scope which can identify the view state rendered.

~ Moin
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use RequestContext.getCurrentState().getId(). Is that what you want?
 
Moin Yadageri
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

i was able to identify the view state using the flowexecutionContext object in the jsp, ${flowExecutionContext.activeSession.state.id}.

Thanks.

~ Moin
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic