Re: [ANN] Manning Publications translates my Tapestry 5 book

2010-06-11 Thread Christian Riedel
congratulations! :) Am 11.06.2010 um 08:55 schrieb Inge Solvoll: > I'm trying to find a place where I can post my pre-order :) > > On Fri, Jun 11, 2010 at 8:34 AM, Borut Bolčina wrote: > >> This week is full of god news! >> -borut >> >> 2010/6/11 Igor Drobiazko >> >>> Hello folks, >>> >>>

Re: How to enable suggestions when entering the input field

2010-06-11 Thread Inge Solvoll
Excellent :) Good to know in case someone needs to do this later some time. Inge On Thu, Jun 10, 2010 at 4:17 PM, Donarus wrote: > > Hi again, > so I tried to construct solution in way, you mentioned. > Here is my solution. > > > > Event.observe(autoCompleterTextFieldElementIdPasteHere, 'foc

Re: [ANN] Manning Publications translates my Tapestry 5 book

2010-06-11 Thread Antonio Fernández
Congratulations !! ;-) El 11/06/2010 1:03, Igor Drobiazko escribió: Hello folks, great news for all of you who wished my Tapestry 5 book to be translated into English. Manning Publications informed me today that the translation agreement is finalized. We start working on the English version o

Re: [ANN] Manning Publications translates my Tapestry 5 book

2010-06-11 Thread Antonio Fernández
Congratulations !! ;-) El 11/06/2010 1:03, Igor Drobiazko escribió: Hello folks, great news for all of you who wished my Tapestry 5 book to be translated into English. Manning Publications informed me today that the translation agreement is finalized. We start working on the English version o

Overriding RememberMeServices in tapestry-spring-security

