T5: Is default form ValidationTracker's strategy persistence configurable in 5.0.7?

2008-01-11 Thread smithfox
Has this JIRA been solved in 5.0.7?? Go ahead and add a JIRA. A patch to make it configurable would be great. ;-) Actually I just remembered that it is configurable in that the persistence strategy is inherited from the Form's container, but it seems most of us agree that we don't want a defaul

Re: T5: refreshing page when there is an error

2008-01-11 Thread smithfox
Has this JIRA been solved in 5.0.7?? Go ahead and add a JIRA. A patch to make it configurable would be great. ;-) Actually I just remembered that it is configurable in that the persistence strategy is inherited from the Form's container, but it seems most of us agree that we don't want a defau

Re: Antwort: T5: UploadedFile componet is not compatible with UTF-8

2007-09-17 Thread smithfox
After packaging new package, but occur NullPointer Exception: because request.getCharacterEncoding() == null so the line: fieldValue = item.getString(request.getCharacterEncoding()); throw exception. How to deal with the case. Christian Koeberl wrote: > >> Is this a bug of UploadFile or I shou

Re: Antwort: T5: UploadedFile componet is not compatible with UTF-8

2007-09-17 Thread smithfox
Thank your help. I check out the lastest tapestry code, tapestry5.0.6 snapshot. But found that the bug didn't fixed. So I manually change apply the patch. Christian Koeberl wrote: > >> Is this a bug of UploadFile or I should change the code? > This is a bug, see: https://issues.apache.org/jira/

T5: UploadedFile componet is not compatible with UTF-8

2007-09-17 Thread smithfox
Hi, I wrote a web demo with UTF-8 filter, I could process Chinese character , and everything was in working order. However, when I add a UploadFile component into the page. all Chinese characters became unrecognizable. If I remove the UploadFile, everything returned to normal. Is this a bug of Up

Re: [T5] How to use Services - an example, please

2007-09-09 Thread smithfox
http://code.google.com/p/lichen-forum/ Erik Vullings-2 wrote: > > Hi, > > I've read the manual about services, but don't get it: It's like seeing > the > puzzle pieces, but not the whole. Can someone explain it to me please, > especially: > >1. How can I use a service to connect to my da

T5: How to set different parttern with my customized Date translator with

2007-09-08 Thread smithfox
I want to use the DateTranslator as following: I implemented "Translator", I can only write fixed pattern in DateTranslator,but how to get different pattern information from page template. -- View this message in context: http://www.nabble.com/T5%3A-How-to-set-different-parttern-with-my-cust

Re: T5: How to bind composite class' field(like sale.product.price) in page template

2007-09-07 Thread smithfox
teupRender) event. So I change the code: My code is: [Page.java] @Retain private BznsPojo pojo; . OK, It work. Thank for Filip's help. Filip S. Adamsen-2 wrote: > > I did a test, and it worked. > > Can you show me more of your source code? It might be some non-Tapes

Re: T5: How to bind composite class' field(like sale.product.price) in page template

2007-09-07 Thread smithfox
> > > [footer stuff] > > The important thing is that Tapestry knows that the field username is > connected to the property credentials.username, and that the field > password is connected to the property credentials.password. But you > don't have to worr

Re: T5: How to bind composite class' field(like sale.product.price) in page template

2007-09-07 Thread smithfox
I'm sure that I have getter and setter for price. Could you show me your code. Thanks Filip S. Adamsen-2 wrote: > > Make sure you've declared a getter and setter for price in your Product > class. The output you're seeing is expected and works for me in a > simila

Re: T5: How to bind composite class' field(like sale.product.price) in page template

2007-09-06 Thread smithfox
he knows what he's talking about. : ) > > smithfox skrev: >> It's a edit form. >> >> Nick Westgate wrote: >>> Why are you binding the id to that? Don't you mean >>> t:value="sale.product.price"? >>> >>> Cheers, >

Re: T5: How to bind composite class' field(like sale.product.price) in page template

2007-09-06 Thread smithfox
Maybe nested component id is for "Event Bubbling". But I think should instead separator '.' with another separator. Because '.' is regarded as spearator of bussiness object,such as "sale.product.price", just as Tapestry4.x do. -- View this message in context: http://www.nabble.com/T5%3A-How-to-b

Re: T5: How to bind composite class' field(like sale.product.price) in page template

2007-09-06 Thread smithfox
It's a edit form. Nick Westgate wrote: > > Why are you binding the id to that? Don't you mean > t:value="sale.product.price"? > > Cheers, > Nick. > -- View this message in context: http://www.nabble.com/T5%3A-How-to-bind-composite-class%27-field%28like-sale.product.price%29-in-page-template

Re: T5: How to bind composite class' field(like sale.product.price) in page template

2007-09-06 Thread smithfox
The exception: # org.apache.tapestry.internal.structure.ComponentPageElementImpl.getEmbeddedElement(ComponentPageElementImpl.java:831) # org.apache.tapestry.internal.structure.PageImpl.getComponentElementByNestedId(PageImpl.java:83) # org.apache.tapestry.internal.services.ComponentSourceImpl.getCo

T5: How to bind composite class' field(like sale.product.price) in page template

2007-09-06 Thread smithfox
I wrote: class Sale{ public Product getProduct(){return this.product}; public void setProduct(Product product){this.product=product}; } class Product{ private double price;} but can't pass. -- View this message in context: http://www.nabble.com/T5%3A-How-to-bind-composite-class%27-fie

T5: How to set the input validation to Server Side

2007-09-05 Thread smithfox
I have two problems with Tapestry5.05 1. How to set the input validation to Server Side? 2. If use client javascript validation, how to translate the messages to Chinese? -- View this message in context: http://www.nabble.com/T5%3A-How-to-set-the-input-validation-to-Server-Side-tf4389348.html#a