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 expan
On Fri, 15 Jan 2010 15:58:02 -0200, Baptiste Autin - Linkeo RD
wrote:
Not as much as something like, say:
:-)
You're right. You can file a JIRA to request this improvement. :)
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and i
I think Ajax.Responders.register({ onCreate: function() { ... } )}; is
easy enough. :)
Not as much as something like, say:
:-)
(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 renderSupport in the Java file...
On Fri, 15 Jan 2010 14:50:07 -0200, Baptiste Autin - Linkeo RD
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 Javascript just before an Ajax
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 Th
On Fri, 15 Jan 2010 13:23:23 -0200, LiborGMC 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.
More information at
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 m
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
On Fri, 15 Jan 2010 13:08:50 -0200, Klaus Kopruch
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 HttpSession too.
--
Thiago H.
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:
http://old.nabble.com/
> I don't use @SessionState with my HttpSessionBindingListener
> implementation. I set it in the Session directly. ;)
Exactly, just set it in your web.xml:
com.web.application.SessionListener
And then in SessionListener:
/** @see HttpSessionListene
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:
http://old.nabble.
On Fri, 15 Jan 2010 12:46:55 -0200, Baptiste Autin - Linkeo RD
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 Ajax.Responders object is a
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: users-u
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
AjaxProgressTr
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 si
On Fri, 15 Jan 2010 12:40:24 -0200, Massimo Lusetti
wrote:
On Fri, Jan 15, 2010 at 3:34 PM, Thiago H. de Paula Figueiredo
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
On Fri, Jan 15, 2010 at 3:34 PM, Thiago H. de Paula Figueiredo
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 HttpSessionBindingLi
On Fri, 15 Jan 2010 12:25:16 -0200, Klaus Kopruch
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 doesn't, but the Servlet A
On Fri, Jan 15, 2010 at 3:25 PM, Klaus Kopruch 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 listeners, for ex HttpSes
On Fri, 15 Jan 2010 11:55:01 -0200, Jun Tsai 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 another approach for
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:
http://old.nabble.com/Handling-session-expiry-tp27177
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
>
> 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
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 sam
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
25 matches
Mail list logo