String user_group ="<a:actionLink value=\"#{msg.manage_groups}\" action=\"dialog:manageGroups\" />";
return buildSummary(
new String[] {
bundle.getString("name"), bundle.getString("username"),
bundle.getString("password"), bundle.getString("homespace"),
bundle.getString("email"), bundle.getString("user_organization"),
bundle.getString("user_jobtitle"), bundle.getString("user_location"),
bundle.getString("presence_username"), bundle.getString("quota"),bundle.getString("groups")},
new String[] {
Utils.encode(this.firstName + " " + this.lastName), Utils.encode(this.userName),
"********", Utils.encode(homeSpaceLabel),
Utils.encode(this.email), Utils.encode(this.organisation),
Utils.encode(this.jobtitle), Utils.encode(this.location),
Utils.encode(presenceLabel), quotaLabel, user_group});
}
/**
* Build summary table from the specified list of Labels and Values
*
* @param labels Array of labels to display
* @param values Array of values to display
*
* @return summary table HTML
*/
protected String buildSummary(String[] labels, String[] values)
{
if (labels == null || values == null || labels.length != values.length)
{
throw new IllegalArgumentException("Labels and Values passed to summary must be valid and of equal length.");
}
String msg = Application.getMessage(FacesContext.getCurrentInstance(), MSG_NOT_SET);
String notSetMsg = "<" + msg + ">";
StringBuilder buf = new StringBuilder(256);
buf.append("<table cellspacing='4' cellpadding='2' border='0' class='summary'>");
for (int i=0; i<labels.length; i++)
{
String value = values[i];
buf.append("<tr><td valign='top'><b>");
buf.append(labels[i]);
buf.append(":</b></td><td>");
buf.append(value != null ? Utils.encode(value) : notSetMsg);
buf.append("</td></tr>");
}
buf.append("</table>");
return buf.toString();
}
<h:outputText value="#{WizardManager.bean.summary}" escape="false"/>
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.