TogglePanel with immediate=true switches even if validation failed in child immediate
input.
---------------------------------------------------------------------------------------------
Key: RF-5296
URL:
https://jira.jboss.org/jira/browse/RF-5296
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: 3.3.0.BETA3
Reporter: Alexander Dubovsky
Assignee: Nick Belaevski
TogglePanel with immediate=true switches even if validation failed in child immediate
input.
# Open page (source see below)
# clear input
# click Next link
Result: validation message appears, but panel is switched.
Source code:
<h:form>
<rich:messages></rich:messages>
<rich:togglePanel id="panel" switchType="ajax"
initialState="asus"
stateOrder="asus,toshiba,benq" immediate="true">
<f:facet name="asus">
<rich:panel>
<h:panelGrid columns="2" style="background-color: white;">
<h:panelGroup>
<h:graphicImage url="/pics/asus.jpg" height="300"
width="300"
alt="asus" />
<h:inputText immediate="true" value="input"
required="true" />
</h:panelGroup>
<h:panelGroup>
<h:outputText style="font: 18px;font-weight: bold;"
value="Asus F 3 Tc" />
<f:verbatim>
Processor: AMD Turion 64 X 2 - 1600 Mhz<br />
RAM: 1024 Mb<br />
HDD: 100 Gb<br />
Screen: 15.4 WXGA<br />
Video: NVIDIA GeForce Go 7300<br />
Drive: DVD- RW DL<br />
</f:verbatim>
</h:panelGroup>
</h:panelGrid>
</rich:panel>
</f:facet>
<f:facet name="benq">
<rich:panel>
<h:panelGrid columns="2" style="background-color:
yellow;">
<h:graphicImage url="/pics/benq.jpg" height="300"
width="300"
alt="benq.jpg" />
<h:panelGroup>
<h:outputText style="font: 18px;font-weight: bold;"
value="BenQ A 52" />
<f:verbatim>
Processor: Core Duo T2250 (1.73GHz)<br />
RAM: 1024 Mb<br />
HDD: 100 Gb<br />
Screen: 15.4 WXGA<br />
Video: ATI Mobility Radeon X 200<br />
Drive: DVD- RW D<br />
</f:verbatim>
</h:panelGroup>
</h:panelGrid>
</rich:panel>
</f:facet>
<f:facet name="toshiba">
<rich:panel>
<h:panelGrid columns="2" style="background-color:
orange;">
<h:graphicImage url="/pics/toshiba.jpg" height="300"
width="300"
alt="toshiba.jpg" />
<h:panelGroup>
<h:outputText style="font: 18px;font-weight: bold;"
value="Toshiba Satellite A 100-784" />
<f:verbatim>
Processor: Intel Core Duo T2250 - 1.73GHz<br />
RAM: 1024 Mb<br />
HDD: 100 Gb<br />
Screen: 15.4 WXGA<br />
Video: Intel Graphics Media 950<br />
Drive: DVD- RW DL<br />
</f:verbatim>
</h:panelGroup>
</h:panelGrid>
</rich:panel>
</f:facet>
</rich:togglePanel>
<rich:toggleControl id="toggleControl_panel" for="panel"
immediate="false">
<h:outputText value="Next"></h:outputText>
</rich:toggleControl>
--
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