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 davorm...@gmail.com 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,
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
Em Thu, 26 Mar 2009 15:49:11 -0300, Davor Miku davorm...@gmail.com
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
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 davorm...@gmail.com
escreveu:
I have onActivate(String name) called twice.
When called second
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)
: 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. See below.
When I click the pageLink I can see
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
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 to
;
}
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 list archive at Nabble.com
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 archive at Nabble.com
Sent: Tuesday, February 17, 2009 5:02 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, any idea
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
-
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-onActivate-called-twice-tp22053148p22056296
On Tue, Feb 17, 2009 at 9:30 AM, Angelo Chen angelochen...@yahoo.com.hk 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
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.
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
On Tue, Feb 17, 2009 at 10:16 AM, Angelo Chen
angelochen...@yahoo.com.hk 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
-
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-onActivate-called-twice-tp22053148p22057321.html
Sent from the Tapestry
On Tue, Feb 17, 2009 at 12:02 PM, Angelo Chen
angelochen...@yahoo.com.hk 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
, Bucharest,
Istanbul
Subject: Re: t5: onActivate called twice
On Tue, Feb 17, 2009 at 12:02 PM, Angelo Chen
angelochen...@yahoo.com.hk 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
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
...
head
script type=text/javascript
src=${asset:context:/js/styleloader.js}/script
...
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
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]
escreveu:
() 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
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 the
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
Hi,
if I have an abstract superclass of a page that has the abstract
definition of onActivate() defined
public abstract SuperClassE extends foo {
public abstract void onActivate(E value);
}
and a subclass
public SubClass Extends SuperClassBar {
public void onActivate (Bar
Em Mon, 28 Jul 2008 10:33:46 -0300, Moritz Gmelin [EMAIL PROTECTED]
escreveu:
public abstract SuperClassE extends foo {
public abstract void onActivate(E value);
}
public SubClass Extends SuperClassBar {
public void onActivate (Bar value) {
System.out.println (Here i am +
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,
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 information
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
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
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[] context
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]
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
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 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 =
37 matches
Mail list logo