Re: setting japanese locale in a service

2012-04-12 Thread Lance Java
Locale.JAPANESE = "ja" You will need to supply an app_ja.properties. This will also work for Local.JAPAN (ja_JP) Cheers, Lance. On Wednesday, 11 April 2012, angelochen wrote: > i did: > > configuration.add("tapestry.supported-locales", "en,zh,ru,jp"); > > a little confusion is, the doc says 'ja

Re: Issue in re-rendering the zone block

2012-04-12 Thread Lance Java
You will need to set the "encoder" attribute on your so that tapestry can serialize / deserialize the values used to poplulate the form. http://tapestry.apache.org/5.3.1/apidocs/org/apache/tapestry5/corelib/components/Loop.html I'd also try to get rid of your mutable static data (Session) in fav

Re: Contribute custom messages

2012-04-12 Thread Gerold Glaser
Hi Henrik! You can override or decorate the ComponentMessageSourceImpl and enhance it with your requirements. Best regards, Gerold 2012/4/10 Henrik von Schlanbusch > Henrik von Schlanbusch enovate.no> writes: > > > > > Hi > > > > We have made a locale service that extracts messages from the

Re: Problem using ZoneUpdater Mixin and Apache Proxy

2012-04-12 Thread Geoff Callender
Very strange. If it's any encouragement, the JumpStart demo site is served through Apache Proxy, so it is possible. Do you have this: ProxyPreserveHost On ProxyVia On Also, although I doubt it's the problem, add "retry", e.g. ProxyPass / http://localhost:8080/ retry=5 P

Re: hibernate @Embedded

2012-04-12 Thread netdawg
Has this issue been solved, posted into JIRA? Tapestry should be doing, at the presentation level, EXACTLY what Hibernate is doing at the persistence level, taking cues from the @Embedded annotation. There is simply no guesswork involved in this. In other words, If the registration object is

Re: hibernate @Embedded

2012-04-12 Thread Lance Java
It wouldn't be too hard to write a mixin which looks for the annotation and adds to the underlying model.

Re: hibernate @Embedded

2012-04-12 Thread netdawg
JIRA Created: https://issues.apache.org/jira/browse/TAP5-1899 -- View this message in context: http://tapestry.1045711.n5.nabble.com/hibernate-Embedded-tp2435807p5635231.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Issue in re-rendering the zone block

2012-04-12 Thread karthi
Thank you Lance Java it works... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Issue-in-re-rendering-the-zone-block-tp5634811p5635232.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: setting japanese locale in a service

2012-04-12 Thread angelochen
thanks for the reply. what's the difference of Local.JAPAN and Local.JAPANESE. does Local.JApAN work for localhost:8080/jp ? Lance Java wrote > > Locale.JAPANESE = "ja" > You will need to supply an app_ja.properties. > This will also work for Local.JAPAN (ja_JP) > > Cheers, > Lance. > > On We

T5.2.6 mixins example

