Re: How can handle URL ?

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

#21383

thanhtung90
Participant

Second problem generated ^^, i want create dynamic url like this:

abc.com/dynamic-a/dymanic-b/dynamic-c

so next, i create 3 controller: AController, BController, CController with 3 methods navigation, 3 properties in their:

private String url (include set-getter)
public String navigator(){}

Dynamic-a fine, but in dynamic-b stop, i see seem error similar previous. PrettyFaces call property direct instead of call setter method or navigator method, result is property null.

P/S:

This is my code mapping:

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

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

I don’t know need parentId in this case, but i still try.