Search:

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

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Morley, it sounds like your looking portlet...

    Morley,

    it sounds like your looking portlet support. I don't know much about it, but I know it is currently under development for SpringFramework.


    rwells,

    You can get a good handle on...
  2. It's possible to use multiple controllers to...

    It's possible to use multiple controllers to render a single page, but it's a bit overkill since there is only one resulting view. You would do this by making one controller invoke the...
  3. Replies
    6
    Views
    2,695

    This error tells me that your success view...

    This error tells me that your success view contains <spring:bind> tags. In other words, the <spring:bind> tags in your view could not find an Errors object.


    The method signature doesn't have...
  4. Replies
    17
    Views
    24,744

    Why so fatalistical? :wink: I've never had a...

    Why so fatalistical? :wink: I've never had a problem that I couldn't find a solution for with Spring MVC.

    Seriosly, let's consider the basic question at the root of this thread: why do we need to...
  5. Replies
    6
    Views
    2,695

    The errors.getModel() is returning a model that...

    The errors.getModel() is returning a model that can be rendered with <spring:bind> tags. The model is essentially a wrapper for the command object that has the ability to re-populate fields with...
  6. Francesco, What you've done looks good to me....

    Francesco,

    What you've done looks good to me. You may also want to add the following methods to BeanValidator and NamedBeanValidator as they are classes usually used by client code. BeanValidator...
  7. Replies
    3
    Views
    4,167

    Sanjiv, I am happy to contribute to the open...

    Sanjiv,

    I am happy to contribute to the open source community--especially Spring. I too regret that there is no current plan to do this integration. If I ever get some free time I may try again...
  8. Replies
    3
    Views
    4,167

    Sanjiv, Unfortunately, there is no long term...

    Sanjiv,

    Unfortunately, there is no long term plan to include the Commons-Validator support into the Spring framework. After writing the code that can be found in the sandbox, I tried to contribute...
  9. Replies
    8
    Views
    4,399

    That's correct.

    That's correct.
  10. Replies
    8
    Views
    4,399

    There is a way to do this. Unfortunately, the...

    There is a way to do this. Unfortunately, the documentation sucks (I wrote it, I can say that :lol: ). Look at NamedBeanValidator. You can simply configure a different one for each set of validation...
  11. Replies
    21
    Views
    9,357

    I can verify that the...

    I can verify that the LdapPassowrdAuthenticationDAO in the sandbox does have very simple group -> GrantedAuthority (role like) support. It is very simple because it only reads groups that the...
  12. Replies
    1
    Views
    1,750

    The handleInvalidSubmit...

    The handleInvalidSubmit method of AbstractFormController is probably what you're looking for.
  13. Replies
    10
    Views
    4,872

    I'm glad you found the problem. First a...

    I'm glad you found the problem.

    First a question: is it required that users be authenticated before they add an item to the cart? I have not used many online catalogs that have such a requirement....
  14. Replies
    21
    Views
    9,357

    kajism, have you gotten anywhere with the...

    kajism, have you gotten anywhere with the LdapPasswordAuthenticationDaoImpl implementation yet? I am working on a project that would benefit from having the functionality that has been discussed in...
  15. Replies
    10
    Views
    4,872

    Hmm. More info might help. Can you post the...

    Hmm. More info might help. Can you post the relevant parts of your *-servlet.xml (url/controller mappings, etc) and also the source of the controller(s) that this request is passing through?
  16. Replies
    9
    Views
    3,300

    +1 +2 :lol: ...not like I have two votes...

    +1


    +2

    :lol: ...not like I have two votes to cast.
  17. Replies
    10
    Views
    4,872

    Simply specify the URL of your cart controller in...

    Simply specify the URL of your cart controller in the action of the form. For example:


    <form action="add_to_cart.htm" method="post">



    Yes.
  18. Replies
    2
    Views
    2,460

    Try this if MyBean is the command object: ...

    Try this if MyBean is the command object:


    <spring&#58;bind path="command.text">
    <input type="text" name="$&#123;status.expression&#125;">
    </spring&#58;bind>

    or this if your command object has a "myBean"...
  19. Replies
    5
    Views
    6,670

    Try binding to a Date or Integer property. Enter...

    Try binding to a Date or Integer property. Enter "abc" in the field and submit the form. Now what do you get back?
  20. Replies
    5
    Views
    6,670

    Without spring:bind: If a validator fails and the...

    Without spring:bind: If a validator fails and the controller executes showForm(...) to allow the user to correct the errors, the input controls will revert to their default values.


    When the...
  21. Martin Fowler has some valuable insite on this...

    Martin Fowler has some valuable insite on this topic in his article on the Anemic Domain Model.

    This quote sums it up fairly well:



    After reading that, my second argument about complexity...
  22. Replies
    2
    Views
    2,728

    I think you are asking how to customize the error...

    I think you are asking how to customize the error message that appears when the conversion is not successful. This is done by adding messages to your messages.properties (or whatever it is named)...
  23. If I understand what you're saying correctly, the...

    If I understand what you're saying correctly, the thing you will need to worry about is performance when you're loading a large set of Spring-managed domain objects from the db. Since each...
  24. initBinder is the method you're looking for. If...

    initBinder is the method you're looking for. If you read the JavaDoc for BaseCommandController, esp. the initBinder method, you should find all you need to know. The references to...
  25. Replies
    4
    Views
    2,674

    My understanding of the tag and the...

    My understanding of the <spring:bind> tag and the ${status.value} stuff is to allow Spring to perform automatic binding while still allowing the user to edit mis-typed information when validation...
Results 1 to 25 of 34
Page 1 of 2 1 2