
Seam JSF
iteye_12528
这个作者很懒,什么都没留下…
展开
-
解决JBoss 1098端口被占用
1098 TCP org.jboss.naming.NamingService 命令行中输入C:\Documents and Settings\Administrator>netstat -a -o -n Proto Local Address Foreign Address State PID TCP 127.0.0...原创 2009-01-15 15:08:53 · 256 阅读 · 0 评论 -
在Seam中自定义interceptor拦截器
我这里的Seam项目使用war方式部署,所以seam的action是POJO而不是EJB。下面是最终的使用效果,在类上添加自定义的@MySeam, 在需要控制的Field上添加自定义的@SuperString@Name("productAction")@MySeampublic class ProductAction { @SuperString String name; @...2008-09-29 16:29:32 · 248 阅读 · 0 评论 -
在Facelets中使用JSTL
在Facelets中使用JSTL,需要注意 namespace是 xmlns:c=http://java.sun.com/jstl/core下面是一个 .xhtml 文件的例子 <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/f...原创 2008-10-15 19:32:12 · 123 阅读 · 0 评论 -
Richfaces中使用listShuttle必须实现hashCode() equals() 方法
在Seam中使用Richfaces的listShuttle控件时,如果使用了converter需要注意一点,在sourceValue和targetValue中的对象,必须实现hashCode() 和 equals() 方法。 @Name("productConverter")@Converter(id = "productConverter")public class ProductCon...2008-10-28 11:15:49 · 131 阅读 · 0 评论 -
在Seam和Facelets中加空格nbps不好用
在Seam和Facelets的 .xhtml 中添加空格,使用 &nbps; 会报错,使用 &#160; 正常。字符对照表http://www.w3schools.com/tags/ref_entities.asp 具体为什么还不清楚2008-10-28 15:15:44 · 161 阅读 · 0 评论 -
Seam的redirect.captureCurrentView不能记住URL的参数
Seam的redirect.captureCurrentView不能记住URL的参数例如 components.xml 中的 <event type="org.jboss.seam.security.notLoggedIn"> <action execute="#{redirect.captureCurrentView}" /> </event> 不...原创 2008-10-30 11:31:43 · 112 阅读 · 0 评论 -
Seam中查看当前View的ID
Seam中查看当前View的ID, 方法如下 javax.faces.context.FacesContext.getCurrentInstance().getViewRoot().getViewId(); 可以用在javax.faces.event.PhaseListener的beforePhase中,用以监听当前处理的View ID...原创 2008-11-20 18:32:17 · 139 阅读 · 0 评论