mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge from HEAD into WCM-DEV2. Also fixes build breakage in
jndi-client and catalina-virtual that I introduced earlier. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3393 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -19,9 +19,6 @@ package org.alfresco.web.ui.common.component;
|
||||
import javax.faces.component.UIInput;
|
||||
import javax.faces.context.FacesContext;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
/**
|
||||
* Component to represent a selectable list of images
|
||||
*
|
||||
@@ -29,8 +26,6 @@ import org.apache.commons.logging.LogFactory;
|
||||
*/
|
||||
public class UIImagePicker extends UIInput
|
||||
{
|
||||
private static Log logger = LogFactory.getLog(UIImagePicker.class);
|
||||
|
||||
/**
|
||||
* Default constructor
|
||||
*/
|
||||
|
@@ -65,7 +65,7 @@ public class UISortLink extends UICommand
|
||||
boolean bPreviouslySorted = false;
|
||||
boolean descending = true;
|
||||
String lastSortedColumn = dataContainer.getCurrentSortColumn();
|
||||
if (lastSortedColumn == (String)getValue())
|
||||
if (lastSortedColumn != null && lastSortedColumn.equals(getValue()))
|
||||
{
|
||||
descending = !dataContainer.isCurrentSortDescending();
|
||||
bPreviouslySorted = true;
|
||||
|
@@ -28,8 +28,6 @@ import javax.faces.el.ValueBinding;
|
||||
|
||||
import org.alfresco.web.ui.common.Utils;
|
||||
import org.alfresco.web.ui.common.component.SelfRenderingComponent;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
/**
|
||||
* Dynamic description component that switches text based on the events
|
||||
@@ -39,7 +37,6 @@ import org.apache.commons.logging.LogFactory;
|
||||
*/
|
||||
public class UIDynamicDescription extends SelfRenderingComponent
|
||||
{
|
||||
private static Log logger = LogFactory.getLog(UIDynamicDescription.class);
|
||||
private String selected;
|
||||
private String functionName;
|
||||
|
||||
@@ -141,6 +138,7 @@ public class UIDynamicDescription extends SelfRenderingComponent
|
||||
/**
|
||||
* @see javax.faces.component.UIComponent#encodeChildren(javax.faces.context.FacesContext)
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public void encodeChildren(FacesContext context) throws IOException
|
||||
{
|
||||
if (this.isRendered() == false)
|
||||
@@ -240,6 +238,7 @@ public class UIDynamicDescription extends SelfRenderingComponent
|
||||
* @param context The faces context
|
||||
* @param descriptions The descriptions to render
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
private void renderDescriptions(FacesContext context, UIDescriptions descriptions)
|
||||
throws IOException
|
||||
{
|
||||
|
@@ -129,7 +129,7 @@ public abstract class BaseEvaluator extends SelfRenderingComponent
|
||||
public abstract boolean evaluate();
|
||||
|
||||
|
||||
protected static Logger s_logger = Logger.getLogger(BaseEvaluator.class);
|
||||
protected static final Logger s_logger = Logger.getLogger(BaseEvaluator.class);
|
||||
|
||||
/** the value to be evaluated against */
|
||||
private Object value;
|
||||
|
Reference in New Issue
Block a user