This is quite odd; I'd check your compiler settings ... Tapestry 5.2
is a bit sensitive about JDK version, sometimes 1.6 throws it for a
loop (that's the Javassist bytecode library, which has been sidelined
in Tapestry 5.3).
On Tue, Aug 2, 2011 at 4:02 PM, nillehammer
wrote:
> Look around line 90
-1
Thiago had the right solution. Further, the second event
("fromMyAjaxEvent") will occur after the "activate" event itself
(assuming that the Ajax-request originating component is on the same
page).
It is very much an exception to the rule to have multiple events
handled by the same method. It
How about having a new annotation ??
@OnEvents(
{
@OnEvent(...), @OnEvent(...)
})
On Wed, Aug 3, 2011 at 4:22 AM, nillehammer
wrote:
> You could implement one method that is called by your two event handlers.
> E.g.
>
> @OnEvent(EventConstants.ACTIVATE)
> final void callEventHandler
Look around line 90 in your AppModule
(com.packtpub.services.AppModule$1.service(AppModule.java:90)) and see, if
you can get a clue. If not, please post your AppModule's code and we'll see,
if we can find an error.
-
http://www.winfonet.eu
--
View this message in context:
http://tapestry.1045
You could implement one method that is called by your two event handlers.
E.g.
@OnEvent(EventConstants.ACTIVATE)
final void callEventHandlerFromActivate() {
this.doTheWork();
}
@OnEvent("yourAjaxEvent")
final void callEventHandlerFromMyAjaxEvent() {
this.doTheWork();
}
private final void doThe
Hi
I also had this error message some time back when I created a non
default constructor in my page/component and forgot to create a PUBLIC
default constructor. The scope of constructor is important here.
On Tue, Aug 2, 2011 at 9:46 PM, ERNESTO ARROYO RON wrote:
> I am on holidays, and trying t
The live reloading doesn't depend on anything eclipse specific - it's a
tapestry feature. As long as your compiled classes end up in a container
that supports it (e.g. in the past, I've had problems w/ live reloading and
Tomcat), you should be OK.
The "Compile on Save" feature in NetBeans is somet
On 08/02/2011 12:16 PM, ERNESTO ARROYO RON wrote:
I am on holidays, and trying to use some Tapestry awesome features, as the
inyection.
But I do not understand some issues, and cannot find the answer in the wiki or
somewhere, to the info is not enough clear for me, sorry.
This is very simple.
I am on holidays, and trying to use some Tapestry awesome features, as the
inyection.
But I do not understand some issues, and cannot find the answer in the wiki or
somewhere, to the info is not enough clear for me, sorry.
This is very simple. In the Java part of a page I want to inject the DAO
First, I am sorry this email was sent to dev@tapestry list too, it was my fault!
The message was:
Hi all!
I am starting to use Tapestry,… impressive framework!
I am developing an application, using eclipse, and I had some problems with
DerbyDB. I prefer Netbeans to do some things, and I could
Hello Igor,
I need this method to be called
1. when the page is activated (for a normal render)
2. and also when an ajax method is called (for an ajax render).
Is this possible?
Regards,
Julien.
2011/8/2 Igor Drobiazko
> If the handler methods for two different events are same, then you probably
I'm running T5.3 and want to overwrite the existing validation messages. I
created my own file 'MyValidationMessages.properties' and tried to
contribute it.
But I only found references to the deprecated
'contributeComponentMessagesSource', or hints to
'contributeComponentMessagesSource' - but I do
If the handler methods for two different events are same, then you probably
need only a single event.
BTW: Firing activate event might cause unexpected behavior as activate is
already "reserved" by Tapestry.
On Tue, Aug 2, 2011 at 5:06 PM, Julien Martin wrote:
> Hello,
> I need for a method to
Thanks very much.
Finally I found my problem. I have the following code on my page
Object onActivate(){
if(someSessionScopeObject==null){
return Index.class;
}
}
And on my Index page
Object onActivate(){
sessionManager.set(theSessionScopeObject.class, null)
Hello,
I need for a method to be called upon several events (e.g. ACTIVATE and
ACTION).
I tried the following:
*@OnEvent(value = {EventConstants.ACTIVATE, EventConstants.ACTION})
void loadJobPostings() {
jobPostings = service.loadJobPostings();
}
*
and it does not work/compile
On Sun, Jul 24, 2011 at 6:00 AM, Howard Lewis Ship wrote:
> Is anyone aware of any use of @PageAttached or @PageDetached in any
> library or component? Since 5.2, with the advent of page singletons,
> they don't appear to make any sense.
>
> I've been making a lot of internal changes to the code
Hello everyone,
I am very new to Tapestry, so it can be that this is a silly question, but I
cannot find a way out of this situation. I am trying to apply the examples
in the Tapestry 5 book of A. Kolesnikov. I copy the error message and my
code below. There was a similar topic in the archive, but
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
18 matches
Mail list logo