Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.7.1
-
Component/s: Framework
-
Labels:None
-
Environment:Facelets
-
Support Case References:
Description
Here is a description of the issue based on the attached test case:
A message is being added to the faces context in a phase listener (TestPhaseListener.java):
public void beforePhase(PhaseEvent arg0) {
logger.info("before:" + arg0.getPhaseId());
if (arg0.getPhaseId().equals(PhaseId.APPLY_REQUEST_VALUES)) {
arg0.getFacesContext().addMessage("global",new FacesMessage( FacesMessage.SEVERITY_ERROR, "error", "error"));
}
The page contains a panelTabSet that includes a nested tabSet along with ui:composition's. In the inner most ui:composition is where the message is being rendered (TabChangeTemplate.xhtml):
<ice:panelGroup id="enclosingFormData">
<ice:panelGroup>
<ice:messages id="myMessage1" showDetail="true" showSummary="false"/>
</ice:panelGroup>
<ui:insert/>
</ice:panelGroup>
</ui:composition>
However, this configuration causes a duplicate message to be displayed under the panelTabSet. This issue can only be reproduce when clicking for the first time from the first tab to the second tab. All subsequent tab changes do not exhibit this behavior. Attached are screenshots and a test case.
A message is being added to the faces context in a phase listener (TestPhaseListener.java):
public void beforePhase(PhaseEvent arg0) {
logger.info("before:" + arg0.getPhaseId());
if (arg0.getPhaseId().equals(PhaseId.APPLY_REQUEST_VALUES)) {
arg0.getFacesContext().addMessage("global",new FacesMessage( FacesMessage.SEVERITY_ERROR, "error", "error"));
}
The page contains a panelTabSet that includes a nested tabSet along with ui:composition's. In the inner most ui:composition is where the message is being rendered (TabChangeTemplate.xhtml):
<ice:panelGroup id="enclosingFormData">
<ice:panelGroup>
<ice:messages id="myMessage1" showDetail="true" showSummary="false"/>
</ice:panelGroup>
<ui:insert/>
</ice:panelGroup>
</ui:composition>
However, this configuration causes a duplicate message to be displayed under the panelTabSet. This issue can only be reproduce when clicking for the first time from the first tab to the second tab. All subsequent tab changes do not exhibit this behavior. Attached are screenshots and a test case.
Activity
Field | Original Value | New Value |
---|---|---|
Description |
A message is being added to the faces context in a phase listener (TestPhaseListener.java): public void beforePhase(PhaseEvent arg0) { logger.info("before:" + arg0.getPhaseId()); if (arg0.getPhaseId().equals(PhaseId.APPLY_REQUEST_VALUES)) { arg0.getFacesContext().addMessage("global",new FacesMessage( FacesMessage.SEVERITY_ERROR, "error", "error")); } The page contains a panelTabSet that includes a nested tabSet along with some tabs including ui:composition's. In the inner most ui:composition is where the message is being rendered (TabChangeTemplate.xhtml): <ice:panelGroup id="enclosingFormData"> <ice:panelGroup> <ice:messages id="myMessage1" showDetail="true" showSummary="false"/> </ice:panelGroup> <ui:insert/> </ice:panelGroup> </ui:composition> However, this configuration causes a duplicate message to be displayed under the panelTabSet. This issue can also only be reproduce when clicking for the first time from the first tab to the second tab. All subsequent tab changes do not exhibit this behavior. Attached are screenshots and a test case. |
Here is a description of the issue based on the attached test case: A message is being added to the faces context in a phase listener (TestPhaseListener.java): public void beforePhase(PhaseEvent arg0) { logger.info("before:" + arg0.getPhaseId()); if (arg0.getPhaseId().equals(PhaseId.APPLY_REQUEST_VALUES)) { arg0.getFacesContext().addMessage("global",new FacesMessage( FacesMessage.SEVERITY_ERROR, "error", "error")); } The page contains a panelTabSet that includes a nested tabSet along with ui:composition's. In the inner most ui:composition is where the message is being rendered (TabChangeTemplate.xhtml): <ice:panelGroup id="enclosingFormData"> <ice:panelGroup> <ice:messages id="myMessage1" showDetail="true" showSummary="false"/> </ice:panelGroup> <ui:insert/> </ice:panelGroup> </ui:composition> However, this configuration causes a duplicate message to be displayed under the panelTabSet. This issue can only be reproduce when clicking for the first time from the first tab to the second tab. All subsequent tab changes do not exhibit this behavior. Attached are screenshots and a test case. |
Support Case References | https://www.icesoft.ca:4443/supportilla/show_bug.cgi?id=5119 |
Attachment | screenshot-incorrect.jpg [ 11185 ] |
Attachment | SC_5119.war [ 11186 ] |
Environment | All | Facelets |
Summary | ice:messages printing duplicates | ice:messages component causing duplicate rendering |
Fix Version/s | 1.7.2 [ 10130 ] | |
Assignee Priority | P3 | |
Assignee | Mark Collette [ mark.collette ] | |
Priority | Major [ 3 ] | Minor [ 4 ] |
Fix Version/s | 1.7.2 [ 10130 ] |
Fix Version/s | 1.8DR#2 [ 10142 ] | |
Assignee Priority | P3 | P1 |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #18019 | Wed Dec 10 16:01:42 MST 2008 | mark.collette | |
Files Changed | ||||
![]() ![]() |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #18057 | Mon Dec 15 15:45:08 MST 2008 | mark.collette | |
Files Changed | ||||
![]() ![]() |
Fix Version/s | 1.8 [ 10161 ] | |
Assignee Priority | P1 |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee | Mark Collette [ mark.collette ] |
Ready for deployment on tomcat 5.5.