In don't believe html:rewrite works correctly as implemented by portals
bridges.  If I run inside a portal (pluto), it correctly picks up the
context but if I run outside then the context picks up incorrectly or vice
versa.

The simplest solution is to look at the page source and see what has been
emitted for the js link.  Then cut and past the emitted src='' to the url
and see if the browser finds the source file.

> -----Original Message-----
> From: Alberto Moreno López [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 19, 2005 12:05 PM
> To: [email protected]
> Subject: The Portlet don't load the js file
> 
> 
> I have a javascript file (js) and in my jsp I write this code:
>  
> <script language='javascript' src='<html:rewrite
> page="/modules/common/themes/${sessionScope.theme}/resources/j
> avascript/atri
> lUtil.js"/>' type='text/javascript'></script>
>  
> When I make a call to one function located in the js file:
>  
> <html:select property="themeName" value="${sessionScope.theme}"
> onchange="javascript:selectTheme()">
>      <html:optionsCollection name="themesList" value="name" 
> label="name"/>
> 
> </html:select> 
>  
> give an error: Error: selectTheme is not defined
>  
> how can I find a solution????
>  
> Thanks
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.14.1/206 - Release 
> Date: 12/16/2005
>  
> 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/207 - Release Date: 12/19/2005
 

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

Reply via email to