Re: T5 XHTML compliant markup

2007-06-19 Thread Martin Grotzke
On Mon, 2007-06-18 at 20:21 +0200, Martin Grotzke wrote: > Our template uses the following DOCTYPE definition: > > PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > What's wrong with this to get well-formed XML? Or is the doctype corr

T5: Using GridPager

2007-06-19 Thread Joshua Jackson
Dear all, Can anyone give me a hint on how to use GridPager? There is a property called source which is a GridDataSource. With Grid we can use a List object or array for the source. If I have a List object to be placed in GridPager, does this I have to make another class that implements GridDataS

T5 hibernate: Illegal attempt to assoc. collection w/ 2 open sessions.

2007-06-19 Thread Bill Holloway
I have a Person entity (hibernate mapped) that can own multiple "items". I'm using a bean edit form on the variable _item in the following: during setRender, I do _item = new Item(); _item.setOwner(person); In my save method, I have onSubmit () { _dao.saveOrUpdate (_item); } I then get the

Re: T5 application wide message catalog

2007-06-19 Thread petros
The application wide catalog works fine now. I was putting the app.properties file under WEB-INF/classes instead of just WEB-INF. petros wrote: > > I tried both app.properties and App.properties and it still doesn't work > for me. I guess I just have to wait for the final T5.0.5 review release

Re: T5 Block Rendering

2007-06-19 Thread Jeremy F. Kassis
Interesting... Although my initial post was partially in error, the t:parameter solution looks awfully elegant. I'll give it a try! Many thanks howard! :-) Howard Lewis Ship wrote: > > It's a little confusing and although what it does now is correct, I may > fix it. > > > Something > > >

Re: Tap4 Injecting a service into a Validator.

2007-06-19 Thread Miguel Angel Hernández
Hi again, I think its pretty hard to make it work as a normal validator, using prefixes, so I decided to include my custom validator as a normal bean and passing it to the validators string with like this $customValidator. thanks again, Miguel On 6/19/07, Miguel Angel Hernández <[EMAIL PROTEC

Help with handling exceptions while using Hibernate's open-session-in-view pattern in Tapestry

2007-06-19 Thread Michael Sims
Sorry again for the not 100% Tapestry related question, but I got such helpful responses from my last question, and it's clear that there are a lot of people on this list that have already solved these issues that I'm running into (and I'm getting jack from the Hibernate forums ;) )... I've imple

Re: Using Hibernate detached objects in Tapestry (thread-safety question)

2007-06-19 Thread Norman Franke
Either should work, however. On Jun 19, 2007, at 5:32 PM, Michael Sims wrote: carlos f wrote: Unless I am mistaken, which happens all the time, but it appears that the crux of his "thread safety" is, 1) storing detached instances on the client side -- I am assuming that "persists in the cli

Re: Using Hibernate detached objects in Tapestry (thread-safety question)

2007-06-19 Thread Norman Franke
On Jun 19, 2007, at 4:21 PM, carlos f wrote: Norman Franke wrote: My application only uses detached objects that it persists in the client page for change detection (to determine if the record they were editing changed while they were editing, which I flag as an error.) . . . The first

RE: Using Hibernate detached objects in Tapestry (thread-safety question)

2007-06-19 Thread Michael Sims
carlos f wrote: > Unless I am mistaken, which happens all the time, but it appears that the > crux of his "thread safety" is, 1) storing detached instances on the client > side -- I am assuming that "persists in the client page" is a reference to > the ClientPropertyPersistenceStrategy Sorry for m

Re: T5: class workers and method workers

2007-06-19 Thread Robin Ericsson
On 6/19/07, Robin Ericsson <[EMAIL PROTECTED]> wrote: On 6/19/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > They're a bit different in T5, it's now ComponentClassTransformWorker: > > http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/services/ComponentClassTransf

Re: Using Hibernate detached objects in Tapestry (thread-safety question)

2007-06-19 Thread Norman Franke
On Jun 19, 2007, at 12:08 PM, carlos f wrote: Norman Franke wrote: In my case, my DAO has an "assertUnchanged" method that throws an exception if the two objects differ, e.g. my detached object and the one read from the database. In this case, I tell the user that someone else changed their rec

Re: T5 Component library trouble

