ADF : public class xx {
private
String MSG;
private String txt;
private Color col;
public xx() {
}
public String b1_action() {
setCol(Color.green);
Only here is the problem ...... click the button no action . can take the value but can not display it on browser !!!
setMSG("Welcome to ADF controls");
return null;
}
public void setMSG(String MSG) {
this.MSG = MSG;
}
public String getMSG() {
return MSG;
}
public void setTxt(String txt) {
this.txt = txt;
}
public String getTxt() {
return txt;
}
public void setCol(Color col) {
this.col = col;
}
in jspx file :
<af:form id="f1">
<af:panelFormLayout id="pfl1">
<af:button text="Go 1" id="b1" action="#{yy.b1_action}"/>
<af:inputText id="it1" value="#{yy.txt}" label="name" rendered="true"/>
<af:outputText value="Hhhhhhhhhhhhhhhhhhhhhhhhhhhh" id="ot1" inlineStyle="color:#{yy.col};"/>
<af:inputDate label="Label 1" id="id1"/>
</af:panelFormLayout>
</af:form>