You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2009/04/15 22:10:06 UTC

[jira] Resolved: (WW-1298) FreeMarker, WW2 tags and Java primitive values as tag parameters

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

Musachy Barroso resolved WW-1298.
---------------------------------

    Resolution: Fixed

I just verified that this works with: <@s.url action="login" namespace="/chat" method="POST" encode=true/>

> FreeMarker, WW2 tags and Java primitive values as tag parameters
> ----------------------------------------------------------------
>
>                 Key: WW-1298
>                 URL: https://issues.apache.org/struts/browse/WW-1298
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - Tags
>    Affects Versions: WW 2.2.2
>            Reporter: Vladimir Olenin
>             Fix For: Future
>
>
> Currently there seems to be no way to pass 'primitive' java values as parameters to the WebWork tags, when tags are used from within FreeMarker templates. Eg:
> <@ww.url encode=true/>
> The 'encode' parameter would be ignored, because FM automatically wraps primitive 'true/false' values into TemplateBooleanModel and WebWork URL component doesn't have appropriate setter (URL component has only setEncode(boolean) setter).
> I think the same is valid for other WW tags that accept (other) primitive values...

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