All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.butterfaces.resolver.AjaxRequestParameter Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
package org.butterfaces.resolver;

import org.butterfaces.util.StringUtils;

import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import java.util.Map;

public class AjaxRequestParameter {

    public static String findRequestParameter(final FacesContext context) {
        final ExternalContext externalContext = context.getExternalContext();
        final Map requestParameterMap = externalContext.getRequestParameterMap();
        final String params = requestParameterMap.get("params");

        return StringUtils.isNotEmpty(params) ? params : requestParameterMap.get("butterfaces.params");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy