Re: Non trivial example application?

2007-06-11 Thread robinson wang
i want a copy to learn , would you please send it to me ,thank you

Re: dojo dialog render issue

2007-06-11 Thread Paul Stanton
https://issues.apache.org/jira/browse/TAPESTRY-1560 how's 4.1.2 coming? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

bean declared already exception

2007-06-11 Thread Warner Onstine
I'm still seeing this issue when I'm trying to convert from 4.0.2 up to 4.1.2. Here's my issue: I have a Login component that declares a bean @Bean(EventsValidationDelegate.class) public abstract IValidationDelegate getValidationDelegate(); And on the NewEvent page where the Login component

T5 encoding issue

2007-06-11 Thread Martin Grotzke
Hi, I have currently an encoding issue, but am not really sure what's the reason for this. I have an url that contains a url encoded german umlaut (ü) in UTF-8 and looks like the following: http://localhost:8080/app/search/%C3%BCbel (the %C3%BC represents the ü in UTF-8, this url is created by c

Re: About component 'loop' usage in T5.0.4

2007-06-11 Thread Daniel Jue
Wait for the Tapestry-PaddleShifter library? I think the politeness is just lost in translation. I can relate with my in-laws. :-) On 6/11/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: "I really like this Ferarri, but I don't like to drive stick. What do I do?" On 6/11/07, Howard Lewis Sh

Re: About component 'loop' usage in T5.0.4

2007-06-11 Thread Massimo Lusetti
On 6/11/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: "I really like this Ferarri, but I don't like to drive stick. What do I do?" Very nice comparison! And it fits well... -- Massimo http://meridio.blogspot.com - To uns

Re: About component 'loop' usage in T5.0.4

2007-06-11 Thread Howard Lewis Ship
"I really like this Ferarri, but I don't like to drive stick. What do I do?" On 6/11/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Stick with T4.1? On 6/9/07, Allen Guo <[EMAIL PROTECTED]> wrote: > Can anybody give some suggestion? > > Allen Guo 写道: > > Hi All, > > > > If I use loop compone

Re: About component 'loop' usage in T5.0.4

2007-06-11 Thread Howard Lewis Ship
Stick with T4.1? On 6/9/07, Allen Guo <[EMAIL PROTECTED]> wrote: Can anybody give some suggestion? Allen Guo 写道: > Hi All, > > If I use loop component in html template like this > > ${_sort.name} > > > I have to define the property in corresponding page class like this > public class SortList

RE: Converting T3 to T4 issues

2007-06-11 Thread Robert J. Walker
1. The method getRequestContext() is undefined for the type IRequestCycle. The RequestContext doesn't exist anymore. Now we have the Infrastructure object. Also, in order to support portlets, the Infrastructure object doesn't give you HttpServletRequest or HttpServletResponse objects, but instea

Re: Portlet - custom Exception page

2007-06-11 Thread Miguel Angel Hernández
I think that the way to go on this, is adding a contribution to tapestry.InfraestructureOverrides in your hivemodule.xml: cheers, miguel On 5/31/07, Petras Martin, Centire <[EMAIL PROTECTED]> wrote: Hi all, I am trying to change the default Exception page in my portlet applica

Re: how to implement hivemind.Startup function in T5?

2007-06-11 Thread Otho
Thank you very much! That was it. Just one more catch: Injecting the Services like I did doesn't work with @EagerLoad. One needs to either cache them by providing a module constructor or inject them at the method parameters as described here: http://tapestry.apache.org/tapestry5/tapestry-ioc/modul

Re: how to implement hivemind.Startup function in T5?

2007-06-11 Thread Davor Hrg
you missed it just sligtly, anotating your Impl works if you use "bind" here, because you are constructing th Impl tapestry is not checking out annotations on it. you have to annotate you build Method extract from doc: --- Eager Loading Services Services are normally

Re: how to implement hivemind.Startup function in T5?

