Re: Getting raw POST data

2006-03-21 Thread Cliff Zhao
It depends on the content-type of your POST. If it is "application/x-www-form-urlencoded", the servlet engine will consume it. You will get nothing. Otherwise your tapestry service will get the inputstream. On 3/18/06, Jean-Eric Cuendet <[EMAIL PROTECTED]> wrote: > > Hi, > I have a tapestry servic

Re: CookieSource Limitation

2006-03-21 Thread Adam Zimowski
I fixed my problem, although it's not very elegant. I derived my own servlet from ApplicationServlet and overwrote doGet & doPost. Then, before I called super() on each, I checked for the cookie using raw Servlet API and deleted it (without the traling slash) the old fashioned way. All is nice an

Re: Access localized messages in non-page/non-component class

2006-03-21 Thread Kent Tong
Andreas Bulling phoenix.hadiko.de> writes: > | http://www.ognl.org/2.6.7/Documentation/html/LanguageGuide/varref.html > > OK, and #root is provied by Tapestry? Everything ognl expression has a "context object". For example, if you write "modelSource" in your .page file, the context object is th

CookieSource Limitation

2006-03-21 Thread Adam Zimowski
I have found the problem, and traced it to what I see as limitation in how CookieSource interface is implemented (see CookieSourceImpl) in Tapestry source. While a pretty good assumtion, CookieSourceImpl took a liberty of appending "/" to the end of context path: CookieSourceImpl.java : 067

Re: [NewB] htmlUnit and submit button don't work...

2006-03-21 Thread ZedroS Schwart
Thanks a lot for your answers, you were right. It was most helpful !

Re: Inject visit and global to base page class

2006-03-21 Thread butterdave
How do I inject a service into the global object (like visit)? -- View this message in context: http://www.nabble.com/Inject-visit-and-global-to-base-page-class-t28307.html#a3522296 Sent from the Tapestry - User forum at Nabble.com. -

R: An Engine Service that always runs?

2006-03-21 Thread Giampaolo Tomassoni
If the work to be done is something not directly affecting pages and components (i.e.: wrapping a request around a UserTransaction), that may be done by a custom javax.servlet.Filter implementation wrapping the Tapestry servlet. What's the purpose of this code? It could help in finding a better

An Engine Service that always runs?

2006-03-21 Thread butterdave
Hi, in our previous Tapestry 3 implemenation we overrode the BaseEngine to do work whenever we called the following methods: setupForRequest, cleanupAfterRequest and createRequestCycle. Now in Tapestry 4 those methods have been removed. What I'm understanding now is that I need to write my own se

Removing stale JSESSIONID cookie value.

2006-03-21 Thread Adam Zimowski
Hello Gurus, I have a working session persistence layer in my application. Everything is great except one little annoyance.. My app takes advantage of Tapestry's intelligent session management, and doesn't create one unless needed (actually Tapestry controls that). Once session is created and pes

Re: returning a list containing strings and lists in OGNL

2006-03-21 Thread Mike Snare
I don't follow. Is there a getTestList() method in the objects contained by the getTable() method of your page? If not, then your code won't work. The code you and I both wrote assumes that testList is an member of the items being iterated by the table. If, instead, you want to display somethin

Re: Memory leak?

2006-03-21 Thread Sergei Dubov
Hivemind 1.1.1 is a must have for Tapestry 4.0. Anytime Tomcat detects a changed .class file or .jar, it will discard a classloader that loaded the app (provided reloadable is set to true). Hivemind 1.1 prevents classloader from being unloaded. This is fixed in 1.1.1. You should also use Tomca

Re: Getting raw POST data

2006-03-21 Thread Fernando Padilla
Well, you should keep reading up on Filters and how they can replace the request/response objects, they are very useful. You'll want to create your own Request object ( extending HttpServletRequestWrapper ). In its constructor you absorb the inputstream into a byte[]. Then you create another

Re: get Servlet base path

