[jboss-user] [JBoss Seam] - Facelets tag source file and s:button/s:link

jalupa do-not-reply at jboss.com
Wed Jan 17 12:19:01 EST 2007


s:button and s:link don't work well when they are used in parameterized tag source files.

Suppose you have this simple seam component:


  | @Name("simpleSeamComponent")
  | public class SimpleSeamComponent {
  | 
  | 	private String message;
  | 	
  | 	public String getMessage() {
  | 		return this.message;
  | 	}
  | 	
  | 	
  | 	public String action() {
  | 		this.message = "Seam rocks!";
  | 		return null;
  | 	}
  | 	
  | }

and an XHTL-facelet page:
<html xmlns="http://www.w3.org/1999/xhtml" 
  | 	xmlns:aca="http://www.aca-it.be/taglib/jsf"  >
  | 
  | 
  | <body>
  | 
  | 	<aca:tagSource bean="#{simpleSeamComponent}"  />
  | 
  | </body>
  | </html>

The facelets tag source file contains:
	<h:form>
  | 			<h:outputText value="Value: #{bean.message}" />
  | 			<h:commandButton value="h:commandButton" action="#{bean.action}" />
  | 			<s:button value="s:button" action="#{bean.action}" />
  | 	</h:form>

When you push the h:commandButton the action is executed. When you push the s:button the action isn't executed.

Is this expected behavior?

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

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



More information about the jboss-user mailing list