Search:

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

Search: Search took 0.03 seconds.

  1. Replies
    4
    Views
    903

    A DTO is a Data Transfer Object. Google it for...

    A DTO is a Data Transfer Object. Google it for more discussion (Martin Fowler probably has some stuff to say about it). The idea is a small simple object (only getters and setters) that brings only...
  2. Replies
    4
    Views
    903

    I'm not sure what you mean by "generic...

    I'm not sure what you mean by "generic verification". The generic DAO patterns I've seen are all based around the fact that all DAOs do pretty much the same stuff. You make all the DAO interfaces,...
  3. Replies
    8
    Views
    2,494

    Yes, I think that is the correct way to do it. ...

    Yes, I think that is the correct way to do it. Also note that within a <form:whatever> tag, the c:if conditional will work. As I understand it, you have to be within a binding context for the errors...
  4. Replies
    8
    Views
    2,494

    Show errors conditionally

    During form validation, I'd like to be able to show errors in two places:

    1. In a list at the top of the form, with all errors listed.
    2. At each field.

    Listing them at each field is clear:...
  5. Replies
    8
    Views
    1,462

    Sounds promising, but semantically I'm not sure I...

    Sounds promising, but semantically I'm not sure I can come to terms with this (using a wizard controller to allow multiple forms per page)? I'm sorry if I come across as picky here, but I am just...
  6. Replies
    8
    Views
    1,462

    Ok, so I hate to reply to my own post again, but...

    Ok, so I hate to reply to my own post again, but here goes.

    How do I cleanly validate this aggregate form? I don't care what they entered in the "addState" box if they submitted the "addCountry"...
  7. Replies
    8
    Views
    1,462

    I suppose my recourse is to create one aggregate...

    I suppose my recourse is to create one aggregate FBO with enough information for both possible branches and have different values for the two submit buttons.

    The controller would decide to do...
  8. Replies
    8
    Views
    1,462

    I think that's unnecessarily complicated. If at...

    I think that's unnecessarily complicated. If at a later date I wanted to again separate these two forms, it would be easier to already have the logic separated.

    I feel this should be possible and...
  9. Replies
    8
    Views
    1,462

    Help! Multiple forms in one view?

    I'm working on a webapp with a bunch of administrative forms for adding things that appear as finite enumerations on the rest of the website (for instance, the administrators are allowed to add...
  10. Replies
    8
    Views
    6,085

    One more question

    Just thought of a related question.

    In the first case above, validators could be written to test the form-backing object for completeness: is every field there, are phone numbers really phone...
  11. Replies
    8
    Views
    6,085

    Thanks

    This is pretty much exactly what I was looking for. I have a decent bit of domain logic, so I think implementing some other form backing object to transfer user-entered data back and forth isn't a...
  12. Replies
    8
    Views
    6,085

    Domain Object Design

    I'm deep in my first Spring/Hibernate project and have a question regarding domain object design.

    I first designed our datamodel, wrote the hibernate mappings, and then built a businesslogic front...
Results 1 to 12 of 12