T5: 'wrapping' hibernate DAOs as services

2007-10-28 Thread Chris Lewis
Hello all, I'm building out the persistence infrastructure of my T5 app and would like some opinions on accessing my DAOs. Summary: I have DAOs for accessing my entities that provide common functionality as well as prevent my higher-level web-app parts (pages/components) from knowing about m

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 com

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: http://www.nabble.com/T5%3A-file-uploader-and-others-tf4

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 t

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: function myStatesLink() {return "${theLink}";} Josh Canfield-2 wrote: > > You don't. You probably don't want

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 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 propert

Re: T5: Locale and SEO

2007-10-28 Thread Josh Canfield
Sounds like you want the locale to be part of the context for your page. You could add it to your context by returning it from onPassivate. Josh On 10/28/07, Mike_R <[EMAIL PROTECTED]> wrote: > > > Hi all, > > While migrating a tap4 webapp to tap5, I've come across the following > difference: l

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 componen

RE: T5: How to upgrade from 5.0.5 to 5.0.6

2007-10-28 Thread Adam Ayres
Not sure if this will be helpful for anyone else but I used this to rename ~120 of our templates from html to tml when upgrading from 5.0.5 to 5.0.6. Windows command line to do subversion rename for all files in a folder (and subfolder) from *.html to *.tml: >>FOR /R %A in (*.html) do svn rename

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 > http://wiki.apache.org/tapestry/T

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 = requestGlobals.getHTTPServletRequest().getSe

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 isTraceEnabled():

Re: New maven create archetype issues

2007-10-28 Thread Howard Lewis Ship
The other warnings about unexpected symbols are caused by Tapestry and the Maven archetype both using ${...} syntax. Fortunately, the archetype code leaves ${...} it doesn't recognize alone. On 10/28/07, Bill Holloway <[EMAIL PROTECTED]> wrote: > > There are some warnings thrown at the end of the

Re: New maven create archetype issues

2007-10-28 Thread Howard Lewis Ship
It is necessary that you upgrade the copy of log4j inside Jetty to version 1.2.14. That adds the isTraceEnabled():boolean method that SL4J expects. On 10/28/07, Bill Holloway <[EMAIL PROTECTED]> wrote: > > There are some warnings thrown at the end of the new maven create > archetype run, given by

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] org.apache.velocity.runtime.exception.ReferenceExcept

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 = "$(theL

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

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 --> I

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? org.apache.tapestry tapestry-ioc 5.0.6 James Lin-3 wrote: > > thanks your quick reply! > I could import org.apache.tapestry.services.RequestGl

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

2007-10-28 Thread James Lin
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 anywhere ps. My tapestry version is 5.0.6(before last week I use 5.0.5) James >

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 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 > >

T5: Locale and SEO

2007-10-28 Thread Mike_R
Hi all, While migrating a tap4 webapp to tap5, I've come across the following difference: locale changes are not reflected in the URL. This prevents Google from indexing translated pages, which is not good. I used the excellent http://wiki.apache.org/tapestry/Tapestry5HowToChangeLocale Tapestry

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 = requestGlobals.getHTTPServletRequest().getS

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:format="dd.MM."/> Thank you, Thomas Papke ---

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 edit