Gradle o Gradle!

2011-11-10 Thread Gunnar Eketrapp
Inspired by HLS condolences to us that are still using Maven I tried Gradle out yesterday. And gosh that seem's like a big leap forward. Awesome product and I was almost there in less then an hour! One small step in the other direction was that the scanning of my entity beans totally disappeared

Re: fckeditor for Tapestry 5.3 RC2

2011-11-10 Thread TG
I got this error - Caused by: java.lang.NoSuchMethodError: org.apache.tapestry5.ioc.Registry.getService(Ljava/lang/Class;)Ljava/lang/Object; at com.orientimport.easyfck.util.LegacyT5ServiceHelper.getService(LegacyT5ServiceHelper.java:40) at com.orientimport.easyfck.connector.FckEd

Re: fckeditor for Tapestry 5.3

2011-11-10 Thread Steve Eynon
Hi, Easy FCKeditor comes up first with http://www.google.co.uk/search?q=fckeditor+tapestry (I've used it in the past, seems to work well.) http://kenai.com/projects/t5-easy-fckeditor > I don't use Maven just FYI. Um, can you not just visit the Maven Repo's and download the jars manually? Steve

Re: EventLinks and their handlers

2011-11-10 Thread Steve Eynon
Cool, cheers Taha, This took me a while to understand so I'll re-iterate for my sake! You're saying for EventLinks we need to drop the "From" clause because the event isn't acutally raised in the eventLink but the container, so the following should work: @OnEvent(value="postConversationEvent") v

fckeditor for Tapestry 5.3

2011-11-10 Thread TG
Do we have one? If so, any link to setup and download it? I don't use Maven just FYI. Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/fckeditor-for-Tapestry-5-3-tp4983201p4983201.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Rendering Informal Parameters

2011-11-10 Thread Steve Eynon
'hang on - I just re-read your question... Are you wanting to specifiy on where in your .tml the informals are rendered? If so, the call to : resources.renderInformalParameters(writer); renders them on the current element. (The RenderInformals Mixin calls it on the beginRender() phase event

Re: Rendering Informal Parameters

2011-11-10 Thread Steve Eynon
I found you also need to put the @SupportsInformalParameters on your component. See the RenderInformals mixin for an example (or just use the RenderInformals mixin!) Steve. On 10 November 2011 06:22, Michael Prescott wrote: > That didn't seem to make a difference, but it sounds prudent. > >

Re: lesscss

2011-11-10 Thread Chris Collins
Yeh I noticed that thread but looked like unfinished business with comments that 5.3 would be able to help. Seemed like lesscss would of been a great addition in the tapestry tool belt. C On Nov 10, 2011, at 5:54 PM, Steve Eynon wrote: > Non myself but I found these threads on Nabble: > >

Re: lesscss

2011-11-10 Thread Steve Eynon
Non myself but I found these threads on Nabble: Compiled CSS http://tapestry.1045711.n5.nabble.com/Compiled-CSS-td4872738.html GZip Filter getting in the way of my LessCSS Filter http://tapestry.1045711.n5.nabble.com/GZip-Filter-getting-in-the-way-of-my-LessCSS-Filter-td4491550.html Steve. On 1

Re: Clearing form errors problem

2011-11-10 Thread Steve Eynon
Sounds like you want a StreamResponse to be returned AND and a page refresh at the same time - unfortunately HTTP doesn't allow this. A technique would be return the page, then re-direct the user to a different page / event link which returns the CSV. It's also discussed in this thread: http://ta

lesscss

2011-11-10 Thread Chris Collins
Anyone have any experiences using lesscss with tapestry? I am not using it but came highly recommended. Best C - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry

Re: Binding form fields to map elements

2011-11-10 Thread Michael Prescott
Thanks very much, Thiago. On 10 November 2011 13:02, Thiago H. de Paula Figueiredo wrote: > On Thu, 10 Nov 2011 14:58:41 -0200, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > Can you bind form fields to map elements? >> > > Not directly, but you can create getter and setter metho

Re: Binding form fields to map elements

2011-11-10 Thread Thiago H. de Paula Figueiredo
On Thu, 10 Nov 2011 14:58:41 -0200, Michael Prescott wrote: Can you bind form fields to map elements? Not directly, but you can create getter and setter methods that read and write to maps instead of reading and writing fields. In OGNL, you can access map elements as parameters, such a

Binding form fields to map elements

