discussion: why-did-you-stop-using-tapestry

2009-09-02 Thread Sergey Didenko
I think it would be interesting for us to read this discussion, just to concentrate again on what can be improved in T5. Also good comments can help the public image of T5. http://stackoverflow.com/questions/1303438/why-did-you-stop-using-tapestry -

Re: @core comitter - patch to beaneditform likely to be accepted?

2009-09-02 Thread Sebastian Hennebrueder
Hello, I created a patch including a test. I used it in an application and it works like a charm. https://issues.apache.org/jira/browse/TAP5-831 -- Best Regards / Viele Grüße Sebastian Hennebrueder - Software Developer and Trainer for Hibernate / Java Persistence http://www.laliluna.de

[ANN] JumpStart 4.5 released 1 September

2009-09-02 Thread Geoff Callender
Hi all, JumpStart 4.5 is now available. It has more AJAX examples than ever before (with many thanks to Inge Solvoll for creating the ZoneUpdater mixin!). Use it live: http://jumpstart.doublenegative.com.au:8080/jumpstart/ or download it: http://jumpstart.doublenegativ

Re: [ANN] JumpStart 4.5 released 1 September

2009-09-02 Thread Ivano Luberti
Does exists a similar set of examples for T4 ? Geoff Callender ha scritto: > Hi all, > > JumpStart 4.5 is now available. It has more AJAX examples than ever > before (with many thanks to Inge Solvoll for creating the ZoneUpdater > mixin!). > > Use it live: > > http://jumpstart.doublenegative

Re: [ANN] JumpStart 4.5 released 1 September

2009-09-02 Thread Geoff Callender
The T4 versions are less extensive than the latest version, but yes they do exist: http://jumpstart.doublenegative.com.au/download.html On 02/09/2009, at 8:50 PM, Ivano Luberti wrote: Does exists a similar set of examples for T4 ? Geoff Callender ha scritto: Hi all, JumpStart 4.5

Re: [ANN] JumpStart 4.5 released 1 September

2009-09-02 Thread Ivano Luberti
Geoff Callender ha scritto: > The T4 versions are less extensive than the latest version, of course :-D > but yes they do exist: > > http://jumpstart.doublenegative.com.au/download.html > thanks, this is a great work. -- == dott. Ivano Mari

t5: autocomplete mixin gets autofocus on field. I don't want that.

2009-09-02 Thread Britske
I have a textfield enriched with the autocomplete mixin. This field always gets the focus even though it isn't the first field of the form. Is there a way to disable this? I tried to circumvent this by having a javascript set the focus on another field, but without success: the autcomplete f

Can't get Testify & JUnit 4 & Mockito working

2009-09-02 Thread Mats Henricson
Hi! I've spent some time now trying to get Testify working. I do it according to the documentation, with an abstract base class like this: public abstract class AbstractPageTest extends TapestryTest { private static final String APP_PACKAGE = "com.expekt.web"; private static final Tapest

Re: Testify Base class com.formos.tapestry.testify.testng.TapestryTest is not in a controlled package

2009-09-02 Thread Paul Field
--- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail i

How o use tapestry hibernate.

2009-09-02 Thread Prajesh Kacha
Hello friends, I want to use hibernate in tapestry5. To do that I follow link ==> http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryHibernate but in this I have problem. I use maven to create project, after that I import .war file, then link source to "src/main/java", resource to "src/mai

Re: discussion: why-did-you-stop-using-tapestry

2009-09-02 Thread Thiago H. de Paula Figueiredo
Em Wed, 02 Sep 2009 05:12:10 -0300, Sergey Didenko escreveu: I think it would be interesting for us to read this discussion, just to concentrate again on what can be improved in T5. Also good comments can help the public image of T5. http://stackoverflow.com/questions/1303438/why-did-you-stop

Re: [ANN] JumpStart 4.4 released

