Re: creating components with Tapestry 5

2007-09-23 Thread Marcus Schmidke
Hello Marc, me, I'm another one seeking for good old WebObjects features in the post Apple world ... unfortunately, my company is completely on JSF trip, which I absolutely dislike. But on to your question: is WOComponentContent. That was simple wasn't it? :-) Marcus. 2007/9/23, Marc A. Doni

Re: T5: redirecting page under onActivate

2007-09-19 Thread Marcus Schmidke
Just return null. On 9/19/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi Josh, > > Thanks, it works, a related question, how to redirect the page to the one > calling? sometimes we don't know which one is "calling page", so we can't > use page class/name to redirect, any idea? Thanks. > A.C. >

Antwort: [T5] Tomcat and source path

2007-09-10 Thread Marcus Schmidke
Hello, have a look at http://tapestry.apache.org/tapestry5/tomcat.html. Perhaps it helps. Marcus. Hibowl

Antwort: Re: T5: Hibernate

2007-09-10 Thread Marcus Schmidke
Hi Angelo, yes ... the service you get from tapestry-hibernate is not mainly just reading the config. This is simple, you could do it yourself, this is just an additional benefit. The main service you get is that sessions and transactions are openend, closed and committed (hopefully even rolled

Re: T5: Hibernate

2007-09-10 Thread Marcus Schmidke
Hi, it's jta.jar which comes with Hibernate. In Eclipse, make an additional project containing all jars you have. So you can always search for any class using Ctrl-Shift-T finding the right jar for it an add it to the project. Even better: You can also make a function less class in your project

Re: T5: Hibernate

2007-09-09 Thread Marcus Schmidke
Angelo, here is mine, really basic, but it works: http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";> com.mysql.jdbc.Driver jdbc:mysql://192.168.0.102:33

Re: T5: Hibernate

2007-09-09 Thread Marcus Schmidke
I cannot really tell what the error is, but I am also a beginner and also started with an existing Hibernate configuration the same way as you did, so it will be only a small mistake. One thing I think is important is that Tapestry Hibernate automatically configures all @Entity classes in the "...

Re: T5: Hibernate

2007-09-09 Thread Marcus Schmidke
of proxy which always points to the session which is active in the moment I need it? Marcus. 2007/9/10, Marcus Schmidke <[EMAIL PROTECTED]>: > Ok ..., > > I took a shower which made things much much clearer. > > I think I should build and register a BusinessService (ju

Re: T5: Hibernate

2007-09-09 Thread Marcus Schmidke
good night! Marcus. PS. I'm just thinking about what had happened if I had added a Hibernate Session parameter to contributeValueEncoderSource's parameter list? Perhaps this would have worked either? 2007/9/10, Marcus Schmidke <[EMAIL PROTECTED]>: > Yes ... I've read .

Re: T5: Hibernate

2007-09-09 Thread Marcus Schmidke
Yes ... I've read ... parts of it more than once ... but unfortunately, I do not seem to be clever enough. I want to write a value encoder which maps Hibernate Entities to their IDs and vice versa. I've written - a HibernateValueEncoder - a HibernateValueEncoderFactory - an AppModule containing t

Re: T5: Hibernate

2007-09-09 Thread Marcus Schmidke
I accidentally found this thread and also tried to get Hibernate integration running. Basically, it runs, but I still know too few about Tapestry basics. @Inject works fine for page components, but how can I make it work in other classes? Concretely, how can I inject a hibernate session into my

Re: T5: Two simple questions

2007-09-08 Thread Marcus Schmidke
t;[EMAIL PROTECTED]>: > 1: > > public static void contributeValueEncoderSource( > MappedConfiguration configuration) { >configuration.add(Your.class, new YourValueEncoderFactory()); > } > > 2: > > onSelectedFromX if I recall correctly. > > -Filip > > Marcus

T5: @Parameter writes into the field without using the setter method?

2007-09-08 Thread Marcus Schmidke
Hello, I've written a component which has a parameter field marked as "@Parameter". This works fine, but if I try to do some other work in the setter method for this parameter, I can see that it isn't called. Trying to put @Parameter annotation on the method fails because it's a field annotation.

T5: Two simple questions

2007-09-08 Thread Marcus Schmidke
Hello all, I'm sorry I am really having problems to find the documentation for the simplest things. Please forgive me having another two RTFM questions: 1. How can I register a ValueEncoderFactory application wide so that it is automatically used? In other words, how do I "contribute a org.apache

Re: T5: Troubles editing a list of objects

2007-09-05 Thread Marcus Schmidke
Nick, that was really simple ... and works fine, thank you. But I must admit that I don't understand what I'm doing here (even reading the documentation about loop.volatile did not help me, sorry). What is volatile's default for? I understood so far: Having volatile=default causes serialization

T5: Troubles editing a list of objects

2007-09-05 Thread Marcus Schmidke
Hello all, the following might be an absolute beginner's error, but since I'm an absolute beginner, I probably am allowed to have this kind of problem ... I'm trying to edit a list of values: class Value { String name; String text; boolean used; ... getters ... ... setters ... } class

Anybody's developing "object oriented"?

2007-08-27 Thread Marcus Schmidke
Hello all, I'm in the unlucky situation that I have to give up working with my favourite Web Framework - Apple's WebObjects - in favor to something that is more J2EE-homed and more open source (seems that WO will be this too at some time, but even then - no chance) and more portal-ready. Perhap