[ http://issues.apache.org/jira/browse/TAPESTRY-842?page=all ] Andreas Andreou resolved TAPESTRY-842: --------------------------------------
Fix Version: 4.0.3 Resolution: Fixed > @Script example appears to be wrong > ----------------------------------- > > Key: TAPESTRY-842 > URL: http://issues.apache.org/jira/browse/TAPESTRY-842 > Project: Tapestry > Type: Bug > Components: Documentation > Versions: 4.0 > Environment: linux, eclipse, > Reporter: Alan Chandler > Assignee: Andreas Andreou > Fix For: 4.0.3 > > The second example of the @Script component seems to be wrong (at least my > attempts to use a modified version of it failed). > Two problems. > one > <script> should be the root element at the top of the file (ahead of the > <input-symbol> and <let> items > two > in > <body> > function setFocus() { > var inputField = ${componentObject.name}; > ... > the var inputField should be > ${componentObject} > as name has already been resolved in the <let> element. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]