This content has been marked as final.
Show 2 replies
-
1. Re: FaceMessages question
herberson Jul 21, 2010 1:52 PM (in response to shavo26)Try put this
<rich:message for="file" />
after the<s:fileUpload/>
tag. -
2. Re: FaceMessages question
shavo26 Jul 21, 2010 8:02 PM (in response to shavo26)Hi Herberson,
I tried that but it does not work.<s:decorate id="fileUploadDecoration" template="layout/edit.xhtml"> <ui:define name="label">Pathname</ui:define> <s:fileUpload id="file" accept="application/pdf" data="#{newAttachment.doc}" contentType="#{newAttachment.fileContentType}" fileName="#{newAttachment.fileName}" fileSize="#{newAttachment.fileSize}"/> <rich:message for="file" /> </s:decorate>
I want to see the error message at my file upload widget location. Message prints at the top.
It should work similar to decorating the input field with edit template, whereby if field is required, i see an error message appended to the right of the field. Thats what i want.