Re: img tag (src)

2009-03-10 Thread Luther Baker
So I've embedded an img tag as follows: The url "image/Get/1" invokes page "image/Get" with an activation context of "1". The *.java onActivate handler loads the image from Hibernate. The corresponding *.tml page only has one component on it of which takes a @Parameter of type Image ... which the

Re: T5ï¼s getting new Hibernate session in a lengthy thread

2009-03-10 Thread DH
Hi, Yes, I think so. HibernateSessionSource is top of HibernateSessionManager. DH - Original Message - From: "Angelo Chen" To: Sent: Wednesday, March 11, 2009 2:08 PM Subject: Re: T5ï¼s getting new Hibernate session in a lengthy thread Hi, HibernateSessionManagerImpl uses Hibern

Re: T5ï¼s getting new Hiberna te session in a lengthy thread

2009-03-10 Thread Angelo Chen
Hi, HibernateSessionManagerImpl uses HibernateSessionSource to create a session, if we use HibernateSessionSource service in code as suggested by you, then seems ok, right? dh ning wrote: > > Sorry, my fault. If code don't call any method of HibernateSessionManager, > it won't create a sessio

Re: T5ï¼s getting new Hibernate session in a lengthy thread

2009-03-10 Thread DH
Sorry, my fault. If code don't call any method of HibernateSessionManager, it won't create a session. Thanks, DH - Original Message - From: "Angelo Chen" To: Sent: Wednesday, March 11, 2009 1:55 PM Subject: Re: T5ï¼s getting new Hibernate session in a lengthy thread that will be a

Re: T5ï¼s getting new Hiberna te session in a lengthy thread

2009-03-10 Thread Angelo Chen
that will be a thread trigger by Quartz, create the session, close the session repeat this until thread is over, i don't know any impact from Tapestry-Hibernate. dh ning wrote: > > I haven't tried it yet because now my application is out of > tapestry-hibernate. > But from source code of tapest

Re: T5ï¼s getting new Hibernate session in a lengthy thread

2009-03-10 Thread DH
I haven't tried it yet because now my application is out of tapestry-hibernate. But from source code of tapestry-hibernate, it should be doable. But I still doubt how you close the session created by HibernateSessionManager (thread scope). If you don't close it manually, the session still last f

Re: T5ï¼s getting new Hiberna te session in a lengthy thread

2009-03-10 Thread Angelo Chen
Hi DH, That sounds doable, we will inject the HibernateSessionSource then call create() to obtain the session? Angelo dh ning wrote: > > Maybe you can directly use HibernateSessionSource service instead of > HibernateSessionManager. > HibernateSessionSource.create() creates a new session alwa

Re: T5ï¼s getting new Hibernate session in a lengthy t hread

2009-03-10 Thread DH
Maybe you can directly use HibernateSessionSource service instead of HibernateSessionManager. HibernateSessionSource.create() creates a new session always, and do remember to commit and close the session by yourself. Thanks, DH - Original Message - From: "Angelo Chen" To: Sent: Wedn

T5: getting new Hibernate session in a lengthy thread

2009-03-10 Thread Angelo Chen
Hi, I need to run a lengthy thread where some database update happens, is there a way to minimize the time when a Hibernate Session is used? something similar to: do while not done // do some processing here obtain a session use the session release the session e

Re: Random Exceptions continued....

2009-03-10 Thread Andreas Andreou
Probably Object valueObject = getDataSqueezer().unsqueeze(submittedValue); returns null That hidden value that you mention (If_16_0), is it always with no value? or just only when the exception is thrown? BTW, you can give names to your If components so that's it's easier to track which is which

Re: T5: how to add tuckey url rewrite filter to Tapestry Context

2009-03-10 Thread Andreas Andreou
just a guess - try zoeken On Tue, Mar 10, 2009 at 11:08 PM, Britske wrote: > > I saw a recent post about setting up Tuckey url-rewrite filter to set up some > url rewriting in conjuction with Tapestry so decided to try it out. > > All works fine when using 'redirects': > >       /test >        /

Re: img tag (src)

2009-03-10 Thread Thiago H. de Paula Figueiredo
Em Tue, 10 Mar 2009 16:57:11 -0300, Luther Baker escreveu: Am I'm looking for a render method that returns an Object - and stops the rest of the lifecycle? I would try to create a component instead. It is a more reusable solution. -- Thiago H. de Paula Figueiredo Independent Java consultan

