Re: T3: CheckBox

2007-09-02 Thread Nick Westgate
You'll want to use the MultiplePropertySelection component: http://tapestry.apache.org/tapestry3/doc/api/org/apache/tapestry/contrib/form/MultiplePropertySelection.html If you need to change the rendering style you can just grab the source for the default renderer (which generates a table) and ch

Re: T5 Server Side Scripting for CSS

2007-09-02 Thread Davor Hrg
Hi, here are some of my thoughts, For me, most of the times skinning application means changing css and few images, and the approach you are mentioning worked for me... you should definitely cache you css (force browser to cache it), or else it's same as if you inline it, even worse (extra http r

Re: T3: CheckBox

2007-09-02 Thread Nick Westgate
It depends how T3's method matching works, but you might need: public void formSubmit(IRequestCycle cycle) Note the I in IRequestCycle. Cheers, Nick. Nazmul Bhuiyan wrote: Hello, I’ve a list of objects displayed in a page. I want to collect ids of selected object by adding a check box fo

Re: Unit Test Cannot run correctly!

2007-09-02 Thread Doublel
Thanks Korben Zhang I didn't write DAO Service,I directly inject DAO into t5 page like this: @Inject @SpringBean("IPublicDAO") private IPublicDAO pdao; it can work well in tomcat.but when I want to user Unit Test,I got the exception。 I must write DAO service ?? my code is learned from your tfan

T3: CheckBox

2007-09-02 Thread Nazmul Bhuiyan
Hello, I’ve a list of objects displayed in a page. I want to collect ids of selected object by adding a check box for each of these objects. Then I’ll use another action event to do something with this collection of ids. But I’m getting the following error message: Unable to resolve expression

Re: Unit Test Cannot run correctly!

2007-09-02 Thread Korben Zhang
How did you inject DAO service? if you use Spring to manage DAOs, usage like other service. Spring will help you get right object instance. On 8/31/07, 小司 <[EMAIL PROTECTED]> wrote: > > My Application use spring2+tapestry5+hibernate3 ,it can work well in me > IE or FF > > so,I want to use Unit T

T5: which ajax?

2007-09-02 Thread Angelo Chen
Hi, As a total newbie to java/web application development(C++ in the past), it took me almost a month to try out quite a number of frameworks(Servlet, JSP, GWT, Struts, T4) before settling for T5, now again, I have to choose an Ajax framework to use with T5, I'd like to take a simpler approach b

Re: How to define InitialValue for TextField?

2007-09-02 Thread Doublel
Thanks very much!!! 2007/9/3, Nick Westgate <[EMAIL PROTECTED]>: > > You have at least two options. > > Tapestry pages/components are POJOs, so just use an instance variable: > private String textFieldValue = "xxx"; > > Read more about that option here: > > http://tapestry.apache.org/tapestry

Rounded corners and mysterious backgrounds

2007-09-02 Thread Kevin Menard
Hi, I'm hoping someone can help me out with a little issue I'm having with using the rounded corners. I have a th element with a background-color set and a background using a generated rounded corner image. The idea is to position the rounded corner in the upper corner and let the background col

RE: T5 on JDK 1.6 or newer

2007-09-02 Thread Stephan Schwab
We moved our production app Savila from JDK 1.6 back to 1.5. That's now more than a week ago. Since we did no further hangs have shown up. Unfortunately I have not been able to investigate any further due to time constraints (the client project). But I'm planning on following the suggestions some

Re: T5: xml file location

2007-09-02 Thread Josh Canfield
> I tried your second approach: > requestGlobals.getHTTPServletRequest > ().getSession().getServletContext().getRealPath("app") > > it returns : /usr/local/apache-tomcat-5.5.23/webapps/my_app_context/app > > but I checked the running program, the file is here > /usr/local/apache-tomcat-5.5.23/webap

Re: T5: date picker component updated!

2007-09-02 Thread Ted Steen
Small update. The date picker component was refactored to an AbstractField to resolve Issue 3: Compatibility with BeanEditForm. 2007/9/2, Ted Steen <[EMAIL PROTECTED]>: > Hi again! > > A new version of the date picker component is released. > > Support for custom date format is now implemented, >

Re: T5: BeanEditFrom error-reporting

2007-09-02 Thread Robin Helgelin
On 9/2/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > > and > > @Component > private BeanEditForm myForm; > > > If you use in the element, that implicitly defines the type there, > causing a conflict. In you example, you likely used two different ids (one > specified in the template, on in

T5: using DOJO?

2007-09-02 Thread Angelo Chen
Hi, I'm new to T5, and don't have any experience with DOJO neither, I got a question: since T5's templates are plain htmls, can we use Dojo with T5? example: an app might have a 'register' page which might require the page to verify zip code before accepting the submission, with Ajax approach we

Re: How to define InitialValue for TextField?

2007-09-02 Thread Nick Westgate
You have at least two options. Tapestry pages/components are POJOs, so just use an instance variable: private String textFieldValue = "xxx"; Read more about that option here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html If you need more complicated initial

Re: T5: BeanEditFrom error-reporting

2007-09-02 Thread Howard Lewis Ship
and @Component private BeanEditForm myForm; If you use in the element, that implicitly defines the type there, causing a conflict. In you example, you likely used two different ids (one specified in the template, on in your class), thus the error message. On 9/2/07, Robin Helgelin <[EMAIL P

T5: date picker component updated!

2007-09-02 Thread Ted Steen
Hi again! A new version of the date picker component is released. Support for custom date format is now implemented, the format is passed as a JsDateFormat to the component via the parameter "dateFormat". Please feel free to check out the source and have a look - have fun! http://code.google.co

T5: BeanEditFrom error-reporting

2007-09-02 Thread Robin Helgelin
Hi, I have a page which uses a BeanEditForm. On validation success I do another few validations that can't be done with current validation. However, I don't see an obvious way to report an error on a specific input field. I've tried @Component(id = "BeanEditForm") private BeanEditForm for

Re: [T5] Usage of Grid component

2007-09-02 Thread Christoph Jaeger
Hi Ned, thanks for your link, I had some troubles with it, should probably read: http://blog.njl.us/blog/default/2007/09/01/Configurable-Grid Anyway, I will try this out. Maybe your enhancement will find its way into the standard Grid component? Best Regards, Christoph Ned Jackson Lovely wrot