RE: Grid component whoa's

2013-05-29 Thread nhhockeyplayer nashua
I thought it helpful to post the URL for the sort column My page name is LeadersQuery.tml the table column property is gp http://localhost:8080/leadersquery.grid.columns:sort/gp/grid?t:ac=org.tynamo.examples.pphl.pages.LeadersQuery$00406a6034

RE: Grid component whoa's

2013-05-29 Thread nhhockeyplayer nashua
Here is my template... I have a criteria form then the grid is somethign disconnected here? I dont know why the grid wuold disappear off the page when i click a sort column http://tapestry.apache.org/schema/tapestry_5_3.xsd"; xmlns:p="tapestry:parameter"

Grid component whoa's

2013-05-29 Thread nhhockeyplayer nashua
Hi Folks, I am operating grid component. it renders nicely onSubmit @SetupRender public void setupRender() { grid.reset(); if ( grid.getSortModel().getSortConstraints().isEmpty() ) { grid.getSortModel().updateSort("gp"); grid.getSortModel().updateSort("g"); grid.getSortModel().updateSo

RE: npe on simple type usage

2013-05-29 Thread Ken in Nashua
Solution... this was a hibernate initialization issue. I was seeding an entity I skipped a few fields thinking it was not a problem. but hibernate didn't like me operating on the entity while it was in its initialization phase. rule of thumb? initialize all your properties before your code deci

RE: npe on simple type usage

2013-05-29 Thread Ken in Nashua
I use these types to get padding and comfort. It doesnt make sense to me. Sorry to keep posting. Just trying to click and go. What could be causing an NPE? @Entity @ClassDescriptor(hasCyclicRelationships = true) @BeanModels( { @BeanModel(pageType = PageType.LIST, include = "player, gp, g

RE: npe on simple type usage

2013-05-29 Thread Ken in Nashua
Caused by: java.lang.NullPointerException at org.tynamo.examples.pphl.model.PlayerStats.getPts(PlayerStats.java:137) at org.tynamo.examples.pphl.model.PlayerStats.getPpa(PlayerStats.java:125) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMetho

npe on simple type usage

2013-05-29 Thread Ken in Nashua
Folks, I keep getting NPE on simple calculations. Is there something here that tapestry doesnt like ? public Float getPpa() { Float result = new Float(getPts() > 0 ? getGp() / getPts() : 0); return result; } @PropertyDescriptor(nonVisual = false) public Float get

RE: 5.4-alpha-4 preview release

2013-05-29 Thread Nomen Nomanum
Sorry, it took me ages before I could retrieve this mail to see new posts and reply. What I meant by dual modding is the ability for any Tapestry user to use whatever JS framework he or she likes. There were rumours that in Tap5.4 Prototype will be once and for all put out of focus, and Prototyp

RE: Pulling different description for image based on choosen language

2013-05-29 Thread Nomen Nomanum
Great proposal, Horvat! :) Will do exactly that. However, one more concern is on my mind right now. I have included Tap-JQuery library, and everything is fine, until I load it! My app can't even be deployed, from the Tomcat logs, I can see it keeps complaining about 30.05.2013 14:32:46 org.apa

Re: 5.4-alpha-4 preview release

2013-05-29 Thread Barry Books
On Wed, May 29, 2013 at 11:08 AM, Howard Lewis Ship wrote: > > > > > > I had one problem getting it to run. I had to add > > > > > > > > org.slf4j > > > > slf4j-log4j12 > > > > 1.7.2 > > > > > > > > > > to my pom file. It appears to be in tapestry-core but marked test.

Re: Page Url rewriting in tapestry

2013-05-29 Thread Boris Horvat
I understand the difference between decorator and builder method. Actually i was using contribute as my weapon of choice and I guess I could be lacking on the knowledge there. More specifically does contribution of the method act more like decorator or builder. Nonetheless I was able to make my de

Re: Pulling different description for image based on choosen language

2013-05-29 Thread Lance Java
http://tapestry.apache.org/localization.html

Re: Pulling different description for image based on choosen language

2013-05-29 Thread Boris Horvat
Hi, Ok, go implement it I dont have any objections :) What I am trying to say is that you dont really say what is the problem that you are facing and how does it relate to tapestry... If you are looking for a general advice for something like that this may not be the best forum for such question

Pulling different description for image based on choosen language

2013-05-29 Thread Nomen Nomanum
Hi! I want to implement for my app processing of different description for my image based on choosen language. So, if user chooses Spanish, only Spanish description for my image should be rendered. Thanks in advance.

Re: Tapestry 5.4-alpha-6 preview

2013-05-29 Thread Howard Lewis Ship
It takes about 20 minutes to build, run tests, package, and upload. On Wed, May 29, 2013 at 12:02 PM, Dmitry Gusev wrote: > Release early, release often! :) > > On Wed, May 29, 2013 at 10:58 PM, Howard Lewis Ship >wrote: > > > When it rains, it pours. I tripped across a bug ( > > https://issues

Re: Tapestry 5.4-alpha-6 preview

2013-05-29 Thread Dmitry Gusev
Release early, release often! :) On Wed, May 29, 2013 at 10:58 PM, Howard Lewis Ship wrote: > When it rains, it pours. I tripped across a bug ( > https://issues.apache.org/jira/browse/TAP5-2120) and created alpha-6 with > the fix. > > Maven repository: > https://repository.apache.org/content/repo

Tapestry 5.4-alpha-6 preview

2013-05-29 Thread Howard Lewis Ship
When it rains, it pours. I tripped across a bug ( https://issues.apache.org/jira/browse/TAP5-2120) and created alpha-6 with the fix. Maven repository: https://repository.apache.org/content/repositories/orgapachetapestry-036/ -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tap

Re: Tapestry 5.4-alpha-5 preview

2013-05-29 Thread Howard Lewis Ship
Also, here's the Maven repository: https://repository.apache.org/content/repositories/orgapachetapestry-035/ On Wed, May 29, 2013 at 9:23 AM, Howard Lewis Ship wrote: > This corrects two problems: > > 1) the new tapestry-test-data module wasn't built correctly > 2) BaseOptimizedSessionPersisted

Re: jQuery/bind mixin does not submit field value onChange

2013-05-29 Thread Boris Horvat
This was my issue https://github.com/got5/tapestry5-jquery/issues/295 cheers On Wed, May 29, 2013 at 6:14 PM, Ben Titmarsh wrote: > Thanks for your replies. > > Jens I will try out both of those suggestions! > > Boris - I'm actually using a fairly old version then - 3.2.0. Do you have > a link

Tapestry 5.4-alpha-5 preview

2013-05-29 Thread Howard Lewis Ship
This corrects two problems: 1) the new tapestry-test-data module wasn't built correctly 2) BaseOptimizedSessionPersistedObject is now Serializable, making Tapestry work correctly in clusters -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and supp

RE: jQuery/bind mixin does not submit field value onChange

2013-05-29 Thread Ben Titmarsh
Thanks for your replies. Jens I will try out both of those suggestions! Boris - I'm actually using a fairly old version then - 3.2.0. Do you have a link to the JIRA issue or release notes or anything so that I can review your bug report? Thanks, Ben. > From: horvat.z.bo...@gmail.com > Date

Re: 5.4-alpha-4 preview release

2013-05-29 Thread Howard Lewis Ship
FYI, due to some minor problems in alpha-4, I'm working on alpha-5 right now. I'm starting the work of porting a very large 5.3 app to 5.4. On Wed, May 29, 2013 at 4:31 AM, Barry Books wrote: > Tried it out this morning, here is my quick assessment: > > I like the new asset paths. I'll try and

ClassCast Exception while loading Service using its interface

2013-05-29 Thread Lance Java
Posting this on the user's list rather than dev which is where this belongs If you bind a service implementation to an interface, tapestry will create a proxy for you which is why you can't cast it to a concrete type. The proxy allows live class reloading and other AOP goodies. Unfortunately your

Re: Page Url rewriting in tapestry

2013-05-29 Thread Lance Java
Hi Boris, I'm not sure you have grasped the concept of an IOC decorator. A decorator method name is prefixed with "decorate" and gets passed the default implementation so that it can delegate through to it. It is different to a "builder" method (prefixed with "build") which I think you might be usi

Re: 5.4-alpha-4 preview release

2013-05-29 Thread Barry Books
Tried it out this morning, here is my quick assessment: I like the new asset paths. I'll try and build an Amazon CloudFront CDN this week. I did notice the scripts included by require.js do not have the checksums in the urls. Is that correct? I had one problem getting it to run. I had to add

Re: 5.4-alpha-4 preview release

2013-05-29 Thread Thiago H de Paula Figueiredo
On Tue, 28 May 2013 21:40:25 -0300, Nomen Nomanum wrote: What happened to dual modding? What the hell is dual modding? Is it possible that Tapestry itself will figure out when prototype, jquery or some other JS library is involved, and therefore process it's parameters as scheduled fro

Re: property bindings

2013-05-29 Thread Thiago H de Paula Figueiredo
On Wed, 29 May 2013 01:49:03 -0300, Jens Breitenstein wrote: Hi Ken, Hi! somethings I get the feeling you use this mailinglist like a chat system providing much info in many many small chunks. Can't you just gather all information first and afterwards throw it to the mailinglist? And f

Re: property bindings

2013-05-29 Thread Thiago H de Paula Figueiredo
On Tue, 28 May 2013 21:29:45 -0300, Ken in Nashua wrote: Hi Folks, Hi! I am tearing thru the docs and mail list searching for "when do properties bind" tapestry Properties are bound when the page instance is instantiated. But what you're really asking is when property bindings are re

Re: Lightbox integration: Image isn't displayed

2013-05-29 Thread Thiago H de Paula Figueiredo
Are you sure the image URL is correct? Have you tried requesting it directly? On Tue, 28 May 2013 21:34:21 -0300, Nomen Nomanum wrote: I have set up prototype lightbox modal box, and everything works fine, until I click on my t:actionlink. It pops out everything as expected, however im

Re: query a collection for a page

2013-05-29 Thread Thiago H de Paula Figueiredo
On Tue, 28 May 2013 20:33:33 -0300, Ken in Nashua wrote: Hi Folks, Hi! I have a page that renders a collection in a grid. A hibernate collection... @Persist @Property private Collection collection; @SetupRender public void setupRender() { beanType = PlayerSt