2012-04-12 Thread resign
Hi, i search an example how to create and use mixins. Unfortunately, i cannot found anything to become smarter. My idea - i write a mixin which set TextField disabled or not depends on logged user. My example code class FieldMixin{ @Inject private ComponentResources resources; private Element e

Re: T5.2.6 mixins example

2012-04-12 Thread Emmanuel DEMEY
The right syntax is : 2012/4/12 resign > Hi, > i search an example how to create and use mixins. > Unfortunately, i cannot found anything to become smarter. > My idea - i write a mixin which set TextField disabled or not depends on > logged user. > > My example code > > class FieldMixin{ > @Inj

Re: T5.2.6 mixins example

2012-04-12 Thread resign
Hi, your' right... but it still doesn't work -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-6-mixins-example-tp5635318p5635342.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: T5.2.6 mixins example

2012-04-12 Thread Emmanuel DEMEY
Does the disabled attribute alread exist in your template. If it is, according to the JavaDoc, the attribute method will not work. Try with the forceAttributes method. Can you also check if your SessionsState-annotated variable is correct, and also the current element. 2012/4/12 resign > Hi, >

Re: Problem using ZoneUpdater Mixin and Apache Proxy

2012-04-12 Thread jellevangompel
Hello Geoff, I added the following to my apache config: ProxyPreserveHost On ProxyVia On This fixed the problem with the ZoneUpdater. Thanks a lot! Regards, Jelle -- View this message in context: http://tapestry.1045711.n5.nabble.com/Problem-using-ZoneUpdater-Mixin-and-Apache-Prox

Re: T5.2.6 mixins example

2012-04-12 Thread resign
following: my textField is in table cell. If i view into generated html, i can see that the - element is "disabled"... and generated HTML looks like .. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-6-mixins-example-tp5635318p5635389.html Sen

Re: T5.2.6 mixins example

2012-04-12 Thread Emmanuel DEMEY
I think, setting the disabled property in the beginRender phase is to early, because the textfield is not rendered yet. So the current element is th . Do it in the afterRender phase. Manu 2012/4/12 resign > following: > > my textField is in table cell. > If i view into generated html, i can se

Re: T5.2.6 mixins example

2012-04-12 Thread resign
exaclty my idea :-) doesn't work too -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-6-mixins-example-tp5635318p5635403.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To u

Re: setting japanese locale in a service

2012-04-12 Thread Lance Java
Saying that your locale is "jp" is not really valid, you either specify your language OR you specify your language/country (eg either "ja" or "ja_JP) but never just the country as some countries speak multiple languages. en_GB and en_US will both default to "en" if a more specific message bundle c

Re: T5.2.6 mixins example

2012-04-12 Thread Emmanuel DEMEY
I have just tested. You should add the @MixinAfter annotation to your Mixin class. 2012/4/12 resign > exaclty my idea :-) > > doesn't work too > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/T5-2-6-mixins-example-tp5635318p5635403.html > Sent from the Tapestry -

Re: T5.2.6 mixins example

2012-04-12 Thread resign
YOU ARE MY HERO !!! -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-6-mixins-example-tp5635318p5635438.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: Which zone got the drop in this drag and drop scenario (multi drop zones)

2012-04-12 Thread François Facon
Hi Chris, Did you try to replace your @OnEvent(value = JQueryEventConstants.DROP) void chris(Object[] context){ String contextString = (String)context[0]; setThedata(contextString + " dropped on ..."); } by @OnEvent(value = JQueryEventConstants.DROP,component="dropzone1") void dropOnZone1(Objec

Live Class and Template Reloading using jetty and Intellij

2012-04-12 Thread klausbayrhammer
Hey, Im having some trouble with the live class reloading using a jetty/intellij setup. I deploy the project as an exploded archive starting the jetty (6.1.x) via intellij's (10.5) jettty integration. Everything starts up just fine and the app is running. When i modify a page or tml, build the pr

Re: Which zone got the drop in this drag and drop scenario (multi drop zones)

2012-04-12 Thread Chris Mylonas
Thanks Francois - that was simple. My syntax was not quite like that and frustration got the better of me. I'm also trying to create 5 of these drop zones, or 20 of them - dynamically - i.e. add a drop zone on the fly. Probably by some custom component stuff down the track - but for a hard code

Re: Server Side Validation with ajax form loop work around

2012-04-12 Thread Geoff Callender
Hi all, I've taken on board all the suggestions and observations here about AjaxFormLoop problems and fixes, and done a complete rewrite of the JumpStart examples. I've put a beta on the demo site. Is every corner case handled now? I sure hope so. See if you can find a hole in it. http

Re: Checkbox not changing its state after click

2012-04-12 Thread Beat Durrer
I have the same issue with a formFragment. The InternetExplorer seems to submit ALL values, regardless of whether the formFragment is active or not. That resulted in a lot of validation errors. I solved the problem by manually validating everything in a validate() method instead of using the annota

Re: Checkbox not changing its state after click

2012-04-12 Thread pradeepchy
Hello Everyone- Good evening. This problem is resolved now. As I expected some other java script in the application was causing the problem. The application was trying to attach a event for every form components (like textfields, checkboxes as per the functionality to track the unsaved changes).

Tapestry 5.3.2 and protected component fields

2012-04-12 Thread Howard Lewis Ship
Hello folks, I just fixed a pretty serious bug: https://issues.apache.org/jira/browse/TAP5-1860 Basically, turns out that protected fields in component classes was not operating correctly for mutable fields (injections did work). This fix is checked in to Subversion; I'll make available an rc-3

Re: Tapestry 5.3.2 and protected component fields

2012-04-12 Thread Howard Lewis Ship
Tapestry 5.3.3-rc-3 is now available from the Apache Staging Repository mavenRepo name: "Apache Staging", url: "https://repository.apache.org/content/groups/staging"; (that's Gradle btw). On Thu, Apr 12, 2012 at 3:25 PM, Howard Lewis Ship wrote: > Hello folks, > > I just fixed a pretty ser

Re: Accessing protected instrumented fields

2012-04-12 Thread Howard Lewis Ship
Turns out its mutable fields that don't work. I was fooled because my tests mistakenly only attempted injected fields. In any case, it is fixed in 5.3.3-rc-3. On Wed, Apr 11, 2012 at 9:20 PM, Steve Eynon wrote: > Hello, > > Directly accessing instrumented fields (@Parameter etc...) from > subcl

Re: Accessing protected instrumented fields

2012-04-12 Thread Steve Eynon
Oh sweet. That is good news, cheers! -- Steve Eynon --- "If at first you don't succeed,    so much for skydiving!" On 13 April 2012 06:47, Howard Lewis Ship wrote: > Turns out its mutable fields that don't work.  I was fooled because my > tests mistakenly only attem

Serving images outisde of war in tapestry

2012-04-12 Thread bhorvat
What is the best approach to keep images (or other static content) outside of war in regards to the tapestry. The reason I ask is because tapestry creates url for the images like given below /assets/1.0/ctx/images/assets/wolf_studio_1333577457955.jpg so how do I map some external folder (place ou

Re: Javadoc not in the maven builds of the tapestry 5.3

2012-04-12 Thread bhorvat
I second this. Is it hard to include that? Or is there a way for us to include it ourselves? regards -- View this message in context: http://tapestry.1045711.n5.nabble.com/Javadoc-not-in-the-maven-builds-of-the-tapestry-5-3-tp4696293p5637306.html Sent from the Tapestry - User mailing list arc

Re: Javadoc not in the maven builds of the tapestry 5.3

2012-04-12 Thread Chris Mylonas
This would be great! +1 On 13/04/2012, at 1:56 PM, bhorvat wrote: > I second this. Is it hard to include that? > Or is there a way for us to include it ourselves? > > regards > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Javadoc-not-in-the-maven-builds-of-

Re: Serving images outisde of war in tapestry

2012-04-12 Thread bhorvat
I have found this New Asset Domains If you wish to create new domains for assets, for example to allow assets to be stored on the file system or in a database, you may define a new AssetFactory and contribute it to the AssetSource service configuration. anyone has any idea or experience in how t