-
1. Re: s:decorate to ui:decorate migration
clairelin Feb 20, 2012 8:16 PM (in response to abrods01)Hi Alex,
I have the same problem now. May I know if you find the solution?
-
2. Re: s:decorate to ui:decorate migration
blabno Feb 21, 2012 7:52 AM (in response to clairelin)IUse this:
{code:xml}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:cc="http://java.sun.com/jsf/composite" xmlns:c="http://java.sun.com/jsp/jstl/core">
<head>
<title>This will not be present in rendered output</title>
</head>
<body>
<cc:interface componentType="org.jboss.seam.faces.component.UIInputContainer">
<cc:attribute name="label" required="true"/>
<cc:attribute name="ajax" required="false" default="false"/>
<cc:attribute name="inputs" required="false" default="1"/>
<cc:attribute name="rendered" required="false" type="java.lang.Boolean"/>
<cc:attribute name="styleClass" required="false" type="java.lang.String"/>
</cc:interface>
<cc:implementation>
<div class="prop#{empty cc.attrs.styleClass ? '' : ' '.concat(cc.attrs.styleClass)}#{cc.attrs.invalid ? ' errors' : ''}" id="#{cc.clientId}">
<h:outputLabel id="label" for="" value="#{cc.attrs.label}:" styleClass="label">
<h:panelGroup styleClass="required" rendered="#{cc.attrs.required}">*</h:panelGroup>
</h:outputLabel>
<span class="input">
<f:validateBean>
<h:panelGroup>
<cc:insertChildren/>
</h:panelGroup>
</f:validateBean>
</span>
<h:panelGroup rendered="#{cc.attrs.invalid}" styleClass="messages">
<c:forEach var="i" begin="1" end="#{cc.attrs.inputs}">
<h:message id="message#{i}" for=""/>
</c:forEach>
</h:panelGroup>
</div>
</cc:implementation>
</body>
</html>{code:xml}
-
3. Re: s:decorate to ui:decorate migration
clairelin Feb 22, 2012 11:12 AM (in response to blabno)Hi,
Thanks for your help.
Br,
Claire