[jboss-user] [JBoss Seam] - Re: Seam 2.0 BETA
srpantano
do-not-reply at jboss.com
Wed Sep 12 16:06:29 EDT 2007
do you using s:decorate?
when I try this:
<ui:define name="title">
| #{messages['User']} (#{messages['toadd']})
| </ui:define>
|
| <ui:define name="content">
| <h:form>
|
| <rich:panel>
|
| <s:decorate id="usernameDecorate" template="../layout/input.xhtml">
| <ui:define name="outrox">#{messages['User']}:</ui:define>
| <h:inputText size="30" value="#{user.username}" required="true">
| <a4j:support event="onblur" reRender="usernameDecorate"/>
| </h:inputText>
| </s:decorate>
|
| </rich:panel>
|
| </h:form>
|
| </ui:define>
with:
| <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">
|
| <div>
| <s:label>
| <ui:insert name="label"/>
| <s:span rendered="#{required}">*</s:span>
| </s:label>
| <span>
| <s:validateAll>
| <ui:insert/>
| </s:validateAll>
| </span>
| <s:message/>
| </div>
|
| </ui:composition>
the result is messy. The content of title appears in decorate and duplicate the lines, etc.
thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083647#4083647
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083647
More information about the jboss-user
mailing list