Sep 4th, 2007, 04:32 AM
Does Spring support smth. like entity-editor?
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).
Sep 4th, 2007, 06:31 AM
Sep 4th, 2007, 06:39 AM
But if I'd use jsf-spring library, in this case jsf supports it, isn't it?
Sep 4th, 2007, 06:46 AM
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.
Sep 4th, 2007, 06:49 AM
Originally Posted by mdeinum
Sep 4th, 2007, 03:15 PM
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?
Sep 4th, 2007, 03:21 PM
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.