Re: define multi @URLMapping in one class

Splash Forums PrettyFaces Users define multi @URLMapping in one class Re: define multi @URLMapping in one class


Placing multiple annotations of the same type on a single class is not supported due to limitations of the Java annotations system. Currently your only way is to use the XML configuration or to split the mappings over multiple classes.

I thought about adding a @UrlMappings annotation to support something like this but there are some details that have to be considered before doing so. See this post a few weeks ago:

If you have strong interest in such an feature you could open a ticket for this and post your ideas.