RE: TEXTAREA element and Barracuda
Kirk Daries <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <D09B591872D1D611AF2B0010B5A1AAD05D420F@WCSMAIL> |
Hi Timo, Instead of creating a BComponent... Use a BText. You could use the BText Contructor to pass in the Text. Or use the 'setText' method. Regards KD -----Original Message----- From: Timo H Jarvinen [mailto:[email protected]] Sent: 02 May 2003 04:28 To: [email protected] Subject: RE: [Barracuda] TEXTAREA element and Barracuda Hi Kirk, How can I set a value for the element? Regards, Timo At 15:40 2.5.2003 +0200, Kirk Daries wrote: >Hi, > >At the moment... this is how I create a textArea. > >} else if (key.equals("Note")) { > Document doc = vc.getTemplateNode().getOwnerDocument(); > Node targetNode = doc.createElement("TEXTAREA"); > View view = new DefaultView(targetNode); > BComponent b = new BComponent(); > b.setView(view); > b.setName("p_note"); > b.setAttr("class","TextBox"); > b.setAttr("id","M,NOTE"); > b.setAttr("cols","30"); > b.setAttr("rows","3"); > return b; > >HTH >Regards >KD > >-----Original Message----- >From: Diez B. Roggisch [mailto:[email protected]] >Sent: 02 May 2003 02:20 >To: [email protected] >Subject: Re: [Barracuda] TEXTAREA element and Barracuda > > >Timo H Jarvinen wrote: > > > Hi, > > > > How can I create a TEXTAREA element using Barracuda? I can't find a > > suitable component. > >I think in the repopulation example in my contrib-package I feature a >repopulated text-area. > >Diez > > > >_______________________________________________ >Barracuda mailing list >[email protected] >http://barracudamvc.org/lists/listinfo/barracuda >_______________________________________________ >Barracuda mailing list >[email protected] >http://barracudamvc.org/lists/listinfo/barracuda _______________________________________________ Barracuda mailing list [email protected] http://barracudamvc.org/lists/listinfo/barracuda