[jboss-user] [JBoss Seam] - s:link works, h:commandButton doesn't

dkane do-not-reply at jboss.com
Thu Aug 23 09:14:26 EDT 2007


Hello. 

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  | 	    		xmlns:ui="http://java.sun.com/jsf/facelets"
  |  			xmlns:h="http://java.sun.com/jsf/html"
  |   			xmlns:f="http://java.sun.com/jsf/core"
  |   			xmlns:s="http://jboss.com/products/seam/taglib"
  |                         xmlns:a="https://ajax4jsf.dev.java.net/ajax"
  | 			template="template.xhtml">
  | ......
  | 
  | <h:form id="termForm">
  | 
  |    <h:commandButton value="Dummy1" action="#{terminalAdm.dummy}"/> 
  |     <s:link value="DummyLink1" action="#{terminalAdm.dummy}"/> 
  | </h:form>



  | @Stateful
  | @Name("terminalAdm")
  | @Scope(ScopeType.SESSION)
  | @SuppressWarnings("unchecked")
  | public class TerminalAdmAction implements TerminalAdm
  | {
  | .....
  |   public void dummy()
  |   {
  |      System.out.println("DUMMY !!! ");  	
  |   }
  | }
  | 


When clicking on s:link, I see "DUMMY !!!" in console. 
When clicking on h:commandButton, I don't see that - action is not being invoked. 
How is this possible ? 

Thanks !


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

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



More information about the jboss-user mailing list