2006-03-21 Thread Andreas Bulling
| String webAppPath = getServletContext().getRealPath("/"); Thanks a lot! - that's exactly what I was looking for ;) Sincerly, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

Re: base tag and using anchors

2006-03-21 Thread Sebastiaan van Erk
Search the list archives. You need to replace the base tag renderer with one that renders nothing at all. Full code is in the archives... Greetings, Sebastiaan Dan Adams wrote: We are having a problem with using a # anchor link in a page because it resolves the # relative to the base tag that

RE: TheServerSide.com Java Symposium is coming to Europe!. Is Tap estry gonna be there?

2006-03-21 Thread Jonnalagadda, Sumithra
Any one attending the Java Symposium in Las Vegas starting from 23rd this month?. -Original Message- From: Konstantin Ignatyev [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 21, 2006 11:17 AM To: Tapestry users Subject: Re: TheServerSide.com Java Symposium is coming to Europe!. Is Tapestry

Re: TheServerSide.com Java Symposium is coming to Europe!. Is Tapestry gonna be there?

2006-03-21 Thread Konstantin Ignatyev
I have heard that Tapestry is gaining momentun in Europ, at least in Russia :) Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Heh...I wish. On 3/21/06, Raul Raja Martinez wrote: > > Hi, > > I was just wondering if Howard or any of the Tapestry gurus will be > showing Tapestry or hivemind at the Server

Re: TheServerSide.com Java Symposium is coming to Europe!. Is Tapestry gonna be there?

2006-03-21 Thread Jesse Kuhnert
Heh...I wish. On 3/21/06, Raul Raja Martinez <[EMAIL PROTECTED]> wrote: > > Hi, > > I was just wondering if Howard or any of the Tapestry gurus will be > showing Tapestry or hivemind at the Server Side Java Symposium in > Barcelona, Spain (June 21-23). > > http://javasymposium-europe.techtarget.co

TheServerSide.com Java Symposium is coming to Europe!. Is Tapestry gonna be there?

2006-03-21 Thread Raul Raja Martinez
Hi, I was just wondering if Howard or any of the Tapestry gurus will be showing Tapestry or hivemind at the Server Side Java Symposium in Barcelona, Spain (June 21-23). http://javasymposium-europe.techtarget.com/index.html best regards. Raul Raja. -

Re: returning a list containing strings and lists in OGNL

2006-03-21 Thread Nima Boustanian
But Mike - If I type It will take me to the actual MyTable class, and that class doesn't have a getName method, it only has a method which returns the testList. Do I have to make a separate @For loop to iterate over the specific objects for this and then do a @Insert? ...sort of like this

RE: get Servlet base path

2006-03-21 Thread James Carman
Check out ServletContext.getRealPath(): http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContext.html#getR ealPath(java.lang.String) -Original Message- From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Bulling Sent: Tuesday, March 21, 2006 2:01 PM To: Tapestry

RE: get Servlet base path

2006-03-21 Thread Greg Cormier
This might be what you're looking for String webAppPath = getServletContext().getRealPath("/"); Greg -Original Message- From: Andreas Bulling [mailto:[EMAIL PROTECTED] Behalf Of Andreas Bulling Sent: Tuesday, March 21, 2006 2:01 PM To: Tapestry users Subject: get Servlet base pa

Re: Memory leak?

2006-03-21 Thread Mike Snare
Unfortunately, the SVN version would be out of the question as our app is production. It's not a huge deal since we won't be disabling the cache during deployment, it's just a minor annoyance during development. I will take a look at using 1.1.1, though. Thanks, -Mike On 3/21/06, James Carman <

get Servlet base path

2006-03-21 Thread Andreas Bulling
Hi all, a short question I wasn't able to find an answer for: How can I get the (absolute) path of the servlet context? I have a Upload component and I want to save all of the files in a subdirectory of the context (perhaps even below WEB-INF, I don't know). What I've done so far: @InjectObject(

Re: max file upload size

