Re: Getting Session State Object from another servlet alongside Tapestry

2012-05-10 Thread Kartweel
Thanks. That seems like a better approach, rather than ignoring it, to still process it but pass it onto the other servlet. I guess the trick is making the request filter pass it into Vaadin, so I need to find out how Vaadin needs it to work. I guess instantiate the Vaadin servlet and just pass

Re: Getting Session State Object from another servlet alongside Tapestry

2012-05-08 Thread Kartweel
Using the code in that post (and updating it for T5.3) seems to work. But I don't know why... am I going to create a memory leak?. In my other servlet I can call registry.cleanUpThread() at the end of every request. Now just the fun of trying to kinda link a page based framework like tapestry with

Re: Getting Session State Object from another servlet alongside Tapestry

2012-05-08 Thread Kartweel
Found a similar post here. Any advice? :) http://osdir.com/ml/users-tapestry-apache/2009-12/msg00140.html -- View this message in context: http://tapestry.1045711.n5.nabble.com/Getting-Session-State-Object-from-another-servlet-alongside-Tapestry-tp5696382p5696398.html Sent from the Tapestry - U

Getting Session State Object from another servlet alongside Tapestry

2012-05-08 Thread Kartweel
Hi, I've got another servlet running alongside tapestry. I would like to get a sessionstate object from Tapestry to find out the currently logged in user (And probably a few other things too eventually). I've accessed the Service registry and can build the ApplicationStateManager service, but on

Get progress of file upload

2012-01-01 Thread Kartweel
Hi, I'm wanting to get the progress of a file upload (server side, not client side) and then update it client side using an ajax polling component. The problem is I can't even get the page to activate before the upload is complete. So I guess I need to hook into the upload component somehow?, any

Re: [T5.3] @ActivationRequestParameter not encoding to be URL friendly

