Search:

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

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    8,080

    Hi Billy, I there a way to do something...

    Hi Billy,

    I there a way to do something similar under websphere 5.5.1? In fact i'd like to call all cluster server (initiated by a single server web interface for instance) to tell them to...
  2. Hmmm...that's a good strategy. However, the...

    Hmmm...that's a good strategy. However, the problems lies with security and data integrity of state. Hidden fields are too easy to hack and modify with the right tool. Sure I could serialize my...
  3. Problems with multiple instances of same session form

    Hi,

    We have a requirement that more than one form of the same class be open at the same time for edit/view. Ie: edit two different clients at the same time in their own window. But since the...
  4. Well, not that stupid buddy. I had the same...

    Well, not that stupid buddy. I had the same problem for months and never could figured it out. I copy-pasted some code from some tuturial at the time and it was indeed wrong. Thanks for pointing that...
  5. I agree since I've read the doc more than once,...

    I agree since I've read the doc more than once, but my problem is how to display that processing in a JSP? Is there a tag or something like
    <spring&#58;message code="$&#123;error.resolvedCode&#125;"/>
    that...
  6. Spring:message and error codes resolving question

    Hi,

    I have this code in my JSP that displays all bind and validation errors :


    You have <c&#58;out value="$&#123;errors.errorCount&#125;" /> errors&#58;
    <c&#58;forEach var="error" items="$&#123;errors.allErrors&#125;">
    ...
  7. Confused on domain objects vs transfert objects and DAO

    Hi,

    After a lot of reading, including Rob's book and some topic on this board including http://forum.springframework.org/showthread.php?t=9818 I am quite confused on how to implement our new...
  8. Replies
    3
    Views
    17,940

    Well, this code seems to make it but is there a...

    Well, this code seems to make it but is there a shorter way? Something like <c:out key="${error.messageWithParametersReplaced}"/>?


    <spring&#58;hasBindErrors name="model">
    <c&#58;forEach var="error"...
  9. Replies
    3
    Views
    17,940

    Problem with spring:message and parameters

    Hi to all,

    I'm trying to iterate through the errors collection in a jsp and display all the messages, some of wich may include parameters. Now i'm trying to figure out how to do this with the...
  10. Thanks Omar, but it seemed too much like a hack...

    Thanks Omar, but it seemed too much like a hack to me. ;) So after quite a bit of reading, you were right, it was an issue with how the applicationContext is initialized.

    In web.xml I've added a...
  11. Well, I'm no expert in those context things. My...

    Well, I'm no expert in those context things. My app server is websphere, and i registered a "org.springframework.web.servlet.DispatcherServlet" as the main servlet in my web.xml. I guess from there...
  12. Omar, thanks for the reply. However that does not...

    Omar, thanks for the reply. However that does not seem to work, the line
    ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext&#40;servletContext&#41;; returns null.

    However...
  13. Problem with application context and session invalidation

    Hi,

    I need to detect when a session expires to perform a cleanup in a database. I configured a HttpSessionListener class and registered it in web.xml. So far that works, however I'm quite puzzled...
  14. Unfortunately, there's no built-in way (I'm aware...

    Unfortunately, there's no built-in way (I'm aware of) for this issue. You'll have to override the onBind() method and put some code in it to extract the parameters straight from the request like...
  15. Replies
    19
    Views
    14,659

    Can't see why it does not work! :? On the other...

    Can't see why it does not work! :? On the other hand, Spring has just released version 1.1 final, so install it to see if it resolves your problem...

    regards,

    Uze
  16. Replies
    19
    Views
    14,659

    Ok, I don't know if its what you are looking for...

    Ok, I don't know if its what you are looking for but here's what I have:

    My model that is passed to the form looks like:



    Class myModel&#123;
    private int objectId;
    private User engineer;...
  17. Replies
    5
    Views
    3,676

    For more details look at: ...

    For more details look at:

    http://forum.springframework.org/showthread.php?t=9970&highlight=customdateeditor
    http://forum.springframework.org/showthread.php?t=9862&highlight=customdateeditor...
  18. Aaaaaah! Gotcha! That's what I was looking for....

    Aaaaaah! Gotcha! That's what I was looking for. Thanks!

    However, when the <"sessionForm"> property is set to "true" in the application context isn't the command already supposed to be in the...
  19. Form calling another form does not call referenceData()

    I can't seem to find the problem to this one. I have a SimpleFormControler's onSubmit event that processes database stuff then needs, in some cases, to pass the model to another form for more data...
  20. Replies
    13
    Views
    12,388

    Lis, You are indeed right, without the...

    Lis,

    You are indeed right, without the underscore trick, it does not work correctly with checkboxes!

    Uze
  21. Thread: Redirected view

    by uze
    Replies
    3
    Views
    1,757

    Hi Fabien, I tend to use a URL parameter for...

    Hi Fabien,

    I tend to use a URL parameter for this kind of problem ie: http://crudpage.jsp?return=thispage

    thispage could be a named view resolvable by spring.

    my two cents

    Uze
  22. Replies
    13
    Views
    12,388

    If you just want simple binding, this is...

    If you just want simple binding, this is redundant because springs has a default boolean propertyEditor that correctly convert "true" or "false" strings to boolean type on form submit. Check it out....
  23. Replies
    13
    Views
    12,388

    Have you put a value parameter in your ...

    Have you put a value parameter in your <input> tag? If not, it will always return null when evaluated. To make automatic boolean binding, declare your tag like this:

    <input type="checkbox"...
  24. Replies
    20
    Views
    26,014

    This works, but I prefer to keep the...

    This works, but I prefer to keep the <spring:bind> so I preceded the <input> names with a "_" so Spring does not see them while binding. This is not really elegant, but it works.

    I think the...
  25. Replies
    20
    Views
    26,014

    Now I really need help. I tried parsing the...

    Now I really need help. I tried parsing the request in the onBind as Fabien mentionned but Spring trows me

    with this jsp:



    <spring&#58;bind path="reoDataModel.models">
    <c&#58;forEach...
Results 1 to 25 of 35
Page 1 of 2 1 2