Search:

Type: Posts; User: joarobles; Keyword(s):

Search: Search took 0.03 seconds.

  1. Already value SessionHolder for key SessionFactoryImpl bound to thread

    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?:
    ...
  2. List of Objects as RequestParam in Spring MVC

    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...
  3. Executing custom SQL query with HibernateTemplate

    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...
  4. Replies
    1
    Views
    1,105

    Tiles 2 + itext PDF generation

    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...
  5. Replies
    8
    Views
    3,681

    Thanks Marten, I woke up this morning with the...

    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 =...
  6. Replies
    8
    Views
    3,681

    Defined itemLabel and itemValue, and a...

    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:

    ...
  7. Replies
    8
    Views
    3,681

    Not getting the object

    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...
  8. Replies
    8
    Views
    3,681

    Solved

    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...
  9. Replies
    8
    Views
    3,681

    [SOLVED] PropertyEditorSupport and Spring MVC

    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...
  10. Replies
    8
    Views
    1,338

    I tryied it also, but removed from the code above...

    I tryied it also, but removed from the code above because of simplicity, and still won't work...
  11. Replies
    5
    Views
    1,668

    parvinder: Thanks! I replaced my code with the...

    parvinder: Thanks!
    I replaced my code with the following:


    ApplicationContext ctx = new FileSystemXmlApplicationContext("src/com/prueba/beans.xml");

    And it works like a charm!
  12. Replies
    8
    Views
    1,338

    First app and XmlBeanFactory error

    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...
  13. Replies
    5
    Views
    1,668

    yes of course, I copied it wrongly, but that...

    yes of course, I copied it wrongly, but that doens't solve the problem at all...
  14. Replies
    5
    Views
    1,668

    XmlBeanFactory and NullPointerException

    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...
Results 1 to 14 of 14