The moose likes Other Application Frameworks and the fly likes Javascript file handling in Tapestry 3.0.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "Javascript file handling in Tapestry 3.0.3" Watch "Javascript file handling in Tapestry 3.0.3" New topic
Author

Javascript file handling in Tapestry 3.0.3

Leon Pu
Greenhorn

Joined: Nov 02, 2005
Posts: 22
Hi all,

it seems the javascript .js file has to be treated as xml in Tapestry
3.0.3.

But sine my .js file has been writen into xml and all javascript
functions are inside <![CDATA[]], the .js file becomes unavailable for
html impression edit and view.

I don't want to maintain two copies of .js file, one for html edit and
view which is the typical javascript file, another one is for Tapestry
which writen in xml format.

I tried to use xml external entity to include the plain .js file to a
xml which used by Tapestry. But it seems I cannot put the xml external
entity to <![CDATA[]> since the .js file is not a xml file, there are
some special characters inside likes &.

So how can I handle javascript file in Tapestry application? Is it
possible to only keep on javascript file copy which can be used for
both hml edit and Tapestry?


Best regards,
Leon
 
 
subject: Javascript file handling in Tapestry 3.0.3
 
Threads others viewed
some notes on xml
need help on mock question
Failed to set external entity into CDATA
CDATA in html
How to Write jQuery into RichFaces?
IntelliJ Java IDE