Re: Request Filter with ApplicationStateManager

2007-12-04 Thread Peter Stavrinides
Hi, Perhaps I haven't phrased this question quite right since I didn't get a response... Let me try it again. What I have is two contributions, a RequestFilter and a Dispatcher (the code is just about identicle) both services have a dependancy on the ApplicationStateManager, so I wire it by

T5: Possible Literal Binding bug

2007-12-04 Thread Andrew Pietsch
Hi there, I'm new to T5 so the I hope this isn't just a user misunderstanding but I'm having troubles with the prefix "literal:" Page class: public class MyComponent { @Parameter private String title; } A Template that uses MyComponent as follows: The resulting output is: literal: Page 1

"Could not find template" when running from source but WAR file running OK

2007-12-04 Thread Tim
Hi, I am develping project on Tapestry 4.0.2 in Eclipse3.3. I encounter "Could not find template for component StipHome/searchByCode in locale en." each time I use custom component when run the project from Eclipse src directories on tomcat 5.5.25. But surprisingly when I build it to WAR file and

RE: [T5] Obtaining a relative directory path

2007-12-04 Thread Jean-Philippe Steinmetz
I can't use absolute URLs because I can't make any assumptions about the server environment this will run on. The server will likely vary and even the context name may change. Also, using an old-fashioned relative URL doesn't work for me either since my app is broken up into packages. So I may have

Re: [T5] Obtaining a relative directory path

2007-12-04 Thread Josh Canfield
If these are just static images in a directory in your webapp then you don't need the functionality of an Asset for that. How about just doing it the old fashioned way? Most of my images are done like this... sometimes I need an absolute url and I prepend that. Josh On Dec 4, 2007 4:45 PM, Jean

"template component not found" when running from source but WAR file running OK

2007-12-04 Thread Tim
Hi, I am develping project on Tapestry 4.0.2 in Eclipse3.3. I encounter "Could not find template for component StipHome/searchByCode in locale en." each time I use custom component when run the project from Eclipse src directories on tomcat 5.5.25. But surprisingly when I build it to WAR file and

Re: Nightly docs fixed - and some general notes

2007-12-04 Thread Angelo Chen
Hi Howard, It's a great news, I love T5, it's my first framework when I started doing java/web projects, I learned a lot from T5 and T5 gurus in the mailing list, do you think we might have a preview version by X'mas? and it has some basic Ajax support already? Thanks, Angelo Howard Lewis Ship

[T5] Obtaining a relative directory path

2007-12-04 Thread Jean-Philippe Steinmetz
Hello all, I am trying to create a getter that returns the relative path to the images directory for my application. I want it to apply in template HTML files as: I found a previous thread ( http://www.nabble.com/T5-How-to-difine-dynamic-path-for-image-t4834269.html ) on how to do this u

Re: Nightly docs fixed - and some general notes

2007-12-04 Thread Thiago HP
On 12/4/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > My hatred of Maven is growing quickly. You may not be aware of this, > but Jesse "fixed" the Surefire plugin for Maven almost two years ago > and that STILL isn't the default version (i.e., the non-snapshot > version). Is it hatred of Ma

Re: T5: Tapestry message localization, java.util.Formatter vs. java.text.MessageFormat

2007-12-04 Thread Filip S. Adamsen
Or you could create a new message binding prefix that uses java.text.MessageFormat. -Filip Davor Hrg skrev: I've been playing with mesage catalog, I want to make an implementation that will load translations from database, and also creating components to allow adding translations while applica

Re: page navigation (return to arbitrary page)

2007-12-04 Thread Joachim Van der Auwera
Thanks Josh, that is what I was looking for. Joachim Josh Canfield wrote: I do something similar to this, but instead of a page I store an Object, generally a Link: @Persist Object returnTo; So that I can store a page or a link depending on what the calling page requires. If you generate a li

Re: Nightly docs fixed - and some general notes

2007-12-04 Thread Chris Lewis
Full time on T5? That is good news :-). I do hope that maven will not be abandoned... Howard Lewis Ship wrote: The nightly docs are now fixed. My hatred of Maven is growing quickly. You may not be aware of this, but Jesse "fixed" the Surefire plugin for Maven almost two years ago and that STIL

