I have one postback to this issue. I have exactly what founded in edit.xhtml in seam
example booking:
<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 class="entry">
| <span class="label">
| <ui:insert name="label"/>
| </span>
| <span class="input">
| <ui:insert/>
| </span>
| </div>
|
| </ui:composition>
And this cause the problem java.lang.IllegalStateException: duplicate Id for a component.
You have to put name in 'span class="input"' and define it in your xhtml
source, wich solves the problem. Here the piece of my code:
| <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 id="entradaDeErro" class="entry">
| <s:label id="labelDeErro" styleClass="label
#{invalid?'errors':''}">
| <ui:insert id="labelDeErro" name="label"/>
| <s:span id="requeridoErro" styleClass="required"
rendered="#{required}"> *</s:span>
| </s:label>
| <span id="spanDeErro" class="input
#{invalid?'errors':''}">
| <s:validateAll>
| <ui:insert id="componente"
name="conteudo"/>
| </s:validateAll>
| </span>
| <s:message id="mensagensErro" styleClass="error
errors"/>
| </div>
|
| </ui:composition>
|
I hope this help you.
Regards,
Valtoni
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120885#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...