AWC-1095: UI issues with OpenSearch sidebar component

Added missing string from properties file as reported on forums

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4962 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2007-01-30 12:00:15 +00:00
parent c68cf150b4
commit fc074b48f8
4 changed files with 43 additions and 5 deletions

View File

@@ -1450,6 +1450,7 @@ error_export_all=Please correct the export errors below then click OK.
error_save_search=Failed to save search due to error: {0} error_save_search=Failed to save search due to error: {0}
error_restore_search=Failed to restore saved search due to error: {0} error_restore_search=Failed to restore saved search due to error: {0}
error_shortcut_permissions=Unable to navigate to the item as it cannot be read by this user. Another user may have modified the permission. error_shortcut_permissions=Unable to navigate to the item as it cannot be read by this user. Another user may have modified the permission.
error_association=Failed to find association definition for association \"{0}\".
# Confirmations # Confirmations
return_to_application=Return to application return_to_application=Return to application

View File

@@ -99,6 +99,30 @@ public class UIOpenSearch extends SelfRenderingComponent
out.write("</script>\n"); out.write("</script>\n");
// write out the HTML // write out the HTML
String styleClass = (String)this.getAttributes().get("styleClass");
String style = (String)this.getAttributes().get("style");
if (styleClass != null || style != null)
{
out.write("<div");
if (styleClass != null && styleClass.length() > 0)
{
out.write(" class='");
out.write(styleClass);
out.write("'");
}
if (style != null && style.length() > 0)
{
out.write(" style='");
out.write(style);
out.write("'");
}
out.write(">\n");
}
out.write("<div class='osPanel'><div class='osControls'>"); out.write("<div class='osPanel'><div class='osControls'>");
out.write("<table border='0' cellpadding='2' cellspacing='0'><tr>"); out.write("<table border='0' cellpadding='2' cellspacing='0'><tr>");
out.write("<td><input id='"); out.write("<td><input id='");
@@ -160,6 +184,11 @@ public class UIOpenSearch extends SelfRenderingComponent
out.write("<div id='"); out.write("<div id='");
out.write(clientId); out.write(clientId);
out.write("-os-results'></div>\n</div>\n"); out.write("-os-results'></div>\n</div>\n");
if (styleClass != null || style != null)
{
out.write("</div>\n");
}
} }
/** /**

View File

@@ -1624,6 +1624,18 @@
<attribute> <attribute>
<name>id</name> <name>id</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>style</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>styleClass</name>
<required>false</required> <required>false</required>
<rtexprvalue>true</rtexprvalue> <rtexprvalue>true</rtexprvalue>
</attribute> </attribute>

View File

@@ -19,8 +19,4 @@
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %> <%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> <%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<f:verbatim><div class="osSidebarPanel"></f:verbatim> <r:openSearch id="sidebarOsClient" styleClass="osSidebarPanel" />
<r:openSearch id="sidebarOsClient" />
<f:verbatim></div></f:verbatim>