Re: T3: session length

2007-12-04 Thread Josh Canfield
; connects > >> to > >> the server, receives the answer and the connection is closed. There is > >> nothing like a browser closing event notification sent to the server. > >> Thiago > >

Re: page navigation (return to arbitrary page)

2007-12-04 Thread Josh Canfield
I do something similar to this, but instead of a page I store an Object, generally a Link: @Persist Object returnTo; So that I can store a page or a link depending on what the calling page requires. If you generate a link using _resources.createPageLink and don't provide the last context paramete

Re: T5: "conditional parameter binding" or something

2007-12-04 Thread Britske
I quickly solved it with some kind of hack for those interested, but I'm still curious if the kind of binding I described is possible at all. Cheers, Geert-Jan A hack that's working: introduced 2 extra fields: facetmaxInc and FacetOld; public void setFacetCounter(int facetCounter)

T5: "conditional parameter binding" or something

2007-12-04 Thread Britske
I need a bit of introduction to lay down the problem, so please bare with me: I have a component which renders lists of items. A parameter (childcounter) keeps track of the number of rendered items in the current List. I have the requirement. to be able to define on a per-page basis how many i

Re: Nightly docs fixed - and some general notes

2007-12-04 Thread jeffrey ai
It's great to know that you are 100% on T5. Also I would like to put one vote for the web flow feature. I had a demo of T5 last week to other developers in my company. We are all exited about its clean code and extendability. The only feature we need but it's not in T5 is the web flow. Besides t

Re: Nightly docs fixed - and some general notes

2007-12-04 Thread Massimo Lusetti
On Dec 4, 2007 5:46 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > I'm investigating Buildr, which is a Ruby based build system that > understands Maven dependencies. It looks very promising. There's > something of a Goedel issue in using Java to build Java, so I eagerly > embrace using anoth

Re: Nightly docs fixed - and some general notes

2007-12-04 Thread Francois Armand
Hello Howard, Howard Lewis Ship wrote: My hatred of Maven is growing quickly. It seems to be a common anti-pattern for Maven... People have been asking a lot about when T5 will be finished. I'm doing some work on it right now, while I'm on vacation. And that is a great news ! I have new cl

Re: T5: Tapestry message localization, java.util.Formatter vs. java.text.MessageFormat

