Dear Developers and Users!
How to use script component?
I read a guide, but had no successful attempt to construct an example.
I need to connect external file Tab.js is JavaScript a code.
I did(made) the following:

1. In Home.html I add a fragment:
...
<script jwcid="tab_script"></script>
</head>
...

2. In Home.jwc I add:

...
<id="tab_script" type="Script">
<static-binding name="script">/site/Tab.script</static-binding>
</component>
...
</specification>
...
3. Create Tab.script. In which there is a code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script PUBLIC
  "-//Howard Ship//Tapestry Script 1.1//EN"
  "http://tapestry.sf.net/dtd/Script_1_1.dtd";>

<script>
<include-script resource-path="js/TabLayer/Tab.js" />
</script>

I receive a mistake:

Name:  net.sf.tapestry.RequestCycleException
Message:  Script components must be contained within a Body component.
component:  net.sf.tapestry.html.Script@260d8d[Home/tab_script]

Dear People!
What in this example is a mistake?
I very much need in an example.


Please, advise!
Elena


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to