Forums Register Login

Confusing behaviour of partialTriggers in jsf

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 626 times.
Similar Threads
table and partial triggers
Component are not getting repainted - Trinidad PPR
Problem when using valuechange listener in input text
Partial Trigger is not working when the component is in a facet
A Javascript function is said as "Not a function"
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 00:17:16.