[JBoss JIRA] Created: (RF-4350) calendar reRender and abort fileUploadListener problem
by Hrvoje Jo (JIRA)
calendar reRender and abort fileUploadListener problem
------------------------------------------------------
Key: RF-4350
URL: https://jira.jboss.org/jira/browse/RF-4350
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: jsf, a4j
Reporter: Hrvoje Jo
I'm having problem with calendar component (rich 3.2.1 and 3.2.2 CR1).
reRender doesn't work at all and if you try to do a4j:support, it works, but the value selected in calender is one trip to server late and the page works very slowly.
e.g.
If I choose 12th and then 15th, the value of 12th will be set on server not before I click the next value (15th) and it works very slowly. Any ideas?
When I try to stop the server, I get message like this
[StandardWrapper] Waiting for 1 instance(s) to be deallocated
Manual input works just fine...
This is the page
...
<rich:panel id="panel-main" styleClass="panel-main">
<h:form>
<a4j:region id="ajax-region">
<h:panelGrid id="pg1" columns="1">
<rich:calendar id="c0" value="#{stacion_imp_bean.datum}"
popup="true" rendered="true"
inputClass="input-field input-field-cal"
converter="EkoDateConverter" enableManualInput="true"
buttonClass="calendar-button" datePattern="dd.MM.yyyy"
buttonIcon="/images/datepicker.gif" showApplyButton="false"
direction="bottom-right" jointPoint="bottom-right"
weekDayLabels="p,u,s,c,p,s,n"
weekDayLabelsShort="p,u,s,c,p,s,n"
monthLabels="1,2,3,4,5,6,7,8,9,10,11,12"
monthLabelsShort="1,2,3,4,5,6,7,8,9,10,11,12"
todayControlMode="hidden" required="false" cellWidth="15"
cellHeight="15">
<a4j:support event="ondateselected" reRender="dt1"/>
</rich:calendar>
</h:panelGrid>
<rich:dataTable id="dt1" value="#{stacion_imp_bean.importLogList}"
var="current">
<rich:column>#{current.cemId}</rich:column>
<rich:column>#{current.tekst}</rich:column>
</rich:dataTable>
<h:messages />
<a4j:log/>
</a4j:region>
</h:form>
</rich:panel>
...
There is a post on forum
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=141557
--
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
17 years, 3 months
[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