• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Javascript file handling in Tapestry 3.0.3  RSS feed

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!