[jboss-user] [JBoss Seam] - Re: PhaseListener in Seam 2.0
wachtda
do-not-reply at jboss.com
Tue Jan 22 02:52:55 EST 2008
If I get the context via FacesContext I have exactly the same issues:
| @Observer("org.jboss.seam.beforePhase")
| public void beforePhase() {
| try {
| //FacesContext context = event.getFacesContext();
| FacesContext context = FacesContext.getCurrentInstance();
| HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();
|
| //Only handle POST
| if ("POST".equalsIgnoreCase(request.getMethod())) {
| trimUIInputStrings(context.getViewRoot().getChildren());
| }
| } catch (Exception e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122063#4122063
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122063
More information about the jboss-user
mailing list