From 9df867cbe598a2e3d65c954135ebef248c7150f1 Mon Sep 17 00:00:00 2001 From: Derek Hulley Date: Mon, 19 May 2008 14:27:23 +0000 Subject: [PATCH] Merged V2.1-A to HEAD 8574: Fix for ADB-55 8577: ADB-35: when a file with no extension is copied its MIME type is lost git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9164 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../component/property/BaseAssociationEditor.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/source/java/org/alfresco/web/ui/repo/component/property/BaseAssociationEditor.java b/source/java/org/alfresco/web/ui/repo/component/property/BaseAssociationEditor.java index 4f9ce4ccbd..432718862b 100644 --- a/source/java/org/alfresco/web/ui/repo/component/property/BaseAssociationEditor.java +++ b/source/java/org/alfresco/web/ui/repo/component/property/BaseAssociationEditor.java @@ -110,6 +110,7 @@ public abstract class BaseAssociationEditor extends UIInput protected String selectItemsMsg; protected String selectedItemsMsg; protected String noSelectedItemsMsg; + protected String searchTerm; protected Boolean disabled; protected boolean showAvailable = false; @@ -154,6 +155,7 @@ public abstract class BaseAssociationEditor extends UIInput this.selectedItemsMsg = (String)values[7]; this.changingAssociation = (String)values[8]; this.disabled = (Boolean)values[9]; + this.searchTerm = (String)values[10]; } /** @@ -161,7 +163,7 @@ public abstract class BaseAssociationEditor extends UIInput */ public Object saveState(FacesContext context) { - Object values[] = new Object[10]; + Object values[] = new Object[11]; // standard component attributes are saved by the super class values[0] = super.saveState(context); values[1] = this.associationName; @@ -173,6 +175,7 @@ public abstract class BaseAssociationEditor extends UIInput values[7] = this.selectedItemsMsg; values[8] = this.changingAssociation; values[9] = this.disabled; + values[10] = this.searchTerm; // NOTE: we don't save the state of the added and removed maps as these // need to be rebuilt everytime @@ -233,6 +236,7 @@ public abstract class BaseAssociationEditor extends UIInput { this.showAvailable = true; this.availableOptions = new ArrayList(); + this.searchTerm = assocEvent.Contains; getAvailableOptions(FacesContext.getCurrentInstance(), assocEvent.Contains); break; } @@ -779,7 +783,14 @@ public abstract class BaseAssociationEditor extends UIInput // TODO: externalise the max and size attributes out.write("