2007-12-04 Thread jeffrey ai
One choice is to provide your own message binding by contribute a binding source in your AppModule.java like below. You could use any formatter you want in there. --- public void contributeBindingSource( MappedConfiguration configuration ) { configuration.add( "myms

Re: T3: session length

2007-12-04 Thread James Sherwood
osed. There is nothing like a browser closing event notification sent to the server. Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 2701 (20071204) Inf

Re: T5: outputRaw and bbcode

2007-12-04 Thread jeffrey ai
Sorry, I have no ideas about that. Cheers, Jeffrey Ai Angelo Chen wrote: > > hi jeffrey, > > thanks for the response, what I want to do is, the text has some bbcode , > I'd like to convert that to html tags, then use outputRaw to display it, > any existing components that can do that? > > >

Nightly docs fixed - and some general notes

2007-12-04 Thread Howard Lewis Ship
The nightly docs are now fixed. My hatred of Maven is growing quickly. You may not be aware of this, but Jesse "fixed" the Surefire plugin for Maven almost two years ago and that STILL isn't the default version (i.e., the non-snapshot version). In order to get some new tests working, I had to upgr

Re: T3: session length

2007-12-04 Thread Richard Kirby
Hi James, et al. Opps - I answered the wrong question. As Thiago writes, you would indeed need to use javascript to periodically fetch something from the server, and in particular something that the servlet engine processes, so that it knows to update the last accessed timestamp on its interna

Re: T3: session length

2007-12-04 Thread Thiago HP
On 12/4/07, James Sherwood <[EMAIL PROTECTED]> wrote: > > So there is no way to have it last the length of the browser being open? No way unless you use some Javascript hack that keeps requesting something to the server. You must remember the nature of HTTP. The browser connects to the server, rec

Re: T3: session length

2007-12-04 Thread Richard Kirby
mory usage. Of course you could release the session (session.invalidate()), but I don't think it's your case. Thiago __ NOD32 2701 (20071204) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --

Re: T3: session length

2007-12-04 Thread James Sherwood
ge. Of course you could release the session (session.invalidate()), but I don't think it's your case. Thiago __ NOD32 2701 (20071204) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --

Re: T3: session length

2007-12-04 Thread Thiago HP
On 12/4/07, James Sherwood <[EMAIL PROTECTED]> wrote: > > What is the downfall to this? Each user session will last forerever even when the user is not using the application, leading to an always increasing server memory usage. Of course you could release the session (session.invalidate()), but I

Re: Antwort: page navigation (return to arbitrary page)

2007-12-04 Thread Joachim Van der Auwera
Kristian Marinkovic wrote: you cannot useThreadLocal to store your data because when you return the page (string or class ... ) tapestry will perform a http redirect. and because every request will have its own new thread the ThreadLocal will be gone! I do use ASOs and @Persist in a tabbed ap

Re: page navigation (return to arbitrary page)

2007-12-04 Thread Angelo Chen
Hi, I have a similar situation, a login page, it will be called from different places, when user logs in, it has to return to the calling page, i just pass the calling page name to the login page, and login page will return to the calling page after login. A.C Joachim Van der Auwera wrote: > >

Re: Antwort: page navigation (return to arbitrary page)

2007-12-04 Thread Kristian Marinkovic
just to clarify i'm talking about T5 here! T4 is different as it does not have redirects g kris Kristian Marinkovic <[EMAIL PROTECTED]> 04.12.2007 16:20 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Re: Antwort: page navigation (return to arbitrary page)

Re: Antwort: page navigation (return to arbitrary page)

2007-12-04 Thread Kristian Marinkovic
you cannot useThreadLocal to store your data because when you return the page (string or class ... ) tapestry will perform a http redirect. and because every request will have its own new thread the ThreadLocal will be gone! I do use ASOs and @Persist in a tabbed application and it works fine g

Re: page navigation (return to arbitrary page)

2007-12-04 Thread Norman Franke
You could make a "client" persisted string property where you store the page name, then just return the page name in a listener. I'm not sure, but I think that your onActionFromLinkback has to return either a String or an IPage, not Object. -Norman Franke ASD, Inc. On Dec 4, 2007, at 9:27

Re: Antwort: page navigation (return to arbitrary page)

2007-12-04 Thread Joachim Van der Auwera
Hmm, I don't like the ASO approach as that is not sompatible with having multiple tabs and/or back button. I assume I could have a class which traverses the fields marked with "@Persist" and store these in an object. On the link, the page name could be returned and the state stored in a threadlo

Re: Antwort: page navigation (return to arbitrary page)

2007-12-04 Thread Kristian Marinkovic
Tapestry pages cannot have state because the instances come from a page pool and are shared between multiple requests. Only fields that are marked with @Persist and @ApplicationState will be restored on subsequent request of the same session with the values from the HttpSession. i hope this he

Re: Antwort: page navigation (return to arbitrary page)

2007-12-04 Thread Kristian Marinkovic
i'd recommend to use ApplicationStateObjects (ASOs) if you want to share state between multiple pages. You could also have an ASO that returns the next or previous page based on the current state g, kris Joachim Van der Auwera <[EMAIL PROTECTED]> 04.12.2007 15:44 Bitte antworten an "Tapes

Re: Antwort: page navigation (return to arbitrary page)

2007-12-04 Thread Joachim Van der Auwera
Kristian Marinkovic wrote: you could change your setReturnPage method to store a string with the page name or a Class instance of the return page If I do that, I completely lose state. I could store and restore the state if there was a way to get a page when the class or name is provid

Antwort: page navigation (return to arbitrary page)

2007-12-04 Thread Kristian Marinkovic
you could change your setReturnPage method to store a string with the page name or a Class instance of the return page eg, Object onActionFromLink() { // initialize destinationPage.setReturnPage(ReturnPage.class); return destination; } g, kris Joachim Van der Auwera <[EMAI

page navigation (return to arbitrary page)

2007-12-04 Thread Joachim Van der Auwera
I have situation where I have a page in my application which can be reached from many different pages. When a certain link is indicated, I want the user to move back to the previous page. The problem is that this class has no idea (cannot know) what the possible return pages are. I thought about

Re: T5: problem in web.xml

2007-12-04 Thread Chris Lewis
Post a link to the JIRA if you create one. I think it's a good idea to allow the container to handle requests not handled by T5, but should be configurable and probably NOT the default. Perhaps web.xml would be the appropriate place to toggle this behavior. Ritesh.S wrote: Hello Davor, Thank

Re: T3: session length

2007-12-04 Thread James Sherwood
What is the downfall to this? --James - Original Message - From: "Filip S. Adamsen" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Monday, December 03, 2007 2:23 PM Subject: Re: T3: session length I suppose you could set session-timeout to 0 in your web.xml, but that's not recommen

Re: T5: problem in web.xml

2007-12-04 Thread Ritesh.S
Hello Davor, Thanks for your help. I will try to implement the custom filter you suggested. Also I will post a JIRA if necessary. Thanks once again... From, Ritesh S. Davor Hrg wrote: > > this is just a workaround, > > you should post a JIRA about this problem, > there's been some talk a

Re: T5: problem in web.xml

2007-12-04 Thread Davor Hrg
this is just a workaround, you should post a JIRA about this problem, there's been some talk about tapestry letting container deal with paths that tapestry can not resolve ... so this may be fixed in current trunk... here's something that might work, and save you headaches before an official sol

Re: T5: problem in web.xml

2007-12-04 Thread Ritesh.S
Hello Davor, Thanks for your reply. I am giving stack trace below and problematic url. Following is the stack trace I get when I try to upload a file through the servlet which produces the .htm file and shows in url. This occures when use /* An unexpected application exception has occurred.

Re: T5: Tapestry message localization, java.util.Formatter vs. java.text.MessageFormat

2007-12-04 Thread Davor Hrg
I've been playing with mesage catalog, I want to make an implementation that will load translations from database, and also creating components to allow adding translations while application is working (this made my life easier on projects where users, made translations on the fly while testing the

Re: T5: problem in web.xml

2007-12-04 Thread Davor Hrg
could you post stack trace, and problematic url ? Davor Hrg On Dec 4, 2007 11:18 AM, Ritesh.S <[EMAIL PROTECTED]> wrote: > > Hello everybody, > > I am new to tapestry and I am using Tapestry core 5.0.5. > I integrated Tapestry 5 with spring and hibernate. > > I configured my application's web.xm

Request Filter with ApplicationStateManager

2007-12-04 Thread Peter Stavrinides
Hi All, I can get hold of the ApplicationStateManager using the Dispatcher interface without a problem, however the same code fails using the Tapestry RequestFilter interface? specifically *if(asm_.exists(**UserAsoObject.class)**)) *returns a NPE. Would this be a bug or shouldn't I be using

Evaluation of Javascript Libraries

2007-12-04 Thread [EMAIL PROTECTED]
Hi, this is an Evaluation of Javascript Libraries: http://wiki.freaks-unidos.net/javascript-libraries - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

T5: problem in web.xml

2007-12-04 Thread Ritesh.S
Hello everybody, I am new to tapestry and I am using Tapestry core 5.0.5. I integrated Tapestry 5 with spring and hibernate. I configured my application's web.xml as below - <-spring-app configuration is here-> tapestry.app-package com.myproject