RE: Memory consumption in T4.1.2 - Hard data

2007-08-29 Thread Marcus.Schulte
But that POM does use snapshots. You shouldn't need the repository http://people.apache.org/repo/m2-snapshot-repository at all. Probably, there are no very significant differences between the latest 4.1.2 snapshot and the release. But nevertheless, for a productive environment, I'd always go with

Re: Memory consumption in T4.1.2 - Hard data

2007-08-29 Thread Peter Stavrinides
Correct me if I am wrong 4.1.2 is not released as yet, and not in the main repository, so how else would I get to it? [EMAIL PROTECTED] wrote: But that POM does use snapshots. You shouldn't need the repository http://people.apache.org/repo/m2-snapshot-repository at all. Probably, there are no

AW: Memory consumption in T4.1.2 - Hard data

2007-08-29 Thread Holger Stolzenberg
T4.1.2 is released and in the main repo: http://mvnrepository.com/artifact/org.apache.tapestry/tapestry-framework My POM: dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-framework/artifactId version4.1.2/version /dependency dependency

Re: AW: Memory consumption in T4.1.2 - Hard data

2007-08-29 Thread Peter Stavrinides
Okay, I will try and build with this version... lets see if it makes a difference. Holger Stolzenberg wrote: T4.1.2 is released and in the main repo: http://mvnrepository.com/artifact/org.apache.tapestry/tapestry-framework My POM: dependency groupIdorg.apache.tapestry/groupId

Re: T4.1.2 / Spring 2.0.6 / Hib3 Lazy loading and PropertySelectionModel stuff

2007-08-29 Thread Jan Vissers
Problem indeed has to do with the 'equality' check that is performed... In there a class check likeif( obj instanceof MyClass ) is done, but obj is a CGLIB enhanced instance, which yields to an unequal class. What is the best solution to solve this? -J. Marcus Schulte wrote: One thing to

Re: [T5] SelectObject component added to the Wiki

2007-08-29 Thread Davor Hrg
thnx, very nice example, I've liked it and modified it to use Tapestry builtin service: PropertyAccess instead of beanutils. If you like I can update the wiki.. Davor Hrg On 8/28/07, Marcelo lotif [EMAIL PROTECTED] wrote: http://wiki.apache.org/tapestry/Tapestry5SelectObject --

T5: Chinese localization

2007-08-29 Thread Angelo Chen
Hi, I'm trying out Chinese localization, I have following: configuration.add(tapestry.supported-locales, en,zh); two files app.properties, app_zh.properites, both file has one entry: layout.home=Home layout.home=主页 everything works in English, but when I switch:

Re: T5: Chinese localization

2007-08-29 Thread Nick Westgate
The question marks suggest the problem is on the Java (server) side. How are you encoding your Chinese characters in the properties files? You must escape them, which is easiest using an Eclipse plugin like: http://propedit.sourceforge.jp/index_en.html Cheers, Nick. Angelo Chen wrote: Hi,

Re: T5: Chinese localization

2007-08-29 Thread Francois Armand
Angelo Chen wrote: Hi, I'm trying out Chinese localization, I have following: [...] Have you tried this http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding ? -- Francois Armand Etudes Développements J2EE LINAGORA SA - http://www.linagora.com Tél.: +33 (0)1 58 18 68 28 ---

Re: [T5] SelectObject component added to the Wiki

2007-08-29 Thread Marcelo lotif
Hi Davor, Can you send it to me? 2007/8/29, Davor Hrg [EMAIL PROTECTED]: thnx, very nice example, I've liked it and modified it to use Tapestry builtin service: PropertyAccess instead of beanutils. If you like I can update the wiki.. Davor Hrg On 8/28/07, Marcelo lotif [EMAIL

Re: T5: Chinese localization

2007-08-29 Thread Angelo Chen
Hi Francois, I tried to modify the code, but requestGlobals.getHTTPServletRequest().setCharacterEncoding(UTF-8); configuration.add(Utf8Filter, utf8Filter); // handle UTF-8 setCharacterEncoding and utf8Filter can not be resolved. However I can put some Chinese in the template(utf8), all got

Re: T5: Chinese localization

2007-08-29 Thread Nick Westgate
As I wrote before, your problem is most likely in your .properies encoding. Please re-read my previous email. Also carefully read the HowTo. T5.0.5 uses UTF-8 by default now, except for form submissions. If you are handling forms you still need to add the buildUtf8Filter() method, and also add

Re: [T5] SelectObject component added to the Wiki

