[JBoss JIRA] Created: (RF-3115) rich:fileUpload produce (sometimes) a empty page
by Andreas Höhmann (JIRA)
rich:fileUpload produce (sometimes) a empty page
------------------------------------------------
Key: RF-3115
URL: http://jira.jboss.com/jira/browse/RF-3115
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: jetty 1.6.1
myfaces 1.2.2
Reporter: Andreas Höhmann
Priority: Critical
I don't know why ... but sometimes the upload returns a empty page.
I open a modal-dialog with a fileUpload ... then select a file (immediateUpload="true") then sometimes a empty white page is the result.
My upload-bean is allways triggered correctly (uploadListener works fine ...file is ok etc.) but it seams the rerendering works not fine allways?1
The empty page contains only a "</html>"
Here is my upload-Dialog:
<a4j:region id="modalPanelLoadWorkspace_region">
<dialog:modalDialog id="modalPanelLoadWorkspace"
dialogBean="#{LoadWorkspaceCommandBean}"
titel="#{bundle['dialog.load.workspace.title']}">
<!-- lade-dialog zeigt seinen status im dialog-header an -->
<ui:define name="dialogheader">
<h:outputText value="#{titel}"/>
<a4j:status for="modalPanelLoadWorkspace_region">
<f:facet name="start">
<h:panelGroup layout="horizontal">
<h:outputText styleClass="loading" style="padding-left: 10px;" value="#{bundle['ajax.loading.message']}"/>
</h:panelGroup>
</f:facet>
</a4j:status>
</ui:define>
<ui:define name="dialogbody">
<a4j:jsFunction name="afterUpload" reRender="#{initParam.defaultRerenderTarget}" oncomplete="#{closeAction}" ajaxSingle="true" limitToList="true"/>
<rich:fileUpload id="modalPanelLoadWorkspace_upload"
fileUploadListener="#{LoadWorkspaceCommandBean.uploadListener}"
maxFilesQuantity="1"
acceptedTypes="xml"
listHeight="70"
immediateUpload="true"
autoclear="true"
addControlLabel="#{bundle['dialog.load.workspace.button.add']}"
uploadControlLabel="#{bundle['dialog.load.workspace.button.start']}"
cancelEntryControlLabel="#{bundle['dialog.load.workspace.button.cancel']}"
clearControlLabel="#{bundle['dialog.load.workspace.button.clear']}"
clearAllControlLabel="#{bundle['dialog.load.workspace.button.clear_all']}"
ontyperejected="alert('#{bundle['dialog.load.workspace.unsupported_filetype']}')"
onsizerejected="alert('#{bundle['dialog.load.workspace.max_filesize_reached']}')"
onuploadcomplete="afterUpload();">
<f:facet name="label">
<h:outputText value="#{bundle['dialog.load.workspace.progress_status']}"/>
</f:facet>
<f:facet name="progress">
<rich:progressBar style="width: 100%;"/>
</f:facet>
</rich:fileUpload>
</ui:define>
<ui:define name="dialog_ok"/>
<ui:define name="dialog_cancel"/>
</dialog:modalDialog>
</a4j:region>
* <dialog:modalDialog> is a facelets-tag which contains a rich:modalPanel + some commons stuff (close-X, ok-button etc.)
* i define a region to show a separated status (nice2have)
* the a4j:jsFunction is only a hack until rich:fileUpload supports a reRender-attribute (should i open a new bug for this?)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 3 months
[JBoss JIRA] Created: (RF-3147) suggestionBox: incorrect styles displaying under Safari browser.
by Mikhail Vitenkov (JIRA)
suggestionBox: incorrect styles displaying under Safari browser.
----------------------------------------------------------------
Key: RF-3147
URL: http://jira.jboss.com/jira/browse/RF-3147
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.5
Environment: Safari
Reporter: Mikhail Vitenkov
Assigned To: Nick Belaevski
Priority: Minor
Step 1. Navigate to page contained tested rich:suggestionBox component.
Step 2. Activate suggestionBox by inputing any character inside component's input field.
Step 3. Push 'Down Arrow'.
Step 4. Verify pop up list items' styles.
Step 5. Push 'Down Arrow' again.
Actual behavior:
After Step 2 pop up list sometimes doesn't appear;
After Step 3 pop up list appears, but all items have selectedClass style.
After Step 5 selectedClass style isn't loaded for selected item.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 3 months
[JBoss JIRA] Created: (RF-3372) fileUpload: java.lang.NumberFormatException take palce in case user upload file with such name: &.txt
by Mikhail Vitenkov (JIRA)
fileUpload: java.lang.NumberFormatException take palce in case user upload file with such name: &.txt
--------------------------------------------------------------------------------------------------------
Key: RF-3372
URL: http://jira.jboss.com/jira/browse/RF-3372
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: IE,FF,Opera, Safari(3.2.1.CR3)
Reporter: Mikhail Vitenkov
Assigned To: Andrei Markavtsov
Create "&" txt file & upload it through the rich:fileUpload component.
Actual behavior:
File is uploaded, but following exception take place:
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.NumberFormatException: For input string: "dst.jpg"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at org.ajax4jsf.request.MultipartRequest.decodeFileName(MultipartRequest.java:300)
at org.ajax4jsf.request.MultipartRequest.parseFileName(MultipartRequest.java:561)
at org.ajax4jsf.request.MultipartRequest.parseParams(MultipartRequest.java:550)
at org.ajax4jsf.request.MultipartRequest.parseRequest(MultipartRequest.java:368)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:330)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 3 months
[JBoss JIRA] Created: (RF-3510) toolTip: JS API doesn't work for toolTip, which doesn't contain parent component.
by Mikhail Vitenkov (JIRA)
toolTip: JS API doesn't work for toolTip, which doesn't contain parent component.
---------------------------------------------------------------------------------
Key: RF-3510
URL: http://jira.jboss.com/jira/browse/RF-3510
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: IE, FF, Safari, Opera(3.2.1.CR5)
Reporter: Mikhail Vitenkov
Assigned To: Nick Belaevski
Step 1. Add rich:toolTip on the page:
<rich:toolTip id="tooltipIDTest" value="#{tooltip.value}" mode="#{tooltip.mode}" styleClass="#{style.styleClass}" style="#{style.style}"
hideDelay="#{tooltip.hideDelay}" showDelay="#{tooltip.showDelay}" layout="#{tooltip.layout}"
horizontalOffset="#{tooltip.horizontalOffset}" verticalOffset="#{tooltip.verticalOffset}" followMouse="#{tooltip.followMouse}"
direction="#{tooltip.direction}" disabled="#{tooltip.disabled}" rendered="#{tooltip.rendered}"
event="#{tooltip.event}" onclick="#{event.onclick}" oncomplete="#{event.oncomplete}" ondblclick="#{event.ondblclick}" onhide="#{event.onhide}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}" onshow="#{event.onshow}">
<h:graphicImage id="pricsID" value="/pics/ajax_process.gif"></h:graphicImage>
<h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
</rich:toolTip>
Step 2. Add "show" JS API functionality:
<a4j:commandLink onclick="$('formID:tooltipSubviewID:toolTipIDTest').component.show(event)" value="show"></a4j:commandLink>
Step 3. Click on "show" ajax link.
Actual behavior:
toolTip doesn't appear.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 3 months