[JBoss JIRA] Created: (RF-6831) View replacement with an old one
by Marjan Sterjev (JIRA)
View replacement with an old one
--------------------------------
Key: RF-6831
URL: https://jira.jboss.org/jira/browse/RF-6831
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: Richfaces 3.3.0
Reporter: Marjan Sterjev
I'm running Richfaces 3.3.0 application configured with:
<context-param>
<param-name>com.sun.faces.numberOfViewsInSession</param-name>
<param-value>0</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.numberOfLogicalViews</param-name>
<param-value>0</param-value>
</context-param>
i.e. only one view in the session at the moment.
(This configuration is necessary because we are using <a4j:keepAlive> for persistence of the beans that generate the data tables. This way the links inside the data table will work).
Consider the following scenario:
1. Make an Ajax request in the current view V1. Let us assume that it will run long enough.
2. Before the Ajax request is complete, navigate to another view V2 using normal browser submission. The next view V2 will be saved into the AjaxStateHolder.
3. In the mean time the long running Ajax request will finish and it will replace the current view V2 with the old one V1.
4. When we take some action in the browser, the view V2 is expired.
Is this correct behavior? My opinion is that the Ajax request should not replace the current view if there is no more room for both.
--
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, 11 months
[JBoss JIRA] Created: (RF-6555) dataTable: only first row encoded properly
by Ilya Shaikovsky (JIRA)
dataTable: only first row encoded properly
------------------------------------------
Key: RF-6555
URL: https://jira.jboss.org/jira/browse/RF-6555
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Reporter: Ilya Shaikovsky
Assignee: Nick Belaevski
Priority: Critical
checked within richfaces-demo
<rich:dataTable value="#{dataTableScrollerBean.tenRandomCars}" var="car" id="table"
onRowMouseOver="this.style.backgroundColor='#F8F8F8'"
onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'" rowClasses="cur">
<rich:column>
<f:facet name="header">
Make
</f:facet>
<h:outputText value="#{car.make}"/>
</rich:column>
<rich:column>
<f:facet name="header">
Model
</f:facet>
<h:outputText value="#{car.model}"/>
</rich:column>
<rich:column>
<f:facet name="header">
Price
</f:facet>
<h:outputText value="#{car.price}" />
</rich:column>
<rich:componentControl event="onRowClick" for="menu" operation="show">
<f:param value="#{car.model}" name="model"/>
<f:param value="#{car.make}" name="car"/>
</rich:componentControl>
</rich:dataTable>
component control script, styles, and events handlers rendered only for first <tr/> element all the other rows not affected..
--
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, 11 months
[JBoss JIRA] Created: (RF-6018) panelMenu: Attribute iconCollapsedTopPosition invalid for tag panelMenu (demo)
by Inna Shchibrya (JIRA)
panelMenu: Attribute iconCollapsedTopPosition invalid for tag panelMenu (demo)
------------------------------------------------------------------------------
Key: RF-6018
URL: https://jira.jboss.org/jira/browse/RF-6018
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: FF-3.0
Tomcat 6.0
sun RI 1.2.10
jsp
Reporter: Inna Shchibrya
Assignee: Nick Belaevski
For example:
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:loadBundle var="Message" basename="demo.Messages" />
<html>
<head>
<title>Hello!</title>
<style>
.cols{
vertical-align:top;
width:50%;
}
</style>
</head>
<body>
<f:view>
<h3><h:outputText value="#{Message.hello_message}" />,
<h:outputText value="#{user.name}" />!</h3>
<br/>
<h:form id="form">
<h:panelGrid columns="2" columnClasses="cols" width="100%">
<rich:panelMenu style="width:200px" mode="ajax"
iconExpandedGroup="disc" iconCollapsedGroup="disc"
iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right"
iconCollapsedTopGroup="chevronDown" iconCollapsedTopPosition="right" >
<rich:panelMenuGroup label="Group 1">
<rich:panelMenuItem label="Item 1.1" action="#{panelMenu.updateCurrent}">
<f:param name="current" value="Item 1.1"/>
</rich:panelMenuItem>
<rich:panelMenuItem label="Item 1.2" action="#{panelMenu.updateCurrent}">
<f:param name="current" value="Item 1.2"/>
</rich:panelMenuItem>
<rich:panelMenuItem label="Item 1.3" action="#{panelMenu.updateCurrent}">
<f:param name="current" value="Item 1.3"/>
</rich:panelMenuItem>
</rich:panelMenuGroup>
<rich:panelMenuGroup label="Group 2">
<rich:panelMenuItem label="Item 2.1" action="#{panelMenu.updateCurrent}">
<f:param name="current" value="Item 2.1"/>
</rich:panelMenuItem>
<rich:panelMenuItem label="Item 2.2" action="#{panelMenu.updateCurrent}">
<f:param name="current" value="Item 2.2"/>
</rich:panelMenuItem>
<rich:panelMenuItem label="Item 2.3" action="#{panelMenu.updateCurrent}">
<f:param name="current" value="Item 2.3"/>
</rich:panelMenuItem>
<rich:panelMenuGroup label="Group 2.4">
<rich:panelMenuItem label="Item 2.4.1" action="#{panelMenu.updateCurrent}">
<f:param name="current" value="Item 2.4.1"/>
</rich:panelMenuItem>
<rich:panelMenuItem label="Item 2.4.2" action="#{panelMenu.updateCurrent}">
<f:param name="current" value="Item 2.4.2"/>
</rich:panelMenuItem>
<rich:panelMenuItem label="Item 2.4.3" action="#{panelMenu.updateCurrent}">
<f:param name="current" value="Item 2.4.3"/>
</rich:panelMenuItem>
</rich:panelMenuGroup>
<rich:panelMenuItem label="Item 2.5" action="#{panelMenu.updateCurrent}">
<f:param name="current" value="Item 2.5"/>
</rich:panelMenuItem>
</rich:panelMenuGroup>
<rich:panelMenuGroup label="Group 3">
<rich:panelMenuItem label="Item 3.1" action="#{panelMenu.updateCurrent}">
<f:param name="current" value="Item 3.1"/>
</rich:panelMenuItem>
<rich:panelMenuItem label="Item 3.2" action="#{panelMenu.updateCurrent}">
<f:param name="current" value="Item 3.2"/>
</rich:panelMenuItem>
<rich:panelMenuItem label="Item 3.3" action="#{panelMenu.updateCurrent}">
<f:param name="current" value="Item 3.3"/>
</rich:panelMenuItem>
</rich:panelMenuGroup>
</rich:panelMenu>
<rich:panel bodyClass="rich-laguna-panel-no-header">
<a4j:outputPanel ajaxRendered="true">
<h:outputText value="#{panelMenu.current} selected" id="current"/>
</a4j:outputPanel>
</rich:panel>
</h:panelGrid>
</h:form>
</f:view>
</body>
</html>
Actual result: exception "Attribute iconCollapsedTopPosition invalid for tag panelMenu according to TLD".
--
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, 11 months
[JBoss JIRA] Created: (RF-6545) rich:panelMenu rich:panelMenuItem requires binding to remember selected item state
by Mike Hanafey (JIRA)
rich:panelMenu rich:panelMenuItem requires binding to remember selected item state
----------------------------------------------------------------------------------
Key: RF-6545
URL: https://jira.jboss.org/jira/browse/RF-6545
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Reporter: Mike Hanafey
In the example below, the backing bean is session, but it does nothing with the "binding" property (other than store the value). If "binding" is omitted, then the selected state of the panel menu items is not maintained, but it seems this should be part of the saved component state. Without "binding" if item "el" is clicked, the label momentarily turns purple, but when the view is restored it turns back to the plain state. When "binding" is present, each item that is clicked turns purple, and stays purple.
<rich:panelMenu id="sideMenu" style="width:100%" mode="server" binding="#{MainToolBar.settingsMenu.panelMenu}"
iconExpandedGroup="disc" iconCollapsedGroup="disc"
iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right"
iconCollapsedTopGroup="chevronDown">
<rich:panelMenuItem id="el" label="Report Sections" action="#{MainToolBar.settingsMenu.actionReportSectionSettings}"/>
<rich:panelMenuItem id="snl" label="A stubbed" action="#{MainToolBar.settingsMenu.actionReportSectionSettings}"/>
</rich:panelMenu>
The problem was traced as far as org.richfaces.renderkit.html.PanelMenuItemRenderer, where "parentMenu.getSelectedName()" always returns the empty string if "binding" is not present.
public boolean isSelected(FacesContext context, UIComponent component){
UIPanelMenuItem item = (UIPanelMenuItem)component;
UIPanelMenu parentMenu = findMenu(item);
return item.getName().equals(parentMenu.getSelectedName());
}
--
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, 11 months
[JBoss JIRA] Created: (RF-6037) inplaces: in IE6-7 works wrong in scrollable container
by Ilya Shaikovsky (JIRA)
inplaces: in IE6-7 works wrong in scrollable container
-------------------------------------------------------
Key: RF-6037
URL: https://jira.jboss.org/jira/browse/RF-6037
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Reporter: Ilya Shaikovsky
Assignee: Nick Belaevski
look to related issue. The same for inplaces. Modal panel not need to be added. reproduced just under next code:
<div style="width:220px; height:100px; overflow:auto;">
<f:facet name="header">
<h:outputText value="Person Info"></h:outputText>
</f:facet>
<h:panelGrid columns="2">
<h:outputText value="Name: "/>
<rich:inplaceInput defaultLabel="click to enter your name"/>
<h:outputText value="Email:"/>
<rich:inplaceInput defaultLabel="click to enter your email"/>
</h:panelGrid>
<div style="width:220px; height:500px;">
123
123
123
</div>
--
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, 11 months