[Mav-user] Multiple conditional ${wrapped}?

2004-09-01 Thread Cyrille Bonnet
Hi Maverick users, I have a simple problem. Of course, I'd like a simple solution :-) We use a header JSP across many JSP pages. On some of those JSP pages, we have Javascript functions available (inside the tag), but not on all pages. We use the ${wrapped} and Maverick transformation to replac

RE: [Mav-user] Multiple conditional ${wrapped}?

2004-09-01 Thread jim moore
Why not just put all the javascript functions in a .js file and then just include that in the pages: --jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cyrille Bonnet Sent: Wednesday, September 01, 2004 10:07 PM To: [EMAIL PROTECTED] Subject: [Mav-us

RE: [Mav-user] Multiple conditional ${wrapped}?

2004-09-01 Thread Cyrille Bonnet
Hi Jim, Thanks for your suggestion. I guess that is similar to my workaround #1 (all Javascript functions in all pages). That works all right, but I'd prefer to have only the Javascript functions I need in that page included. Something like: For page1 And: For page2. (indications on weth

Re: [Mav-user] Multiple conditional ${wrapped}?

2004-09-01 Thread Doug Kirk
Indeed, the solution presented below is best, because then the browser will just cache the entire .js file. However, I've had problems using the XML shortcut for empty tags in this particular case, so always do Cheers, doug On Sep 1, 2004, at 4:49 PM, jim moore wrote: Why not just put all the

RE: [Mav-user] Multiple conditional ${wrapped}?

2004-09-01 Thread Schnitzer, Jeff
>From Cyrille Bonnet > > Hi Jim, > > > > For page1 > > And: > > > > For page2. > > (indications on wether to include functions1.js or functions2.js would be > included in maverick.xml as a transform) There are a few ways of doing this. Option #1: Specify a param in maverick.xml