NPE from unit testing with equanda-tapestry5

2010-07-27 Thread Dongmei Cao
Hi, I use the equanda/Tabs in my web application. It actually works pretty well except it throws NPE in unit testing: ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: java.lang.NullPointerException java.lang.NullPointerException at org.equ

Re: Using PageResponseRenderer.render() in T5.2?

2010-07-27 Thread Kalle Korhonen
On Tue, Jul 27, 2010 at 2:12 PM, Christophe Cordenier wrote: > Right, not being able to use form component in exception page is a problem. > But i still believe that using a redirect or a send error  better suits for > security concerns. Also, active page is also used to identify loopback URL > th

Re: Using PageResponseRenderer.render() in T5.2?

2010-07-27 Thread Christophe Cordenier
Right, not being able to use form component in exception page is a problem. But i still believe that using a redirect or a send error better suits for security concerns. Also, active page is also used to identify loopback URL that decides whether or not to reset page on loopback... That's why i ha

Re: T5.1.05 always runing slowly when it handle the page requests

2010-07-27 Thread cleverpig
Cool! Maybe I will listen for tapestry network activity on internal network.let's look forward. PS:here is a way to ignore woodstox DTD: http://old.nabble.com/Woodstox-SAX-parser,-how-to-ignore-DTD-declarations--td23253867.html On Tue, Jul 27, 2010 at 6:54 PM, Christophe Cordenier wrote: > Hi >

Re: T5: AjaxCheckbox

2010-07-27 Thread Dmitriy Vsekhvalnov
Guys anyone? Is it not possible with T5? On Tue, Jul 20, 2010 at 8:10 PM, Dmitriy Vsekhvalnov wrote: > Hello all, > i have a question about ajax form submission in T5. I was needed > checkbox implementation which 'onClick' submits entire form linked to zone > (wrapped inside zone). > > I end

Re: JasperReports / Chenillekit-reports documentation

2010-07-27 Thread Rich
Hi again, well it seems the source code wasn't that involved, just a nice wrapper mostly over the file formats. It doesn't seem to have built-in JDBC connection support, so I wrote a modified version that takes an Object for dataSource and then dictates the proper JasperFillManager.FillReport

Re: Using PageResponseRenderer.render() in T5.2?

2010-07-27 Thread Kalle Korhonen
On Tue, Jul 27, 2010 at 8:05 AM, Christophe Cordenier wrote: > 2010/7/27 Kalle Korhonen >> Very good, that's what I thought. Makes sense now why calling it in >> PageResponseRender may not necessarily be the right place but there >> doesn't seem to be a lot of wiggle room for this case. Well I tr

Re: Using PageResponseRenderer.render() in T5.2?

2010-07-27 Thread Kalle Korhonen
On Mon, Jul 26, 2010 at 11:48 PM, Christophe Cordenier wrote: > 2010/7/26 Kalle Korhonen >> SecurityFilter is a ComponentRequestFilter. If I contribute it right >> after "InitializeActivePageName", the fairly comprehensive integration >> tests for the module pass so it seems that would do it. Sho

Re: T5 Varargs in service methods

2010-07-27 Thread Howard Lewis Ship
Interesting; probably a bug, possibly in Javassist. On Tue, Jul 27, 2010 at 8:44 AM, joris wrote: > Hi, > > if I implement a method with varargs in a tapestry service and try then > to call it without parameters, I get the following exception: > > java.lang.LinkageError: loader constraint violati

T5 Varargs in service methods

2010-07-27 Thread joris
Hi, if I implement a method with varargs in a tapestry service and try then to call it without parameters, I get the following exception: java.lang.LinkageError: loader constraint violation: when resolving interface method "..." the class loader (instance of org/apache/tapestry5/internal/services

Re: Using PageResponseRenderer.render() in T5.2?

2010-07-27 Thread Christophe Cordenier
2010/7/27 Kalle Korhonen > On Mon, Jul 26, 2010 at 11:48 PM, Christophe Cordenier > wrote: > > 2010/7/26 Kalle Korhonen > >> SecurityFilter is a ComponentRequestFilter. If I contribute it right > >> after "InitializeActivePageName", the fairly comprehensive integration > >> tests for the module

AjaxFormLoop insists on being a ? Or how to control where add row inserts.

2010-07-27 Thread LLTYK
I'm trying to use AjaxFormLoop with two rows per iteration, with "". It lays out fine, but when it comes down to adding a row, it stuffs it on top of the table header. Using it as one row with appears to work just fine, appending to the bottom of the table. Is there a way around the two row beha

Re: Using PageResponseRenderer.render() in T5.2?

2010-07-27 Thread Kalle Korhonen
On Mon, Jul 26, 2010 at 11:48 PM, Christophe Cordenier wrote: > 2010/7/26 Kalle Korhonen >> SecurityFilter is a ComponentRequestFilter. If I contribute it right >> after "InitializeActivePageName", the fairly comprehensive integration >> tests for the module pass so it seems that would do it. Sho

Re: T5.1.05 always runing slowly when it handle the page requests

2010-07-27 Thread Christophe Cordenier
Hi We have found a similar issue that is due to woodstox DTD caching strategy, it stores java.net.URL objects as keys, but URL tries to access to network in its hashCode method. Can you check your network and hostname resolution on your platform ? 2010/7/27 cleverpig > yes,I tried.but it's just

Re: [T5.1] No recursive component -> Howto render Beaneditor in code?

2010-07-27 Thread Oliver Bauer
Hi Ville, thanks for your answer, but i didn't see how to do it. I will try to explain my problem more in detail (sorry for my bad english): We are using a component that is similar to [1] with the main difference that we don't use a "getTreeNodes", we use a "getTreeRoot" (e.g. single element, n

Re: Obtain values from the ValidationTracker

2010-07-27 Thread Juan E. Maya
Thanks Thiago, Yes they are set but only when the field is rendered. The problem is that we want to obtain the value during the SetupRender of the page that shows the error messages. Here the values are still not set although the values in the form do keep the initial input. Thanks as always for

Re: T5.1.05 always runing slowly when it handle the page requests

2010-07-27 Thread cleverpig
yes,I tried.but it's just not reason.since it works at my dev host by debug log level. On Tue, Jul 27, 2010 at 3:07 PM, Ville Virtanen wrote: > > Hi > > also make sure that you are NOT logging too much in production, that can > REALLY kill performance. So change logging level to error and try it

Re: [T5.1] No recursive component -> Howto render Beaneditor in code?

2010-07-27 Thread Ville Virtanen
Hi, @InjectComponent injects the component defined in tml, @Component injects instance that is configured by the annotation itself (and the associated tml if it is defined there also). http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/annotations/Component.html - Ville Oliv

Re: T5.1.05 always runing slowly when it handle the page requests

2010-07-27 Thread Ville Virtanen
Hi also make sure that you are NOT logging too much in production, that can REALLY kill performance. So change logging level to error and try it again. - Ville cleverpig-2 wrote: > > Oh,thanks Joachim ! > > Seem like your strange problem,my product hosts were deployed in > internal network.

[T5.1] No recursive component -> Howto render Beaneditor in code?

2010-07-27 Thread Oliver Bauer
Hi, we have noted that T5 doesn't allow recursive components[1], so we are currently doing something like this: We reference our component in an arbritrary tml like this: The code stub of the component: boolean setupRender(MarkupWriter writer) {   // write some opening div } void beforeRende