You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2008/02/01 21:51:36 UTC
svn commit: r617666 -
/incubator/xap/trunk/samples/WebContent/examples/html-xmodify/index.xal
Author: jmargaris
Date: Fri Feb 1 13:51:32 2008
New Revision: 617666
URL: http://svn.apache.org/viewvc?rev=617666&view=rev
Log:
From Michael Mikhaylov: Sample fix to reflect latest code.
Modified:
incubator/xap/trunk/samples/WebContent/examples/html-xmodify/index.xal
Modified: incubator/xap/trunk/samples/WebContent/examples/html-xmodify/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/html-xmodify/index.xal?rev=617666&r1=617665&r2=617666&view=diff
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/html-xmodify/index.xal (original)
+++ incubator/xap/trunk/samples/WebContent/examples/html-xmodify/index.xal Fri Feb 1 13:51:32 2008
@@ -46,15 +46,13 @@
<!--
Enable all text input fields in the application
-->
- <macro:macro id="enableInputText">
- <xm:modifications document="html">
- <xm:set-attribute select="//INPUT[@type='text']">
- <xm:attribute name="disabled" value="false"/>
- </xm:set-attribute>
- <xm:remove-attribute select="//INPUT[@type='text']">
- <xm:attribute name="disabed"/>
- </xm:remove-attribute>
- </xm:modifications>
+ <macro:macro id="enableInputText">
+ <xm:modifications document="html">
+ <xm:set-attribute select="//INPUT[@type='text']">
+ <xm:attribute name="disabled" value=""/>
+ </xm:set-attribute>
+ <xm:remove-attribute select="//INPUT[@type='text']/@disabled" />
+ </xm:modifications>
</macro:macro>
<!--
@@ -78,7 +76,7 @@
<macro:macro id="fillTable">
<xm:modifications document="html">
- <xm:append select="//TABLE[@id='myTable']/TBODY">
+ <xm:append select="id('myTable')/TBODY">
<tr type="data">
<td>10</td>
<td>Robert</td>
@@ -280,7 +278,7 @@
<td>
<input type="submit"
value="Enable Input Fields"
- onclick="executeMacro('enableInputText');alert('Can\'t re-enable fields becuase need to set property not attribute')"
+ onclick="executeMacro('enableInputText')"
/>
</td>
</tr>