Re: Chinese can not display correctly

2008-06-25 Thread dhning
Hi, You should first utilize native2ascii(in jdk/bin) to convert the appname_zh_CN.properties to asc, then it should solve your probelem. I don't know why T5 deal with internationalization differently from T4. In T4, we developer don't have to convert the resource files, we just need input

Re: Required parameters: also not null?

2008-06-25 Thread Kristian Marinkovic
don't forget the BeanEditorForm... object may as well be null Howard Lewis Ship [EMAIL PROTECTED] 25.06.2008 00:06 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Re: Required parameters: also not null? Working on

答复: Chinese can not display correctly

2008-06-25 Thread 滕训华
Yes,chinese display correctly after compile by native tool,thanks very much -邮件原件- 发件人: dhning [mailto:[EMAIL PROTECTED] 发送时间: 2008年6月25日 14:38 收件人: Tapestry users 主题: Re: Chinese can not display correctly Hi, You should first utilize native2ascii(in jdk/bin) to convert the

BeanModel and complex types?

2008-06-25 Thread Udo Abel
Hi, in many situations I have objects containing other objects as fields, resulting from a 1:1 reference in a database. E.g., an employee has a refrence to the subsidiary where he is working. In those cases I want to display the name of the subsidiary in a Grid component. The property can be

Re: BeanModel and complex types?

2008-06-25 Thread Kristian Marinkovic
hi udo, you have to contribute the child property type to the DefaultDataTypeAnaylzer so the BeanModelSource will not ignore it public static void contributeDefaultDataTypeAnalyzer...{ configuration.add(MyType.class,myType); take a look https://issues.apache.org/jira/browse/TAPESTRY-2460

dynamic validation

2008-06-25 Thread Joachim Van der Auwera
I have a page which contains an input component for which the limits should be determined at runtime. Does anybody know how this can be best achieved? I tried something like the following in my template input t:type=TextField t:value=value.CheckedField

T5:class reloading problem with Tomcat 6

2008-06-25 Thread Angelo Chen
Hi, I use tomcat 6 and IDEA IDE, in the IDEA I set the project's exploded directory to: /Users/abc/myapp/ROOT and the above directory is mapped as an entry under $CATALINA_HOME. in the IDEA i did not run or debug, just compile/build, the T5 picks up any changes I made to the template file, but

Re: BeanModel and complex types?

2008-06-25 Thread Udo Abel
Hi Kris, thank you for the quick response! Thats what I was looking for. Udo. Original-Nachricht Datum: Wed, 25 Jun 2008 10:18:33 +0200 Von: Kristian Marinkovic [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: BeanModel and complex types? hi

Re: 答复: Chinese can not display correctly

2008-06-25 Thread Korben Zhang
Is there any ways doesn't need native2ascii? 2008/6/25 滕训华 [EMAIL PROTECTED]: Yes,chinese display correctly after compile by native tool,thanks very much -邮件原件- 发件人: dhning [mailto:[EMAIL PROTECTED] 发送时间: 2008年6月25日 14:38 收件人: Tapestry users 主题: Re: Chinese can not display

Re: What if Page was removed from page names?

2008-06-25 Thread Geoff Callender
Agreed. Don't make it a default. On 25/06/2008, at 12:05 PM, Chris Lewis wrote: I heartily agree with Filip. Even though the page name 'optimization' is documented, I loathe the fact that I can do nothing to stop it. Please, if this is implemented at least allow users the power to say

Re: T5:class reloading problem with Tomcat 6

2008-06-25 Thread Geoff Callender
Does setting reloadable=true in the Context element of context.xml fix it? On 25/06/2008, at 6:58 PM, Angelo Chen wrote: Hi, I use tomcat 6 and IDEA IDE, in the IDEA I set the project's exploded directory to: /Users/abc/myapp/ROOT and the above directory is mapped as an entry under

Re: What if Page was removed from page names?

2008-06-25 Thread Hugo Palma
I also agree. Maybe this could take the form of a configuration property. You could specify a list of optional suffixes for page/component names. When configured, you could either access the page/component by it's complete name or by it's stripped version. Geoff Callender wrote: Agreed.

Re: What if Page was removed from page names?

2008-06-25 Thread Don Ryan
On 25 Jun 2008, at 01:12, Filip S. Adamsen wrote: As long as it's configurable, I'm fine with it. :) Except you lose some of the intrinsic simplicity of convention over configuration when you decide to offer both. Note that, depending on how it's implemented, this change need not break

T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread kranga
I have some questions regarding the decision to render Javascript at the end of the document: 1) What was the rationale/dirver for this? 2a) The upgrade notes say to use RenderSupport. Can anyone provide a short description of how to use RenderSupport to inject a simple javascript function?

