Results 1 to 7 of 7

Thread: Does Spring support smth. like entity-editor?

  1. #1
    Join Date
    Aug 2007
    Posts
    15

    Question Does Spring support smth. like entity-editor?

    Hi!

    I have one question. For example I want to write page where I will have a form for UserData (e.g). And I have user table. Does Spring supports smth. like this: I'll describe my table data there, and I'll choose which field from the table show in the form and which not. If I want to edit one of this fields I'll describe it like editable. And after data would be entered and Submit button would be pressed it'd inserted into the database (to the related table).

    THANKS, andy20.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    Not that I'm aware of.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Aug 2007
    Posts
    15

    Default

    But if I'd use jsf-spring library, in this case jsf supports it, isn't it?

    andy20

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    if that library supports it then it supports it but you asked if Spring had support for it. It doesn't. If there is some external library, like jsf, that supports it well then that library supports it and might have spring integration.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  5. #5
    Join Date
    Aug 2007
    Posts
    15

    Default

    Quote Originally Posted by mdeinum View Post
    if that library supports it then it supports it but you asked if Spring had support for it. It doesn't. If there is some external library, like jsf, that supports it well then that library supports it and might have spring integration.
    OK.

    Thanks, andy20.

  6. #6
    Join Date
    Nov 2006
    Location
    Boston, US
    Posts
    167

    Default

    Not sure why would you want something like that!

    What you're asking is PHP and .NET programming styles which always break good patterns of software development. Java Web/Enterprise projects tend to be more layered and heavyweight than the counter parts for reasons well known (code maintainability, standards, testing, scalability, layered architecture. domain driver development etc..). I don't know much about JSF but I believe a lot is inspired to promote Component driven development to compete with .NET's rich datagrids.

    If you still want a Jsp to interact directly with a database table (like a Grid), I think you will end up writing a massive tag library with Spring's jdbcTemplate/hibernateTemplate underneath and wrap all htmlElement Types. Might be a good opensource project in itself.

    Anybody wants to contribute?

  7. #7
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    Well I think the challenge here is to create it in such a way that you keep your layering and don't directly 'edit' your data. But you give the illusion.

    Might be a challenge to create.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •