[JBoss JIRA] Created: (RF-5591) User is unable to clean the existing date in <rich:calendar> if <a4j:support> is used to re-render the input
by Igor Dikhtyaruk (JIRA)
User is unable to clean the existing date in <rich:calendar> if <a4j:support> is used to re-render the input
------------------------------------------------------------------------------------------------------------
Key: RF-5591
URL: https://jira.jboss.org/jira/browse/RF-5591
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Reporter: Igor Dikhtyaruk
example:
xhtml:
<rich:calendar id="selectedDate" datePattern="dd MMM yyyy"
value="#{myBean.selectedDate}" enableManualInput="true"
popup="true">
<a4j:support ajaxSingle="true" event="oninputchange"
reRender="selectedDate" bypassUpdates="true" />
<a4j:support ajaxSingle="true" event="onchanged"
reRender="selectedDate" bypassUpdates="true" />
</rich:calendar>
java bean:
package au.gov.austrac;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import org.jboss.seam.annotations.Name;
@Name("myBean")
public class MyBean {
private Date selectedDate = new Date();
public Date getSelectedDate() {
return selectedDate;
}
public void setSelectedDate(Date selectedDate) {
this.selectedDate = selectedDate;
}
}
--
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, 1 month
[JBoss JIRA] Created: (RF-8087) rich:insert encoding problem
by Georgi Cholakov (JIRA)
rich:insert encoding problem
----------------------------
Key: RF-8087
URL: https://jira.jboss.org/jira/browse/RF-8087
Project: RichFaces
Issue Type: Bug
Components: component-output
Affects Versions: 3.3.1
Environment: Windows 7, Tomcat 6.0.20
Reporter: Georgi Cholakov
Priority: Critical
I've met the following problem using rich:insert - when I use attribute "src" to display data from a file I set attribute encoding to UTF-8 and everything works fine, displaying cyrillic without problems. But when I use "content" attribute (which is exactly what I need) setting encoding produces no result and I got ????????? symbols for cyrillic. Using h:outputText the content is displayed correctly.
Greetings,
Georgi Cholakov
--
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, 1 month
[JBoss JIRA] Created: (RF-7269) RichFaces Javascript error while page is loading for the first time
by Amarendra Nandigam (JIRA)
RichFaces Javascript error while page is loading for the first time
-------------------------------------------------------------------
Key: RF-7269
URL: https://jira.jboss.org/jira/browse/RF-7269
Project: RichFaces
Issue Type: Bug
Components: performance
Affects Versions: 3.3.1, 3.3.0
Environment: tomcat server 6.0.18, spring webflow 2.0.6, facelets 1.1.14, myfaces 1.2.2
Reporter: Amarendra Nandigam
The problem seems to be happening when the browser downloads js files for the listShuttle. During that time the script method is called before even script gets loaded. Here are the details that we found:
can now reliably reproduce the javascript errors. Here are my steps:
1) Clear browser cache. Go to Tools > Internet Options > General Tab >
Temporary Internet Files section. Click the Delete Files button, check the box
for "Delete all offline content", click OK, click the Delete Files button
again, leave the box unchecked this time, click OK again, click OK on the
Internet Options window.
2) Login as JOGLETRE
3) Go to Order RFIs
4) Select RFI Type = Architectural Plan Addition/Revision
5) You may get the errors. If not, logout, close your browser window, and
repeat steps 1-4. It seems to happen most of the time.
I used the Microsoft Script Debugger to identify the sources of the errors.
http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx
Error 1: "'undefined' is null or not an object" is caused by
3_3_0.GAorg.ajax4jsf.javascript.PrototypeScript, line 9, characters 117 to 140:
value=source[property];
Error 2: "'RichFaces.ListShuttle.Target.SelectItem' is null or not an object"
is caused by this block of code (entire block is highlighted by the Script
Debugger):
new Richfaces.ListShuttle(
new Richfaces.ListShuttle.Target(
'submitForm:options',
'submitForm:optionstlInternal_tab',
'submitForm:optionstlInternal_header_tab',
'submitForm:optionstlFocusKeeper',
[['up', 'disup'], ['down', 'disdown'],
['last', 'dislast'], ['first','disfirst']],
'submitForm:optionssortLabel',
{onorderchanged:null,
onorderchange:null,
ontopclick:null,
onbottomclick:null,
onupclick:null,
ondownclick:null},
Richfaces.ListShuttle.Target.SelectItem,
null,
null
),
new Richfaces.ListShuttle.Source(
'submitForm:options',
'submitForm:optionsinternal_tab',
'submitForm:optionsinternal_header_tab',
'submitForm:optionsfocusKeeper',
undefined,
Richfaces.ListShuttle.Source.SelectItem,
null,
null),
"submitForm:options",
[['copy', 'discopy'], ['copyAll', 'discopyAll'],
['remove', 'disremove'], ['removeAll','disremoveAll']],
"false",
{onlistchanged:null,
onlistchange:null,
oncopyallclick:null,
oncopyclick:null,
onremoveallclick:null,
onremoveclick:null,
onfocus:null,
onblur:null
}
);
--
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, 1 month
[JBoss JIRA] Created: (RF-8079) File Upload Control intermittently fails
by James Goodfellow (JIRA)
File Upload Control intermittently fails
----------------------------------------
Key: RF-8079
URL: https://jira.jboss.org/jira/browse/RF-8079
Project: RichFaces
Issue Type: Bug
Components: component-a4j-core
Affects Versions: 3.3.2.SR1
Environment: linux, tomcat 6, myfaces 1.2.6, richfaces 3.3.2 SR1, mysql 5.0
Reporter: James Goodfellow
We started using the richfaces file upload control in our web server (tomcat/myfaces/richfaces). Once deployed we had complaints from our users (especially those with slow connections) that the file upload didn't complete. I found it difficult to reproduce when running the webserver locally but it did happen occasionally. After debugging I determined that the upload failed to complete because the "fileUploadListener" handler was not being called some of the time. Further, I found that in the cases where the "fileUploadListener" wasn't called, the MultipartRequest indicated that it did not have the "javax.faces.ViewState" request parameter. I verified from the client that the "javax.faces.ViewState" parameter was in the multipart content so this lead me to believe that the problem was in the parsing of that content. I have determined that the problem is in the way the parsing uses the read buffer. If the input stream returns content that ends on a parameter boundary, that parameter can get missed. It is also the case that bytes are being checked in the read buffer beyond the end index which can lead to unknown results. It would be very difficult to give a test case because the problem is intermittent. The problems I found are in org.ajax4jsf.request.MultipartRequest. Here is an example:
private Param readHeader() throws IOException {
...
for (int i = this.pos; i < localRead; i++) {
...
if (checkSequence(buffer, i + CR_LF.length,
CR_LF)) {
In this case "i" can be up to "localRead - 1" where the checkSequence method accesses "localRead + 1" and "localRead + 2" positions of the read buffer which are beyond the boundary of localRead.
--
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, 1 month
[JBoss JIRA] Created: (RF-8071) Calendar: "NaN" is displayed for selected date
by Tabea Dierk (JIRA)
Calendar: "NaN" is displayed for selected date
----------------------------------------------
Key: RF-8071
URL: https://jira.jboss.org/jira/browse/RF-8071
Project: RichFaces
Issue Type: Bug
Components: component-input, regression
Affects Versions: 3.3.2.SR1
Environment: IE6, Firefox3
Reporter: Tabea Dierk
Priority: Critical
1. Use the following code:
<rich:calendar id="inputValidFrom" datePattern="dd-MMM-yyyy" showFooter="false" required="true" requiredMessage="#{msg.error_validFromNotEmpty}" buttonIcon="images/icon_calendar.gif" enableManualInput="true" />
2. Enter value "02-jan-2000" (with small pattern) and open calendar -> ", NaN" is displayed for selected date and time
-> enter value "02-Jan-2000" (start with upper case, followed by lower case) and open calendar -> everything is displayed fine
--
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, 1 month