Re: BImage ?

Jacob Kjome <[email protected]> Fri, 8 Dec 2006 10:16:39 -0600
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1165594648-23657-72
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable


So far, the approach to Barracuda's components is to keep them extremely
generic.  Instead of being a component for a particular tag, the component
adapts itself to whatever tag it's been bound to.  This makes Barracuda
flexible in that if the markup changes to use different tags, the app doesn=
't
need to be rewritten using different components.

BTable is one clear exception to this rule, and it is because of the very
distinct structural needs of a table -vs- other types of elements.  One cou=
ld
make the same case for BImage because, just like one either has tabular dat=
a or
one doesn't, one either uses an image or one doesn't.  It's unlikely that i=
f one
used an image in the markup, that the markup might change to use another ta=
g for
the same thing (other than <object>, which might need to be accounted for by
BImage; actually its renderer).  An image would either be in the markup or
removed from the markup.  If something is removed, clearly the code needs to
change to accommodate; there's no getting around that.

I guess I wouldn't object to BImage.  If the component being proposed was
something like BSpan or BDiv, then I would object, but images have very uni=
que
qualities that beg for its own component.

Now, as far as actually developing the component, I don't think it's going =
to
happen unless it is contributed.  Are you volunteering to do the work?

Jake

Quoting Franck Routier <[email protected]>:

> Hi all,
>
> has anyone thought about a BImage component ?
>
> Something like new BImage(String altAttribute, String url) + height,
> width, ...
>
> Would it make sense, or is it just one of these 'just do it with
> dom/BText' things ?
>
> Franck
>
>





------------=_1165594648-23657-72
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


------------=_1165594648-23657-72--