[JBoss Seam] - html element id appearing on validation message
by gsegura
Perhaps this is simple but I can not find how to stop the html element id from appearing in the validation message each time the validation ocurrs, that is, I have a template like this (taken from some seam example):
| <div class="prop">
| <s:label styleClass="name #{invalid?'errors':''}">
| <ui:insert name="label" />
| <s:span styleClass="required" rendered="#{required}">*</s:span>
| </s:label>
| <span class="value #{invalid?'errors':''}">
| <s:validateAll>
| <ui:insert />
| </s:validateAll>
| </span>
| <s:message styleClass="error errors"/>
| </div>
|
which I use as:
| <s:decorate id="decorateAddress" template="/layout/edit.xhtml">
| <ui:define name="label">Address:</ui:define>
| <h:inputText id="address" value="#{register.info.address}" required="true" >
| <a4j:support event="onblur" reRender="decorateAddress"/>
| </h:inputText>
| </s:decorate>
|
when the validation message appears next to the control it always includes the html element id, something like this:
| registerForm:decorateAddress:address: Validation error: required value
|
But I would like NOT to show the "registerForm:decorateAddress:address" part in the validation message, how to do so?
thanks in advance for any help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107217#4107217
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107217
18 years, 8 months
[JBoss Seam] - application does not react as expected on production server
by vlaugier
Hello,
this is a very, very byzarre thing
the user is asked to select items in a selectManyMenu and then to validate its choice on another page. This validation associates these items to an attribute of type List, say : bulk
Since the selected items are now associated to this attribute there are expected to be removed from the list.
My problem is that the validated items are not removed from the list when I run the application on the production server.
There are severall way to make this works in my developement environment (either when launched in the default configuration or production)
remove the element from the bulk
| bulk.remove(element);
|
or
reload the whole bulk
| reloadBulk();
|
But in the production server, the only thing that works is to refresh the element before testing its right to be in a bulk (is it already associated to a bulk or not) which turns out to be dramatic for performance when there is a lot of elements to refresh.
If anyone has an idea ...
regards
vincent
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107215#4107215
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107215
18 years, 8 months