[jboss-user] [JBoss Seam] - Re: Seam Remoting in 1.0.1
mjrpain
do-not-reply at jboss.com
Wed Aug 30 12:23:21 EDT 2006
Should have included this earlier. Here's what my code looks like. Again, this worked with jboss-seam-1.0.0.GA.
Javascript in the web page
Seam.Component.getInstance("showFilterAction").getFilterList(reportID, displayCorrectFiltersCallback);
Local Interface
@Local
| public interface ShowFilterLocal {
| @WebRemote
| public String getFilterList(String id);
| }
Action class
| @Stateless
| @Name("showFilterAction")
| @Interceptors(SeamInterceptor.class)
| public class ShowFilterAction implements ShowFilterLocal {
|
| public String getFilterList(String id)
| {
| StringBuffer out = new StringBuffer();
| // do some stuff
| return out.toString();
| }
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968423#3968423
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968423
More information about the jboss-user
mailing list