Re: T5: how to override default msg error

2007-12-09 Thread Filip S. Adamsen
Not if you want to override the *default* error messages. If you just want to override the error messages in a given component, then put a entry in your component's .properties file with the key fieldid-validatoin-message, that is, username-maxlength-message etc. I don't know if this works

Re: Problems Deploying T5 Apps with Component Modules in Jetty

2007-12-09 Thread Howard Lewis Ship
What I'm seeing is that logged messages are never seen, and just result in extra postings to this list. On Dec 8, 2007 9:56 AM, Steve Eynon [EMAIL PROTECTED] wrote: Except for maybe adding extra configuration for a test version of an application I can't think why you'd want to extend the module

Re: Problems Deploying T5 Apps with Component Modules in Jetty

2007-12-09 Thread Chris Lewis
This leaves me with two questions: My App Module class extended the Component Module class. (Doh!) I now remember doing this to have the Jetty Launcher in Eclipse pick up the component module configuration. 1) Why would you extend a module class so that it is effectively included, when all you

Re: Problems Deploying T5 Apps with Component Modules in Jetty

2007-12-09 Thread Steve Eynon
Hi Chris, You are correct and I agree with everything you say, no buts. You are even right in your assumption that I'm not aware of the @SubModule annotation. I don't recall seeing it mentioned anywhere, but will look it up in a minute. To address your specific points (...of my inadequacy -

Re: T5: Tapestry-hibernate and console app

2007-12-09 Thread Davor Hrg
Hi, if you don't need tapestry web part, or in other words if you just want tapestry-ioc plus tapestry hibernate: here are simple steps to do it (with maven :) ). this is how I made it work, any suggestions are welcome :) declare dependancy on tapestry-ioc and tapestry hibernate there's an open

[T5] How Add and Image to Grid Column Label.

2007-12-09 Thread Cristian Gonzalo Gary
Hello I need to modified the Column label, and put into and image with a link . Thanks. Gracias. -- View this message in context: http://www.nabble.com/-T5--How-Add-and-Image-to-Grid-Column-Label.-tp14242580p14242580.html Sent from the Tapestry - User mailing list archive at Nabble.com.

T5 - BeanEditForm server side validation question

2007-12-09 Thread Chris Campbell
Simple question from a noob: Following form example, mostly works well. Now I want to do some cross validation server side, and can do that, however I cannot figure out how to set the error message on the form. My class has: @Inject private BeanModelSource _beanModelSource; @Inject

Re: Can't get component inside a component

2007-12-09 Thread Michael Courcy
Hi Kristian Thanks for your hints. I just wanted to have control over my component and they appeared to be null in my debugger at any stages of the rendering process. My fault was to not declare them private. Since I declared them private the problem was fixed. Michael. Kristian

Re: T5 - BeanEditForm server side validation question

2007-12-09 Thread Filip S. Adamsen
Hi Chris, Simply inject the BeanEditForm into your page class and use that to record the errors. You'll need to give the BeanEditForm an id in your template and then use the @Component annotation to inject it. Details are here:

Re: T5 - BeanEditForm server side validation question

2007-12-09 Thread Chris Campbell
Very good. For completeness for anyone else reading this, I did the following: Added to the java class @Component private BeanEditForm _form; public BeanEditForm getForm() { return _form; } and changed template to ( notice the t:beaneditform to :form ) t:form id=form object=bean

Re: T5: Tapestry-hibernate and console app

2007-12-09 Thread Angelo Chen
Hi Davor, That's a good idea, I don't know that we can use Tapestry ioc in non web app, now it's really cool, questions: 1. The app has to be in tomcat server, not in workstation, right? 2. What is the advantages of using tapestry-ioc in a non web app? 3. it will be nice if you can give a

Re: T5: Tapestry-hibernate and console app

2007-12-09 Thread Davor Hrg
Hi, to use tapestry-ioc in a simple app, you don't even need tomcat or any web container. there are definitive advantages of using tapestry ioc in a small app. If you want separate concerns in your app, you need granularity, and have a class(service in tapestry terms) for each task. One of the

Re: T5: Tapestry-hibernate and console app

2007-12-09 Thread Angelo Chen
Hi Davor, That's even better, my #3 is asking for a sample project, now let's say, just a very simple one without tomcat, a service displays hello, and it is called in a Main method, that will be enough for us to start from there. thanks, A.C. Davor Hrg wrote: Hi, to use tapestry-ioc in

Re: T5: Tapestry-hibernate and console app

2007-12-09 Thread Davor Hrg
it's 00:20 here... I'll make a simple app in the morning Davor Hrg On Dec 10, 2007 12:16 AM, Angelo Chen [EMAIL PROTECTED] wrote: Hi Davor, That's even better, my #3 is asking for a sample project, now let's say, just a very simple one without tomcat, a service displays hello, and it is

T5: Two logging related questions

2007-12-09 Thread Angelo Chen
Hi, Got two problems when using logger with T5: 1) @Inject private Logger logger; private void doTest() { logger.info(test logging); } I got an exception: org.apache.tapestry.internal.services.TransformationException: Error obtaining injected value for

T5: BeanEditForm and PasswordField

2007-12-09 Thread Chris Campbell
I have a BeanEditForm for a UserBean that has a password field. I gather that I am supposed to be able to override the BeanEditForm input for the password so that it renders with type=password so that the text is not visible on the screen. So I do the following: t:form id=form object=bean

Re: T5: Two logging related questions

2007-12-09 Thread Angelo Chen
solved, import org.slf4j.Logger; read that from some where in the list, thanks. Angelo Chen wrote: Hi, Got two problems when using logger with T5: 1) @Inject private Logger logger; -- View this message in context:

T5 form validation Error message style problem under IE7 vista

2007-12-09 Thread Dapeng
Hi guys the default form validation error display is great but under IE7 (vista) the error message is mis-aligned (it looks ok for firefox) see my screen shot http://dapeng.spiralcomms.com/temp/ie7.jpg does this count as a bug ? or we are supposed to come up with our own error css ??