[ 
https://issues.apache.org/struts/browse/WW-2435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44976#action_44976
 ] 

Denis Cabasson commented on WW-2435:
------------------------------------

I'd like to re-open this issue. I am using 2.0.11.2, and I have been unable to 
have it worked. I had c a closer look into Set.java and the ComponentTagSupport.

So the ComponentTagSupport says :
{code}
        if (evalBody) \{
            return component.usesBody() ? EVAL_BODY_BUFFERED : 
EVAL_BODY_INCLUDE;
        \} else \{
            return SKIP_BODY;
        \}
{code}

But the default implementation of Component reads :
{code}
public boolean usesBody() \{
        return false;
\}
{code}

And the Set component is not overriding it to return true, thus the body is 
evaluated to the page instead of being buffered and shoved back into the 
component. Has anybody a working example of a set tag with a body?

> <s:set> tag does not evaluate Body
> ----------------------------------
>
>                 Key: WW-2435
>                 URL: https://issues.apache.org/struts/browse/WW-2435
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: Lukasz Racon
>            Assignee: Ted Husted
>             Fix For: 2.1.1
>
>         Attachments: Set_useBody.patch
>
>
> <s:set> tag body is not evaluated, WW-1768 forgot to override useBody method 
> to return true.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to