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

Carlin Rogers commented on BEEHIVE-970:
---------------------------------------

I've found an issue with IE in how it passes the name/value pair of an HTML 
<button> control as a request parameter from the form regardless of whether it 
was the button that was clicked or not.

When we set the 'action' attribute on the netui:button we write out the name 
attribute of the <button> tag using the "actionOverride:" prefix so NetUI 
PageFlowRequestProcessor can process an action override. For example,

  <button type="submit" name="actionOverride:cancel">Cancel</button>

But this may break the form submit in NetUI. IE handles this tag differently 
from the HTML <input> tag. IE does not include an <input> button in the request 
parameters if it was not pressed. However, even when a different submit button 
is used in a form, IE seems to pass all name/value pairs of <button> controls 
in the request parameter.

That means that a form with the above <button> tag will include a request 
parameter with
  name = "actionOverride:cancel"
  value = "Cancel"

Then in NetUI when we look for a process override parameter, we will see this 
parameter and set our request wrapper to indicate that it's forwarded by button 
and use the alternate action (cancel in this case).

This is not an issue with Mozilla, FireFox, or Opera.

Any good ideas about how I could address this issue?


> 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: Daryl Olander
>     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