Change textfield focus on zone update

2012-10-03 Thread Thomas Jensen
Hi, I have a page, with two zones, which each have a form. Zone 2 is hidden as default and is only shown, when the form in Zone 1 successfully submits. Zone 2 has two textfields and I would like to change focus from the textfield in zone 1 to the first textfield in zone 2, but I can't figure out

Re: Change textfield focus on zone update

2012-10-03 Thread Lance Java
Tapestry fires a clientside event when a zone is updated with new content. You can attach a listener to the event Tapestry.ZONE_UPDATED_EVENT (tapestry:zoneupdated). Listening to clientside events depends on the clientside framework you are using. Use observe(...) for prototype or on(...) for

Re: Change textfield focus on zone update

2012-10-03 Thread Lance Java
On second thought... it might be easier to send some javascript to the client when form 1 is posted via JavaScriptSupport.addScript(...) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Change-textfield-focus-on-zone-update-tp5716599p5716601.html Sent from the Tapestry -

RE: Change textfield focus on zone update

2012-10-03 Thread Poder, Jacob
There is even a specific method for the purpose, see JavaScriptSupport.autofocus I have used that successfully in a similar case. Best regards, Jacob Poder -Original Message- From: Lance Java [mailto:lance.j...@googlemail.com] Sent: Wednesday, October 03, 2012 9:50 AM To:

Error LibraryMapping

2012-10-03 Thread Bramy Audrey
Hi, I have been trying to upgrade from tapestry 5.1.0.5 to tapestry 5.3.5 I work on a generic project and a specific project whose use generic project. When I try to start my web site (specific project) I have an error with the library mapping : Error invoking service contribution method

Re: Error LibraryMapping

2012-10-03 Thread Thiago H de Paula Figueiredo
On Wed, 03 Oct 2012 09:08:20 -0300, Bramy Audrey audrey.br...@atos.net wrote: Hi, Hi! I have been trying to upgrade from tapestry 5.1.0.5 to tapestry 5.3.5 I work on a generic project and a specific project whose use generic project. When I try to start my web site (specific project) I

Re: Error LibraryMapping

2012-10-03 Thread Thomas Cucchietti
Hello Thiago, I think that her problem is that even after the removal of this contribution (now illegal in 5.3), she keeps the same error message. Do you know if there is any other way for this net.prefix.tapestry.core.corelib.components package to be related to the core ? If not, in my

Re: Error LibraryMapping

2012-10-03 Thread Taha Siddiqi
I think there is a hack... if your package name starts with org you can contribute it to core. No sure if it is possible now but I did it some time back. Remember, it is a hack :) regards Taha On Oct 3, 2012, at 6:16 PM, Thomas Cucchietti wrote: Hello Thiago, I think that her problem is

Re: Error LibraryMapping

2012-10-03 Thread François Facon
I guess Thomas is right. It must be something related to maven on eclipse. seems like there is a old version of component lib on the classpath. mvn clean form a console. call me back if the problem persist Regards François 2012/10/3 Taha Siddiqi tawus.tapes...@gmail.com: I think there is a

RE: Error LibraryMapping

2012-10-03 Thread Bramy Audrey
Thanks for your help. I have found the solution. It was a fix in for de tapestry 5.1 which had been added in my generic project and contribute my package to core. I start my web site but I have another error about the ValidationDecorator class which seems to don't exist in tapestry 5.3. I don't

Re: Change textfield focus on zone update

2012-10-03 Thread Thomas Jensen
2012/10/3 Poder, Jacob jacob.po...@thermofisher.com There is even a specific method for the purpose, see JavaScriptSupport.autofocus I have used that successfully in a similar case. Best regards, Jacob Poder -Original Message- From: Lance Java [mailto:lance.j...@googlemail.com]

Re: Tapestry-JPA Testing environment

2012-10-03 Thread Matías Blasi
Hi guys! I found the root of the problem, and it is because the TapestryFilter sets the Context into the ApplicationGlobals, but actually I don't have a webapp, just a JUnit test. I could jump over this by setting a PageTesterContext to the ApplicationGlobals, in a setup phase. Anyway, I am

arithmetic calculations

2012-10-03 Thread Ken in Nashua
Folks, Want to say thanks for the help from engineers... I am receiving output now on my gallery widget... and keepin pluggin away... looks promising. I have tried to render raw markup in what one could call the page and perform property de-referencing or specify pojo and invoke method with

Several Advices on same service

2012-10-03 Thread kheldar666
Hi, I am facing an issue that I know is weird, but I can put my finger on the root cause of the issue. Basically I have an App developped around several Tapestry Modules. One of my Module defines a MenuService that list down all the nodes available in the different navigation in the site. Then