NPE when using Response.sendRedirect(String url) to forward to offsite address.

2009-10-12 Thread Martin Reurings
Hi everyone, For various reasons (that are good enough for our team ;) ) we have to make use of a sendRedirect to forward to an offsite url. This works fine when I do so from an event, such as @OnEvent(value=EventConstants.SUCCESS) but throws a NPE when attempting to do so from any phase of t

Re: Re: T5, tapestry-spring-security, slf4j MDC

2009-10-12 Thread Borut Bolčina
Hello, I simplified the code so it does not use RequestGlobals which was giving me NULL for this.requestGlobals.getHTTPServletRequest() AppModule.java = ... binder.bind(HttpServletRequestFilter.class, RequestLoggingFilter.class).withId("RequestLoggingFilter");

Re: Problems using upload inside an ajax zone

2009-10-12 Thread Sergey Didenko
All solutions are either java/flash based or pretty hacky. See http://stackoverflow.com/questions/166221/how-to-upload-file-jquery - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: us

Re: NPE when using Response.sendRedirect(String url) to forward to offsite address.

2009-10-12 Thread cordenier christophe
Hello Try by returning a java.net.URL from your activate method. This should work i think. Regards, Christophe. 2009/10/12 Martin Reurings > Hi everyone, > > For various reasons (that are good enough for our team ;) ) we have to make > use of a sendRedirect to forward to an offsite url. This w

t5: redirect to a page in javascript?

2009-10-12 Thread Angelo Chen
Hi, How to redirect to another page in a javascript? example: function do_proc() { saveupdates() window.location="items" } this does not work, any idea? Thanks, -- View this message in context: http://www.nabble.com/t5%3A-redirect-to-a-page-in-javascript--tp258

Re: NPE when using Response.sendRedirect(String url) to forward to offsite address.

2009-10-12 Thread Martin Reurings
Hi Cristophe, Thanks for pointing that out, you're a legend! Works a charm! Even after working with T5 for 2 years orso I still get stumped by how simple some solutions are ;) Regards, Martin cordenier christophe wrote: Hello Try by returning a java.net.URL from your activate method. This

Re: t5: calling action link from a javascript

2009-10-12 Thread Toby Hobson
You can't really rely on Tapestry expansions inside JS code ... it's best to use the RenderSupport to pass data to the Javascript. You may find this wiki post helpful: http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained 2009/10/12 Angelo Chen > > Hi Toby, > > It got called in the fir

Re: t5: calling action link from a javascript

2009-10-12 Thread Toby Hobson
You may get away with using an expansion as explained here: http://wiki.apache.org/tapestry/Tapestry5HowToIncludeJavaScript but I think RenderSupport is still the better option 2009/10/12 Toby Hobson > You can't really rely on Tapestry expansions inside JS code ... it's best > to use the RenderS

Cursor in first empty filed - problem with FormFragment?

2009-10-12 Thread Maximilian Weißböck
T5 has a very nice usability feature, on a form it puts the cursor in the first empty textfield. But this seems not to work, if there is a FormFragment involved. On the LoginPage, where I have a form with username and password and a FormFragment with email (to request password reset), the non

Re: t5 and fckeditor component

2009-10-12 Thread Roy Douglas
Hi, I use tapestry 5.1.05, I downloaded chenillekit-core-1.1.0.jar and chenillekit-tapestry-1.1.0.jar and put it WEB-INF/lib, and I got ava.lang.NoClassDefFoundError: org/apache/commons/configuration/Configuration error. I'm new to tapestry, is there any place I can have document on how to use c

Tapestry5.1 Upgrade Issue

