T5: run time generation of pages?

2008-12-12 Thread Angelo Chen
I don't know if this is possible, just like to ask around: say a .tml and and .java file are generated at run time from certain information kept somewhere, and these files are written to the correct t5 package, is there a way to compile this page and got displayed? in the T5's apache page it has

Re: Tapestry 5.0 Final Release - 5.0.18

2008-12-12 Thread Angelo Chen
good news, we finally hava final release:) do we have to do any changes to the pom.xml? or just like before, simply update the version number? Howard Lewis Ship wrote: > > Apache Tapestry 5.0 final release (5.0.18) > > * Via Maven: > > > org.apache.tapestry > tapestry-core

Re: Tapestry 5.0 Final Release - 5.0.18

2008-12-12 Thread Geoff Callender
My congratulations to Howard and everyone else on the team. Tapestry 5.0 is an absolutely magnificent piece of work. Regards, Geoff Callender On 13/12/2008, at 7:53 AM, Martijn Brinkers wrote: Hi Howard, Congratulations with the final release. Tapestry is awsome! Best regards, Martijn Br

Re: Entities referencing domain style Entities

2008-12-12 Thread lutherbaker
Thanks Uli! Ulrich Stärk wrote: > > Luther Baker schrieb: >> I have an entity that contains another entity - but this time, the >> contained >> entity table is quite finite - say, 10 rows. >> >> public class Category >> { >> private String name; >> } >> >> public class User >> { >>priv

Re: Tapestry 5.0 Final Release - 5.0.18

2008-12-12 Thread Martijn Brinkers
Hi Howard, Congratulations with the final release. Tapestry is awsome! Best regards, Martijn Brinkers On Fri, 2008-12-12 at 10:52 -0800, Howard Lewis Ship wrote: > Apache Tapestry 5.0 final release (5.0.18) > > After nearly three years of development, the final release of Apache > Tapestry 5.0

Re: Entities referencing domain style Entities

2008-12-12 Thread Ulrich Stärk
Luther Baker schrieb: I have an entity that contains another entity - but this time, the contained entity table is quite finite - say, 10 rows. public class Category { private String name; } public class User { private String firstName; private String lastName; private Category categ

Re: Rendering Nested Entities

2008-12-12 Thread lutherbaker
I'm wondering if these are 'bad' questions ... I've reposted similar ones. Please ignore the dups. Thanks. Luther Baker wrote: > > Is there a relatively clean way to use a BeanEditForm and get a nested > Entities properties to show up as inputs. > > public class Address > { > private Stri

Re: Entities referencing domain style Entities

2008-12-12 Thread lutherbaker
Is this just a bad question? Luther Baker wrote: > > I have an entity that contains another entity - but this time, the > contained > entity table is quite finite - say, 10 rows. > > public class Category > { > private String name; > } > > public class User > { >private String firstNam

t:Grid

2008-12-12 Thread Luther Baker
I have an Entity with a OneToOne relationship with another Entity. I'd like to render the entire Entity (and child Entity) as a row in a t:Grid. Per the classes at the bottom of this post, by default, the t:Grid displays fname and lname, I'd like it to display fname, lname, category.name. I'd jus

Re: Persistance

2008-12-12 Thread Daniel Jue
In the past I manually implemented this behavior by mixing server side and client side persistence. My code-fu was probably not very elegant. In my case, a user could open a report page after filling out a page of variables. These report pages would open in a new browser window/tab. So instantly

Tapestry 5.0 Final Release - 5.0.18

2008-12-12 Thread Howard Lewis Ship
Apache Tapestry 5.0 final release (5.0.18) After nearly three years of development, the final release of Apache Tapestry 5.0 is now available for download. Apache Tapestry 5 is a total rewrite of the Tapestry web application framework, bringing forward Tapestry's core concepts: reusable component

How do i execute javascript on zone update ?

2008-12-12 Thread Hugo Palma
I have a simple form that has the zone parameter set. I would like to execute a javascript function after i submit the form and the zone is updated. Any idea how i can do this ?

Re: AW: AW: Advantages of various .tml storage locations?

2008-12-12 Thread Christian Edward Gruber
Yeah, I'm using 3.4, though I'm having annoyances with it. Mostly, with class folders, I'm finding that 3.4 displays them differently, but I haven't noticed any fundamental alteration in behaviour. Christian. On 12-Dec-08, at 07:35 , Peter Stavrinides wrote: Christian, just curious to kn

Form, loop, tree and current value

2008-12-12 Thread miro-zet
I am just beginning with tapestry5, but as I understand when the form inside a loop is processes (property setters for TextFields, Selects etc. are called), loop is also performed - the current value of the Loop is set to the page. I have written custom Tree component, which in the time of the re

http://issues.apache.org/jira/browse/TAP5-138

2008-12-12 Thread Joe123 ---
Hello I was wondering when Issue TAP5-138 (Add Zone parameter to Select component) is scheduled to be implemented? http://issues.apache.org/jira/browse/TAP5-138 It is the most popular issue, with 31 votes and a lot are looking forward to this feature. Joe ___

Re: AW: AW: Advantages of various .tml storage locations?

2008-12-12 Thread Peter Stavrinides
Christian, just curious to know what version of eclipse you run, I have played with this a little and noticed differences from 3.3 to 3.4 in the way class folders are handled. - Original Message - From: "Christian Edward Gruber" To: "Tapestry users" Sent: Thursday, 11 December, 2008

Re: Confirm("are you sure want to delete") in

2008-12-12 Thread Martijn Brinkers
Could you check if the Event.stop(event) works when used directly from the onclick event handler? So in you page tml file use something like: Martijn On Fri, 2008-12-12 at 03:12 -0800, zack1403 wrote: > My component uses Event.stop and it wont actually stop the form submit. > > > Martijn Bri

Re: Confirm("are you sure want to delete") in

2008-12-12 Thread zack1403
My component uses Event.stop and it wont actually stop the form submit. Martijn Brinkers (List)-2 wrote: > > I think it's more a prototype issue than a Tapestry issue > > I think you can stop the event with: > > Event.stop(event); > > So your onclick should look something like > > onclick="

Re: BeanEditForm Component in Tapestry 5

2008-12-12 Thread Otho
You obviously left out some things for brevity, but I can't see "Person" anywhere instantiated? public class PersonForm { @Persist @Property //no need for accessors private Person person; Object onActivate() { if(person==null) person = new Person(); return null; } Object onSuccessFr

Re: Confirm("are you sure want to delete") in

2008-12-12 Thread Martijn Brinkers
I think it's more a prototype issue than a Tapestry issue I think you can stop the event with: Event.stop(event); So your onclick should look something like onclick="if(!confirm('Are you sure want to delete?')) Event.stop(event);" Regards, Martijn Brinkers On Fri, 2008-12-12 at 11:25 +010

Re: Confirm("are you sure want to delete") in

2008-12-12 Thread zack1403
When I first wrote my confirm component this is the example I used. This issue is that with linksubmit, i am not able to stop the submit event. When I confirm for an important form, the user clicks cancel, the form still submits. My source is pretty much the exact same as the example. I have l

Re: Confirm("are you sure want to delete") in

2008-12-12 Thread Andy Pahne
This is sad. We cannot even fill a JIRA, because "Confirm" is not part of the framework. Andy zack1403 schrieb: I am using the confirm functionality as a component and am having similar problems. Confirm does not work with the linkSubmit component. It is currently a major bug in my app.

NPE with ajax form loop

2008-12-12 Thread zack1403
When following the documentation for ajaxformloop to the t, I am getting this error when trying to add a row. The only difference is that I am implementing the value encoder as a service: Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException [at classpath:com/inavero/pulse/pages/su

Re: Confirm("are you sure want to delete") in

2008-12-12 Thread zack1403
I am using the confirm functionality as a component and am having similar problems. Confirm does not work with the linkSubmit component. It is currently a major bug in my app. Zack Tan cyb...@n wrote: > > hi, > > i'm a newbie in tapestry. may i know is it possible to do like: > > onclic

Re: Confirm("are you sure want to delete") in

2008-12-12 Thread Andy Pahne
Tan cyb...@n schrieb: hi, i'm a newbie in tapestry. may i know is it possible to do like: I have tried to put in as well, but after choose cancel. it will still submit. May i know how to avoid the postback? Thank you. Tan It is possible, have a look: http://wiki.apache.org/tapest