Search:

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

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Thread: lazy load problems

    by pak
    Replies
    3
    Views
    1,351

    Hi again, I have made a simple example which...

    Hi again,

    I have made a simple example which illustrates my problem. I'm not sure how much I should include here, so snippets follow. If anyone thinks they can help and wants more info (or the...
  2. Thread: Learning Spring

    by pak
    Replies
    2
    Views
    1,924

    Learning Spring

    Hi there

    are there courses in the use of Spring? For example, where a tutor uses a few days to go through concepts, usage, best practices etc, with examples both simple and complex.

    We are...
  3. Replies
    10
    Views
    5,685

    Thanks for the answer. I am trying to use...

    Thanks for the answer.

    I am trying to use org.springframework.orm.hibernate.support.OpenSessionInViewInterceptor to help with lazy-loading in my web-app, but still get "initialisation" problems. ...
  4. Replies
    10
    Views
    5,685

    Book: Spring/Hibernate.

    Hi there

    is there a book available which has in-depth discussion of the use of Spring and Hibernate together? I am really looking for complex examples of web-applications (for administration of...
  5. Thread: lazy load problems

    by pak
    Replies
    3
    Views
    1,351

    lazy load problems

    What exactly does the following exception mean... or rather, how do I fix it?

    I am using "HibernateDaoSupport" for accessing the database, and have configured the "OpenSessionInViewInterceptor"...
  6. Thread: DataBinder

    by pak
    Replies
    1
    Views
    1,128

    DataBinder

    Hi there,

    Can I register a data-binder like this:

    dataBinder.registerCustomEditor( null, "parent", new MyBinder() );

    ...which I think should cause "MyBinder" to be called with the value of...
  7. Replies
    2
    Views
    1,976

    Thanks for the help. Peter

    Thanks for the help.
    Peter
  8. Replies
    2
    Views
    1,976

    InvalidDataAccessApiUsageException

    Hi there

    I am making a webapplication using spring and hibernate. I am using Hibernate's "lazy loading" of some data objects as it gives a performance boost, and therefore I am using one of...
  9. Thread: jstl

    by pak
    Replies
    6
    Views
    1,921

    Indeed I can do that, but only if I obtain my...

    Indeed I can do that, but only if I obtain my "Company" object like this:

    <%
    Company company = (Company)session.getAttribute("dk.ciber.organisation.web.CompanyController.form.company");
    %>
    ...
  10. Thread: jstl

    by pak
    Replies
    6
    Views
    1,921

    jstl

    Hi there
    I am not sure if this is the right place to ask this question, but I am using Spring + JSP with JSTL.

    Say I have an object I can access on my JSP, like this:
    <c:out...
  11. Replies
    8
    Views
    5,824

    I have done very similar to YSutarko's suggestion...

    I have done very similar to YSutarko's suggestion for displaying the list, and allowing for editing.

    The harder part is implementing adding and deleting items. I have used some of Armen's...
  12. Replies
    8
    Views
    5,824

    Hi, thanks for the reply. Does your first...

    Hi, thanks for the reply.

    Does your first solution mean that the hidden field maps to an attribute in your "Job" class?

    Every time you click the "add" button to generate an extra field you get...
  13. Thread: Bind errors

    by pak
    Replies
    5
    Views
    2,243

    Bind errors

    Hi there

    how do I add "bind exceptions" in my OnSubmit method?

    I override
    ModelAndView onSubmit(HttpServletRequest request,
    HttpServletResponse response, Object command,...
  14. Replies
    5
    Views
    3,359

    Er... hi... sorry, yet again I find I have done...

    Er... hi... sorry, yet again I find I have done something else wrong... in this case it was to do with the fact that I was submitting select-boxes, and the values submitted were not able to be...
  15. Replies
    5
    Views
    3,359

    SimpleFormController submit handling

    Hi,

    My class extends SimpleFormController.

    If I override "onSubmit" then I can handle a form submission. But if I also override "referenceData", then it appears that "onSubmit" does not get...
  16. Replies
    8
    Views
    5,824

    Edit a collection of objects on JSP

    Hi there,

    I want to make a JSP for editing a "Construction" object which is populated from data in a database.

    The "Construction" object has attributes:
    String name
    Collection prices

    The...
  17. Replies
    2
    Views
    2,529

    Great, thanks. Really easy when you know how. The...

    Great, thanks. Really easy when you know how. The custom editors supplied with Spring are just what I need.

    Peter
  18. Replies
    2
    Views
    2,529

    Failed to convert property

    Hi there

    I have a form where the user can enter various items of data, and submit to a controller.

    My problem is that some of the fields bind to numeric types (Double) or Date for example. And...
  19. Thread: null objects

    by pak
    Replies
    4
    Views
    1,788

    null objects

    Say I have a "Data" object, which has (amongst other things) a "Price" object, which has an "amount" and a "comment".

    I want to display the "Data" object on a form for the user to edit.

    When it...
  20. Replies
    4
    Views
    3,324

    Hi, thanks for the reply. I have looked at the...

    Hi, thanks for the reply.

    I have looked at the log, but it doesn't really help me that much... I can't identify one specific thing that takes a long time, but there are many sql selects made, and...
  21. Replies
    4
    Views
    3,324

    Help newbie with HibernateDaoSupport

    Hi,

    we are using Spring and Hibernate on a project (and ehcache for caching), and hope to be able to take advantage of Spring's built-in support for Hibernate.

    For database access we have made...
  22. Replies
    3
    Views
    6,694

    OK, it finally "clicked" with me. You define the...

    OK, it finally "clicked" with me. You define the "resolver" in the xxx-servlet.xml:

    <bean id="viewResolver" class="org.springframework.web.servlet.view.ResourceBundleViewResolver">
    <property...
  23. Replies
    3
    Views
    6,694

    ResourceBundleViewResolver

    Hi there

    is there an online resource which describes in detail how to use ResourceBundleViewResolver (I admit I am slow on the uptake, and need a detailed explanation with examples)?

    Thanks,...
  24. Thread: How to map views

    by pak
    Replies
    4
    Views
    2,059

    But using InternalResourceViewResolver and...

    But using InternalResourceViewResolver and "prefix" and "suffix" format, doesn't that mean the all JSPs will be mapped to the same "prefix"?

    I want different prefixes depending on the...
  25. Replies
    3
    Views
    16,416

    Display tree on JSP, recursion?

    Hi there

    I have a "tree" structure of Node objects, each containing a List of children Node objects etc.

    I pass the root Node object to a JSP, and would like to display the tree structure.
    ...
Results 1 to 25 of 31
Page 1 of 2 1 2