2006-03-21 Thread Jesse Kuhnert
This has been fixed in the 4.0 branch now. There is a maxSize parameter on the Upload component that should allow people to change what it is. A negative value means "unlimited" so be careful :) (the default is still 10kb though) On 3/21/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > It's ok, Br

RE: Memory leak?

2006-03-21 Thread James Carman
I am not sure if it's the cause of it or not, as I'm not really familiar with what Tapestry is doing "under the covers" (it's hard enough figuring out all of the cool stuff HiveMind does). But, the details of the memory leak can be found here: http://issues.apache.org/jira/browse/HIVEMIND-161 I

Re: Memory leak?

2006-03-21 Thread Mike Snare
I took a look, and that bug seems to be indicated for hot reloads. Would it apply here? -Mike On 3/21/06, Mike Snare <[EMAIL PROTECTED]> wrote: > 4.0, 1.1. > > Was the memory leak in relation to this? The only major fix I was > aware of for 1.1.1 was the performance issue for threaded services.

Re: Memory leak?

2006-03-21 Thread Mike Snare
4.0, 1.1. Was the memory leak in relation to this? The only major fix I was aware of for 1.1.1 was the performance issue for threaded services. -Mike On 3/21/06, James Carman <[EMAIL PROTECTED]> wrote: > What version of Tapestry are you using? If it's 4.0, what version of > HiveMind are you us

Re: max file upload size

2006-03-21 Thread Jesse Kuhnert
It's ok, Brian's been doing most of the work lately. I rather enjoy it :) On 3/21/06, Ben Dotte <[EMAIL PROTECTED]> wrote: > > Thanks Jesse - And for all the work you've put in on so many other cases > recently, it is very much appreciated! > > -Original Message- > From: Jesse Kuhnert [mai

RE: max file upload size

2006-03-21 Thread Ben Dotte
Thanks Jesse - And for all the work you've put in on so many other cases recently, it is very much appreciated! -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 21, 2006 11:44 AM To: Tapestry users Subject: Re: max file upload size ok, will commit it

RE: Memory leak?

2006-03-21 Thread James Carman
What version of Tapestry are you using? If it's 4.0, what version of HiveMind are you using? There was a known memory leak in 1.1 which was fixed in 1.1.1. -Original Message- From: Mike Snare [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 21, 2006 1:30 PM To: Tapestry users Subject: M

Memory leak?

2006-03-21 Thread Mike Snare
I'm pretty sure there's a memory leak in tapestry because the memory usage climbs and climbs when caching is disabled. I understand that in a production environment you probably wouldn't want caching disabled, but it seems tapestry should throw out whatever it's creating if it's not going to use t

Re: Getting HTTPServletRequest and HTTPServletResponse

2006-03-21 Thread Adam Zimowski
Hi Asim, I am not sure that you can inject entire HttpServlet. The reason I say that is because of what HiveDoc shows. On tapestry home page, if you expand "Framework" and then "Reports", you will have option to view some interesting documentation. In this case you're interested in HiveDoc which d

RE: Getting HTTPServletRequest and HTTPServletResponse

2006-03-21 Thread James Carman
There is no "tapestry.globals.HttpServlet" service point. However, there is a "tapestry.globals.ServletContext" service point. You can inject the ServletContext into any service object automatically by providing a "setter" for a property of that type. Then, you call your service and it can do wh

Re: Getting HTTPServletRequest and HTTPServletResponse

2006-03-21 Thread Asim Khaja
Thanks Adam, I am not sure if this is related, but would i do the same technquie if i wanted to get the HttpServet so that i can do something like String filePath = cycle.getRequestContext ().getServlet().getServletContext().getInitParameter("documentFileRootPath"); That code was valid for tapest

Re: returning a list containing strings and lists in OGNL

2006-03-21 Thread Mike Snare
As an aside, it doesn't actually have to go *in* the table element in the component. It can go anywhere in the template... -Mike On 3/21/06, Mike Snare <[EMAIL PROTECTED]> wrote: > You need to use a Block to render that column. Simply change > testList.name back to testList and include the foll

