You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by cr...@apache.org on 2007/01/29 18:13:54 UTC

svn commit: r501113 [4/4] - in /beehive/trunk: ./ docs/forrest/release/src/documentation/content/xdocs/netui/samples/ netui/ant/ netui/external/jsf/myfaces-1.0.9/ netui/external/jsf/myfaces-core-1.1.4/ netui/external/jsf/myfaces-core-1.1.4/lib/ netui/t...

Modified: beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/UseFormBean.xml
URL: http://svn.apache.org/viewvc/beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/UseFormBean.xml?view=diff&rev=501113&r1=501112&r2=501113
==============================================================================
--- beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/UseFormBean.xml (original)
+++ beehive/trunk/netui/test/webapps/jsf/testRecorder/tests-myfaces/UseFormBean.xml Mon Jan 29 09:13:49 2007
@@ -86,31 +86,29 @@
         member variable to be replaced with the one sent from the JSF page.
 
         
-            <form id="_id0" name="_id0" method="post" action="/jsfWeb/useFormBean/input.faces" enctype="application/x-www-form-urlencoded">
-                &#35;{backing.theForm.foo}: <input id="_id0:_id1" name="_id0:_id1" type="text" value=""/>
+            <form id="_idJsp0" name="_idJsp0" method="post" action="/jsfWeb/useFormBean/input.faces" enctype="application/x-www-form-urlencoded">
+                &#35;{backing.theForm.foo}: <input id="_idJsp0:_idJsp1" name="_idJsp0:_idJsp1" type="text" value="" />
                 <br/>
                 <br/>
                 
                     
-                <input id="_id0:_id2" name="_id0:_id2" type="submit" value="send bean through attribute" onclick="clear__5Fid0();"/>
+                <input id="_idJsp0:_idJsp2" name="_idJsp0:_idJsp2" type="submit" value="send bean through attribute" onclick="clear__5FidJsp0();" />
                 <br/>
-                <input id="_id0:_id3" name="_id0:_id3" type="submit" value="send bean through command handler" onclick="clear__5Fid0();"/>
+                <input id="_idJsp0:_idJsp3" name="_idJsp0:_idJsp3" type="submit" value="send bean through command handler" onclick="clear__5FidJsp0();" />
                 <br/>
                 
                     
-                <a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:_id4';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:_id4">send bean through attribute</a>
+                <a href="#" onclick="clear__5FidJsp0();document.forms['_idJsp0'].elements['_idJsp0:_link_hidden_'].value='_idJsp0:_idJsp4';if(document.forms['_idJsp0'].onsubmit){var result=document.forms['_idJsp0'].onsubmit();  if( (typeof result == 'undefined') || result ) {document.forms['_idJsp0'].submit();}}else{document.forms['_idJsp0'].submit();}return false;" id="_idJsp0:_idJsp4">send bean through attribute</a>
                 <br/>
-                <a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:_id5';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:_id5">send bean through command handler</a>
-            <input type="hidden" name="_id0_SUBMIT" value="1"/><input type="hidden" name="_id0:_link_hidden_"/><script type="text/javascript">
-<!--
-function clear__5Fid0() {
-  var f = document.forms['_id0'];
-  f.elements['_id0:_link_hidden_'].value=null;
+                <a href="#" onclick="clear__5FidJsp0();document.forms['_idJsp0'].elements['_idJsp0:_link_hidden_'].value='_idJsp0:_idJsp5';if(document.forms['_idJsp0'].onsubmit){var result=document.forms['_idJsp0'].onsubmit();  if( (typeof result == 'undefined') || result ) {document.forms['_idJsp0'].submit();}}else{document.forms['_idJsp0'].submit();}return false;" id="_idJsp0:_idJsp5">send bean through command handler</a>
+            <input type="hidden" name="_idJsp0_SUBMIT" value="1" /><input type="hidden" name="jsf_sequence" value="61" /><input type="hidden" name="_idJsp0:_link_hidden_" /><script type="text/javascript"><!--
+function clear__5FidJsp0() {
+  var f = document.forms['_idJsp0'];
+  f.elements['_idJsp0:_link_hidden_'].value='';
   f.target='';
 }
-clear__5Fid0();
-//-->
-</script></form>
+clear__5FidJsp0();
+//--></script></form>
         
     </body>
 </html>]]>
