[ http://issues.apache.org/jira/browse/BEEHIVE-970?page=all ]

Carlin Rogers updated BEEHIVE-970:
----------------------------------

    Attachment: j970-patch.txt

Attaching a patch for this issue. This patch includes the new tag render class, 
ButtonTag, to provide rendering of the <netui:button> as an HTML <button> 
element. The NetUI Button tag class has been modified to use this renderer when 
either the 'renderButtonElement' attribute is set or in the case when a 
<netui:button> has both a value attribute and content between its start and end 
tags.

> Need "netui:button" to render BOTH text and images simultaneously
> -----------------------------------------------------------------
>
>          Key: BEEHIVE-970
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-970
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Jack Rudnick
>     Assignee: Carlin Rogers
>     Priority: Critical
>      Fix For: 1.1
>  Attachments: j970-patch.txt
>
> We were using "netui:button" , and these buttons but contain both text and 
> image.  Using <netui:imageButton does not sound like it would be useful, as 
> the whole button would need to then be an image, creating an i18n nightmare.  
> We need a button that can take an image, while also can take a variable 
> representing an i18ned string value.  Basically, we are looking for the 
> equivalent of:
>  
> <button ><img src="./someimage.gif">delete button</button>
>  
> The above will generate a button with an image in the button on the left and 
> (internationalized) text that is passed to the button on the right.  Right 
> now, since we can't use "netui:button" we have a workaround that uses an html 
> <button that hits javascript.  The javascript gets the correct URI to go via 
> NETUI and passes it through for us.  We would hope that there is another way 
> to do this where we can use Netui, being that if can't use "netui:button" we 
> loose things like "popup=true" and other great netui stuff. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to