ValueEncoder stopped working in 5.017

2008-12-04 Thread yosemite
Hello, the attached code worked fine in 5.011 but in 5.017 it blows up saying: Render queue error in BeforeRenderTemplate[Index:select]: Failure reading parameter 'encoder' of component Index:select: Could not find a coercion from type org.example.myapp.util.IntegerEncoder to type org.apache.tapes

Re: [T5] Palette NPE

2008-12-04 Thread zack1403
Alright, my list I was feeding palette was set to final and was instantiated with a new list. By removing the final and instantiation the issue went away. Should I file this as a bug? Zack zack1403 wrote: > > Happening again using GenericSelectModel for model and encoder. Anyone > have any

Re: rendering unclosed tags - a petition to fix before 5.1

2008-12-04 Thread Francois Armand
Steven Woolley wrote: Can I petition that the closing tags not being rendered also be fixed before 5.1? Not only did it cause invalid html, but also it actually affected the rendering [...] I seems quite important, but I believe it's not the good place for that : just open a bug and after, pu

Re: [T5] 5.0.16 Spanish special characters

2008-12-04 Thread Ray
I've put in logging on the java page when bringing back the message, and its coming out incorrectly with ? instead of the special characters, so its nothing to do with the html I believe. I've since learned that the fact that im using Windows may also be having an effect as it may be saving the fi

Re: [T5] 5.0.16 Spanish special characters

2008-12-04 Thread Jakub Vlasak
Hi, i've had similar problem with slovak character, and I've solved it ba adding the UTF-8 encoding parameter to the java compiler. Edit the pom.xml file, the maven-compiler-plugin like this: org.apache.maven.plugins maven-compiler-plugin

Re: [T5] 5.0.16 Spanish special characters

2008-12-04 Thread Andy Pahne
That's whatI did as well, and it works here. Anyway: it also works, when the property files are ISO encoded (ASCII) and UTF-8 chars are properly escaped. Andy Jakub Vlasak schrieb: Hi, i've had similar problem with slovak character, and I've solved it ba adding the UTF-8 encoding paramet

Re: t5 tree component

2008-12-04 Thread Thiago H. de Paula Figueiredo
Em Thu, 04 Dec 2008 00:11:41 -0300, Yiqun Shi <[EMAIL PROTECTED]> escreveu: Is there a better implementation of tree component in T5? The one on wiki is not finished, and it is not easy to have it down. Tapestry has little example to follow... The Tapestry 5 front page cites this projec

Partial Event Bubbling from Component to Page

2008-12-04 Thread Charles Mason
Hi All, I have a problem which I wondering how best to solve. Basically I have several pages all with a grid of data on them and under that a custom component which is common to all these pages. The custom component has a load of user input components and two buttons a save and a discard changes b

[T5] Application Message Catalog not read

2008-12-04 Thread Stephane Decleire
Since 5.0.17, my localized messages are not read anymore from the application message catalog. My application message catalog is named backoffice.properties because my filter in web.xml is called backoffice and this file is located in the WEB-INF directory as explained in tapestry localization tuto

Re: [T5] Application Message Catalog not read

2008-12-04 Thread Howard Lewis Ship
Nothing there has changed; it's still based on the filter name. On Thu, Dec 4, 2008 at 6:02 AM, Stephane Decleire <[EMAIL PROTECTED]> wrote: > Since 5.0.17, my localized messages are not read anymore from the > application message catalog. > My application message catalog is named backoffice.prope

Re: rendering unclosed tags - a petition to fix before 5.1

2008-12-04 Thread Steven Woolley
> > > I seems quite important, but I believe it's not the good place for that : > just open a bug and after, put the link to it here - the T5 dev could miss > your post here, there is a lot of posts on this list. > The bug had been closed and moved to the 5.1 branch. I added my comment there http

Re: First try at tapestry-test with no success

2008-12-04 Thread Borut BolĨina
Hi, I created src/test/java/bb.sandbox/myapp/integration/IntegrationTests.java package bb.sandbox.myapp.integration; import org.apache.tapestry5.test.AbstractIntegrationTestSuite; import org.testng.annotations.Test; @Test(timeOut = 5, sequential = true) public class IntegrationTests extends

Re: rendering unclosed tags - a petition to fix before 5.1

2008-12-04 Thread Howard Lewis Ship
https://issues.apache.org/jira/browse/TAP5-401 Wil be fixed shortly. I'm deciding whether I should then generate 5.0.18 and put it to a vote. On Thu, Dec 4, 2008 at 9:01 AM, Steven Woolley <[EMAIL PROTECTED]> wrote: >> >> >> I seems quite important, but I believe it's not the good place for that

