• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java MethodNotFoundException类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中javax.faces.el.MethodNotFoundException的典型用法代码示例。如果您正苦于以下问题:Java MethodNotFoundException类的具体用法?Java MethodNotFoundException怎么用?Java MethodNotFoundException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



MethodNotFoundException类属于javax.faces.el包,在下文中一共展示了MethodNotFoundException类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: invoke

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
@Override
public Object invoke(FacesContext context, Object[] params) throws EvaluationException, MethodNotFoundException {

    String forId = getFor();
    UIInPlaceForm inPlaceForm = findNonNullInPlaceForm(forId);

    String action = getFormAction();

    if (StringUtil.equals(action, ACTION_SHOW)) {
            inPlaceForm.show();
    } else if (StringUtil.equals(action, ACTION_HIDE)) {
        	inPlaceForm.hide();
    }
    else {
    		inPlaceForm.toggle();
    }

    return null; // do not move to a different page
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:20,代码来源:InPlaceFormAction.java


示例2: invoke

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
@Override
public Object invoke(FacesContext context, Object[] params) throws EvaluationException, MethodNotFoundException {
    FacesDataIterator dt = findDataIterator();
    String linkId = null;
    String id = getDisableId();
    if(StringUtil.isNotEmpty(id)) {
        UIComponent l = FacesUtil.getComponentFor(getComponent(), id);
        if(l!=null) {
            linkId = l.getClientId(context);
        }
    }
    String disabledFormat = getDisabledFormat();
    disabledFormat = computeDisabledFormat(context, disabledFormat, /*rendererDefaultFormat*/null);
    return generateJavaScript(context, dt, getRowCount(), isState(), linkId, disabledFormat);
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:16,代码来源:DataIteratorAddRows.java


示例3: invoke

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
@Override
   public Object invoke(FacesContext context, Object[] params) throws EvaluationException, MethodNotFoundException {
   	// Emit the dojo module if it exists
   	DojoModuleResource module = getDojoModuleResource(context);
   	if(module!=null) {
   		ExtLibResources.addEncodeResource(context, module);
   	}
   	
	StringBuilder b = new StringBuilder(256);
	functionIndex = 1; // For proper function name generation

	// Generate the code and the construct the JSON parameter
	JsonJavaObject o = new JsonJavaObject();
	generateAnimation(context,b,o);
	
	// Generate the function call
	String fctName = getVar();
	if(StringUtil.isEmpty(fctName)) {
		fctName = generateFunctionName("_a"); //$NON-NLS-1$
	}
	b.append("var "); //$NON-NLS-1$
	b.append(fctName);
	b.append(" = dojo."); //$NON-NLS-1$
	b.append(getDojoFunction());
	b.append("("); //$NON-NLS-1$
	generateJson(b, o);
	b.append(");\n"); //$NON-NLS-1$
	b.append(fctName);
	b.append(".play();"); //$NON-NLS-1$
	
       return b.toString();
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:33,代码来源:AbstractDojoEffectAction.java


示例4: invoke

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
@Override
   public Object invoke(FacesContext context, Object[] params) throws EvaluationException, MethodNotFoundException {
	StringBuilder b = new StringBuilder(256);
	
	String text = getText();
	if(text==null) {
		text = ""; //$NON-NLS-1$
	}
	b.append("alert("); //$NON-NLS-1$
	JavaScriptUtil.addString(b, text);
	b.append(");\n"); //$NON-NLS-1$
	
       return b.toString();
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:15,代码来源:AlertClientAction.java


示例5: invoke

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
@Override
public Object invoke(FacesContext context, Object[] params)
        throws EvaluationException, MethodNotFoundException {
    
    String forId = getFor();
    UIDynamicContent dynamicContent = findNonNullDynamicContent(forId);
    String facet = getFacetName();
    
    Map<String,String> parameters = null;
    List<Parameter> nameValuePairs = getParameters();
    if( null != nameValuePairs && ! nameValuePairs.isEmpty() ){
        parameters = new HashMap<String, String>(nameValuePairs.size());
        // evaluate parameter value bindings
        for (Parameter pair : nameValuePairs) {
            String name = pair.getName();
            if( StringUtil.isNotEmpty(name) ){
                String value = pair.getValue();
                parameters.put(name, value);
            }
        }
        if( parameters.isEmpty() ){
            parameters = null;
        }
    }
    
    if( null != parameters){
        dynamicContent.show( facet, parameters );
    }else{
        dynamicContent.show( facet );
    }
    
    return null; // do not move to a different page
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:34,代码来源:ChangeDynamicContentAction.java


示例6: overrideTransformationOptions

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
/**
 * Sets any transformation option overrides it can.
 */
private void overrideTransformationOptions(TransformationOptions options)
{
    // Set any transformation options overrides if we can
    if(options != null && transformationOptionOverrides != null)
    {
       for(String key : transformationOptionOverrides.keySet())
       {
          if(PropertyUtils.isWriteable(options, key))
          {
             try 
             {
                PropertyDescriptor pd = PropertyUtils.getPropertyDescriptor(options, key);
                Class<?> propertyClass = pd.getPropertyType();
                
                Object value = transformationOptionOverrides.get(key);
                if(value != null)
                {
                    if(propertyClass.isInstance(value))
                    {
                        // Nothing to do
                    }
                    else if(value instanceof String && propertyClass.isInstance(Boolean.TRUE))
                    {
                        // Use relaxed converter
                        value = TransformationOptions.relaxedBooleanTypeConverter.convert((String)value);
                    }
                    else
                    {
                        value = DefaultTypeConverter.INSTANCE.convert(propertyClass, value);
                    }
                }
                PropertyUtils.setProperty(options, key, value);
             } 
             catch(MethodNotFoundException mnfe) {}
             catch(NoSuchMethodException nsme) {}
             catch(InvocationTargetException ite) {}
             catch(IllegalAccessException iae) {}
          }
          else
          {
             logger.warn("Unable to set override Transformation Option " + key + " on " + options);
          }
       }
    }
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:49,代码来源:ComplexContentTransformer.java


示例7: getType

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
@Override
public Class<?> getType(FacesContext context) throws MethodNotFoundException {
	// TODO Determine what your resulting type for this method binding is
	return null;
}
 
开发者ID:OpenNTF,项目名称:BuildAndTestPattern4Xpages,代码行数:6,代码来源:StarterMethodBinding.java


示例8: invoke

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
@Override
public Object invoke(FacesContext context, Object[] arguments) throws EvaluationException, MethodNotFoundException {
	// TODO Whatever execution behavior you want with a return of whatever you want
	return null;
}
 
开发者ID:OpenNTF,项目名称:BuildAndTestPattern4Xpages,代码行数:6,代码来源:StarterMethodBinding.java


示例9: generateJavaScript

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
/**
 * 
 * @param context
 * @param dt
 * @param rowCount
 * @param state
 * @param linkId
 * @param computedDisabledFormat the result of a call to {@link #computeDisabledFormat(FacesContext, String, String)};
 * @return
 * @throws EvaluationException
 * @throws MethodNotFoundException
 */
public static String generateJavaScript(FacesContext context, FacesDataIterator dt, int rowCount, boolean state, String linkId,
        String computedDisabledFormat) throws EvaluationException, MethodNotFoundException {
    StringBuilder b = new StringBuilder(256);
    
    UIComponent c = (UIComponent)dt;
    
    // Add the dojo module
    ExtLibResources.addEncodeResource(context, ExtLibResources.extlibDataIterator);
    
    // And generate the piece of script
    String id = (c instanceof FacesDataIteratorAjax) ? ((FacesDataIteratorAjax)c).getAjaxContainerClientId(context) : c.getClientId(context);
    String url = AjaxUtil.getAjaxUrl(context, c, UIDataEx.AJAX_GETROWS, c.getClientId(context));
    url = context.getExternalContext().encodeActionURL(url);

    int first = dt.getFirst()+dt.getRows();
    int count = rowCount;
    if(count<=0) {
        // For SPR#MKEE8MHELJ, default to 30 rows
        // instead of to dt.getRows(), to prevent duplicating
        // the number of rows displayed on every click.
        count = UIDataEx.DEFAULT_ROWS_PER_PAGE;
    }
    
    // partial workaround for SPR#LHEY8LNDZS, problem in the xpage runtime.
    // The UIDataEx and UIDataIterator classes can't handle it when 
    // the number of rows to be added is < the rows property - they 
    // return too few rows. The client-side XSP.appendRows method 
    // thinks that, since too few rows are present, all the rows 
    // in the data set have been displayed, so it removes
    // the "Show more" link, even though not all rows have been shown.
    count = Math.min(count, dt.getRows());
    
    try {
        b.append("XSP.appendRows("); //$NON-NLS-1$
        JsonJavaObject jo = new JsonJavaObject();
        jo.putString("id", id); //$NON-NLS-1$
        jo.putString("url", url); //$NON-NLS-1$
        jo.putInt("first", first); //$NON-NLS-1$
        jo.putInt("count", count); //$NON-NLS-1$
        jo.putBoolean("state", state); //$NON-NLS-1$
        if( null != linkId ){
            jo.putString("linkId", linkId); //$NON-NLS-1$
            
            if( !DISABLED_FORMAT_TEXT.equals(computedDisabledFormat) ){
                jo.putString("linkDisabledFormat", computedDisabledFormat); //$NON-NLS-1$
            }
        }
        JsonGenerator.toJson(JsonJavaFactory.instance,b,jo,true);
        b.append(");"); //$NON-NLS-1$
    } catch(Exception e) {
        throw new FacesExceptionEx(e);
    }
    
    return b.toString();
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:68,代码来源:DataIteratorAddRows.java


示例10: getType

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
/**
 * The return type is String, the String name of the next page to navigate
 * to, although normally <code>null</code> is returned.
 */
@Override
public Class getType(FacesContext context) throws MethodNotFoundException {
	return String.class;
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:9,代码来源:AbstractServerSimpleAction.java


示例11: getType

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
@Override
public Class<String> getType(FacesContext context) throws MethodNotFoundException {
    // the Button and EventHandler "action" properties
    // have a return type of String (the optional pageName to transition to)
    return String.class;
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:7,代码来源:MoveToAction.java


示例12: invoke

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
@Override
public Object invoke(FacesContext context, Object[] params)
        throws EvaluationException, MethodNotFoundException {
    if ( isSaveDocument() ) {
        try {
            // Try to first save from the data source
            // This allows datasource events to be processed
            // Else, just execute a regular save of the document
            DataSource ds = getDocumentDataSource(context);
            if(ds!=null) {
                ds.save(context, false);
            } else {
                // document adapter allows multiple document types to be supported
                DocumentAdapter documentAdapter = getDocumentAdapter(context);
                documentAdapter.save(context, getDocument(context));
            }
        } catch (Exception e) {
            throw new EvaluationExceptionEx("Error while saving document",e,this); // $NLX-MoveToAction.Errorwhilesavingdocument-1$
        }
    }

    FacesContextEx ctx = (FacesContextEx)context;
    
    UIMobilePage parentMobilePage = null;
    //this should the the ID of the mobile page the action is performed on
    String partialExecuteAreaClientId = ctx.getPartialRefreshId();
    if( StringUtil.isNotEmpty(partialExecuteAreaClientId) ){
        String partialExecuteAreaControlId = extractControlId(partialExecuteAreaClientId);
        if ( StringUtil.isNotEmpty(partialExecuteAreaControlId)){
            // Searching relative to the XPage root control, 
            // not relative to the control, which may be in a custom control.
            UIComponent partialExecuteControl = FacesUtil.getComponentFor(
                    context.getViewRoot(),
                    partialExecuteAreaControlId);
            if( partialExecuteControl instanceof UIMobilePage) {
                parentMobilePage = (UIMobilePage) partialExecuteControl;
            }
        }
    }
    if( null == parentMobilePage ){
        // the partial execute area is not a mobile page control.
        // TODO logging
        return null;
    }
    
    
    String targetPage = getTargetPage();
    
    int dirInt;
    String direction=getDirection();
    dirInt = ("Right to Left".equals(direction) || "rtl".equals(direction) || "-1".equals(direction)) ? -1 : 1; // $NON-NLS-1$ //$NON-NLS-2$

    String transitionAnimation = getTransitionType();
    if( null == transitionAnimation ){
        // SPR#MKEE92GMW5
        // just immediately move to the next appPage
        // with no transition animation.
        transitionAnimation = "none"; // $NON-NLS-1$
    }
    
    Map<String,Object> actionParams = new HashMap<String,Object>();
    actionParams.put("resetContent", isForceFullRefresh()); // $NON-NLS-1$
    
    // register an action, to be output by the MobilePageContentRenderer
    parentMobilePage.createMoveToAction(targetPage, dirInt, transitionAnimation, actionParams);
    
    // null: no XPage redirect to a different .xsp
    return null;
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:70,代码来源:MoveToAction.java


示例13: getType

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
@Override
public Class<?> getType(FacesContext arg0) throws MethodNotFoundException {
	// TODO Determine what your resulting type for this method binding is
	return null;
}
 
开发者ID:OpenNTF,项目名称:xsp.extlib,代码行数:6,代码来源:OpenNTFMethodBinding.java


示例14: invoke

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
@Override
public Object invoke(FacesContext arg0, Object[] arg1) throws EvaluationException, MethodNotFoundException {
	// TODO Whatever execution behavior you want with a return of whatever you want
	return null;
}
 
开发者ID:OpenNTF,项目名称:xsp.extlib,代码行数:6,代码来源:OpenNTFMethodBinding.java


示例15: getType

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
@Override
public Class<?> getType(final FacesContext arg0) throws MethodNotFoundException {
	return String.class;
}
 
开发者ID:OpenNTF,项目名称:org.openntf.domino,代码行数:5,代码来源:MsgMethodBinding.java


示例16: invoke

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
@Override
public Object invoke(final FacesContext fc, final Object[] arg1) throws EvaluationException, MethodNotFoundException {
	return MsgUtilXsp.getMsg(fc, getComponent(), msgPar);
}
 
开发者ID:OpenNTF,项目名称:org.openntf.domino,代码行数:5,代码来源:MsgMethodBinding.java


示例17: getType

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
/**
 * Returns String.class
 * 
 * @param arg0 the arg0
 * 
 * @return String.class
 * 
 * @throws MethodNotFoundException the method not found exception
 */
@SuppressWarnings("unchecked")
@Override
public Class getType(FacesContext arg0) throws MethodNotFoundException {

  return String.class;
}
 
开发者ID:GeoinformationSystems,项目名称:GeoprocessingAppstore,代码行数:16,代码来源:SimpleMethodBinding.java


示例18: invoke

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
/**
 * Returns the returnString.
 * 
 * @param arg0 the arg0
 * @param arg1 the arg1
 * 
 * @return the return string
 * 
 * @throws EvaluationException the evaluation exception
 * @throws MethodNotFoundException the method not found exception
 */

@Override
public Object invoke(FacesContext arg0, Object[] arg1)
throws EvaluationException, MethodNotFoundException {
 
  return this.getReturnString();
}
 
开发者ID:GeoinformationSystems,项目名称:GeoprocessingAppstore,代码行数:19,代码来源:SimpleMethodBinding.java


示例19: getType

import javax.faces.el.MethodNotFoundException; //导入依赖的package包/类
/**
 * The type. Not used here
 * 
 * @return {@link Object}.class
 */
@Override
public Class<?> getType(final FacesContext arg0) throws MethodNotFoundException {
	return Object.class;
}
 
开发者ID:OpenNTF,项目名称:org.openntf.domino,代码行数:10,代码来源:FormulaMethodBinding.java



注:本文中的javax.faces.el.MethodNotFoundException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java UUIDSerializer类代码示例发布时间:2022-05-22
下一篇:
Java DataDictionary类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap