On Nov 22, 2007 1:20 PM, Massimo Lusetti <[EMAIL PROTECTED]> wrote:
> On Nov 22, 2007 8:37 AM, lasitha <[EMAIL PROTECTED]> wrote:
>
> > A follow up for anyone keeping score: i've just verified that
> > hibernate does _not_ automatically flush a Session when it is closed.
> > If anyone is intereste
On Nov 22, 2007 9:02 AM, lasitha <[EMAIL PROTECTED]> wrote:
> Hmm, i must've missed where this was documented. The api certainly
> doesn't mention anything about flushing on close, but i was
> uncomfortable assuming this, particularly since earlier versions of
> hibernate _did_ flush on close, if
Hello Yunhua,
Depends on why do you have it :) Most probably you just store the object
you've got from Hibernate in the session and since every object associated
with persistent context (it's actually a JPA term, but it is very well
defined therefore we can use it for Hibernate env. also) has a re
hello, I tried the bot [EMAIL PROTECTED] but for some reason the confirmation reply is not working.Can any admin remove me from User, Dev and Commit Lists? Thanks in advance, []´s
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
I have a problem implementing proper validation of composite components.
Assume I have a component consisting of two text fields. For validation, I
need to consider the contents of both. The way I understand validation, it
works thusly:
1. All fields within a form are asked by the form to pull th
Hi Renat,
Thanks a lot for your explain. However, my question is what' is the
elegant way to prevent
potential LazyInitializationException when Tapestry5 processing form
submitting, since action request and render request are in 2 different
threads now, thus the hibernate Sessions in 2 requests sh
Adam Ayres wrote:
There appears to be a small bug with the Request.isXHR() method, the
value of the "X-Requested-With" header that Prototype sets by default
for all of its AJAX calls is:
"XMLHttpRequest"
Tapestry checks against the value:
"XmlHttpRequest"
The RequestImplTest h
Hi,
I have a BeanEditForm with a property whose presentation I want to
override, because being a class I wrote myself it cannot be rendered by
default.
remove="ID">
encoder="customerList" value="project.customer"/>
"customer" is an instance of the class Or
On Nov 22, 2007 6:27 PM, Yunhua Sang <[EMAIL PROTECTED]> wrote:
> ...
> Steps:
> 1. edit a people' firstname in Page1, It's possible I don't need to
> show address here, so get Addresses() is NOT called,
> 2. I submit the form, modify firstname, save people.
> 3. I render people (already be detach
I havn't tried this, but I think it will work.
If your composite component inherits AbstractField, you could override
processSubmission() method to do your own validation. Actually, this is how
TextField component do the validation.
Cheers,
Jeffrey Ai
Markus Fischer wrote:
>
> I have a proble
Hi:
I would like to build a @DirectLink which made the request in an
asynchronous way but request the client with a javascript confirmation
dialog before the AJAX request. I have tried to make something like:
But it didn't work. Even if I click on "OK" or "Cancel" the AJAX action
takes place.
Hi Lasitha,
good practice to follow, thanks. can you explain more about about this null
check, any example why we have to check? thanks.
lasitha wrote:
>
> On Nov 22, 2007 6:27 PM, Yunhua Sang <[EMAIL PROTECTED]> wrote:
>>
> Since the above events fire on both the original request and the one
I use tapestry-hibernate in my apps,
in one page:
删除
更新
in editpage.java
void onActivate(String id) {
page = (Page) session.createCriteria(Page.class).add(
Restrictions.eq("pageId", id)).uniqueResult();
}
void onSuccess() {
session.saveOrUpdate
13 matches
Mail list logo