Antwort: Eating the dog food: experiences with T5 so far

2008-05-29 Thread Christian Koeberl
Hi Dan! * We have an internal t5-based library (or 3 actually) that aids in building CMS and other administrative applications. One library provides super-slick Lucene integration for Hibernate entities. We're just looking through Lucene to use it in our T5/Hibernate apps. We're just

Re: How to Localize persistent Objects

2008-05-28 Thread Christian Koeberl
There are two good practices to do database i18n: http://www.theserverside.com/tt/blogs/showblog.tss?id=HibernateInternational http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/i18n/i18n5.html We do quite the same with just one table for all texts. Cheers, Chris

Antwort: Re: T5 Activation/Passivation - strangeness

2008-04-28 Thread Christian Koeberl
Jan Vissers [EMAIL PROTECTED] wrote: Our layout component has: link rel=shortcut icon href=favicon.ico/ If you have this in your code the browser will request /yourpage/favicon.ico or mypackage/mypage/favicon.ico. Tapestry treats favicon.ico as an activation context. I think you have a

Antwort: Re: How to 'bypass' client side validation - when 'Cancel' is pressed.

2008-04-18 Thread Christian Koeberl
However when I come back to the form - the respective fields are (still) marked as erroneous. Any way around that? This is related to this issue: https://issues.apache.org/jira/browse/TAPESTRY-2354 I think this is fixed in the trunk - or at least you can specify the persistence scope of the

Re: Accessing a containing component parameter from within a 'child' component

2008-04-14 Thread Christian Koeberl
inherit: binding - however this doesn't work for me. That should work. With the inherit keyword you can forward parameters to sub-components, like this example of a zebra Grid component: public class MyGrid { @Parameter(required = true) private GridDataSource source;

Re: [FAQ] common design

2008-03-10 Thread Christian Koeberl
Robert Zeigler wrote: the code works: Nope, it doesn't. Now, it's getting interesting! This is what I get, when I try your code: html head link type=text/css rel=stylesheet href=/assets/tapestry/default.css /link titleIf t:container replaces $content$, this shouldn't render/title /head body

Re: [FAQ] common design

2008-03-05 Thread Christian Koeberl
will render the html tags (outside the t:container) every time the component is used (in another component, in my case). I just tried this out with 5.0.10 - with my test it doesn't render the html tags. I checked in jumpstart 3.3.3 as well, and it has the same problem (see

Re: T5: Grid's rowClass

2008-03-03 Thread Christian Koeberl
You can override and extend Grid like this: package com.poi.egh.turntable.ui.components; /** * Grid component to be used in ProjectX. * * Provides the following extensions to the Tapestry TurntableGrid: * ul * liclass=odd for all odd rows/li * /ul * * @author Christian Kouml;berl */

Re: [FAQ] common design

2008-02-29 Thread Christian Koeberl
Jesper Zedlitz [EMAIL PROTECTED] wrote This is the T4 feature: http://tapestry.apache.org/tapestry4/UsersGuide/template.html#template.directives.content Is something like this possible with T5? The replacement of $content$ is the t:container construct (see

Abwesenheit/Out of office

2007-09-26 Thread Christian Koeberl
Ich werde ab 26.09.2007 nicht im Büro sein. Ich kehre zurück am 27.09.2007. Bitte kontaktieren Sie in dringenden Fällen das Porsche Informatik Customer Care Center: http://www.porsche-informatik.at/sup_kontakt.htm oder per Web: http://support.porscheinformatik.at/ Grüße, Christian Köberl

Abwesenheit/Out of office

2007-09-23 Thread Christian Koeberl
Ich werde ab 23.09.2007 nicht im Büro sein. Ich kehre zurück am 26.09.2007. Bitte kontaktieren Sie in dringenden Fällen das Porsche Informatik Customer Care Center: http://www.porsche-informatik.at/sup_kontakt.htm oder per Web: http://support.porscheinformatik.at/ Grüße, Christian Köberl

Re: T5: UploadedFile componet is not compatible with UTF-8

