Changeset 30034
- Timestamp:
- 02/11/08 17:53:37 (10 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
org.nuxeo.project.sample/trunk/src/main/java/org/nuxeo/project/sample/BookManager.java
r29877 r30034 13 13 import org.nuxeo.project.sample.BookManagerBean.BookInfo; 14 14 15 /** 16 * Interface for the <code>bookManager</code> Seam component. 17 * <p> 18 * Use of this interface would be of course necessary if the Seam 19 * component was also an EJB3. In that latter case, the <code>WebRemote</code> 20 * annotation has to be put on the interface method, instead of the 21 * implementation method. 22 * </p> 23 */ 15 24 public interface BookManager { 16 25 … … 78 87 public String changeFilter(); 79 88 89 /** 90 * Method to demonstrate Seam Remoting. 91 * <p>The annotation has to be on the 92 * interface in EJB3 situation. Otherwise it has to be on the 93 * component implementation. 94 * </p> 95 * @param param parameter used from the javascript code. 96 * @return something that uses the parameter 97 */ 80 98 @WebRemote 81 99 public String something(String param); org.nuxeo.project.sample/trunk/src/main/java/org/nuxeo/project/sample/BookManagerBean.java
r29877 r30034 26 26 import org.jboss.seam.annotations.Factory; 27 27 import org.jboss.seam.annotations.In; 28 import org.jboss.seam.annotations.WebRemote; 28 29 import org.jboss.seam.annotations.Name; 29 30 import org.jboss.seam.annotations.Observer; … … 320 321 */ 321 322 323 /** 324 * @param param some string, that is directly passed 325 * from the Javascript code. 326 */ 327 @WebRemote 322 328 public String something(String param) { 323 329 return "It worked: " + param;
