Re: T5: PersistentLocale is lowercasing locales
Hi Geoff, I've seen this in past releases and I had to use the following as a workaround in my AppModule to get my application to work: ... configuration.add(tapestry.supported-locales, en_us,fr_ca,zh_cn); ... This didn't work: configuration.add(tapestry.supported-locales, en_US,fr_CA,zh_CN); This look like a bug! /Serge Geoff Callender-2 wrote: Hi, Before I put this into JIRA I thought I'd check if anyone else is seeing a problem with PersistentLocale (in 5.0.6). I'm seeing it convert locales from mixed case to all lower case, which is useless for formatting. For example, if Page 1 sets the locale like this: @Inject private PersistentLocale _persistentLocaleService; Locale locale = Locale.UK; _persistentLocaleService.set(locale); System.out.println(locale is + locale + - + locale.getDisplayName()); then this is what prints: locale is en_GB - English (United Kingdom) But when I'm in Page 2 I get the locale and find it has mutated... Locale locale = _persistentLocaleService.get(); System.out.println(locale is + locale + - + locale.getDisplayName()); ...this is what prints: locale is en_gb - en_gb This mutated locale in page 2 is useless for formatting. Code like the following produces default-styling instead of UK-styling: _myDateFormat = DateFormat.getDateInstance(DateFormat.LONG, locale); System.out.println(_myDateFormat.format(new Date())); Has anyone else experienced this? Cheers, Geoff -- View this message in context: http://www.nabble.com/T5%3A-PersistentLocale-is-lowercasing-locales-tp14466509p14469664.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: A web flow idea on T5
Hi, I think the only thing missing is a conversational type of persistence. That is that the application state object and persisted link shouldn't be simply session persisted but at least session persisted with some kind of flowkey prefix so to separate different flows. This would imply also some flow/conversation control mechanism (start/restart/reset/getFlowKey) I was planning to do a similar thing for T4. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4]: EventListener autoSubmit
Thinking the matter over a little bit more, there's a fairly straightforward workaround. By removing any listener from the form and binding them all to submit button action values, I can get the desired behavior. Of course, this does mean more template changing which is not as transparent as I'd like, but not terrible either. The autoSubmit parameter seems broken though, so I'll be poking around JIRA for that. -- Kevin On 12/20/07 6:55 PM, in article [EMAIL PROTECTED], Kevin Menard [EMAIL PROTECTED] wrote: On 12/20/07 5:51 PM, in article [EMAIL PROTECTED], Jesse Kuhnert [EMAIL PROTECTED] wrote: In theory it will take all the arguments to the client side function (including the javascript event, which should have a target/relatedTarget/etc attribute attached to it) and serialize them in some form that you can then try to interact with in the form of a JSONArray.I've not used it though so don't know what will happen under which circumstances / etc.. Ahh. Cool. I guess ideally I'd be able to a serialized copy of the DOM node, sorta like I can do with jQuery. Then I could dump the server-side value altogether and just use a plain ol' checkbox. I guess I'll put EventListener back on the shelf until then. Thanks for the info, Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] - list paging from database ?
Hi all, Grid Component related, I have a large size of data in database, i want to retrieve each pages data separately, is it any way to set list size and list data separately in Grid component ? formerly, in struts and jsp i used dispalytag compoent in DisplayTag (a grid component with paging) Component, its possible to set list size and list data separately. this feature allows developers to retrieve just current page data and show it on page, i need something like this in Tapestry 5. any idea -- sincerely yours M. H. Shamsi
components collection release 0.5.0
Hi there, components collection release 0.5.0 is accessable now (requiers tapestry 5.0.7) at http://code.google.com/p/tapestry5-components/ change log at http://code.google.com/p/tapestry5-components/wiki/ChangeLog - --- best regards Sven -- View this message in context: http://www.nabble.com/components-collection-release-0.5.0-tp14472527p14472527.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] - list paging from database ?
if i understand correctly, you should grid parameter rowsPerPage dalahoo wrote: Hi all, Grid Component related, I have a large size of data in database, i want to retrieve each pages data separately, is it any way to set list size and list data separately in Grid component ? formerly, in struts and jsp i used dispalytag compoent in DisplayTag (a grid component with paging) Component, its possible to set list size and list data separately. this feature allows developers to retrieve just current page data and show it on page, i need something like this in Tapestry 5. any idea -- sincerely yours M. H. Shamsi - --- best regards Sven -- View this message in context: http://www.nabble.com/-T5list-paging-from-database---tp14472521p14472665.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] - list paging from database ?
Hi Sven, No, Sorry about my pour English, in tapestry grid component (I am not sure), you most fetch all data to a collection, list or array and then show them with paging, suppose that data list have 1 million item, thats not good idea to fetch 1 million records and hold them in application space. with displaytag ( an open source taglib for grid and paging), its possible to fetch just one pages data and show them in page. in this taglib, you have to choice : 1 - just like tapestry grid component setting a list or array as a data source. (this list has all items that most be shown to user) 2 - you can set list size (number of all items) and current page data as a data source in this case you most select only current page data ? On Dec 22, 2007 11:18 PM, Sven Homburg [EMAIL PROTECTED] wrote: if i understand correctly, you should grid parameter rowsPerPage dalahoo wrote: Hi all, Grid Component related, I have a large size of data in database, i want to retrieve each pages data separately, is it any way to set list size and list data separately in Grid component ? formerly, in struts and jsp i used dispalytag compoent in DisplayTag (a grid component with paging) Component, its possible to set list size and list data separately. this feature allows developers to retrieve just current page data and show it on page, i need something like this in Tapestry 5. any idea -- sincerely yours M. H. Shamsi - --- best regards Sven -- View this message in context: http://www.nabble.com/-T5list-paging-from-database---tp14472521p14472665.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- sincerely yours M. H. Shamsi
Re: [T5] - list paging from database ?
Hi Mohammad, I had the same issue... collections of data with, eg, 250,000 rows; clearly a bad idea to try to have all of that in memory at the same time. What you want to do is provide your own implementation of GridDataSource to grid's source parameter, rather than providing a collection. Check out: http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/grid/GridDataSource.html for more details. Pretty straightforward, and it provides exactly what you're looking for: a way to say this many total rows and the opportunity to fetch only the current page of information. Cheers, Robert On Dec 22, 2007, at 12/222:01 PM , Mohammad Shamsi wrote: Hi Sven, No, Sorry about my pour English, in tapestry grid component (I am not sure), you most fetch all data to a collection, list or array and then show them with paging, suppose that data list have 1 million item, thats not good idea to fetch 1 million records and hold them in application space. with displaytag ( an open source taglib for grid and paging), its possible to fetch just one pages data and show them in page. in this taglib, you have to choice : 1 - just like tapestry grid component setting a list or array as a data source. (this list has all items that most be shown to user) 2 - you can set list size (number of all items) and current page data as a data source in this case you most select only current page data ? On Dec 22, 2007 11:18 PM, Sven Homburg [EMAIL PROTECTED] wrote: if i understand correctly, you should grid parameter rowsPerPage dalahoo wrote: Hi all, Grid Component related, I have a large size of data in database, i want to retrieve each pages data separately, is it any way to set list size and list data separately in Grid component ? formerly, in struts and jsp i used dispalytag compoent in DisplayTag (a grid component with paging) Component, its possible to set list size and list data separately. this feature allows developers to retrieve just current page data and show it on page, i need something like this in Tapestry 5. any idea -- sincerely yours M. H. Shamsi - --- best regards Sven -- View this message in context: http://www.nabble.com/-T5list-paging-from-database---tp14472521p14472665.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- sincerely yours M. H. Shamsi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] - list paging from database ?
thats it. Thanks Robert On Dec 23, 2007 12:55 AM, Robert Zeigler [EMAIL PROTECTED] wrote: Hi Mohammad, I had the same issue... collections of data with, eg, 250,000 rows; clearly a bad idea to try to have all of that in memory at the same time. What you want to do is provide your own implementation of GridDataSource to grid's source parameter, rather than providing a collection. Check out: http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/grid/GridDataSource.html for more details. Pretty straightforward, and it provides exactly what you're looking for: a way to say this many total rows and the opportunity to fetch only the current page of information. Cheers, Robert On Dec 22, 2007, at 12/222:01 PM , Mohammad Shamsi wrote: Hi Sven, No, Sorry about my pour English, in tapestry grid component (I am not sure), you most fetch all data to a collection, list or array and then show them with paging, suppose that data list have 1 million item, thats not good idea to fetch 1 million records and hold them in application space. with displaytag ( an open source taglib for grid and paging), its possible to fetch just one pages data and show them in page. in this taglib, you have to choice : 1 - just like tapestry grid component setting a list or array as a data source. (this list has all items that most be shown to user) 2 - you can set list size (number of all items) and current page data as a data source in this case you most select only current page data ? On Dec 22, 2007 11:18 PM, Sven Homburg [EMAIL PROTECTED] wrote: if i understand correctly, you should grid parameter rowsPerPage dalahoo wrote: Hi all, Grid Component related, I have a large size of data in database, i want to retrieve each pages data separately, is it any way to set list size and list data separately in Grid component ? formerly, in struts and jsp i used dispalytag compoent in DisplayTag (a grid component with paging) Component, its possible to set list size and list data separately. this feature allows developers to retrieve just current page data and show it on page, i need something like this in Tapestry 5. any idea -- sincerely yours M. H. Shamsi - --- best regards Sven -- View this message in context: http://www.nabble.com/-T5list-paging-from-database---tp14472521p14472665.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- sincerely yours M. H. Shamsi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- sincerely yours M. H. Shamsi
Re: Programmatically generating DirectLinks with updateComponents
On 21.12.2007, at 19:29, Kaspar Fischer wrote: Hi, My custom component needs to emit in its renderComponent() method several DirectLink with updateComponents information. That is, I need to output the same HTML as a jwcid=@DirectLink listener=listener:doClick updateComponents=result/a generates non-programmatically, but from within renderComponent(). How can I do this? Thanks, Kaspar To give a concrete example: I tried to do it as follows: div jwcid=@Block a jwcid=[EMAIL PROTECTED] listener=listener:showResult updateComponents=result/a /div div jwcid=@ResultElement tree=ognl:mydate/ div jwcid=[EMAIL PROTECTED] div jwcid=@Insert value=ognl:result/div div ... and from the code (ResultElement's renderComponent()) I try to render the link as follows: DirectLink link = (DirectLink)this.getContainer().getComponent (link); String url = link.getLink(cycle).getURL(); writer.begin(a); writer.appendAttribute(href, url); writer.print(title); writer.end(); Unfortunately, this only outputs an ordinary link, not an AJAX link! Any ideas how to output a AJAX link programmatically? Thanks, Kaspar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] default DateFormat for DateFields
Hi, Is there a way to set the default DateFormat for all DateField elements of a BeanForm? I know that I could specify the format in a t:Parameter / block for the form. But then I'd have to do this on every occurrence of a Date object. Is there maybe some service that I could intercept when it is creating DateField instances and tell it what format to use? Thanks Moritz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Programmatically generating DirectLinks with updateComponents
Hi, what's the html template for ResultElement ? Can't you add the link there? On Dec 22, 2007 11:48 PM, Kaspar Fischer [EMAIL PROTECTED] wrote: On 21.12.2007, at 19:29, Kaspar Fischer wrote: Hi, My custom component needs to emit in its renderComponent() method several DirectLink with updateComponents information. That is, I need to output the same HTML as a jwcid=@DirectLink listener=listener:doClick updateComponents=result/a generates non-programmatically, but from within renderComponent(). How can I do this? Thanks, Kaspar To give a concrete example: I tried to do it as follows: div jwcid=@Block a jwcid=[EMAIL PROTECTED] listener=listener:showResult updateComponents=result/a /div div jwcid=@ResultElement tree=ognl:mydate/ div jwcid=[EMAIL PROTECTED] div jwcid=@Insert value=ognl:result/div div ... and from the code (ResultElement's renderComponent()) I try to render the link as follows: DirectLink link = (DirectLink)this.getContainer().getComponent (link); String url = link.getLink(cycle).getURL(); writer.begin(a); writer.appendAttribute(href, url); writer.print(title); writer.end(); Unfortunately, this only outputs an ordinary link, not an AJAX link! Any ideas how to output a AJAX link programmatically? Thanks, Kaspar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: components collection release 0.5.0
Fast! On Dec 22, 2007 11:40 AM, Sven Homburg [EMAIL PROTECTED] wrote: Hi there, components collection release 0.5.0 is accessable now (requiers tapestry 5.0.7) at http://code.google.com/p/tapestry5-components/ change log at http://code.google.com/p/tapestry5-components/wiki/ChangeLog - --- best regards Sven -- View this message in context: http://www.nabble.com/components-collection-release-0.5.0-tp14472527p14472527.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] - list paging from database ?
have a look at http://wiki.apache.org/tapestry/Tapestry5HibernateGridDatasource dalahoo wrote: Hi Sven, No, Sorry about my pour English, in tapestry grid component (I am not sure), you most fetch all data to a collection, list or array and then show them with paging, suppose that data list have 1 million item, thats not good idea to fetch 1 million records and hold them in application space. with displaytag ( an open source taglib for grid and paging), its possible to fetch just one pages data and show them in page. in this taglib, you have to choice : 1 - just like tapestry grid component setting a list or array as a data source. (this list has all items that most be shown to user) 2 - you can set list size (number of all items) and current page data as a data source in this case you most select only current page data ? On Dec 22, 2007 11:18 PM, Sven Homburg [EMAIL PROTECTED] wrote: if i understand correctly, you should grid parameter rowsPerPage dalahoo wrote: Hi all, Grid Component related, I have a large size of data in database, i want to retrieve each pages data separately, is it any way to set list size and list data separately in Grid component ? formerly, in struts and jsp i used dispalytag compoent in DisplayTag (a grid component with paging) Component, its possible to set list size and list data separately. this feature allows developers to retrieve just current page data and show it on page, i need something like this in Tapestry 5. any idea -- sincerely yours M. H. Shamsi - --- best regards Sven -- View this message in context: http://www.nabble.com/-T5list-paging-from-database---tp14472521p14472665.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- sincerely yours M. H. Shamsi - --- best regards Sven -- View this message in context: http://www.nabble.com/-T5list-paging-from-database---tp14472521p14474465.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: components collection release 0.5.0
the early bird catch the worm ;-) best regards S.Homburg Howard Lewis Ship schrieb: Fast! On Dec 22, 2007 11:40 AM, Sven Homburg [EMAIL PROTECTED] wrote: Hi there, components collection release 0.5.0 is accessable now (requiers tapestry 5.0.7) at http://code.google.com/p/tapestry5-components/ change log at http://code.google.com/p/tapestry5-components/wiki/ChangeLog - --- best regards Sven -- View this message in context: http://www.nabble.com/components-collection-release-0.5.0-tp14472527p14472527.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T4.0.2,where to find the implement of Interface ServletRequestServicer?
Hi, i am studying the source code of T4.0.2,in the ApplicationServlet.java: -- _requestServicer = (ServletRequestServicer) _registry.getService( tapestry.request.ServletRequestServicer, ServletRequestServicer.class); how can i know where to register this tapestry.request.ServletRequestServicer service, and where is the implement of ServletRequestServicer?thanks a lot!! Oliver Lee 2007-12-23
Re: components collection release 0.5.0
thanks to sven. I build tap5.0.7 core test examples, and deploy at http://mp2.crecg.com/tapestry-core-demo/ Forgive me if these have problems, Howard M. Lewis Ship Korben Zhang Tfan On 12/23/07, Sven Homburg [EMAIL PROTECTED] wrote: the early bird catch the worm ;-) best regards S.Homburg Howard Lewis Ship schrieb: Fast! On Dec 22, 2007 11:40 AM, Sven Homburg [EMAIL PROTECTED] wrote: Hi there, components collection release 0.5.0 is accessable now (requiers tapestry 5.0.7) at http://code.google.com/p/tapestry5-components/ change log at http://code.google.com/p/tapestry5-components/wiki/ChangeLog - --- best regards Sven -- View this message in context: http://www.nabble.com/components-collection-release-0.5.0-tp14472527p14472527.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Korben Zhang Blog: http://korben-zhang.blogspot.com | http://korbenzh.spaces.live.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: components collection release 0.5.0
No problem, except that your code is a bit out of date. Note sure why people would want to see the test app, isn't not a demo ... it's just predictable code for the unit tests to operate against. On Dec 22, 2007 9:29 PM, [EMAIL PROTECTED] wrote: thanks to sven. I build tap5.0.7 core test examples, and deploy at http://mp2.crecg.com/tapestry-core-demo/ Forgive me if these have problems, Howard M. Lewis Ship Korben Zhang Tfan On 12/23/07, Sven Homburg [EMAIL PROTECTED] wrote: the early bird catch the worm ;-) best regards S.Homburg Howard Lewis Ship schrieb: Fast! On Dec 22, 2007 11:40 AM, Sven Homburg [EMAIL PROTECTED] wrote: Hi there, components collection release 0.5.0 is accessable now (requiers tapestry 5.0.7) at http://code.google.com/p/tapestry5-components/ change log at http://code.google.com/p/tapestry5-components/wiki/ChangeLog - --- best regards Sven -- View this message in context: http://www.nabble.com/components-collection-release-0.5.0-tp14472527p14472527.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Korben Zhang Blog: http://korben-zhang.blogspot.com | http://korbenzh.spaces.live.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]