Re: What is the difference between a "Translator" and "FieldTranslator"

2008-10-25 Thread Geoff Callender
What are you trying to achieve with FieldTranslator that Translator doesn't already do? I guess what I'm is whether the following example needs more work? http://202.177.217.122:8080/jumpstart/examples/input/creatingtranslators1 Cheers, Geoff On 26/10/2008, at 6:41 AM, Christoph Jäger wrote

Re: T5: Grid component removing a field

2008-10-25 Thread Geoff Callender
http://202.177.217.122:8080/jumpstart/examples/tables/addandremovecolumns1 On 25/10/2008, at 12:00 AM, James Sherwood wrote: Hello, Let's say I have a grid component running off a source with objects such as: Id Fname Lname How do I remove Id from the grid? Remove="Id" in the h

Re: The URL encoding issue

2008-10-25 Thread Massimo Lusetti
On Fri, Oct 24, 2008 at 7:01 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > BTW, > > I'm actively working on the issue with URL encoding/decoding. Because > of the differences between Jetty and Tomcat, I'm abandoning standard > URL encoding (i.e., %2f and all that) and using my own scheme. >

Re: What is the difference between a "Translator" and "FieldTranslator"

2008-10-25 Thread Christoph Jäger
Ok, lets try to make our Translator also implement FieldTranslator. FieldTranslator defines 4 methods: 1. Class getType() 2. T parse(String input) 3. void render(MarkupWriter writer) 4. String toClient(T value) 1 is already implemented in Translator, for 2 we can call the already existing pa

RE: T5: Using with hibernate and Mysql

2008-10-25 Thread James Sherwood
Hello, I got the project working by adding these to the pom: org.hibernate hibernate 3.2.2.ga c3p0 c3p0 0.9.0 geronimo-spec geronimo-spec-jta 1.0-M1 test And Agile Java

Re: Tapestry 5 Problems with client-side validation

2008-10-25 Thread Thiago H. de Paula Figueiredo
Em Sat, 25 Oct 2008 15:10:41 -0300, andrethiago <[EMAIL PROTECTED]> escreveu: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Are your sure you have a tag surrounding your HTML? You could also try to put all tags in lowercase. By the way, welcome to the list. :) One more Brazilian

Re: Tapestry 5 Problems with client-side validation

2008-10-25 Thread andrethiago
Hi Howard! Thanks for the reply. I installed Firebug, but there was no errors. I also cleaned all personal data (cookies, data from forms ...) but it still not works! An interesting thing that I could note, looking at the generated source code, is that there is no javascript inside my page. Obvi

T5: Using with hibernate and Mysql

2008-10-25 Thread James Sherwood
Hello, I was wondering if anyone has a good example of using Tapestry 5 with Hibernate and Mysql or can tell me what I am doing wrong I use Eclipse/Tomcat/Mysql. I created a new project using Maven: mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quick

JSON return from an event

2008-10-25 Thread Ben Gidley
Hi, I read the page on AJAX on the website and it implies I can return a JSONObject directly from an event (if it is called via ajax). However when I implemented this - I got an error saying it didn't know what to do with a JSON object. It does work if you encode the JSON response via a TextStream

Re: Tapestry 5 Problems with client-side validation

2008-10-25 Thread Howard Lewis Ship
It should work. Try it in Firefox with Firebug installed, check to see if there are any errors. Trying using Shift-F5 to force a reload of the page (this ensures that fresh copies of files are retrieved from the server, rather than cached copies). View the source and check that the validation Java

Any chance to find out which component fired an event?

2008-10-25 Thread Markus Joschko
Hi, I have a list of objects over which a page is iterating and creating instances of beanedit components. In case of validation I can simply catch the validation event of all forms with a onValidateForm. However I don't know where to record a potential error. The gotcha here is that the list has a

Tapestry 5 Problems with client-side validation

2008-10-25 Thread andrethiago
Hi all! I'm using Tapestry 5.0.15, and I'm having some problems with validate (on client side) a required text field in my forms. Basically, the validation "bubble" does not appear for me. Let's show my codes. First, I have an entity, called Organizadora. Here's is the code: public class Organi

Re: What is the difference between a "Translator" and "FieldTranslator"

2008-10-25 Thread Joachim Van der Auwera
Well, I now just assure all my Translators are also FieldTranslators and vice versa. Kind egards, Joachim Christoph Jäger wrote: Hi, I just stumbled upon the same problem when updating from 5.0.14 to 5.0.15. There must be a way that Tapestry automatically creates the FieldTranslator if a Tr

Re: [T5] Grid and checkbox behaviour

2008-10-25 Thread Martijn Brinkers
You can use a checkbox with a click event handler that sends the id of the selected checkbox to the server using AJAX. You can store the id in a persistent Set (or list or some other collection). Martijn Brinkers On Fri, 2008-10-24 at 15:38 -0700, Argo Vilberg wrote: > hi, > > If i want user gri

T5 is it possible to Inject PersistanceLocale in AppModule ?

2008-10-25 Thread Mohammad Shamsi
Hi, Is there any way to inject PersistanceLocale in AppModule ? -- sincerely yours M. H. Shamsi