Re: Re: [Taspetry IoC] Using Tapestry IoC with JavaFX

2010-05-27 Thread Antoine Mischler
The link to the corresponding JIRA entry: https://issues.apache.org/jira/browse/TAP5-1171 (which I created by cloning the groovy issue, sorry about that, apparently it was not the best way to do it, but it should be correctly filled now) Antoine On Wed, May 26, 2010 at 2:28 PM, Antoine Mischler

Tapestry 5 Validation on Form Submit

2010-05-27 Thread Claude Dubois
Hello Guys, I'm developping a Tapestry5 app, and I need to validate some fields on form submit. I am using the @Validate annotation, which do what I want, except that the field is validated on blur, e.g. when the user focuses on another field. I have many fields on my page, and it's quite

Re: Tapestry 5 Validation on Form Submit

2010-05-27 Thread Christophe Cordenier
Hi The only solution i see is to disable default clientvalidation and implement your own. I think tapestry will still trigger an event on validate so you can implement your own strategy on submit only. Regards, Christophe Cordenier. 2010/5/27 Claude Dubois cduboi...@gmail.com Hello Guys,

Re: DateField not working in updated Form (IE only)

2010-05-27 Thread peter ricke
Hi Anton, no, i was not able to fix , still on my todo-list ;-( If you find a way, please let me know Peter Hello Peter! I am running into the same problem! Were you able to fix it? Thanks, Anton - To unsubscribe,

Re: Tapestry 5 Validation on Form Submit

2010-05-27 Thread Stephan Windmüller
On 27.05.2010 11:49, Christophe Cordenier wrote: The only solution i see is to disable default clientvalidation and implement your own. Is this possible for the select component, too? As far as I see it is not possible to disable the validation which checks if the component has the empty

Re: Tapestry 5 Validation on Form Submit

2010-05-27 Thread Christophe Cordenier
Hi After more investigation, it does not sound like a good idea to disable client validation. Maybe you can remove observers on the Tapestry.FOCUS_CHANGE_EVENT event in the document element to avoid field validation on focus lost. Regards Christophe. 2010/5/27 Claude Dubois cduboi...@gmail.com

Re: [T5.1]generated Event Links and zone

2010-05-27 Thread blueboy6
Hi, tnx for links, ok so now I have js that create html for infoWindows at google map... inside gmap infowindow I have html: page:event/context link page:event/context is generated with componentResources.createEventLink(event, context).toAbsoluteURI() I can generate this in afterRender

Re: [T5.1]generated Event Links and zone

2010-05-27 Thread Josh Canfield
I have zone name and I could call linkZone but I don't have element id of anchor? Can i catch it somehow? How are you creating the a href= that you want to link to the zone. Please be specific, and if you can show the actual code that would be helpful. -- Josh On May 27, 2010, at 4:25

Re: T5: ProgressiveDisplay - Possibly not reloading properly on Safari when user uses browser 'Back' Button

2010-05-27 Thread Chris Darlaston
Thanks Josh, that worked a treat and solved the issue. Josh Canfield wrote: Try adding autocomplete=off on your radio button element. I haven't tried it, but it works for input fields. On Wed, May 26, 2010 at 9:09 AM, Chris Darlaston ch...@2infinity.net wrote: Using cmd-R, I get the

how to manually deploy a tapestry5 project into Tomcat

2010-05-27 Thread Genís Pujol
Hello, Does anybody have documentation regarding how to deploy a Tapestry5 project into Tomcat? The official docs just say it's the same as jetty... Does one have to use Maven? can I just drop the folders into webapps (if so, how)? Thanks, Genis

Rendering Chart and ImageMap on the page

2010-05-27 Thread paha
Hi, i have a question: what is the best approach to extend http://wiki.apache.org/tapestry/Tapestry5HowToCreateGenericGraphComponent GenericGraphComponent to output an image map along with the chart itself. for now i have only one idea. 1) create and process chart in beginRender to obtain

Tapestry Spring Security - BadCredentialsException

2010-05-27 Thread Todd Orr
I am trying to integrate spring security into my Tapestry application and am unable to get the TSS module to work correctly. I've created a login page and am attempting to perform the authentication manually so that I can use tap for the fields etc. I have a login page with the j_username, etc.

Re: Rendering Chart and ImageMap on the page

2010-05-27 Thread Thiago H. de Paula Figueiredo
Option 2. On Thu, 27 May 2010 11:32:26 -0300, paha ch_pa...@yahoo.com wrote: Hi, i have a question: what is the best approach to extend http://wiki.apache.org/tapestry/Tapestry5HowToCreateGenericGraphComponent GenericGraphComponent to output an image map along with the chart itself. for

Re: how to manually deploy a tapestry5 project into Tomcat

2010-05-27 Thread Josh Canfield
Tapestry is built using maven but your project doesn't need to care about that. You can download all the dependencies yourself and deploy your app as a WAR or an exploded webapp folder. In the end to the container Tapestry is just a Servlet filter. -- Josh On May 27, 2010, at 7:11 AM,

Re: Rendering Chart and ImageMap on the page

2010-05-27 Thread Josh Canfield
You've outlined the two approaches. Either you generate the chart twice or store the image for later retrieval. You have to decide which concerns you more, CPU to generate the chart or memory to store it. I don't know how what backs the chart's image stream, but I'd probably generate the

Re: Saving state when changing grid pages

2010-05-27 Thread des999
Thank you so much Josh, your solution works great! It's also easy to understand. Thanks again, Paul Josh Canfield wrote: I whipped something up that will allow you to only submit the form when the link is clicked. Add this to your form containing the grid to keep track of the page

Re: how to manually deploy a tapestry5 project into Tomcat

2010-05-27 Thread Genís Pujol
Al 27/05/2010 17:03, En/na Josh Canfield ha escrit: Tapestry is built using maven but your project doesn't need to care about that. You can download all the dependencies yourself and deploy your app as a WAR or an exploded webapp folder. In the end to the container Tapestry is just a Servlet

Re: how to manually deploy a tapestry5 project into Tomcat

2010-05-27 Thread Genís Pujol
Al 27/05/2010 17:03, En/na Josh Canfield ha escrit: Tapestry is built using maven but your project doesn't need to care about that. You can download all the dependencies yourself and deploy your app as a WAR or an exploded webapp folder. In the end to the container Tapestry is just a Servlet

RE: ClassTransformation API change for 5.2.0

2010-05-27 Thread Jim O'Callaghan
Pierce, Howard, Thanks for the responses. I back up and running (on this part!) - code is more concise if a little less intuitive initially. Thanks. Regards, Jim. -Original Message- From: Pierce Wetter [mailto:pie...@paceap.com] Sent: 27 May 2010 01:28 To: Tapestry users Subject: Re:

How often snapshot jar refreshed?

2010-05-27 Thread Jim O'Callaghan
I just noticed an issue post upgrading to 5.2.0-SNAPSHOT that I know has been fixed in the trunk at ASF by https://issues.apache.org/jira/browse/TAP5-1088 but is not yet in the 5.2.0-SNAPSHOT jar I pulled in from http://tapestry.formos.com/maven-snapshot-repository. Can someone involved in the

Re: how to manually deploy a tapestry5 project into Tomcat

2010-05-27 Thread Josh Canfield
I meant that Tomcat does find the Index.tml but it doesn't pass control to Tapestry so it renders the template as plain text... What is the path to your .tml files located in your exploded folder? -- Josh On May 27, 2010, at 8:24 AM, Genís Pujol gpu...@ngeografics.com wrote: Al

Re: How often snapshot jar refreshed?

2010-05-27 Thread Robin Komiwes
Hi! Just at the end of this page: http://tapestry.apache.org/tapestry5.1/ On Thu, May 27, 2010 at 5:29 PM, Jim O'Callaghan j...@peritussolutions.comwrote: I just noticed an issue post upgrading to 5.2.0-SNAPSHOT that I know has been fixed in the trunk at ASF by

RE: How often snapshot jar refreshed?

2010-05-27 Thread Jim O'Callaghan
Thanks Robin. If say the BeanEditForm was last modified at ASF Mon May 3 23:05:07 2010 UTC, and the snapshot at http://tapestry.formos.com/maven-snapshot-repository/org/apache/tapestry/tap estry-core/5.2.0-SNAPSHOT/was last modified 20-Mar-2010 02:23 - what triggers the ASF version being pushed

Re: Rendering Chart and ImageMap on the page

2010-05-27 Thread paha
thanks, i just wanted to know if there is any better approach. for now i render the chart in beginRender and store image as Byte[] in field with FLASH Strategy. seems to work :) -- View this message in context:

