[JBoss JIRA] Created: (RF-4428) 3.2.2.CR4: ajaxValidator doesn't find ValidatorMessages.properties
by Juergen Zimmermann (JIRA)
3.2.2.CR4: ajaxValidator doesn't find ValidatorMessages.properties
------------------------------------------------------------------
Key: RF-4428
URL: https://jira.jboss.org/jira/browse/RF-4428
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: RF 3.2.2.CR4, JSF 1.2_09, JBoss 4.2.3, Hibernate Validator 3.1.0.CR2, JDK 1.6.0_07
Reporter: Juergen Zimmermann
I have this entity class:
public class Kunde implements java.io.Serializable {
@Column(length=NACHNAME_LENGTH_MAX)
@NotNull(message="{kundenverwaltung.kunde.nachname.notNull}")
@Length(min=NACHNAME_LENGTH_MIN, max=NACHNAME_LENGTH_MAX, message="{kundenverwaltung.kunde.nachname.length}")
@Pattern(regex=NACHNAME_PATTERN, message="{kundenverwaltung.kunde.nachname.pattern}")
@XmlElement(required=true)
protected String nachname = "";
...}
The message keys like kundenverwaltung.kunde.nachname.length are declared in ValidatorMessages.properties and ValidatorMessages_de.properties. Both files are in the root of an EAR file. When doing Hibernate validation within the EJB module (resp. .jar file) there is no problem: the messages are picked up in the right language.
However, when changing an xhtml page to use the new rich:ajaxValidator like the following fragment, then only a message pops up containing the message key, e.g. kundenverwaltung.kunde.nachname.length (see above).
<h:form id="createForm">
<a4j:region>
<h:panelGrid id="panelGrid" columns="3" columnClasses="kundendetailsBezeichner, kundendetailsDaten">
<h:outputLabel value="#{i18n['createEinenKunden.nachname']}" for="nachname"/>
<h:inputText id="nachname"
value="#{kv.neuerFirmenkunde.nachname}"
required="true"
requiredMessage="#{i18n['createEinenKunden.nachname.required']}">
<rich:ajaxValidator event="onblur" reRender="fehlermeldungNachname"/>
</h:inputText>
<rich:message id="fehlermeldungNachname" for="nachname" errorClass="error" showSummary="true" showDetail="true">
<f:facet name="errorMarker">
<h:graphicImage url="/images/error.gif"/>
</f:facet>
</rich:message>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 7 months
[JBoss JIRA] Created: (RF-3493) datascroller: facet pages it is displayed not skins
by Aleksej Yanul (JIRA)
datascroller: facet pages it is displayed not skins
---------------------------------------------------
Key: RF-3493
URL: http://jira.jboss.com/jira/browse/RF-3493
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Reporter: Aleksej Yanul
Assigned To: Nick Belaevski
Attachments: skin.JPG
<ds:datascroller pagesVar="pages" pageIndexVar="index" onpagechange="return confirm('Do you want to go to: ' + event.memo.page + '?')" page="2" for="master" reRender="actionCount, eventCount" rendered="true" fastStep="2" actionListener="#{testBean.onAction}" renderIfSinglePage="#{testBean.renderIfSinglePage}" scrollerListener="#{testBean.doScroll}" maxPages="#{testBean.maxpage}">
<f:facet name="pages">
<h:outputText value="#{index} / #{pages}" />
</f:facet>
</ds:datascroller>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 7 months
[JBoss JIRA] Created: (RF-4388) pickList: incorrect behavior if "required=true"
by Alexander Dubovsky (JIRA)
pickList: incorrect behavior if "required=true"
-----------------------------------------------
Key: RF-4388
URL: https://jira.jboss.org/jira/browse/RF-4388
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: 3.2.2.CR2
Reporter: Alexander Dubovsky
Assignee: Nick Belaevski
# Open page with pickList (source see below)
# Submit page => Required message appears
# Move some item to the right
# Submit page => Required message disappears
# Move all items to the left
# Submit page
Result: items moves to the right, message appears
Items should not move to the right!
Source:
<rich:pickList id="testList" copyAllControlLabel="Add All"
copyControlLabel="Add" listsHeight="90" sourceListWidth="200"
targetListWidth="200" required="true"
requiredMessage="Error input is required.">
<f:selectItem itemLabel="Human Resources" itemValue="1" />
<f:selectItem itemLabel="Product Development" itemValue="2" />
<f:selectItem itemLabel="Marketing" itemValue="3" />
<f:selectItem itemLabel="Sales" itemValue="4" />
</rich:pickList>
<h:commandButton value="submit()" />
<rich:messages></rich:messages>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 7 months