Re: 5.1 Parameter namespacePrefix was null

2009-03-10 Thread Andy Pahne
Nice catch. In deed my application is using woodstox, too. But I did not change anything about my dependencies. Andy Joachim Van der Auwera schrieb: I seem to have found the cause of the problem. This application is also using CXF, and this brought with it an older version of the woodsto

T5: how to add tuckey url rewrite filter to Tapestry Context

2009-03-10 Thread Britske
I saw a recent post about setting up Tuckey url-rewrite filter to set up some url rewriting in conjuction with Tapestry so decided to try it out. All works fine when using 'redirects': /test /zoeken However the real power (in my opinion) comes with forwarding url's so that

problem with "Secure" configuration

2009-03-10 Thread Joachim Van der Auwera
I am upgrading to from 5.0.18 to 5.1.0.0 and have a problem with secure pages. My application is configured to run entirely on https. This was done by adding the following in my application module: public static void contributeMetaDataLocator( MappedConfiguration configuration ) {

Re: 5.1 Parameter namespacePrefix was null

2009-03-10 Thread Joachim Van der Auwera
I seem to have found the cause of the problem. This application is also using CXF, and this brought with it an older version of the woodstoc library. Replacing that with tapestry's preferred version seems to have fixed it. Thanks, Joachim Joachim Van der Auwera wrote: Thanks for the help. I

Random Exceptions continued....

2009-03-10 Thread Tony Giaccone
it was mentioned to me that I hadn't mentioned in my earlier post that this was a Tapestry 4.1.5 problem. Also further diagnosis shows that there seems to be a problem with the @IF component. Here's the code the If is bound to: public boolean getDocHasFundCites() { boolean retVal

Re: img tag (src)

2009-03-10 Thread Christine
Hi, may I suggest that the tutorial on tapestry.apache.org ("tutorial1") be updated? The "mvn create" command doesn't work for me as it is now, maven suggested I use "generate", but then you need some additional info to make it work properly. This would make life easier for newbies - like me. Maybe

Re: @Meta("tapestry.persistence-strategy=client")

2009-03-10 Thread Borut Bolčina
Hi, back to this... Following your suggestion, this is the dump: at bb.test.session.MyHttpSessionListener.sessionCreated(MyHttpSessionListener.java:15) at org.mortbay.jetty.servlet.AbstractSessionManager.addSession(AbstractSessionManager.java:574) at org.mortbay.jetty.servlet.Abstrac

img tag (src)

2009-03-10 Thread Luther Baker
If I am storing an image in the database - and would like to display it in response to I've implemented the following examples: http://wiki.apache.org/tapestry/Tapestry5HowToStreamAnExistingBinaryFile http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF and I've got that work fin

Re: [5.1.0.0] Exception sorting a Grid with AJAX

2009-03-10 Thread Howard Lewis Ship
I'd love to know how to reproduce this! On Tue, Mar 10, 2009 at 6:28 AM, Thiago H. de Paula Figueiredo wrote: > Hi! > > Trying 5.1.0.0, I've had a new exception (i.e. I couldn't find it on > JIRA or in this mailing list) when clicking a sorting link in a Grid > with inplace="true". I've tried wit

Re: about T5 javascript

2009-03-10 Thread Fernando Padilla
https://issues.apache.org/jira/browse/TAP5-569 here, this bug has more js that you should include. Then you can just use: Tapestry.activateZone( "vMessage", validLink ); On 3/10/09 8:03 AM, Michael Williamson wrote: I'm having problems creating a ZoneManager. Here are is my code. Component

Ranndom Exceptions

2009-03-10 Thread Tony Giaccone
Our application is deployed, and works most of the time flawlessly. However, occasionally we throw exceptions. Usually I get the error Message, “Unable to convert back into an object in If Component” I’m really at a loss to understand how to diagnose and fix this problem. The page displays data fr

Re: [5.1.0.1]How to use multiple zone refresh

2009-03-10 Thread Howard Lewis Ship
Did this documentation: http://tapestry.formos.com/nightly/tapestry5/guide/ajax.html help? On Tue, Mar 10, 2009 at 8:54 AM, Yannick Martel wrote: > Hi! > > I want to refresh two or more blocks in my UI. With the current stable > version, I have seen it is not possible, but it is fixed on 5.1.0.

[5.1.0.1]How to use multiple zone refresh

2009-03-10 Thread Yannick Martel
Hi! I want to refresh two or more blocks in my UI. With the current stable version, I have seen it is not possible, but it is fixed on 5.1.0.1 version [1]. In the issue ticket, there is a little example, but I don't understand exactly how does it work in practical terms (with a tml). Can somebod

T5: Tabset and expired Sessions

2009-03-10 Thread olip
Hi everyone, Is there a way to deal with expired sessions when you click on a tab from the component Tabset and it has already expired? It throws me some Rendering phase errors because all of the server-side data is lost. I am using the new tabset class from chenillekit. I tried the tips from th

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Andy Pahne
Anyway you are right: exposing the full path in the html source is certainly not a good idea. Peter Kanze schrieb: Hi Andy, Thanks for adding this to Jira. See below my code what I have produced so far. The problem is that I now see the complete filepath in my html source () I don't want th

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Andy Pahne
I don't know much about the details how you contribute your FilesystemAssetFactory. Never had time to take a briefer look at tapestry-ioc. Please note: in the previous example the AssetFactory is injected like this: @Inject @ClasspathProvider private AssetFactory assetFactory; The @Classp

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Peter Kanze
Hi Andy, Thanks for adding this to Jira. See below my code what I have produced so far. The problem is that I now see the complete filepath in my html source () I don't want the complete file url in my html source. How can I fix this. And how do I map the html url to the file url? The last problem

t5: lengthy process and hibernate connection with c3p0

2009-03-10 Thread Angelo Chen
Hi, In my T5 app, I start a quartz job where I do following: 1) obtain info from database 2) do some lengthy thing here 3) update the database 4) if not end go back to 2 5) commit This trigger some exceptions from Hibernate, it complains that a connection is not valid as it might have been clos

