Re: Hibernate + Spring: LazyInitializationException

2005-05-19 Thread Jacob von Eyben
Yes, thats the point of application-transctions. They span over several user requests, hence typically several minutes. Because of the time it can take to complete an application-transaction you have to call session.disconnect() at the end of every HTTPrequest an reconnect upon a new request.

RE: Hibernate + Spring: LazyInitializationException

2005-05-19 Thread Patrick Casey
Interesting; I may have to do some experimenting then. I confess I just kind of assumed it wouldn't work because the Hibernate session wasn't that robust (few database related objects survive being passed between physical boxes in my experience). Maybe the lads at Hibernate got it right th

RE: Hibernate + Spring: LazyInitializationException

2005-05-19 Thread Schulte Marcus
> -Original Message- > From: Ricardo Cortes [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 19, 2005 4:33 PM > To: Tapestry users > Subject: Re: Hibernate + Spring: LazyInitializationException > > > If you are using JBoss there's a built-in interceptor and a Hibernate > MBean that handl

RE: Tapestry 4.0-alpha-3 problem with Spring

2005-05-19 Thread Krutyakov Roman
At thr, 19/05/2005 в 16:56 +0100, seloha . wrote: > For what it is worth I have found the same problem when trying to obtain > Spring beans which worked in the previous release. > > Similar error: Unable to lookup $Proxy1: $Proxy1 > > This is looking up a Spring DAO which uses hibernate 3. > >

RE: Hibernate + Spring: LazyInitializationException

2005-05-19 Thread Schulte Marcus
> -Original Message- > From: Patrick Casey [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 19, 2005 10:19 PM > To: 'Tapestry users'; [EMAIL PROTECTED] > Subject: RE: Hibernate + Spring: LazyInitializationException > > > > Isn't that pattern going to break down in a clustered > env

Re: Passing data, object between components...

2005-05-19 Thread Frank Misa
One last note Thought this was interesting ? related. hope someone finds usefull.. Component/page resolving extension for Tapestry: http://www.behindthesite.com/blog/C1931765677/E1985935740/index.html http://www.behindthesite.com/blog/C1931765677/E703288900/ -

RE: Dynamic component selection

2005-05-19 Thread Patrick Casey
Something like this should work I think. public void renderPage(IMarkupWriter writer, IRequestCycle cycle) { IComponent comp = null; if (choice == foo) comp = cycle.getPage().getComponent("foo"); else if (choice == bar) comp = cycle.getPa

Dynamic component selection

2005-05-19 Thread Edward Scanzano
Hi all, I have a situtation where I need to include a component into a page, however, which component it is will be selected at runtime in the .java file. How do I do this? Thanks E - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Passing data, object between components...

2005-05-19 Thread Frank Misa
Hi Mark. I'm giving up on the frame/frameset idea for now.. I'm going to use a single page now and use CSS/span/div layout to achieve framelike positioning without the refresh issues. http://webdesign.about.com/cs/css/a/aa110402a.htm Even if Visit is updated in the proper method (i

Re: Reference asset from css [auf Viren geprueft]

2005-05-19 Thread Pablo Ruggia
I can't get what you really want, or the way you want to do it. But i'll try to guess. If you wan't to change or override some css class property you can use the html syle attribute. Perhaps something like this in your template: > peer directory to your "css" directory. > > > Sorry that my que

Re: Reference asset from css [auf Viren geprueft]

2005-05-19 Thread Random Tapestry User
Dave, I see what you're saying. I thought you were specifically referring only to the image issue. What your considering is conditional CSS, which yes, is a bit different. You might consider maybe the simplest approach by having one stylesheet with all the common stuff that is not variable, and c

RE: Reference asset from css [auf Viren geprueft]

2005-05-19 Thread David Leangen
Hi, Random Tapestry User, or tappapp, whichever you prefer... > > It would be nice to be able to dynamically generate CSS. Is > > there a (simple) way this could be done? > Ideally, you probably have an "images" directory that is probably a > peer directory to your "css" directory. Sorry that

Re: Reference asset from css [auf Viren geprueft]

2005-05-19 Thread Random Tapestry User
Ideally, you probably have an "images" directory that is probably a peer directory to your "css" directory. You simply reference the images with "../images/whateverImage.gif" Here's an examply from my .css file : .titleGradient { text-align: top; background: url(../images/title-gradient.gi

RE: Reference asset from css [auf Viren geprueft]

2005-05-19 Thread David Leangen
Actually, I have a similar question... I haven't yet tried, but since this thread is on the same topic, I just thought I'd ask. It would be nice to be able to dynamically generate CSS. Is there a (simple) way this could be done? One complicated way is to have Tapestry generate an XML file and tr

Re: is posible acces visit object in a component?

2005-05-19 Thread andyhot
gee! 3 replies within the same minute - and a late one :) So, anyone keeping a score? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: is posible acces visit object in a component?

2005-05-19 Thread andyhot
ognl:page.visit.userName > Hello > > i creating a simple form component that extends BaseComponent > > > i trying to get put the userName in the component using an insert like this > > > > but this always return and exception > > org.apache.tapestry.BindingException > Unable to resolve expr

Re: is posible acces visit object in a component?

2005-05-19 Thread pepone pepone
Thanks for quick replay ognl:page.visit.userName works OK On 5/20/05, Robert Zeigler <[EMAIL PROTECTED]> wrote: > Use: > ognl:page.visit.userName > > Robert > > pepone pepone wrote: > > Hello > > > > i creating a simple form component that extends BaseComponent > > > > > > i trying to get put

Re: is posible acces visit object in a component?

2005-05-19 Thread Robert Zeigler
Use: ognl:page.visit.userName Robert pepone pepone wrote: > Hello > > i creating a simple form component that extends BaseComponent > > > i trying to get put the userName in the component using an insert like this > > > > but this always return and exception > > org.apache.tapestry.Binding

RE: is posible acces visit object in a component?

2005-05-19 Thread Hensley, Richard
try ognl:page.visit.userName -Original Message- From: pepone pepone [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 4:40 PM To: tapestry-user@jakarta.apache.org Subject: is posible acces visit object in a component? Hello i creating a simple form component that extends BaseCompo

Re: is posible acces visit object in a component?

2005-05-19 Thread cesar saenz
Try using Hope this helps Cheers Cesar On 5/19/05, pepone pepone <[EMAIL PROTECTED]> wrote: > Hello > > i creating a simple form component that extends BaseComponent > > > i trying to get put the userName in the component using an insert like this > > > > but this always return and exceptio

is posible acces visit object in a component?

2005-05-19 Thread pepone pepone
Hello i creating a simple form component that extends BaseComponent i trying to get put the userName in the component using an insert like this but this always return and exception org.apache.tapestry.BindingException Unable to resolve expression 'visit.userName' for [EMAIL PROTECTED]/$logou

RE: Hibernate + Spring: LazyInitializationException

2005-05-19 Thread Andrus Adamchik
> For me, I *really* started to enjoy Hibernate only after I switching to > the long session pattern. Than you could've enjoyed Cayenne from day one, as this is how it works out of the box ;-) Andrus > I never detach the object from the session - so the sequence is like > this (starting with a

RE: Modifying the class in a tag

2005-05-19 Thread Mark Stang
Thanks! -Original Message- From: Hensley, Richard [mailto:[EMAIL PROTECTED] Sent: Thu 5/19/2005 4:20 PM To: Tapestry users Subject: RE: Modifying the class in a tag If you need to do something tricky with the attributes of an html tag, that is what @Any is built for. If you do not use

RE: How to display a Blob object retreived from database

2005-05-19 Thread Hensley, Richard
Patrick, You need to create a service that can output the image. Check out the chart service in Workbench. -Original Message- From: Patrick Yip [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 2:45 PM To: Tapestry users Subject: How to display a Blob object retreived from database

Using FieldLabel with custom components?

2005-05-19 Thread Mark Lehmacher
My problem is as follows: I want to create a component where users can enter amounts in bytes/megabytes/gigabytes. It is twofold and consists of a ValidField for the numeric portion of the amount and a PropertySelection for the unit portion. The component itsself contains validation logic and rec

RE: Modifying the class in a tag

2005-05-19 Thread Hensley, Richard
If you need to do something tricky with the attributes of an html tag, that is what @Any is built for. If you do not use a jwcid on a tag, tapestry ignores the tag other than outputing it. Richard -Original Message- From: Mark Stang [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 20

RE: How to display a Blob object retreived from database

2005-05-19 Thread Patrick Casey
You'll need to create a special servlet to serve the blobs. Then embed a link to that servlet into the HTTP e.g. There's no way to "inline" binary data into an HTTP page. --- Pat > -Original Message- > From: Patrick Yip [mailto:[EMAIL PROTECTED] > Sent:

Modifying the class in a tag

2005-05-19 Thread Mark Stang
Hi, I need to be able to swap out the class of a ul tag. Do I have to use Any or is there a way to take any old tag and parameterize it? thanks, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

How to display a Blob object retreived from database

2005-05-19 Thread Patrick Yip
I can display images correctly using IAsset such as this Html: class: public IAsset getLogoLinkAsset(){ ... logoLink = "/images/sony.gif" ; return (IAsset) new ExternalAsset(logoLink,null); } Question, if have a Blob object retrieved from a database, how do I display the i

RE: Hibernate + Spring: LazyInitializationException

2005-05-19 Thread Schulte Marcus
Yes, exactly, of course, at some point you'll want to throw it away, along with the objects attached to it. After all it's nothing but hibernate's representation of "the bunch of objects you currently work with". > -Original Message- > From: Pablo Ruggia [mailto:[EMAIL PROTECTED] > Sent: T

ListEdit forms with form level validation.

2005-05-19 Thread Erik Husby
I have a multi-record form where I need to do validation between fields. If I have a multi-record form where the validation is simple and can use a number validator with let say, a minimum value, Tapestry will correctly indicate the specific field in the specific record as being in error. How d

Re: cces application properties from the Global object

2005-05-19 Thread pepone pepone
I want to be able of write same properties in .application and read it to configure session and global objects 10.1.1.0 -p 1000 on-rez and then in my session be able to access this properties any ideas of how this can be done thanks in advantage On 5/19/05, pepone pepone <[EMAIL PROTECTED]> w

Re: Global and Visit objects

2005-05-19 Thread Robert Zeigler
The visit object is a POJO. So, you can access the global if you build a way to access the global (I would imagine that in 4.0, you could inject the global object into your visit object). Robert pepone pepone wrote: >Hello list > > can any body say me if it's posible access to Global obje

RE: Hibernate + Spring: LazyInitializationException

2005-05-19 Thread Patrick Casey
Isn't that pattern going to break down in a clustered environment though? I don't believe a Hibernate session will survive being serialized and shipped to another (different) web server if the HTTPsession gets passed around. --- Pat > -Original Message- > From: Jacob von

Re: multiple servlets - visit object needs to know

2005-05-19 Thread Tomas Jucius
I solved it:).. If interesting i did it so: in the servlet class overwrode method createEngine and set some properties to engine... and in engine class overwrode method createVisit and set some properties to visit... On 5/19/05, Tomas Jucius <[EMAIL PROTECTED]> wrote: > In web.xml I defined s

Contrib Tree

2005-05-19 Thread cedric . brajus
Hello, Why the component tree isn't in component reference ? Have you example please ? Thanks BRAJUS Cédric I'm French so my english isn't perfect lol - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Tapestry 4.0-alpha-3 problem with Spring

2005-05-19 Thread seloha .
For what it is worth I have found the same problem when trying to obtain Spring beans which worked in the previous release. Similar error: Unable to lookup $Proxy1: $Proxy1 This is looking up a Spring DAO which uses hibernate 3. Although a simple Spring bean with a property set to a value works f

Re: Hibernate + Spring: LazyInitializationException

2005-05-19 Thread Ricardo Cortes
If you are using JBoss there's a built-in interceptor and a Hibernate MBean that handles the opening and closing of sessions. Just an FYI as I always though implementing the ThreadLocal on your own was a hack. On Thu, 2005-05-19 at 08:22 +0200, Schulte Marcus wrote: > I'm using the long session p

RE: Hibernate + Spring: LazyInitializationException

2005-05-19 Thread Schulte Marcus
I never detach the object from the session - so the sequence is like this (starting with a fresh session): 1. Request: -make new Hibernate session -get all X from Database, -render list of X -disconnect hib-session from DB and store it in http-Sessi

Re: Global and Visit objects

2005-05-19 Thread Pablo Ruggia
The visit object is an object that can extend from any Object subclass or Object itself. So, it has not the Global object inside. But, if you have the visit object, why can't you get the global Object ? You can do the same thing you do to get the visit object and get the global object. In page or e

multiple servlets - visit object needs to know

2005-05-19 Thread Tomas Jucius
In web.xml I defined several servlets... All servlets are using the same visit object.. Problem: How can visit object know for which servlet it is being created? I need to do some special stuff during visit initiliziation for different servlets..

Re: Hibernate + Spring: LazyInitializationException

2005-05-19 Thread Jacob von Eyben
As he descripes it, there is no reattachment needed at all. The session is keept in the HTTPSession throughout the application-transaction, so the next request from the user is just working on the domain objects already associated with the ongoing hibernate session. /Jacob > And what happens if y

Re: Problem with component containing form

2005-05-19 Thread Spencer W. Thomas
I'm still getting the "null" value for my item after changing the direction to "form". It does work with "auto" and required=yes, though. Thanks for the pointer. =S Robert Zeigler wrote: Change the direction of item from "in" to either of "form" or "auto".

Re: Problem with component containing form

2005-05-19 Thread Spencer W. Thomas
Robert Zeigler wrote: I need the explicit getItem() because I create the value of the Item in the Java. And once I've made an explicit getItem(), I must also supply setItem() or Tapestry gets upset. Then you'll want to read up on tapestry properties. Tapestry page instances are pooled, so st

Re: Hibernate + Spring: LazyInitializationException

2005-05-19 Thread Pablo Ruggia
Mmm, so you keep using the same session for more than one request form the same user ? On 5/19/05, Pablo Ruggia <[EMAIL PROTECTED]> wrote: > And what happens if you need to access a Collection in a second > request from user. How it works if you do not reattach the object ? > > On 5/19/05, Schult

Re: Hibernate + Spring: LazyInitializationException

2005-05-19 Thread Pablo Ruggia
And what happens if you need to access a Collection in a second request from user. How it works if you do not reattach the object ? On 5/19/05, Schulte Marcus <[EMAIL PROTECTED]> wrote: > I'm using the long session pattern put forward in HIA by Bauer&King. This > works very well - no LazyInitializ

Re: dynamic forms that are stateless

2005-05-19 Thread Eric Schneider
Robert, Tell me, if all initialization is done in pageBeginRender, then how are the dynamic elements (lists, etc.) initialized in the first place? The object is inflated and passed to the page via an action on another page. For that first render, no initialization is required in pageBeginRend

Re: Dynamic page header

2005-05-19 Thread Hugo Palma
Try dynamic block component. I'm using it for exacly the same purpose. http://www.behindthesite.com/blog/C1931765677/E1630021481/ Cheers Hugo Will wrote: Hi I'm new to Tapestry. I have a border component that looks like this: The problem I have is with the PageHeader c

Global and Visit objects

2005-05-19 Thread pepone pepone
Hello list can any body say me if it's posible access to Global object from the visit object - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Dynamic page header

2005-05-19 Thread Will
Hi I'm new to Tapestry. I have a border component that looks like this: The problem I have is with the PageHeader component because every page 'could' have a different page header (or no header). What I would like is to specify in the .page declaration w

Re: Is it possible in tapestry - assets at runtime?

2005-05-19 Thread Erik Hatcher
On May 19, 2005, at 5:07 AM, Tomas Jucius wrote: I explain situation: Have menu items - component. All items are defined in *.properties file.. In that file I define: page name(tapestry page name), title(title for user), icon (icons that wraps link)... All menu items are components what take asset.

Re: dynamic forms that are stateless

2005-05-19 Thread Eric Schneider
Richard, Do you mean completely stateless relative to the HTTP session? Yeah, unfortunately that is the case. I wish persistent properties was an option, but it isn't. :-\ Make a serializable class that represents the data the user is editing. Create a property of the type the user is edit

Tapestry 4.0-alpha-3 problem with Spring

2005-05-19 Thread Krutyakov Roman
Hello, After upgrading from Tapestry 4.0 alpha-2 to alpha-3 ive found a problem with enhancement. Im using Spring with Acegi in my application and some beans are proxyed (config example is attached). When im trying to access those beans from tapestry by adding "inject" tag in page or component spa

Is it possible in tapestry - assets at runtime?

2005-05-19 Thread Tomas Jucius
I explain situation: Have menu items - component. All items are defined in *.properties file.. In that file I define: page name(tapestry page name), title(title for user), icon (icons that wraps link)... All menu items are components what take asset.. So is there any solution without definin

Re: Reference asset from css [auf Viren geprueft]

2005-05-19 Thread Jonathan O'Connor
Hugo, url references in a css file are always relative to the location of the css file. You may have to create your own asset service, and ../.. your way up to that. Unless you are creating assets on the fly or selecting language specific assets, if you expose your images directory, it'll work

AW: Spindle 3.1.24 released

2005-05-19 Thread Saqib Rasul
Many thanks Geoff! Great work! Regards, Saqib http://galaxy.sagadc.com/ - Web Services in 15 Minutes - > -Ursprüngliche Nachricht- > Von: Geoff Longman [mailto:[EMAIL PROTECTED] > Gesendet: Thursday, 19 May 2005 5:35 AM > An: [EMAIL PROTECTED]; spindle- > [EMAIL PROTECTED] > Cc: Tapest