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
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
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development