Plant More Tree wrote:
>
> when I clicked on the link, in the backing bean the system.out print "id =
> dwr". I really dunno what is going wrong.
>
I am a restfaces developer. For sure your problem is that your DWR script
points to a not absolute path:
<script src="dwr/....js" type="text/javascript"></script>
for after clicking /items/123 you go to page /page.xhtml and the page ask
for /items/dwr/....js
items/dwr is a valid pattern for your action method.
This can be solved absolutizing your path:
<script src="#{facesContext.externalContext.requestContextPath}/dwr/....js"
type="text/javascript"></script>
or removing the restfaces filter (but you loose its nice URLs).
I would recommend to absolutize paths. The same is valid for css and other
resources (images, ecc...).
--
View this message in context:
http://www.nabble.com/RestFaces-problem-...-tp17773696p17817343.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.