On 4/9/07, Celia Mou <[EMAIL PROTECTED]> wrote:
Thanks for clarifying this, Howard!
Now actually, i have related questions: My application needs to handle
file uploads, and work with third-party packages to generate graphs
(through generating from the backend either a custom link or javascript
for the html page), and occasionally redirect to non-Tapestry pages or
URLs, maybe manipulate the request, response and session objects when
necessary. I'm not quite confident whether I can achieve these by using
the current unfinished T5.
I'm in crunch mode for two different clients at the moment, which is
why I've been slow to get more T5 code out.
As a side note ... if anyone want to *fund* the development of T5,
that would get it out the door much, much faster.
In terms of T5 status:
Uploads are coming.
Returning a custom URL from a T5 event handler method is either in
place, or coming.
You have full access to the Servlet API objects, or to the generic
Request and Session objects, to allow you to manipulate request and
session attributes. Over time, more of the HttpServletRequest methods
will be re-implemented in the Request wrapper.
The trick is allowing outside servlet code to access the Tapestry
objects (even if stored in the session), in that you can't predict
what the session attribute key is going to be (the name used is
predictable ... but subject to change at any time. It's part of the
Tapestry internals).
Do you think I can actually manage? What are the recommendations?
Any help is greatly appreciated!
celia
Howard Lewis Ship wrote:
> Sorry, it's just the sketch of the final library; I haven't had a
> chance to cycle around and make it useful.
>
> On 4/6/07, Celia Mou <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> Does anyone have a working example of Tapestry 5 and Hibernate
>> integration?
>>
>> According to the limited docs on the Tapestry site, one needs to put the
>> hibernate.cfg.xml file in the src/main/resources directory, and then
>> maybe contribute the entity package to the
>> tapestry.hibernate.HibernateSessionSource. It seems if one has the
>> entities package under the base package, one doesn't even need to
>> contribute.
>>
>> That's what I got. But then, where would you put the mapping files? And
>> what's the typical way to instantiate and destroy Hibernate sessions?
>>
>> Well, in short, I'm a bit lost in this. Any hint will be greatly
>> appreciated. Thanks!
>>
>> celia
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]