Hi guys,
I'm using appfuse 1.9.4 which is using DWR 2.0 and RestFaces 1.3.
public class BooksBean {
private Book book;
@HttpAction(value="bookAction", pattern="book/{id}")
public String getBookById(@Param("id") long id) {
System.out.println("id = "+id);
book = new BookService().getBookById(id);
return "/book.jsp";
}
//getter and setter ...
}
<rest:link value="bookAction">
<f:param name="id" value="123456789"/>
<h:outputText value="#{book.name}"/>
</rest:link>
when I clicked on the link, in the backing bean the system.out print "id =
dwr". I really dunno what is going wrong. In my web.xml is like below :
<filter>
<filter-name>RestFaces filter</filter-name>
<filter-class>org.restfaces.Filter</filter-class>
<init-param>
<param-name>faces-mapping</param-name>
<param-value>*.html</param-value>
</init-param>
</filter>
<filter>
<filter-name>DwrFacesFilter</filter-name>
<filter-class>org.directwebremoting.faces.FacesExtensionFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>RestFaces filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>DwrFacesFilter</filter-name>
<url-pattern>/dwr/*</url-pattern>
</filter-mapping>
Appreciate someone can help me here ... thanks !
regards,
Mark
---------- 50waystohelp.com
--
View this message in context:
http://www.nabble.com/RestFaces-problem-...-tp17773696p17773696.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.