• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scope Interceptor

 
Nick Sher
Ranch Hand
Posts: 78
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am having some difficulty using scope interceptor. I have getter and setter for 'dBean' in my action class and I want to keep it in a session.

I have tried this:


I am using the above action to reset the form but its not working. What am I missing?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess I'm a little confused; you want to keep something in session, but you're removing it from session after the action executes?
 
Nick Sher
Ranch Hand
Posts: 78
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, this is because it is a wizard like form and in between if the user wants to reset the form then I should remove whatever was there in the session. or else save it.
 
Patrick Kok
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nick Sher wrote:Hi,

I am having some difficulty using scope interceptor. I have getter and setter for 'dBean' in my action class and I want to keep it in a session.

I have tried this:


I am using the above action to reset the form but its not working. What am I missing?


Your form is rendered BEFORE your session "dBean" value is invalidate().
your form will never be reset at that way, if I understand you clearly.
 
Nick Sher
Ranch Hand
Posts: 78
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, then how do I achieve what I want. I am unable to follow the documentation for this interceptor and could not find examples. Please help.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic