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: Hi

Re: [ANN] JumpStart 4.4 released

2009-09-02 Thread Kalle Korhonen
On Tue, Sep 1, 2009 at 9:50 PM, Geoff Callendergeoff.callender.jumpst...@gmail.com wrote: Good question. Yes, it does still seem to me to be best practice and no, I don't see it breaking the back button. Can you give an example? Assuming you use something else than session or client persistence

Re: [ANN] JumpStart 4.4 released

2009-09-02 Thread Sergey Didenko
Hi Kalle, It looks like you need to use onActivate() in your case. Could you give us a sample code, so we can understand you better? Regards, Sergey. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For

Re: [ANN] JumpStart 4.4 released

2009-09-02 Thread Geoff Callender
Hi Kalle, 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 event request so DO put it in onActivate(...).

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:

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:

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 Mario

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. input class=search t:minChars=3 t:frequency=0.2 t:type=textfield t:id=quickTextField t:mixins=autocompletearoer2 id=quickTextField name=Best type=text value=quickTextValue / This field always gets the focus even though it isn't the first

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

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

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 sergey.dide...@gmail.com 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.

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 paul.fi...@db.com --- 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,

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: Caused by:

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

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)

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

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 calendar

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

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

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

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

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

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

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... }

Re: Newbie questions

2009-09-02 Thread Thiago H. de Paula Figueiredo
Em Wed, 02 Sep 2009 16:30:44 -0300, Martin Torre Castro mad...@hotmail.com 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

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

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 alfie.kirkpatr...@ioko.com 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

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:

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 alfie.kirkpatr...@ioko.com 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

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 Figueiredothiag...@gmail.com wrote: Em Wed, 02 Sep 2009 18:10:56 -0300, Alfie Kirkpatrick alfie.kirkpatr...@ioko.com escreveu: Am wondering about ways to support this scenario cleanly in T5, where visual layout is very different per device but

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

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 bitbet...@gmail.com 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

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

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 Kirkpatrickalfie.kirkpatr...@ioko.com 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

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 alfie.kirkpatr...@ioko.com 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

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