@@ -128,19 +126,19 @@
 <method>POST</method>
 <parameters>
 <parameter>
-<name>_id0:_id1</name>
+<name>_idJsp0:_idJsp1</name>
 <value>a</value>
 </parameter>
 <parameter>
-<name>_id0:_id2</name>
+<name>_idJsp0:_idJsp2</name>
 <value>send bean through attribute</value>
 </parameter>
 <parameter>
-<name>_id0:_link_hidden_</name>
+<name>_idJsp0:_link_hidden_</name>
 <value></value>
 </parameter>
 <parameter>
-<name>_id0_SUBMIT</name>
+<name>_idJsp0_SUBMIT</name>
 <value>1</value>
 </parameter>
 </parameters>
@@ -319,31 +317,29 @@
         member variable to be replaced with the one sent from the JSF page.
 
         
-            <form id="_id0" name="_id0" method="post" action="/jsfWeb/useFormBean/input.faces" enctype="application/x-www-form-urlencoded">
-                &#35;{backing.theForm.foo}: <input id="_id0:_id1" name="_id0:_id1" type="text" value=""/>
+            <form id="_idJsp0" name="_idJsp0" method="post" action="/jsfWeb/useFormBean/input.faces" enctype="application/x-www-form-urlencoded">
+                &#35;{backing.theForm.foo}: <input id="_idJsp0:_idJsp1" name="_idJsp0:_idJsp1" type="text" value="" />
                 <br/>
                 <br/>
                 
                     
-                <input id="_id0:_id2" name="_id0:_id2" type="submit" value="send bean through attribute" onclick="clear__5Fid0();"/>
+                <input id="_idJsp0:_idJsp2" name="_idJsp0:_idJsp2" type="submit" value="send bean through attribute" onclick="clear__5FidJsp0();" />
                 <br/>
-                <input id="_id0:_id3" name="_id0:_id3" type="submit" value="send bean through command handler" onclick="clear__5Fid0();"/>
+                <input id="_idJsp0:_idJsp3" name="_idJsp0:_idJsp3" type="submit" value="send bean through command handler" onclick="clear__5FidJsp0();" />
                 <br/>
                 
                     
-                <a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:_id4';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:_id4">send bean through attribute</a>
+                <a href="#" onclick="clear__5FidJsp0();document.forms['_idJsp0'].elements['_idJsp0:_link_hidden_'].value='_idJsp0:_idJsp4';if(document.forms['_idJsp0'].onsubmit){var result=document.forms['_idJsp0'].onsubmit();  if( (typeof result == 'undefined') || result ) {document.forms['_idJsp0'].submit();}}else{document.forms['_idJsp0'].submit();}return false;" id="_idJsp0:_idJsp4">send bean through attribute</a>
                 <br/>
-                <a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:_id5';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:_id5">send bean through command handler</a>
-            <input type="hidden" name="_id0_SUBMIT" value="1"/><input type="hidden" name="_id0:_link_hidden_"/><script type="text/javascript">
-<!--
-function clear__5Fid0() {
-  var f = document.forms['_id0'];
-  f.elements['_id0:_link_hidden_'].value=null;
+                <a href="#" onclick="clear__5FidJsp0();document.forms['_idJsp0'].elements['_idJsp0:_link_hidden_'].value='_idJsp0:_idJsp5';if(document.forms['_idJsp0'].onsubmit){var result=document.forms['_idJsp0'].onsubmit();  if( (typeof result == 'undefined') || result ) {document.forms['_idJsp0'].submit();}}else{document.forms['_idJsp0'].submit();}return false;" id="_idJsp0:_idJsp5">send bean through command handler</a>
+            <input type="hidden" name="_idJsp0_SUBMIT" value="1" /><input type="hidden" name="jsf_sequence" value="63" /><input type="hidden" name="_idJsp0:_link_hidden_" /><script type="text/javascript"><!--
+function clear__5FidJsp0() {
+  var f = document.forms['_idJsp0'];
+  f.elements['_idJsp0:_link_hidden_'].value='';
   f.target='';
 }
-clear__5Fid0();
-//-->
-</script></form>
+clear__5FidJsp0();
+//--></script></form>
         
     </body>
 </html>]]>