T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread kranga
One more addition: When including the flash player in a page, the recommended technique is to put inline javascript that renders the flash player where the javascript appears in the page. The javascript relies on an external javascript file being included. If I do an asset injection of the

Re: T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread kranga
I take that back. Putting the flash player inline javascript in a method will not help since when it is called, the flash player external javascript will still not have been processed. So now I'm forced to statically or conditionally include the flash player javascript in my layout at the top.

Re: T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread Filip S. Adamsen
Actually, you can just put the JavaScript in a .js file and then include it with @IncludeJavaScriptLibrary. Then add a call to RenderSupport#addScript in your page's afterRender handler that does the setup you need. For this and more, check

Re: T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread kranga
Filip, That will not work because 1) the Flash player javascript is called in-line to render the Flash player and 2) within the flash player javascript, I've got some dynamic parameters being added. I can rework (2) to make it a function parameter and put the dynamic nature in the inline

Re: T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread Kristian Marinkovic
reason for adding js libraries at the end of the document: https://issues.apache.org/jira/browse/TAPESTRY-2364 you could write an own Flash component that adds the js libraries into the head section: public class Flash() { beginRender(MarkupWriter writer) { Document d =

Re: dynamic link in actionlink

2008-06-25 Thread Geoff Callender
Alternatively, if you like this kind of syntax context=list:student.id,student.rank then contribute a ListBindingFactory to AppModule as described in http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix . On 25/06/2008, at 7:18 AM, Sven Homburg wrote: read the bottom of

Re: T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread kranga
Kristian, Thanks! That will work just fine. I suspected performance was the driver but was hoping that there was a way of selectively adding some script includes to the top! - Original Message - From: Kristian Marinkovic [EMAIL PROTECTED] To: Tapestry users

Re: T5:class reloading problem with Tomcat 6

