There poll event on my jsf page which calls a pool event. There is a variable called i with getters and setters and i want to show the value of i on the page. each time the bean is called by the poll event the value of i changes. so I tried using the below code on my jsf page but its not showing any value. Any idea of wat i am doing wrong?
af:outputText value="#{UserChoiceInput.i}" id="ot1"
Bean()
{
private string i ;//edited
public void callPollTimer(PollEvent pollEvent)
{
//code for changing value of i
}
public void seti(String i) {
this.counti = i;
}
public String geti() {
return i;
}
}
Faces-config
<managed-bean id="__2">
<managed-bean-name>UserChoiceInput</managed-bean-name>
<managed-bean-class>oracle.insurance.viking.questionnaire.view.backing.UserChoiceInput</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
I forgot to partial refresh the component(OutputText component) after assigning the value to the component pro-grammatically that’s why it was not rendering.