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.
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
> -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
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.
>
>
> -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
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/
-
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
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]
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
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
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
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
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
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
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]
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
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
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
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
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
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
> 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
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
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
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
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
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:
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:
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
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
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
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
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
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
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
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
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
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
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
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
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..
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
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".
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
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
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
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
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
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]
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
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.
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
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
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
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
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
56 matches
Mail list logo