@@ -361,19 +357,19 @@
 <method>POST</method>
 <parameters>
 <parameter>
-<name>_id0:_id1</name>
+<name>_idJsp0:_idJsp1</name>
 <value>b</value>
 </parameter>
 <parameter>
-<name>_id0:_id3</name>
+<name>_idJsp0:_idJsp3</name>
 <value>send bean through command handler</value>
 </parameter>
 <parameter>
-<name>_id0:_link_hidden_</name>
+<name>_idJsp0:_link_hidden_</name>
 <value></value>
 </parameter>
 <parameter>
-<name>_id0_SUBMIT</name>
+<name>_idJsp0_SUBMIT</name>
 <value>1</value>
 </parameter>
 </parameters>
@@ -552,31 +548,29 @@
         member variable to be replaced with the one sent from the JSF page.
 
         
-            <form id="_id0" name="_id0" method="post" action="/jsfWeb/useFormBean/input.faces" enctype="application/x-www-form-urlencoded">
-                &#35;{backing.theForm.foo}: <input id="_id0:_id1" name="_id0:_id1" type="text" value=""/>
+            <form id="_idJsp0" name="_idJsp0" method="post" action="/jsfWeb/useFormBean/input.faces" enctype="application/x-www-form-urlencoded">
+                &#35;{backing.theForm.foo}: <input id="_idJsp0:_idJsp1" name="_idJsp0:_idJsp1" type="text" value="" />
                 <br/>
                 <br/>
                 
                     
-                <input id="_id0:_id2" name="_id0:_id2" type="submit" value="send bean through attribute" onclick="clear__5Fid0();"/>
+                <input id="_idJsp0:_idJsp2" name="_idJsp0:_idJsp2" type="submit" value="send bean through attribute" onclick="clear__5FidJsp0();" />
                 <br/>
-                <input id="_id0:_id3" name="_id0:_id3" type="submit" value="send bean through command handler" onclick="clear__5Fid0();"/>
+                <input id="_idJsp0:_idJsp3" name="_idJsp0:_idJsp3" type="submit" value="send bean through command handler" onclick="clear__5FidJsp0();" />
                 <br/>
                 
                     
-                <a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:_id4';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:_id4">send bean through attribute</a>
+                <a href="#" onclick="clear__5FidJsp0();document.forms['_idJsp0'].elements['_idJsp0:_link_hidden_'].value='_idJsp0:_idJsp4';if(document.forms['_idJsp0'].onsubmit){var result=document.forms['_idJsp0'].onsubmit();  if( (typeof result == 'undefined') || result ) {document.forms['_idJsp0'].submit();}}else{document.forms['_idJsp0'].submit();}return false;" id="_idJsp0:_idJsp4">send bean through attribute</a>
                 <br/>
-                <a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:_id5';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:_id5">send bean through command handler</a>
-            <input type="hidden" name="_id0_SUBMIT" value="1"/><input type="hidden" name="_id0:_link_hidden_"/><script type="text/javascript">
-<!--
-function clear__5Fid0() {
-  var f = document.forms['_id0'];
-  f.elements['_id0:_link_hidden_'].value=null;
+                <a href="#" onclick="clear__5FidJsp0();document.forms['_idJsp0'].elements['_idJsp0:_link_hidden_'].value='_idJsp0:_idJsp5';if(document.forms['_idJsp0'].onsubmit){var result=document.forms['_idJsp0'].onsubmit();  if( (typeof result == 'undefined') || result ) {document.forms['_idJsp0'].submit();}}else{document.forms['_idJsp0'].submit();}return false;" id="_idJsp0:_idJsp5">send bean through command handler</a>
+            <input type="hidden" name="_idJsp0_SUBMIT" value="1" /><input type="hidden" name="jsf_sequence" value="65" /><input type="hidden" name="_idJsp0:_link_hidden_" /><script type="text/javascript"><!--
+function clear__5FidJsp0() {
+  var f = document.forms['_idJsp0'];
+  f.elements['_idJsp0:_link_hidden_'].value='';
   f.target='';
 }
-clear__5Fid0();
-//-->
-</script></form>
+clear__5FidJsp0();
+//--></script></form>
         
     </body>
 </html>]]>
