myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <>
Subject [jira] [Resolved] (MYFACES-3970) topic Each <contract-mapping> element can have one or more <contract> elements.
Date Tue, 31 Mar 2015 22:47:54 GMT


Leonardo Uribe resolved MYFACES-3970.
       Resolution: Fixed
    Fix Version/s: 2.2.8
         Assignee: Leonardo Uribe

You can do this too:

<contracts>testContract team</contracts>

But the observation about the many to many relationship is correct. I have fixed it. Thanks
for pointing this out.

> topic Each <contract-mapping> element can have  one or more <contract>
> -----------------------------------------------------------------------------------------
>                 Key: MYFACES-3970
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-344
>    Affects Versions: 2.2.7
>            Reporter: Anup
>            Assignee: Leonardo Uribe
>            Priority: Minor
>             Fix For: 2.2.8
> JSF specification says that <contract-mapping> can have one or more url-pattern
with one or more contracts. So Many to many option is possible. 
>  The <resource-library-contracts> element is contained with in the <application>
element and contains
> one or more <contract-mapping> elements. Each <contract-mapping> element
must one or more <urlpattern>
> elements and one or more <contract> elements.
> In my testing on Myfaces 2.2.7 it always keeps the second entry in the list overwriting
the first one. 
> e.g. for this url-pattern the contract assigned is "team" . It does not consider "testContract".
> 			<contract-mapping>
> 				<url-pattern>/user/*</url-pattern>				
> 		  		<contracts>testContract</contracts> 
> 		  		<contracts>team</contracts>
> 			</contract-mapping>
> Tested on reference implementation Mojarra , it assigns to testContract correctly.

This message was sent by Atlassian JIRA

View raw message