This discussion is archived
3 Replies Latest reply: Jan 7, 2013 12:48 PM by benz RSS

value not getting in ValueListner

benz Newbie
Currently Being Moderated
Hi,
I am new in ADF I am trying to show the Inputtext filed data in the message when it leave the field itm3. but it give me null value even though I entered the value but I work when I put the same code on the button on ActionListner.
Please tell me how can I access the value i have already created accessor for this inputtext item.
<af:inputText label="Trailer Number" id="it3"                            
                            valueChangeListener="#{pageFlowScope.managedBean1.fetch_data}"
                            autoSubmit="true"/>
    public String showMessage(String messageText) {
    FacesMessage val = new FacesMessage(messageText);
 
    fm.setSeverity(FacesMessage.SEVERITY_INFO);
    FacesContext context = FacesContext.getCurrentInstance();
    context.addMessage(null, val);
    return null;
    }
 public void fetch_data(ValueChangeEvent valueChangeEvent) {
   showMessage(it3);
}

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points