Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 25th, 2012  |  syntax: None  |  size: 0.59 KB  |  hits: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to set value of icefaces inputTextarea control
  2. <ice:inputTextarea binding="#{easp$RecordSearch.repairRemark}" id="repairRemark"
  3.   partialSubmit="true" style="height:40px; width:100%;" />
  4.        
  5. //bean
  6. private HtmlInputTextarea repairRemark = new HtmlInputTextarea();
  7. public HtmlInputTextarea getRepairRemark() {
  8.     return repairRemark;
  9. }
  10. public void setRepairRemark(HtmlInputTextarea hit) {
  11.     this.repairRemark = hit;
  12. }
  13.  
  14. ....
  15. public String button3_action() {
  16.     ...
  17.  
  18.     //code that sets value
  19.     String myVal = "new value";
  20.     this.repairRemark.setValue(myVal);
  21.  
  22.     ...
  23.     return null;
  24. }