mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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
This commit is contained in:
@@ -110,6 +110,7 @@ public abstract class BaseAssociationEditor extends UIInput
|
|||||||
protected String selectItemsMsg;
|
protected String selectItemsMsg;
|
||||||
protected String selectedItemsMsg;
|
protected String selectedItemsMsg;
|
||||||
protected String noSelectedItemsMsg;
|
protected String noSelectedItemsMsg;
|
||||||
|
protected String searchTerm;
|
||||||
protected Boolean disabled;
|
protected Boolean disabled;
|
||||||
|
|
||||||
protected boolean showAvailable = false;
|
protected boolean showAvailable = false;
|
||||||
@@ -154,6 +155,7 @@ public abstract class BaseAssociationEditor extends UIInput
|
|||||||
this.selectedItemsMsg = (String)values[7];
|
this.selectedItemsMsg = (String)values[7];
|
||||||
this.changingAssociation = (String)values[8];
|
this.changingAssociation = (String)values[8];
|
||||||
this.disabled = (Boolean)values[9];
|
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)
|
public Object saveState(FacesContext context)
|
||||||
{
|
{
|
||||||
Object values[] = new Object[10];
|
Object values[] = new Object[11];
|
||||||
// standard component attributes are saved by the super class
|
// standard component attributes are saved by the super class
|
||||||
values[0] = super.saveState(context);
|
values[0] = super.saveState(context);
|
||||||
values[1] = this.associationName;
|
values[1] = this.associationName;
|
||||||
@@ -173,6 +175,7 @@ public abstract class BaseAssociationEditor extends UIInput
|
|||||||
values[7] = this.selectedItemsMsg;
|
values[7] = this.selectedItemsMsg;
|
||||||
values[8] = this.changingAssociation;
|
values[8] = this.changingAssociation;
|
||||||
values[9] = this.disabled;
|
values[9] = this.disabled;
|
||||||
|
values[10] = this.searchTerm;
|
||||||
|
|
||||||
// NOTE: we don't save the state of the added and removed maps as these
|
// NOTE: we don't save the state of the added and removed maps as these
|
||||||
// need to be rebuilt everytime
|
// need to be rebuilt everytime
|
||||||
@@ -233,6 +236,7 @@ public abstract class BaseAssociationEditor extends UIInput
|
|||||||
{
|
{
|
||||||
this.showAvailable = true;
|
this.showAvailable = true;
|
||||||
this.availableOptions = new ArrayList<NodeRef>();
|
this.availableOptions = new ArrayList<NodeRef>();
|
||||||
|
this.searchTerm = assocEvent.Contains;
|
||||||
getAvailableOptions(FacesContext.getCurrentInstance(), assocEvent.Contains);
|
getAvailableOptions(FacesContext.getCurrentInstance(), assocEvent.Contains);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -779,7 +783,14 @@ public abstract class BaseAssociationEditor extends UIInput
|
|||||||
// TODO: externalise the max and size attributes
|
// TODO: externalise the max and size attributes
|
||||||
out.write("<tr><td colspan='2'><input type='text' maxlength='1024' size='32' name='");
|
out.write("<tr><td colspan='2'><input type='text' maxlength='1024' size='32' name='");
|
||||||
out.write(getClientId(context) + FIELD_CONTAINS);
|
out.write(getClientId(context) + FIELD_CONTAINS);
|
||||||
out.write("'/> <input type='submit' value='");
|
out.write("'");
|
||||||
|
if (this.searchTerm != null)
|
||||||
|
{
|
||||||
|
out.write(" value='");
|
||||||
|
out.write(this.searchTerm);
|
||||||
|
out.write("'");
|
||||||
|
}
|
||||||
|
out.write("/> <input type='submit' value='");
|
||||||
out.write(Application.getMessage(context, MSG_SEARCH));
|
out.write(Application.getMessage(context, MSG_SEARCH));
|
||||||
out.write("' onclick=\"");
|
out.write("' onclick=\"");
|
||||||
out.write(generateFormSubmit(context, Integer.toString(ACTION_SEARCH)));
|
out.write(generateFormSubmit(context, Integer.toString(ACTION_SEARCH)));
|
||||||
|
Reference in New Issue
Block a user