当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: CUSTOM COMPONENTS WITH JAVASERV
 

 

    摘要: java: 先执行父类的构造函数,然后是引用对象的构造函数(必须有new声明实际类型),然后是自己的构造函数。public class test { public static void main(string[] args) { child child = new child(); }} class parent { parent() { system.out.println("to con......
 ·weblogic8中文显示乱码解决办法    »显示摘要«
    摘要: 中文显示乱码解决办法: 1.在web.xml里面加入 <context-param> <param-name>weblogic.httpd.inputcharset./*</param-name> <param-value>gb2312</param-value> </context-param> 2.......


使用Java Server Faces技术自定义组件

custom components with javaserver faces technology

a second tip in the march 24, 2004, titled introducing javaserver faces technology showed how to create a jsf application that includes gui components that are modeled by the jsf framework. in this tip, youll learn how to create custom components using jsf technology. more specifically, youll learn how to create a custom jsf technology component that represents a simple stock display. through an accompanying javaserver pages (jsp) page, a user can enter a stock symbol into a input text field and then press the submit button. in response, the custom component displays a table below the text field. the table contains the stocks symbol, the current price of the stock, and the daily change in the stock price. 【程序编程相关:用Java Swing 写欢迎界面

the march 24, 2004 tech tip improving designs with the mvc design pattern introduced the architectural pattern known as model, view, controller (mvc or model2). mvc is a pervasive pattern throughout the world of computer science, and is fundamental to understanding javaserver faces (jsf) technology. the pattern separates the data and business logic of an application from its visual representation. the data and business logic is stored in an object called the model. the visual representation is stored in a separate object called the view. the two objects are linked together with a third object called the controller. the controller reacts to input from the view and updates the model data accordingly. the advantage of using this design is that any changes to the business logic or data can be isolated to the model without affecting the view. you can create multiple views without affecting the model. 【推荐阅读:EJB对面向对象设计的影响


...   下一页
    摘要: [环境]hibernate-2.1.7cjbuilderxms sqlserver 2k[正文]lazy属性做为hibernate的提升性能的一个重要参数...想必已被大家所熟知...虽然hibernate2.1.*里面还不支持对于property的延迟加载...但是正确并且灵活的设置xxx-to-many中的lazy属性, 可以给程序性能带来很大提高请先看看下面这段配置<set name......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE