Re: [ANN] JumpStart upgraded to Tapestry 5.3.3

2012-04-27 Thread Chris Mylonas
rounded corners - nice one geoff! thanks - referring to good old JPA stuff now :) On 28/04/2012, at 2:42 AM, Howard Lewis Ship wrote: > Thanks again for the great work you've done, and continue to do, with > JumpStart! > > On Fri, Apr 27, 2012 at 4:24 AM, Geoff Callender > wrote: >> Hi all, >

Re: General CDN problem that came up with Tree component

2012-04-27 Thread Howard Lewis Ship
In the future, 5.4, we'll have CSS aggregation which will include parsing the CSS files and rewriting url() elements ... and the value will be passed through AssetPathConverter. I also have some thoughts about having a web-service whose job is to create an inventory of static and virtual assets th

Re: General CDN problem that came up with Tree component

2012-04-27 Thread Chris Mylonas
In a related question, do, or in the future will, ${expansions} work in css? I haven't tried. On 28/04/2012, at 5:51 AM, trsvax wrote: > I have a CDN module that automatically copies assets to a CDN (specifically > Amazon S3/Cloudfront). I was working with the tree component and discovered > t

Re: Validators of field

2012-04-27 Thread Dimitris Zenios
Anyone? On Fri, Apr 27, 2012 at 9:04 PM, Dimitris Zenios wrote: > Ok let me explain the problem. > > I am following > http://tawus.wordpress.com/2011/08/01/tapestry-mixins-classtransformations/ > page in order to add an asterisk(*) in all labels that have a filed of > required.The main problem t

Re: Hibernate Search Fix

2012-04-27 Thread netdawg
Interesting...thanks, Lance. Probably improves performance in search results page loading. -- View this message in context: http://tapestry.1045711.n5.nabble.com/grid-dont-link-hibernate-classic-session-tp5669885p5671534.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Possible n+1 hibernate bug with tapestry crud.

2012-04-27 Thread Thiago H. de Paula Figueiredo
On Fri, 27 Apr 2012 17:33:01 -0300, George Christman wrote: Hi Thiago, I'm confused, my onActivate method is called on both page load and submit, both which call the same query. Does tapestry disregard the object after the page's initial render requiring a second query to rebuild the ob

Re: Possible n+1 hibernate bug with tapestry crud.

2012-04-27 Thread George Christman
Hi Thiago, I'm confused, my onActivate method is called on both page load and submit, both which call the same query. Does tapestry disregard the object after the page's initial render requiring a second query to rebuild the object on submit? Why would hibernate query things differently on submit c

Re: Possible n+1 hibernate bug with tapestry crud.

2012-04-27 Thread Thiago H. de Paula Figueiredo
On Fri, 27 Apr 2012 17:13:39 -0300, George Christman wrote: might be going on. Am I using tapestry incorrectly or is this a hibernate issue. 100% Hibernate issue. Tapestry-Hibernate just provides Sessions and handles @CommitAfter. Anything else is up to you. -- Thiago H. de Paula Figuei

Possible n+1 hibernate bug with tapestry crud.

2012-04-27 Thread George Christman
Hello everyone, I'm experiencing some odd behavior with my form crud. I'm using tapestry-hibernate jpa which consist of a parent object and a bunch of children objects. I'm using the following code to get my parent object. @Property private PurchaseRequest pr; @Property private PrLogging prLoggi

General CDN problem that came up with Tree component

2012-04-27 Thread trsvax
I have a CDN module that automatically copies assets to a CDN (specifically Amazon S3/Cloudfront). I was working with the tree component and discovered the bits that make of the tree interface were missing images. Things like tree-branch.png, tree-sprits.png etc. When I looked I found out they are

Re: Validators of field

2012-04-27 Thread Dimitris Zenios
Ok let me explain the problem. I am following http://tawus.wordpress.com/2011/08/01/tapestry-mixins-classtransformations/ page in order to add an asterisk(*) in all labels that have a filed of required.The main problem though is that even though the field has the isRequired method to tell me if i

Re: Validators of field

2012-04-27 Thread Thiago H. de Paula Figueiredo
On Fri, 27 Apr 2012 12:09:56 -0300, Dimitris Zenios wrote: How can i find what validators are attached on a field? Unless you've set the validators yourself (validate parameter of many form field components), the ones that are attached automatically can be checked by putting a breakpoin

Re: [ANN] JumpStart upgraded to Tapestry 5.3.3

2012-04-27 Thread Howard Lewis Ship
Thanks again for the great work you've done, and continue to do, with JumpStart! On Fri, Apr 27, 2012 at 4:24 AM, Geoff Callender wrote: > Hi all, > > Yep, it's in the usual place: > >        http://jumpstart.doublenegative.com.au/jumpstart/ > > Cheers, > > Geoff -- Howard M. Lewis Ship Crea

