This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Confusing behaviour of partialTriggers in jsf

 
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: 18419
60
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!