corrected syntax... forgot form name
The alert works...
alert(document.forms.galleryForm.tableSizeSelect.value);
The assignment does not.
${theWidget.tableSize} = document.forms.tableSizeSelect.value;
This is what the assignment parses to...
2 = document.forms.galleryForm.tableSizeSelect
Attached is the modules in question...
My tableSize parameter is specified in Home.html along with the component.
I am able to dereference the form and get/set the value of the select component.
I guess I want to get the value of the select and assign it to the ognl
property of my component
more clarification...
alert(document.forms.tableSizeSelect.value);
${theWidget.tableSize} = document.forms.tableSizeSelect.value; why is the above
assignment not possible? Inside the widget I have tableSize declared as a
Parameter.
This poses a dereferencing dilemma as ${theWidget.tableSize}
Someruntime output...
document.forms[0] document.forms[0].id
${theWidget.tableWidth} ${theWidget.tableSize} ${theWidget}
this alert(${galleryForm}); alert(${galleryFormId});
alert("${theWidget.clientId}"); alert("${theWidget}"); alert("${tWidget}");
alert("${tableSize}");trans
correction...
>BUT document.forms.${myFormName} produces undefined at the above works...
But if I have a DIV or SPAN above in a containing html file I am unable to
assign a name to it or dereference it in the document object.
clarification on how to dereference and assign output data to these
I have read over and over these docs...
http://tapestry.apache.org/tapestry4.1/ajax/basics.html
http://tapestry.apache.org/tapestry4.1/components/general/script.html
http://tapestry.apache.org/tapestry4.1/faq.html#script-component
Including Kent Tongs doc on scripting which is solely focused o
Folks,
I am using simple div/span... no form.
When I attempt to index an element is showing undefined.
1. document.forms[0] produces my form alright and it has a name
BUT document.forms.${myFormName} produces undefined at
runtime ? Why the lapse ? myFormname equates to the