Re: Not in GZIP format problem

2009-09-24 Thread Kalle Korhonen
>From the page source, check what the value of hidden field t:formdata is and send it together with the rest of your multipart form data and it'll work. The value of t:formdata changes only if you change the form itself (add/remove fields). Kalle On Wed, Sep 23, 2009 at 4:02 PM, Ovidiu Hurducas

Re: Not in GZIP format problem

2009-09-24 Thread Kalle Korhonen
And obviously you need to gzip the request. On Thu, Sep 24, 2009 at 12:32 AM, Kalle Korhonen wrote: > From the page source, check what the value of hidden field t:formdata > is and send it together with the rest of your multipart form data and > it'll work. The value of t:formdata changes only if

url control / forwarding ...

2009-09-24 Thread Gunnar Eketrapp
Hi again! The app that I am porting to T5 has some callback services smashed by external operators. How do I add forwarding of those "external" url's to my T5 url's. E.g. http://webapp.com/external-callback-name is called by external systems which I would like to forward to e.g. callbacks/Mes

Validation on textfields in a grid?

2009-09-24 Thread Newham, Cameron
I could have sworn I had this working at one point, but now it doesn't. Tml: ... ... The Java: ... @Component private TextField keywordField; ... public void onValidateForm() { if (keywordVisual.getKeyword().getValue() == null)

Layout

2009-09-24 Thread Mario Udina
Hello! I am having an issue with the layout component, following the layouttutorial I am unable to get the layout to work. Layout.tml is in the components subdir, Layout.java is in the component package, I have a LayoutTest.tml in test packag

is tapestry.formos.com still accepted new projects?

2009-09-24 Thread Vladimir Solomenchuk
Hello, possibly, this is wrong place for asking this question, but anyway. I'd like to create new project related to integration of tapestry5 and dojo, but after two weeks of awaiting approval still no answer. regards, Vladimir Solomenchuk ---

Multiple onActivate() methods ...