Re: about T5 javascript

2009-03-10 Thread Michael Williamson
I'm having problems creating a ZoneManager. Here are is my code. Component tml http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> ${message} Check container java package roa.components; import org.apache.tapestry5.ComponentResources; import org.apach

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Andy Pahne
The proposed solution in the issue is a bit different. Both is possible, I hope the developers pick up the issue and choose a nice solution. Andy Andy Pahne schrieb: https://issues.apache.org/jira/browse/TAP5-567 Thiago H. de Paula Figueiredo schrieb: On Tue, Mar 10, 2009 at 11:28 AM,

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Andy Pahne
https://issues.apache.org/jira/browse/TAP5-567 Thiago H. de Paula Figueiredo schrieb: On Tue, Mar 10, 2009 at 11:28 AM, Andy Pahne wrote: There is a ClasspathAssetFactory and a ContextAssetFactory. A useful addition to the framework would be a FilesystemAssetFactory. I am going to fill

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Thiago H. de Paula Figueiredo
On Tue, Mar 10, 2009 at 11:28 AM, Andy Pahne wrote: > There is a ClasspathAssetFactory and a ContextAssetFactory. A useful > addition to the framework would be a FilesystemAssetFactory. I am going to > fill an JIRA issue about it. +1 to that. I guess we only have to decide if only one root direct

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Andy Pahne
There is a ClasspathAssetFactory and a ContextAssetFactory. A useful addition to the framework would be a FilesystemAssetFactory. I am going to fill an JIRA issue about it. The way I did it for classpath resources was very simple, see below. Only the first two lines of renderIcon() are rele

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Peter Kanze
The documentation (http://tapestry.apache.org/tapestry5/guide/assets.html) tells me to define a new AssetFactory and contribute it to the AssetSource service configuration. Yes okay, but how do I implement an AssetFactory? Is there any documentation? What do I need to do with public Resource getRo

Re: 5.1 Parameter namespacePrefix was null

2009-03-10 Thread Joachim Van der Auwera
Thanks for the help. I have seen a note in jira, but that wasn't very helpful either. What makes it strange is that I don't have the "http://www.w3.org/1999/xhtml"; anywhere in my project, or in my components. I am using chenillekit, but that only seems to contain such a namespace in a componen

[5.1.0.0] Exception sorting a Grid with AJAX

2009-03-10 Thread Thiago H. de Paula Figueiredo
Hi! Trying 5.1.0.0, I've had a new exception (i.e. I couldn't find it on JIRA or in this mailing list) when clicking a sorting link in a Grid with inplace="true". I've tried with and without xmlns="http://www.w3.org/1999/xhtml"; in the html tag. It also happens when I submit a form with AJAX. The

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Peter Kanze
Oke thank you. But how do I map between the web http:// and the file D:/ urls? Can you give me some (pseudo) code examples how to do this? Thanks! Peter On Tue, Mar 10, 2009 at 1:56 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, Mar 10, 2009 at 9:51 AM, Peter Kanze

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Thiago H. de Paula Figueiredo
On Tue, Mar 10, 2009 at 9:51 AM, Peter Kanze wrote: > I already searched the archive and found the question, but it is not clear > to me. > There are no examples in it with a dynamic path.. You'll use AssetSource for that. -- Thiago -

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Peter Kanze
Hello I already searched the archive and found the question, but it is not clear to me. There are no examples in it with a dynamic path.. On Tue, Mar 10, 2009 at 1:45 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Hi! > > Search this mailing list archives because this was al

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Thiago H. de Paula Figueiredo
Hi! Search this mailing list archives because this was already asked here: http://www.nabble.com/forum/Search.jtp?forum=340&local=y&query=asset+filesystem. -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.o