Re: returning a list containing strings and lists in OGNL

2006-03-21 Thread Mike Snare
You need to use a Block to render that column. Simply change testList.name back to testList and include the following inside the table element in your template: the Table component will use this block to render the data in the testList column instead of the standard rendering. On 3/21/06,

Adding component-type to a component library without .jwc file?

2006-03-21 Thread Aj Gregory
I have a component which uses annotations instead of a .jwc file and I'd like to add it to a component library... Anybody know what to put for the "specification-path" if there is no .jwc file? -Aj - To unsubscribe, e-mail: [E

Re: max file upload size

2006-03-21 Thread Jesse Kuhnert
ok, will commit it after I finish eating lunch On 3/21/06, Ben Dotte <[EMAIL PROTECTED]> wrote: > > That link doesn't work for me at least.. anyway I posted a solution to > this a while back: > > http://article.gmane.org/gmane.comp.java.tapestry.user/29717/ > > All we need is a setter for maxSize

returning a list containing strings and lists in OGNL

2006-03-21 Thread Nima Boustanian
Hey all I have two columns in my contrib:table, one returns a string and the other one returns a list. width="100%" class="myTable" source="ognl:table" columns="testString, testList.name" pageSiz

RE: max file upload size

2006-03-21 Thread Ben Dotte
That link doesn't work for me at least.. anyway I posted a solution to this a while back: http://article.gmane.org/gmane.comp.java.tapestry.user/29717/ All we need is a setter for maxSize on MultipartDecoderImpl to avoid overriding the framework, it sure would be nice if one of the committers wou

RE: max file upload size

2006-03-21 Thread Jimmi Dyson
Take a look here - http://mail-archives.apache.org/mod_mbox/jakarta-tapestry-user/200512.mb ox/[EMAIL PROTECTED] -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: 21 March 2006 16:50 To: Tapestry users Subject: Re: max file upload size As much as I'd like to do that and

Re: Getting HTTPServletRequest and HTTPServletResponse

2006-03-21 Thread Adam Zimowski
@InjectObject("service:tapestry.globals.HttpServletRequest") public abstract HttpServletRequest getServletRequest(); Tapestry will do the magic and give you a valid reference. On 3/21/06, Asim Khaja <[EMAIL PROTECTED]> wrote: > I'd like to get the HTTPServletRequest and HTTPServle

Re: Access localized messages in non-page/non-component class

2006-03-21 Thread Andreas Bulling
| It works, now. I didn't see the "get" in front of UserModel, sorry for not reading your post as carefully as needed ;) Thanks for your help! Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Getting HTTPServletRequest and HTTPServletResponse

2006-03-21 Thread Asim Khaja
I'd like to get the HTTPServletRequest and HTTPServletResponse, so that i can use the RequestDispatcher to forward my application to another servlet. I found that I can do HttpServletRequest req = cycle.getRequestContext().getRequest(); HttpServletResponse res = cycle.getRequestCont

Re: max file upload size

2006-03-21 Thread Norbert Sándor
...there are other developers as well, please check the recent JIRA changes for confirmation. Regards, Norbi Wayland Chan wrote: Being that this is open source, you could make the changes yourself and submit it to Howard to see if he agrees with your changes and merges it into the project. It

Re: max file upload size

2006-03-21 Thread Dan Adams
As much as I'd like to do that and appreciate all the work done on tapestry, this is on a deadline for friday and I need to get something working quickly and don't have to time to deviate. Plus it seems like this option was configurable in T3 via an extension in the .application but was removed in

Re: max file upload size

2006-03-21 Thread Jesse Kuhnert
Jesse might look at your patches as well. On 3/21/06, Wayland Chan <[EMAIL PROTECTED]> wrote: > > Being that this is open source, you could make the changes yourself and > submit it to Howard to see if he agrees with your changes and merges it > into > the project. It doesn't seem like a disruptiv

