[Seaside] How to add GLORP to a Seaside application?

Roger Whitney whitney at cs.sdsu.edu
Tue Feb 1 17:56:51 CET 2005


You could add a method, safeBeginUnitOfWork to the Glorp session class. 
This method would start a unit of work only if one does not already 
exist.
On Jan 31, 2005, at 5:03 PM, Martin J.Laubach wrote:

>   I'm afraid I painted myself in yet another corner with GLORP and 
> Seaside.
>
>   The problem is that glorp does not support nesting of UnitOfWorks.
> That, together with the highly dynamic behaviour of Seaside 
> applications,
> leads to my losing much hair...
>
>
>   Consider for example a navigation bar with two links, each leading to
> an editing pane for some database object. On each I have something like
>
> 	MyEditingPane>>renderContentOn: html
> 		session beginUnitOfWork.
> 		(self confirm: 'Do you want to save that?')
> 			ifTrue: [ s commitUnitOfWork ]
> 			ifFalse: [ s rollbackUnitOfWork ]
>
>

----
Roger Whitney              Department of Computer Science
whitney at cs.sdsu.edu        San Diego State University
http://www.eli.sdsu.edu/   San Diego, CA 92182-7720
(619) 583-1978
(619) 594-3535 (office)
(619) 594-6746 (fax)



More information about the Seaside mailing list