2009-09-02 Thread Kalle Korhonen
On Tue, Sep 1, 2009 at 11:30 PM, Geoff Callender wrote: > The key to it is this snippet: "if the stuff you are setting up is not > needed for component event requests, consider putting it elsewhere". If I > understand your example correctly, the object you are creating IS needed for > a component e

Re: Testify Base class com.formos.tapestry.testify.testng.TapestryTest is not in a controlled package

2009-09-02 Thread Borut Bolčina
No text? 2009/9/2 Paul Field > > > --- > > This e-mail may contain confidential and/or privileged information. If you > are > not the intended recipient (or have received this e-mail in error) please > notify the sender immediately and delete this e-mail. Any unauthorized > copying, disclosure

Re: Can't get Testify & JUnit 4 & Mockito working

2009-09-02 Thread Paul Field
Hi Mats, > I then have a subclass with the JUnit 4 test: > > public class GamesLauncherTest extends AbstractPageTest { > > @ForComponents @Mock > private XyzManager xyzManager; > > @Mock > private XyzConfig xyzConfig; > > > What I get is runtime exceptions, such as this: > >

Re: [ANN] JumpStart 4.4 released

2009-09-02 Thread Geoff Callender
To set the scene: in the EditUser example, the user is displayed in a form and the user roles are displayed below it in a grid with ActionLinks for View, Edit, and Delete on each row. The reason it is OK to get the user roles in setupRender() is because they are not editable - all we need i

Maven test of tapestry core fails

2009-09-02 Thread Sebastian Hennebrueder
Hello, if I run the mvn test in tapestry-core, I get the following test failures failed tests: stylesheet_link(org.apache.tapestry5.internal.services.PartialMarkupDocumentLinkerTest) client_field_format_validation(org.apache.tapestry5.integration.IntegrationTests) date_field_inside_bean_edi

Re: Maven test of tapestry core fails

2009-09-02 Thread Ulrich Stärk
I ran the integration tests from within eclipse this morning and everything was fine. Try to find out what exactly is going wrong. I'm guessing some maven thing. Uli Sebastian Hennebrueder schrieb: Hello, if I run the mvn test in tapestry-core, I get the following test failures failed tests:

Re: T5.0.18 javascript error in IE on a datefield

2009-09-02 Thread DavidWei
It has been a month without reply. Really need help, Please!!! DavidWei wrote: > > I was trying to use datefield component to enter a date from builtin > calendar, but it showed a javascript error, this.pupup.clinePosition(...) > is null or not an object, when a calen

Re: Maven test of tapestry core fails

2009-09-02 Thread Howard Lewis Ship
It could be a problem with Selenium starting up Firefox. More details (i.e. the bug report showing exceptions) would be clear. On Wed, Sep 2, 2009 at 8:38 AM, Ulrich Stärk wrote: > I ran the integration tests from within eclipse this morning and everything > was fine. Try to find out what exactly

Re: Maven test of tapestry core fails

2009-09-02 Thread Sebastian Hennebrueder
I have no experience with Selenenium. Here are some traces from the created report pages This is the one to fail in internal api. There are 16 integration tests failing. See below java.lang.AssertionError: expected:<{"stylesheets":[{"href":"foo.css","media":"print"},{"href":"bar.css"}]}> but

Unit test form submission

2009-09-02 Thread Sebastian HennebrŸüder
Hello, Ulrich remind me to write a unit test for the patch I provided. https://issues.apache.org/jira/browse/TAP5-832 How to I properly test a form submission to submit no value and to test that the Hidden component throws an exception. Shall I use a PageTester http://tapestry.apache.org/t

Unit test form submission

2009-09-02 Thread Sebastian Hennebrueder
Hello, Ulrich remind me to write a unit test for the patch I provided. https://issues.apache.org/jira/browse/TAP5-832 How to I properly test a form submission to submit no value and to test that the Hidden component throws an exception. Shall I use a PageTester http://tapestry.apache.org/tapest

Re: Testify Base class com.formos.tapestry.testify.testng.TapestryTest is not in a controlled package

2009-09-02 Thread Paul Field
Hi Borut, It looks like the T5 page class also contain the tests. You need to have separate classes for the page and for the tests. To test components I create pages that I call "demo" pages (because they demonstrate the component). Also I would advise putting the test class in a different pac

T4.1 dynamically changing PageLink, DirectLink servlet root

2009-09-02 Thread Nathan Beemer
I want to be able to occassionaly change my PageLink and/or DirectLink URL's to reference a different servlet root so I can run them through a specific Servlet Filter as needed so if my tapestry app is configured at /foo/app, i'll sometimes want a Page to load from /foo/bar as well, any other urls

Re: Unit test form submission

2009-09-02 Thread Ulrich Stärk
Have a look at the org.apache.tapestry5.IntegrationTests class in src/test/. Uli Sebastian Hennebrueder schrieb: Hello, Ulrich remind me to write a unit test for the patch I provided. https://issues.apache.org/jira/browse/TAP5-832 How to I properly test a form submission to submit no value an

Re: [ANN] JumpStart 4.4 released

2009-09-02 Thread Kalle Korhonen
Thanks Geoff, no can't see any major issues. Agree on the initialization of roles in setupRender() since they really are used for rendering only. Heavy use of lazy getter-based initialization has gotten me into trouble before, but I may revisit my coding best practice. And that's really the only th

Newbie questions

2009-09-02 Thread Martin Torre Castro
Hello, I have some doubts I can't solve about passing values between pages and don't understand as I wish.Maybe you could help me. 1.-When I've got more than one onActivate() for a page with different kinds of arguments, for example: onActivate() { ...some_code_here... } onActivate(Long

Re: Newbie questions

2009-09-02 Thread Thiago H. de Paula Figueiredo
Em Wed, 02 Sep 2009 16:30:44 -0300, Martin Torre Castro escreveu: Hello, I have some doubts I can't solve about passing values between pages and don't understand as I wish.Maybe you could help me. Hi! 1.-When I've got more than one onActivate() for a page with different kinds of ar

Supporting multiple devices, eg. browser + mobile + TV

2009-09-02 Thread Alfie Kirkpatrick
Am wondering about ways to support this scenario cleanly in T5, where visual layout is very different per device but the page classes could be quite similar (clearly this depends to a large extent on whether devices have radically different page flows and layouts). One obvious approach would be

Re: Supporting multiple devices, eg. browser + mobile + TV

2009-09-02 Thread Thiago H. de Paula Figueiredo
Em Wed, 02 Sep 2009 18:10:56 -0300, Alfie Kirkpatrick escreveu: Am wondering about ways to support this scenario cleanly in T5, where visual layout is very different per device but the page classes could be quite similar (clearly this depends to a large extent on whether devices have radicall

Re: Testify Base class com.formos.tapestry.testify.testng.TapestryTest is not in a controlled package

2009-09-02 Thread Borut Bolčina
Paul, thanks VERY much for the explanations. I refactored my code to almost match your recomendation (I did not put stuff from src/main/resources into src/main/java). When running mvn clean test I get: FAILED: testElementIsOnPage java.lang.RuntimeException: Request was not handled: 'demo/DayMont

Re: Supporting multiple devices, eg. browser + mobile + TV

2009-09-02 Thread Carl Crowder
Thiago H. de Paula Figueiredo wrote: Em Wed, 02 Sep 2009 18:10:56 -0300, Alfie Kirkpatrick escreveu: Am wondering about ways to support this scenario cleanly in T5, where visual layout is very different per device but the page classes could be quite similar (clearly this depends to a large

Re: Supporting multiple devices, eg. browser + mobile + TV

2009-09-02 Thread Kalle Korhonen
On Wed, Sep 2, 2009 at 2:28 PM, Thiago H. de Paula Figueiredo wrote: > Em Wed, 02 Sep 2009 18:10:56 -0300, Alfie Kirkpatrick > escreveu: >> Am wondering about ways to support this scenario cleanly in T5, where >> visual layout is very different per device but the page classes could be >> quite sim

OnEvent mixin + sending component values

2009-09-02 Thread Bruno Santos
Hi all, First of all, i'm sorry if this as been asked befored, i googled it, checked javadocs, guides, and some source code but i'm afraid i couldn't find the answer. I'm trying to load a select with the chenille kit onevent mixin, the thing is, the value from the component from wich the event ge

Re: OnEvent mixin + sending component values

2009-09-02 Thread Thiago H. de Paula Figueiredo
Em Wed, 02 Sep 2009 19:36:40 -0300, Bruno Santos escreveu: Hi all, Hi! First of all, i'm sorry if this as been asked befored, i googled it, checked javadocs, guides, and some source code but i'm afraid i couldn't find the answer. Try the Nabble archive of this mailing list: http://www

Re: Supporting multiple devices, eg. browser + mobile + TV

2009-09-02 Thread Howard Lewis Ship
My "official line" on this kind of thing is that supporting multiple devices is really multiple applications. There's plenty of room for sharing in terms of back end data and maybe some abstract base classes, but a small device application (to be effective and liked) needs to be more than just the

RE: Supporting multiple devices, eg. browser + mobile + TV

2009-09-02 Thread Alfie Kirkpatrick
While I don't have a lot of experience in this I agree that different devices have wildly different CSS and Javascript support and simple CSS adaptation will rarely be enough, but a component could adapt its markup for different devices in some scenarios. I had the same thought amount a similar ap

Re: Supporting multiple devices, eg. browser + mobile + TV

2009-09-02 Thread Howard Lewis Ship
On Wed, Sep 2, 2009 at 4:36 PM, Alfie Kirkpatrick wrote: > While I don't have a lot of experience in this I agree that different > devices have wildly different CSS and Javascript support and simple CSS > adaptation will rarely be enough, but a component could adapt its markup > for different devic

upload component

2009-09-02 Thread Alfonso Quiroga
Hi ! I'm developing a small CMS system, where -obviously- a user can upload a file. I'm using T5 and I'm happy with it (by now I use tapestry-ioc instead of spring) My question is, has someone created a upload-component with progress bar? Maybe not, but... some idea where I can start looking? If I

Re: Supporting multiple devices, eg. browser + mobile + TV

2009-09-02 Thread Thiago H. de Paula Figueiredo
Em Wed, 02 Sep 2009 20:36:21 -0300, Alfie Kirkpatrick escreveu: So I think T5 helps separate concerns and assists in building multi-device apps (ie. it's a decent framework to do this in), but the framework itself could do more if this becomes something many web developers end up having to bu

Re: Supporting multiple devices, eg. browser + mobile + TV

2009-09-02 Thread Christian Edward Gruber
I'd go further - interfaces for the blind, for the hard of hearing - these are still more clients. If the user experience is going to be substantially altered, then you can "convert" from some meta-interface and have everything automatically expressed, but that often requires that the fram

Re: Tapestry-Spring and Spring 3.X

2009-09-02 Thread bestguy
"The only issue I came across is that T5.1 and Spring 3 are using two incompatible versions of Antlr library" Is there a workaround? Pages will not load after startup due to this. Excluding one or the other antlr deps will cause an error in either Tapestry or Spring. Lubor Gajda wrote: > >

Re: t5: autocomplete mixin gets autofocus on field. I don't want that.

2009-09-02 Thread Joachim Van der Auwera (PROGS bvba)
You can disable the autofocus handling in the form component. Joachim Britske wrote: I have a textfield enriched with the autocomplete mixin. This field always gets the focus even though it isn't the first field of the form. Is there a way to disable this? I tried to circumvent this by ha

Re: Tapestry-Spring and Spring 3.X

2009-09-02 Thread bestguy
Found a solution, upgrading to 3.0.0.M4 removes the use of the conflicting antlr class. You may need to do some creative maven excludes of antlr depending on what other deps you use (hibernate in my case) bestguy wrote: > > "The only issue I came across is that T5.1 and Spring 3 are using two