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
I have onActivate(String name) called twice.
When called second time name="images".
I believe this is because there are some relative links. There is no way to
make all URLs absolute.
Is there any way to override this multiple calling?
Like telling Tapestry not to process anything from certain
Already pointed out that this is expected. But you can bypass this
behavior.
Make your two-parameter method return "true" on successful processing;
then your 1-parameter method won't be called.
Robert
On Mar 25, 2009, at 3/256:10 AM , Peter Kanze wrote:
Hello
I have a pagelink that point t
As Andy already pointed, this is normal Tapestry behaviour.
When you have more than onActivate() method, I recommend the use of a
single method receiving an EventContext
(http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/EventContext.html):
onActivate(EventContext event) {
if
e-
> From: Peter Kanze [mailto:peterka...@gmail.com]
> Sent: 25 March 2009 11:11
> To: Tapestry users
> Subject: T5: onActivate called twice
>
> Hello
> I have a pagelink that point to this /products/computer/5
>
> In my Products.java I have two onActivate methods.
Hello
I have a pagelink that point to this /products/computer/5
In my Products.java I have two onActivate methods. See below.
When I click the pageLink I can see that both onActivate are called.
Because this is printed to the output console:
onActivate(String categoryName, int pageNr)
onActivate:
nbul
Subject: Re: t5: onActivate called twice
On Tue, Feb 17, 2009 at 12:02 PM, Angelo Chen
wrote:
> you need a onPassivate to persist the context on the client side if:
You need an onPassivate() method to tell Tapestry what is the
activation context for a given page. This is needed primar
On Tue, Feb 17, 2009 at 12:02 PM, Angelo Chen
wrote:
> you need a onPassivate to persist the context on the client side if:
You need an onPassivate() method to tell Tapestry what is the
activation context for a given page. This is needed primarily because
of redirect-after-post, AFAIK, and every
---
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>
>
--
View this message in context:
http://www.nabble.com/t5%3A-o
On Tue, Feb 17, 2009 at 10:28 AM, Angelo Chen
wrote:
> Hi Thiago,
Hi!
> I always make sure i have a onPassivate that returns same thing in the
> onActivate,
That's a good thing, returning the the save value, but not necessarily
the same type.
> now, must be wrong, what is the rule of thumb o
bject[].
>
> --
> Thiago
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>
>
--
View this message in context:
http://www.nabble.com/t5%3A-on
On Tue, Feb 17, 2009 at 10:16 AM, Angelo Chen
wrote:
> Hi Thiago,
Hi, Angelo!
> Thanks for the tip, never knew there is this EventContext, is following
> onPassivate correct:
You cannot return an EventContext in the onPassivate method. You don't
even need to return the same type you received
nal commands, e-mail: users-h...@tapestry.apache.org
>
>
>
--
View this message in context:
http://www.nabble.com/t5%3A-onActivate-called-twice-tp22053148p22057115.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
On Tue, Feb 17, 2009 at 9:30 AM, Angelo Chen wrote:
> You are correct, in one of my javascript it has a "../images/..", i don't
> know why it got called, in that particular page, there is no reference to
> that js, commenting it out fixes the problem, but this does bring up another
> question, how
d of Object[] as the parameter of
> your onActivate method. ;)
>
> --
> Thiago
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
&g
Most probably you're including images in your page using relative
paths. Use ${asset:context/images/loading.gif} instead and the problem
goes away. ;)
By the way, use EventContext instead of Object[] as the parameter of
your onActivate method. ;)
--
Thiago
--
PM
Subject: t5: onActivate called twice
>
> Hi,
>
> I have following code, onActivate was called correctly 1st time, but it will
> be called again during the rendering and obj[0] has 'images', obj[1]
> has 'loading.gif', I do provide a onPassivate
btw, it is 5.0.18.
Angelo Chen wrote:
>
> Hi,
>
>
>
--
View this message in context:
http://www.nabble.com/t5%3A-onActivate-called-twice-tp22053148p22053292.html
Sent from the Tapestry - User mailing list archiv
else return Other.class;
}
public Object[] onPassivate() {
return _objs;
}
--
View this message in context:
http://www.nabble.com/t5%3A-onActivate-called-twice-tp22053148p22053148.html
Sent from the Tapestry - User mailing lis
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 all,
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?
Sample.tml
...
...
styleloader.js
function loadBrowserStyle()
{
... handling routines, where sp
What version of Tapestry? This was addressed in 5.0.14, I believe, to
ensure that when overriding a base class event handler method, the
method is not invoked twice.
On Mon, Apr 21, 2008 at 6:25 AM, Leon Derks <[EMAIL PROTECTED]> wrote:
> Hi Davor,
>
> Indeed, I have a BasePage that implements th
() called twice
Hi Davor,
Indeed, I have a BasePage that implements the public void onActivate()
{}method.
In my subpage I also have implemented the public void onActivate() {}.
The code in onActivate() of my subpage is executed twice.
BASEPAGE:
public void onActivate() {
String pageName
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,
if I have an abstract superclass of a page that has the abstract
definition of onActivate() defined
public abstract SuperClass {
public abstract void onActivate(E value);
}
and a subclass
public SubClass Extends SuperClass {
public void onActivate (Bar value) {
System.o
Your images/pic.gif is relative to the current page url (which includes
your context parameters), so will get caught as a page request by Tapestry.
You should probably use src="${asset:context:images/pic.gif}" instead.
Szemere
On Mon, May 12, 2008 at 11:23 AM, Tomasz Dziurko <[EMAIL PROTECTED]>
Ok, I found solution, but I still would be grateful if someone could
put some light on this subject:
More investigation showed me that context.length is always +1 greater
than I should expect.
When I printed all elements from context while executing
http://localhost:8607/myApp/start/testmessage
1
Hi.
I read previous posts about problem with onActivate called twice, but
none of answers seems to suit my situation.
Here's the problem:
Abstract base page
public abstract class AbstractTopPage {
private String context[];
public abstract Object performActivation(String[] co
Hi Davor,
Indeed, I have a BasePage that implements the public void onActivate()
{}method.
In my subpage I also have implemented the public void onActivate() {}.
The code in onActivate() of my subpage is executed twice.
BASEPAGE:
public void onActivate() {
String pageName = resources.g
you have to be more specific,
same OnActivate method will not be called more than once in normal
circumastances,
but overriding onActivate from a base class I belive can cause this ...
some code would be useful.
Davor Hrg
On Mon, Apr 21, 2008 at 12:41 PM, Leon Derks <[EMAIL PROTECTED]> wrote:
Hi,
I noticed that my onActivate() is called twice.
I solved the problem by changing onActivate() into onActivate(Object[]
parameters).
Now it is only called once. But is this the way to do this or is there a
better way?
greetings,
Leon
--
39 matches
Mail list logo