Re: Inject managed beans?

2012-10-29 Thread membersound
OK thanks I see. Yes it was not a good example, probably I should rather be injecting a service here. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Inject-managed-beans-tp5717346p5717369.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Quick way of showing embedded object properties?

2012-10-29 Thread membersound
That looks quite nice, but do you know where I could find some tynamo examples on this? I could not find any on the page itself... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Quick-way-of-showing-embedded-object-properties-tp5717357p5717370.html Sent from the Tapestry

Re: Quick way of showing embedded object properties?

2012-10-29 Thread membersound
That looks quite nice, but do you know where I could find some tynamo examples on this? I could not find any on the page itself... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Quick-way-of-showing-embedded-object-properties-tp5717357p5717371.html Sent from the Tapestry

Retain BeanModel when sorting columns?

2012-10-29 Thread membersound
@Property @Persist private BeanModel model; void setupRender() { this.model = beanModelSource.createDisplayModel(User.class, messages); this.model.add("...).sortable(true); } Result: everytime I sort, the db-fetch is triggered. How can I persist the beanmodel data and just sor

Re: Retain BeanModel when sorting columns?

2012-10-29 Thread Dragan Sahpaski
Can we have the full code? You are probably talking about a grid. The grid data is in the GridDataSource not in the BeanModel. Anyway. If you have a Hibernate like GridDataSource I wouldn't recommend persisting it because the sort should be done using SQL "order by" so persisting would imply yo

Re: Retain BeanModel when sorting columns?

2012-10-29 Thread Thiago H de Paula Figueiredo
On Mon, 29 Oct 2012 08:35:51 -0200, membersound wrote: @Property @Persist private BeanModel model; void setupRender() { this.model = beanModelSource.createDisplayModel(User.class, messages); this.model.add("...).sortable(true); } Result: everytime I sort, the db-fetch is tr

Re: Inject managed beans?

2012-10-29 Thread Thiago H de Paula Figueiredo
On Sun, 28 Oct 2012 11:06:23 -0200, membersound wrote: What is the T5 equivalent to the following JSF? The closes thing to a JSF managed bean is page classes, but with the requirement that every page class has exactly one template and vice-versa. Don't try to learn Tapestry using JSF conc

Re: DAO is always null??

2012-10-29 Thread Thiago H de Paula Figueiredo
On Sun, 28 Oct 2012 19:08:23 -0200, Lenny Primak wrote: UserService must be a Tapestry service in a Tapestry-controlled package for @Inject to work. It probably isn't. Actually, Tapestry services can be in any package (except the default one, of course). There are no controlled pages for

Re: Retain BeanModel when sorting columns?

2012-10-29 Thread membersound
OK I see. I'm doing it with BeanModelSource based on this example: http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/gridmodel1 Would you recommend me switching to a GridDataSource in my page class for providing the data instead of a list and a BeanModel? Especially regarding to th

Re: Retain BeanModel when sorting columns?

2012-10-29 Thread Dragan Sahpaski
On 29.10.2012 12:51, membersound wrote: OK I see. I'm doing it with BeanModelSource based on this example: http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/gridmodel1 Would you recommend me switching to a GridDataSource in my page class for providing the data instead of a list a

Date is not parseable

2012-10-29 Thread Andrew Dahl
Not sure why I am getting this error when submitting a form that contains a datefield. Date value '10/10/2012' is not parseable. Here is the tml entry: clientId="id"/> and here is the relevant part from the page file: public DateFormat getDateFormat(){

Re: Retain BeanModel when sorting columns?

2012-10-29 Thread membersound
Ok I will stick to this. Anyhow, concerning my latest question: how could I display the size of a list contained in my user object? Because I cannot just add the property to the bean model like "list.size"... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Retain-BeanMod

Testing Tapestry without Seleinum

2012-10-29 Thread mbrooks
So I have a fairly complicated page that has a slider that filters by a date range. It gets all entries whose copyright dates fall in between the min and max years. I've tried like mad to figure out how to get the slider to activate properly with Selenium and everything that was suggested online

Re: Testing Tapestry without Seleinum

2012-10-29 Thread Chris Poulsen
Replace @Property with getter/setter for the property? -- Chris On Mon, Oct 29, 2012 at 2:09 PM, mbrooks wrote: > So I have a fairly complicated page that has a slider that filters by a date > range. It gets all entries whose copyright dates fall in between the min > and max years. > > I've tr

Re: Testing Tapestry without Seleinum

2012-10-29 Thread mbrooks
Right. Except that Selenium keeps freezing whenever I try to get it to move a slider. It works great for all the other components and I don't have time to keep trying to drive a square peg into a round hole. Just because something is supposed to work doesn't mean it always will. I'd rather just tr

Render whole table grid row as a link?

2012-10-29 Thread membersound
Hi, is it possible to just make a whole row of a table grid clickable? I know how to apply a t:pagelink to the text of a specific entry. But for this the link is only executed if I click on the text directly. How can I just click somewhere on that row? Or is this ever possible? Thanks -- View

Re: Testing Tapestry without Seleinum

2012-10-29 Thread mbrooks
Oh man, I wish I was using jQuery. It's a component that lives in ProtoType. Might be why Selenium is choking on it >.< Though, that's a good idea to see if I can't just set those values and still use Selenium. Thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/T

Re: DAO is always null??

2012-10-29 Thread Lenny Primak
Ha. Learn something new every day :) On Oct 29, 2012, at 6:27 AM, "Thiago H de Paula Figueiredo" wrote: > On Sun, 28 Oct 2012 19:08:23 -0200, Lenny Primak > wrote: > >> UserService must be a Tapestry service in a Tapestry-controlled package for >> @Inject to work. It probably isn't. > > Ac

Why is ajaxRenderer needed for zone update?

2012-10-29 Thread membersound
Why do I need a ajaxResponseRenderer within my backing class, when I want to update a zone? Eg: having a table with all users, and when clicking a user I want to update another table which shows the address of the selected user. Now I have to: -create a zone with the address table grid, and place i

Re: Render whole table grid row as a link?

2012-10-29 Thread Lance Java
This might be best handled by a mixin to the grid. The mixin would: 1. Add an id to each row in the html table markup 2. Generate an event URL for each row using ComponentResources.createEventLink(); 3. Attach an observer to each row (using the row id) which listens to the "click" event and fires t

breadcrumb trail component

2012-10-29 Thread John
Hi, Is there a component to display a breadcrumb trail at the top of a page so users can navigate site structure they have followed? John

Re: breadcrumb trail component

2012-10-29 Thread Chris Cureau
https://github.com/argoyle/tapestry-breadcrumbs On Mon, Oct 29, 2012 at 10:10 AM, John wrote: > Hi, > > Is there a component to display a breadcrumb trail at the top of a page so > users can navigate site structure they have followed? > > John

Make zones always fade in?

2012-10-29 Thread membersound
Hi, can I make zones to always fade-in? I like the t:update="fade" very much, but with this of course the zone fades out again on every 2nd click. Can I enforce to always fade in? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Make-zones-always-fade-in-tp5717397.html Se

Re: Render whole table grid row as a link?

2012-10-29 Thread Lance Java
Something like this: @MixinAfter public class RowEvent { @InjectContainer private Grid grid; @Inject private JavaScriptSupport jss; @Inject private ComponentResources componentResrouces; @Parameter(required=true)

email validation stopped working

2012-10-29 Thread Jan Fryblik
Hi, recently i updated to tapestry 5.3.6 and since than all my email validations don`t work. Other validations work well. I have field like this: Thank for your help. BR, Honza -- View this message in context: http://tapestry.1045711.n5.nabble.com/email-validation-stopped-working-tp571740

Re: email validation stopped working

2012-10-29 Thread Muhammad Gelbana
Any error messages ? I remember one of v5.3.6 release notes was that it retracted back to an older prototype version (1.7 I think). Could this be related ? Are you overriding any tapestry validation using a prototype-based client side code that could probably break when using an older prototype ve

Re: email validation stopped working

2012-10-29 Thread Muhammad Gelbana
Did you also check javascript error messages on the browser ? It's usually logged in the javascript console or something similarly named. On Mon, Oct 29, 2012 at 10:18 PM, Muhammad Gelbana wrote: > Any error messages ? > > I remember one of v5.3.6 release notes was that it retracted back to an >

Re: breadcrumb trail component

2012-10-29 Thread Dimitris Zenios
https://bitbucket.org/zenios/tapestry-zbreadcrumbs/wiki/Home On Mon, Oct 29, 2012 at 5:13 PM, Chris Cureau wrote: > https://github.com/argoyle/tapestry-breadcrumbs > > On Mon, Oct 29, 2012 at 10:10 AM, John wrote: > >> Hi, >> >> Is there a component to display a breadcrumb trail at the top of a