@@ -594,15 +588,15 @@
 <method>POST</method>
 <parameters>
 <parameter>
-<name>_id0:_id1</name>
+<name>_idJsp0:_idJsp1</name>
 <value>c</value>
 </parameter>
 <parameter>
-<name>_id0:_link_hidden_</name>
-<value>_id0:_id4</value>
+<name>_idJsp0:_link_hidden_</name>
+<value>_idJsp0:_idJsp4</value>
 </parameter>
 <parameter>
-<name>_id0_SUBMIT</name>
+<name>_idJsp0_SUBMIT</name>
 <value>1</value>
 </parameter>
 </parameters>
@@ -781,31 +775,29 @@
         member variable to be replaced with the one sent from the JSF page.
 
         
-            <form id="_id0" name="_id0" method="post" action="/jsfWeb/useFormBean/input.faces" enctype="application/x-www-form-urlencoded">
-                &#35;{backing.theForm.foo}: <input id="_id0:_id1" name="_id0:_id1" type="text" value=""/>
+            <form id="_idJsp0" name="_idJsp0" method="post" action="/jsfWeb/useFormBean/input.faces" enctype="application/x-www-form-urlencoded">
+                &#35;{backing.theForm.foo}: <input id="_idJsp0:_idJsp1" name="_idJsp0:_idJsp1" type="text" value="" />
                 <br/>
                 <br/>
                 
                     
-                <input id="_id0:_id2" name="_id0:_id2" type="submit" value="send bean through attribute" onclick="clear__5Fid0();"/>
+                <input id="_idJsp0:_idJsp2" name="_idJsp0:_idJsp2" type="submit" value="send bean through attribute" onclick="clear__5FidJsp0();" />
                 <br/>
-                <input id="_id0:_id3" name="_id0:_id3" type="submit" value="send bean through command handler" onclick="clear__5Fid0();"/>
+                <input id="_idJsp0:_idJsp3" name="_idJsp0:_idJsp3" type="submit" value="send bean through command handler" onclick="clear__5FidJsp0();" />
                 <br/>
                 
                     
-                <a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:_id4';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:_id4">send bean through attribute</a>
+                <a href="#" onclick="clear__5FidJsp0();document.forms['_idJsp0'].elements['_idJsp0:_link_hidden_'].value='_idJsp0:_idJsp4';if(document.forms['_idJsp0'].onsubmit){var result=document.forms['_idJsp0'].onsubmit();  if( (typeof result == 'undefined') || result ) {document.forms['_idJsp0'].submit();}}else{document.forms['_idJsp0'].submit();}return false;" id="_idJsp0:_idJsp4">send bean through attribute</a>
                 <br/>
-                <a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:_id5';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:_id5">send bean through command handler</a>
-            <input type="hidden" name="_id0_SUBMIT" value="1"/><input type="hidden" name="_id0:_link_hidden_"/><script type="text/javascript">
-<!--
-function clear__5Fid0() {
-  var f = document.forms['_id0'];
-  f.elements['_id0:_link_hidden_'].value=null;
+                <a href="#" onclick="clear__5FidJsp0();document.forms['_idJsp0'].elements['_idJsp0:_link_hidden_'].value='_idJsp0:_idJsp5';if(document.forms['_idJsp0'].onsubmit){var result=document.forms['_idJsp0'].onsubmit();  if( (typeof result == 'undefined') || result ) {document.forms['_idJsp0'].submit();}}else{document.forms['_idJsp0'].submit();}return false;" id="_idJsp0:_idJsp5">send bean through command handler</a>
+            <input type="hidden" name="_idJsp0_SUBMIT" value="1" /><input type="hidden" name="jsf_sequence" value="67" /><input type="hidden" name="_idJsp0:_link_hidden_" /><script type="text/javascript"><!--
+function clear__5FidJsp0() {
+  var f = document.forms['_idJsp0'];
+  f.elements['_idJsp0:_link_hidden_'].value='';
   f.target='';
 }
-clear__5Fid0();
-//-->
-</script></form>
+clear__5FidJsp0();
+//--></script></form>
         
     </body>
 </html>]]>
