[JBoss JIRA] Created: (RF-4349) fileUpload problem - error message is not displayed
by Hrvoje Jo (JIRA)
fileUpload problem - error message is not displayed
---------------------------------------------------
Key: RF-4349
URL: https://jira.jboss.org/jira/browse/RF-4349
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: jsf, a4j
Reporter: Hrvoje Jo
Hi!
I would like to know is there a way to stop fileUploadListener (fileUpload component) and diplay error message?
E.g.
I would like to upload file only if file with sam name doesn't egsist on server. It would be nice if the validation would be on client side. So I tried to do validation inside of fileUploadListener, but the message (<rich:messages />) is not shown, although the upload is stopped, and message is added.
Is this a bug, or am I doing something wrong? Here is the code
public void processUpload(UploadEvent event) {
UploadItem item = event.getUploadItem();
java.io.File f = item.getFile();
fileList = getFiles();
for (File file : fileList) {
if(item.getFileName().equals(file.getName())){
FacesContext ctx = FacesContext.getCurrentInstance();
//Show message
ctx.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR,
"error", "error"));
ctx.renderResponse();
return;
}
}
//If file doesn't egsists...
...
There is a post on forum
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=141559&start=0&p...
--
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, 12 months
[JBoss JIRA] Created: (RF-2289) rich datatable - rendering problem when changing column data using valueChangeListener
by Mike (JIRA)
rich datatable - rendering problem when changing column data using valueChangeListener
--------------------------------------------------------------------------------------
Key: RF-2289
URL: http://jira.jboss.com/jira/browse/RF-2289
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4
Environment: WinXP, JBoss Portal Server 2.6.2, Sun JDK 1.5, JSF-RI 1.2
Reporter: Mike
The bug here is, that using a rich:datatable not all changed attributes insinde a row get redisplayed.
We use a value change listener on a checkbox inside a rich:datatable like this:
...
<rich:column>
<h:selectBooleanCheckbox id="taxresidualvaluerelevant"
value="#{item.taxResidualValueRelevant}"
valueChangeListener="#{taxesAndFeesController.activeChanged}"
onclick="submit();" />
</rich:column>
....
in the managed bean we manipulate some data in columns of the selected row, and after that we trigger the to render the response
using FacesContext.getCurrentInstance().renderResponse();
The rich:datatable only updates some values in the row (disabled attributes) whereas values don't get redisplayed.
When we select a h:datatable everything works as suspected, but we need to use the rich:datatable for e.g. paging etc.
--
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
15 years, 12 months
[JBoss JIRA] Created: (RF-2990) selectBooleanCheckbox not working after 3.2
by Kulvinder Singh (JIRA)
selectBooleanCheckbox not working after 3.2
-------------------------------------------
Key: RF-2990
URL: http://jira.jboss.com/jira/browse/RF-2990
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: jboss, richfaces 3.2 seam 2.0
Reporter: Kulvinder Singh
boolean checkbox with ajax support failed after upgraded to richfaces 3.2
earlier the method was getting called without any problem but now it is not getting called at all
<h:selectBooleanCheckbox value="#{obj.selected}" id="selection" >
<a:support id="selectionSupport" event="onclick" ajaxSingle="true" immediate="true" ></a:support>
</h:selectBooleanCheckbox>
obj.setSelected() was getting called before RF 3.2 but now does nto called
--
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
15 years, 12 months
[JBoss JIRA] Resolved: (RF-358) dragValue not preserved across forms
by Nick Belaevski (JIRA)
[ https://jira.jboss.org/jira/browse/RF-358?page=com.atlassian.jira.plugin.... ]
Nick Belaevski resolved RF-358.
-------------------------------
Resolution: Done
Assignee: Tsikhon Kuprevich (was: Nick Belaevski)
Resolved together with RF-961. Please check all DnD functionality especially drag/drop values and types processing
> dragValue not preserved across forms
> ------------------------------------
>
> Key: RF-358
> URL: https://jira.jboss.org/jira/browse/RF-358
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.0.1
> Reporter: Christian Bauer
> Assignee: Tsikhon Kuprevich
> Priority: Minor
> Fix For: 3.3.0
>
>
> <h:dataTable id="forumCategories"
> value="#{forumCategoryList}" var="forumCategory">
> <h:column>
> <h:form>
> <a:outputPanel styleClass="forumCategoryTitleContainer">
> <rich:dropSupport id="dropZone" acceptedTypes="forumCategory" reRender="forumCategoryForm"
> dropListener="#{forumCategoryHome.drop}" dropValue="#{forumCategory.displayPosition}"/>
> <rich:dragSupport dragIndicator=":boards:rowDragIndicator"
> dragType="forumCategory"
> dragValue="#{forumCategory.displayPosition}">
> <rich:dndParam name="label" type="drag"><h:outputText value="#{forumCategory.title}"/></rich:dndParam>
> </rich:dragSupport>
> <h:outputText value="(#{forumCategory.displayPosition}) #{forumCategory.title}" style="cursor:move" styleClass="forumCategoryTitle"/>
> </a:outputPanel>
> </h:form>
> This renders a table and enables the rendered text in the column for drag and drop between rows. I can drag one row and drop it onto another row. The goal here is to get the dragValue and the dropValue (which are just row numbers) into the forumCategoryHome.drop(DropEvent) method. However, DropEvent.getDragValue() is always null.
> It works if I span a single form across the whole table, instead of a new form for each individual row. This is not what I need though.
> I do not want to use manual setting and parsing of Http request parameters with a:actionparam.
--
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, 12 months