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

Howard M. Lewis Ship updated TAPESTRY-715:
------------------------------------------

      Summary: LinkSubmit component should render its body, even when disabled  
(was: disabled LinkSubmit does not render it's body)
    Assign To: Howard M. Lewis Ship

> LinkSubmit component should render its body, even when disabled
> ---------------------------------------------------------------
>
>          Key: TAPESTRY-715
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-715
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>  Environment: 4.0b11
>     Reporter: Norbert Sándor
>     Assignee: Howard M. Lewis Ship

>
> Body rendering is working now with enabled LinkSubmits. 
> But if the LinkSubmit is disabled then: 
> - renderFormComponent() is called when rendering 
> - rewindFormComponent() is not called when rewinding. This is because 
> AbstractFormComponent.renderComponent() contains the following condition: 
>            if (!isDisabled()) 
>            { 
>                  rewindFormComponent(writer, cycle); 
>            } 
> So in case of disabled LinkSubmits the component's body is not rendered when 
> rewinding which may cause StaleLinkException. 
> Maybe the isDisabled() check should go to a higher level allowing the 
> components to decide whether they want to perform any operation or not - the 
> same way as during rendering.
> BR, 
> Norbi 

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to