2010-06-11 Thread Kai Weber
Hi, I have to override a service defined in tapestry-spring-security 2.1.0, T5 is 5.1.0.4: @Marker(SpringSecurityServices.class) public static RememberMeServices build( final UserDetailsService userDetailsService, @Inject @Value("${spring-security.rememberme.key}")

IE8 and grid inPlace

2010-06-11 Thread Jim O'Callaghan
I'm seeing an issue with an inPlace grid under IE8 where clicking the pager sends a request I can see to the server but the grid / pager is not refreshed. If I manually hit refresh afterward the grid correctly displays the selected page and the correct pager entry is highlighted. This works fine

tapestry-hibernate grid second page Session is closed

2010-06-11 Thread Borut Bolčina
Hello, after a while I am again coding with Tapestry. This time I have a chance to use Hibernate, Lucene and their bridge Hibernate Search. I created a search component which uses org.hibernate.search.FullTextQuery to search the index. I am using tapestry grid component to display all the results

[Solved] Re: Overriding RememberMeServices in tapestry-spring-security

2010-06-11 Thread Kai Weber
* Kai Weber : > Any ideas? How can I override this service. Btw, I already tried _all_ the > methods described on the webpage > http://tapestry.apache.org/tapestry5.1/tapestry-ioc/cookbook/override.html Solved it. Had a typo in decorateRememberMeService which should be decorateRememberMeServices.

RE: tapestry-hibernate grid second page Session is closed

2010-06-11 Thread Jim O'Callaghan
Coincidence I am getting this today also Borut. Someone here may be able to give you more advice, but when it happened to me it was because some of the cells in the grid were referencing lazily-loaded attributes (sub-entities) of the entity your grid is paging on. You can either exclude these

Overriding RememberMeServices in tapestry-spring-security

2010-06-11 Thread Kai Weber
Hi, I have to override a service defined in tapestry-spring-security 2.1.0, T5 is 5.1.0.4: @Marker(SpringSecurityServices.class) public static RememberMeServices build( final UserDetailsService userDetailsService, @Inject @Value("${spring-security.rememberme.key}"

[Fixed] Re: Overriding RememberMeServices in tapestry-spring-security

2010-06-11 Thread Kai Weber
* Kai Weber : > Any ideas? How can I override this service. Btw, I already tried _all_ the > methods described on the webpage > http://tapestry.apache.org/tapestry5.1/tapestry-ioc/cookbook/override.html Fixed it myself. Had a typo in the decorate* method. Seems, you have to use the decoration ap

RE: tapestry-hibernate grid second page Session is closed

2010-06-11 Thread Jim O'Callaghan
Borut, Another solution that has worked for me is to identify the attributes that are triggering the closed session on pager nav selection, and call their getter per entity when you are building the list that backs your grid - this way you can leave your lazy-load annotations in place, just loa

Re: tapestry-hibernate grid second page Session is closed

2010-06-11 Thread Josh Canfield
> when it happened to me it was because some of the cells in the grid were > referencing lazily-loaded attributes (sub-entities) of the entity your grid > is paging on. Are you querying the database when the paging happens? The session is opened for the entire request so you shouldn't be getting

Re: tapestry-hibernate grid second page Session is closed

2010-06-11 Thread Borut Bolčina
Hello, yes, I am querying in the Grid's event method like so: Index.tml == http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xmlns:p="tapestry:parameter"> Index.java == public class Index { @Inject p

Re: tapestry-hibernate grid second page Session is closed

2010-06-11 Thread Josh Canfield
I googled the exception and found this: http://old.nabble.com/CommitAfter-not-working-(-is-back-!-)-(-T5.1)-td26230998.html Do you have both tapestry-hibernate and tapestry-hibernate-core dependencies? Josh On Fri, Jun 11, 2010 at 11:01 AM, Borut Bolčina wrote: > Hello, > > yes, I am querying

Re: [ANN] Manning Publications translates my Tapestry 5 book

2010-06-11 Thread Markus Feindler
Great news, I enjoyed reading the german version of your book! Congratulations !! ;-) El 11/06/2010 1:03, Igor Drobiazko escribió: Hello folks, great news for all of you who wished my Tapestry 5 book to be translated into English. Manning Publications informed me today that the translation a

Complex Question about Templates and Inheritance

2010-06-11 Thread Pierce Wetter
Ok, so I need to build 3 different apps that are very, very similar. App #1 is for our customers, we'll call this app "cust" App #2 is for our support staff, we'll call this app "support" App #3 is for our engineering staff, we'll all this app "eng". So my plan is to start by building

Re: tapestry-hibernate grid second page Session is closed

2010-06-11 Thread Borut Bolčina
Yes I have: [INFO] [dependency:tree {execution: default-cli}] [INFO] com.acme:manager:war:1.0-SNAPSHOT [INFO] +- org.apache.tapestry:tapestry-hibernate:jar:5.2.0-SNAPSHOT:compile [INFO] | +- org.apache.tapestry:tapestry-core:jar:5.2.0-SNAPSHOT:compile For the error I am getting - I think I got

Re: tapestry-hibernate grid second page Session is closed

2010-06-11 Thread Markus Feindler
The Transaction for the default session (sm.getSession()) is started automatically. So let tapestry handle the transaction stuff and just inject Session via constructor instead of HibernateSessionManager and dont begin a new transaction for the FullTextSession. Yes I have: [INFO] [dependenc

Re: context on pages.

2010-06-11 Thread Christian Edward Gruber
Ok, that's very interesting, and something we missed. I'll go look at the internal api docs, but is there a tutorial on using it? (I'm going to start pulling some of our examples of use and putting up more howtos or something.) Christian. On Jun 10, 2010, at 7:17 PM, Howard Lewis Ship wr

RE: tapestry-hibernate grid second page Session is closed

2010-06-11 Thread Jim O'Callaghan
I'm not sure if it will solve your problem Borut but to get the session in your service, rather than binding your service with a no args constructor in the bind method of your AppModule ex. binder.bind(MenuEntityManager.class, MenuEntityManagerImpl.class); ... you should add a build method to

Re: tapestry-hibernate grid second page Session is closed

2010-06-11 Thread Markus Feindler
He should also define the scope of the services, where the session is injected: @Scope(ScopeConstants.PERTHREAD) I'm not sure if it will solve your problem Borut but to get the session in your service, rather than binding your service with a no args constructor in the bind method of your AppMod

Re: Complex Question about Templates and Inheritance

2010-06-11 Thread Josh Canfield
Read the bit about template inheritance at the bottom of this page: http://tapestry.apache.org/tapestry5.1/guide/templates.html Although I agree with the sentiment in that page about not overusing these features and preferring composition over inheritance. If you map your PlatformModule to "core"

Re: Complex Question about Templates and Inheritance

2010-06-11 Thread Manuel Sugawara
On Fri, Jun 11, 2010 at 4:35 PM, Josh Canfield wrote: > Read the bit about template inheritance at the bottom of this page: > http://tapestry.apache.org/tapestry5.1/guide/templates.html > Although I agree with the sentiment in that page about not overusing > these features and preferring compositi

Re: Complex Question about Templates and Inheritance

2010-06-11 Thread Pierce Wetter
On Jun 11, 2010, at 3:31 PM, Manuel Sugawara wrote: > On Fri, Jun 11, 2010 at 4:35 PM, Josh Canfield wrote: > >> Read the bit about template inheritance at the bottom of this page: >> http://tapestry.apache.org/tapestry5.1/guide/templates.html >> Although I agree with the sentiment in that page

Re: Complex Question about Templates and Inheritance

2010-06-11 Thread Pierce Wetter
> If you map your PlatformModule to "core" then your components and > pages can be accessed without a prefix. Your page classes would live > in x.y.platform.pages. > > In PlatformModule.java > public static void > contributeComponentClassResolver(Configuration > configuration) { >configur

Re: Complex Question about Templates and Inheritance

2010-06-11 Thread Josh Canfield
Yeah.. I remember that email now. I stick my common component library into "core" as well. It looks like this is used for auto-generating library mappings to classpath asset urls for the ClasspathAssetAliasManager... Maybe somebody can think of a different way to do this? Or perhaps how to configur

loop source property must have setter .. why?

2010-06-11 Thread Paul Stanton
Hi, I tried to set my loop source as a bean property which has a private setter - as my implementation of this bean should not expose the setter for this field. tapestry told me 'MyBean does not contain a property named myField'. Adding public setter (in which i throw an exception) solved th

Re: loop source property must have setter .. why?

2010-06-11 Thread Thiago H. de Paula Figueiredo
On Fri, 11 Jun 2010 23:24:24 -0300, Paul Stanton wrote: Hi, Hi! I tried to set my loop source as a bean property which has a private setter - as my implementation of this bean should not expose the setter for this field. tapestry told me 'MyBean does not contain a property named myFi

Re: loop source property must have setter .. why?

2010-06-11 Thread Paul Stanton
Hi Thiago, No, it doesn't work with 1) no setter 2) a private setter I can verify that reportRequest is non null when arriving at this page. Error message: Exception assembling root component of page MyPage: Could not convert 'reportRequest.locations' into a component parameter binding: Class

Re: Complex Question about Templates and Inheritance

2010-06-11 Thread Josh Canfield
> So in PlatformModule, I would need to do: > > public static void > contributeComponentClassResolver(Configuration > configuration) { > configuration.add(new LibraryMapping("paceap", "com.paceap.platform")); > } > > Then in AppModule, I would need to do: > > public static void > contribut

Re: loop source property must have setter .. why?

2010-06-11 Thread Josh Canfield
Hmm.. I can't reproduce in 5.1.0.5. On Fri, Jun 11, 2010 at 8:43 PM, Paul Stanton wrote: > Hi Thiago, > > No, it doesn't work with > 1) no setter > 2) a private setter > > I can verify that reportRequest is non null when arriving at this page. > > Error message: > > Exception assembling root comp