2007-06-19 Thread Howard Lewis Ship
I think there's a bug there, since t:type="antera/Style" should work (or ). On 6/19/07, Bill Holloway <[EMAIL PROTECTED]> wrote: Thanks, Serge! On 6/19/07, SergeEby <[EMAIL PROTECTED]> wrote: > > Hi, > > Try > and read the Component Elements section in this document: > http://tapestry.apache.o

Tap4 Injecting a service into a Validator.

2007-06-19 Thread Miguel Angel Hernández
Hi all, I need to inject a hivemind service into a custom Validator implementation, I believe this is possible and I'm wondering if anybody has done something like that before, or could give any hints, please. Thanks in advance, Miguel

RE: Using Hibernate detached objects in Tapestry (thread-safety question)

2007-06-19 Thread carlos f
Michael Sims wrote: > > I don't mean to speak for Norman, but the point of this thread has been > that > detached objects are not thread safe, so if you are going to store them in > the > HttpSession, you have to serialize access to it in order to avoid > potentially trying > to re-attach the sa

T5 -IOC and hibernate Module UPDATE

2007-06-19 Thread David Avenante
Ok i'm a stupid guys ... i need to Read The Fucking Documentation before ask question ;) So a simple configuration for hibernate is : public static void contributeHibernateSessionSource(Configuration configuration) { configuration.add("com.my.domain"); } public SessionFactory buil

Re: T5 Component library trouble

2007-06-19 Thread Bill Holloway
Thanks, Serge! On 6/19/07, SergeEby <[EMAIL PROTECTED]> wrote: Hi, Try and read the Component Elements section in this document: http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html /Serge texomaleo wrote: > > In a jar in a separate Eclipse probject I have > > package us

Re: T5 Component library trouble

2007-06-19 Thread SergeEby
Hi, Try and read the Component Elements section in this document: http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html /Serge texomaleo wrote: > > In a jar in a separate Eclipse probject I have > > package us.antera.t5.lib; > import org.apache.tapestry.ioc.Configuration;

T5 -IOC and hibernate Module

2007-06-19 Thread David Avenante
Hi, The Hibernate module configuration seem to be out of date ! The @Contribute annotation seems to be depecated (removed !). I try to configure my IoC container for integrate Hibernate support with session-per-request strategy with the help of module. So i try this approach : public static vo

T5 Component library trouble

