Re: Hibernate problem with OGNL

2013-03-27 Thread Lukasz Lenart
2013/3/27 Markus Demetz : > I think I've found the problem. > I had javassist 3.17.1 (latest) in my project but hibernate 4.2 ships with > version 3.15.0 > Now it seems to work! Yeah... this version is buggy :P I have tried update Ognl 3 to it but no luck ;-) Regards -- Łukasz + 48 606 323 122

Re: Hibernate problem with OGNL

2013-03-27 Thread Markus Demetz
Hi, I think I've found the problem. I had javassist 3.17.1 (latest) in my project but hibernate 4.2 ships with version 3.15.0 Now it seems to work! Thank you, and sorry for misplacing my question here! Regards, Markus Am 27.03.2013 17:23, schrieb Steve Higham: On 27/03/2013 10:42, Markus

Re: Hibernate problem with OGNL

2013-03-27 Thread Steve Higham
On 27/03/2013 10:42, Markus Demetz wrote: Hi, I have situations, where the getId() method of my model class returns null when navigating through OGNL e.g. when calling . Have you tried or No luck :-( I also tried with JSTL now without success. It's very strange, since sometimes it works

Re: Hibernate problem with OGNL

2013-03-27 Thread Markus Demetz
Hi, I have situations, where the getId() method of my model class returns null when navigating through OGNL e.g. when calling . Have you tried or No luck :-( I also tried with JSTL now without success. It's very strange, since sometimes it works and then it reappears again. I'll ask at the

Re: Hibernate problem with OGNL

2013-03-26 Thread Lukasz Lenart
2013/3/26 Markus Demetz : > Hi, > > I don't know if this is the right place to ask, but maybe there is anyone > who has experienced the same problem. > > I'm using Struts2 (latest version), with Hibernate (latest version) > My database models all have getId(). > > I have situations, where the getId

Hibernate problem with OGNL

2013-03-26 Thread Markus Demetz
Hi, I don't know if this is the right place to ask, but maybe there is anyone who has experienced the same problem. I'm using Struts2 (latest version), with Hibernate (latest version) My database models all have getId(). I have situations, where the getId() method of my model class returns n

Re: Fwd: Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-29 Thread Greg Stasica
hi, thanks for your reply but this didn't seem like solve my problem entirely as PreparableInterceptor gets called before ParameterInterceptor. The upshot is that i didn't have an access to my parameters which drive prepare method. Nevertheless i found that probably the easiest solution here is t

Re: Fwd: Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-29 Thread Rene Gielen
Hi Greg, the thing about ModelDriven is that the model object gets pushed on the value stack _before_ your action method is executed. To initialize the model object before the ModelDrivenInterceptor comes into play, just implement Preparable and do your initialization in prepare() (as Lukasz alrea

Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-29 Thread Greg Stasica
hi, the scenario is as follow:1 1. class EditMyBeanAction implements Model... 2. url mapping calls edit method on the EditMyBeanAction 3. the result should be that once edit method returns (it loads MyBean object from the database) MyBean should be displayed on the jsp the problem is that it seem

Re: Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-29 Thread Lukasz Lenart
2010/6/29 Greg Stasica : > 2. get the MyBean object in getModel() method but i don't think this method > should do any dao/business operations You can always use Preparable interface Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl

Fwd: Model Driven Action doesn't return value when model gets reassigned to some other value - hibernate problem

2010-06-28 Thread Greg Stasica
hi, the scenario is as follow:1 1. class EditMyBeanAction implements Model... 2. url mapping calls edit method on the EditMyBeanAction 3. the result should be that once edit method returns (it loads MyBean object from the database) MyBean should be displayed on the jsp the problem is that it seem

Re: Struts 2 And Hibernate Problem

2008-06-26 Thread cree
-And-Hibernate-Problem-tp18121609p18140542.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 2 And Hibernate Problem

2008-06-26 Thread Lukasz Lenart
Hi, Are you using spring to instantiate your actions? If so, did you setup to not use singletons? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Struts 2 And Hibernate Problem

2008-06-26 Thread cree
are new objects each time ([EMAIL PROTECTED]). I hope this sheds some light on what can be going wrong because I can still not find the solution. Thank you all. -- View this message in context: http://www.nabble.com/Struts-2-And-Hibernate-Problem-tp18121609p18139584.html Sent from the Struts

Struts 2 And Hibernate Problem

2008-06-25 Thread cree
t to null first then changed it, the values would change, not sure if that makes much sense. If anyone has an idea on what can be causing this I would greatly appretiate your help. -- View this message in context: http://www.nabble.com/Struts-2-And-Hibernate-Problem-tp18121609p18121609.html Sent fr

Hibernate Problem

2005-03-24 Thread sudip shrestha
Working on: Fedora Core2, Sun jdk 1.5, Tomcat 5.5.7, Hibernate 2.1.6, AS/400-DB2 Take a look at the following two Queries: #Hibernate generated query with Session.createQuery on SYS_CAT table: select * from ( select rownumber() over() as row_, syscat0_.SYS_CAT_ID as SYS_CAT_ID from SYS_CAT syscat

Re: Hibernate Problem

2005-03-24 Thread sudip shrestha
I changed the dialect to DB2400 from DB2, and it solved the problem. On Thu, 24 Mar 2005 13:36:50 -0600, sudip shrestha <[EMAIL PROTECTED]> wrote: > Working on: Fedora Core2, Sun jdk 1.5, Tomcat 5.5.7, Hibernate 2.1.6, > AS/400-DB2 > Take a look at the following two Queries: > #Hibernate generat