Re: T5: layout limitation?

2008-02-29 Thread Olof Næssén
You can always make a header and footer component and reuse them anywhere you like. /Olof On 29/02/2008, Zheng, Xiahong [EMAIL PROTECTED] wrote: How can I have more than one t:body/ in the layout template? My immediate problem is I need to include common header and footer contents in the

Re: lightbox, shadowbox, thickbox example

2008-02-08 Thread Olof Næssén
There is no real secret in getting one of these boxes to work with Tapestry 5. I've used a slightly modified version of lightbox for a pop up in a Tapestry 5 application and it works fine. If I recall correctly lightbox simply listens for clicks from a certain link and loads a page in a pop up

Re: enctype=multipart/form-data cause encoding problem in Chinese!

2007-11-29 Thread Olof Næssén
Might have something to do with this: https://issues.apache.org/jira/browse/TAPESTRY-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel /Olof On 29/11/2007, yuan gogo [EMAIL PROTECTED] wrote: Hi, folks. I'm a Chinese user and using tapestry 5.0.6 + jdk5 I found

[T5] Persistent field strategy and Hibernate

2007-11-27 Thread Olof Næssén
I've stumbled on a problem with implementing a custom persistent field strategy that uses Hibernate. As the the application uses Hibernate I would like to use Hibernate entities as models, but this causes a problem when storing entities in the session as our Hibernate session is created per

Re: [T5] Localization and application message catalog

2007-10-29 Thread Olof Næssén
I'm facing the exact same problem. I have a WEB-INF/AppName.properties properties file that works fine, but as soon as I localise it - for example renaming it to WEB-INF/AppName_sv.properties - it's not found or not used and I end up with missing messages. Is this a bug? I'm using 5.0.6 by the

Re: [T5] Problem with multiple forms in a loop

2007-10-29 Thread Olof Næssén
I'm afraid not. I ended up with enclosing all users in one big form. I thought it wasn't worth solving when the one form approach worked just fine in my case. /Olof On 29/10/2007, Angelo Chen [EMAIL PROTECTED] wrote: Hi Olof, Did you find a solution to this? I have similar need as yours this

[T5] Problem with multiple forms in a loop

2007-09-28 Thread Olof Næssén
I have a problem with using forms in components where the data model is passed to the components via parameter inside a T5 loop component. When a form is submitted the data model seems to be lost. What I'm trying to do is to iterate through a collection of users and construct a form for each user