2007-09-18 Thread Christian Koeberl
After packaging new package, but occur NullPointer Exception: because request.getCharacterEncoding() == null You also have to add the UTF-8 filter described in http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding -- Chris

Antwort: T5: UploadedFile componet is not compatible with UTF-8

2007-09-17 Thread Christian Koeberl
Is this a bug of UploadFile or I should change the code? This is a bug, see: https://issues.apache.org/jira/browse/TAPESTRY-1723 You can checkout the code, apply the patch and build your own tapestry-upload.jar -- Chris

Re: [5.0.6-SNAPSHOT] Bug? isTraceEnabled missing when I switch to slf4j

2007-09-12 Thread Christian Koeberl
followup. Strange thing is - looking at the actuall log4j.Logger - it has an isTraceEnabled, so I'm really unclear as to why this would happen. The problem is the log4j lib in the Jetty ext directory - replace it with the newer log4j (1.2.12 or higher) version. -- Chris

[T5] Validator JavaScript problem with clientValidation=false

2007-09-07 Thread Christian Koeberl
Hello! Has anybody ever tried to set clientValidation=false in a form with validators? The T5 validators still generate the validation JavaScript but the form does not inlude the required JS-libs. This leads to an JS error on the client side. This script is generated with

Re: T5: using DOJO?

2007-09-04 Thread Christian Koeberl
Hello T5 developers! As everybody likes to have a different JavaScript Framework for Ajax use, it's probably the best to make that flexible as Kristian suggested in: https://issues.apache.org/jira/browse/TAPESTRY-1650 I think of something like tapestry-upload - you can use it or you can build

Re: Re: [T5]Encoding Problem while submiting form with a Upload component.

2007-08-28 Thread Christian Koeberl
Not everyone is using tapestry-upload and not everyone is using fancy file names and tapestry-upload module is the younger in T5 space so... anyway you´re is indeed a good catch so propably will be evaluated. It's not the file name. The problem is: as soon as you add a upload component to a

Re: [T5]Encoding Problem while submiting form with a Upload component.

2007-08-28 Thread Christian Koeberl
I have a form with a 'textfield' and a 'upload' field . The Chinese words I input in textfield will be irrecognizable when I submit the form . I wondered, why nobody found this bug before. Anyway, I filed the bug yesterday and provided a fix.

Antwort: T5: trying out tutorial hi/lo game, but...

2007-08-22 Thread Christian Koeberl
Angelo Chen [EMAIL PROTECTED] wrote: Hi, I'm learning by trying out the hi/lo game, everytime I clicked one of the number links, the onActionFromLink was not called, here is the template: It should be onActionFromGuess because the link's id is guess. -- Chris

Re: T5 Type to ValueEncoderFactory

2007-08-14 Thread Christian Koeberl
Tapestry just supports a ValueEncoder for String and Enum. If you want additional encoders you have to implement them yourself: class LongValueEncoder implements ValueEncoderLong { public String toClient(Long value) { return value == null ? : value.toString();

Antwort: Re: [T5] Why is default ValidationTracker in Form marked Persist not Persist(flash)

2007-08-04 Thread Christian Koeberl
By making it @Persist (i.e. with default), then the container (i.e., your page) can set a @Meta to control the default persistence of componentsbelow it. Thus, if you want the default to be "flash", you're in luck.So, you think every page in every T5 app in the world should override the default

Antwort: Re: [T5] Why is default ValidationTracker in Form marked Persist not Persist(flash)

2007-08-04 Thread Christian Koeberl
Couldyougiveusanexampleofhowtoaccomplishthis?What we did is to extend the Form component with a flash-persist defaultTracker. We're using our Form component everywhere:public class Form extends org.apache.tapestry.corelib.components.Form{ @Persist("flash") private ValidationTracker

[T5] Why is default ValidationTracker in Form marked Persist not Persist(flash)

2007-08-03 Thread Christian Koeberl
Hi! I was wondering why the _defaultTracker in the Form component is marked as @Persist not as @Persist(flash). In my opinion it should be @Persist(flash)!! Persisting the ValidationTracker in the session leads to some (usually) not wanted behaviour: the validation is not reset, even though a