Combinig / extending components

Franck Routier <[email protected]> Thu, 29 Sep 2005 13:58:04 +0200
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1127995126-26976-50
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi all,

I would like to do the following :

- add a javascript to a BInput. Can I just do :

BInput bi = new Binput(BInput.TEXT, name, value);
bi.addChild(new BScript(BScript.ON_FOCUS, "some script");

and return this to a BTemplate ?


- have a field redering as

<label for="mykey">My field : <input type="TEXT" id="mykey" /></label>

I would have something like :

BField bf = new BField(label, key);
BInput bi = new Binput(BInput.TEXT, key, value);
bi.addChild(new BScript(BScript.ON_FOCUS, "some script");
bf.addChild(bi);
return bf; // to BTemplate

What is the path to do this ?

Franck

and even :



------------=_1127995126-26976-50
Content-Type: text/plain; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: 8bit



--

Barracuda mailing list

[email protected]

http://www.objectweb.org/wws/lists/projects/barracuda


------------=_1127995126-26976-50--