2008-06-25 Thread Angelo Chen
hi, i added reloadable=true, it works, but another error comes out: [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: Context values (which are added to the request URL) may not be null or blank. org.apache.tapestry5.runtime.ComponentEventException: any

[t5] form method=get, old school query parameters

2008-06-25 Thread Lutz Hühnken
Hi everybody, what is the way to create a form with method=GET in Tapestry 5? I would like to create a simple form that produces a GET request with query parameters, such as www.example.com/books?author=kingcategory=crime. What is the straight-forward way to do that? Thanks for your help, Lutz

Re: T5:class reloading problem with Tomcat 6

2008-06-25 Thread Angelo Chen
hi, althought reloadable=true works, but i have memory problems now which not there before: Exception in thread Timer-5 java.lang.OutOfMemoryError: PermGen space [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: PermGen space java.lang.OutOfMemoryError:

Re: [t5] form method=get, old school query parameters

2008-06-25 Thread Thiago H. de Paula Figueiredo
Em Wed, 25 Jun 2008 10:23:27 -0300, Lutz Hühnken [EMAIL PROTECTED] escreveu: what is the way to create a form with method=GET in Tapestry 5? I would like to create a simple form that produces a GET request with query parameters, such as www.example.com/books?author=kingcategory=crime. What

Re: Events from select component

2008-06-25 Thread Lutz Hühnken
Hi Brendan, I think the OnEvent mixin from t5components does what you are looking for: http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/mixins/OnEvent.html (I haven't used it myself, though. Let me know if it works as described.) Hth, Lutz On Tue, Jun 24,

Re: [t5] form method=get, old school query parameters

2008-06-25 Thread Kristian Marinkovic
hi lutz, by default the tapestry form will generate method=post. there is no way to change the method... you could add a jira issue to change the form component to accept an additional method parameter. alternativley you could create a mixin that is attached to your form. The mixin could

Re: What if Page was removed from page names?

2008-06-25 Thread Lutz Hühnken
Shouldn't that be up to the developer (or whoever decides on the URLs)? If you don't want the page suffix, why not just name the page Blogger instead of BloggerPage? What if I wanted a url that reads mypage? Would I have to name the page MyPagePage? I'm all for convention over configuration, but

Re: t5: Returning block works in Firefox but not in IE

2008-06-25 Thread 9902468
Better yet: Tapestry could be so smart that it would return null even if the handler returns block if the request is not ajax. if(return_value == block is_not_xhdr){ block = null; } That wouldn't break anything? -99 Lance Java wrote: Could returning null be built in as default

Re: [T5] About core components subclassing and methods with package visibility

2008-06-25 Thread Yunhua Sang
I have same pain with you, Thiago. It's not easy for subclasses to access parameters in parent classes. Delegation works perfectly, but you have to copy all parameters from parent component. Yunhua On Tue, Jun 24, 2008 at 11:05 PM, Thiago H. de Paula Figueiredo [EMAIL PROTECTED] wrote: I've

Re: What if Page was removed from page names?

2008-06-25 Thread Andreas Andreou
I'd really like to suggest an approach similar to the UriTemplate annotation for T4 pages that's included in tacos... See http://fisheye3.atlassian.com/browse/tacos/tacos-4.1/trunk/tacos-annotations/src/java/net/sf/tacos/rest It even supports aliases, so, no worries if you decide to change

Re: T5:class reloading problem with Tomcat 6

2008-06-25 Thread Geoff Callender
Yep, that's normal. It's an age-old JVM/class-loading issue (try googling it). Try running with these java options (or even bigger numbers if you have the memory): -XX:MaxNewSize=96m -XX:MaxPermSize=96m. On 25/06/2008, at 11:31 PM, Angelo Chen wrote: hi, althought reloadable=true

T5 version 5.0.13 Index page suppressing other servlets?

2008-06-25 Thread kranga
I have Index.tml setup in my app root for the home page. I also have a servlet defined that listens to requests to /broker. There is no folder by the name of /broker. I find that Tapestry takes over the /broker request and serves up the home page! Unless there is a /broker folder with some file

Re: Re: What if quot;Pagequot; was removed from page names?

2008-06-25 Thread nille hammer
Hi list, to answer Howard´s question, yes I would like that feature. Exactly as described. At the moment I prefix my page class names with the package name. I am not happy with that. I´d prefer to suffix them with Page. And my opinion to the discussion whether generation of urls should be

empty block in grid - how?

2008-06-25 Thread Udo Abel
Hi, I wanted to define a message as a replacement of the default empty-message in the Grid component, but I could not find any hint on how to define such a block. Casting the parameter to message or literal does not work. Btw., I think the documentations lacks some essential information. E.g.,

Re: empty block in grid - how?

2008-06-25 Thread Thiago H. de Paula Figueiredo
Em Wed, 25 Jun 2008 12:06:03 -0300, Udo Abel [EMAIL PROTECTED] escreveu: Hi, I wanted to define a message as a replacement of the default empty-message in the Grid component, but I could not find any hint on how to define such a block. Casting the parameter to message or literal does

Re: 5.0.13 IE javascript error

2008-06-25 Thread Sven Homburg
here some ugly code sequences hope that helps example javascript class (SelectSwapper.js) var SelectSwapper = Class.create(); SelectSwapper.prototype = { initialize: function(selectComponentId, linkId) { this.selectComponent = selectComponentId; this.linkId = linkId;

Re: t5: Returning block works in Firefox but not in IE

2008-06-25 Thread Lance Java
Yep, that's what I meant 2008/6/25 9902468 [EMAIL PROTECTED]: Better yet: Tapestry could be so smart that it would return null even if the handler returns block if the request is not ajax. if(return_value == block is_not_xhdr){ block = null; } That wouldn't break anything? -99

Re: T5: ActionLink/Zone components inside a loop (solved, better)

2008-06-25 Thread grashopper
Corin Lawson wrote: But it gave me another idea to free my code from getCurrentZoneId method. I am now significantly satisfied with the following solution. It makes for one very lean POJO. But in cases like mine, where the zone comes after the links in the markup (which should be a quite

Igor´s and Renat´s Presentation of Tapestry 5 yesterday evening in Düsseldorf

2008-06-25 Thread nille hammer
Hi all, I wanted to know whether anyone else from this list had the opportunity to be in Düsseldorf yesterday. Igor and Renat did a really good job showing how quickly and easily you get an application running with Tapestry 5. They have been given a hard time by the audience asking loads of

Re: [T5] Grid paging refresh the whole document , can it be done in AJAX-way ?

2008-06-25 Thread nille hammer
Hi CG, the inPlace attribute of the t:grid tag does what you are asking for. For further infos look here: http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Grid.html Cheers nillehammer - original Nachricht Betreff: [T5] Grid paging

AW: What if Page was removed from page names?

2008-06-25 Thread Maximilian Weißböck
+1 for this keep it simple and clear! Max -Ursprüngliche Nachricht- Von: Don Ryan [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Juni 2008 13:08 An: Tapestry users Betreff: Re: What if Page was removed from page names? On 25 Jun 2008, at 01:12, Filip S. Adamsen wrote: As long

Re: What if Page was removed from page names?

2008-06-25 Thread Howard Lewis Ship
I have a slightly clumsy way of accomplishing what I want today, without changing the framework. Instead of creating BlogPage, I create class blog.BlogIndex and blog/BlogIndex.tml. I can then refer to this page as blog/index and it appears as /blog in URLs, which is what I want. On Wed, Jun 25,

New website using T5: www.ingamenow.com

2008-06-25 Thread Daniel Leffel
Guys, I just wanted to pass along a site that we've just launched: www.ingamenow.com. The site is best described as Twitter for sports and sporting events. Users can interact over teams, players and games - most notable, they can receive real-time scores and banter through Gtalk, AOL Instant

Re: Select model issue

2008-06-25 Thread Ulrich Stärk
getValidBaseTypes has to return an Object which implements org.apache.tapestry5.SelectModel. If you want to filter out some enum values that shouldn't be displayed you could extend EnumSelectModel and overwrite the getOptions() method. In your own implementation make a call to the super class'

Re: New website using T5: www.ingamenow.com

2008-06-25 Thread Howard Lewis Ship
I'd love it if you could share some details about it, such as number of pages, number of developers, and size of developer effort. Looks like you are on .12-SNAPSHOT. Plans to upgrade to .13? On Wed, Jun 25, 2008 at 10:31 AM, Daniel Leffel [EMAIL PROTECTED] wrote: Guys, I just wanted to pass

How to have localized translators

2008-06-25 Thread Ulrich Stärk
Hi List, I'd like my users to be able to input data in their respective locale. For example in most european countries you use the ',' to seperate the decimal places from the integer part of a number. For a quick workaround I'm using a patched version of Tapestry wich adds a Locale parameter

Re: Select model issue

2008-06-25 Thread José Paumard
Thank you Ulrich, you put me on the right track to solve the problem. Here is what I did precisely, just for the ones who'd need it. In fact EnumSelectModel is final, so you cant extend it, but it's easy to build one, and T5 does all the work behind, esp. finding the right labels :

Re: What if Page was removed from page names?

2008-06-25 Thread Howard Lewis Ship
Eventually, I want tapestry-hibernate to hook in to thing such that, if you don't define a page named edit/blog (for entity Blog), it provides one for you. Ditto for add/blog, 'view/blog and search/blog. But that's for 5.1 or beyond. On Wed, Jun 25, 2008 at 10:53 AM, Andreas Andreou [EMAIL

Re: New website using T5: www.ingamenow.com

2008-06-25 Thread Howard Lewis Ship
That's cool about your HTML designer; I always picture it as a pair programming deal, with the coder running the app so that the designer can view changes. On Wed, Jun 25, 2008 at 11:03 AM, Daniel Leffel [EMAIL PROTECTED] wrote: Hi Howard, Absolutely happy to share. We're running .12 because

[T5] Return HTTP Error from AJAX Call

2008-06-25 Thread Dave Dombrosky
I would like to return an HTTP error from an AJAX call, so that it will be interpreted as a failed request by my response handlers. Is there any way to bypass Tapestry's ExceptionReport and instead have an Exception bubble up to Tomcat (so that a 500 Error is generated)? -Dave

Re: [T5] Return HTTP Error from AJAX Call

2008-06-25 Thread Thiago H. de Paula Figueiredo
Em Wed, 25 Jun 2008 18:01:53 -0300, Dave Dombrosky [EMAIL PROTECTED] escreveu: I would like to return an HTTP error from an AJAX call, so that it will be interpreted as a failed request by my response handlers. Is there any way to bypass Tapestry's ExceptionReport and instead have an

Re: Igor´s and Renat´s Presentation of Tapestry 5 yesterday evening in Düsseldorf

2008-06-25 Thread Howard Lewis Ship
Looks very nice; I liked the user of Tapestry Green, etc. Looks like you covered some nice stuff. On Wed, Jun 25, 2008 at 1:12 PM, Renat Zubairov [EMAIL PROTECTED] wrote: Thanks Nils! I've just put our slides online and since they were written in English everyone may also have a look inside

Re: [T5] Return HTTP Error from AJAX Call

2008-06-25 Thread Filip S. Adamsen
Maybe this will help, it's a HttpStatusCode class and a ComponentEventResultProcessor that handles it: http://www.mail-archive.com/users@tapestry.apache.org/msg23885.html -Filip On 2008-06-25 23:01, Dave Dombrosky wrote: I would like to return an HTTP error from an AJAX call, so that it will

[T4.1.5] Creating Tapestry links, client-side.

2008-06-25 Thread Jim
Hello, Is there a clean way to dynamically (on the client-side) generate Tapestry Direct/Service/Page links? e.g. if you wanted to generate a link to a Tapestry listener, but you don't know the parameters until after the page is rendered, such as if you're generating links/behavior to

Re: Igor´s and Renat´s Presentation of Tapest ry 5 yesterday evening in Düsseldorf

2008-06-25 Thread Geoff Callender
Just had a look at the slides. Very succinct presentation. Nice work. Geoff On 26/06/2008, at 6:12 AM, Renat Zubairov wrote: Thanks Nils! I've just put our slides online and since they were written in English everyone may also have a look inside :) Indeed, we skipped allot of interesting

Re: [T4.1.5] Creating Tapestry links, client-side.

2008-06-25 Thread Andreas Andreou
It's usual to generate a direct link with a dummy parameter (like {0}) at the server and pass that to the javascript that when needed will replace {0} with the dynamic parameter. For forms, the @Hidden component (check also its encode parameter) is helpful On 6/26/08, Jim [EMAIL PROTECTED]

T5: Hibernate warning

2008-06-25 Thread Angelo Chen
Hi, This is an old problem that I was not able to fix, applications runs, but always get this error [WARN] AnnotationBinder Package not found or wo package-info.java: org.bfe.sample.t5.entities I do have a hibernate.cfg.xml as follow and it works well: hibernate-configuration

how to deploy t5components in existing T5 project?

2008-06-25 Thread Tan [EMAIL PROTECTED]
Hi, May i know how to deploy t5components in existing T5 project? there are not really many documentation to guide how to deploy it in T5 project. Thank you. Regards, CYberTAn

Javassist exception on deploy time

2008-06-25 Thread Martijn Brinkers (List)
Hi, I get this long Javassist exception when I startup Jetty from within eclipse. This only happens when I start Jetty with the Tapestry projects as a dependend project. Any idea? Martijn HTTP ERROR: 500 java.lang.ClassNotFoundException: caught an exception while obtaining a class file for

Re: T5: Hibernate warning

2008-06-25 Thread Daniel Jue
It's just a warning, not an error, you can safely ignore this one. =) On Wed, Jun 25, 2008 at 11:13 PM, Angelo Chen [EMAIL PROTECTED] wrote: Hi, This is an old problem that I was not able to fix, applications runs, but always get this error [WARN] AnnotationBinder Package not found or wo