Re: Help with getLink() in IEngineService

2006-03-25 Thread Jean-Eric Cuendet
No answer... Could anybody point me to some doc? Explainations? Thanks a lot. -jec Jean-Eric Cuendet wrote: Hi, Could someone help me on the second parameter of this method? getLink(boolean post, Object[] params); What should I give as params in my case: I Want a URL on MyPage passing 2

Re: Page caching nightmare

2006-03-25 Thread Jean-Eric Cuendet
your abstract pages or component, their value will be reused across pages which is not a good thing and it can also compromise security. Jean-Eric Cuendet wrote: That's no directive of the .page file, these are meta-tags within the section of the html. Usually Safari makes the

Help with getLink() in IEngineService

2006-03-24 Thread Jean-Eric Cuendet
Hi, Could someone help me on the second parameter of this method? getLink(boolean post, Object[] params); What should I give as params in my case: I Want a URL on MyPage passing 2 extra parameters: uid=34455 and status=success URL should be something like http://server:port/servlet/MyPage.

Re: Page caching nightmare

2006-03-24 Thread Jean-Eric Cuendet
That's no directive of the .page file, these are meta-tags within the section of the html. Usually Safari makes the most problems with no-caching tags. The following works for me on Safari, IE and Firefox. Thanks a lot. I

Re: Page caching nightmare

2006-03-24 Thread Jean-Eric Cuendet
Are you sure it's not your browser? Check the cache settings there. You may also want to use the no-cache directive in your pages to prevent other browsers from caching results. Sounds like a good idea. At least for the very dynamic pages... What is the directive to put in my .page file? Tha

Re: Page caching nightmare

2006-03-24 Thread Jean-Eric Cuendet
Forgot to say that my app is on a hosted tomcat so the directive org.apache.tapestry.disable-caching=true is not an option of put in Tomcat startup scripts... Except if I can put it somewhere in my Tapestry config files. -jec Jean-Eric Cuendet wrote: Hi, In my Tapestry app, some pages are

Page caching nightmare

2006-03-24 Thread Jean-Eric Cuendet
Hi, In my Tapestry app, some pages are not re-rendered each time I load them. I think that's some Tapestry magic caching for perf, but in my case, the data shown is updated by a SOAP service and so the page must be re-rendered each time it's called. How to tell Tapestry to discard a page and fo

How to get the Component name within renderCommponent()

2006-03-24 Thread Jean-Eric Cuendet
Any idea? I can't find a method... This is for logging prupose. I have a Component B extends A In A, I would like to log in which commponent I am, and that should log B. Thanks for help -jec - To unsubscribe, e-mail: [EMAIL PROTE

Re: Getting raw POST data

2006-03-19 Thread Jean-Eric Cuendet
request.setParameter("RawData") but then how to let the request have access to the InputStream? The data in it is already consumed by the MyFiler class... I could create a ByteArrayInputStream but then how to wire it to the Request object? There is no setInputStream() ... Thanks for help. -jec Jean-Er

Re: Getting raw POST data

2006-03-19 Thread Jean-Eric Cuendet
Yup, you can't, this is how webapps work in general, sorry. But you can create a filter to get what you want, read on. The problem is that if it's a POST request, someone (webapp container, request object) has already digested the whole body of the request and convert it into properties of

Re: Getting raw POST data

2006-03-19 Thread Jean-Eric Cuendet
pServletRequest request; public void setHttpServletRequest(HttpServletRequest request) { this.request = request; } Hivemind will autowire the request to your service so that you can use it like if you were dealing with a Servlet. best regards. Raul Raja. Jean-Eric Cuendet wrote: Hi, I have a t

Transfer-Encoding: chunked not supported?

