on page load
How to reset on page load? Using JSF or onClick event of a CommandButton
Please post here an example either in Javascript or Ajax
Please some one help me for th
You can clear the value of the checkbox in the constructor.
This is how your checkbox might look:
When the checkbox is checked, value1 becomes true. In the constructor of the bean class, you make value1 false.
You bean class:
Class BeanClass
{
private boolean value1;
public BeanClass()
{
value1 = false;
//Someother statements might follow.
}
public boolean getValue1()
{
return value1;
}
public void setValue1(boolean value1)
{
this.value1 = value1;
}
}
Notice that I have set the value of value1 to false in the constructor, which gets called on page load, thereby rendering false in the primeface tag. Hope this helps.