[JBoss JIRA] Created: (RF-3999) beanValidator: tag generated twice in tld.
by Ilya Shaikovsky (JIRA)
beanValidator: tag generated twice in tld.
------------------------------------------
Key: RF-3999
URL: https://jira.jboss.org/jira/browse/RF-3999
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Reporter: Ilya Shaikovsky
Assignee: Ilya Shaikovsky
Fix For: 3.2.2
in richfaces.tld:
<tag>
<description>Validate Input by the Bean/Hibernate validator annotations</description>
<name>beanValidator</name>
<tag-class>org.richfaces.taglib.BeanValidatorTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<description/>
<name>beanValidator</name>
<tag-class>org.richfaces.ui.taglib.BeanValidatorTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>The attribute takes a value-binding expression for a component property of
a backing bean</description>
<name>binding</name>
<deferred-value>
<type>javax.faces.component.UIComponent</type>
</deferred-value>
</attribute>
<attribute>
<description>Every component may have a unique id that is automatically created if omitted</description>
<name>id</name>
<rtexprvalue>false</rtexprvalue>
<type>java.lang.String</type>
</attribute>
<attribute>
<description>If "false", this component is not rendered</description>
<name>rendered</name>
<deferred-value>
<type>boolean</type>
</deferred-value>
</attribute>
</tag>
--
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
15 years, 8 months
[JBoss JIRA] Created: (RF-3992) graphValidator: empty values causes exception instead of messages
by Ilya Shaikovsky (JIRA)
graphValidator: empty values causes exception instead of messages
-----------------------------------------------------------------
Key: RF-3992
URL: https://jira.jboss.org/jira/browse/RF-3992
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Reporter: Ilya Shaikovsky
Assignee: Alexander Smirnov
Fix For: 3.2.2
<rich:panel>
<f:facet name="header">
<h:outputText value="User Info:" />
</f:facet>
<rich:graphValidator>
<h:panelGrid columns="3">
<h:outputText value="Name:" />
<h:inputText value="#{validationBean.name}" id="name"/>
<rich:message for="name" />
<h:outputText value="Email:" />
<h:inputText value="#{validationBean.email}" id="email"/>
<rich:message for="email" />
<h:outputText value="Age:" />
<h:inputText value="#{validationBean.age}" id="age"/>
<rich:message for="age" />
</h:panelGrid>
</rich:graphValidator>
<a4j:commandButton value="Store changes"/>
</rich:panel>
If I enter nothing in fields and click button:
javax.faces.FacesException: Input parameters is not correct.
at org.richfaces.validator.BeanValidator.checkInputParameters(BeanValidator.java:142)
at org.richfaces.validator.BeanValidator.validate(BeanValidator.java:107)
at org.richfaces.validator.FacesBeanValidator.validate(FacesBeanValidator.java:43)
at org.richfaces.component.html.HtmlInputText.validateValue(HtmlInputText.java:35)
at javax.faces.component.UIInput.validate(UIInput.java:875)
at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
at javax.faces.component.UIInput.processValidators(UIInput.java:672)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
at javax.faces.component.UIForm.processValidators(UIForm.java:235)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
at org.richfaces.component.UISwitchablePanel.processValidators(UISwitchablePanel.java:236)
at org.ajax4jsf.component.AjaxViewRoot$3.invokeContextCallback(AjaxViewRoot.java:435)
at org.ajax4jsf.component.ContextCallbackWrapper.invokeContextCallback(ContextCallbackWrapper.java:24)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:235)
at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:451)
at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:150)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:379)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:506)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
exception thrown at:
// Method for checking input parameters for prevent NPE
private void checkInputParameters(FacesContext context,
ValueExpression target, Object value) {
if (null == context || null == target || null == value) {
throw new FacesException(INPUT_PARAMETERS_IS_NOT_CORRECT);
}
}
--
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
15 years, 8 months
[JBoss JIRA] Created: (RF-3925) graphValidator: when all ajaxValidators passed successfully, after submit h:message for all validated components says, that validation failed in case using graphValidator.
by Mikhail Vitenkov (JIRA)
graphValidator: when all ajaxValidators passed successfully, after submit h:message for all validated components says, that validation failed in case using graphValidator.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: RF-3925
URL: https://jira.jboss.org/jira/browse/RF-3925
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: IE6, IE7, FF 3.0, Safari 3.1, Opera 9.5(3.2.2.BETA1)
Reporter: Mikhail Vitenkov
Assignee: Nick Belaevski
Step 1. Create panelGrid with h elements, like inputText, selectOneMenu, selectBooleanCheckBox... which are validated by ajaxValidator following way:
<rich:graphValidator value="#{graphValidator}">
<h:panelGrid columns="2" border="2" id="panelGridID">
...
<h:outputLabel for="mailValue" value="Mail validation:" />
<h:panelGroup>
<h:inputText value="#{validator.text}" id="mailValue">
<rich:ajaxValidator event="onchange" a></rich:ajaxValidator>
</h:inputText>
<rich:message for="mailValue" showDetail="true" showSummary="true" />
</h:panelGroup>
...
</h:panelGrid>
</rich:graphValidator>
Step 2. Input valid values in all fields.
Step 3. Submit form, contained tested panelGrid.
Actual behavior:
h:messages for appropriate fields appears. For more info see attached ValidatorBean.java & GraphValidatorBean.java.
--
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
15 years, 8 months
[JBoss JIRA] Created: (RF-3512) tabPanel loads content of all tabs in server/ajax switchType mode
by Zied Hamdi (JIRA)
tabPanel loads content of all tabs in server/ajax switchType mode
-----------------------------------------------------------------
Key: RF-3512
URL: http://jira.jboss.com/jira/browse/RF-3512
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: Sun RI 1.2, tomcat 6
Reporter: Zied Hamdi
Content of all tabPanel tabs is encoded when displaying a tab: this bug becomes major if our home page loads all data relative to the app. The following code demonstrates this feature:
This is what we get in the log file: all tabs are loaded, then the one to display is loaded again
INFO [gisiinteractive.common.test.jsf.richfaces.TestController] displaying tab 1
INFO [gisiinteractive.common.test.jsf.richfaces.TestController] displaying tab 2
INFO [gisiinteractive.common.test.jsf.richfaces.TestController] displaying tab 3
INFO [gisiinteractive.common.test.jsf.richfaces.TestController] displaying tab 1
For this code, I have no direct way to avoid this (I will try to enable/disable the rendered attribute on each tab on display...) :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:jsp="http://java.sun.com/JSP/Page">
<f:view>
<a4j:loadStyle src="/styles/gisi.css"></a4j:loadStyle>
<ui:insert name="modalPanels" />
<body style="margin: 0; padding: 0;">
<h:form id="mainForm">
<ui:debug hotkey="e" rendered="true" />
<rich:tabPanel switchType="ajax">
<rich:tab label="tab1">
<h:outputText value="#{testController.tab1Text}"/>
</rich:tab>
<rich:tab label="tab2">
<h:outputText value="#{testController.tab2Text}"/>
</rich:tab>
<rich:tab label="tab3">
<h:outputText value="#{testController.tab3Text}"/>
</rich:tab>
</rich:tabPanel>
</h:form>
</body>
</f:view>
</html>
package net.gisiinteractive.common.test.jsf.richfaces;
public class TestController {
private static org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory
.getLog(TestController.class);
public TestController() {
}
public String getTab1Text() {
String value = "displaying tab 1";
LOG.info(value);
return value;
}
public String getTab2Text() {
String value = "displaying tab 2";
LOG.info(value);
return value;
}
public String getTab3Text() {
String value = "displaying tab 3";
LOG.info(value);
return value;
}
}
--
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
15 years, 8 months