Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

color value for outputtext from bean not working  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ADF : public class xx {
    private String MSG;
    private String txt;
    private Color col;

    public xx() {

    public String b1_action() {
        setCol(;  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"/>
                    <afutputText value="Hhhhhhhhhhhhhhhhhhhhhhhhhhhh" id="ot1" inlineStyle="color:#{yy.col};"/>
                    <af:inputDate label="Label 1" id="id1"/>
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!