You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Yasser Zamani (JIRA)" <ji...@apache.org> on 2013/10/27 13:37:30 UTC

[jira] [Updated] (WW-4044) executeResult="true" generate an infinite loop wheen the result type is tiles3

     [ https://issues.apache.org/jira/browse/WW-4044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yasser Zamani updated WW-4044:
------------------------------

    Attachment: WW-4044.patch

Yes. I reproduced it from your sample, thanks!
These two days, I tried to see how tile3 works behind the scene and finally, I found the solution learning from tiles3 itself :)
{code:title=org.apache.tiles.template.InsertDefinitionModel:96|borderStyle=solid}
        TilesContainer container = TilesAccess.getCurrentContainer(request);
        container.startContext(request);
        modelBody.evaluateWithoutWriting();
        container = TilesAccess.getCurrentContainer(request);
        renderDefinition(container, definitionName, template, templateType,
                templateExpression, role, preparer, flush, request);
{code}

I rewrote Struts2 tiles3 plugin's {{TilesResult.java}} respectively and attached the patch. I tested it with latest code and works well.

> executeResult="true" generate an infinite loop wheen the result type is tiles3
> ------------------------------------------------------------------------------
>
>                 Key: WW-4044
>                 URL: https://issues.apache.org/jira/browse/WW-4044
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.3.12, 2.3.15.1
>            Reporter: lefebvre
>             Fix For: 2.3.17
>
>         Attachments: 4044.zip, WW-4044.patch
>
>
> executeResult="true" generate an infinite loop wheen the result type is tiles3



--
This message was sent by Atlassian JIRA
(v6.1#6144)