According to FAQ ".value" notation is legal ?
<input-symbol key="theWidget" class="org.trails.demo.components.Gallery"
required="yes"/>
<input-symbol key="theTableSize" required="yes"/>
<let key="tableWidth" unique="yes">${theWidget.tableWidth}</let>
<let key="tableSize" unique="yes">${theWidget.tableSize}</let>
So..
this...
alert(${theWidget}.${theTableSize}.value);
alert(${theWidget}.${tableSize}.value);
yeilds this...
alert([EMAIL PROTECTED]/galleryWidget].2.value);
alert([EMAIL PROTECTED]/galleryWidget].2_0.value);
none of which is runnableBest regards Ken in nashua
From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: @Script Component docs -
clarification pleaseDate: Mon, 29 Oct 2007 13:43:34 -0400
Folks, Can someone please elaborate on this T-4.1.3 documentary...
http://tapestry.apache.org/tapestry4.1/components/general/script.html
"Components within a Script's body may access the input and output parameters
of the Script via the OGNL expression components.scriptId.symbols.name. " How
do we assign and get a script body value to the ognl component parameter? I
have a formal parameter tableSize. I cannot perform the assignment. HTML...
<div jwcid="[EMAIL PROTECTED]:Gallery"> <span
jwcid="@RenderBody">...</span> </div>
<span jwcid="@Script"
script="/org/trails/demo/components/Gallery.script"
theWidget="ognl:components.galleryWidget"
theTableSize="ognl:components.galleryWidget.tableSize" /> SCRIPT
<input-symbol key="theWidget" required="yes" /> <input-symbol
key="theTableSize" required="yes" /> <let
key="tableSize">${theTableSize}</let> <body> ${numColumns} = 2;
${tableSize} = ${numColumns}; </body> Why can't I perform assignment
${tableSize} = ${numColumns}; within the body??? It evaluates to 2_0 = 2; Is
there some BIND call on a static tapestry object I have to call formally? All I
am trying to do is see the binding thru not as an input but as an output in
order to assign the parameter/property on the actual java component. Thanks for
your help.Best regards Ken in nashua
Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it
now!
_________________________________________________________________
Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it
now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033