Re: t5.0.17: Tapestry-upload exception?

2008-12-04 Thread Howard Lewis Ship
This change is related to https://issues.apache.org/jira/browse/TAP5-272 On Wed, Dec 3, 2008 at 11:27 PM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a request filter which works in 5.0.15 but not working any more in > 5.0.17, the purpose is to capture exceptions in the uploading of

Re: rendering unclosed tags - a petition to fix before 5.1

2008-12-04 Thread Steven Woolley
woohoo! Thanks!Steve On Thu, Dec 4, 2008 at 11:12 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > https://issues.apache.org/jira/browse/TAP5-401 > > Wil be fixed shortly. I'm deciding whether I should then generate > 5.0.18 and put it to a vote. > > On Thu, Dec 4, 2008 at 9:01 AM, Steven Wo

RE: rendering unclosed tags - a petition to fix before 5.1

2008-12-04 Thread Blower, Andy
If you don't mind holding off a day, we'll be checking the fix for clustering ASO's tomorrow morning UK time. (today was just too full unfortunately) > -Original Message- > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > Sent: 04 December 2008 17:12 > To: Tapestry users > Subject: Re:

Re: rendering unclosed tags - a petition to fix before 5.1

2008-12-04 Thread Howard Lewis Ship
Oops. The vote went forward, but if there's a problem (there won't be, I tested) we can always cancel the vote and generate a new 5.0.18. On Thu, Dec 4, 2008 at 10:43 AM, Blower, Andy <[EMAIL PROTECTED]> wrote: > If you don't mind holding off a day, we'll be checking the fix for clustering > ASO

Re: [T5] Announce - TreeGrid component

2008-12-04 Thread jthompson209
yea an example of how to use this would be great, either that or if there is another simple to use tree component for T5 regards, Jeff Weisu wrote: > > > Hi Gabriel, I am trying to use your treegrid component in T5.0.14. Do you > have a simple example how to use it in T5? > Thanks in advance

Tapestry-Hibernate + Tapestry-Spring

2008-12-04 Thread Juan E. Maya
Hello, i am having some issues trying to use both modules together. Is this possible? I am getting an "Illegal attempt to associate a collection with two open sessions"; when i try to save my objects. Is there a way to inject the same used by Tapestry-Hibernate session to my daos? Right now i am i

Re: IoC registry survives between JUnit tests?

2008-12-04 Thread Christian Edward Gruber
FYI, in general, you shouldn't be using the container in your tests, unless you're testing the wiring itself. You should be creating the component/service under test, and constructing it with fakes. This isn't absolute but there is a lot more effort/configuration/overhead if you want to u

Re: IoC registry survives between JUnit tests?

2008-12-04 Thread Stephan Schwab
Christian Edward Gruber-2 wrote: > > FYI, in general, you shouldn't be using the container in your tests, > unless you're testing the wiring itself. You should be creating the > component/service under test, and constructing it with fakes. This > isn't absolute but there is a lot more ef

Re: IoC registry survives between JUnit tests?

2008-12-04 Thread Howard Lewis Ship
I use a mix of techniques, using a lot of mocks for true unit tests, but also a lot of integration tests. I'm not sure what CEG has actually seen here; Registry.shutdown() is very dramatic, it tears apart the registry (releasing almost everything to the GC) and informs all of the proxies to shutdo

Re: IoC registry survives between JUnit tests?

2008-12-04 Thread Christian Edward Gruber
Oh, not a critique of startup or shutdown performance on T5-ioc, but more of a general principle of unit testing components that participate in any IoC container. To test the component, you shouldn't need to use the container, because it's a "unit" test. But he said he was testing the wir

T5: IOC and Groovy

2008-12-04 Thread Angelo Chen
Hi, I like T5 IOC, is there a way to use T5 Ioc with Groovy in non web applications? Thanks. Angelo -- View this message in context: http://www.nabble.com/T5%3A-IOC-and-Groovy-tp20843124p20843124.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: t5.0.17: Tapestry-upload exception?

2008-12-04 Thread Angelo Chen
Hi Howard, Thanks, so uploadException is the solution, request filter not needed any more. then, how to catch the uploadException in the page? Angelo Howard Lewis Ship wrote: > > This change is related to https://issues.apache.org/jira/browse/TAP5-272 > > On Wed, Dec 3, 2008 at 11:27 PM, An