Re: Does the Tree component need to use the session?

2012-04-27 Thread trsvax
I would say the Tapestry way to override persist behavior is with Meta and it should probably stay that way. Secondly I'd prefer making the default the preferred way and overriding that behavior instead of the other way around. The thing Tapestry does not provide out of the box is override Persis

Re: Upgrading to Hibernate Core 4.1.1 Final

2012-04-27 Thread Kalle Korhonen
Yes, T5.4 trunk is already using Hibernate 4.1. If you want to use 4.1 with T5.3, you have to recompile tapestry-hibernate. See comments in https://issues.apache.org/jira/browse/TAP5-1922. Kalle On Fri, Apr 27, 2012 at 5:06 AM, netdawg wrote: > Thanks!  Believe this is planned for 5.4.x...so le

Re: Does the Tree component need to use the session?

2012-04-27 Thread Thiago H. de Paula Figueiredo
On Fri, 27 Apr 2012 10:02:10 -0300, trsvax wrote: I'm sure there are many people (me included) that persist db result sets in the session. That's something I put in the "never, never, ever do that" list. :) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate co

Re: Does the Tree component need to use the session?

2012-04-27 Thread Lance Java
I don't think this would work, for instance the grid component persists String, Integer and Boolean. Also, if there were 2 trees in the app, they would both need the same persistence I'd prefer a component parameter. I was assuming this would require invoking tapestry's underlying persistence API'

Re: Hibernate Search Fix

