This content has been marked as final.
Show 6 replies
-
-
2. Re: <s:decorate/>
pmuir Oct 2, 2006 9:41 AM (in response to gavin.king)Is there going to be a beta/release candidate for 1.1?
-
3. Re: <s:decorate/>
gavin.king Oct 2, 2006 12:13 PM (in response to gavin.king)"mzeijen" wrote:
What does it do?
It is used for decorating form fields when validation fails. There are several facets: "beforeInvalidField", "afterInvalidField", "aroundInvalidField", (along with "beforeField", "afterField", "aroundField") that let you put decorations before, after, or around fields when a failure occurs.
eg:<h:form> <f:facet name="beforeInvalidField"> <h:graphicImage value="/attention.jpg"/> </f:facet> <f:facet name="afterInvalidField"> <s:message/> </f:facet> <f:facet name="aroundInvalidField"> <s:span styleClass="errors"/> </f:facet> <div> <s:decorate>Name: <h:inputText value="#{customer.name}" required="true"/></s:decorate> </div> <div> <s:decorate> Address: <h:inputText value="#{customer.address}" required="true"> <my:vaidateAddress/> </h:inputText> </s:decorate> </div> <div> <s:decorate> Email: <h:inputText value="#{customer.email}"/> <my:validateEmail/> </h:inputText> </s:decorate> </div> </h:form>
Then, when one of the fields is invalid, it will be shown in red with an image before it and the validation message after it. -
4. Re: <s:decorate/>
gavin.king Oct 2, 2006 12:13 PM (in response to gavin.king)"petemuir" wrote:
Is there going to be a beta/release candidate for 1.1?
There will be a beta in October. -
5. Re: <s:decorate/>
rlhr Oct 2, 2006 12:35 PM (in response to gavin.king)That's great news! Exactly what I needed. I started thinking how I would implement this, I guess I can just wait for this new feature then :)
Thanks a lot.
Richard -
6. Re: <s:decorate/>
baz Oct 6, 2006 6:11 AM (in response to gavin.king)Hello,
i like to test <s:decorate/>
But i have some problems with building and using the latest seam jars.
When i execute the build and testcore targets this error occur in the tests[testng] FAILED: org.jboss.seam.test.ContextTest.testContexts()
[testng] java.lang.IllegalStateException: No active application context
....
When i want to use the generated jars, i get a 'class not found' exception.
So i had to copy the newest thirdparty-all.jar into my app.
After deploying this new app is in the correct place.
But the CNF for net.sf.proxy.Factory does not vanish.
My questions:
What is the correct nightly build for testing s:decorate?
Can i use the cvs-version?
Is there something i apparently missed?
The building and using of seam in the past was no problem to me. I just does what it should.
Ciao,
Carsten