[JBoss JIRA] Created: (RF-10327) tabPanel: can't change activeItem from outside the panel
by Ilya Shaikovsky (JIRA)
tabPanel: can't change activeItem from outside the panel
--------------------------------------------------------
Key: RF-10327
URL: https://issues.jboss.org/browse/RF-10327
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-panels-layout-themes
Affects Versions: 4.0.0.Milestone5
Reporter: Ilya Shaikovsky
Assignee: Nick Belaevski
Using the code below panel always "one step behind" the select. chaning first time - nothing, second time - first selection set and so on.. no js errors and nothing in log.
Can't update the parent because of RF-10112
<h:form>
<a4j:region>
<rich:panel style="width:500px">
<h:selectOneRadio value="#{cityTabBean.city}"
valueChangeListener="#{cityTabBean.changeCity}">
<f:selectItem itemLabel="New York" itemValue="nyc" />
<f:selectItem itemLabel="San Francisco" itemValue="sf" />
<f:selectItem itemLabel="Los Angeles" itemValue="la" />
<a4j:ajax event="change" render="cityTabs @this" />
</h:selectOneRadio>
</rich:panel>
</a4j:region>
<rich:panel style="width:500px" header="rich:tabPanel and rich:tab">
<rich:tabPanel switchType="ajax" id="cityTabs"
activeItem="#{cityTabBean.selectedTab}">
<rich:tab header="New York City" name="nyc">
Statue of Liberty
</rich:tab>
<rich:tab header="San Francisco" name="sf">
Golden Gate Bridge
</rich:tab>
<rich:tab header="Los Angeles" name="la">
Hollywood
</rich:tab>
</rich:tabPanel>
</rich:panel>
</h:form>
and
package org.richfaces.book.examples.tabpanel;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.event.ValueChangeEvent;
@ManagedBean
@SessionScoped
public class CityTabBean {
private String city = "sf";
private String selectedTab = "sf";
public void changeCity(ValueChangeEvent event) {
System.out.println("CityTabBean.changeCity()");
System.out.println(event.getNewValue());
selectedTab = city;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getSelectedTab() {
return selectedTab;
}
public void setSelectedTab(String selectedTab) {
this.selectedTab = selectedTab;
}
}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 5 months
[JBoss JIRA] Created: (RF-10241) Menu Tags produce Warnings in logfile due to missing MIME-TYPE definition
by Karl Mueller (JIRA)
Menu Tags produce Warnings in logfile due to missing MIME-TYPE definition
---------------------------------------------------------------------------
Key: RF-10241
URL: https://issues.jboss.org/browse/RF-10241
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-menu
Affects Versions: 4.0.0.Milestone5
Environment: Windows Vista Build 6001
apache-tomcat-7.0.5
Sun jdk1.6.0_14
RichFaces 4.0.0.20101226-M5
Mojarra JSF 2.0.3-FCS
Reporter: Karl Mueller
Priority: Minor
Hi there,
since I've added RichFaces Menus:
<rich:toolbar height="26px">
<c:forEach items="#{menuBean.menuGroups}" var="menuGroup">
<rich:dropDownMenu mode="server">
<f:facet name="label">
<h:outputText value="#{menuGroup.menuName}" />
</f:facet>
<c:forEach items="#{menuGroup.menuElements}" var="menuElement">
<rich:menuItem >
<h:outputLink value="#{request.contextPath}#{menuElement.targetURL}">
<h:outputText value="#{menuElement.label}"></h:outputText>
</h:outputLink>
</rich:menuItem>
</c:forEach>
</rich:dropDownMenu>
</c:forEach>
</rich:toolbar>
I havne noticed several Warnings in the server log, due to missing MIME-TYPE definition. The only MIME-TYPE defined in out web.xml is this:
<mime-mapping>
<extension>ecss</extension>
<mime-type>text/css</mime-type>
</mime-mapping>
In case RichFaces requires more MIME-TYPE to be defined, please communicate them.
Excerpt from logfile:
19.01.2011 09:43:30 com.sun.faces.context.ExternalContextImpl getMimeType
WARNUNG: JSF1091: F³r Datei org.richfaces.renderkit.html.gradientimages.HeaderInverseGradientImage konnte kein Mime-Typ gefunden werden. F³
gen Sie eine Mime-Typ-Zuordnung zur web.xml der Anwendung hinzu, um dies aufzul÷sen.
19.01.2011 09:43:30 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
WARNUNG: JSF1091: F³r Datei org.richfaces.renderkit.html.gradientimages.HeaderGradientImage konnte kein Mime-Typ gefunden werden. F³gen Sie
eine Mime-Typ-Zuordnung zur web.xml der Anwendung hinzu, um dies aufzul÷sen.
19.01.2011 09:43:30 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
WARNUNG: JSF1091: F³r Datei org.richfaces.renderkit.html.gradientimages.TabGradientImage konnte kein Mime-Typ gefunden werden. F³gen Sie ei
ne Mime-Typ-Zuordnung zur web.xml der Anwendung hinzu, um dies aufzul÷sen.
19.01.2011 09:43:30 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
WARNUNG: JSF1091: F³r Datei org.richfaces.renderkit.html.gradientimages.TabInverseGradientImage konnte kein Mime-Typ gefunden werden. F³gen
Sie eine Mime-Typ-Zuordnung zur web.xml der Anwendung hinzu, um dies aufzul÷sen.
19.01.2011 09:43:30 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
WARNUNG: JSF1091: F³r Datei org.richfaces.renderkit.html.gradientimages.InputGradientImage konnte kein Mime-Typ gefunden werden. F³gen Sie
19.01.2011 09:43:30 com.sun.faces.context.ExternalContextImpl getMimeType
WARNUNG: JSF1091: F³r Datei org.richfaces.renderkit.html.gradientimages.MenuInverseGradientImage konnte kein Mime-Typ gefunden werden. F³ge
n Sie eine Mime-Typ-Zuordnung zur web.xml der Anwendung hinzu, um dies aufzul÷sen.
19.01.2011 09:43:30 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
WARNUNG: JSF1064: Ressource org.richfaces.renderkit.html.gradientimages.MenuGradientImage kann nicht gefunden oder bedient werden.
19.01.2011 09:43:30 com.sun.faces.context.ExternalContextImpl getMimeType
WARNUNG: JSF1091: F³r Datei org.richfaces.renderkit.html.gradientimages.ButtonInverseGradientImage konnte kein Mime-Typ gefunden werden. F³
gen Sie eine Mime-Typ-Zuordnung zur web.xml der Anwendung hinzu, um dies aufzul÷sen.
19.01.2011 09:43:30 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
WARNUNG: JSF1064: Ressource org.richfaces.renderkit.html.gradientimages.ButtonInverseGradientImage kann nicht gefunden oder bedient werden.
19.01.2011 09:43:30 com.sun.faces.context.ExternalContextImpl getMimeType
WARNUNG: JSF1091: F³r Datei org.richfaces.renderkit.html.gradientimages.ButtonGradientImage konnte kein Mime-Typ gefunden werden. F³gen Sie
eine Mime-Typ-Zuordnung zur web.xml der Anwendung hinzu, um dies aufzul÷sen.
19.01.2011 09:43:30 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
Translation:
" konnte kein Mime-Typ gefunden werden. Fügen Sie eine Mime-Typ-Zuordnung zur web.xml der Anwendung hinzu, um dies aufzulösen."
=> could not find Mime-Typ(e). Please add Mime-Typ(e) to your web.xml
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 5 months
[JBoss JIRA] Created: (RF-10304) Push: messages getting sent numerous times (according to count of subscribers)
by Ilya Shaikovsky (JIRA)
Push: messages getting sent numerous times (according to count of subscribers)
------------------------------------------------------------------------------
Key: RF-10304
URL: https://issues.jboss.org/browse/RF-10304
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-push/poll
Affects Versions: 4.0.0.Milestone5
Reporter: Ilya Shaikovsky
Assignee: Nick Belaevski
Priority: Critical
Fix For: 4.0.0.CR1
Try irc-client from sandbox examples.
If you will connect from two different places - messages will be delivered twice for every window. (increasing count of connections will increase count of messages correspondingly)
Checked that messages sent a few time to client. So looks as server - side issue.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 5 months
[JBoss JIRA] Created: (RF-10141) ExtendedDataTable: UIExtendedDataTable - add selectionMode attribute
by Martin Kočí (JIRA)
ExtendedDataTable: UIExtendedDataTable - add selectionMode attribute
---------------------------------------------------------------------
Key: RF-10141
URL: https://issues.jboss.org/browse/RF-10141
Project: RichFaces
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Components: component-tables
Affects Versions: Future_4.X
Environment: RichFaces 4.0 rev 20883
Reporter: Martin Kočí
Priority: Optional
r:extendedDataTable allows selectionMode="none|single|multi" and it works prefectly, but UIExtendedDataTable does not have attribute selectionMode (getter and setter) currently.
Add property selectionMode for UIExtendedDataTable. Consider Enum as type. There is a class org.richfaces.model.SelectionMode and its is used in ExtendedDataTableRenderer .
We use direct component manipulation and type safe gettter and setter are better than the component.getAttributes() Map.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 5 months