Using Grid and org.joda.time.DateTime

2009-11-04 Thread Martin Reurings
Hi everybody, I've been using T5 quite a while now but only recently started making serious use of the Grid and BeanEditor (finally giving way to my misgivings concerning some of the html-output in favor of development speed). But, now that I've started using Grid I ran into something I can't

Re: Using Grid and org.joda.time.DateTime

2009-11-04 Thread Ulrich Stärk
That's because Tapestry doesn't know how to display org.joda.time.DateTime. Provide a block that knows how to display a DateTime on some page and contribute that block to the BeanBlockSouce service (see [1] for an example). Uli [1] http://tapestry.apache.org/tapestry5.1/guide/beaneditform.html

Re: Using Grid and org.joda.time.DateTime

2009-11-04 Thread Ulrich Stärk
I just noticed that the page I referred to is missing some things: If you just want to display (output) a property, inject the PropertyOutputContext environmental service instead of the PropertyEditContext. Also you might want to put your block on a page called AppPropertyDisplayBlocks instead

Re: Using Grid and org.joda.time.DateTime

2009-11-04 Thread Martin Reurings
Hi Uli, Thank you for the detailed info and extra clarifications :) I've constantly been using the Tapestry Core, Component Reference to get my information. Although that seems to be detailed, it isn't necessarily complete... I'll be sure to check the websites' guide section more closely in t

Re: Using Grid and org.joda.time.DateTime

2009-11-04 Thread Martin Reurings
Hi Uli and/or anybody else reading this, Could you help me some more? I ran into an unexpected problem :) There is a known editor-block for Joda DateTime, however, there is no known view-block?!? When I added the following: /** * This method is used to add aditional editors / views to t

Re: Using Grid and org.joda.time.DateTime

2009-11-04 Thread Thiago H. de Paula Figueiredo
You could use a DataTypeAnalyzer instead of a DefaultDataTypeAnalyzer. This way, you have more control. Em Wed, 04 Nov 2009 14:08:08 -0200, Martin Reurings escreveu: Hi Uli and/or anybody else reading this, Could you help me some more? I ran into an unexpected problem :) There is a kno

Re: Using Grid and org.joda.time.DateTime

2009-11-04 Thread Martin Reurings
Using those two classnames as a reference I still can't figure out how I could possibly assert the control I need. Honestly, I am somewhat surprised with how hard this seems to be :( There's an editor available and I'm providing a BeanBlock that is _not_ an editor, why are those two in conflict

Re: Using Grid and org.joda.time.DateTime

2009-11-04 Thread Thiago H. de Paula Figueiredo
Em Wed, 04 Nov 2009 15:00:38 -0200, Martin Reurings escreveu: Using those two classnames as a reference I still can't figure out how I could possibly assert the control I need. I agree that my answer wasn't as clear as it should. Honestly, I am somewhat surprised with how hard this seems

Re: Testify question about @Parameter

2009-11-04 Thread Mats Henricson
>>> I never understand how to "inject" mock members annotated >>> with @Parameter into a page when testing with Testify. >> >> I'm not sure I understand the question. I thought @Parameter only made >> sense for components - not pages. > > That's exactly one of the few differences between component

Re: Using Grid and org.joda.time.DateTime

2009-11-04 Thread Martin Reurings
Using those two classnames as a reference I still can't figure out how I could possibly assert the control I need. I agree that my answer wasn't as clear as it should. The basic problem with explaining something that is clear as day to you lies in finding out what the other doesn't yet unde

Re: T5: HibernateEntityValueEncoder nullpointerException after Tapestry update

2009-11-04 Thread buckofive
Hi, Was this issue ever resolved or is there a JIRA open for it (I couldn't find one)? We are experiencing this exact same scenario ie, Moving from 5.0 to 5.1 and using a composite-id entity in a loop. thanks, B -- View this message in context: http://old.nabble.com/T5%3A-HibernateEntityValue

Re: Using Grid and org.joda.time.DateTime

2009-11-04 Thread Thiago H. de Paula Figueiredo
Em Wed, 04 Nov 2009 21:18:24 -0200, Martin Reurings escreveu: The basic problem with explaining something that is clear as day to you lies in finding out what the other doesn't yet understand :) You're absolutely right. :) But I had to add coercion to and from DateTime to Date (Not really

Re: [T5.1.0.5] Problem with report-plugin on windows

2009-11-04 Thread buckofive
Just as a reference for this thread the JIRA for this issue is here: https://issues.apache.org/jira/browse/TAP5-871 -- View this message in context: http://old.nabble.com/-T5.1.0.5--Problem-with-report-plugin-on-windows-tp25362108p26207956.html Sent from the Tapestry - User mailing list archive

Re: T5: HibernateEntityValueEncoder nullpointerException after Tapestry update

2009-11-04 Thread buckofive
Hi, Was this issue ever resolved or is there a JIRA open for it (I couldn't find one)? We are experiencing this exact same scenario ie, Moving from 5.0 to 5.1 and using a composite-id entity in a loop. thanks, B -- View this message in context: http://old.nabble.com/T5%3A-HibernateEntityValue

Re: T5: HibernateEntityValueEncoder nullpointerException after Tapestry update

2009-11-04 Thread buckofive
Hi, Was this issue ever resolved or is there a JIRA open for it (I couldn't find one)? We are experiencing this exact same scenario ie, Moving from 5.0 to 5.1 and using a composite-id entity in a loop. thanks, B -- View this message in context: http://old.nabble.com/T5%3A-HibernateEntityVal

t5: updating a zone during loading of page?

2009-11-04 Thread Angelo Chen
Hi, Zone has to be updated by an actionlink or a form, is there another way? here is what I intend to use: 1. when page is loaded: < t:zone t:id="content" show="slidedown" update="show" >Loading, please wait.. < /t:zone> 2. the template retrieves some other info from the server thru ${moreIn