Advantages of various .tml storage locations?

2008-12-04 Thread James Hillyerd
What are the pros/cons of keeping page .tml in: 1. src/main/java vs 2. src/main/resources vs 3. src/main/webapp ? I see JumpStart uses #1, and the tutorial uses #3. Seems like it would easier to use #1 or #2 so at least the components and pages .tml are in the same directory tree. Tha

Re: Advantages of various .tml storage locations?

2008-12-04 Thread Christian Edward Gruber
Um... I didn't think you did/should store .tml's in /src/main/java. If you do, and you build with Maven, then they probably won't be copied over. But I think src/main/resources are primarily for components, because components can be built without having a web-app there - they're part of

Re: Advantages of various .tml storage locations?

2008-12-04 Thread Juan E. Maya
I like to keep them inside resource just because is easier to go there than to go all the way to WEB-INF. On Thu, Dec 4, 2008 at 11:15 PM, Christian Edward Gruber < [EMAIL PROTECTED]> wrote: > Um... I didn't think you did/should store .tml's in /src/main/java. If you > do, and you build with Mav

Re: T5: IOC and Groovy

2008-12-04 Thread Howard Lewis Ship
Tapestry generally doesn't care whether a class is Groovy or Java ... it all looks the same at runtime. I've built some demos using Groovy. It's not fully idiomatic Groovy, you tend to use more explicit types, as Tapestry actually does something useful with them. Also, Tapestry isn't going to re

Re: Advantages of various .tml storage locations?

2008-12-04 Thread Howard Lewis Ship
On Thu, Dec 4, 2008 at 2:15 PM, Christian Edward Gruber <[EMAIL PROTECTED]> wrote: > Um... I didn't think you did/should store .tml's in /src/main/java. If you > do, and you build with Maven, then they probably won't be copied over. +1 Watch out for that. I hate it when people say "Tapestry is

modules

2008-12-04 Thread Luther Baker
I've create a simple Module class that has a static bind method. I've placed the class in the *.services package. package my.app.services; public class MyAppModule { public static void bind(ServiceBinder binder) { binder.bind(ProjectManager.class, SimpleProjectManager.class); } } In a di

Re: t5.0.17: Tapestry-upload exception?

2008-12-04 Thread Howard Lewis Ship
Its an event that gets triggered on the page. On Thu, Dec 4, 2008 at 1:41 PM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi Howard, > > Thanks, so uploadException is the solution, request filter not needed any > more. then, how to catch the uploadException in the page? > > Angelo > > > Howard Lew

Re: modules

2008-12-04 Thread Howard Lewis Ship
It's not HiveMind, its Tapestry 5 IoC. Yes, there's explicit configuration. http://tapestry.apache.org/tapestry5/guide/conf.html On Thu, Dec 4, 2008 at 5:01 PM, Luther Baker <[EMAIL PROTECTED]> wrote: > I've create a simple Module class that has a static bind method. I've placed > the class in th

Re: IoC registry survives between JUnit tests?

2008-12-04 Thread Howard Lewis Ship
My point was that it was possible the IoC was being re-initialized on each test and it wasn't noticeable because its very fast. On Thu, Dec 4, 2008 at 12:39 PM, Christian Edward Gruber <[EMAIL PROTECTED]> wrote: > Oh, not a critique of startup or shutdown performance on T5-ioc, but more of > a gen

Re: modules

2008-12-04 Thread Luther Baker
Ah .. thanks Howard. I was looking at the IoC module pages and skipped the front altogether. One minor html note .. on the tapestry-core pages, the Tapestry Logo doesn't lead back to the front page. For example, the logo on http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry

Re: Partial Event Bubbling from Component to Page

2008-12-04 Thread Joost Schouten (mailing lists)
I think the event you want to handle is the EventConstants.SUCCESS on the Form component, the onSelectedFromSave is just a way to capture what button in your form has been clicked if I'm not mistaken. Try the following methods in both your component and see if they bubble @OnEvent(value = EventCon

Re: IoC registry survives between JUnit tests?

2008-12-04 Thread Christian Edward Gruber
Ah. Got it. Christian. On 4-Dec-08, at 21:41 , Howard Lewis Ship wrote: My point was that it was possible the IoC was being re-initialized on each test and it wasn't noticeable because its very fast. On Thu, Dec 4, 2008 at 12:39 PM, Christian Edward Gruber <[EMAIL PROTECTED]> wrote: Oh, not