Re: Table with large data set

2006-07-30 Thread Marcus Matèrn

James,

Does your PagingQueryResult returned by your DAO by any chance wrap a Hibernate
Criteria? Later the Criteria methods setMaxResults(),
setFirstResult(), addOrder() and list()
are invoked from the HibernateTableModel on request?

Or where do you invoke the criteria (or similar) methods?


Marcus Matèrn




On 7/24/06, James Carman [EMAIL PROTECTED] wrote:

Chris,

Well, some of the code uses other classes that are part of the project I'm
on.  I need to refactor it out so that it can stand alone.  I'll try to do
that soon.  Sorry for the delay.

James

 James,

 Any chance you could share that HibernateTableModel code?

 Much Appreciated,

 ~chris

 On 7/19/06, Jonathan Barker [EMAIL PROTECTED] wrote:

 +1 for wiki or SVN

 Jonathan


 -Original Message-
 From: James Carman [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 19, 2006 4:38 PM
 To: 'Tapestry users'
 Subject: RE: Table with large data set

 I have a HibernateTableModel (an IBasicTableModel impl) if you're
 interested.  There's only one issue which I couldn't really overcome
 nicely.
 It has to do with the sorting of the columns.  I didn't want to give up
 the
 ability to easily define my columns in the HTML (using the columns
 attribute
 of the @contrib:Table component), so I put in a little hack.  Basically,
 what you return from your DAO methods is a PagingQueryResult object
 which
 is
 what the HibernateTableModel uses to ask for the data for each page.
 But,
 in each PagingQueryResult you have to register what columns are
 sortable
 and how you sort them.  Anyway, I'll email it to you Chris if you want
 it.
 Or, if there is more interest, I'll package it up nicely and put it in
 my
 SVN repository.


 -Original Message-
 From: Chris Chiappone [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 19, 2006 2:23 PM
 To: Tapestry List
 Subject: Table with large data set

 I was wondering what the best approach would be for creating a
 contrib:Table
 with a large data set.  My dataSet my contain thousands of entry's and
 loading the page using contrib:Table would take forever not to mention
 consume large amounts of memory.  Currently I am getting the data from
 Hibernate.  What have you guys done to load just the data needed for the
 current page then load the next pages data when using tablePages.

 Thanks,

 --
 ~chris



 -
 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]




 --
 ~chris



James Carman, President
Carman Consulting, Inc.


-
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]



Re: failure notice [trying to subscribe]

2006-06-05 Thread Marcus Matèrn

Try this one instead:

[EMAIL PROTECTED]




On 6/5/06, edward pedersson [EMAIL PROTECTED] wrote:

hello tapestry users

I was trying to subscribe to this mailing list but got the failure
below. Did I use the right email or is it just broken at the moment.

Many thanks for your help.


-- Forwarded message --
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: 5 Jun 2006 12:23:58 -
Subject: failure notice
To: [EMAIL PROTECTED]


Hi. This is the qmail-send program at apache.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

[EMAIL PROTECTED]:
Sorry, no mailbox here by that name. (#5.1.1)

--- Below this line is a copy of the message.

Return-Path: [EMAIL PROTECTED]
Received: (qmail 65142 invoked by uid 99); 5 Jun 2006 12:23:58 -
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 05:23:58 -0700
X-ASF-Spam-Status: No, hits=2.8 required=10.0
tests=EMPTY_MESSAGE,MISSING_SUBJECT,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: domain of
[EMAIL PROTECTED] designates 66.249.92.170 as permitted
sender)
Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 05:23:56 -0700
Received: by ug-out-1314.google.com with SMTP id m3so1386616uge
for [EMAIL PROTECTED]; Mon, 05 Jun
2006 05:23:35 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
s=beta; d=googlemail.com;

h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;

b=PPfIsgzK/amHwhgNR7j131Ai3bXBx2KRhjhTjkN7dv3uSfhCp8qqQf/uadivlzhfBTUii6jVO5gwFdgFfOdFAcyI2r6YDVW+am8Zc/UHin3+O6gz8uLtk+x7kULbfiCQNnsKGx8aSlxbtpf++G12NloUUkuLcdQ0J+4jHqLI1BU=
Received: by 10.67.103.7 with SMTP id f7mr3326163ugm;
Mon, 05 Jun 2006 05:23:35 -0700 (PDT)
Received: by 10.66.224.13 with HTTP; Mon, 5 Jun 2006 05:23:35 -0700 (PDT)
Message-ID: [EMAIL PROTECTED]
Date: Mon, 5 Jun 2006 13:23:35 +0100
From: edward [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject:
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
X-Virus-Checked: Checked by ClamAV on apache.org

-
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]



Re: package a hivemind service in a jar? (email service for T4)

2006-05-27 Thread Marcus Matèrn

http://www.actualis.com/tapestry/tapestry-email-0.1.0.zip

There is another thread with subject tapestry email service with
more information.




On 5/27/06, Ted Steen [EMAIL PROTECTED] wrote:

Hi,
I am interested, where can I download it?