2007-06-11 Thread Otho
Any hints as to how that exactly works? I wrote a service interface, public interface MyInterface { } implemented it and annotated it with @EagerLoad @EagerLoad public class MyInterfaceImpl implemets MyInterface { public MyInterfaceImpl(SpringService springService) { doSomeStuff(s

how to get column index of contrib:table during iteration

2007-06-11 Thread Ken nashua
Folks, I am using contrib table... and need to operate off of the current column index. Is there a way to get this? jwcid="[EMAIL PROTECTED]" value="ognl:object[linkProperty]"/>

Re: Refreshing a dojo Dialog on submit

2007-06-11 Thread Stephane Decleire
We are using Tap4.1.1 Christian Dutaret a écrit : What version are you using? I had issues with refreshing the content of a Dialog through XHR requests. That's actually what motivated the move to 4.1.2 2007/6/8, Stephane Decleire <[EMAIL PROTECTED]>: My submit is async but nothing happens. I'

Re: T5 tab-like component

2007-06-11 Thread Erik Vullings
Thanks Kris, for the great explanation!!! It also thaught me the use of the delegate and block components. I've taken the liberty to add your example to the T5 Wiki (attributed to you, of course), http://wiki.apache.org/tapestry/Tapestry5HowToCreateATabPanel. If you see any mistakes, please feel f

Re: how to use Grid component

2007-06-11 Thread Eugene Lozovan
"- how do I select columns to not show all of the classes properties and how do I set labels different from the getter methods?" You can use either @NonVisual annotation for a setter or grid's "model" attribute ( http://tapestry.apache.org/tapestry5/tapestry-core/guide/beaneditf

Re: how to use Grid component

2007-06-11 Thread Erik Vullings
Hi Thomas, Have a look at Howard's screencasts, esp. #5, for an introduction ( http://tapestry.apache.org/tapestry5/screencast.html) - In case you need to hide properties, the @NonVisual annotation should do the trick (before the property declaration). - Different labels: I haven't tried it with

Form Validation

2007-06-11 Thread petros
I have a problem with the following code. When the form is submitted my form displays a message advising if the email is valid or not. When the message is displayed I start another browser and I access the same page. The message is still displayed the first time the "second" user accesses this

RE: T5 included javascript libraries

2007-06-11 Thread Martin Grotzke
On Mon, 2007-06-11 at 11:25 +0200, Martin Grotzke wrote: > Thanx for this explanation, Adam! > > I just set clientValidation to false for my form, however, the js files > are added to body. Is it somehow possible to tell T5 not to add > these libraries (or scriptaculous.js) to the body? Ouuups, so

how to use Grid component

2007-06-11 Thread Thomas Beckmann
Hi, we want to use Grid component but I can't find any example code. Current issues are: - how do I select columns to not show all of the classes properties and how do I set labels different from the getter methods? - how do I connect paging with paging on database level (in o

Re: T5 Invoke ValidationTracker recordError with elementName instead of Field

2007-06-11 Thread Martin Grotzke
Hi Howard, On Sat, 2007-06-09 at 22:44 +0200, Martin Grotzke wrote: > Does this enable us to use hibernate validator in our business layer > that is completely independent from tapestry? > Hibernate validator is right now our favorite option for validation, > but it might be that we have to use an

Re: Fwd: How to load a image dynamically in tapestry5.0.4

2007-06-11 Thread petros
I am using the approach suggested by Howard below in conjunction with the UploadedFile component and JAI to upload an image and re-scale it before saving it into the database. My code is provided below This may not be very relevant to many T5 users but I thought of sharing my code anyway. Petro

Re: How can I use javascript in html template with TP5.0.4

2007-06-11 Thread Jiri Mares
Hi, why not to use CDATA section:

RE: T5 included javascript libraries

2007-06-11 Thread Martin Grotzke
Thanx for this explanation, Adam! I just set clientValidation to false for my form, however, the js files are added to body. Is it somehow possible to tell T5 not to add these libraries (or scriptaculous.js) to the body? Otherwise, as a very ugly hack, it should be possible to replace the js file

Re: T5: inherited @Parameter's in component classes

2007-06-11 Thread Martin Dietze
Hi, On Fri, June 08, 2007, Martin Dietze wrote: > I tried to inherit some compoment classes from an abstract > component base class which contains some propeties the above > share. In the template I would then use these components like > this: > > > > In the base class I have: > > @Param

Re: how to implement hivemind.Startup function in T5?

2007-06-11 Thread Davor Hrg
Why not use EagerLoad it was in Hivemind, and it exists in T5 as well... http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html look for "eager load" Davor Hrg On 6/11/07, Otho <[EMAIL PROTECTED]> wrote: Hi all! I have the same problem [T5] of initializing the database at startup and

RE: T5 included javascript libraries

2007-06-11 Thread Adam Ayres
>From what I can tell only the Form component uses prototype and scriptaculous when the clientValidation parameter is set to true (which is the default). The tapestry.js that is added as part of the Form component uses some of the element and event helper methods from prototype and some of the eff

Re: how to implement hivemind.Startup function in T5?

2007-06-11 Thread Otho
Hi all! I have the same problem [T5] of initializing the database at startup and tried it with contribution like this: In my MyAppModule I added public void contributeApplicationInitializer(OrderedConfiguration configuration) { configuration.add("myApp.applicationIitializer", new MyAppIni

Re: T5 included javascript libraries

2007-06-11 Thread Martin Grotzke
Are these js files used at all? I ask as they increase loading time and I'd like to remove them if they're not used... However, wait 5 days and I'll ask how to start with ajax in T5 ;) Cheers, Martin On Sun, 2007-06-10 at 23:50 -0700, Howard Lewis Ship wrote: > You have some control, via contri