• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

color value for outputtext from bean not working

 
Greenhorn
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(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>
 
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!