Re: Read only bindings - How do I set their value from a mixin?

2013-03-26 Thread Lance Java
I think that the ParameterWorker is outside of my comfort zone. I'll leave it the tapestry dev team's capable hands. Feel free to use the selenium test from my patch. On 26 March 2013 16:57, Lance Java wrote: > > As I've said in the dev mailing list... this should be fixed in the way > Tapestr

Re: Read only bindings - How do I set their value from a mixin?

2013-03-26 Thread Lance Java
> As I've said in the dev mailing list... this should be fixed in the way Tapestry handles parameters Damn!! Wish I'd read this before I started > To me it's clear how to make it do what I want. The question how should the symbol binding work In my opinion, if a binding is invariant, I think a Per

Re: Read only bindings - How do I set their value from a mixin?

2013-03-26 Thread Barry Books
> The code that handles the parameters is in the parameter worker. I think it > could be fixed here but it's a bit messy. The real problem is the symbol > binding is invariant but you want to set it. Should that be an error or not? From looking at the code it's clear the symbol binding can ju

Re: Can't build tapestry 5.3

2013-03-26 Thread Lance Java
> Are you able to build without tests? Yes, I am > Have you scanned through http://tapestry.apache.org/building-tapestry-from-source.html to make sure you didn't miss anything? Yes FYI I can build trunk (master) and run the tests It's just when I switch to the 5.3 branch that I get the error... s

Re: Read only bindings - How do I set their value from a mixin?

2013-03-26 Thread Thiago H de Paula Figueiredo
On Tue, 26 Mar 2013 12:36:07 -0300, Lance Java wrote: FYI, I've created a Jira ticket and attached a patch based on PerThreadValue for literal, message and symbol bindings. The patch includes a unit test and a selenium test. As I've said in the dev mailing list, if possible (and I don't kno

Re: Wizard Component

2013-03-26 Thread Lance Java
If you want to avoid @Persist, you might want to consider using one big form on a single page. You can then use javascript (and maybe a bit of ajax) to show/hide small segments of your form at a time. On 26 March 2013 13:50, Chris Cureau wrote: > To follow up on what Thiago has said... I've had

Re: Read only bindings - How do I set their value from a mixin?

2013-03-26 Thread Lance Java
FYI, I've created a Jira ticket and attached a patch based on PerThreadValue for literal, message and symbol bindings. The patch includes a unit test and a selenium test. https://issues.apache.org/jira/browse/TAP5-2099 Could one of the tapestry comitters please take a look? Thanks, Lance. On 2

Re: Ways to trigger on value change for the select component

2013-03-26 Thread Ivan Khalopik
It depends on your task. If it is related to validation you can campare values in onValidate handler: @OnEvent(value=EventConstants.VALIDATE, component="mySelect") void validateMaySelect(MyValue newValue) { if (!myValue.equals(newValue)) { // your code here } } Or you can use getter a

Re: Wizard Component

2013-03-26 Thread Chris Cureau
To follow up on what Thiago has said... I've had good luck with thexe examples from the Jumpstart: http://jumpstart.doublenegative.com.au/jumpstart/examples/wizard/usingformfragments/$N/$N http://jumpstart.doublenegative.com.au/jumpstart/examples/wizard/usingpages1 On Tue, Mar 26, 2013 at 6:59 A

Re: delegage or target

2013-03-26 Thread Barry Books
I would also check out Dynamic. http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Dynamic.html It's easy enough to fetch its template from a database of other source outside the project to provide per user/company etc customization of a layout. --

Re: Wizard Component

2013-03-26 Thread Thiago H de Paula Figueiredo
On Tue, 26 Mar 2013 08:38:24 -0300, Guillaume Bodet wrote: Hi all, Hi! I'm looking for a wizard component for Tapestry 5.3. By "wizard", I mean a conversational set of pages that can manage state and transition rules (previous-next-cancel). If no such component exists, does any of you

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-03-26 Thread Dmitry Gusev
I don't like to use server.xml for JNDI configuration for several reasons, but the main is that JDBC driver classes should be on server classpath, which means you have to manually put them there. Which personally I don't like because driver jar usually specified at pom.xml/build.gradle and this is

Wizard Component

2013-03-26 Thread Guillaume Bodet
Hi all, I'm looking for a wizard component for Tapestry 5.3. By "wizard", I mean a conversational set of pages that can manage state and transition rules (previous-next-cancel). If no such component exists, does any of you have ideas about the right design of such a component? Best regards,

Re: delegage or target

2013-03-26 Thread Geoff Callender
That's a great summary. Nice work. Geoff On 26/03/2013, at 12:15 AM, Bård Magnus Kvalheim wrote: > Hi Ken. > > I think what you refer to as the target="" approach is html frames and you > can certainly do that with tapestry or any other framework. > > Here is my understanding of Tapestry 'best

Re: Tapestry-Hibernate configure to work with both Tomcat and Jetty

2013-03-26 Thread Barry Books
I also host on Amazon with Tomcat and develop with Jetty. Hibernate just gets the datasource from the container. When running locally that's Jetty and Jetty reads the jetty-web.xml file to build the connection. When deployed under Tomcat that would most likely be the server.xml file in the Tomcat

Re: Testify - Unable to locate asset

2013-03-26 Thread Stephan Windmüller
Am 26.03.2013 11:40, schrieb Lance Java: > TapestryTester has two constructors > http://tapestrytestify.sourceforge.net/apidocs/com/formos/tapestry/testify/core/TapestryTester.html > > Which one are you using? Are you passing in a context path? I am using the one with more parameters: | new Tap

Re: Testify - Unable to locate asset

2013-03-26 Thread Lance Java
TapestryTester has two constructors http://tapestrytestify.sourceforge.net/apidocs/com/formos/tapestry/testify/core/TapestryTester.html Which one are you using? Are you passing in a context path? On 26 March 2013 09:19, Stephan Windmüller < stephan.windmuel...@tu-dortmund.de> wrote: > Hello! >

Testify - Unable to locate asset

2013-03-26 Thread Stephan Windmüller
Hello! My Testify tests work fine as long as I do not import files from the context like: | @Import(stylesheet = "context:styles/layout.css") Then I get an exception like: | Caused by: java.lang.RuntimeException: Unable to locate asset 'context:styles/layout.css' (the file does not exist). |