You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by ru...@apache.org on 2005/02/01 14:12:02 UTC
cvs commit: jakarta-taglibs-sandbox/rdc/examples/web/config/rule-based-dialog child1.xml child2.xml conditional-execution.xml ordered-execution.xml parent.xml
rubys 2005/02/01 05:12:02
Modified: rdc/examples/web/config/rule-based-dialog child1.xml
child2.xml conditional-execution.xml
ordered-execution.xml parent.xml
Log:
Update copyrights. From Rahul P Akolkar.
Revision Changes Path
1.2 +15 -0 jakarta-taglibs-sandbox/rdc/examples/web/config/rule-based-dialog/child1.xml
Index: child1.xml
===================================================================
RCS file: /home/cvs/jakarta-taglibs-sandbox/rdc/examples/web/config/rule-based-dialog/child1.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- child1.xml 28 Jan 2005 16:42:56 -0000 1.1
+++ child1.xml 1 Feb 2005 13:12:02 -0000 1.2
@@ -1,6 +1,21 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE dm-config SYSTEM "rulebased.dtd">
<dm-config>
+<!--
+ Copyright 2004 The Apache Software Foundation.
+
+ Licensed 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.
+-->
<navigation>
<initial target="select" />
<rule from="select" target="date1" />
1.2 +15 -0 jakarta-taglibs-sandbox/rdc/examples/web/config/rule-based-dialog/child2.xml
Index: child2.xml
===================================================================
RCS file: /home/cvs/jakarta-taglibs-sandbox/rdc/examples/web/config/rule-based-dialog/child2.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- child2.xml 28 Jan 2005 16:42:56 -0000 1.1
+++ child2.xml 1 Feb 2005 13:12:02 -0000 1.2
@@ -1,6 +1,21 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE dm-config SYSTEM "rulebased.dtd">
<dm-config>
+<!--
+ Copyright 2004 The Apache Software Foundation.
+
+ Licensed 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.
+-->
<navigation>
<initial target="date2" />
</navigation>
1.2 +33 -4 jakarta-taglibs-sandbox/rdc/examples/web/config/rule-based-dialog/conditional-execution.xml
Index: conditional-execution.xml
===================================================================
RCS file: /home/cvs/jakarta-taglibs-sandbox/rdc/examples/web/config/rule-based-dialog/conditional-execution.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- conditional-execution.xml 28 Jan 2005 16:42:56 -0000 1.1
+++ conditional-execution.xml 1 Feb 2005 13:12:02 -0000 1.2
@@ -1,13 +1,42 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE dm-config SYSTEM "rulebased.dtd">
<dm-config>
+<!--
+ Copyright 2004 The Apache Software Foundation.
+
+ Licensed 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.
+-->
<navigation>
<initial target="select" />
<rule from="select" defaultTarget="duration" >
- <condition lvalue="#{$select == 'date' ? 'date' : 'not date'}"
- operation="equal-to" rvalue="date" target="date" />
- <condition lvalue="$select" operation="equal-to"
+ <!--
+ In the lvalue attribute of the following condition
+ we obtain the value of the RDC that just finished
+ execution by evaluating its ID as an EL expression
+ in the host JSP's page context.
+ REMEMBER: Any RDC returns its value as a page context
+ variable taking the same name as its ID.
+ -->
+ <condition lvalue="#{select}" operation="equal-to" rvalue="date"
+ target="date" />
+ <!--
+ The rvalue attribute of the following condition
+ illustrates how to use EL expressions in the ruleset.
+ myBean is defined in JSP hosting the group which is executing
+ based on these rules [rulebased-conditions.jsp]
+ -->
+ <condition lvalue="#{select}" operation="equal-to"
rvalue="#{myBean.myProperty}" target="time" />
</rule>
</navigation>
-</dm-config>
\ No newline at end of file
+</dm-config>
1.2 +15 -0 jakarta-taglibs-sandbox/rdc/examples/web/config/rule-based-dialog/ordered-execution.xml
Index: ordered-execution.xml
===================================================================
RCS file: /home/cvs/jakarta-taglibs-sandbox/rdc/examples/web/config/rule-based-dialog/ordered-execution.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ordered-execution.xml 28 Jan 2005 16:42:56 -0000 1.1
+++ ordered-execution.xml 1 Feb 2005 13:12:02 -0000 1.2
@@ -1,6 +1,21 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE dm-config SYSTEM "rulebased.dtd">
<dm-config>
+<!--
+ Copyright 2004 The Apache Software Foundation.
+
+ Licensed 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.
+-->
<navigation>
<initial target="date" />
<rule from="date" target="time" />
1.2 +22 -1 jakarta-taglibs-sandbox/rdc/examples/web/config/rule-based-dialog/parent.xml
Index: parent.xml
===================================================================
RCS file: /home/cvs/jakarta-taglibs-sandbox/rdc/examples/web/config/rule-based-dialog/parent.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- parent.xml 28 Jan 2005 16:42:56 -0000 1.1
+++ parent.xml 1 Feb 2005 13:12:02 -0000 1.2
@@ -1,10 +1,31 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE dm-config SYSTEM "rulebased.dtd">
<dm-config>
+<!--
+ Copyright 2004 The Apache Software Foundation.
+
+ Licensed 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.
+-->
<navigation>
<initial target="childGrp1" />
<rule from="childGrp1" >
- <condition lvalue="$childGrp1|select" operation="equal-to"
+ <!--
+ REMEMBER: When the group container finishes execution,
+ its returns a HashMap to the page context where the
+ keys are the child RDC IDs and values are the child
+ RDC values.
+ -->
+ <condition lvalue="#{childGrp1.select}" operation="equal-to"
rvalue="round trip" target="childGrp2" />
</rule>
</navigation>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org