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.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033

Reply via email to