Actually the error was in the html template of the component:
The @Script refers to the text field component barCode but it is written
before the the component itself. Hence when the file is parsed the the
text field component doesn't exist yet.
I have put the Scrtp declaration after the </form> tag and it works.


<html>
<head>
<title>MET Online</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href="css/stile_palmare.css" rel="stylesheet" type="text/css">
</head>
<body>
 <span jwcid="@Script"
script="/it/archimede/met/metgestioneingressi/tapestry/scripts/FormFocus.script"
component="ognl:components.barCode"/>

    <div id="box_operazione">
    <h1>Lettura BarCode</h1>
        <br />
          <h2>passare il barcode sotto il lettore ottico</h2>
    <form method="post" action="" jwcid="barCodeForm">
          <input type="text" jwcid="barCode" class="text_box" value="" />
          <br /><br />
        <input type="submit" name="Submit" value="Submit" class="bottone">
      </form>
   </div>

</body>
</html>




-- 
==================================================
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==================================================



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to