2011-11-28 Thread Kartweel
too much grief to fix for code > already working around it) > > /** > * Adds a parameter value. The value will be added, as is, to the URL. > In many cases, the value should be URL > * encoded via {@link URLCodec}. > * ... > > > > Josh > > > On Sat, Nov 26

Re: [T5.3] Need a replacement for pageDetached (or a better way to achieving this...)

2011-11-28 Thread Kartweel
t > private Request request; > > @InjectContainer > private Form form; > > void afterRender() { > if (request.isXHR()) { > if (form.getDefaultTracker() != null) > form.getDefaultTracker().clear(); > form.setDef

[T5.3] Need a replacement for pageDetached (or a better way to achieving this...)

2011-11-26 Thread Kartweel
Hi, I have the following code which I've been using to work around forms invalidly persisting data on ajax requests (ie. form is rendered in the ajax response, but the validation tracker stores the values for the NEXT request, it needs to be cleared straight away). Now that pageDetached is depreci

[T5.3] @ActivationRequestParameter not encoding to be URL friendly

2011-11-26 Thread Kartweel
Hi, I have a situation where my ActivationRequestParameter has an & symbol in it. This doesn't seem to get encoded when it is attached to the query string. When it gets submitted back to tapestry everything after the & is just truncated (because obviously after the & it thinks a new parameter is st

Re: Ajax and Validation

2011-06-13 Thread Kartweel
It still gave me issues when submitting a form with an error then submitting it valid, then it would bring up the old values and clobber the real values (after saving I default back to different data in the form). So I ammended it to @PageDetached void clearValidationTracker() {

Re: Ajax and Validation

2011-06-13 Thread Kartweel
Hi, I've had major issues with this because the ValidationTracker also reloads old field values which in a non-ajax scenario is great, but in an ajax scenario has caused it to clobber the proper field values. It has caused many headaches and I think it really should be handled [better] by default

Re: T5 Page Doctype Causing Application to Hang

2011-03-12 Thread Kartweel
I got it working. For reference this is the list of DTDs that need to be stored locally and contributed to the template parser. -//WAPFORUM//DTD XHTML Mobile 1.0//EN http://www.wapforum.org/DTD/xhtml-mobile10.dtd -//W3C//ELEMENTS XHTML Inline Style 1.0//EN http://www.w3.org/TR/xhtml-modularizati

Re: T5 Page Doctype Causing Application to Hang

2011-03-12 Thread Kartweel
Howard Lewis Ship wrote: > > Looks like you did the correct thing. I'd check with the debugger that > your contribute method is being invoked, then many put a break point > inside SaxTemplateParserImpl as well. > Thanks for the quick reply. I feel honoured talking to the main man! :), I've ch

T5 Page Doctype Causing Application to Hang

2011-03-11 Thread Kartweel
Hi, I have a mobile web application using the doctype ;. On the first page request the application hangs for several hours before it will send a response. It used to only take several sec

Re: T5.1 Ajax requests and responses out of order

2010-08-15 Thread Kartweel
Thanks, That is a great idea. Much simpler than implementing the token idea but would achieve a good result in my case. On 13/08/2010 5:38 PM, Andreas Andreou-4 [via Tapestry] wrote: > dojo used to have queueBind - that would trigger an ajax request only > after > the previous one had returne

Re: T5.1 Ajax requests and responses out of order

2010-08-12 Thread Kartweel
Josh Canfield wrote: > > If Autocomplete isn't want you want then you could implement a > timeout so you only send the data when the user pauses. You can look > inside the scriptaculous code for an example. > Thanks. I actually have implemented a timeout so it only submits when the user pauses

T5.1 Ajax requests and responses out of order

2010-08-12 Thread Kartweel
Hi, Before I re-invent the wheel, I was wondering if anyone has dealt with ajax requests and responses being out of order?. Issue 1 I have a field which submits with each character typed (with the goal of filtering down a list). What is happening is that the anti-virus is scanning the submitted

Re: [T5] AJAX and partial updates of forms ? [Zone AjaxFormLoop FormInjector FormFragment and the like]

2009-08-21 Thread kartweel
Did you have any success going down this path? I'm trying to do the same thing. Tapestry is great until it doesn't do something you need to do then all the benefits of it go out the window as you spend 2 weeks figuring out how to do something that is quite simple without it. Francois Armand wrot

Re: [T5] Security of files in the classpath

2009-08-14 Thread kartweel
I thought the digest generator is meant to make a different digest for each file, but it seems to be for the whole app?, or is that bit something to do with app versioning for caching and what not and not the digest?. This whole thread has some ideas for a white list approach to files on

Re: [T5] Security of files in the classpath

2009-08-14 Thread kartweel
d >> contributeResourceDigestGenerator(Configuration configuration) >> { >> configuration.add("properties"); >> configuration.add("xml"); >> } >> >> However i agree that this should be documented or even

Re: [T5] Security of files in the classpath

2009-08-13 Thread kartweel
Hi Guys, Sorry to pull up an old thread, but there doesn't seem to be a lot about this topic. Was there ever a nice solution implemented for this? 2 years of tapestry framework development later and I can still download all my class files. I've restricted assets to "authenticated users" using a me

Dynamically selecting a component to render output

2009-08-11 Thread kartweel
Ok... This has probably been dealt with, but I can't find an answer or must be searching the wrong thing... I need a component to be dynamically selected at runtime rather than being static in the template and using an (or delegate and blocks, etc) to show it. Any pointers to be able to do this?

Re: T5.1 User authentication, session expiring even though sso is accessed every request

2009-07-14 Thread kartweel
New thoughts. Could it be the session cookie not being renewed on the browser?. That would also make sense as I set the session timeout to 900 minutes in the web.xml and it didn't make any difference... So yes as you say appears to be a servlet container / browser problem. Thanks! Thiago H. de

T5.1 User authentication, session expiring even though sso is accessed every request

2009-07-14 Thread kartweel
Hi, I'm scratching my head a bit with my "user" object expiring in the session. I'm using the dispatcher method for setting up access control as in the wiki ( http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2 ). Now everything is working great except that after around the 20 minute

Re: Staying in secure or non-secure mode rather than autoswitching based on @secure

2009-05-23 Thread kartweel
Cheers, I changed this to return null instead too. public String getBaseURL(String pageName) { return baseURLSource.getBaseURL(request.isSecure()); } Ryan Inge Solvoll-2 wrote: > > This should do the trick :) > > You can probably do the same thing more intuitively by advising the >

Staying in secure or non-secure mode rather than autoswitching based on @secure

2009-05-22 Thread kartweel
Hi, I basically want to switch off tapestry's auto switching between secure and non-secure and keep it in the same "mode" as the current request instead of generating full URLs and changing it to http. I need internal access via http or https and external access firewalled to allow https only. I

Re: Component equivalent of Page onActivate()

2009-04-04 Thread kartweel
Geoffrey Wiseman wrote: > > On Sat, Apr 4, 2009 at 11:54 AM, kartweel wrote: > >> But it doesn't work for action(event) requests. So great until you press >> the >> button in the form or click an action link. >> > > Ah, yes, you said that bef

Re: Component equivalent of Page onActivate()

2009-04-04 Thread kartweel
Robert Zeigler wrote: > > even easier than using the flag, why not use the @Cached annotation? > > @Cached //will now be evaulated once and only once per request, but > you can play witih that using the "watch" parameter. > > Cheers!. Didn't think of that one. Makes it a little tidier :).

Re: Component equivalent of Page onActivate()

2009-04-04 Thread kartweel
Geoffrey Wiseman wrote: > > @SetupRender? > But it doesn't work for action(event) requests. So great until you press the button in the form or click an action link. -- View this message in context: http://www.nabble.com/Component-equivalent-of-Page-onActivate%28%29-tp22865238p22884820.html S

Re: Component equivalent of Page onActivate()

2009-04-03 Thread kartweel
t any other ideas?? Anyone else got any other suggestions? An @Initialise or @onActivate annotation or something would be great so we can make sure things are initialised on render and action requests. kartweel wrote: > > Hi Everyone, > > This may be simple, but I can't

Component equivalent of Page onActivate()

2009-04-03 Thread kartweel
Hi Everyone, This may be simple, but I can't seem to figure it out. A page will initialize on an action request with the onActivate() method. But I can't figure out how to get a component to initialize on an action request. I know we can use @SetupRender, etc, but this is no good for an Ajax res