Stephan,
you can extend the possible return types of the onActivate method by
adding a ComponentEventResultProcessor to you configuration. You can
define an HttpStatusCode class that returns the code you wish.
I don't know if you consider this clean, but it takes HTTP
internals, codes etc. out
This quite good but my problem still persist. To have more components on same
page block ID should be variable as well. But I'm facing to similar problem,
how to get instance of Block according its ID? If I set block ID as constant
i.e. myBlock then I cannot have more than one component on a same
Why use dynamic block id? You can use dynamic zone id,then use static block
to update it's content.
I think you should change your strategy.
2010/1/15 LiborGMC l.pre...@gmc.net
This quite good but my problem still persist. To have more components on
same
page block ID should be variable as
Hello,
can someone pls give me some hints how to handle user session expirations
without writing much boilerplate code? I'd like to send a special session
expiry page. Has T5 a mechanism for that?
Thx, Klaus
--
View this message in context:
On Fri, 15 Jan 2010 11:55:01 -0200, Jun Tsai jun.t...@gmail.com wrote:
Why use dynamic block id? You can use dynamic zone id,then use static
block to update it's content.
No component or block id can be dynamic in Tapestry: static structure,
dynamic behaviour.
As Jun said, you can use
On Fri, Jan 15, 2010 at 3:25 PM, Klaus Kopruch klaus.kopr...@materna.de wrote:
can someone pls give me some hints how to handle user session expirations
without writing much boilerplate code? I'd like to send a special session
expiry page. Has T5 a mechanism for that?
Implement one of the
On Fri, 15 Jan 2010 12:25:16 -0200, Klaus Kopruch
klaus.kopr...@materna.de wrote:
Hello,
Hi!
can someone pls give me some hints how to handle user session expirations
without writing much boilerplate code? I'd like to send a special session
expiry page. Has T5 a mechanism for that?
T5
On Fri, Jan 15, 2010 at 3:34 PM, Thiago H. de Paula Figueiredo
thiag...@gmail.com wrote:
T5 doesn't, but the Servlet API has. Create an HttpSessionBindingListener
implementation and add it to the Session. Its valueUnbound() method will be
invoked when the session is invalidated.
Actually
On Fri, 15 Jan 2010 12:40:24 -0200, Massimo Lusetti mluse...@gmail.com
wrote:
On Fri, Jan 15, 2010 at 3:34 PM, Thiago H. de Paula Figueiredo
thiag...@gmail.com wrote:
T5 doesn't, but the Servlet API has. Create an
HttpSessionBindingListener
implementation and add it to the Session. Its
Hello,
I have a BeanEditForm that updates a Zone through the zone attribute.
It works fine.
Now, I would like to display a kind of loading icon (or invoke a
Javascript method) just *before* the Ajax request, but I could find any
solution.
I could not make ProgressiveDisplay work in such a
An easier solution would be to like Thiago sugested. Here's my code that
does the trick.
Cheers,
Joost
.js file:
AjaxProgressTracker = {
init: function() {
Ajax.Responders.register({
onCreate: function() {
// ajax request is sent
Tx, I'll play with it.
--
View this message in context:
http://old.nabble.com/Handling-session-expiry-tp27177262p27178359.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail:
On Fri, 15 Jan 2010 12:46:55 -0200, Baptiste Autin - Linkeo RD
baptiste.au...@linkeo.com wrote:
Now, I would like to display a kind of loading icon (or invoke a
Javascript method) just *before* the Ajax request, but I could find any
solution.
I've never tested it, but maybe Prototype's
Massimo Lusetti wrote:
Implement one of the listeners, for ex HttpSessionListener, then
access the registry from the context and do what you need.
Where do you install HttpSessionListener? What registry and what context do
you mean?
--
View this message in context:
I don't use @SessionState with my HttpSessionBindingListener
implementation. I set it in the Session directly. ;)
Exactly, just set it in your web.xml:
listener-class
com.web.application.SessionListener
/listener-class
And then in SessionListener:
Thiago H. de Paula Figueiredo wrote:
I don't use @SessionState with my HttpSessionBindingListener
implementation. I set it in the Session directly. ;)
In javax.servlet.http.HttpSession or org.apache.tapestry5.services.Session?
--
View this message in context:
On Fri, 15 Jan 2010 13:08:50 -0200, Klaus Kopruch
klaus.kopr...@materna.de wrote:
In javax.servlet.http.HttpSession or
org.apache.tapestry5.services.Session?
Tapestry's Session is just a facade around the HttpSession. Thus, setting
some attribute in Session makes it be set in the
Ok it sound me like I hit to limit of Tapestry. Well I'm not able refresh
components if there are more of them on same page.
Or what strategy shall I use? Could anybody bring in how to implement this
scenario:
-Component needs refresh after user click on Action. But only this component
should be
Uhh I write faster then I think :-(. Now I finally understand what did you
try to suggest me. Sorry for the last post ;-).
Thank you for your help
Libor
--
View this message in context:
http://old.nabble.com/get-component-according-to-ID-tp27144243p27178827.html
Sent from the Tapestry - User
On Fri, 15 Jan 2010 13:23:23 -0200, LiborGMC l.pre...@gmc.net wrote:
-Component needs refresh after user click on Action. But only this
component should be refreshed, not whole page
Use a Zone.
-There could be more these components on same page
Use some Zones and a MuitiZoneUpdate.
Thanks a lot guys. It works!
(... even if I think the solution is rather complicated for a simple
need... It would be great if a future release of Tapestry offered a way
to call some Javascript just before an Ajax request!)
Joost Schouten (ml) a écrit :
An easier solution would be to like
On Fri, 15 Jan 2010 14:50:07 -0200, Baptiste Autin - Linkeo RD
baptiste.au...@linkeo.com wrote:
Thanks a lot guys. It works!
:)
(... even if I think the solution is rather complicated for a simple
need... It would be great if a future release of Tapestry offered a way
to call some
I think Ajax.Responders.register({ onCreate: function() { ... } )}; is
easy enough. :)
Not as much as something like, say:
t:zone before=myfunction /
:-)
(a special attribute on a t:zone, or on a t:beaneditform, I don't know
what would be the best...)
Your solution also means adding a
On Fri, 15 Jan 2010 15:58:02 -0200, Baptiste Autin - Linkeo RD
baptiste.au...@linkeo.com wrote:
Not as much as something like, say:
t:zone before=myfunction /
:-)
You're right. You can file a JIRA to request this improvement. :)
--
Thiago H. de Paula Figueiredo
Independent Java, Apache
Is it possible to use dynamic roles in the @Secured(ROLE_XYZ) page
annotation in such a way that a service could be employed to retrieve a list
of roles and populate the annotation before the request is
intercepted/interrogate by the Spring $ecurity integration? Something
equivalent to an
25 matches
Mail list logo