Hi people,
After configuring the PersistenceContext as explained here using my sessionFactory I get the following error when I start the flow, it seems that it's passing an empty SessionHolder?:
...
Type: Posts; User: joarobles; Keyword(s):
Hi people,
After configuring the PersistenceContext as explained here using my sessionFactory I get the following error when I start the flow, it seems that it's passing an empty SessionHolder?:
...
I want to send a list of object id's (generated by the user selecting checkboxes) by POST to an action, so I can get a java.util.List<MyObject> converted using an MyObjectEditor.
So, is it...
Hi,
I just wanted to know how I can be able to perform an SQL query like the following having an HibernateTemplate autowired to my DAO,
SQL:
SELECT MAX(number) FROM a WHERE b=123
My DAO is...
Hi people,
I want to be able to output PDF to the browser in my web app, so I read that iText is a good choice to do that. I'm currently using Tiles2 and I would like that URLs ending in /pdf to be...
Thanks Marten, I woke up this morning with the solution:
I was overriden the method setValue() as the following, inside my Editor:
public void setValue(Object value) {
this.category =...
Defined itemLabel and itemValue, and a System.out.println in the setter for Category, that is never called! It seems like my getAsText implementation is failing, because I get the following:
...
Ok, I understand, I'd prefer the first option...
But I'm still a bit confused, because my form command object is not getting the property set, altough the editor is resolving it perfectly...
I...
Thanks,
The problem is now solved, the Editor would never receive an instance of the Service, since it was created from the scratch, so I solved it like this:
In the controller:
private...
Hi,
I'm just starting with Spring and I'm having some trouble trying to convert an String represetation of an Object into that Object itself, so I can populate a command of a form, so I have my...
I tryied it also, but removed from the code above because of simplicity, and still won't work...
parvinder: Thanks!
I replaced my code with the following:
ApplicationContext ctx = new FileSystemXmlApplicationContext("src/com/prueba/beans.xml");
And it works like a charm!
Hi there,
I have a very simple code in MyApp.java main class as follows:
public static void main(String[] args) {
try {
FileInputStream fie = new...
yes of course, I copied it wrongly, but that doens't solve the problem at all...
Hi,
I'm pretty new with Spring, and I'm trying to start with my very first example but I can't get it working, my code is the following in the main method:
XmlBeanFactory factory = new...