Javascript input symbols can be assigned in the template:

Javascript:
<input-symbol key="componentName" required="yes"/>
...

Template:
<myComponent jwcid="[EMAIL PROTECTED]"/>
<script jwcid="@Script" script="myScript.script"
componentName="components.myComponentName.name"/>

Based on the example in TIA I think this is what you are asking, but
please clarify if I'm wrong.

Ben

-----Original Message-----
From: Raul Cesar Teixeira [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 24, 2005 12:40 PM
To: Tapestry User List
Subject: Javascript & Components

I am creating a simple component with some JAVASCRIPT based on an HTML
TEMPLATE and the BaseComponent. In other words, I did NOT create a
specific class for the component. I now need to access the components
ID within the <initialization> section of the .SCRIPT file. I thought
about doing this through SYMBOLS, but from what I saw in the examples
in the TAPESTRY IN ACTION book, I would need to create a specific
class for the component and implement the renderComponent method. Is
there any other way? One in which I could keep my HTML template, and
NOT have to implement a new class?

Thank you,

Raul

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to