Examples of ELContext


Examples of javax.el.ELContext

                new Component(clazz));
    }

    @Test
    public void testContextManagement() throws Exception {
        ELContext elContext = EL.createELContext();
        SeamELResolver seamVariableResolver = new SeamELResolver();
        // org.jboss.seam.bpm.SeamVariableResolver jbpmVariableResolver = new
        // org.jboss.seam.bpm.SeamVariableResolver();

        MockServletContext servletContext = new MockServletContext();
View Full Code Here

Examples of javax.el.ELContext

import org.jboss.resteasy.links.ELProvider;

public class SeamELProvider implements ELProvider {

  public ELContext getContext(final ELContext ctx) {
    return new ELContext() {

      private SeamFunctionMapper functionMapper;

      @Override
      public ELResolver getELResolver() {
View Full Code Here

Examples of javax.el.ELContext

    return createELContext(createELResolver(base), new FunctionMapperImpl());
  }

  public static ELContext createELContext(final ELResolver resolver,
      final FunctionMapper functionMapper) {
    return new ELContext() {
      final VariableMapperImpl variableMapper = new VariableMapperImpl();

      @Override
      public ELResolver getELResolver() {
        return resolver;
View Full Code Here

Examples of javax.el.ELContext

      throw new ServiceDiscoveryException(m, "Failed to instantiate ELProvider: "+elProviderClass.getName(), x);
    }
  }

  private static ELContext getELContext(Method m, Object base){
    ELContext ours = EL.createELContext(base);
    ELProvider elProvider = getELProvider(m);
    if(elProvider != null)
      return elProvider.getContext(ours);
    return ours;
  }
View Full Code Here

Examples of javax.el.ELContext

    public ExpressionFactory getExpressionFactory() {
        return expressionFactoryImpl;
    }
   
    ELContext createNewELContext(final FreeMarkerPageContext pageCtx) {
        ELContext ctx = new FreeMarkerELContext(pageCtx);
        ELContextEvent event = new ELContextEvent(ctx);
        synchronized(listeners) {
            for (Iterator iter = listeners.iterator(); iter.hasNext();) {
                ELContextListener l = (ELContextListener) iter.next();
                l.contextCreated(event);
View Full Code Here

Examples of javax.el.ELContext

  public void prepare()
    throws JspTagException
  {
        // jsp/1ce6
    if (_items != null && _items.contains("#{")) {
      ELContext elContext = pageContext.getELContext();

      deferredExpression
        = JspUtil.createValueExpression(elContext, String.class, _items);

      _items = (String) deferredExpression.getValue(elContext);
View Full Code Here

Examples of javax.el.ELContext

  public void processAction(ActionEvent event)
    throws AbortProcessingException
  {
    FacesContext context = FacesContext.getCurrentInstance();

    ELContext elContext = context.getELContext();

    Object value = _value.getValue(elContext);

    _target.setValue(elContext, value);
  }
View Full Code Here

Examples of javax.el.ELContext

                              String viewId,
                              String phaseId
  )
    throws UnsupportedEncodingException
  {
    ELContext elContext = context.getELContext();

    ValueExpression valueExpression = context.getApplication()
      .getExpressionFactory()
      .createValueExpression(elContext, expression, Object.class);
View Full Code Here

Examples of javax.el.ELContext

  protected DateFormat getFormat()
    throws JspException, ELException
  {
    PageContextImpl pageContext = (PageContextImpl) this.pageContext;
    ELContext env = pageContext.getELContext();
   
    DateFormat format = null;
    Locale locale = null;

    if (_parseLocaleExpr != null) {
View Full Code Here

Examples of javax.el.ELContext

  public int doEndTag() throws JspException
  {
    Connection conn = null;
    boolean isTransaction = false;
    ELContext env = pageContext.getELContext();
   
    try {
      String sql;

      if (_sql != null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.