[JBoss JIRA] Updated: (RF-3693) fileUpload: sizeErrorLabel applied in IE6, but not in Firefox, and Opera
by Tsikhon Kuprevich (JIRA)
[ https://jira.jboss.org/jira/browse/RF-3693?page=com.atlassian.jira.plugin... ]
Tsikhon Kuprevich updated RF-3693:
----------------------------------
Summary: fileUpload: sizeErrorLabel applied in IE6, but not in Firefox, and Opera (was: sizeErrorLabel applied in IE6, but not in Firefox, and Opera)
> fileUpload: sizeErrorLabel applied in IE6, but not in Firefox, and Opera
> ------------------------------------------------------------------------
>
> Key: RF-3693
> URL: https://jira.jboss.org/jira/browse/RF-3693
> Project: RichFaces
> Issue Type: Bug
> Components: planning_all
> Affects Versions: 3.2.1
> Environment: JBOSS 4.2.2GA, SEAM 2.0.1.GA
> Reporter: Eniko zsido
> Assignee: Tsikhon Kuprevich
> Priority: Minor
> Fix For: 3.3.0
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> I've set sizeErrorLabel="#{messages['fileUpload.sizeError']}" on fileUpload component.
> messages.propreties contains : fileUpload.sizeError= Size error
> IE6 displays the expcted message: "Size error" but Firefox and opera shows the "File size restricted".
--
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
15 years, 11 months
[JBoss JIRA] Created: (RF-4520) OrderingList causes a "invalid value expression"
by wert wert (JIRA)
OrderingList causes a "invalid value expression"
------------------------------------------------
Key: RF-4520
URL: https://jira.jboss.org/jira/browse/RF-4520
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: Windows XP SP2, Vista SP1, Eclipse 3.3 (Europe), Sun JDK 1.5.015, IBM JVM (WebSphere 6.1)
Reporter: wert wert
ManagedBean contains List of Objects
- Rendering: IO
- Extend with a4j:support works on client side
- server side a "invalid value expression" is produced
Affected class: UIOrderingBaseComponent
Affected method: isSuitableValue(Object value, Object restoredObject) (Line: 76)
return ((Collection) value).contains(restoredObject);
value contains specified Objects whearas restoredObject is a java.lang.String. So the string is compared against the object instead of the opposite!
Internally the following code is proceeded: restoredObject.equals(object)
Solutions:
- convert the Collection to a Array
- work with HashMaps whereas the key is represented by the string of the object (myObject.toString)
--
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
15 years, 11 months
[JBoss JIRA] Created: (RF-4543) calendar loses its value in an Ajax request inside an ajax:include but outside the updated region
by Aimar Tellitu (JIRA)
calendar loses its value in an Ajax request inside an ajax:include but outside the updated region
-------------------------------------------------------------------------------------------------
Key: RF-4543
URL: https://jira.jboss.org/jira/browse/RF-4543
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: JDK 1.6.0_05, JBoss AS 4.2.1, Mojarra 1.2_09-b02-FCS, RichFaces 3.2.2
Reporter: Aimar Tellitu
rich:calendar loses its value in an Ajax request if it is inside an ajax:include, but outside the updated region. This problem is not present in previous versions of RichFaces like the 3.2.1, 3.2.0, ...
Here is a very simple example. First, you choose any date in the rich:calendar, and then you click the selectBooleanCheckbox.
The main page, home.xhtml:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j">
<f:view>
<head></head>
<body>
<h:outputText value="with a4j:include"/>
<a4j:include id="homepage" viewId="/homepage.xhtml" />
</body>
</f:view>
</html>
And the included template, homepage.xhtml:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich">
<body>
<ui:composition>
<h:form>
<rich:calendar value="#{test.date}" popup="true" />
<a4j:region>
<h:selectBooleanCheckbox value="#{test.check}">
<a4j:support event="onclick"/>
</h:selectBooleanCheckbox>
</a4j:region>
</h:form>
</ui:composition>
</body></html>
This problem is only happening if the rich:calendar is inside an <a4j:include> and outside the region that is updated.
--
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
15 years, 11 months
[JBoss JIRA] Created: (RF-4548) rich:dropDownMenu: display and behavior problems
by Seg Fault (JIRA)
rich:dropDownMenu: display and behavior problems
------------------------------------------------
Key: RF-4548
URL: https://jira.jboss.org/jira/browse/RF-4548
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2, 3.2.1, 3.2.0.SR1, 3.2.0
Environment: Fedora 9 x86_64, OpenJDK 1.6.0-b09 64bit version, Apache Tomcat 6.0.18 , Sun JSF 1.2_09-b02, Richfaces 3.2.2
Reporter: Seg Fault
I need to use the Richfaces 3.2.x version (actually, 3.2.2) for the new features of data scroller and scrollable table.
However, the migration breaks the correct behavior of rich:dropDownMenu component.
I read the migration guide, but this should not affect me since my JSF version is greater than 1.2_08.
I've already submitted a post in the Richfaces users forum
http://jboss.com/index.html?module=bb&op=viewtopic&t=142972
There you can find output examples and a sample code you can use to *hopefully* reproduce this *possible* bug.
Thank you in advance for the help!!
-- Marco
--
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
15 years, 11 months
[JBoss JIRA] Created: (RF-4730) Disable Jtidy filter in Richfaces
by Andrey Koukharenko (JIRA)
Disable Jtidy filter in Richfaces
---------------------------------
Key: RF-4730
URL: https://jira.jboss.org/jira/browse/RF-4730
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Reporter: Andrey Koukharenko
<context-param>
<param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
<param-value>NONE</param-value>
</context-param>
//To set all pages to work without any parser
<context-param>
<param-name>org.ajax4jsf.xmlparser.NONE</param-name>
<param-value>/*</param-value>
</context-param>
//Some new configuration to stop parsing(the parameter could changes because it's not in current release yet)
<context-param>
<param-name>org.ajax4jsf.xmlfilter.forcenotrf</param-name>
<param-value>false</param-value>
</context-param>
<filter>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<init-param>
<param-name>enable-cache</param-name>
<param-value>true</param-value>
</init-param>
//also disable parser that are default
<init-param>
<param-name>forceparser</param-name>
<param-value>false</param-value>
</init-param>
</filter>
Doesn't work at all. Jtidy is still running.
--
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
15 years, 11 months
[JBoss JIRA] Closed: (RF-4798) SequenceDataModel.walk(...) Fires DataModelEvent for Each row instead of a only 1!
by Alexander Dubovsky (JIRA)
[ https://jira.jboss.org/jira/browse/RF-4798?page=com.atlassian.jira.plugin... ]
Alexander Dubovsky closed RF-4798.
----------------------------------
Assignee: Alexander Dubovsky (was: Tsikhon Kuprevich)
> SequenceDataModel.walk(...) Fires DataModelEvent for Each row instead of a only 1!
> ----------------------------------------------------------------------------------
>
> Key: RF-4798
> URL: https://jira.jboss.org/jira/browse/RF-4798
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.2
> Environment: Ajax4jsf in RichFaces 3.2.1 & 3.2.2 bundles.
> Reporter: Paul Kossler
> Assignee: Alexander Dubovsky
>
> org.ajax4jsf.model.SequenceDataModel.walk(...)
> ...
> while (rows < 0 || currentRow < rows) {
> wrappedModel.setRowIndex(currentRow);
> if(wrappedModel.isRowAvailable()){
> visitor.process(context, new Integer(currentRow), argument);
> } else {
> break;
> }
> currentRow++;
> }
> ...
> Issue: wrappedModel.setRowIndex(currentRow) fires a DataModelEvent for each row in the wrapped model.
> This creates broken behavior for the Event model.
> If you have a listener on a DataModel it gets called for each and every row during PhaseId.APPLY_REQUEST_VALUES
> This makes the model think every row gets selected for each cycle!
> NOTE: The org.richfaces.model.SequenceDataModel.walk is implemented with out this.
> Its seems to me that the latter model handles this the general wrappedData access issue cleanly by copying the Collection ObjectReferences into an iterable list.
--
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
15 years, 11 months
[JBoss JIRA] Created: (RF-5596) Fileupload and ListShuttle in a tab panel causes NPE in ListShuttleRendererBase.encodeOneRow
by Jonathan Moores (JIRA)
Fileupload and ListShuttle in a tab panel causes NPE in ListShuttleRendererBase.encodeOneRow
--------------------------------------------------------------------------------------------
Key: RF-5596
URL: https://jira.jboss.org/jira/browse/RF-5596
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: Vista x64, JSF 1.2_10, RF 3.3.0 CR1, JDK6
Reporter: Jonathan Moores
The below faces page causes the following stack error.
IE seems to be ok.
Safari and FF3 have issues.
STACK::
Caused by: java.lang.NullPointerException
at org.richfaces.renderkit.ListShuttleRendererBase.encodeOneRow(ListShuttleRendererBase.java:158)
at org.richfaces.renderkit.AbstractRowsRenderer.process(AbstractRowsRenderer.java:86)
at org.richfaces.model.ListShuttleDataModel$1.process(ListShuttleDataModel.java:84)
at org.ajax4jsf.model.SequenceDataModel.walk(SequenceDataModel.java:101)
at org.richfaces.model.ListShuttleDataModel.walk(ListShuttleDataModel.java:78)
at org.ajax4jsf.component.UIDataAdaptor.walk(UIDataAdaptor.java:1151)
at org.richfaces.renderkit.AbstractRowsRenderer.encodeRows(AbstractRowsRenderer.java:106)
at org.richfaces.renderkit.ListShuttleRendererBase.encodeRows(ListShuttleRendererBase.java:116)
at org.richfaces.renderkit.html.ListShuttleRenderer.doEncodeChildren(ListShuttleRenderer.java:267)
at org.richfaces.renderkit.html.ListShuttleRenderer.doEncodeChildren(ListShuttleRenderer.java:257)
at org.richfaces.renderkit.ListShuttleRendererBase.encodeChildren(ListShuttleRendererBase.java:244)
PAGE:::
<%@ taglib prefix="rich" uri="http://richfaces.ajax4jsf.org/rich" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>Simple jsp page</title></head>
<body>
<f:view>
<a4j:form id="newDocumentForm">
<h:panelGrid columns="3">
<a4j:commandLink id="saveButton" actionListener="#{documentBean.saveDocument}"
styleClass="linkButton" reRender="newDocumentTabPanel">
<h:outputText value="Click"/>
</a4j:commandLink>
</h:panelGrid>
<rich:tabPanel id="newDocumentTabPanel" switchType="ajax" style="width: 700px; height: 500px;"
binding="#{documentBean.tabPanel}" selectedTab="#{documentBean.selectedTab}">
<rich:tab id="customerTab" label="Customers">
<a4j:outputPanel ajaxRendered="true">
<rich:listShuttle id="customerListShuffle" sourceValue="#{documentBean.availableCustomers}" rows="25"
listsHeight="150"
targetValue="#{documentBean.current.customers}" var="customer"
sourceCaptionLabel="Available Customers"
targetCaptionLabel="Assigned Customers" orderControlsVisible="false"
converter="customerConverter">
<rich:column visible="false">
<h:outputText value="#{customer.custId}"/>
</rich:column>
<rich:column>
<h:outputText value="#{customer.custName}"/>
</rich:column>
</rich:listShuttle>
</a4j:outputPanel>
</rich:tab>
<rich:tab id="attachmentTab" label="Attachments">
<h:panelGrid columns="2" columnClasses="top,top">
<rich:fileUpload fileUploadListener="#{documentBean.uploadFileListener}"
maxFilesQuantity="20"
id="uploadPanel"
autoclear="true"
noDuplicate="true"
immediateUpload="true"
acceptedTypes="*"
allowFlash="false"
>
<a4j:support event="onuploadcomplete" reRender="uploadedFileList, messages"/>
<f:facet name="label">
<h:outputText value="{_KB}KB from {KB}KB uploaded :[ {mm}:{ss} ]"/>
</f:facet>
<f:facet name="header">
<h:outputText value="Uploaded Files Info"/>
</f:facet>
</rich:fileUpload>
<h:panelGroup>
<rich:panel id="uploadedFileList">
<h:outputText value="No files currently uploaded"
rendered="#{documentBean.attachmentCount==0}"/>
<rich:dataGrid columns="1" value="#{documentBean.attachments}"
var="attachment" rowKeyVar="row">
<rich:panel>
<h:panelGrid columns="2">
<h:panelGrid columns="2">
<h:outputText value="File Name:"/>
<h:outputText value="#{attachment.name}"/>
<h:outputText value="File Length(bytes):"/>
<h:outputText value="#{attachment.length}"/>
</h:panelGrid>
</h:panelGrid>
</rich:panel>
</rich:dataGrid>
</rich:panel>
<rich:spacer height="3"/>
<br/>
<a4j:commandButton actionListener="#{documentBean.clearUploadedAttachments}"
reRender="uploadedFileList, uploadPanel" value="Clear Uploaded Data"
rendered="#{documentBean.attachmentCount>0}"/>
</h:panelGroup>
</h:panelGrid>
</rich:tab>
</rich:tabPanel>
<rich:messages/>
<%--<a4j:log level="ALL" popup="false"/>--%>
</a4j:form>
</f:view>
</body>
</html>
--
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
15 years, 11 months