2012-04-27 Thread Lance Java
You could add this to your app module: private static class LazyFullTextSession { private HibernateSessionManager sessionManager; public LazyFullTextSession(HibernateSessionManager sessionManager) { this.sessionManager = sessionManager; } publi

Re: Does the Tree component need to use the session?

2012-04-27 Thread trsvax
Here is my thought because I think there are other places in core that use persist. I think the idea behind persist is you leave the argument blank which allows you to override the type via the metadata. If no overrides are found it falls back to the default which is session. It appears you could

Hibernate Search Fix

2012-04-27 Thread netdawg
Yep. That was it...Tapestry Hibernate Session needs work to play nice within FullTextSession. Workaround is in thread below: http://tapestry.1045711.n5.nabble.com/Hibernate-Search-td4446040.html Also, JIRA already open... https://issues.apache.org/jira/browse/TAP5-1178 I would add 1. Hib

Re: T5: ValidationException from validate event leads to ERROR level logger statement

2012-04-27 Thread Lance Java
1. Validators are designed to cause a single failure each. If you want to validate multiple things, add multiple validators to a field. http://tapestry.apache.org/forms-and-validation.html 2. Validators must throw a ValidationException in order to fail, the issue you are responding to is discussi

Re: Upgrading to Hibernate Core 4.1.1 Final

2012-04-27 Thread netdawg
Thanks! Believe this is planned for 5.4.x...so let it slide. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate-Core-4-1-1-Final-tp5669640p5670087.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Upgrading to Hibernate Core 4.1.1 Final

2012-04-27 Thread Felix Scheffer
Hi, i created a ticket for this: https://issues.apache.org/jira/browse/TAP5-1922 Felix Scheffer 2012/4/27 netdawg > Thanks, kristian. I tried that already (couple of times). Thanks, though. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate

[ANN] JumpStart upgraded to Tapestry 5.3.3

2012-04-27 Thread Geoff Callender
Hi all, Yep, it's in the usual place: http://jumpstart.doublenegative.com.au/jumpstart/ Cheers, Geoff

Re: grid dont like hibernate.classic.session?

2012-04-27 Thread netdawg
Unless runtime error in getEpersons due to limitation in tapestry hibernate session? tested fine on hibernate-coreI that's it -- View this message in context: http://tapestry.1045711.n5.nabble.com/grid-dont-link-hibernate-classic-session-tp5669885p5670015.html Sent from the Tapestry - User m

Re: grid dont like hibernate.classic.session?

2012-04-27 Thread netdawg
Source points to persons. This fires getPersons within Persons.Java. Which a list of type Person. Generated by the full text search API (which possibly encapsulates the classic session). .. all this is traced in logs... Why should it matter either way...I am declaring regular session BTW... O

Re: T5: ValidationException from validate event leads to ERROR level logger statement

2012-04-27 Thread sub
I tried to use: @Environmental private ValidationTracker tracker; inside a custom validator class: public class MyPasswordValidator extends AbstractValidator unfortunately it is null. Did I miss something? I'm using cracklib inside my validator and there are quite a few validation steps and

Re: grid dont link hibernate.classic.session?

2012-04-27 Thread Lance Java
The grid is decoupled from hibernate, your implementation of "source" is tied to hibernate. tapestry-hibernate provides a service of type org.hibernate.Session and you have declared an instance of org.hibernate.classic.Session in your page.

grid dont link hibernate.classic.session?

2012-04-27 Thread netdawg
Doing text search, using Hibernate cookbook recipe, using impl of org.hibernate.search.FullTextSession interface. When the list of entities is returned as return fullTextSession.createFullTextQuery(query, Person.class).list(); grid barfs the following: [ERROR] pages.Persons Render queue err

Re: Upgrading to Hibernate Core 4.1.1 Final

2012-04-27 Thread netdawg
Thanks, kristian. I tried that already (couple of times). Thanks, though. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate-Core-4-1-1-Final-tp5669640p5669799.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Upgrading to Hibernate Core 4.1.1 Final

2012-04-27 Thread netdawg
OK. Gave up on this, next version will probably include anyway. For now, looks like Tapestry 3.5.2 depends on Hibernate 3.6.0.Final. I downloaded that http://grepcode.com/snapshot/repo1.maven.org/maven2/org.hibernate/hibernate-core/3.6.0.Final and I am off doing useful work ;-). Thanks,

Re: Upgrading to Hibernate Core 4.1.1 Final

2012-04-27 Thread Kristian Marinkovic
open the pom.xml of your main application in the eclipse pom editor and switch to the dependency tab. there you can see all the direct and transitive dependencies. and do a clean install of all your modules.. or parent project. On Fri, Apr 27, 2012 at 11:03 AM, netdawg wrote: > Yes, basically the

Re: Upgrading to Hibernate Core 4.1.1 Final

2012-04-27 Thread netdawg
Yes, basically the exception is a compile exception saying the following "could not be resolved": import org.hibernate.Session; And, finally, I also tried this: org.apache.tapestry tapestry-hibernate ${tapestry-release-version}

Re: Upgrading to Hibernate Core 4.1.1 Final

2012-04-27 Thread Kristian Marinkovic
can you post your exception? On Fri, Apr 27, 2012 at 10:45 AM, netdawg wrote: > Neither did this work... > >     >            org.apache.tapestry >            tapestry-hibernate >            ${tapestry-release-version} >             >             >              org.hibernate >              hiber

Re: Upgrading to Hibernate Core 4.1.1 Final

2012-04-27 Thread netdawg
Neither did this work... org.apache.tapestry tapestry-hibernate ${tapestry-release-version} org.hibernate hibernate-core org.hibernate hibernat

Re: Igor Drobiazko Book

2012-04-27 Thread Nicholoz Kiknadze
Just resending initial message of this thread. Wonder if there is any progress - three months ago it was only couple of chapters left... Hi, As I recall, after Manning canceled Drobiazko's book he was going to publish it on his own. Any news out there? I'm sure lots of us in this list are waiti

Re: Upgrading to Hibernate Core 4.1.1 Final

2012-04-27 Thread netdawg
Whacking tapestry-hibernate does not help either... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-to-Hibernate-Core-4-1-1-Final-tp5669640p5669693.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: How to use messages without @Inject?

2012-04-27 Thread sub
Thank you soo much Beat, this is exactly what I needed! -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-use-messages-without-Inject-tp5658897p5669692.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Upgrading to Hibernate Core 4.1.1 Final

2012-04-27 Thread Kristian Marinkovic
you have to add exclusions to your tapestry-hibernate dependency g, kris On Fri, Apr 27, 2012 at 10:19 AM, Chris Mylonas wrote: > i think tapestry-hibernate pulls in hibernate jars, so you can remove it from > your pom > doing it how you've done is how to break it > > > On 27/04/2012, at 6:15 P

Re: Upgrading to Hibernate Core 4.1.1 Final

2012-04-27 Thread Chris Mylonas
i think tapestry-hibernate pulls in hibernate jars, so you can remove it from your pom doing it how you've done is how to break it On 27/04/2012, at 6:15 PM, netdawg wrote: > Issue: Current (5.3.2) versions of Tapestry-Hibernate seem to clash with > latest 4.1.1 Final of Hibernate core. Speci

Upgrading to Hibernate Core 4.1.1 Final

2012-04-27 Thread netdawg
Issue: Current (5.3.2) versions of Tapestry-Hibernate seem to clash with latest 4.1.1 Final of Hibernate core. Specifically, import org.hibernate.Session can no longer be resolved after introducing the 4.1.1 Final dependency in pom. Anyone else experience this, have a convenient workaround? I

Re: Live Traffic Feed

2012-04-27 Thread Lance Java
Let me rephrase your question: "I have given you absolutely no information, can you please design my website for me?" I'm not sure you will get much help that way ;)

Re: Does the Tree component need to use the session?

2012-04-27 Thread Lance Java
I'm not sure how I'd manage it either. 1. It would be nice if you could pass a "persistenceType" parameter of "session" or "client". Is that possible? 2. Is there a "hook" where you can specify how to serialize / deserialize an object to the client persistence? 3. Tree accepts an "expansionModel