Re: tapestry-hibernate session.save not working in service

2014-11-21 Thread Lance Java
I'm guessing you need to commit a transaction. Either: HibernateSessionManager.commit() Or: Session.getTransaction().commit() Or: @CommitAfter

Re: tapestry-hibernate session.save not working in service

2014-11-21 Thread Thiago H de Paula Figueiredo
@CommitAfter will only work on service methods if you applied the HibernateTransactionAdvisor or HibernateTransactionDecorator to the service. On Fri, 21 Nov 2014 06:47:43 -0200, Lance Java lance.j...@googlemail.com wrote: I'm guessing you need to commit a transaction. Either:

How to trigger form submission manually

2014-11-21 Thread Erich Gormann
Dear all, I dare its a stupid question, but please forgive me. I need the possibility to trigger a forms submit event from within the java code of my page class. The reason is the following construction: I coded a form inside a zone and inside the zone there is rendered a group of form

Re: How to trigger form submission manually

2014-11-21 Thread Thiago H de Paula Figueiredo
On Fri, 21 Nov 2014 11:23:13 -0200, Erich Gormann e.gorm...@gormann.de wrote: Dear all, Hi! So my idea was simple to trigger a from submission manually for instance from within my onValueChanged event handler, which is called automatically from the select field on a value change. The

Re: How to trigger form submission manually

2014-11-21 Thread Erich Gormann
Hi Thiago, thanks, but no, I'm not using value change events only, but action link events also. You are right, that some lines of js code will be sufficient to trigger the submission of the surrounding form, but the logic of my event handlers have to be performed BEFORE the form submission, so

Property Values to be modified

2014-11-21 Thread akshay
Dear all, I have a strange scenario like below :- I have a component A { @Parameter(required = true) private boolean isXYZ; } On debug, i see two parameters associated to the above field -isXYZ and isXYZ_FieldConduit. Somehow, the values of both the fields are loaded differently

Re: Property Values to be modified

2014-11-21 Thread Thiago H de Paula Figueiredo
On Fri, 21 Nov 2014 12:13:51 -0200, akshay akshayestat...@gmail.com wrote: Dear all, I have a strange scenario like below :- I have a component A { @Parameter(required = true) private boolean isXYZ; } On debug, i see two parameters associated to the above field -isXYZ and

Re: tapestry-hibernate session.save not working in service

2014-11-21 Thread George Christman
I tried those Lance with the exception of @CommitAfter do to the fact I thought that @CommitAfter needed to be used in the interface. I even went as far as passing the save off to my DAO that has been configured to use HibernateTransactionAdvisor. I thought for sure this would resolve the issue,

Re: tapestry-hibernate session.save not working in service

2014-11-21 Thread Thiago H de Paula Figueiredo
On Fri, 21 Nov 2014 12:50:11 -0200, George Christman gchrist...@cardaddy.com wrote: I tried those Lance with the exception of @CommitAfter do to the fact I thought that @CommitAfter needed to be used in the interface. Before the latest 5.4 betas yes, but not anymore. I even went as far as

Re: Property Values to be modified

2014-11-21 Thread akshay
Hi Thiago, Yes it should be field, just a typo :). But anyways, below is the scneario:- I have a component A and Component B Component A{ @Component(id = B, parameters = { sortAscending=sortAscending}) private ComponentB b; @Property private boolean sortAscending=true; }

Re: Property Values to be modified

2014-11-21 Thread Chris Poulsen
don't initialize the property where you declare it. Use onActivate setupRender or similar to set det default value On Fri, Nov 21, 2014 at 4:06 PM, akshay akshayestat...@gmail.com wrote: Hi Thiago, Yes it should be field, just a typo :). But anyways, below is the scneario:- I have a

Re: tapestry-hibernate session.save not working in service

2014-11-21 Thread George Christman
On Fri, Nov 21, 2014 at 9:54 AM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Fri, 21 Nov 2014 12:50:11 -0200, George Christman gchrist...@cardaddy.com wrote: I tried those Lance with the exception of @CommitAfter do to the fact I thought that @CommitAfter needed to be used

tapestry5-jquery throws exception

2014-11-21 Thread Ivano Luberti
Hi, I'd like to add tapestry5-jquery but I get an exception. I'm not sure if it is a tapestry issue or a tapestry5-jquery one . I have already potest on the latter google gorup but got no answer, so I try here. I'm using tapesrty 5.3.7 and tapestry5-jquery 3.3.8 Here is the exeption that doesn't

RE: Property Values to be modified

2014-11-21 Thread Akshay
Hi Yes,I agree to your point,have tried that also. Infact, the idea to intialize it in the way given below is taken from the Grid component of tapestry,as I am trying to build a customized grid over the tapestry default grid. The value transferred from Component A to B doesn't seem to be a

Re: Property Values to be modified

2014-11-21 Thread Thiago H de Paula Figueiredo
On Fri, 21 Nov 2014 13:06:25 -0200, akshay akshayestat...@gmail.com wrote: Hi Thiago, Hi! Yes it should be field, just a typo :). But anyways, below is the scneario:- I have a component A and Component B Component A{ @Component(id = B, parameters = {

Re: Property Values to be modified

2014-11-21 Thread Thiago H de Paula Figueiredo
On Fri, 21 Nov 2014 15:17:11 -0200, Akshay akshayestat...@gmail.com wrote: Hi Hi! Infact, the idea to intialize it in the way given below is taken from the Grid component of tapestry,as I am trying to build a customized grid over the tapestry default grid. The value transferred from

Re: How to trigger form submission manually

2014-11-21 Thread Thiago H de Paula Figueiredo
On Fri, 21 Nov 2014 12:09:27 -0200, Erich Gormann e.gorm...@gormann.de wrote: Hi Thiago, Hi! thanks, but no, I'm not using value change events only, but action link events also. You are right, that some lines of js code will be sufficient to trigger the submission of the surrounding