Search:

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

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    1,219

    Yes you can extend bean definitions and in such a...

    Yes you can extend bean definitions and in such a manner inherrit the property.


    <bean name="/hello.htm" class="org.web.InventoryController" >
    <property name="supportedMethods" value="POST" />...
  2. does anyone have any id?

    does anyone have any id?
  3. question: parameterize spring messages for field binder errors

    here it goes:

    My init binder method:

    protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception
    {
    DateFormat df = new...
  4. Replies
    3
    Views
    2,759

    Typically (in spring mvc, and as far as i know)...

    Typically (in spring mvc, and as far as i know) it would be 2 different jstl tags from your custom jstl taglib. You would use 1 model which is to be populated with the data necessary to fill the...
  5. Replies
    3
    Views
    1,017

    I have the same problem. The way I solve it now...

    I have the same problem. The way I solve it now is initializing a new "carrier" object in the formBackingObject() method. Obviously this is a very ugly way of solving the problem cause it requires me...
  6. Replies
    7
    Views
    1,777

    I once had the same problem. It turned out I had...

    I once had the same problem. It turned out I had multiple requestproperties of the same name. Some spring class will make an array of multiple values with the same name. Perhaps you could use a http...
  7. you could put the result in the session object...

    you could put the result in the session object and check with the next request (which would invoke the new search) if the request contains a previous search. If so: don't invoke new search.
  8. Replies
    16
    Views
    3,154

    That is correct and I now know its wrong. I...

    That is correct and I now know its wrong. I removed the referenceData() method and set the commandName in the constructor. And it now seems to work.
  9. Replies
    16
    Views
    3,154

    hm okay.. referenceData returns a new model....

    hm okay.. referenceData returns a new model. would that be the problem? lets see..

    edit --
    that doesnt seem the problem as this errors object isnt the BindErrors object but some other validation...
  10. Replies
    16
    Views
    3,154

    hehe you must get really bored by the answering...

    hehe you must get really bored by the answering on the same kind of questions every time. I bet you heard this one very often as well: I'm not returning a new model (for as far as i know)




    //...
  11. Replies
    16
    Views
    3,154

    I seem to have the same problem with putting a...

    I seem to have the same problem with putting a date in a <form:input> when viewing a page through a simpleformcontroller with the page being the page retrieved through the GET. In formBackingObject()...
  12. Replies
    18
    Views
    3,332

    I cant take full credit, Bbut i think its...

    I cant take full credit, Bbut i think its important enough to repeat and enhance.
  13. Replies
    18
    Views
    3,332

    Last but not least. If you use the commons...

    Last but not least. If you use the commons validator. You can create those error objects yourself as well. Basically thats what the property binder is doing as well: rejecting values because they...
  14. Replies
    18
    Views
    3,332

    It's even gonna be better. Check the error object...

    It's even gonna be better. Check the error object again.

    there's a line saying this:
    arguments [org.springframework.context.support.DefaultMessage SourceResolvable: codes...
  15. Replies
    2
    Views
    1,295

    MVC doesn't tie you to one pole that's for sure....

    MVC doesn't tie you to one pole that's for sure.

    I found that create and update usually can be done in the same view/controller (cancellableformcontroller). I check if an id property is set in the...
  16. Replies
    18
    Views
    3,332

    actually there are some more available variables...

    actually there are some more available variables to map:

    inspecting the error object:

    Field error in object 'order' on field 'dateStart': rejected value [];
    codes...
Results 1 to 16 of 16