把学习过程自己不理解的地方记录下来,供参考,指正,
- 初始页面index.xhtml是如何定义的?
因为在web.xml中没看到初始页面的定义,发现是定义在pages.xml中,定义的内容如下:
<page view-id="/index.xhtml">
<rewrite pattern="/" />
</page>
引申:pages.xml的作用?
参考URL:
http://www.ibm.com/developerworks/cn/java/j-seam1/ - Blog.java文件中,java.util.Locale是干什么的?
java.util.Locale主要在软件的本地化时使用。它本身没有什么功能,更多的是作为一个参数辅助其他方法完成输出的本地化。
参考URL:
http://blog.youkuaiyun.com/revo/archive/2006/04/05/651998.aspx
http://gceclub.sun.com.cn/Java_Docs/html/zh_CN/api/java/util/Locale.html - Blog.java文件中,@Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)的含义???
解释说明:the given cache concurrency strategy (NONE, READ_ONLY, NONSTRICT_READ_WRITE, READ_WRITE, TRANSACTIONAL)
参考URL:
http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/ - Blog.java文件中,
@OneToOne(optional=false, mappedBy="blog")
private HitCount hitCount;
的含义?
⇒“OneToOne”意思是blog和hitcount是一对一的关系。
⇒“optional=false”意思是与blog对应的hitcount不能为空。
⇒“mappedBy="blog"”意思是blog和hitcount是双向关系。
另,OneToOne理解了的话,OneToMany的理解也就不难了。
参考URL:
http://lym6520.iteye.com/blog/311030
http://www.cnblogs.com/cxccbv/archive/2009/01/20/1378831.html
http://www.ibm.com/developerworks/cn/java/j-lo-openjpa4/ - treecache.xml的作用?
参考URL:
http://docs.jboss.org/seam/2.0.0.GA/reference/zh/html/cache.html
http://liwanchun-xd.iteye.com/blog/177865
http://topic.youkuaiyun.com/u/20080108/19/938714ec-3b95-4bc0-b72c-5a0cd270ee71.html
http://www.blogjava.net/Carter0618/archive/2007/07/03/127858.html
http://hi.baidu.com/stenlylee/blog/item/3dfb7dd998d3d1ec38012f64.html - 如何实现default,accessible和printable三种主题的切换的?
⇒在components.xml中,
<theme:theme-selector>
<theme:available-themes>
<value>default</value>
<value>accessible</value>
<value>printable</value>
</theme:available-themes>
</theme:theme-selector>
⇒在menu.xhtml中,
<span class="menuItem">
<h:selectOneMenu value="#{themeSelector.theme}">
<f:selectItems value="#{themeSelector.themes}"/>
</h:selectOneMenu>
<h:commandButton action="#{themeSelector.select}" value="Select Theme"/>
</span>
⇒配合上default.properties,accessible.properties,printable.properties,default.css,accessible.css,printable.css的使用就可以了。 - 添加blog.body时,如果使用了回车键,显示的时候,回车键后面的内容没有显示出来。
//TODO - //
END