2006-03-18 Thread Jean-Eric Cuendet
Hi, I have a j2me (Mobile phone) application that connects to my Tapestry site to send data. It uses POST on a Tapestry Service. The mobile phone change to Transfer-Encoding:chunked alone if there is a lot of data (we can't change that). The problem is that Tapestry don't get the POST data righ

Getting raw POST data

2006-03-18 Thread Jean-Eric Cuendet
Hi, I have a tapestry service but would like to access the raw data from the POST http request. Is that possible? If I do getRequest().getInputStream() then inputStream.available() returns 0 ... I tried reset() on IS but it throw an exception saying it's not supported... Thanks for any info. -je

Serving static content with Tomcat

2006-03-10 Thread Jean-Eric Cuendet
no more served but redirected to my application... My question: how do I redirect /servlet/images to my images PATH whic /servlet goes to my servlet? Thanks a lot for tips and help. -jec -- Best regards / Salutations. Jean-Eric Cuendet Senior developer / Technical support Riskpro Technologi

Link to service with variable parameter

2006-03-09 Thread Jean-Eric Cuendet
Hi, I have a list of PDF that a user can generate by clicking on a link. I have a Tapestry Service that generate the pdf according to a cycle parameter which tells which one to generate. Like this: Cycle 1 Cycle 2 Cycle 3 I can create a with a @For component but how do I construct the link

GET and POST

2006-02-28 Thread Jean-Eric Cuendet
Hi, I have a service which is called externally via POST (to send data) or GET (to retrieve data). How do I know in Tapestry if I'm called with GET or POST method? Thanks -jec - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

images and data accessible within my Servlet

2006-02-28 Thread Jean-Eric Cuendet
Hi, My Tapestry servlet is available at /servlet/app like a basic Tapestry app. But the problem is that if I go to /servlet/, then I see the directory structure there. Which is bad. I then setup a servlet-mapping for / to my servlet so /servlet/ goes to my servlet. But then, /servlet/images is

Re: POST handling

2006-02-28 Thread Jean-Eric Cuendet (JeSC)
You need a custom engine service for doing so. You can inject HttpServletRequest in there. You can later use your service url to be the page that receives the post I can give you some code to get you started if you need it Thanks for the answer. I'll be glad if you could send me some code, y

Re: Getting session state from within a Tapestry service

2006-02-28 Thread Jean-Eric Cuendet
iard wrote: @InjectObject("infrastructure:request") public abstract WebRequest getRequest(); getRequest().getSession() http://jakarta.apache.org/tapestry/tapestry/apidocs/org/apache/tapestry/web/WebRequest.html - Original Message ----- From: "Jean-Eric Cuendet"

Getting session state from within a Tapestry service

2006-02-27 Thread Jean-Eric Cuendet
Hi, I need to get the session state from a Typestry service (from the servoce() method) Is there a way to do it? I'm unable to find any... Thanks a lot -jec - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Getting servlet directory

2006-02-27 Thread Jean-Eric Cuendet
Hi, Is there a way to get the servlet directory from within Tapestry? I need to know where it is to read images that I need to generate a PDF. It's on my local machine /opt/tomcat/webapps/sympto/images but that could/would be different when in production. Thanks -jec

Accessing State Objects from a Service

2006-02-14 Thread Jean-Eric Cuendet
Hi, I have a service implementing a IEngineService declared in hivemind. I would like to access my SessionData object from this Service. Is it possible? ow? Thanks -jec - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Reverse For component

2006-02-14 Thread Jean-Eric Cuendet (JeSC)
Hi, I would like to display a List with a @For component. Is it possible to reverse iterate on it? Going from index size()-1 to 0? Thanks -jec - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Newbie : Tapestry 4 Disgarding the Page Specification

2006-02-13 Thread Jean-Eric Cuendet
It certainly works, I have three applications running tapestry on my web site (blog, famtree and akcmoney) all of which don't use them (I occassionally Nothing related but what is akcmoney? A personal Finance manager on the web? Thanks to clarify. -jec ---

Re: POST handling

2006-02-13 Thread Jean-Eric Cuendet
Raul Raja Martinez wrote: You need a custom engine service for doing so. You can inject HttpServletRequest in there. OK, thanks. You can later use your service url to be the page that receives the post I can give you some code to get you started if you need it With great pleasure. -jec

POST handling

2006-02-13 Thread Jean-Eric Cuendet (JeSC)
Hi, I need a page in my Tapestry application to handle data that a remote client could send me. I'll use an HTTP POST method. How can I handle that in my application? Thanks for any pointer. -jec -- JeSC - Software et Consulting Jean-Eric Cuendet 1168 Villars-sous-Yens Web :

Injecting a State into a Service

2006-01-25 Thread Jean-Eric Cuendet
Hi, I would like to create a Service with: But set-contribution is not supported for services... How should I do that? Thanks a lot -jec - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Creating a war with my Tapestry app

2006-01-08 Thread Jean-Eric Cuendet
Hi, Until now I used Tomcat with a direct checkout of my Tapestry app (in /home/myapp) with the file TOMCAT/conf/Catalina/localhost/myapp.xml pointing to /home/app I'd like to create a war now for easy deployement. So I'll no more have the TOMCAT/conf/Catalina/localhost/myapp.xml file since all

Re: website hosting

2006-01-02 Thread Jean-Eric Cuendet
The website I wish to display will essentially be quite small, perhaps 10 or so pages so rather small really. I would not expect the database usage to be above 1GB for the foreseeable future, but the data that the clients enter would be very important (they will be paying for a So IMO, you

Re: URL of the current page

2006-01-02 Thread Jean-Eric Cuendet
What you want to do is very similar to a the redirect-after-post form submission pattern. The string used with @InjectObject is broken into two parts; the prefix and the value. The prefix identifies how the value is parsed and interpreted. The "service:" prefix is built-in to HiveMind, and re

Re: website hosting

2006-01-02 Thread Jean-Eric Cuendet
Yah, but then you're time slicing a fragment of a box, often with restrictions on what you can do with it e.g. you get the 1.4.2 JVM because that's what the server has on it, you get the standard package list and can't install more, etc. A virtual server may well work for a lot

Re: website hosting

2006-01-02 Thread Jean-Eric Cuendet
Well, a lot of services will just flat out lease you a box, then it's up to you to use whatever you want on them. Usually for $100 per month or so, you can get a box with a static IP address and an internet connection. You can, of course, pay a lot more if you require, say hot hourly bac

Re: website hosting

2006-01-02 Thread Jean-Eric Cuendet
I have the same problem, here in Switzerland. You must find a provider that accepts j2ee applications. I have 2 options here: (with www.swisscenter.ch) - Dedicated Virtual server where I can do what I want: install Apache+Tomcat+Tapestry+... - j2ee hosting: you provide a war file and it is dep

PageRedirectException in Components?

2006-01-02 Thread Jean-Eric Cuendet
Hi, I have a Border Component and I would like to check 2 things in it: - That I'm logged in or not - That the Locale is French If these conditions are not OK, then I would like to redirect to the Home page. I did that by throwing a PageRedirectException in renderComponent() but that doesn't

Re: URL of the current page

2005-12-31 Thread Jean-Eric Cuendet
Take a look at the PageService.getLink() method implementation... Thanks, that could help. Could you please explain how to Inject this Object into my page? Something like: @InjectObject("service:") public abstract PageService getPageService(); What should be what_to_put ? And need I to

Re: URL of the current page

2005-12-31 Thread Jean-Eric Cuendet
roject in the commons called httpclient that should do the trick. A little tricky to set up the first time, but works pretty well. Jean-Eric Cuendet wrote: Hi, I'm implementing a payment solution with Tapestry. I have a page on which a user can choose some articles and then call a well c

URL of the current page

2005-12-30 Thread Jean-Eric Cuendet
Hi, I'm implementing a payment solution with Tapestry. I have a page on which a user can choose some articles and then call a well crafted URL to make the payment by credit card (www.saferpay.com). I need to give Saferpay 3 URLs: - 1 if the transaction is OK - 1 if the transaction is NOK -