[jboss-user] [JBoss Seam] - bug or limitation with seam/facelets ?

hstang do-not-reply at jboss.com
Wed May 30 17:18:09 EDT 2007


Just wondering if it's possible to include a home object as a parameter into an included facelet source.  When doing this, I'm getting a model validation error when submitting the form by persisting the home's instance:

"model validation failed:null" 

Is this some bug or limitation?

Here is an example:


  | ## form.xhtml
  | <ui:composition>
  | <h:form>
  |   <h:inputText value="#{home.instance.property1}"/>
  |   <h:commandButton action="#{home.persist}" value="Persist"/>
  | </h:form>
  | </ui:composition>
  | 
  | ## 1.xhtml
  | <html>
  | <ui:include src="form.xhtml">
  |   <ui:param name="form" value="#{helloHome1}"/>
  | </ui:include>
  | </html>
  | 
  | ## 2.xhtml
  | <html>
  | <ui:include src="form.xhtml">
  |   <ui:param name="form" value="#{helloHome2}"/>
  | </ui:include>
  | </html>
  | 
  | ## components.xml
  | <fwk:entity-home name="helloHome1" entity-class="a.b.c.Hello"/>
  | <fwk:entity-home name="helloHome2" entity-class="a.b.c.Hello"/>
  | 
  | 


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

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



More information about the jboss-user mailing list