Re: How can handle URL ?

Splash Forums PrettyFaces Users How can handle URL ? Re: How can handle URL ?

#21358

The fix that I wrote about (and which is now available in 3.3.1-SNAPSHOT) fixes the issues you described in your second post on this thread. You wrote that the category parameter was always null when using dynaview. This issue should be fixed now. So please try something like this:

<url-mapping id="catalog">
<pattern>/#{ danhMucController.category }/</pattern>
<view-id>#{ danhMucController.navigator }</view-id>
</url-mapping>

with:

public class DanhMucController {

private String category;

public String navigator() {
System.out.println("Category: "+category);
return "/faces/myview.xhtml";
}

}

The stack overflow error seems to be a totally different issue. We will definitively need the stacktrace to help you there.