Re: How often snapshot jar refreshed?

2010-05-27 Thread Andreas Andreou
https://repository.apache.org/snapshots it's updated almost daily On Thu, May 27, 2010 at 18:29, Jim O'Callaghan j...@peritussolutions.com wrote: I just noticed an issue post upgrading to 5.2.0-SNAPSHOT that I know has been fixed in the trunk at ASF by

Re: Tapestry Spring Security - BadCredentialsException

2010-05-27 Thread Michael Gerzabek
Why do you try to do the work of Spring Security? Please follow the sample in [1]. There's no need to check the credentials on your own. You just need to provide your implementation of UserDetails. [1] http://www.localhost.nu/svn/public/tapestry-spring-security-sample/ Am 27/05/2010 16:53,

Re: How often snapshot jar refreshed?

2010-05-27 Thread Ulrich Stärk
The snapshot gets refreshed with every build, i.e. once hudson has completed a build it gets pushed to the nexus repository at http://repository.apache.org/snapshots/ I guess you are trying to get snapshots from formos? Just switch to the apache repository and you should be good. HTH, Uli

T5: Using Event.observer with a form within a t:block

2010-05-27 Thread immutability
A little background: I need to wire-up some custom JavaScript to be launched when the Submit button of my form is clicked. I now believe that the best way to do this with Tapestry5 is to use the Event.observer for this purpose. Unfortunately my knowledge of client-side javascript, scriptaculous,