2007-08-29 Thread Marcelo lotif
or update the wiki, whatever... use a built in service looks more appropriate :] 2007/8/29, Marcelo lotif [EMAIL PROTECTED]: Hi Davor, Can you send it to me? 2007/8/29, Davor Hrg [EMAIL PROTECTED]: thnx, very nice example, I've liked it and modified it to use Tapestry builtin

Re: T5: Chinese localization

2007-08-29 Thread Jun Tsai
2007/8/29, Angelo Chen [EMAIL PROTECTED]: Hi Francois, I tried to modify the code, but requestGlobals.getHTTPServletRequest().setCharacterEncoding(UTF-8); configuration.add(Utf8Filter, utf8Filter); // handle UTF-8 setCharacterEncoding and utf8Filter can not be resolved. However I can

Problem: PageBeginRender running twice in portlet

2007-08-29 Thread Yavorskiy Dmitriy
Hi, i have one problem. I use Tapestry 4.0.2 and have written a portlet with some heavy operations(loading data from database and reading preferences from portal server) All this operations are working from this method public void pageBeginRender(PageEvent event) { ... my own heavy

T4.1: Submit and Informal Parameters

2007-08-29 Thread Bastian Voigt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi *, in my application I would like to pass informal CSS class parameters to my submit buttons, so that the buttons look different from the input fields. How can I achieve this? I have tried: input jwcid=@Submit class=button value=message:submit/

Re: T5: Chinese localization

2007-08-29 Thread Angelo Chen
Hi Nick, You are right, the properties file has to be escaped, it works now, thanks. however I have observed some other problem: It always uses the app_zh.properties, even I do: persistentLocaleService.set(Locale.ENGLISH); the only time it will use the app.properties content is, when I delete

RE: T4.1.2 / Spring 2.0.6 / Hib3 Lazy loading and PropertySelectionModel stuff

2007-08-29 Thread Jonathan Barker
I also experienced some grief (4.0.x) with PropertySelectionModel when using Hibernate. The behavior also changed between the PropertySelection component and the Palette component because they use(d) different techniques to find the matching item. A good equality test and the tacos

T4: Problem PageBeginRender running twice in portlet

2007-08-29 Thread Yavorskiy Dmitriy
Hi, i have one problem. I use Tapestry 4.0.2 and have written a portlet with some heavy operations(loading data from database and reading preferences from portal server) All this operations are working from this method public void pageBeginRender(PageEvent event) { ... my own heavy

Re: T4.1.2 / Spring 2.0.6 / Hib3 Lazy loading and PropertySelectionModel stuff

2007-08-29 Thread Kalle Korhonen
Not sure about the best solution, but we use: public static Class checkForCGLIB(Class type) { if (type.getName().contains(CGLIB)) { return type.getSuperclass(); } else return type; } Kalle On 8/29/07, Jan Vissers [EMAIL PROTECTED] wrote: Problem

Re: T5: Chinese localization

2007-08-29 Thread Nick Westgate
I'm not sure without seeing your code. What is top of the list in your browser's preferred languages? (In Firefox, Tools-Options-Advanced-Languages-Choose.) Cheers, Nick. - Original Message - From: Angelo Chen [EMAIL PROTECTED] To: users@tapestry.apache.org Sent: Wednesday, 29

Re: How to use contribute method´s, and how configure one service

2007-08-29 Thread Howard Lewis Ship
It sounds somewhat like you are trying to share a configuration between two or more services. This was legit in HiveMind (the precursor to Tapestry 5 IoC). However, in the vast majority of cases, each service had at most one configuration associated with it (often sharing the same name as the

Customizing ValidationDelegate with writeLabelAttributes

2007-08-29 Thread mraible
I have a @FieldLabel that's written as follows: label class=desc jwcid=@FieldLabel field=component:usernameFieldUsername/label When the usernameField has an error, I want to change the class to desc error or just error. I've created my own ValidationDelegate and tried to overwrite

Re: Validation and CSS with 4.1.3-SNAPSHOT

2007-08-29 Thread mraible
I've got a new (and very strange) issue with client-side validation. When I click on a submit button in a form, I get a blank popup with no messages in it. If I disable JavaScript, the form submits without any validation errors. Any idea why there's a popup when no validation errors exist?

StaleLink issue

2007-08-29 Thread Mark Stang
Hi I am getting this when I click a radio button which changes my UI via conditionals. If I go back and forth multiple times, eventually it breaks. I am using AnySubmits to cause the form to be submitted. I understand that during the submit I made a change that the rewind doesn't like. My

T5 Server Side Scripting for CSS

2007-08-29 Thread Daniel Jue
[Background: I am beginning to abstract/distill my current application into something more general, where the GUI can be customized through an administrative interface without the admins having to touch GUI related code.] There was a post a while back regarding OGNL parsing of assets like CSS.

Tapestry/Javassist reading the wrong class type

2007-08-29 Thread mraible
I have the following contrib:Table that reds a Set of users from the servletContext (they're added to it as they login to maintain a list of active users). table jwcid=[EMAIL PROTECTED]:Table class=table contribTable id=user rowsClass=ognl:beans.rowsClass.next row=ognl:row

Re: Validation and CSS with 4.1.3-SNAPSHOT

2007-08-29 Thread mraible
I discovered (by pure luck) that the following validators binding was causing the problem: component id=countryField type=PropertySelection binding name=model value=countries/ binding name=value value=user.address.country/ binding name=validators

Re: Tapestry/Javassist reading the wrong class type

2007-08-29 Thread mraible
Thanks Kalle - you are correct in that it still works. Thanks, Matt Kalle Korhonen-2 wrote: Matt, it's the OGNL expression compiler. It still works, you just see the exception logged as OGNL switches to interpreted mode, right? I've reported this issue as

Re: Tapestry/Javassist reading the wrong class type

2007-08-29 Thread mraible
I tried downgrading to OGNL 2.6.7 (I'm using Tapestry 4.1.3-SNAPSHOT). Unfortunately, I get the following error after this change: java.lang.NoClassDefFoundError: ognl/enhance/ExpressionAccessor at java.lang.Class.getDeclaredMethods0(Native Method) at

Re: T5:Tiles?

2007-08-29 Thread Josh Canfield
On 8/29/07, Angelo Chen [EMAIL PROTECTED] wrote: Hi Josh, if I use the approach quoted below, I got an error like this from runtime console, and the title was not set: [ERROR] Login Embedded component(s) layout are defined within component class org.sample.t5.pages.Login, but are not

Does Tapestry (4) and Hibernate coexist nicely

2007-08-29 Thread Jan Vissers
When it comes to lazy loading? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Does Tapestry (4) and Hibernate coexist nicely

2007-08-29 Thread Jan Vissers
Thx. I'm using Spring 2.0.6 and the OpenSessionInView Filter (for Hibernate) that comes with it - and have configured that in my web.xml. Doing some thorough testing currently... Yes, although it depends on how you implement it. You need to ensure that the session is closed by HiveMind in a

Re: T5:Tiles?

2007-08-29 Thread Angelo Chen
Hi Josh, This error is interesting, it comes out only once even you have several pages using the approach 2 and it works with the error around. adding t:id=layout' eliminate the error message. probably a minor problem in the error reporting? A.C. Josh Canfield-2 wrote: On 8/29/07, Angelo

Re: T5:Tiles?

2007-08-29 Thread Angelo Chen
Hi Josh, When i tested in the localhost, the speed is fast, so that behavor is not noticeable, but when I put the war file in a slow server in the net, I can notice that in Safari, not in IE and FireFox. I believe I have put those pages/components in the right places. I did not notice reloading

Re: T4: Problem PageBeginRender running twice in portlet

2007-08-29 Thread Nick Westgate
I have no experience with Portlets (or Tapestry 4, really ;-) but PageRenderListener methods being called twice is normal operation for form submits. - first for the form rewind - again for the actual rendering of the page The usual boilerplate code is something like: public void

RE: Does Tapestry (4) and Hibernate coexist nicely

2007-08-29 Thread Jonathan Barker
I've had an application based on Tap 4.0.2, Hibernate 3.1, Spring 1.2.5, Acegi 1.0.0 with complicated inheritance and relationships, and Hibernate interceptors. I haven't touched the code in 10 months and it works like a charm. I ran into issues during development with Class cast exceptions for

Re: AW: Memory consumption in T4.1.2 - Hard data

2007-08-29 Thread Peter Stavrinides
The problem continues... I will file a bug report. Peter Stavrinides wrote: Okay, I will try and build with this version... lets see if it makes a difference. Holger Stolzenberg wrote: T4.1.2 is released and in the main repo:

Re: [T5] SelectObject component added to the Wiki

2007-08-29 Thread 小司
I user it it works well select component's html source is option value=IndexIndex no /option how to rectify it?? if i want to get this style ,how to modify the source select size=1 opiton value=1 IT department/option /select the value and display value is defferent. 2007/8/29, Marcelo