2009-09-24 Thread Gunnar Eketrapp
Hi! I have a page that may take a username as paramater. The main setup metod was named Object onActivate() { -- Fetch and process some data before rendering --- return null; } then I added a void onActivate(String username) { // Remember user to be used in other onActivate() metho

Re: Multiple onActivate() methods ...

2009-09-24 Thread Ilya Obshadko
Return true from onActivate () to prevent further processing. Or just use onActivate ( EventContext ctx ). (I was stuck at the same point about week ago and there was a small discussion about it. I still insist that current behavior is misleading.) On Thu, Sep 24, 2009 at 2:13 PM, Gunnar Eketrapp

Re: Multiple onActivate() methods ...

2009-09-24 Thread Peter Stavrinides
Hi Gunner, Sometimes activation parameters are unavoidable, when using them there is a lot to consider: - Type Coercion and Coercion errors - Variable number of arguments - Null / empty arguments - Flow control Better than having multiple onActivate() methods, use: Object onActivate(EventConte

Re: Multiple onActivate() methods ...

2009-09-24 Thread Vladimir Solomenchuk
another way is returning true as onActivate result - this will stop bubbling Object onActivate() { ... } Object onActivate(String username) { ... return true; } On 24.09.2009, at 14:13, Gunnar Eketrapp wrote: Hi! I have a page that may take a username as paramater. The main setup metod w

Re: Multiple onActivate() methods ...

2009-09-24 Thread Szemere Szemere
All this renewed talk about OnActivate, has finally piqued my interest in digging down into EventContext. i should get to it next week. I never looked at it before because there wasn't any documentation (18 months ago). If EventContext is easy to use, then it should really be the only way to acces

Re: Preventing Form Resubmission

2009-09-24 Thread Sebastian Hennebrueder
Hello, I described an approach without using Javascript. http://www.laliluna.de/tapestry-webframework-evaluation-test.html Best Regards Sebastian Benny Law schrieb: Thanks Geoff. I can't access this link for some reason, but I'll try again later. Here is my JavaScript (feel free to critique)

Re: is tapestry.formos.com still accepted new projects?

2009-09-24 Thread Banchi Liko
I think not, because Howard has left (or been fired) from Formos. On Thu, Sep 24, 2009 at 11:55 AM, Vladimir Solomenchuk wrote: > Hello, > > possibly, this is wrong place for asking this question, but anyway. > I'd like to create new project related to integration of tapestry5 and > dojo, but aft

Re: T5:how to inject slf4j service?

2009-09-24 Thread Otho
When you just use the maven archetype for starting a project everything works right out of the box. 2009/9/24 cleverpig > it's exactly,you should have a Logger service when tapestry startup.. > > but if i comment this function in AppModule,i would miss Logger service: > public Logger buildLogger

JSP replacement quiz

2009-09-24 Thread Gunnar Eketrapp
I am converting jsp that produces a table like ... 1 317 2 45 3 118 ... i,e. an index plus a count for that index. How should you folks do this? Is there a way with .tml to fix this or do I have to use Grid or write a component. JSP code === <% int level=1; %> ><%= level %>

Re: url control / forwarding ...

2009-09-24 Thread Thiago H. de Paula Figueiredo
Em Thu, 24 Sep 2009 05:31:07 -0300, Gunnar Eketrapp escreveu: Hi again! Hi! is called by external systems which I would like to forward to e.g. callbacks/MessageOfTheDay You can use URL rewriting for that, avoiding redirection: http://tapestry.apache.org/tapestry5.1/guide/url-rewritin

Re: Validation on textfields in a grid?

2009-09-24 Thread Thiago H. de Paula Figueiredo
Try accessing the Grid elements using the row parameter and use the validation done by the validate parameter instead of doing it yourself. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago --

Re: Layout

2009-09-24 Thread Thiago H. de Paula Figueiredo
Em Thu, 24 Sep 2009 06:05:55 -0300, Mario Udina escreveu: Hello! Hi! I am having an issue with the layout component, following the layouttutorial I am unable to get the layout to work. Layout.tml is in the components subdir, Layout.jav

Re: Multiple onActivate() methods ...

2009-09-24 Thread Thiago H. de Paula Figueiredo
Em Thu, 24 Sep 2009 07:21:22 -0300, Ilya Obshadko escreveu: (I was stuck at the same point about week ago and there was a small discussion about it. I still insist that current behavior is misleading.) Hi, Ilya! I still don't get why you think the current behavior is misleading (at least

Re: T5:how to inject slf4j service?

2009-09-24 Thread cleverpig
i used maven to create the project. what's your mean about starting a project? run app in jetty with maven? 2009/9/24 Otho : > When you just use the maven archetype for starting a project everything > works right out of the box. > > 2009/9/24 cleverpig > >> it's exactly,you should have a Logger s

Re: JSP replacement quiz

2009-09-24 Thread Thiago H. de Paula Figueiredo
Em Thu, 24 Sep 2009 09:31:16 -0300, Gunnar Eketrapp escreveu: I am converting jsp that produces a table like ... 1 317 2 45 3 118 ... i,e. an index plus a count for that index. How should you folks do this? Is there a way with .tml to fix this or do I have to use Grid or wri

Re: passing a service into a component as a parameter

2009-09-24 Thread david.boyce
Thanks that's really useful and does exactly what we want, it's not a problem for us to make all our controller interfaces extend a marker type. Cheers Dave joshcanfield wrote: > > I'm assuming that your users aren't uploading the components or the > services, just the pages? > > If you use

Re: passing a service into a component as a parameter

2009-09-24 Thread david.boyce
Thiago, I will raise a jira for this, but joshcanfield has supplied a workaround that works really well, so this isn't an issue for us any more. Dave Thiago H. de Paula Figueiredo wrote: > > Em Mon, 21 Sep 2009 10:28:48 -0300, david.boyce > escreveu: > >> It just seems to me that being a

Re: Layout

2009-09-24 Thread Mario Udina
On Thu, Sep 24, 2009 at 2:52 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Thu, 24 Sep 2009 06:05:55 -0300, Mario Udina > escreveu: > > Hello! >> > > Hi! > > I am having an issue with the layout component, following the >> layout

RE: Validation on textfields in a grid?

2009-09-24 Thread Newham, Cameron
Hi Thiago, Thank you, but I'm not quite clear on what you mean. The row parameter is only accessing my data from the source parameter, not the components themselves. Also, I am not clear about validation through the validate parameter - is there an example of this I can look at? However, I have

Antwort: Re: Proceeding after failed authorization checks

2009-09-24 Thread dirk . lattermann
"Thiago H. de Paula Figueiredo" schrieb am 23.09.2009 13:20:21: > Hi! > > > In the howto, if a user that is not logged in tries to access a private > > page, the login page is shown (which may or may not be a sufficient > > solution there), using response.sendRedirect(). > > In my case, the us

Re: Validation on textfields in a grid?

2009-09-24 Thread Thiago H. de Paula Figueiredo
Em Thu, 24 Sep 2009 10:19:37 -0300, Newham, Cameron escreveu: Hi Thiago, Hi! The row parameter is only accessing my data from the source parameter, not the components themselves. I just remembered that Grids inside Forms typically only work when you use the row parameter. Also, I a

A survey about redeployment time in the Java EE world

2009-09-24 Thread Thiago H. de Paula Figueiredo
http://www.zeroturnaround.com/blog/java-ee-container-redeploy-restart-turnaround-report/ It makes one very compelling reason to use Tapestry 5: live class reloading avoids almost most redeploys related to the web tier. :) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer

RE: Validation on textfields in a grid?

2009-09-24 Thread Newham, Cameron
Thanks again Thiago. Yes, my fault for not saying exactly what I wanted to achieve. I agree that one can iterate over the values in the source and check them, but I need to mark the field/fields which fail validation on the form with: tagForm.recordError(keywordField, "Please provide a value");

Re: A survey about redeployment time in the Java EE world

2009-09-24 Thread Ilya Obshadko
Live class reloading is a great feature. But I couldn't figure out yet how one should configure, for example, Tomcat 6 in development environment to avoid redeployments after each and every change in the code. Are there any solutions? I use Eclipse, if it makes sense. On Thu, Sep 24, 2009 at 5:39

Re: A survey about redeployment time in the Java EE world

2009-09-24 Thread Thiago H. de Paula Figueiredo
Em Thu, 24 Sep 2009 10:46:31 -0300, Ilya Obshadko escreveu: Live class reloading is a great feature. But I couldn't figure out yet how one should configure, for example, Tomcat 6 in development environment to avoid redeployments after each and every change in the code. Are there any solu

Re: Validation on textfields in a grid?

2009-09-24 Thread Thiago H. de Paula Figueiredo
Em Thu, 24 Sep 2009 10:46:10 -0300, Newham, Cameron escreveu: Thanks again Thiago. Yes, my fault for not saying exactly what I wanted to achieve. I agree that one can iterate over the values in the source and check them, but I need to mark the field/fields which fail validation on the form

Re: form that create an object

2009-09-24 Thread limonn
I have a @Property annotation but still is not working. I tried many guys and is not working so far the last thing was: : : : and I get: Fa

Re: form that create an object

2009-09-24 Thread Thiago H. de Paula Figueiredo
Em Thu, 24 Sep 2009 10:53:41 -0300, limonn escreveu: t:validate="required,minlength=3" size="30"/> Failure parsing template context:TestForm.tml: Component id 'user.lastName' is not valid; component ids must be valid Java identifiers: start with a letter, and consist of letters,

Re: A survey about redeployment time in the Java EE world

2009-09-24 Thread Ilya Obshadko
> > Live class reloading is a great feature. >> But I couldn't figure out yet how one should configure, for example, >> Tomcat 6 in development environment to avoid redeployments after each and >> every >> change in the code. Are there any solutions? >> > > Use Jetty instead: faster, simpler, more

Re: A survey about redeployment time in the Java EE world

2009-09-24 Thread Juan E. Maya
llya i use Sysdeo http://www.eclipsetotale.com/tomcatPlugin.html for tomcat inside Eclipse. It allows to detect changes in the java fiese without the need of a context reload. The changes detected are limited but it's a pretty boost for my productivity. On Thu, Sep 24, 2009 at 3:56 PM, Ilya Obshad

Re: A survey about redeployment time in the Java EE world

2009-09-24 Thread Vangel V. Ajanovski
On 24.09.2009 15:39, Thiago H. de Paula Figueiredo wrote: http://www.zeroturnaround.com/blog/java-ee-container-redeploy-restart-turnaround-report/ It makes one very compelling reason to use Tapestry 5: live class reloading avoids almost most redeploys related to the web tier. :) Hi, I would

Re: A survey about redeployment time in the Java EE world

2009-09-24 Thread Thiago H. de Paula Figueiredo
Em Thu, 24 Sep 2009 10:56:17 -0300, Ilya Obshadko escreveu: I'm totally OK with Jetty, but it demonstrates pretty the same behavior if running inside Eclipse IDE server adaptor. Probably I'm missing something obvious? I run Jetty in embedded mode: add it to the classpath (using Maven, w

Re: A survey about redeployment time in the Java EE world

2009-09-24 Thread Thiago H. de Paula Figueiredo
Em Thu, 24 Sep 2009 11:28:09 -0300, Vangel V. Ajanovski escreveu: Hi, I would really like to have live class reloading but it doesn't work for all classes because I use the pattern with Spring and Hibernate described at: http://wiki.apache.org/tapestry/Tapstry5First_project_with_Tapestry5%2C_

Please help

2009-09-24 Thread Gerald Bauer
Hi all, For the past few months I've been enthusiastically evangelizing about Tapestry 5 and how great it is. We were supposed to use it in an upcoming project however, today there was a serious objection from some of our team members about the adoption of Tapestry in our company. These guys have

DWR and Tapestry5

2009-09-24 Thread sodium
Hi, i've been trying to integrate dwr into Tapestry5 but it seems that i keep failing and failing. No error was reported but when i tried to access the /dwr/engine.js directly, its not found. I have already included in my AppModule to ignore the dwr with the following: public static void contrib

Re: Please help

2009-09-24 Thread Thiago H. de Paula Figueiredo
Em Thu, 24 Sep 2009 11:40:45 -0300, Gerald Bauer escreveu: Hi all, Hi! They presented evidence that Tapestry has a bad track record on backwards compatibility. The Tapestry team is committed to not make any more backwards-incompatible versions. Tapestry 5's architecture provide us a l

Re: DWR and Tapestry5

2009-09-24 Thread Thiago H. de Paula Figueiredo
Have you tried Tapestry 5.1.0.5? I can't recall if the ignored paths filter was already present in 5.0.18, which is a beta version. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago --

Re: DWR and Tapestry5

2009-09-24 Thread P . Stavrinides
Yes I had it working, until I found out the hard way that DWR has issues with reverse proxies (mod_jk / mod_ajp), so had to scrap it. Its not to hard to get it working right, just be sure that you configure the servlet correctly, this is what my web.xml config looked like:

Re: DWR and Tapestry5

2009-09-24 Thread Peter Stavrinides
> I can't recall if the ignored paths filter was already present in 5.0.18 pretty sure it was Thiago cheers, Peter -- If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please vis

Re: DWR and Tapestry5

2009-09-24 Thread P . Stavrinides
Okay so here is a quick sample I dug up: