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 2006/12/06 02:34:54 UTC
svn commit: r482867 - in /incubator/xap/trunk:
WebContent/examples/dataBinding/simpleEmployees.xal
src/xap/resolver/ResolutionHandler.js
Author: jmargaris
Date: Tue Dec 5 18:34:51 2006
New Revision: 482867
URL: http://svn.apache.org/viewvc?view=rev&rev=482867
Log:
Some minor cleanup
Modified:
incubator/xap/trunk/WebContent/examples/dataBinding/simpleEmployees.xal
incubator/xap/trunk/src/xap/resolver/ResolutionHandler.js
Modified: incubator/xap/trunk/WebContent/examples/dataBinding/simpleEmployees.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/simpleEmployees.xal?view=diff&rev=482867&r1=482866&r2=482867
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/simpleEmployees.xal (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/simpleEmployees.xal Tue Dec 5 18:34:51 2006
@@ -53,7 +53,7 @@
<!-- should show up as the text {...} without the leading slash -->
<label
- text="\{ bind(binding:employeeCount) }"
+ text="\{ bind(binding:employeeCount) } is the binding string above"
/>
</xm:append>
Modified: incubator/xap/trunk/src/xap/resolver/ResolutionHandler.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/resolver/ResolutionHandler.js?view=diff&rev=482867&r1=482866&r2=482867
==============================================================================
--- incubator/xap/trunk/src/xap/resolver/ResolutionHandler.js (original)
+++ incubator/xap/trunk/src/xap/resolver/ResolutionHandler.js Tue Dec 5 18:34:51 2006
@@ -18,7 +18,6 @@
Xap.provide("xap.resolver.ResolutionHandler");
Xap.require("xap.session.ClientEvent");
-Xap.require("xap.session.EventHandler") ;
Xap.require("xap.resolver.ResolutionInfo");
Xap.require("xap.util.TypeUtils");
Xap.require("xap.util.EscapeSyntaxParser");
@@ -53,7 +52,6 @@
xap.resolver.ResolutionHandler.prototype.unescape = function( value ){
if (value && value.length>0 && value.charAt(0)=='\\'){
- alert("Unescape string:" + value + " into " + xap.resolver.ResolutionHandler.escapeSyntax.parse(value));
return xap.resolver.ResolutionHandler.escapeSyntax.parse(value);
}
return value;
@@ -63,10 +61,7 @@
xap.resolver.ResolutionHandler.prototype.resolveAttribute = function(event,xapElement){
var attributeValue=event.getNewValue() ;
-
- //TODO move the escaping syntax stuff to here instead of testing
- //in AbstractTagImpl?
-
+
// If we've reached this point, we've got brackets
// fore and aft, so remove them:
attributeValue = attributeValue.substring(1,attributeValue.length-1) ;
@@ -84,9 +79,9 @@
var handler = this._session.getEventHandler() ;
try{
- // we use parseArgument here because technically an object
- // event is just an argument as they can be imbedded in other
- // arguments etc TODO: understand this
+ //the stuff inside {...} is any mco argument, typically an mco call but
+ //it doesn't have to be, you could do { 'hello' } which just ends up as the
+ //string hello
var parser = this._session.getDeclarativeArgumentParser() ;
var parseResult = parser.parseArgument(