T5: BeanEditForm and Property editor

2007-10-28 Thread Christoph Jaeger
I tried to create a property editor for use in a BeanEditForm. I followed the documentation in BeanEditForm guide in the Tapestry core documentation. I almost got it right, but some questions popped up. What I tried to do: to find out how property editor is working, I created a new property

DateField format

2007-10-28 Thread T. Papke
Hi, i have tried the new Tapestry 5 DateField Component. If i setup a Dateformat for rendering, the component itself behave not as espected. Could anyone confirm this as a bug or do i something wrong with that component? t:DateField t:id=birthday t:value=customer.birthday

How do I get parameter from URL in Tapestry 5 ?

2007-10-28 Thread James Lin
dear all: I have read one sample from Tapestry website http://wiki.apache.org/tapestry/Tapestry5ObtainingHttpServletRequest @Inject private RequestGlobals requestGlobals; public void onActivate(Object context) { HttpSession session =

Re: How do I get parameter from URL in Tapestry 5 ?

2007-10-28 Thread Angelo Chen
do you have these lines in the code: import org.apache.tapestry.services.RequestGlobals; import org.apache.tapestry.annotations.Inject; James Lin-3 wrote: dear all: I have read one sample from Tapestry website http://wiki.apache.org/tapestry/Tapestry5ObtainingHttpServletRequest

Re: How do I get parameter from URL in Tapestry 5 ?

2007-10-28 Thread Robin Helgelin
On 10/28/07, James Lin [EMAIL PROTECTED] wrote: dear all: I have read one sample from Tapestry website http://wiki.apache.org/tapestry/Tapestry5ObtainingHttpServletRequest @Inject private RequestGlobals requestGlobals; public void onActivate(Object context) {

RE: How do I get parameter from URL in Tapestry 5 ?

2007-10-28 Thread Mike_R
Hi, the Inject annotation moved to the tapestry-ioc project starting from 5.0.6, maybe you cloud try adding this to your pom.xml? dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-ioc/artifactId version5.0.6/version /dependency James Lin-3 wrote: thanks

upgrading 5.0.5 to 5.0.6 breaks the app

2007-10-28 Thread Marc A. Donis
Hi again, First off, I am having an issue (with 5.0.5) concerning returning null from my ValueEncoder's toValue method. I expect the value to be simply set to null, but instead I get the message: Coercion of null to type java.lang.Integer (via null -- String, String -- Long, Long --

RE: How do I get parameter from URL in Tapestry 5 ?

2007-10-28 Thread Angelo Chen
hi James, I'm using 5.0.5, sorry, can't help. A.C. James Lin-3 wrote: thanks your quick reply! I could import org.apache.tapestry.services.RequestGlobals But I don't have org.apache.tapestry.annotations.Inject I have search all jar file to find this Inject class,but I could not find it

Re: T5: property value in external javascript file

2007-10-28 Thread Bill Holloway
One possible issue is that you've used parentheses in the expression. Curly braces are the syntax. Try ${theLink}. Bill H. On 10/27/07, Angelo Chen [EMAIL PROTECTED] wrote: Hi, How to get properties value in an external javascript file? example: I have this: var link = $(theLink); it

New maven create archetype issues

2007-10-28 Thread Bill Holloway
There are some warnings thrown at the end of the new maven create archetype run, given by Howard in the tapestryjava blog entry titled Big improvement to quickstart archetype. I'm on an Intel Core Duo iMac with Maven version 2.0.7: [WARNING]

Re: New maven create archetype issues

2007-10-28 Thread Bill Holloway
That got it. It was the inside jetty part of the log4j impl I didn't realize. Very cool quickstart, Howard. Bill H. On 10/28/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: It is necessary that you upgrade the copy of log4j inside Jetty to version 1.2.14. That adds the

How do I get parameter from URL in Tapestry 5 ?

2007-10-28 Thread James Lin
dear all: I have read one sample from Tapestry website http://wiki.apache.org/tapestry/Tapestry5ObtainingHttpServletRequest @Inject private RequestGlobals requestGlobals; public void onActivate(Object context) { HttpSession session =

Re: How do I get parameter from URL in Tapestry 5 ?

2007-10-28 Thread Davor Hrg
no need to change your pom, just remove the import statement, and import the Inject annottation from tapestry ioc Eclipse: CTRL+SHIFT+O Davor Hrg On 10/28/07, James Lin [EMAIL PROTECTED] wrote: dear all: I have read one sample from Tapestry website

Re: DateField format

2007-10-28 Thread Donyee
Try this: format=%Y%m%d, you will get mmdd also you can use :format=%Y-%m-%d, then you will get -mm-dd Do you need this? 2007/10/28, T. Papke [EMAIL PROTECTED]: Hi, i have tried the new Tapestry 5 DateField Component. If i setup a Dateformat for rendering, the component itself

Re: T5: property value in external javascript file

2007-10-28 Thread Josh Canfield
You don't. You probably don't want to either right? Don't you want your external javascript to get cached in the clients browser? What about setting your parameters in the page that includes the javascript? Josh On 10/27/07, Angelo Chen [EMAIL PROTECTED] wrote: Hi, How to get properties

Re: upgrading 5.0.5 to 5.0.6 breaks the app

2007-10-28 Thread Nick Westgate
Please look for the recent thread T5: How to upgrade from 5.0.5 to 5.0.6. Cheers, Nick. Marc A. Donis wrote: Hi again, First off, I am having an issue (with 5.0.5) concerning returning null from my ValueEncoder's toValue method. I expect the value to be simply set to null, but instead I

Re: T5: property value in external javascript file

2007-10-28 Thread Angelo Chen
Hi Josh, external js file is not rendered by T5, so seems no way to do that there, what I'm doing now is, include a function in the template callable from a external js file: script type=text/javascript function myStatesLink() {return ${theLink};} /script Josh Canfield-2 wrote: You

hidden + translator

2007-10-28 Thread Paul Stanton
Hi all, Just like to say i think it's pretty silly that the 'hidden' component can't be assigned a translator. I've got a hidden that will be populated via javascript and the content describes an object. I've already got a translator for this object, so the obvious thing would be to use the

T5: file uploader and others

2007-10-28 Thread Angelo Chen
Hi, file uploader now has : validate=required, how to specify it should be a jpeg file? another question, any library that I can use to generate a thumbnail jpeg from the uploaded jpeg file? Thanks, A.C. -- View this message in context:

Re: DateField format

2007-10-28 Thread Filip S. Adamsen
Hi, I had the same problem. You can find the complete list of magic characters here: http://www.dynarch.com/demos/jscalendar/doc/html/reference.html#node_sec_5.3.5 -Filip T. Papke skrev: Hi, i have tried the new Tapestry 5 DateField Component. If i setup a Dateformat for rendering, the