Problem:

xhtml part:

  | <h:form>
  | <h:inputText id="command" value="#{wsTest.command}" required="true" />
  | <h:commandButton value="next" action="#{wsTest.next}" class="button" />
  | </h:form>
  | 
  | <h:commandLink action="#{wsTest.next}" value="Action 1">
  | <f:param name="command" value="NEXT"/>
  | </h:commandLink>
  | 


seam action:

  | @Stateless
  | @Local(Foo.class)
  | @Name("wsTest")
  | @Interceptors(SeamInterceptor.class)
  | public class FooAction implements Foo {
  | 
  |     @In
  |     @RequestParameter
  |     String command;
  | 
  |     public String next() {....
  | 



Q1) When I do not have a form and have just commandLink, this will work: I have 
parameter 'command' injected into the action. However, when I add the form on 
the same page, it stops to work, and I can't even render the page without any 
exception.

Is it possible to have both injections (from form and from commandLink) into 
one action's attribute of type String (Long, Integer...)?


Q2) However, if I have my custom attribute type instead of String, with light 
modification of above code, I am able to inject value from form into the nested 
property (<my_type>.). However, now I am not able to do that using 
@RequestParameter.

Is is possible to have nested injection using @RequestParameter and, if yes, 
how?


Q3) Since I haven't found 'action' attribute of the <h:outputLink, how to state 
which seam action will be invoked on link clik?


Thanx in advance.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944845#3944845

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944845


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to