2007-06-19 Thread Bill Holloway
In a jar in a separate Eclipse probject I have package us.antera.t5.lib; import org.apache.tapestry.ioc.Configuration; import org.apache.tapestry.services.LibraryMapping; public class LibModule { public static void contributeComponentClassResolver (Configuration configuration) {

Re: T5: class workers and method workers

2007-06-19 Thread Robin Ericsson
On 6/19/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: They're a bit different in T5, it's now ComponentClassTransformWorker: http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/services/ComponentClassTransformWorker.html it's a bit different ... it's all about tran

Re: Using another encoding than UTF-8 in Ajax requests

2007-06-19 Thread Jesse Kuhnert
Sure. If someone files something in jira we can take a look at it. On 6/19/07, Lionel Touati <[EMAIL PROTECTED]> wrote: Hi List, It seems UTF-8 is hard coded in the core.js and form.js. Our application was build using ISO-8859-1 and it is quite an issue to move it to another charset. Is there

Using another encoding than UTF-8 in Ajax requests

2007-06-19 Thread Lionel Touati
Hi List, It seems UTF-8 is hard coded in the core.js and form.js. Our application was build using ISO-8859-1 and it is quite an issue to move it to another charset. Is there a way that this value could match the org.apache.tapestry.output-encoding one ? Thanks for any insight L. --

RE: Using Hibernate detached objects in Tapestry (thread-safety question)

2007-06-19 Thread Michael Sims
carlos f wrote: > Why not rely on Hibernate's version support for detached objects and > versioning? [...] > Why clone the detached object graph? Why not have the DAO reattach > it to > the session and save it -- assuming it passes your version check? I don't mean to speak for Norman, but the poi

RE: Using Hibernate detached objects in Tapestry (thread-safety question)

2007-06-19 Thread Michael Sims
Geoff Callender wrote: > You are right, it's a type of EJB. Your question is all about > plumbing, and what I like about EJB 3 is that it does the plumbing > for you, so only have to think about pages, business services, and > entities. [...] > As you can tell, I am almost as enthusiastic about EJ

Re: Using Hibernate detached objects in Tapestry (thread-safety question)

2007-06-19 Thread carlos f
Sorry, my questions have nothing to do with Tapestry - put a few things you mentioned piqued my interest. Norman Franke wrote: > In my case, my DAO has an > "assertUnchanged" method that throws an exception if the two objects > differ, e.g. my detached object and the one read from the databa

Re: Big problem - Form elements inside custom component

2007-06-19 Thread Tomić Mirko
I'm sorry :( I must say I'm thrilled you answered my question. here is more details about my component: Layout.jwc:

Re: Call for Papers Opens for OS Summit Asia 2007

2007-06-19 Thread Marcus
Hi Howard, I'm preparing a Brazilian Portuguese Tapestry 5 tutorial, based, until now, in your T5 Tutorial and other papers, including my personal experience with Tapestry (T3, T4.x and T5alpha). Can you share your presentation material with me? That certainly will help a lot. Thanks in advance,

RE: [ANN] Tapestry 4 Tutorial, issue 14

2007-06-19 Thread Kolesnikov, Alexander GNI
Thanks, Jesse! It is unlikely that any publisher will publish a book on Tapestry 4.1 (unfortunately), but I was contacted on the subject of creating something like this for Tapestry 5, in the book form, and I will definitely try. Although writing a book will cause some delay in the advancement of

Re: [ANN] Tapestry 4 Tutorial, issue 14

2007-06-19 Thread #Cyrille37#
Kolesnikov, Alexander GNI a écrit : http://www.devshed.com/c/a/Apache/Apache-Tapestry-and-Custom-Components- DateInput/ Have a look. Alexander Thanks a lot Alexander for your work ! It is good for me, it is good for the community, it is good for Tapestry ! Best regards cyrille --

AW: Split mailing list for T5/T4,4.1

2007-06-19 Thread Peter Schröder
i stopped reading the mailing list because of all the topics of T4.1 and T5... it would be a minimal afford for those who want to read all messages of all lists. but it is a time consuming job to find T4 related topics... -Ursprüngliche Nachricht- Von: Igor Drobiazko [mailto:[EMAIL PROT

Re: [ANN] Tapestry 4 Tutorial, issue 14

2007-06-19 Thread Jesse Kuhnert
Thanks a ton! Are we going to see these merged together in some kind of book form some day? I guess as long as devshed doesn't go out of business they will be safe. I can barely keep up maintaining links to your articles. (which is a good problem to have, so thanks :) ) On 6/19/07, Kolesnik

Re: T5 : wiki howto contribute custom propertyeditblock for beaneditform

2007-06-19 Thread Daniel Jue
Thanks Francois! I will try it out soon. I smoothed out the wording just a tiny bit. Thank you for your contribution. On 6/19/07, Francois Armand <[EMAIL PROTECTED]> wrote: Hello guys, I have implemented an example of a custom propertyEditBlock for the bean component, to see how it could wor

RE: T5: Inject/Path and Contexts

2007-06-19 Thread Bruce Petro
Hmm... You specify a full path below - is it hard coded like that? I would assume webapps boils down to where ever you point your jetty starter for a webapp root dir? IE: Does it get this from some set location or does it leave it to jetty start up and configuration to define where "/" is based?

RE: Call for Papers Opens for OS Summit Asia 2007

2007-06-19 Thread Kolesnikov, Alexander GNI
Okay, so I will be thinking in this direction. And of course your materials (as also advice) are highly desirable! -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: 19 June 2007 15:34 To: Tapestry users Subject: Re: Call for Papers Opens for OS Summit Asia 2007

Re: Call for Papers Opens for OS Summit Asia 2007

2007-06-19 Thread Howard Lewis Ship
I'd be thrilled for someone to present on T5 and would be willing to share my presentation materials if that would help. On 6/19/07, Kolesnikov, Alexander GNI <[EMAIL PROTECTED]> wrote: They don't have anything on Tapestry 5 there... I am reading the T5 docs now and I am really thrilled :D

RE: Call for Papers Opens for OS Summit Asia 2007

2007-06-19 Thread Kolesnikov, Alexander GNI
They don't have anything on Tapestry 5 there... I am reading the T5 docs now and I am really thrilled :D. So I've got a crazy idea that I could present some kind of Tapestry 5 tutorial there. Which will make sense only if you won't be presenting something. So let me know when you decide. -Ori

Re: Big problem - Form elements inside custom component

2007-06-19 Thread Howard Lewis Ship
http://www.catb.org/~esr/faqs/smart-questions.html I'm also perplexed that people with questions don't take even a moment to try and see their problem from an outsider's perspective, given that an outsider is needed to help them. This is a reasonable description of what they're trying to do, but

Re: Call for Papers Opens for OS Summit Asia 2007

2007-06-19 Thread Howard Lewis Ship
Not to the best of my knowledge. That's a *real* long flight. On 6/19/07, Kolesnikov, Alexander GNI <[EMAIL PROTECTED]> wrote: Howard, are you going to be there? -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: 18 June 2007 18:30 To: Tapestry development;

[ANN] Tapestry 4 Tutorial, issue 14

2007-06-19 Thread Kolesnikov, Alexander GNI
http://www.devshed.com/c/a/Apache/Apache-Tapestry-and-Custom-Components- DateInput/ Have a look. Alexander -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by e-m

Re: Using Hibernate detached objects in Tapestry (thread-safety question)

2007-06-19 Thread Geoff Callender
Hi Michael, You are right, it's a type of EJB. Your question is all about plumbing, and what I like about EJB 3 is that it does the plumbing for you, so only have to think about pages, business services, and entities. In other words, I suspect you'll find it easier than where you're cur

Re: [T4] Question on TableRows

2007-06-19 Thread Marcos Chicote
Thanks Jesse! I was missing those "+" (concatenation). Also, justo using row.id doesn't work. I had to bind TableRow's row parameter to a page variable to make it work. I added to the page file something like: and then used something like "ognl:'StringValueInHere' + thisLP.id

Re: Big problem - Form elements inside custom component

2007-06-19 Thread Tomić Mirko
I forgot to mention, it is written in Tapestry 4.1. Mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Problem with the DatePicker component in IE6 with the last tapesrty 4.1.2 snapshot

2007-06-19 Thread Matthieu Blanc
Hi, I'm using the tapestry 4.1.2 snapshot and i'm having a weird problem with the DatePicker component. It seems to work just fine in Firefox or IE7, but in IE6, all i got is a big white box with 'false' written inside it. Anybody has any idea how to fix that? Thanks, Matthieu

Big problem - Form elements inside custom component

2007-06-19 Thread Tomić Mirko
I made a component which have some logic inside its template. It gets a list of components inside her and render title, (which it gets from properties file from a key based on nested component's id) and actual component, inside a table. It has a number of columns as parameter. I used it till now w

T5 : wiki howto contribute custom propertyeditblock for beaneditform

2007-06-19 Thread Francois Armand
Hello guys, I have implemented an example of a custom propertyEditBlock for the bean component, to see how it could work. As I think that I'm not the only one in that need, I contribute an how-to to explain what I understand : http://wiki.apache.org/tapestry/Tapestry5HowToCreateAPropertyEditB

T5: change a grid's rowsPerPage property dynamically?

2007-06-19 Thread Martin Dietze
Hi, I am using a Grid component for displaying a larger set of data. On my page I have form which I use to allow the user to set the perferred page size. When the user selects a new setting the form submits and changes the page class'es _rowsPerPage property which is used by the grid in the templ

RE: T5 validation error images displayed withform.clientValidation="false"

2007-06-19 Thread Martin Grotzke
On Tue, 2007-06-19 at 10:53 +0800, ASTI Araza, Ariel D. wrote: > Oops, I misread the post. Please ignore my previous post. The subject was misleading indeed ;) Cheers, Martin > > -Original Message- > From: ASTI Araza, Ariel D. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 19, 2007 10

RE: Call for Papers Opens for OS Summit Asia 2007

2007-06-19 Thread Kolesnikov, Alexander GNI
Howard, are you going to be there? -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: 18 June 2007 18:30 To: Tapestry development; Tapestry users Subject: Call for Papers Opens for OS Summit Asia 2007 Call for Papers Opens for OS Summit Asia 2007 The call for pa