You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Lenny Primak <lp...@hope.nyc.ny.us> on 2011/09/14 21:25:14 UTC
Ajax events, expired session and @Persist fields
This is a design/best practices question.
We set up @Persist fields inside @SetupRender method.
When a session is invalid/expired and an Ajax event is called,
All these fields at null.
The question is if there is a better way to handle this situation than having to check for Null in every Ajax event method for every @Persist field?
I was thinking that @SetupRender should be called in case of session expiration during Ajax call. Is there any way I can make this happen myself? Or should I open a Jira and maybe that can be an enhancement to tapestry?
Thanks for your help.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Jetty lock on JS-file [Redux]
Posted by "Wechsung, Wulf" <wu...@sap.com>.
Hi Guys,
today I ran into the ole Jetty locking resource again because I started doing some Javascript. Howard had responded two years ago:
> I've hit this problem too, on a client's project using RunJettyRun.
> The solution is to move classpath resources from src/main/java (or
> equivalent) to src/main/resources (or equivalent) and add
> src/main/resources as a class folder. Thiis keeps Eclipse from trying
> to copy the files (from src/main/java to classes) when they change and
> that seems to keep everyone happy.
While this works you won't have the resources folder with neat collapsed packages as the source folders have.
I'm writing because I have reproduced the exact same issue with a file in resources that get's loaded by my own code. When I changed the code to properly close the input stream this problem disappears. Is it possible that tapestry just doesn't release the input streams it holds on .js files?
Kind Regards,
Wulf
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org