本月博客排行
年度博客排行
-
第1名
青否云后端云 -
第2名
zw7534313 -
第3名
大家都说我很棒 - liyihz2008
- wy_19921005
- gengyun12
- hbxflihua
- e_e
- luxurioust
- dbagirl
- zysnba
- robotmen
- Alsmile
- gaozzsoft
- jywhltj
- cpongo1
- leslie26
- qepwqnp
- 解宜然
- cuityang
- sichunli_030
- gashero
- fantaxy025025
- zhangdaiscott
- vipbooks
- wallimn
- gdpglc
- ssydxa219
- ranbuijj
- javashop
- jickcai
- hanbaohong
- johnsmith9th
- appalese
- gaojingsong
- weiyides
- 淡看人生
- java-007
- zhangyi0618
- AVI
- laiyangdeli
- xpenxpen
- liunancun
- 龙哥IT
- conkeyn
- nychen2000
- lyndon.lin
- ouanui
- silverend
- jveqi
最新文章列表
Restricting the Number of Views in a Session
<context-param> <param-name>com.sun.faces.numberOfViewsInSession</param-name> <param-value>15</param-value> </context-param> <context- ...
javax.faces.application.ViewExpiredException: View could not be restored
The ViewExpiredException will be thrown whenever the javax.faces.STATE_SAVING_METHOD is set to server (default) and the enduser sends a HTTP POST request using <h:commandLink> or <h:commandB ...
Application was not properly initialized at startup, could not find Factory:
我刚开始接触jsf,写了第一个jsf代码如下:
<f:view> <h:inputText id="name"></h:inputText> </f:view>运行一下,出现了Application was not properly initialized at startup, could not fin ...
JSF2.0如何下载文件
1. 直接使用文件链接
<h:outputLinkvalue="#{request.contextPath}/resources/file/hello.pdf">
<h:graphicImagelibrary="images"name="pdf.jpg"style="border:no ...
JSF点滴积累--利用PhaseListener实现权限验证
通过PhaseListener 可以在一个点上(JSF生命周期的Restore View phase阶段)进行权限验证,从而避免在每个页面或者每个backing bean中判断用户访问权限,造成过多的冗余代码和管理上的混乱。
步骤一:在faces-config.xml中注册 PhaseListener
<lifecycle>
<phase-listener>com.lo ...
JSF中时间控件 <p:calendar>注意事项
小生第一次用JSF的时间控件<p:calendar>,绑定了相关的Bean后,想着不能让用户随意输入时间值,于是写了以下页面代码:
<p:calendar id="startDate" readonly="true" pattern="yyyy-MM-dd" value="#{myBean.startDat ...
JSF点滴积累--权限验证
通过PhaseListener 可以在一个点上(JSF生命周期的Restore View phase阶段)进行权限验证,从而避免在每个页面或者每个backing bean中判断用户访问权限,造成过多的冗余代码和管理上的混乱。
步骤一:在faces-config.xml中注册 PhaseListener
<lifecycle>
<phase-listener>c ...
jsf*殊字符的转义
jsf在使用jsf为视图的时候,jsf页面中需要转义的特殊字符总结:
1,编写javascript的时候,在开始加上//<![CDATA[ 在结束加上//]]>
例如:
<script type="text/javascript">
//<![CDATA[
//js代码,特殊不需要转义
//]]>
&l ...
Primefaces3之p:tree
使用primefaces3做JSF页面的开发,在使用p:tree的时候,发现官网和文档都有问题,按照文档并不能做出正确的树结构,会有一种"Type is not string"的错误,具体的忘记了。
我在自己项目上实现了正确的p:tree结构,先看下效果
页面代码如下:
<h5>Menu</h5>
<p:tree dy ...
Jsf之NumberConverter
使用h:inputText,h:outputText等输入输出标签时,可以用f:convertNumber来转换数字,百分比或货币的格式。
输入时转换:
<h:form>
<h3>Jsf之NumberConverter</h3>
请输入价格:
<h:inputText value="#{user.price } ...