Hi,

We encountered the same phenomenon with wicket dojo. 
The reason is that if resources are loaded by a servlet engine when there is
no session cookie set to the client, the servlet engine does url rewriting,
and appends ?jsessionid=xxx to the urls it generates. 
Dojo has some internal coding that tries to identify its base url by
checking for dojo.js at the end of the dojo urls. The base url is used to
fetch other .js files. When this url rewriting occurs, the base url is no
longer correctly identified.

The patch ...

dojo.js : line 600

original
----------
var m=src.match(_9e);
if(m){

new
------
var jsessionididx=src.lastIndexOf(';jsessionid=');
if(jsessionididx>-1)  src=src.substring(0, jsessionididx);
var m=src.match(_9e);
if(m){




Azarias Tomás wrote:
> 
> 
> Hi, 
> I am having problems with DojoDatePicker and Wicket Templates. When I
> remove the template the DojoDatePicker , it 's Ok, otherwise it doesnt get
> shown.
> Throwing this messages on the client :
> 
> Could not load 'dojoWicket.widget.SimpleDropdownDatePicker'; last tried
> '__package__.js'
> [Break on this error] throw _13||Error(_12);
> 
> Could someone give me pointers to solve this?
> 
> AT
> 

-- 
View this message in context: 
http://www.nabble.com/Dojo-with-Wicket-1.3--Templates-tf4470567.html#a13794965
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to