[jboss-user] [JBoss Seam] - s:message with details but without id

SunFire do-not-reply at jboss.com
Tue Jul 17 13:21:39 EDT 2007


I was wondering if there is a way in s:message to avoid rendering the component id.
For example if I am using a decorator like this 
<div class="entry">
  |    <s:label styleClass="label #{invalid?'errors':''}">
  |       <ui:insert name="label"/>
  |       <s:span styleClass="required" rendered="#{required}">*</s:span>
  |    </s:label>
  |    <span class="input #{invalid?'errors':''}">
  |        <s:validateAll>
  |            <ui:insert/>
  |        </s:validateAll>
  |    </span>
  |    <div>
  |        <s:message styleClass="error errors"/>
  |    </div>
  |    <div class="description"><ui:insert name="description" /></div>
  | </div>
when a field does fail a validation you get a "_id63": Value is required.from the <s:message styleClass="error errors"/> component. The message is fine but I don't want to see the id. Since the error message is close to the field that actually failed the validation it is not needed and only confuses the user.
I tried to turn off the details and turn on the summary and this avoids the ID but then the message will always just be "Validation error." or something nondescriptive like that.

Is there an easy way to do this?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065092#4065092

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065092



More information about the jboss-user mailing list