English 中文(简体)
JSF - right tobuilding forms
原标题:JSF - correct way to build forms

奥基公司,我希望知道在共同基金中建立表格的正确方式。 我有多数据库用户(用户可在运行期间转换数据库,所有数据库都以同一办法为基础),现在我想为数据输入建立表格。

我尝试在NetBeans建立功能,在那里,我可以从数据库中生成实体班级,但从一看,这种方式只有在有数据库的情况下才能正确操作。 对于我的行文,我使用Hibernate。 我已经完成了部分工作,可以转换数据库。

也许会有一些建议,即如何为评估制定形式? 可靠的形式是动态的建设,可以从XML档案中找到。 期待你们的答复!

最佳回答

如果你的申请被真正分为独立的层次(例如DAO/ Service / presentation,或MVC,如果你愿意的话,则由共同基金框架管理的陈述层不应受到数据库链接的影响。

你说,每个数据库都使用同样的结构,因此我并不真的认为,你的共同财产基金构成设计和结构将受到用户选择的数据库的影响。 这一参数将在你更深层的申请中加以考虑,特别是由Hibernate管理的申请。

因此,为了回答你的问题,我要说,在设计你与法国统计局的网页时,你不必注意这一特殊性。 因此,将“违约”最佳做法用于共同基金的发展。

问题回答

没有建筑表格的“正确方式”等内容。 这一切都取决于功能要求和所有条件。

如果这些表格纯粹是“数据库管理工具”的类型,那么,你需要从非行到统一管理(自下而上的方法)的建立。

如果这些表格纯粹是为了给最终用户某种功能(例如登记表、订单表、接触表等),那么往往倾向于从上而下的做法(从国际不动产公司到银行)。

在你看来,它可能采取自下而上的办法。 你 re,可以动用的发电机/工具(如你可能已经发现的那样)。 只要你保持一切抽象,我就不希望看到(真实)可变性和可维持性问题。

然而,它is , 有可能将一些XML文件“convert”, 送到一个有XSL和一个过滤器帮助的JF(XHTML)网页。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签