Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with action + parameters

 
Polo Pawel
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have one action like this:


and one interceptor with class which check that session exists:





I have problem with passing parameter "id",
when class zdr.ListaZdr runs in the parameter is null,
but when I switch off interceptor the parameter has a true value.

Where is the problem?

Sorry for my English.
Polo
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you define interceptors for an action you must define *all* of the interceptors for an action. So currently, when you configure the interceptor in your action config, you're running only the single interceptor--meaning the "params" interceptor isn't running, so no parameters are set.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic