Re: TEXTAREA element and Barracuda
"Diez B. Roggisch" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Kirk Daries wrote:
> } 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;
Thats really complicated. In my TextAreaFormElement from the
repopulation-package I simply return a BText (as Christian pointed out
before). Then all this rows/cols/whatever stuff can be put in the html.
<textarea class="Dir::Get_Data.ExampleModel.TEXTAREA" rows="3"
cols="30"></textarea>
Diez