I got the event handlers triggering now... not that I am comfortable with what
thr runtime is doing under the hood
I wanted to restate my issue
During EDIT with this EDIT Page
on OK or CANCEL
my browser URL looks like
http://localhost:8080/psi/metatag/1
but strangely what is on the browsers d
package org.tynamo.examples.psi.pages.edit;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.apache.shiro.authz.annotation.RequiresUser;
import org.apache.tapestry5.EventConstants;
import org.apache.tapestry5.Link;
import org.apache.tapestry5.annotations.CleanupRender;
i
Hi Thiago,
I changed passivate to onPassivate... and no change
I did notice that
activate gets called once
passivate gets called 5 times
cleanup gets called once
passivate gets called 6 times
activate gets called once
and thats the end... in that order
and my URL is
http://localhost:8080/psi/
Thanks Thiago for your help
Ok List.JAVA is located under the pages directory
https://github.com/tynamo/tapestry-model/blob/master/tapestry-model-example/src/main/java/org/tynamo/examples/simple/pages/List.java
This is one typical sample app that uses it. Its identical to the one I use. If
your
On Sat, 01 Nov 2014 09:07:10 -0200, nhhockeyplayer nashua
wrote:
the tynamo guys had a List.java module
Link to it please? I have no idea what you're talking about.
Any ideas ? I fixed the activate being triggered... but the EventContext
object is not delivering for me.
EventContext wi
On Sat, 01 Nov 2014 08:20:20 -0200, nhhockeyplayer nashua
wrote:
This is whats inside eventcontext
Have you tried its getCount() and get(Class, int) methods?
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
I had to say...
I got breakpoints on both passivate and activate
ONLY activate is being triggered
And I am not receiving what I need in my eventcontext object
Not sure what to think at this point
the tynamo guys had a List.java module that is used and replicated as a page.
At one point I was
Chris,
Thanks
I put what you stated... and triggered finally my breakpoint.
This is whats inside eventcontext
Now what ?
On Fri, 31 Oct 2014 13:31:54 -0200, Lance Java
wrote:
Tapestry seems magic at times but it can't read your mind unfortunately.
Tapestry is magic, not psychic! (tm) :D
How on earth would tapestry know what to instantiate for Object?
Impossible, unless, of course, your contribute a ValueE
Tapestry seems magic at times but it can't read your mind unfortunately.
How on earth would tapestry know what to instantiate for Object?
On Fri, 31 Oct 2014 12:29:16 -0200, Chris Poulsen
wrote:
If the actual arguments does not fit the signature the handler will be
skipped (the rules can be found in the docs).
Try: Object onActivate( EventContext ec )
to see what is acutally getting passed as context.
Actually, I'd consider
If the actual arguments does not fit the signature the handler will be
skipped (the rules can be found in the docs).
Try: Object onActivate( EventContext ec )
to see what is acutally getting passed as context.
On Fri, Oct 31, 2014 at 3:21 PM, nhhockeyplayer nashua <
nhhockeypla...@hotmail.com>
FlowLogix library also has a couple of solutions to deal with this:
@AJAX annotation
http://code.google.com/p/flowlogix/wiki/TLAJAXAnnotation
that will redirect to the login screen if session has expired (among other
things)
and the SessionMonitor component
http://code.google.com/p/flowlogix/wi
Hi Jens
On Oct 28, 2013, at 19:44 , Lenny Primak wrote:
...
>> The statement above would make me think that Tapestry-Security does work for
>> AJAX requests too, as onActivate() is invoked for every request for the
>> page, render or action.
>
> The way Tapestry-Securitiy filter is set up is
On Oct 28, 2013, at 8:09 AM, Thiago H de Paula Figueiredo wrote:
> On Sun, 27 Oct 2013 11:44:42 -0200, Lenny Primak
> wrote:
>
>> I don't think Tapestry-Security works for Ajax requests.
>> I think it's geared more of blocking access to pages for initial load.
>
> I wouldn't say that before c
On Sun, 27 Oct 2013 11:44:42 -0200, Lenny Primak
wrote:
I don't think Tapestry-Security works for Ajax requests.
I think it's geared more of blocking access to pages for initial load.
I wouldn't say that before checking the source first.
How can you have AJAX requests for a page that's no
I do believe your assumption is correct.
> On Oct 28, 2013, at 2:51 AM, "mailingl...@j-b-s.de"
> wrote:
>
> Hi Lenny
>
> Thanks for your answer. I guess my description was somehow incomplete...
>
> OnActivate from the "unauthorized" page is not called, that's surprising to
> me.
>
> The u
Hi Lenny
Thanks for your answer. I guess my description was somehow incomplete...
OnActivate from the "unauthorized" page is not called, that's surprising to me.
The user has permission to view the page in general but misses certain
functionality permissions triggered by event callback method
I don't think Tapestry-Security works for Ajax requests.
I think it's geared more of blocking access to pages for initial load.
How can you have AJAX requests for a page that's not authorized?
Also, in Tapestry 5.4, this should be handled properly by way T5.4 handles
JavaScript.
onActivate isn'
Hi Jens.
I think it depends on what you want to do after finding out that you cannot
coerce the parameter.
If you want to redirect to another page the logic should still be in the page
class or maybe a T5-RequestFilter where you can move that logic/redirection
code to.
If you want to "rewrite"
@Inject
private Request request;
if(eventContext.getCount()==0){
if(request.isXHR()){
return null;
}
return "index";
}
Any better idea?
Hi, thank you both for the answers!
I know the problem of passing user&pass via url, but for the time being I
can't change it. All pages ( except Login ) are protected by
@RequiresAuthentication annotation of tapestry-security framework thus they
are locked if you are not logged. Login page appea
On Fri, 29 Jul 2011 19:58:40 -0300, David Canteros
wrote:
I have to implement an automatic login on my tap application. I use tap
5.2.6 and tapestry-security 0.3.1.
Initially I had a Login page with a login form, but now I have to pass
the username and password to the login page via url, l
You can have more than one onActivate method in a page class. Tapestry
determines, which to call by the parameter count. You can write a catch-all
onActivate. Code looks like this:
Object onActivate(EventContext context) {
}
If this is the only onActivate-method in the page it will always be
Ak ok thanks. For some reason I thought it was for components too.
On Thu, 2011-02-24 at 14:56 +0100, Igor Drobiazko wrote:
> No, the activate method is specific to pages. It didn't change.
>
> On Thu, Feb 24, 2011 at 2:45 PM, Richard Hill wrote:
>
> >
> > Hi,
> >
> > Sorry another question
No, the activate method is specific to pages. It didn't change.
On Thu, Feb 24, 2011 at 2:45 PM, Richard Hill wrote:
>
> Hi,
>
> Sorry another question - I was under the impression that the
> onActivate() method mas called for all pages and components?
>
> However it seems never to be called for
+1 for Maradona (as a PLAYER, I mean the past, not now!!)
On Wed, Nov 25, 2009 at 7:21 PM, Igor Drobiazko
wrote:
> +5 for Arshavin. LOL
>
> On Wed, Nov 25, 2009 at 11:18 PM, Andreas Andreou wrote:
>
>> +1 for Maradona
>>
>> On Wed, Nov 25, 2009 at 9:41 PM, Alfonso Quiroga
>> wrote:
>> > Mm.. I
+5 for Arshavin. LOL
On Wed, Nov 25, 2009 at 11:18 PM, Andreas Andreou wrote:
> +1 for Maradona
>
> On Wed, Nov 25, 2009 at 9:41 PM, Alfonso Quiroga
> wrote:
> > Mm.. I prefer when you talk about tapestry5 ;) thanks again
> >
> > On Wed, Nov 25, 2009 at 4:39 PM, Thiago H. de Paula Figueiredo
>
+1 for Maradona
On Wed, Nov 25, 2009 at 9:41 PM, Alfonso Quiroga wrote:
> Mm.. I prefer when you talk about tapestry5 ;) thanks again
>
> On Wed, Nov 25, 2009 at 4:39 PM, Thiago H. de Paula Figueiredo
> wrote:
>> Em Wed, 25 Nov 2009 17:24:33 -0200, Alfonso Quiroga
>> escreveu:
>>
>>> Thiago tha
Mm.. I prefer when you talk about tapestry5 ;) thanks again
On Wed, Nov 25, 2009 at 4:39 PM, Thiago H. de Paula Figueiredo
wrote:
> Em Wed, 25 Nov 2009 17:24:33 -0200, Alfonso Quiroga
> escreveu:
>
>> Thiago that simply works perfect. Thanks again, it's really good to
>> have so fast and quality
Em Wed, 25 Nov 2009 17:24:33 -0200, Alfonso Quiroga
escreveu:
Thiago that simply works perfect. Thanks again, it's really good to
have so fast and quality answers, greetings from Argentina
De nada! :) Greetings from Belo Horizonte, Minas Gerais, Brazil! But Pelé
is greater than Maradona,
Thiago that simply works perfect. Thanks again, it's really good to
have so fast and quality answers, greetings from Argentina
On Wed, Nov 25, 2009 at 4:14 PM, Thiago H. de Paula Figueiredo
wrote:
> Em Wed, 25 Nov 2009 17:11:47 -0200, Alfonso Quiroga
> escreveu:
>
>> Hi, I have a page and I need
Em Wed, 25 Nov 2009 17:11:47 -0200, Alfonso Quiroga
escreveu:
Hi, I have a page and I need the onActivate() method to do things
there, but *only* when it shown to the user.
Use the @SetupRender event instead of onActivate(). It is only triggered
when a page is rendered, not being triggere
First, all images urls in DB are relative, but I'll change this.
Second, what if I use some js plugin (i.e. for jQuery) witch uses relative
links (like ThickBox, fixed it).
Third, if you have any source of forum, blog ,etc it means if some user
enter relative link
in his post your app is knocked
On Thu, Mar 26, 2009 at 5:02 PM, Davor Miku wrote:
> I know that, but I can't use it.
Why not?
> I there any other way?
Besides using assets and absolute URLs, I don't know.
--
Thiago
-
To unsubscribe, e-mail: users-unsubscr
I know that, but I can't use it.
I there any other way?
On Thu, Mar 26, 2009 at 3:38 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> Em Thu, 26 Mar 2009 15:49:11 -0300, Davor Miku
> escreveu:
>
> I have onActivate(String name) called twice.
>> When called second time name="ima
Em Thu, 26 Mar 2009 15:49:11 -0300, Davor Miku
escreveu:
I have onActivate(String name) called twice.
When called second time name="images".
I believe this is because there are some relative links.
Use src="${asset:context:images/image.jpg}" instead of
src="images/image.jpg".
--
Thiago
You mean in rendering phase, onActivate is called twice? It is always called
only one time in my experience.
I am interested in whether you called this page onActivate from other page?
DH
- Original Message -
From: "Angelo Chen"
To:
Sent: Tuesday, February 17, 2009 5:02 PM
Subject:
Hi,
Also take a look at PageAttached.
(http://tapestry.apache.org/tapestry5/guide/lifecycle.html)
- Ville
Chris Lewis-5 wrote:
>
>
>
> James Sherwood wrote:
>> Hello,
>>
>>
>>
> Hi.
>> I have security through page Activate.
>>
>>
>>
>> All my pages extend a page that has a method:
>
James Sherwood wrote:
Hello,
Hi.
I have security through page Activate.
All my pages extend a page that has a method:
@OnEvent("activate")
Object onSecurityCheck(){
Check security if fails return Index.class
}
This works however any page that has its own onActivate() m
The first step to diagnosing problems with onActivate() is to check
the web log and see what URLs are coming in, and deduce why.
On Wed, Nov 5, 2008 at 6:45 AM, Thiago H. de Paula Figueiredo
<[EMAIL PROTECTED]> wrote:
> Em Wed, 05 Nov 2008 10:16:52 -0300, Robert Vojta <[EMAIL PROTECTED]>
> escreve
Em Wed, 05 Nov 2008 10:16:52 -0300, Robert Vojta <[EMAIL PROTECTED]>
escreveu:
onActivate() is called twice on my page when I have following Javascript
code included. When I remove document.write() call, onActivate() is
called once. Any idea how can I solve this?
Just make sure that every
Hi,
Both you and Thiago are of course right. I just remember Howard saying
something about this being very difficult to do. Probably has something
to do with Javassist.
-Filip
On 2008-07-29 05:30, Ivan Dubrov wrote:
Filip S. Adamsen wrote:
Hi,
As far as I know it's very difficult - if not
Filip S. Adamsen wrote:
Hi,
As far as I know it's very difficult - if not impossible - for
Tapestry to support generics in method parameters because of the way
generics are implemented in Java (type erasure).
A lot of type information is still available through reflection.
Assuming concrete
Em Mon, 28 Jul 2008 13:13:21 -0300, Filip S. Adamsen <[EMAIL PROTECTED]>
escreveu:
As far as I know it's very difficult - if not impossible - for Tapestry
to support generics in method parameters because of the way generics are
implemented in Java (type erasure).
Not every type informatio
Hi,
As far as I know it's very difficult - if not impossible - for Tapestry
to support generics in method parameters because of the way generics are
implemented in Java (type erasure).
-Filip
On 2008-07-28 15:44, Thiago H. de Paula Figueiredo wrote:
Em Mon, 28 Jul 2008 10:33:46 -0300, Moritz
Em Mon, 28 Jul 2008 10:33:46 -0300, Moritz Gmelin <[EMAIL PROTECTED]>
escreveu:
public abstract SuperClass {
public abstract void onActivate(E value);
}
public SubClass Extends SuperClass {
public void onActivate (Bar value) {
System.out.println ("Here i am " + value);
}
T
Hi,
this is an almost great solution. Very elegant. It helps for all plain
pages. Thanks already.
But the dispatcher is not used in service method calls.
e.G. I have a service method that retreives an object from the
database that a user has uploaded before and it can be downloaded from
a
you can use dispatcher for this, there are some articles in the wiki page.
Moritz Gmelin wrote:
>
> Hi,
>
> I want to add some security to my application by checking whether the
> currently logged in user (stored in an ApplicationState) has access to
> the object that is handed to his curr
Its pretty basic... and I havent put in String[] performPassivate method
yet.
just a word of warning... it _is_ useful for some pages, and not for
others... too many if (context.length > 0) var0 = context[0];
Better would be having a conversion to String[] then I could move it out of
the back cla
Nicholas,
Would you mind sharing code snippets of what you are doing?
Mark
On May 9, 2008, at 11:20 AM, nicholas Krul wrote:
Thanks, works just fine... so now everything is bundled into a
String[]
anyway...
-
To unsubscr
Thanks, works just fine... so now everything is bundled into a String[]
anyway...
?wouldn't it be useful to have String[] as one of the default conversions
available?
I don't expect it would be hard ... and it was (for me, anyway) expected
behavior. after all, with the splitting on /, is IS an arr
A third, and perhaps better alternative is to use EventContext instead
of Object[]. This interface allows you to get the count of the
parameters, and retrieve each in whatever type you like (Tapestry will
value decode or type coerce as necessary).
On Fri, May 2, 2008 at 5:43 AM, nicholas Krul <[E
53 matches
Mail list logo