Re: Combinig / extending components
Christian Cryder <[email protected]> Thu, 29 Sep 2005 17:34:53 -0400
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format...
------------=_1128029743-26976-207
Content-Type: multipart/alternative;
boundary="------------080705030408000006010502"
This is a multi-part message in MIME format.
--------------080705030408000006010502
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sure, here's an example that we use:
BAction baction = new BAction(new DoFoo());
baction.addChild(new BScript(BScript.ON_CLICK,
"selectAllOptions(this.form.elements['"+ASSIGNED_TERMINALS+"'])",
BScript.PREPEND));
return baction;
Franck Routier wrote:
> 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 :
>
>
>------------------------------------------------------------------------
>
>
>--
>Barracuda mailing list
>[email protected]
>http://www.objectweb.org/wws/lists/projects/barracuda
>
>
--
------------------------------------------------------------------------
Christian Cryder
Internet Architect, ATMReports.com <http://atmreports.com>
------------------------------------------------------------------------
/"Coffee? I could quit anytime, just not today"
http://seelifedifferently.blogspot.com/
--------------080705030408000006010502
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sure, here's an example that we use:<br>
<br>
BAction baction = new BAction(new DoFoo());<br>
baction.addChild(new BScript(BScript.ON_CLICK,
"selectAllOptions(this.form.elements['"+ASSIGNED_TERMINALS+"'])",
BScript.PREPEND));<br>
return baction;<br>
<br>
<br>
Franck Routier wrote:
<blockquote cite="[email protected]" type="cite">Hi all,
<br>
<br>
I would like to do the following :
<br>
<br>
- add a javascript to a BInput. Can I just do :
<br>
<br>
BInput bi = new Binput(BInput.TEXT, name, value);
<br>
bi.addChild(new BScript(BScript.ON_FOCUS, "some script");
<br>
<br>
and return this to a BTemplate ?
<br>
<br>
<br>
- have a field redering as
<br>
<br>
<label for="mykey">My field : <input type="TEXT" id="mykey"
/></label>
<br>
<br>
I would have something like :
<br>
<br>
BField bf = new BField(label, key);
<br>
BInput bi = new Binput(BInput.TEXT, key, value);
<br>
bi.addChild(new BScript(BScript.ON_FOCUS, "some script");
<br>
bf.addChild(bi);
<br>
return bf; // to BTemplate
<br>
<br>
What is the path to do this ?
<br>
<br>
Franck
<br>
<br>
and even :
<br>
<br>
<br>
<pre wrap="">
<hr size="4" width="90%">
--
Barracuda mailing list
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-freetext" href="http://www.objectweb.org/wws/lists/projects/barracuda">http://www.objectweb.org/wws/lists/projects/barracuda</a>
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Foo bar rama</title>
<table border="0">
<tbody>
<tr>
<td width="100%">
<hr align="left" size="1" width="350"> </td>
</tr>
<tr>
<td width="100%"><font face="Arial">Christian Cryder<br>
Internet Architect, <a href="http://atmreports.com">ATMReports.com</a></font></td>
</tr>
<tr>
<td width="100%">
<hr align="left" size="1" width="350"> </td>
</tr>
<tr>
<td width="100%">
<p align="center"><i>"Coffee? I could quit anytime, just not
today"<br>
<a href="http://seelifedifferently.blogspot.com"><font size="2">http://seelifedifferently.blogspot.com</font></a></i></p>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
--------------080705030408000006010502--
------------=_1128029743-26976-207
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
------------=_1128029743-26976-207--