Re: max file upload size

2006-03-21 Thread Wayland Chan
Being that this is open source, you could make the changes yourself and submit it to Howard to see if he agrees with your changes and merges it into the project. It doesn't seem like a disruptive change and I also see the benefit. On 3/21/06, Dan Adams <[EMAIL PROTECTED]> wrote: > > In my applica

max file upload size

2006-03-21 Thread Dan Adams
In my application I have to upload large files (> 10m). I found posts on gmane about having to re-implement MultipartDecoderImpl just so you can set maxSize. Is there any plans to make this configurable? It would be nice if I could just subclass it and override something trivial but it looks like I

base tag and using anchors

2006-03-21 Thread Dan Adams
We are having a problem with using a # anchor link in a page because it resolves the # relative to the base tag that the @Shell component puts in the head. Is there a way around this? -- Dan Adams Software Engineer Interactive Factory

Feedback: RE: Tacos Beta: JSError "tacos is not defined

2006-03-21 Thread Kristian Marinkovic
Thank you very much for your help. I think i figured it out: i used to include the dojo library using: but this was not correct using fixed alle my problems and nightmares regards, kris - To unsubscribe, e-mail: [EM

Re: Access localized messages in non-page/non-component class

2006-03-21 Thread Andreas Bulling
| http://www.ognl.org/2.6.7/Documentation/html/LanguageGuide/varref.html OK, and #root is provied by Tapestry? | Probably you don't have the getter or setter. Anyway, why not just | pass the Messages collection to ModelSource? | | | | IPropertySelectionModel getUserModel(Messages messages

Re: Access localized messages in non-page/non-component class

2006-03-21 Thread Kent Tong
Andreas Bulling phoenix.hadiko.de> writes: > Well, what's the magic behind this [#root] thing/where can I find > a reference mentioning it? http://www.ognl.org/2.6.7/Documentation/html/LanguageGuide/varref.html > I tried that but I get the error message: > > Unable to read OGNL expression ''

Re: Access localized messages in non-page/non-component class

2006-03-21 Thread Andreas Bulling
| Try: | | | | where #root means your page object. Make sure you have both getter and | setter for the userModel. Well, what's the magic behind this [#root] thing/where can I find a reference mentioning it? I tried that but I get the error message: Unable to read OGNL expression '' of [EM

RE: Matt, question about your Tapestry 4.0 - Spring Integration

2006-03-21 Thread James Carman
I believe all you have to do is set up a /WEB-INF/applicationContext.xml file with your Spring beans in it. Then, drop the tapestry-spring.jar file in your /WEB-INF/lib directory. Then you can access the Spring beans by injecting them into your pages/components: @InjectObject("spring:MyDao") pub

Either the tableModel parameter or both source and columns parameters mu

2006-03-21 Thread Sami Lakka
I had the same problem and for me the fix was simple: I had forgot to implement the PageRenderListener so the dataItems weren't being set in my class. -- View this message in context: http://www.nabble.com/Either-the-tableModel-parameter-or-both-source-and-columns-parameters-mu-t1317478.html#a35

Re: Matt, question about your Tapestry 4.0 - Spring Integration

2006-03-21 Thread Izak Wessels
Thank you for the link. However, the documentation seems to be a "work in progress" so to speak. Do I just need to download the tapestry-spring-0.1.1.jar and place it in my classpath? From the website I gather that I need to setup spring in my web.xml, any other actions required? On 3/21/06, Jimmi

Re: Matt, question about your Tapestry 4.0 - Spring Integration

2006-03-21 Thread Izak Wessels
Thanks guys, works like a charm :) On 3/21/06, James Carman <[EMAIL PROTECTED]> wrote: > I believe all you have to do is set up a /WEB-INF/applicationContext.xml > file with your Spring beans in it. Then, drop the tapestry-spring.jar file > in your /WEB-INF/lib directory. Then you can access the

OGNL Static inner class reference