Re: Tapestry Spring Security - BadCredentialsException

2010-05-27 Thread Todd Orr
I've tried that way as well. It doesn't work either and I assume it's for the same reason, though I cannot tell in that case because the exception doesn't bubble out of Tapestry Spring Security. Login code: private final static Logger LOG = LoggerFactory.getLogger(Login.class); @Inject

Re: Tapestry Spring Security - BadCredentialsException

2010-05-27 Thread Michael Gerzabek
What about the salt. Did you change it? You have to 'save' password with your PasswordEncoder prior to using it. Which Am 27/05/2010 19:20, schrieb Todd Orr: I've tried that way as well. It doesn't work either and I assume it's for the same reason, though I cannot tell in that case because the

Re: Tapestry Spring Security - BadCredentialsException

2010-05-27 Thread Todd Orr
My UserDetailsService is managed by Spring and as such I can't inject the same exact instances that tapestry is using, but I do use the same types, PlaintextPasswordEncoder and SaltSourceImpl. UserDetailsService: private final static Logger LOG =

Re: Tapestry Spring Security - BadCredentialsException

2010-05-27 Thread Michael Gerzabek
Did you debug down to the point where the compare of the credential to the stored pwd happens? Are they really the same? Am 27/05/2010 19:37, schrieb Todd Orr: My UserDetailsService is managed by Spring and as such I can't inject the same exact instances that tapestry is using, but I do use

Re: Tapestry Spring Security - BadCredentialsException

2010-05-27 Thread Todd Orr
I changed the code so that these are injected and now it works. I cannot describe how angry this makes me. Days wasted. Thanks for you help though!!! On Thu, May 27, 2010 at 1:37 PM, Todd Orr torr0...@gmail.com wrote: My UserDetailsService is managed by Spring and as such I can't inject the

Re: Tapestry Spring Security - BadCredentialsException

2010-05-27 Thread Michael Gerzabek
Just for the records. What did you change now? Am 27/05/2010 19:48, schrieb Todd Orr: I changed the code so that these are injected and now it works. I cannot describe how angry this makes me. Days wasted. Thanks for you help though!!!

RE: How often snapshot jar refreshed?

2010-05-27 Thread Jim O'Callaghan
Ulrich, Andreas, thanks I'm good now. -Original Message- From: Ulrich Stärk [mailto:u...@spielviel.de] Sent: 27 May 2010 18:17 To: Tapestry users Subject: Re: How often snapshot jar refreshed? The snapshot gets refreshed with every build, i.e. once hudson has completed a build it gets

Re: Tapestry Spring Security - BadCredentialsException

2010-05-27 Thread Todd Orr
I exported all the data access code into an independent DAO that is still managed by Spring. Then I added a constructor to my UserDetailsService that took the dao plus the salt and encoder: private final static Logger LOG = LoggerFactory.getLogger(UserDetailsServiceImpl.class); private final

Re: Tapestry Spring Security - BadCredentialsException

2010-05-27 Thread Michael Gerzabek
Thank you. /M Am 27/05/2010 20:28, schrieb Todd Orr: I exported all the data access code into an independent DAO that is still managed by Spring. Then I added a constructor to my UserDetailsService that took the dao plus the salt and encoder: private final static Logger LOG =

Re: how to manually deploy a tapestry5 project into Tomcat

2010-05-27 Thread françois facon
Hi Genis wtp plug-in can help you to setup your environnement. have a look at http://baptiste-meurant.developpez.com/tutoriaux/tapestry5-spring-hibernate/ it's in french but with lots of screenshot. hope this will help you françois

Re: how to manually deploy a tapestry5 project into Tomcat

