[JBoss JIRA] Created: (RF-1051) tabPanel doesn't switch if it immediate and if error occure in the another component
by Anton Belevich (JIRA)
tabPanel doesn't switch if it immediate and if error occure in the another component
------------------------------------------------------------------------------------
Key: RF-1051
URL: http://jira.jboss.com/jira/browse/RF-1051
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.0
Reporter: Anton Belevich
Assigned To: Anton Belevich
Fix For: 3.2.0
Example:
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<head>
<title>repeater</title>
</head>
<body>
<f:view>
<h:form id="form">
<rich:panel header="Errors">
<rich:messages/>
</rich:panel>
<rich:panel header="Simple Echo">
<h:inputText id="in0" size="50" value="#{bean.text}">
<a4j:support event="onkeyup" reRender="rep"/>
</h:inputText>
<h:outputText id="echoField" value="#{bean.text}" id="rep"/>
</rich:panel>
<rich:panel header="Simple Echoless">
<h:inputText id="in1" size="50" value="#{bean.junk}" required="true"/><br/>
<rich:message for="in1"/><br/>
<h:outputText value="#{bean.junk}" id="nonrep"/>
<h:commandButton value="Submit"/>
</rich:panel>
<rich:tabPanel id="tabPanel" selectedTab="t2" switchType="server" immediate="true">
<rich:tab id="t1" label="TabOne">
<h:outputText value="Content1"/>
</rich:tab>
<rich:tab id="t2" label="TabTwo">
<h:outputText value="Content2"/>
</rich:tab>
</rich:tabPanel>
</h:form>
</f:view>
</body>
</html>
--
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
18 years, 6 months
[JBoss JIRA] Assigned: (RF-764) rich:message: FuncSpec-RF-M-CL-015-1.0. The result is not that expected
by Anton Belevich (JIRA)
[ http://jira.jboss.com/jira/browse/RF-764?page=all ]
Anton Belevich reassigned RF-764:
---------------------------------
Assignee: Nick Belaevski (was: Anton Belevich)
to fix this issue we must save previous message in our message component should we do this?
> rich:message: FuncSpec-RF-M-CL-015-1.0. The result is not that expected
> -----------------------------------------------------------------------
>
> Key: RF-764
> URL: http://jira.jboss.com/jira/browse/RF-764
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.1.0
> Environment: richfaces-demo
> Reporter: Sergey Smirnov
> Assigned To: Nick Belaevski
> Fix For: 3.2.0
>
>
> FuncSpec-RF-M-CL-015-1.0 passed state rendering
> Message should not show "passed" state in case of initial rendering. Any state of message should be shown only after some submit occurs (after some validation).
> The current version does not work like this. The "passed" facet is shown event the field is not validated.
> Example:
> <h:form>
> <h:panelGrid columns="3">
> <h:outputText value="Name:" />
> <h:inputText label="Name" id="name" required="true" value="#{userBean.name}">
> <a4j:support event="onblur" ajaxSingle="true" />
> </h:inputText>
> <rich:message for="name">
> <f:facet name="passedMarker">
> <h:outputText value="V" />
> </f:facet>
> <f:facet name="errorMarker">
> <h:outputText value="X" />
> </f:facet>
> </rich:message>
>
> <h:outputText value="Job:" />
> <h:inputText label="Job" id="job" required="true" value="#{userBean.job}">
> <a4j:support event="onblur" ajaxSingle="true"/>
> </h:inputText>
> <rich:message for="job">
> <f:facet name="passedMarker">
> <h:outputText value="V" />
> </f:facet>
> <f:facet name="errorMarker">
> <h:outputText value="X" />
> </f:facet>
> </rich:message>
>
> <h:outputText value="Address:" />
> <h:inputText label="Address" id="address" required="true" value="#{userBean.address}">
> <a4j:support event="onblur" ajaxSingle="true"/>
> </h:inputText>
> <rich:message for="address">
> <f:facet name="passedMarker">
> <h:outputText value="V" />
> </f:facet>
> <f:facet name="errorMarker">
> <h:outputText value="X" />
> </f:facet>
> </rich:message>
>
> </h:panelGrid>
> </h:form>
--
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
18 years, 6 months