2006-03-21 Thread Robert Cole
Hi all HOpefully this will be a pretty simple one. I've got a class that contains a public inner enum class. How do I refer to an element in the enumeration? I've tried "ognl:@[EMAIL PROTECTED]" but I get a ClassNotFoundException for the inner class. I've tried several variations but evidently

RE: Matt, question about your Tapestry 4.0 - Spring Integration

2006-03-21 Thread James Carman
There's a new "tapestry-spring" module (http://howardlewisship.com/tapestry-javaforge/tapestry-spring/) at JavaForge which Howard wrote. Also, if you want, you can use the spring Hibernate ORM classes inside HiveMind by dropping the hivemind-utils.jar, and spring-transaction.jar, and spring-hibern

Re: how to deal with case sensitivity

2006-03-21 Thread Marcel Schepers
I have chosen for another solution. The application already required a derived BaseEngine. I've overridden the 'activateExceptionPage'. In case a non-existing page is requested the message of the incoming ApplicationRuntimeException ends with 'not found in application namespace.'. The trick is to

RE: Matt, question about your Tapestry 4.0 - Spring Integration

2006-03-21 Thread Jimmi Dyson
Take a look at tapestry-spring that Howard has produced. Works great with no extra code required. http://howardlewisship.com/tapestry-javaforge/tapestry-spring/ -Original Message- From: Izak Wessels [mailto:[EMAIL PROTECTED] Sent: 21 March 2006 12:30 To: Tapestry users Subject: Matt, que

Matt, question about your Tapestry 4.0 - Spring Integration

2006-03-21 Thread Izak Wessels
Matt, I recently came across the following forum posting by yourself : ( I wasn't subscribed to the mailing list when you made this forum posting, so excuse the repeat ) -- Does the following wiki page still r

Re: Access localized messages in non-page/non-component class

2006-03-21 Thread Kent Tong
Andreas Bulling phoenix.hadiko.de> writes: > Well, but the problem is, that the propertySelectionModel is > referenced directly in the .page file like this: > > > > > Try: where #root means your page object. Make sure you have both getter and setter for the userModel.

Re: Tapestry WIKI code License

2006-03-21 Thread Kent Tong
Adam Zimowski gmail.com> writes: > I only have one class containing WIKI code which I then slightly > modified > (http://wiki.apache.org/jakarta-tapestry/PagesAndComponentsInWEB-INF). > The class currently looks as below. Anybody has a problem with me > releasing it like that? If I don't hear ot

Re: Access localized messages in non-page/non-component class

2006-03-21 Thread Andreas Bulling
Hi Kent, thanks for your answer! | I think the best way is to pass the component to it when you need | to get a userModel: | | class ModelSource { | IPropertySelectionModel getUserModel(IComponent component) { | ... | component.getMessages().getMessage("user_type_0"); | ... |

Re: [NewB] htmlUnit and submit button don't work...

2006-03-21 Thread Kent Tong
ZedroS Schwart gmail.com> writes: > The interesting part of my Tests.java is, I think : > URL url = new URL("Path"); > page = (HtmlPage) client.getPage(url); > HtmlForm form = page.getFormByName("inscriptionForm"); > HtmlTextInput login = (HtmlTextInput) form.getIn

Re: Access localized messages in non-page/non-component class

2006-03-21 Thread Kent Tong
Andreas Bulling phoenix.hadiko.de> writes: > I have a class called "ModelSource" which returns several IPropertySelection > models to be used in forms. One of these is a userModel which shall > contain _localized_ entries defined in the application.properties file. > The problem is: How can I acc

RE: Tacos Beta: JSError "tacos is not defined

2006-03-21 Thread Denis McCarthy
I presume that you have the line in your .application file (and your application file name matches the name of the tapestry servlet defined in web.xml)? Regards Denis -Original Message- From: Kristian Marinkovic [mailto:[EMAIL PROTECTED] Sent: 20 March 2006 14:52 To: tapestry-user@jak