Re: WebResource and authentication

2008-09-11 Thread Adriano dos Santos Fernandes
Serkan Camurcuoglu escreveu: Session javadoc says: *Access via Thread Local *- In the odd case where neither a RequestCycle nor a Component is available, the currently active Session for the calling thread can be retrieved by calling the static method Session.get(). This last form should only

Re: WebResource and authentication

2008-09-11 Thread Serkan Camurcuoglu
Session javadoc says: *Access via Thread Local *- In the odd case where neither a RequestCycle nor a Component is available, the currently active Session for the calling thread can be retrieved by calling the static method Session.get(). This last form should only be used if the first two form

Re: WebResource and authentication

2008-09-11 Thread Adriano dos Santos Fernandes
Am I on wrong direction? How can I have a PDF generator integrated with Wicket authentication? I can't image how can I ask Wicket if user is authenticated or not. I don't even see how can I access the Session from WebResource... Adriano Adriano dos Santos Fernandes escreveu: H! I inherit

WebResource and authentication

2008-09-09 Thread Adriano dos Santos Fernandes
H! I inherited my application class from AuthenticatedWebApplication so my pages requires authentication. It worked. But I've created a class inherited from WebResource to deliver Jasper Report in PDF and mounted it with this code: mountSharedResource("/Report", new ResourceReference(