You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Per Pascal Grube (JIRA)" <ji...@apache.org> on 2010/05/05 09:30:02 UTC
[jira] Commented: (WW-3396) Custom Window States when creating URL
[ https://issues.apache.org/jira/browse/WW-3396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12864214#action_12864214 ]
Per Pascal Grube commented on WW-3396:
--------------------------------------
I ran into the same issue and tried to apply your patch. The problem I got with your patch is, that you try to assign a String to WindowState-Object, which does not even compile.
I used the following snipplet as a workaround:
} else if ("minimized".equalsIgnoreCase(windowState)) {
state = WindowState.MINIMIZED;
} else if ("exclusive".equalsIgnoreCase(windowState)) {
state = new WindowState(windowState.toLowerCase());
}
I will try to come up with a better patch, but I it requires some more patching, as the custom window states set in portlet.xml should be taken care of.
> Custom Window States when creating URL
> --------------------------------------
>
> Key: WW-3396
> URL: https://issues.apache.org/jira/browse/WW-3396
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Portlet
> Affects Versions: 2.1.8.1
> Environment: Any
> Reporter: Ricardo Velhote
> Priority: Trivial
> Attachments: patch-custom-windowstate-urlhelper.txt
>
>
> Currently while creating a URL, Struts2 only supports the regular JSR Window States (NORMAL; MAXIMIZED, MINIMIZED). When a customized window state is passed it defaults to the NORMAL window state
> Here is an example link to reproduce this behaviour
> <s:url windowState="exclusive" action="index" />
> A patched is attached to this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.