T5: How to load image Asset from filesystem?

2009-03-10 Thread Peter Kanze
Hello I want to load images from the filesystem, like for example D:/category/1/products/55/thumb.jpg So the file path is dynamic and is based on the categoryId and the productId. How can I load such an image into my webpage using a Tapestry Asset? This looks like a common usecase to me, but I c

Re: 5.1 Parameter namespacePrefix was null

2009-03-10 Thread Andy Pahne
There have been two separate threads dealing with this and a few users (including me) experiencing this. But as far as I remember, no solution has been found yet. The problem disappeared for me, but I don't know how. What I did was a bit desperate: I had a feeling that one of my abstract bas

Re: actionlink pass combobox value.

2009-03-10 Thread DH
Yes, that's it. I always learn from jumpstart. Thanks DH - Original Message - From: "Tan cyb...@n" Sent: Tuesday, March 10, 2009 8:11 PM Subject: Re: actionlink pass combobox value. > http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/input/linksubmits1 > > On Tue, Mar 1

Re: actionlink pass combobox value.

2009-03-10 Thread Tan cyb...@n
http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/input/linksubmits1 On Tue, Mar 10, 2009 at 8:04 PM, Tan cyb...@n wrote: > hi DH, > > Do you have any example? > Thank you > > Regards, > Tan > > > On Tue, Mar 10, 2009 at 7:50 PM, DH wrote: > >> If you are not limited on actionlink,

Re: actionlink pass combobox value.

2009-03-10 Thread Tan cyb...@n
hi DH, Do you have any example? Thank you Regards, Tan On Tue, Mar 10, 2009 at 7:50 PM, DH wrote: > If you are not limited on actionlink, have a try with LinkSubmit component, > it can post form. > > Or else you need js to help post the value back. > > Thanks > > DH > > Sent: Tuesday, March 10

Re: actionlink pass combobox value.

2009-03-10 Thread DH
If you are not limited on actionlink, have a try with LinkSubmit component, it can post form. Or else you need js to help post the value back. Thanks DH Sent: Tuesday, March 10, 2009 4:47 PM Subject: actionlink pass combobox value. > Hi all, > > I have my a combo box. getCombovalue() always

5.1 Parameter namespacePrefix was null

2009-03-10 Thread Joachim Van der Auwera
Does anybody know where the following "Parameter namespacePrefix was null" error comes from (and better, how to fix). I upgrading my application from 5.0.18 to 5.1.0.0 and now get this error. What is extremely wierd is that the template did indeed contain http://www.w3.org/1999/xhtml"; xmlns:

actionlink pass combobox value.

2009-03-10 Thread Tan cyb...@n
Hi all, I have my a combo box. getCombovalue() always get null value when i clicked on actionlink button. ( This is due to the form no post back that cause it retrieved a null value.) *remark this is using zone and block. @injectpage private SecondPage secondpage; Object onActionFrombtnClick() {