@@ -823,15 +815,15 @@
 <method>POST</method>
 <parameters>
 <parameter>
-<name>_id0:_id1</name>
+<name>_idJsp0:_idJsp1</name>
 <value>d</value>
 </parameter>
 <parameter>
-<name>_id0:_link_hidden_</name>
-<value>_id0:_id5</value>
+<name>_idJsp0:_link_hidden_</name>
+<value>_idJsp0:_idJsp5</value>
 </parameter>
 <parameter>
-<name>_id0_SUBMIT</name>
+<name>_idJsp0_SUBMIT</name>
 <value>1</value>
 </parameter>
 </parameters>
@@ -1010,31 +1002,29 @@
         member variable to be replaced with the one sent from the JSF page.
 
         
-            <form id="_id0" name="_id0" method="post" action="/jsfWeb/useFormBean/input.faces" enctype="application/x-www-form-urlencoded">
-                &#35;{backing.theForm.foo}: <input id="_id0:_id1" name="_id0:_id1" type="text" value=""/>
+            <form id="_idJsp0" name="_idJsp0" method="post" action="/jsfWeb/useFormBean/input.faces" enctype="application/x-www-form-urlencoded">
+                &#35;{backing.theForm.foo}: <input id="_idJsp0:_idJsp1" name="_idJsp0:_idJsp1" type="text" value="" />
                 <br/>
                 <br/>
                 
                     
-                <input id="_id0:_id2" name="_id0:_id2" type="submit" value="send bean through attribute" onclick="clear__5Fid0();"/>
+                <input id="_idJsp0:_idJsp2" name="_idJsp0:_idJsp2" type="submit" value="send bean through attribute" onclick="clear__5FidJsp0();" />
                 <br/>
-                <input id="_id0:_id3" name="_id0:_id3" type="submit" value="send bean through command handler" onclick="clear__5Fid0();"/>
+                <input id="_idJsp0:_idJsp3" name="_idJsp0:_idJsp3" type="submit" value="send bean through command handler" onclick="clear__5FidJsp0();" />
                 <br/>
                 
                     
-                <a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:_id4';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:_id4">send bean through attribute</a>
+                <a href="#" onclick="clear__5FidJsp0();document.forms['_idJsp0'].elements['_idJsp0:_link_hidden_'].value='_idJsp0:_idJsp4';if(document.forms['_idJsp0'].onsubmit){var result=document.forms['_idJsp0'].onsubmit();  if( (typeof result == 'undefined') || result ) {document.forms['_idJsp0'].submit();}}else{document.forms['_idJsp0'].submit();}return false;" id="_idJsp0:_idJsp4">send bean through attribute</a>
                 <br/>
-                <a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:_id5';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:_id5">send bean through command handler</a>
-            <input type="hidden" name="_id0_SUBMIT" value="1"/><input type="hidden" name="_id0:_link_hidden_"/><script type="text/javascript">
-<!--
-function clear__5Fid0() {
-  var f = document.forms['_id0'];
-  f.elements['_id0:_link_hidden_'].value=null;
+                <a href="#" onclick="clear__5FidJsp0();document.forms['_idJsp0'].elements['_idJsp0:_link_hidden_'].value='_idJsp0:_idJsp5';if(document.forms['_idJsp0'].onsubmit){var result=document.forms['_idJsp0'].onsubmit();  if( (typeof result == 'undefined') || result ) {document.forms['_idJsp0'].submit();}}else{document.forms['_idJsp0'].submit();}return false;" id="_idJsp0:_idJsp5">send bean through command handler</a>
+            <input type="hidden" name="_idJsp0_SUBMIT" value="1" /><input type="hidden" name="jsf_sequence" value="69" /><input type="hidden" name="_idJsp0:_link_hidden_" /><script type="text/javascript"><!--
+function clear__5FidJsp0() {
+  var f = document.forms['_idJsp0'];
+  f.elements['_idJsp0:_link_hidden_'].value='';
   f.target='';
 }
-clear__5Fid0();
-//-->
-</script></form>
+clear__5FidJsp0();
+//--></script></form>
         
     </body>
 </html>]]>

