mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Updated MyFaces source code, fixed warning from HtmlRenderer and fixed selector issues in portal
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2255 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -203,7 +203,10 @@ public class RichListRenderer extends BaseRenderer
|
||||
if (header != null)
|
||||
{
|
||||
header.encodeBegin(context);
|
||||
header.encodeChildren(context);
|
||||
if (header.getRendersChildren())
|
||||
{
|
||||
header.encodeChildren(context);
|
||||
}
|
||||
header.encodeEnd(context);
|
||||
}
|
||||
|
||||
@@ -266,7 +269,10 @@ public class RichListRenderer extends BaseRenderer
|
||||
if (smallIcon != null)
|
||||
{
|
||||
smallIcon.encodeBegin(context);
|
||||
smallIcon.encodeChildren(context);
|
||||
if (smallIcon.getRendersChildren())
|
||||
{
|
||||
smallIcon.encodeChildren(context);
|
||||
}
|
||||
smallIcon.encodeEnd(context);
|
||||
out.write(" ");
|
||||
}
|
||||
@@ -349,7 +355,7 @@ public class RichListRenderer extends BaseRenderer
|
||||
public void renderListBefore(FacesContext context, UIRichList richList, UIColumn[] columns)
|
||||
throws IOException
|
||||
{
|
||||
ResponseWriter out = context.getResponseWriter();
|
||||
// ResponseWriter out = context.getResponseWriter();
|
||||
|
||||
// render column headers as labels
|
||||
// TODO: add "showHeaders" to RichList to allow hiding of header facets for some view modes
|
||||
@@ -446,7 +452,10 @@ public class RichListRenderer extends BaseRenderer
|
||||
if (icon != null)
|
||||
{
|
||||
icon.encodeBegin(context);
|
||||
icon.encodeChildren(context);
|
||||
if (icon.getRendersChildren())
|
||||
{
|
||||
icon.encodeChildren(context);
|
||||
}
|
||||
icon.encodeEnd(context);
|
||||
}
|
||||
out.write("</td>");
|
||||
@@ -646,7 +655,10 @@ public class RichListRenderer extends BaseRenderer
|
||||
if (largeIcon != null)
|
||||
{
|
||||
largeIcon.encodeBegin(context);
|
||||
largeIcon.encodeChildren(context);
|
||||
if (largeIcon.getRendersChildren())
|
||||
{
|
||||
largeIcon.encodeChildren(context);
|
||||
}
|
||||
largeIcon.encodeEnd(context);
|
||||
}
|
||||
out.write("</td>");
|
||||
|
@@ -148,7 +148,7 @@
|
||||
<tr>
|
||||
<td style="padding-left:26px">
|
||||
<%-- Space selector to allow user to pick a Space --%>
|
||||
<r:spaceSelector label="#{msg.select_space_prompt}"
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_space_prompt}"
|
||||
value="#{CheckinCheckoutBean.selectedSpaceId}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
|
@@ -100,13 +100,15 @@
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.categories}" />:</td>
|
||||
<td width="98%">
|
||||
<r:multiValueListEditor value="#{DocumentDetailsBean.categories}"
|
||||
<r:multiValueListEditor id="multi-category-selector"
|
||||
value="#{DocumentDetailsBean.categories}"
|
||||
lastItemAdded="#{DocumentDetailsBean.addedCategory}"
|
||||
selectItemMsg="#{msg.select_category}"
|
||||
selectedItemsMsg="#{msg.selected_categories}"
|
||||
noSelectedItemsMsg="#{msg.no_selected_categories}"
|
||||
styleClass="selector">
|
||||
<r:categorySelector label="#{msg.select_category_prompt}" styleClass="selector"
|
||||
<r:categorySelector id="category-selector" label="#{msg.select_category_prompt}"
|
||||
styleClass="selector"
|
||||
value="#{DocumentDetailsBean.addedCategory}"/>
|
||||
</r:multiValueListEditor>
|
||||
</td>
|
||||
|
@@ -118,7 +118,7 @@
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.checkout_location}"/>:</nobr></td>
|
||||
<td width="100%">
|
||||
<r:spaceSelector label="#{msg.select_checkout_prompt}"
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_checkout_prompt}"
|
||||
value="#{NewActionWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
|
@@ -118,7 +118,7 @@
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:spaceSelector label="#{msg.select_destination_prompt}"
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewActionWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
|
@@ -118,7 +118,7 @@
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:spaceSelector label="#{msg.select_destination_prompt}"
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewActionWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
style="border: 1px dashed #cccccc; padding: 6px;"/>
|
||||
|
@@ -118,7 +118,7 @@
|
||||
<tr>
|
||||
<td valign="top"><h:outputText value="#{msg.category}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:categorySelector label="#{msg.select_category_prompt}"
|
||||
<r:categorySelector id="category-selector" label="#{msg.select_category_prompt}"
|
||||
value="#{NewActionWizard.actionProperties.category}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
|
@@ -118,7 +118,7 @@
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:spaceSelector label="#{msg.select_destination_prompt}"
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewActionWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
|
@@ -133,7 +133,7 @@
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td>
|
||||
<r:spaceSelector label="#{msg.select_destination_prompt}"
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewActionWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
|
@@ -127,7 +127,7 @@
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td>
|
||||
<r:spaceSelector label="#{msg.select_destination_prompt}"
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewActionWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
|
@@ -106,7 +106,7 @@
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.checkout_location}"/>:</nobr></td>
|
||||
<td width="100%">
|
||||
<r:spaceSelector label="#{msg.select_checkout_prompt}"
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_checkout_prompt}"
|
||||
value="#{NewRuleWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
|
@@ -106,7 +106,7 @@
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:spaceSelector label="#{msg.select_destination_prompt}"
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewRuleWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
|
@@ -106,7 +106,8 @@
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.import_to}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:spaceSelector label="#{msg.select_destination_prompt}"
|
||||
<r:spaceSelector id="category-selector"
|
||||
label="#{msg.select_destination_prompt}"
|
||||
value="#{NewRuleWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
style="border: 1px dashed #cccccc; padding: 6px;"/>
|
||||
|
@@ -106,7 +106,7 @@
|
||||
<tr>
|
||||
<td valign="top"><h:outputText value="#{msg.category}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:categorySelector label="#{msg.select_category_prompt}"
|
||||
<r:categorySelector id="category-selector" label="#{msg.select_category_prompt}"
|
||||
value="#{NewRuleWizard.actionProperties.category}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
|
@@ -106,7 +106,7 @@
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:spaceSelector label="#{msg.select_destination_prompt}"
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewRuleWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
|
@@ -121,7 +121,7 @@
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td>
|
||||
<r:spaceSelector label="#{msg.select_destination_prompt}"
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewRuleWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
|
@@ -115,7 +115,7 @@
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td>
|
||||
<r:spaceSelector label="#{msg.select_destination_prompt}"
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewRuleWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
|
@@ -106,7 +106,7 @@
|
||||
<tr>
|
||||
<td valign="top"><h:outputText value="#{msg.category}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:categorySelector label="#{msg.select_category_prompt}"
|
||||
<r:categorySelector id="category-selector" label="#{msg.select_category_prompt}"
|
||||
value="#{NewRuleWizard.conditionProperties.category}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
|
@@ -125,7 +125,7 @@
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<r:spaceSelector label="#{msg.select_existing_space_prompt}"
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_existing_space_prompt}"
|
||||
value="#{NewSpaceWizard.existingSpaceId}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector" />
|
||||
|
@@ -196,7 +196,7 @@
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.home_space_location}"/>:</td>
|
||||
<td>
|
||||
<r:spaceSelector label="#{msg.select_home_space_prompt}" value="#{NewUserWizard.homeSpaceLocation}" initialSelection="#{NavigationBean.currentNodeId}" style="border: 1px dashed #cccccc; padding: 2px;"/>
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_home_space_prompt}" value="#{NewUserWizard.homeSpaceLocation}" initialSelection="#{NavigationBean.currentNodeId}" style="border: 1px dashed #cccccc; padding: 2px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
Reference in New Issue
Block a user