myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dennis hoersch (JIRA)" <>
Subject [jira] [Commented] (MYFACES-3719) Executing action of a disabled Button
Date Mon, 06 May 2013 09:46:17 GMT


dennis hoersch commented on MYFACES-3719:

With a small change in HtmlButtonRendererBase.decode() it is possible to prevent queuing events
of disabled buttons:

  public void decode(FacesContext facesContext, UIComponent uiComponent)
    if ( !isReset(uiComponent) &&
          isSubmitted(facesContext, uiComponent) &&
         !isDisabled(facesContext, uiComponent))
      uiComponent.queueEvent(new ActionEvent(uiComponent));
> Executing action of a disabled Button
> -------------------------------------
>                 Key: MYFACES-3719
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.1.11
>            Reporter: dennis hoersch
> I have a commandButton with a specific action which is disabled. The button is rendered
with a disabled attribute and gets a bit different onclick script.
> Problem is, when the user removes the disabled and onclick attributes, with for example
Firebug, it is possible to click the button. And JSF does not prevent the action from being
> I expected that the execution is prevented also on server-side.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message