2006/5/19, Henri Dupre [EMAIL PROTECTED]:
 I have implemented an email service for tapestry 4. This service enables to
 send by email html and text pages with a very simple interface.
 To render a page, the service creates its own request cycle so it should not
 interfere with the regular page rendering (it could be ideally completly
 threaded).
 I believe some other people here are interested in such a service so I was
 wondering, would it be possible to package it in jar file so that someone
 can just drop it and it would get wired in tapestry?

 My current hivemind section for this service is:

 !-- Email Service --
 service-point id=EmailResponseRenderer interface=
 actualis.web.tapestry.email.EmailResponseRenderer
 Renders the active page to a buffer.
 invoke-factory
 construct class=actualis.web.tapestry.email.EmailResponseRendererImpl
 set-service property=localeManager service-id=
 tapestry.request.RequestLocaleManager/
 set-object property=markupWriterSource
 value=infrastructure:markupWriterSource/
 set-service property=infrastructure service-id=tapestry.Infrastructure
 /
 /construct
 /invoke-factory /service-point

 service-point id=EmailEngine interface=
 actualis.web.tapestry.email.EmailEngine
 invoke-factory
 construct class=actualis.web.tapestry.email.EmailEngineImpl
 set-service property=infrastructure service-id=tapestry.Infrastructure
 /
 set-service property=strategySource service-id=
 tapestry.persist.PropertyPersistenceStrategySource/
 set-service property=absoluteURLBuilder service-id=
 tapestry.request.AbsoluteURLBuilder/
 set-service property=responseRenderer
 service-id=EmailResponseRenderer/
 /construct
 /invoke-factory
 /service-point

 And is there a cvs or svn repository where I could upload it?


 Thanks,

 Henri.




--
/ted

-
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]



Re: Tapernate - Rollback problem

2006-05-24 Thread Marcus Matèrn

The new version of Tapernate seems to solve this problem completely.

Thank you!




On 5/24/06, James Carman [EMAIL PROTECTED] wrote:

Okay.  I'm seeing it now, too.  Unfortunately, the Spring interceptor throws
an exception when the global transaction is marked as rollbackOnly when it's
participating.  I need to figure out what the best way is to handle this.
By the way, I just got Tapernate to rollback the pojos that are changed
during a rolled back transaction.  This is helping me avoid a LOT of
problems!  More to follow...

James

-Original Message-
From: Marcus Matèrn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 7:24 PM
To: Tapestry users
Subject: Re: Tapernate - Rollback problem

Yes, I'm using spring.transaction.TransactionInterceptor on my DAO. I
am doing getTransactionUtils().setRollbackOnly() outside my DAO in the
same way as you are doing in tapernate-example.

Here is a stack trace. I will get back to you with more logging.
http://pastebin.com/734105


in AbstractPlatformTransactionManager.commit(...)  :

if (!shouldCommitOnGlobalRollbackOnly() 
defStatus.isGlobalRollbackOnly()) {
...
processRollback(defStatus);
throw new UnexpectedRollbackException(
Transaction has been rolled back
because it has been marked as
rollback-only);
}



Thanks
Marcus


On 5/24/06, James Carman [EMAIL PROTECTED] wrote:
 I will take a look at it.  Are you using a transaction interceptor?  Can
you
 paste more of your stack trace?  Can you turn up logging so we can see
 exactly what's going on?


 -Original Message-
 From: Marcus Matèrn [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 23, 2006 6:10 PM
 To: Tapestry users
 Subject: Tapernate - Rollback problem

 I'm trying to use setRollBackOnly() in tapernates TransactionUtils
 which results in:

 UnexpectedRollbackException: Transaction has been rolled back because
 it has been marked as rollback-only

 when the commit runs in:


org.springframework.transaction.support.AbstractPlatformTransactionManager.c
 ommit(AbstractPlatformTransactionManager)

 I am getting the same problem when running tapernate-example.
 Does someone (James?) know a solution to my problem?


 Marcus

 -
 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]



-
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]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: New version of Tapernate...

2006-05-24 Thread Marcus Matèrn

One question,

If I retrieve an object from my DAO and change something in that
object without doing a session.update(...), the change will be
persisted (to the DB). Is this the way it should work (not having to
do a manual update) ?

public Product getProduct()
{
Product product;

product = getProductAccess().getProduct(getId());

product.setContent(this text will be written to DB);

return product;
}



Marcus




On 5/24/06, Marcus Matèrn [EMAIL PROTECTED] wrote:

Henri,
http://www.carmanconsulting.com/svn/public/


James, I'm also very greatful. Thanks!



On 5/24/06, Henri Dupre [EMAIL PROTECTED] wrote:
 Hi James,


 On 5/24/06, James Carman [EMAIL PROTECTED] wrote:
 
 
  2.  Taperate now has support for three types of property persistence,
  reattach-merge (used to be called entity), reattach-lock, and
  reattach-update, corresponding to the three different types of reattach
  strategies.  You can choose which one you want to use for your situation
  (reattach-update doesn't support POJO rollback, though since Hibernate
  will
  not give me the previous values for some reason) giving you more
  fine-grained control.
 
  3.  The spring.hibernate3 module now supports an interceptor pipeline.
  So, you can add as many interceptor filters as you wish, which can do
  various actions (logging, auditing, etc.).  The POJO rollback is
  implemented
  as an interceptor filter.
 
  Tapernate will move soon.  I finally got the Maven2 build to work, so now
  I
  just have to upload it and set up some docs for it.  For those of you who
  are currently using Tapernate, you don't have to upgrade, but it's
  strongly
  suggested.


 Again, where is tapernate located? I searched last time on Howard's site
 where he has tapestry-spring and other small projects but I couldn't find
 your project.

 I'd be interested to know more about your different reattach strategies...
 Do you understand in details which one to use when?
 To me lock should always be used unless you have duplicate objects, right?
 And having duplicate objects is not good in hibernate, if I get it right?

 I like the idea of an interceptor pipeline... Would it allow easily to
 monitor performance of DAO methods?

 Thanks,

 Henri.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]