[
http://www.stripesframework.org/jira/browse/STS-596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11588#action_11588
]
Levi Hoogenberg commented on STS-596:
-------------------------------------
Thanks [though I have a couple of events named VALUE_NOT_SET ;)].
Is there a reason that OnwardResolution didn't get the same treatment? It'd be
nice to be able to explicitly suppress the default event name when constructing
a Forward/RedirectResolution as well.
> support default handler name to be omitted for link and url tags
> ----------------------------------------------------------------
>
> Key: STS-596
> URL: http://www.stripesframework.org/jira/browse/STS-596
> Project: Stripes
> Issue Type: Improvement
> Components: Tag Library
> Affects Versions: Release 1.5
> Reporter: Levi Hoogenberg
> Assignee: Ben Gunter
> Priority: Minor
> Fix For: Release 1.5.1
>
> Attachments: allow_null.patch, allow_null_onward_resolution.patch
>
>
> URLs that are created with stripes:link or stripes:url always contain the
> event name, even when none is given, so that the default handler will be
> used. I'd like to have a way to omit the default handler name, since most of
> the time, it doesn't have an @HandlesEvent annotation and the handler method
> name will be used.
> UrlBuilder supports leaving off the event nameby accepting null as the event
> name. This is not possible with the link and url tags, since the event name
> is only set by LinkTagSupport when it's not-null.
> I see two possible fixes (but maybe there are more elegant ones):
> * allow null values for the event tag attribute (this requires checking
> whether event is null because it was never set or that it was explicitly set
> as null in buildUrl);
> * treat an empty string as null for the event name.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development