Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Confusing behaviour of partialTriggers in jsf  RSS feed

 
Bhawna Gupta
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When i added id of same button on partial trigger to disable it.Like,
<tr:commandButton text="Do Something"
id="myButton"
partialSubmit="true"
partialTriggers="myButton"
actionListener="#{myBean.doSomething}"/>

Then some of my javascrit function did not call .
But when i removed partialTriggers="myButton" from commandbutton then js function called.Do not get this point.
Anybody who know this answer please help me.
Thanks in advance.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There doesn't seem to be any JavaScript attached to your example.

On the other hand, your action method will only fire if EACH and EVERY control on the form containing that button has a valid value in it. JSF won't permit processing data that isn't 100% valid.

The partialSubmit option allows the command button to only send selected form values instead of all of them. In that case, only the values that were actually sent have to be valid.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!