2009-10-12 Thread Dave Greggory
I'm trying to upgrade to Tapestry 5.1 from 5.0.18. The Select field component is giving me some errors. I'm using a Spring application context that is externally maintained (tapestry.use-external-spring-context) and have 4 instances of java.util.Locale (named locale_DE, locale_FR, locale_UK, lo

Re: t5 and fckeditor component

2009-10-12 Thread Thiago H. de Paula Figueiredo
Em Mon, 12 Oct 2009 12:15:44 -0300, Roy Douglas escreveu: Hi, I use tapestry 5.1.05, I downloaded chenillekit-core-1.1.0.jar and chenillekit-tapestry-1.1.0.jar and put it WEB-INF/lib, and I got ava.lang.NoClassDefFoundError: org/apache/commons/configuration/Configuration error. You'll need

Re: Tapestry5 IoC and Request problem

2009-10-12 Thread cuartz
Someone who can help??? i accept any advice -- View this message in context: http://www.nabble.com/Tapestry5-IoC-and-Request-problem-tp25813570p25859358.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: t5 and fckeditor component

2009-10-12 Thread Kalle Korhonen
On Mon, Oct 12, 2009 at 8:46 AM, Thiago H. de Paula Figueiredo wrote: > Em Mon, 12 Oct 2009 12:15:44 -0300, Roy Douglas > escreveu: > You'll need to put chenillekit-core in the classpath, maybe also > chenillekit-google and chenillekit-image. That's exatcly what makes Maven > shine the most: you

Re: Tapestry5 IoC and Request problem

2009-10-12 Thread Kalle Korhonen
That's because the injected request shadow in your service doesn't have the real request backing it up since the request wasn't processed by Tapestry5 but Tapestry 4. It's the same situation if call a service from say a Quartz job - you never had the request in the first place. You need to do it th

Re: Problem with error404

2009-10-12 Thread cordenier christophe
1. Create a class ErrorCode that will handle the error status and error message 2. Implement an ErrorCodeResultProcessor public class ErrorCodeResultProcessor implements ComponentEventResultProcessor { private final Response response; public ErrorCodeResultProcess

Re: Problem with error404

2009-10-12 Thread cordenier christophe
Hello The previous solution is based on the same idea than returning a javax.net.URL or Tapestry Link, i'm not sure this is the best thing to do but it works. Regards, Christophe. 2009/10/12 cordenier christophe > 1. Create a class ErrorCode that will handle the error status and error > message

Re: Tapestry5 IoC and Request problem

2009-10-12 Thread cuartz
Ok thanks, now i understand, unfortunately i cant change that parameter on the services, but now that i know whats happends i can think on a solution, if someone had a solution or an advice let me know. Thanks Kalle and Thiago -- View this message in context: http://www.nabble.com/Tapestry5-IoC-

Re: t5 and fckeditor component

2009-10-12 Thread Roy Douglas
Thanks Thiago, sorry if it sounds stupid, I follow the description from http://tapestry.formos.com/wiki/display/T5IDEINT/Eclipse+%28including+Maven%29 to set up my environment, I really don't know how to put chenillekit in to my maven project, is there any tutorial I can reference from ? R

Re: t5 and fckeditor component

2009-10-12 Thread Thiago H. de Paula Figueiredo
Em Mon, 12 Oct 2009 16:36:44 -0300, Roy Douglas escreveu: Thanks Thiago, sorry if it sounds stupid, I follow the description from http://tapestry.formos.com/wiki/display/T5IDEINT/Eclipse+%28including+Maven%29 to set up my environment, I really don't know how to put chenillekit in to

Re: Tapestry5.1 Upgrade Issue

2009-10-12 Thread Dave Greggory
Does any one have any ideas on why this is happening? Shouldn't tapestry be looking at the request to see which Locale it is for? Why is it going into Spring's application context? I'm not sure where to even start. I'm going try Tap 5.1 with tapestry-spring 5.0.18 to see whether that works. It

Re: Tapestry5.1 Upgrade Issue

2009-10-12 Thread Thiago H. de Paula Figueiredo
Em Mon, 12 Oct 2009 17:57:09 -0300, Dave Greggory escreveu: Does any one have any ideas on why this is happening? Shouldn't tapestry be looking at the request to see which Locale it is for? It does, but Tapestry adds Locale as something that is @Inject'able, not explecting to have Locale

Tapestry5.1 upgrade

2009-10-12 Thread Argo Vilberg
I'm trying to upgrade to Tapestry 5.1 from 5.0.14. I change ApplicationState->SessionState and also change *createPageLink*(Class

Re: Tapestry5.1 upgrade

2009-10-12 Thread Argo Vilberg
And also console log: 13.10.2009 1:00:53 org.apache.catalina.core.StandardContext start SEVERE: Error filterStart 13.10.2009 1:00:53 org.apache.catalina.core.StandardContext start SEVERE: Context [/digileping] startup failed due to previous errors FilterStart Error? #

Re: Tapestry5.1 upgrade

2009-10-12 Thread Thiago H. de Paula Figueiredo
Em Mon, 12 Oct 2009 19:06:17 -0300, Argo Vilberg escreveu: HTTP Status 404 - /digileping/ -- *type* Status report *message* */digileping/* *description* *The requested resource (/digileping/) is not available.* -- Take a look at the lo

Re: Tapestry5.1 upgrade

2009-10-12 Thread Thiago H. de Paula Figueiredo
Em Mon, 12 Oct 2009 19:14:07 -0300, Argo Vilberg escreveu: INFO: validateJarFile(C:\Program Files\Apache Software Foundation\apache-tomcat-5.5.26\webapps\digileping\WEB-INF\lib\servlet-api-2.4.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet

Re: Tapestry5.1 upgrade

2009-10-12 Thread Argo Vilberg
ok i deleted servlet-api-2.4.jarbut nothing change. # JRebel 2.1a (200910071200) (c) Copyright ZeroTurnaround, Ltd, 2007-2009. All rights reserved. A rough estimate: Over the last 1 days JRebel prevented the need for at least 8 re

Re: Tapestry5.1 upgrade

2009-10-12 Thread Andreas Andreou
Hint: Offending class: javax/servlet/Servlet.class On Tue, Oct 13, 2009 at 1:22 AM, Argo Vilberg wrote: > ok i deleted servlet-api-2.4.jarbut nothing change. > > > > # > >  JRebel 2.1a (200910071200) >  (c) Copyright ZeroTurnaround, Ltd,

Re: Tapestry5.1 upgrade

2009-10-12 Thread Thiago H. de Paula Figueiredo
Em Mon, 12 Oct 2009 19:22:05 -0300, Argo Vilberg escreveu: ok i deleted servlet-api-2.4.jarbut nothing change. You have to take a look at the Tomcat log to see what was the exception. No stack trace, no way to find out what happened. -- Thiago H. de Paula Figueiredo Independent Java con

Re: Tapestry5.1 upgrade

2009-10-12 Thread Argo Vilberg
I get over this error: Hint: Offending class: javax/servlet/Servlet.class In tomcat log are ERROR: ERROR main org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/digileping] - Exception starting filter digileping java.lang.NoClassDefFoundError: org/hibernate/Session at java.lang.Clas

Re: Tapestry5.1 upgrade

2009-10-12 Thread Argo Vilberg
If i removetapestry-hibernate-5.1.0.5.jar tapestry-hibernate-core-5.1.0.5.jar tapestry-spring-5.1.0.5.jar then works. 2009/10/13 Argo Vilberg > I get over this error: > Hint: Offending class: javax/servlet/Servlet.class > > > In tomcat log are ERROR: > > ERROR main > org.apache.catalina.core.C

Upgrade to 5.1.0.5 submitbutton problem

2009-10-12 Thread Argo Vilberg
In 5.0.14 my submit buttons works fine. But in 5.1.0.5 are not. If i click to submit form no action take place. why? In tapestry 5.0.14 HTML code i see : But in 5.1.0.5 HTML code: Argo

Re: Upgrade to 5.1.0.5 submitbutton problem

2009-10-12 Thread Thiago H. de Paula Figueiredo
Em Mon, 12 Oct 2009 20:24:49 -0300, Argo Vilberg escreveu: In 5.0.14 my submit buttons works fine. No error message, we can't help you. Use Firebug or Web Developer (Firefox plugins) to find out what error happened. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer

Re: Using Checkboxe on t:grid or table

2009-10-12 Thread Geoff Callender
Do these examples help? http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/component/coreinputcomponents http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/gridwithdeletecolumn1 http://jumpstart.doublenegative.com.au:8080/jumpstart/example

Re: Upgrade to 5.1.0.5 submitbutton problem

2009-10-12 Thread Igor Drobiazko
There were several submit bugs in 5.1.0.5 which are fixed in 5.2 snapshots. Take a look at these two, maybe you have one of these issues. You didn' post your template, so it is really hard to figure out your problem. https://issues.apache.org/jira/browse/TAP5-711 https://issues.apache.org/jira/br