Re: Better Looking Input Form

2012-04-21 Thread netdawg
Somewhat outdated but helpful in this regard ("Total Control" form): http://jumpstart.doublenegative.com.au/jumpstart/examples/input/totalcontroledit1/1 But this is not for the faint of heart...for reasonably complex style-sheets. -- View this message in context: http://tapestry.1045711.n5.na

Re: [t5.3.2] Inject hibernate Session problem

2012-04-21 Thread Taha Hafeez Siddiqi
Hi You can inject org.hibernate.Session not org.hibernate.classic.Session as only the former is exposed as a tapestry service. regards Taha On Apr 22, 2012, at 3:21 AM, badluck13 wrote: > Hi guys, > > I have clean quickstart archetype app, and added tapestry-hibernate to pom. > > And hibern

[t5.3.2] Inject hibernate Session problem

2012-04-21 Thread badluck13
Hi guys, I have clean quickstart archetype app, and added tapestry-hibernate to pom. And hibernate.cfg.xml to resources. And after I injected Session to index page I got: No service implements the interface org.hibernate.classic.Session. Is this something new to T5.3 because Session before was

Re: Why @EagerLoad services come before @Startup methods?

2012-04-21 Thread fmaylinch
Thanks for the information, Howard. It's a shame that @Startup wasn't added /at the top/ of RegistryImpl.performRegistryStartup(). :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Why-EagerLoad-services-come-before-Startup-methods-tp5651302p5656756.html Sent from the Tap

Re: Better Looking Input Form

2012-04-21 Thread netdawg
Bummer. Having both tapestry and non-tapestry styling is probably not a realistic option. From http://tapestry.apache.org/integration-with-existing-applications.html quote author="netdawg"> Tapestry's Form component does a lot of work while an HTML form is rendering to store all the informat

Better Looking Input Form

2012-04-21 Thread netdawg
Problem: Default styles are too clunky. Need to bolt a better style wrapper. I would like to use better looking forms generated by, say, http://www.appnitro.com/ Is there some documentation, best practice or cookbook, somewhere, on MERGING styles with default Tapestry styles? The only way,

Re: Tree leaf not selectable

2012-04-21 Thread Geoff Callender
I didn't realise you can click on the label! That works fine. The javascript error occurs when you click on the leaf's icon. On 21/04/2012, at 12:10 AM, Lance Java wrote: > Are you sure that you are returning consistent values for hasChildren() and > getChildren(). It sounds like you might be re

Re: PlasticClass.getMethods() doesn't include introduced methods.

2012-04-21 Thread Luke Wilson-Mawer
On 20 Apr 2012, at 19:00, Howard Lewis Ship wrote: > On Fri, Apr 20, 2012 at 9:39 AM, Luke Wilson wrote: >> >> More is described here: >> http://stackoverflow.com/questions/10249254/tapestry-5-3-plasticclass-getmethods-doesnt-include-introduced-methods. >> > > Ah, yes, I can see what you are

Re: Reuse Edit/Create for Query by Example

2012-04-21 Thread netdawg
Instead of eventlinks and the ch kit wrapper for button...just use: http://tapestry.apache.org/current/apidocs/index.html?org/apache/tapestry5/corelib/components/EventLink.html -- View this message in context: http://tapestry.1045711.n5.nabble.com/Reuse-Edit-Create-for-Query-by-Example-tp5655

Re: Reuse Edit/Create for Query by Example

2012-04-21 Thread netdawg
Most likely, the solution is to simply segregate Search (QBE) from Create/Update using EventLink. That is, segregate the Search workflow instead of overloading Create/Update. This is to bypass the (default?) onSuccess and therefore prevent the EditPage from Adding a Person instead of doing QBE.

Re: Reuse Edit/Create for Query by Example

2012-04-21 Thread netdawg
To do QBE, I would simply modify the getPersons method in Persons.java public List getPersons() { return session.createCriteria(Person.class).add( Example.create(person) ).list(); } This would use the person property to list persons list. Of course, I would check for person=nulls etc to pr

Reuse Edit/Create for Query by Example

2012-04-21 Thread netdawg
Search is next step from the following thread whereby an UPDATE form may be REUSED to ADD a database record: http://tapestry.1045711.n5.nabble.com/Reuse-Edit-Create-td5643323.html The same form should do Query By Example (QBE) supported as by Hibernate: http://docs.jboss.org/hibernate/orm/4.1/