2010-05-27 Thread Geoff Callender
If you're happy to use Ant then the process here might help you: http://jumpstart.doublenegative.com.au/jumpstart4.9/tips.html#OTHER_SERVERS Cheers, Geoff On 28/05/2010, at 12:11 AM, Genís Pujol wrote: Hello, Does anybody have documentation regarding how to deploy a Tapestry5

@Persist(session) field is null after AjaxRequest

2010-05-27 Thread Paul Stanton
Hi all, I'm making a few different types of ajax requests on my page, and a couple of fields on components and pages are annotated with @Persist(session). Some of the ajax requests are made via t:actionlink components, others are via Ajax.Requests I've constructed myself (via

Re: @Persist(session) field is null after AjaxRequest

2010-05-27 Thread Thiago H. de Paula Figueiredo
On Thu, 27 May 2010 23:08:37 -0300, Paul Stanton p...@mapshed.com.au wrote: Hi all, Hi! I've noticed that the value for the apparently persistent field is reset to null when the second type of ajax requests are made ... this may be because the actions point to different components as

Re: @Persist(session) field is null after AjaxRequest

2010-05-27 Thread Paul Stanton
I've also tried with @SessionState with no luck. I'm imagining it's because one request goes to componentA (where the persistent field is) the other goes to componentB. The subsequent request to componentA reveals that the persistent field is reset. ie: 1. Ajax.Request to componentA via

Re: @Persist(session) field is null after AjaxRequest

2010-05-27 Thread Paul Stanton
Hi Thiago, please bare with me... I'm not imagining it. I'm guessing it's something to do with my manually created ajax request... I'm not inspecting via debugger, I'm testing the value of the field in code, ie: via @Persist(session) if (persistentField == null) LOG.debug(state reset);

Re: @Persist(session) field is null after AjaxRequest

2010-05-27 Thread Thiago H. de Paula Figueiredo
On Thu, 27 May 2010 23:32:38 -0300, Paul Stanton p...@mapshed.com.au wrote: Hi Thiago, Hi! please bare with me... I'm not imagining it. I'm guessing it's something to do with my manually created ajax request... Tapestry's session handling works the same regardless how the request was

Re: @Persist(session) field is null after AjaxRequest

2010-05-27 Thread Thiago H. de Paula Figueiredo
On Thu, 27 May 2010 23:26:13 -0300, Paul Stanton p...@mapshed.com.au wrote: I've also tried with @SessionState with no luck. Please post your code. Without it, it will be very hard to understand what's happening. I'm imagining it's because one request goes to componentA (where the

Re: @Persist(session) field is null after AjaxRequest

2010-05-27 Thread Josh Canfield
I'm with Thiago, what you are describing doesn't make sense. It doesn't matter how you make the request the session stored attributes should still be there. Since it doesn't make sense I'll ask all the dumb question: Are you setting the value somewhere? If you have a setter for it try

Re: @Persist(session) field is null after AjaxRequest

2010-05-27 Thread Paul Stanton
Thiago, I tried with @SessionState(create=false) and the same occurs (testing the field for null). I also tried (as a sanity check) to inject HttpRequest and manage the session attribute manually. Interestingly, the session Id is changing! This must be the cause - somehow my manual

Re: @Persist(session) field is null after AjaxRequest

2010-05-27 Thread Paul Stanton
Actually, the 2nd request (which clears the session) is not a manually created Ajax.Request. Sorry for the confusion. It's actually a async form submit, and to simplify the issue somewhat every submit of this form prints a different sessionId: t:form t:id=someForm t:zone=someZone

Re: @Persist(session) field is null after AjaxRequest

2010-05-27 Thread Paul Stanton
Here is a concrete example which I've constructed separate to the rest of my app to exclude any quirks intruduced by it's complexity: public class Start { private final static Logger LOG = Logger.getLogger(Start.class); @Inject private ComponentResources

Re: @Persist(session) field is null after AjaxRequest

2010-05-27 Thread Paul Stanton
Sorry guys, I found the problem. I had disabled cookies on the webapp. Surely this is a bug in t5 ... in that with cookies disabled, an ajax form submit acquires a new session every time? Regards, p. Paul Stanton wrote: Here is a concrete example which I've constructed separate to the rest

Re: @Persist(session) field is null after AjaxRequest

2010-05-27 Thread Thiago H. de Paula Figueiredo
On Fri, 28 May 2010 00:31:18 -0300, Paul Stanton p...@mapshed.com.au wrote: Surely this is a bug in t5 ... I disagree. HTTP is purely stateless. Session keeping is the container's (server) responsibility, not Tapestry's. With cookies disabled, the only way to find out what is the