• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Action method never gets called

 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have identified a problem with my app which really puzzles me:

When I specify programmatically whether a command button should be rendered, the action method never gets called whereas the button does get rendered. See below:



When I specify declaratively whether the button should be rendered, the action method does get called. See below:



What I am missing?

Thanks in advance,

Julien.
 
Gabriel Claramunt
Ranch Hand
Posts: 375
Monad Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Weird, almost look like a bug.
Can you post the line as rendered in HTML in the page?
It would be interesting to see what is submitted in each button...
 
Tak Ng
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have any validation on the fields of your form? If a validation fails, your action method will not get called.

Anyway, you nice to post the HTML code and the java class linked to it in order for anyone to help you.
 
Gabriel Claramunt
Ranch Hand
Posts: 375
Monad Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tak Ng:
Do you have any validation on the fields of your form? If a validation fails, your action method will not get called.

Anyway, you nice to post the HTML code and the java class linked to it in order for anyone to help you.

You're right, maybe is a validation problem... maybe ContractManagedBean.contractForUpdate doesn't evaluate to boolean?? (just a wild guess)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic