-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4aba85a
commit d6064e6
Showing
7 changed files
with
268 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
impl/src/test/resources/org/apache/myfaces/config/impl/absolute-ordering-config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<faces-config xmlns="http://java.sun.com/xml/ns/javaee" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd" | ||
version="2.0" metadata-complete="true"> | ||
<name>a</name> | ||
<absolute-ordering> | ||
<name>b</name> | ||
<name>c</name> | ||
<others/> | ||
<name>d</name> | ||
</absolute-ordering> | ||
</faces-config> |
45 changes: 45 additions & 0 deletions
45
impl/src/test/resources/org/apache/myfaces/config/impl/application-config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to you under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<faces-config xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd" | ||
version="1.2"> | ||
<application> | ||
<action-listener>action-listener1</action-listener> | ||
<action-listener>action-listener2</action-listener> | ||
<default-render-kit-id>default-render-kit-id</default-render-kit-id> | ||
<locale-config> | ||
<default-locale>aa</default-locale> | ||
<supported-locale>aa</supported-locale> | ||
<supported-locale>bb</supported-locale> | ||
</locale-config> | ||
<message-bundle>message-bundle</message-bundle> | ||
<navigation-handler>navigation-handler</navigation-handler> | ||
<property-resolver>property-resolver</property-resolver> | ||
<state-manager>state-manager</state-manager> | ||
<variable-resolver>variable-resolver</variable-resolver> | ||
<view-handler>view-handler</view-handler> | ||
|
||
<!-- 1.2 specific --> | ||
<el-resolver>el-resolver</el-resolver> | ||
<resource-bundle> | ||
<base-name>base-name</base-name> | ||
<var>var</var> | ||
</resource-bundle> | ||
</application> | ||
</faces-config> |
36 changes: 36 additions & 0 deletions
36
impl/src/test/resources/org/apache/myfaces/config/impl/contracts2.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<faces-config xmlns="http://java.sun.com/xml/ns/javaee" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd" | ||
version="2.0"> | ||
<application> | ||
<resource-library-contracts> | ||
<contract-mapping> | ||
<url-pattern>/files/*.xhtml</url-pattern> | ||
<url-pattern>/files2/*.xhtml</url-pattern> | ||
<contracts>contractA</contracts> | ||
<contracts>contractB</contracts> | ||
</contract-mapping> | ||
</resource-library-contracts> | ||
</application> | ||
<protected-views> | ||
<url-pattern>/files/*.xhtml</url-pattern> | ||
<url-pattern>/files2/*.xhtml</url-pattern> | ||
</protected-views> | ||
</faces-config> |
34 changes: 34 additions & 0 deletions
34
impl/src/test/resources/org/apache/myfaces/config/impl/csrf-and-contracts.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<faces-config xmlns="http://java.sun.com/xml/ns/javaee" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd" | ||
version="2.0"> | ||
<application> | ||
<resource-library-contracts> | ||
<contract-mapping> | ||
<url-pattern>/files/*.xhtml</url-pattern> | ||
<contracts>contractA contractB</contracts> | ||
</contract-mapping> | ||
</resource-library-contracts> | ||
</application> | ||
<protected-views> | ||
<url-pattern>/files/*.xhtml</url-pattern> | ||
<url-pattern>/files2/*.xhtml</url-pattern> | ||
</protected-views> | ||
</faces-config> |
22 changes: 22 additions & 0 deletions
22
impl/src/test/resources/org/apache/myfaces/config/impl/empty-config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to you under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<faces-config xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd" | ||
version="1.2"> | ||
</faces-config> |
69 changes: 69 additions & 0 deletions
69
impl/src/test/resources/org/apache/myfaces/config/impl/faces-flow.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<faces-config xmlns="http://java.sun.com/xml/ns/javaee" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd" | ||
version="2.0"> | ||
<flow-definition id="flow1"> | ||
<start-node>node1</start-node> | ||
<view id="outcome2"> | ||
<vdl-document>outcome-to-2.xhtml</vdl-document> | ||
</view> | ||
<switch id="switch1"> | ||
<navigation-case> | ||
<if>#{flowBean.token > 0}</if> | ||
<from-outcome>outcome2</from-outcome> | ||
</navigation-case> | ||
<default-outcome> | ||
<from-outcome>outcome2</from-outcome> | ||
</default-outcome> | ||
</switch> | ||
<flow-return id="flowReturn1"> | ||
<navigation-case> | ||
<from-outcome>/outcome1</from-outcome> | ||
</navigation-case> | ||
</flow-return> | ||
<navigation-rule> | ||
<from-view-id>/x.xhtml</from-view-id> | ||
<navigation-case> | ||
<from-outcome>go</from-outcome> | ||
<if>#{test.true}</if> | ||
<to-view-id>/y.xhtml</to-view-id> | ||
</navigation-case> | ||
</navigation-rule> | ||
<flow-call id="flowCall"> | ||
<flow-reference> | ||
<flow-id>flow2</flow-id> | ||
</flow-reference> | ||
<outbound-parameter> | ||
<name>name1</name> | ||
<value>value1</value> | ||
</outbound-parameter> | ||
</flow-call> | ||
<method-call> | ||
<method id="method1">#{flowBean.doSomething}</method> | ||
<default-outcome>outcome2</default-outcome> | ||
</method-call> | ||
<initializer>#{flowBean.init}</initializer> | ||
<finalizer>#{flowBean.finalize}</finalizer> | ||
<inbound-parameter> | ||
<name>name1</name> | ||
<value>value1</value> | ||
</inbound-parameter> | ||
</flow-definition> | ||
</faces-config> |
33 changes: 33 additions & 0 deletions
33
impl/src/test/resources/org/apache/myfaces/config/impl/ordering-config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<faces-config xmlns="http://java.sun.com/xml/ns/javaee" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd" | ||
version="2.0"> | ||
<name>a</name> | ||
<ordering> | ||
<after> | ||
<name>d</name> | ||
</after> | ||
<before> | ||
<name>b</name> | ||
<name>c</name> | ||
<others/> | ||
</before> | ||
</ordering> | ||
</faces-config> |