beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlin Rogers <carlin.rog...@gmail.com>
Subject request (970) for NetUI buttton to render both render text and images simultaneously
Date Tue, 18 Oct 2005 16:22:37 GMT
Daryl, others,...

I was looking at BEEHIVE-970 in JIRA and wondering about the best way to
solve this request. My plan was to add a new attribute for defining an image
source. If set, then we just change the markup that this tag renders, from
<input type=...> to <button><img>text</button>. We'd maintain the
original
markup, and just generate the new markup when there's an image src set via
the new attribute on the <netui:button>. Sound OK?

I was looking at the <netui:imageButton> tag as well, wondering if we needed
to modify it so that if content exists between the begin and end tag, then
we write out the <button><img>text</button> markup rather than the input
element and include the body as the text. However, I think that would just
cause some confusion as to the why we have two different tags if both tags
can do render the same elements. I think we just leave <netui:imageButton>
to generate <input type="image"> markup. Also, I think for this request, the
users really want the flexibility to have this on the <netui:button> so that
they can use the popup features, etc.

Carlin

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message