You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "tm_jee (JIRA)" <ji...@apache.org> on 2006/07/22 07:29:21 UTC
[jira] Created: (WW-1389) Add If, Else and ElseIf to freemarker
model
Add If, Else and ElseIf to freemarker model
-------------------------------------------
Key: WW-1389
URL: http://issues.apache.org/struts/browse/WW-1389
Project: Struts 2
Issue Type: New Feature
Components: Views
Affects Versions: WW 2.2.2
Reporter: tm_jee
Assigned To: tm_jee
Fix For: 2.0.0
Add If, Else and ElseIf to freemarker model, such that in freemarker template, one could use
<@saf.if test="...">
do something
</...@saf.if>
<@saf.elseif test="....">
do some other things
</...@saf.elseif>
<@else>
else do something
</...@else>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (WW-1389) Add If, Else and ElseIf to freemarker
model
Posted by "tm_jee (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/WW-1389?page=comments#action_37826 ]
tm_jee commented on WW-1389:
----------------------------
Sending src/main/java/org/apache/struts2/components/ElseIf.javajava
Sending src/main/java/org/apache/struts2/components/If.java
Adding src/main/java/org/apache/struts2/views/freemarker/tags/ElseIfModel.java
Adding src/main/java/org/apache/struts2/views/freemarker/tags/ElseModel.java
Adding src/main/java/org/apache/struts2/views/freemarker/tags/IfModel.java
Sending src/main/java/org/apache/struts2/views/freemarker/tags/StrutsModels.java
Transmitting file data ......
Committed revision 424526.
> Add If, Else and ElseIf to freemarker model
> -------------------------------------------
>
> Key: WW-1389
> URL: http://issues.apache.org/struts/browse/WW-1389
> Project: Struts 2
> Issue Type: New Feature
> Components: Views
> Affects Versions: WW 2.2.2
> Reporter: tm_jee
> Assigned To: tm_jee
> Fix For: 2.0.0
>
>
> Add If, Else and ElseIf to freemarker model, such that in freemarker template, one could use
> <@saf.if test="...">
> do something
> </...@saf.if>
> <@saf.elseif test="....">
> do some other things
> </...@saf.elseif>
> <@else>
> else do something
> </...@else>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (WW-1389) Add If, Else and ElseIf to freemarker
model
Posted by "tm_jee (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/WW-1389?page=comments#action_37827 ]
tm_jee commented on WW-1389:
----------------------------
added example into showcase
changes
Sending src/main/resources/struts-tags-non-ui.xml
Adding src/main/webapp/tags/non-ui/ifTag
Adding src/main/webapp/tags/non-ui/ifTag/testIf.ftl
Adding src/main/webapp/tags/non-ui/ifTag/testIf.jsp
Sending src/main/webapp/tags/non-ui/index.jsp
Transmitting file data ....
Committed revision 424533.
> Add If, Else and ElseIf to freemarker model
> -------------------------------------------
>
> Key: WW-1389
> URL: http://issues.apache.org/struts/browse/WW-1389
> Project: Struts 2
> Issue Type: New Feature
> Components: Views
> Affects Versions: WW 2.2.2
> Reporter: tm_jee
> Assigned To: tm_jee
> Fix For: 2.0.0
>
>
> Add If, Else and ElseIf to freemarker model, such that in freemarker template, one could use
> <@saf.if test="...">
> do something
> </...@saf.if>
> <@saf.elseif test="....">
> do some other things
> </...@saf.elseif>
> <@else>
> else do something
> </...@else>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (WW-1389) Add If, Else and ElseIf to freemarker
model
Posted by "tm_jee (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/WW-1389?page=all ]
tm_jee resolved WW-1389.
------------------------
Resolution: Fixed
> Add If, Else and ElseIf to freemarker model
> -------------------------------------------
>
> Key: WW-1389
> URL: http://issues.apache.org/struts/browse/WW-1389
> Project: Struts 2
> Issue Type: New Feature
> Components: Views
> Affects Versions: WW 2.2.2
> Reporter: tm_jee
> Assigned To: tm_jee
> Fix For: 2.0.0
>
>
> Add If, Else and ElseIf to freemarker model, such that in freemarker template, one could use
> <@saf.if test="...">
> do something
> </...@saf.if>
> <@saf.elseif test="....">
> do some other things
> </...@saf.elseif>
> <@else>
> else do something
> </...@else>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira