Re: [T5] Usage of Grid component

2007-08-29 Thread Christoph Jaeger
A comma separated list of properties would be great. Then you can hide and sort columns as you like (didn't think about sorting yet). Christoph Thiago H. de Paula Figueiredo wrote: > Em Tue, 28 Aug 2007 19:00:13 -0300, Daniel Jue <[EMAIL PROTECTED]> > escreveu: > >> "Hacking" the beanmodel is de

Re: [T5] SelectObject component added to the Wiki

2007-08-29 Thread 小司
I user it it works well select component's html source is Index no how to rectify it?? if i want to get this style ,how to modify the source IT department the value and display value is defferent. 2007/8/29, Marcelo lotif <[EMAIL PROTECTED]>: > or update the wiki, whatever... use a bui

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: http://mvnrepository.com/artifact/org.apache.tapestry/tapestry-fra

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: 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 pageBegi

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 o

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: 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: Does Tapestry (4) and Hibernate coexist nicely

2007-08-29 Thread Norman W. Franke
Yes, although it depends on how you implement it. You need to ensure that the session is closed by HiveMind in a threaded model, or problems will arise while rendering. I do it thusly: interface="com.myasd.db.dao.ISessionManagerFactory"> class="com.myasd.db.dao.HibernateSessionManagerFacto

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: 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 ar

Re: T5: Chinese localization

2007-08-29 Thread Angelo Chen
Hi Nick, After I changed: from: configuration.add("tapestry.supported-locales", "zh,en"); to: configuration.add("tapestry.supported-locales", "en,zh"); from: persistentLocaleService.set(Locale.ENGLISH); to: persistentLocaleService.set(new Locale("en")); it works now, I don't know what's t

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 java.lang.Class.privateGetDec

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 http://jira.opensympho

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: When I removed the "validators" binding, everything works. Is Dojo's client-side validation incapable of handling elements? Thanks, Matt mraible wrote:

Re: Tapestry/Javassist reading the wrong class type

2007-08-29 Thread Kalle Korhonen
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 http://jira.opensymphony.com/browse/OGNL-115. Vote for the issue and downgrade your OGNL to 2.6.7. I wouldn't get my hopes up that any

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). Even thought "userNames" is a list of User objects in the ServletContext, javassist doesn't seem to recognize that. It seems to cast it to

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. Thi

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 que

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? Thank

Customizing ValidationDelegate with writeLabelAttributes

2007-08-29 Thread mraible
I have a @FieldLabel that's written as follows: Username 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 writeLabelAttributes(), but it doesn't seem to work. Is there something I'm d

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 s

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: Sent: Wednesday, 29 August 2007 10:35 p.m.

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: > > Pro

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 ope

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 BeanProperty

Re: T5: Chinese localization

2007-08-29 Thread Angelo Chen
Hi Jun, yes, the property file is the problem. I have tried your site, it allows me to type chinese there. but I have some new problem now, it uses always app_zh.properties, can not switch to app.zh. A.C. Jun Tsai-2 wrote: > > 2007/8/29, Angelo Chen <[EMAIL PROTECTED]>: >> >> > > I think your

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

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: Result: the class parameter is not present in the htm

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 ope

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. >

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 Tape

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 th

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

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 <[EM

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 --- InterL

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, I'

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: persistentLocaleService

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 > > -- > Atenc

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 b

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: org.apache.tapestry tapestry-framework

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: org.apache.tapestry tapestry-framework 4.1.2 org.apache.tapestry tapestry-annotations 4.1.2 org.apache.tapestry

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 v

Re: T5:Tiles?

2007-08-29 Thread Angelo Chen
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 present in the component template. What I'm doing wrong her