Spring Framework SpringBeanFacesELResolver - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework SpringBeanFacesELResolver class.

This code example shows how to use the following methods:getValue
	public static final String MESSAGE_ATTRIBUTE = FacesELResolver.class.getName() + ".MESSAGE_ATTRIBUTE"; 
	public static final String PROPERTY_ATTRIBUTE = FacesELResolver.class.getName() + ".PROPERTY_ATTRIBUTE"; 
	 
	public Object getValue(ELContext elContext, Object base, Object property) throws ELException { 
		 
		Object value = super.getValue(elContext, base, property); 
		 
		if (value == null) { 
			if (property instanceof String) { 
				final String current = (String) property; 
				if (base == null && MESSAGES.equals(current)) { 
					elContext.setPropertyResolved(true); 
					RequestUtils.setAttribute(MESSAGE_ATTRIBUTE, null); 
					RequestUtils.setAttribute(PROPERTY_ATTRIBUTE, null); 
					return current;						 
				} else if (base == null && PROPERTIES.equals(current)) { 
					elContext.setPropertyResolved(true); 
					RequestUtils.setAttribute(MESSAGE_ATTRIBUTE, null); 
					RequestUtils.setAttribute(PROPERTY_ATTRIBUTE, null); 
					return current;						 
5
CodeRank
This code example shows how to use the following methods:getCurrentConversation, getType
    } 
 
    @Override 
    public Class<?> getType(ELContext elContext, Object base, Object property) throws ELException { 
        if (base == null && property != null) { 
            Conversation currentConversation = getCurrentConversation(); 
            if (currentConversation != null) { 
                Object value = currentConversation.getVar(property.toString()); 
                if (value != null) { 
                    elContext.setPropertyResolved(true); 
                    return value.getClass(); 
                } 
            } 
        } 
 
        return super.getType(elContext, base, property); 
    } 
} 
4
CodeRank