2011-11-10 Thread Michael Prescott
Can you bind form fields to map elements? In OGNL, you can access map elements as parameters, such as: myMap.width This is a read/writable property expression that corresponds to myMap.get("width") and .put("width", value ). By way of background - In my domain model, I have a collection of enti

Re: get a value from the select component

2011-11-10 Thread Taha Hafeez Siddiqi
Hi The error seems to be in onValidate() Are you using onValidateFromForm() i.e. are you specifying the component otherwise it will be called for each component. Also, if you are using validations in the form e.g. validate='required' etc then you have to check it in onValidate() by using if

Re: get a value from the select component

2011-11-10 Thread walidh
here is the stack trace [ERROR] ioc.Registry org.apache.tapestry5.runtime.ComponentEventException [ERROR] ioc.Registry Operations trace: [ERROR] ioc.Registry [ 1] Triggering event 'action' on Register:registrationform [ERROR] ioc.Registry [ 2] Triggering event 'validate' on Register:street1 [ERRO

get a value from the select component

2011-11-10 Thread walidh
Hi, I'm creating a registration form (not using BeanEditForm) and I could display a select component with a list of values using in my .tml : Those values come from a Countries enum type. However in the java file corresponding to the form page (Register.java), I could not get the selected value o

Re: [ANN] @Exclude for css

2011-11-10 Thread Peter Stavrinides
Nice one Barry, you made my day... if only it happened every time I made a suggestion that someone else went if and did the work ;o) - Original Message - From: "Barry Books" To: "Tapestry users" Sent: Thursday, 10 November, 2011 15:11:05 GMT +02:00 Athens, Bucharest, Istanbul Subject:

[ANN] @Exclude for css

2011-11-10 Thread Barry Books
I've been following the CSS discussions here and I needed a way to exclude css defaults added by modules. The @Exclude suggestion seemed like the way to go so I wrote one and included it in https://github.com/trsvax/tapestry-bootstrap I also wrote a description of how it works http://trsvax.com/

Re: Clearing form errors problem

2011-11-10 Thread goldenka
I have something linke: and validation is server-side (onValidateForm() method) so I think i must use JavaScript. Can you provide me some simple solution ? I think I must remove some div's, but don't know how to do this... -- View this message in context: http://tapestry.1045711.n5.nabble.com

Re: Clearing form errors problem

2011-11-10 Thread Thiago H. de Paula Figueiredo
On Thu, 10 Nov 2011 08:49:22 -0200, goldenka wrote: Thank you for your response. So can you tell me how to clear those errors because I have no idea how to do this? Are you using client-side validation? It will clear errors automatically. Any other solution will involve JavaScript, as HTTP

Re: Clearing form errors problem

2011-11-10 Thread goldenka
Thank you for your response. So can you tell me how to clear those errors because I have no idea how to do this? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Clearing-form-errors-problem-tp4971307p4980700.html Sent from the Tapestry - User mailing list archive at Nabble.

Re: Clearing form errors problem

2011-11-10 Thread Thiago H. de Paula Figueiredo
On Thu, 10 Nov 2011 08:31:28 -0200, goldenka wrote: Hi, I'm trying to clear errors which happened before - so eg. user inserted invalid date => pressed Download => error void onValidateForm() { if(dateTo == null) { form.recordError("Please insert valid date to!"); r

Re: Clearing form errors problem

2011-11-10 Thread goldenka
Hi, I'm trying to clear errors which happened before - so eg. user inserted invalid date => pressed Download => error void onValidateForm() { if(dateTo == null) { form.recordError("Please insert valid date to!"); return; } } but after that user corrected the date and

Re: Clearing form errors problem

2011-11-10 Thread Steve Eynon
Hi, I'm a bit confused... StreamResponse onSuccess() { form.clearErrors(); ... } OnSuccess() is only called when there are no errors in the form, so what are you trying to clear, and how do you know it's not working? Steve. On 10 November 2011 17:37, goldenka wrote: > StreamResponse o

Re: Clearing form errors problem

2011-11-10 Thread goldenka
Ok, I'm returning StreamResponse instead (in onSuccess() method). StreamResponse onSuccess() { form.clearErrors(); return new StreamResponse() { public String getContentType() { return "text/csv;charset=windows-1250"; }

Re: T5.3 rc3 ordering of css

2011-11-10 Thread Joost Schouten (mailing lists)
On Nov 9, 2011, at 12:45 PM, Ville wrote: > Thanks for the input again, live and learn :) > > In case anyone comes looking, the easiest way is to set a class "c" to body > and prepend all your styles with .c. or if you have .t-error{color:red;} coming from your default.css you can add BOD