Modified: beehive/trunk/samples/build.xml
URL: http://svn.apache.org/viewvc/beehive/trunk/samples/build.xml?view=diff&rev=501113&r1=501112&r2=501113
==============================================================================
--- beehive/trunk/samples/build.xml (original)
+++ beehive/trunk/samples/build.xml Mon Jan 29 09:13:49 2007
@@ -45,7 +45,9 @@
 
         <ant dir="netui-samples" antfile="build.xml" target="build" inheritAll="false"/>
         <ant dir="netui-jsf" antfile="build.xml" target="build-myfaces" inheritAll="false">
-            <property name="myfaces.dir" value="${myfaces.dir}"/>
+            <property name="jsf-api.jar" value="${myfaces.dir}/myfaces-api-1.1.4.jar"/>
+            <property name="jsf-impl.jar" value="${myfaces.dir}/myfaces-impl-1.1.4.jar"/>
+            <property name="commons-lang.jar" value="${myfaces.dir}/commons-lang-2.1.jar"/>
         </ant>
 
         <ant dir="controls-blank" antfile="build.xml" target="build" inheritAll="false"/>

Modified: beehive/trunk/samples/netui-jsf/README.txt
URL: http://svn.apache.org/viewvc/beehive/trunk/samples/netui-jsf/README.txt?view=diff&rev=501113&r1=501112&r2=501113
==============================================================================
--- beehive/trunk/samples/netui-jsf/README.txt (original)
+++ beehive/trunk/samples/netui-jsf/README.txt Mon Jan 29 09:13:49 2007
@@ -41,8 +41,10 @@
        - JavaServer Faces v1.1.01 Reference Implementation, at
          http://java.sun.com/j2ee/javaserverfaces/download.html
 
-   Once a JSF implementation has been downloaded, set the "myfaces.dir" or
-   "jsf-ri.dir" property as appropriate in WEB-INF/src/build.properties.
+   Once a JSF implementation has been downloaded, set the "jsf-api.jar" and
+   "jsf-impl.jar" property as appropriate in build.properties. Note, if you
+   use MyFaces 1.1.2 or later, it is dependent on commons-lang.jar. You will
+   need to set the "commons-lang.jar" property in build.properties as well.
 
 Building
 ========

Modified: beehive/trunk/samples/netui-jsf/build.properties
URL: http://svn.apache.org/viewvc/beehive/trunk/samples/netui-jsf/build.properties?view=diff&rev=501113&r1=501112&r2=501113
==============================================================================
--- beehive/trunk/samples/netui-jsf/build.properties (original)
+++ beehive/trunk/samples/netui-jsf/build.properties Mon Jan 29 09:13:49 2007
@@ -9,11 +9,13 @@
 context.path=netui-jsf
 
 # TODO:
-# if using MyFaces, uncomment the 'myfaces.dir' property and set it to a directory that contains
-# myfaces.jar (MyFaces v1.0.9 or later).
-#myfaces.dir=
+# Uncomment and set the jsf-api.jar and jsf-impl.jar properties to the
+# paths where your Faces API and implementation jar files are located.
+#jsf-api.jar=
+#jsf-impl.jar=
 
-# TODO:
-# If using the JavaServer Faces Reference Implementation, uncomment the 'jsf-ri.dir' property and
-# set it to a directory that contains jsf-api.jar and jsf-impl.jar (JSF RI v1.1_01).
-#jsf-ri.dir=
+
+# Note that the Apache MyFaces releases from 1.1.2 and later are dependent
+# on commons-lang.jar.  Uncomment the following property and set it to
+# the path where this jar file is located.
+#commons-lang.jar=

Modified: beehive/trunk/samples/netui-jsf/build.xml
URL: http://svn.apache.org/viewvc/beehive/trunk/samples/netui-jsf/build.xml?view=diff&rev=501113&r1=501112&r2=501113
==============================================================================
--- beehive/trunk/samples/netui-jsf/build.xml (original)
+++ beehive/trunk/samples/netui-jsf/build.xml Mon Jan 29 09:13:49 2007
@@ -77,35 +77,40 @@
              nocompile="false"/>
     </target>
 
+    <target name="copy-jsf-jars"
+            depends="init">
+        <available property="jsf-api.jar.available" file="${jsf-api.jar}" type="file"/>
+        <fail unless="jsf-api.jar.available" message="Can't find the JSF API JAR ${jsf-api.jar}"/>
+
+        <available property="jsf-impl.jar.available" file="${jsf-impl.jar}" type="file"/>
+        <fail unless="jsf-impl.jar.available" message="Can't find the JSF implementation JAR ${jsf-impl.jar}"/>
+
+        <copy file="${jsf-api.jar}" todir="${build.dir}/WEB-INF/lib"/>
+        <copy file="${jsf-impl.jar}" todir="${build.dir}/WEB-INF/lib"/>
+    </target>
+
+    <!-- Myfaces 1.1.2 and later is dependent on commons-lang -->
+    <target name="copy-commons-lang" depends="init"
+            if="commons-lang.jar">
+        <copy file="${commons-lang.jar}" todir="${build.dir}/WEB-INF/lib"/>
+    </target>
+
     <target name="init-myfaces" depends="init"
-            description="Build the netui-jsf webapp, for use with MyFaces">
-        <property name="myfaces.jar" value="${myfaces.dir}/myfaces.jar"/>
-        <available property="myfaces.jar.available" file="${myfaces.jar}" type="file"/>
-        <fail unless="myfaces.jar.available" message="Can't find the MyFaces JAR ${myfaces.jar}"/>
-        <copy file="${myfaces.jar}" todir="${build.dir}/WEB-INF/lib"/>
+            description="set build/WEB-INF/web.xml for use with MyFaces">
         <copy file="${web.dir}/WEB-INF/web.xml.myfaces" tofile="${build.dir}/WEB-INF/web.xml"/>
     </target>
 
-    <target name="init-jsf-ri" 
-            depends="init"
-            description="Build the netui-jsf webapp, for use with the JSF Reference Implementation">
-        <property name="jsf-ri-api.jar" value="${jsf-ri.dir}/jsf-api.jar"/>
-        <available property="jsf-ri-api.jar.available" file="${jsf-ri-api.jar}" type="file"/>
-        <fail unless="jsf-ri-api.jar.available" message="Can't find the JSF API JAR ${jsf-ri-api.jar}"/>
-
-        <property name="jsf-ri-impl.jar" value="${jsf-ri.dir}/jsf-impl.jar"/>
-        <available property="jsf-ri-impl.jar.available" file="${jsf-ri-impl.jar}" type="file"/>
-        <fail unless="jsf-ri-impl.jar.available" message="Can't find the JSF implementation JAR ${jsf-ri-impl.jar}"/>
-
-        <copy file="${jsf-ri-api.jar}" todir="${build.dir}/WEB-INF/lib"/>
-        <copy file="${jsf-ri-impl.jar}" todir="${build.dir}/WEB-INF/lib"/>
+    <target name="init-jsf-ri" depends="init"
+            description="set build/WEB-INF/web.xml for use with the JSF Reference Implementation">
         <copy file="${web.dir}/WEB-INF/web.xml.jsf-ri" tofile="${build.dir}/WEB-INF/web.xml"/>
     </target>
 
-    <target name="build-myfaces" depends="init-myfaces,build-internal"
+    <target name="build-myfaces"
+            depends="copy-jsf-jars,copy-commons-lang,init-myfaces,build-internal"
             description="Build the netui-jsf webapp, for use with MyFaces"/>
 
-    <target name="build-jsf-ri" depends="init-jsf-ri,build-internal"
+    <target name="build-jsf-ri"
+            depends="copy-jsf-jars,init-jsf-ri,build-internal"
             description="Build the netui-jsf webapp, for use with the JSF Reference Implementation"/>
 
     <target name="build" depends="build-myfaces"