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

Java TagConfig类代码示例

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

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



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

示例1: ACLChooseTagHandler

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public ACLChooseTagHandler(TagConfig config) {
	super(config);

	FaceletHandler itr = nextHandler;
	if (itr instanceof CompositeFaceletHandler) {
		FaceletHandler[] handlers = ((CompositeFaceletHandler) itr).getHandlers();
		if (handlers != null && handlers.length > 0 && handlers[0] instanceof ACLWhenTagHandler) {
			when = (ACLWhenTagHandler) handlers[0];
		} else {
			throw new TagException(tag, "isAllowedChoose Tag must have a isAllowedWhen Tag");
		}

		if (handlers.length > 1) {
			FaceletHandler itr2 = handlers[1];
			if (itr2 instanceof ACLOtherwiseTagHandler) {
				otherwise = (ACLOtherwiseTagHandler) itr2;
			}
		}
	} else {
		throw new TagException(tag, "isAllowedChoose Tag must have a CompositeFaceletHandler Tag");
	}
}
 
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:23,代码来源:ACLChooseTagHandler.java


示例2: FileDownloadActionListenerTag

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public FileDownloadActionListenerTag(TagConfig tagConfig)
{
  super(tagConfig);
  _filename = getAttribute("filename");
  _contentType = getAttribute("contentType");
  _method = getRequiredAttribute("method");
}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:8,代码来源:FileDownloadActionListenerTag.java


示例3: init

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public void init(ApplicationContext applicationContext) {
	this.mockFacesContext = FacesContextMocker.mockFacesContext();
	this.mockApplication = Mockito.mock(Application.class);
	this.mockViewRoot = Mockito.mock(UIViewRoot.class);
	this.mockExternalContext = Mockito.mock(ExternalContext.class);
	this.mockHttpServletRequest = Mockito.mock(HttpServletRequest.class);
	this.mockHttpServletResponse = Mockito.mock(HttpServletResponse.class);
	this.mockHttpSession = Mockito.mock(HttpSession.class);
	this.mockTagConfig = Mockito.mock(TagConfig.class);
	this.mockFaceletHandler = new MockFaceletHandler();
	this.mockTagAttributes = new MockTagAttributes();
	this.mockTag = new Tag(null, null, null, null, this.mockTagAttributes);
	this.mockFaceletContext = new MockFaceletContext(this.mockFacesContext);

	this.mockViewMap = new HashMap<>();
	this.mockServletContext = new MockServletContext();
	if (applicationContext != null) {
		this.mockServletContext.setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, applicationContext);
	}

	Mockito.when(this.mockTagConfig.getNextHandler()).thenReturn(this.mockFaceletHandler);
	Mockito.when(this.mockTagConfig.getTag()).thenReturn(this.mockTag);

	Mockito.when(this.mockFacesContext.getApplication()).thenReturn(this.mockApplication);
	Mockito.when(this.mockApplication.getSupportedLocales()).thenReturn(createLocales().iterator());

	Mockito.when(this.mockFacesContext.getViewRoot()).thenReturn(this.mockViewRoot);
	Mockito.when(this.mockViewRoot.getLocale()).thenReturn(new Locale("en"));
	Mockito.when(this.mockViewRoot.getViewMap()).thenReturn(this.mockViewMap);

	Mockito.when(this.mockFacesContext.getExternalContext()).thenReturn(this.mockExternalContext);
	Mockito.when(this.mockExternalContext.getRequest()).thenReturn(this.mockHttpServletRequest);
	Mockito.when(this.mockHttpServletRequest.getSession()).thenReturn(this.mockHttpSession);
	Mockito.when(this.mockExternalContext.getResponse()).thenReturn(this.mockHttpServletResponse);
	Mockito.when(this.mockExternalContext.getContext()).thenReturn(this.mockServletContext);

	Map<String, String> requestMap = new HashMap<>();
	Mockito.when(this.mockExternalContext.getRequestParameterMap()).thenReturn(requestMap);
}
 
开发者ID:joinfaces,项目名称:joinfaces,代码行数:40,代码来源:JsfMock.java


示例4: AuthorizeFaceletsTagHandler

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public AuthorizeFaceletsTagHandler(TagConfig config) {
	super(config);
	this.access = this.getAttribute("access");
	this.url = this.getAttribute("url");
	this.method = this.getAttribute("method");
	this.ifAllGranted = this.getAttribute("ifAllGranted");
	this.ifAnyGranted = this.getAttribute("ifAnyGranted");
	this.ifNotGranted = this.getAttribute("ifNotGranted");
	this.var = this.getAttribute("var");
}
 
开发者ID:joinfaces,项目名称:joinfaces,代码行数:11,代码来源:AuthorizeFaceletsTagHandler.java


示例5: CompositeTagParamHandler

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
/**
 * Instantiates a new tag param handler.
 *
 * @param config the config
 */
public CompositeTagParamHandler(TagConfig config)
{
	super(config);
	this.name = getRequiredAttribute("name");
	this.required = getAttribute("required");
	this.propagate = getAttribute("propagate");
	this.defaultValue = getAttribute("default");
	this.deprecated = getAttribute("deprecated");
	this.isMethodParam = getAttribute("isMethodParam");
}
 
开发者ID:skybber,项目名称:Tagext,代码行数:16,代码来源:CompositeTagParamHandler.java


示例6: ACLOtherwiseTagHandler

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public ACLOtherwiseTagHandler(TagConfig config) {
	super(config);
}
 
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:4,代码来源:ACLOtherwiseTagHandler.java


示例7: SetActionListenerTag

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public SetActionListenerTag(TagConfig tagConfig)
{
  super(tagConfig);
  _from = getRequiredAttribute("from");
  _to   = getRequiredAttribute("to");
}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:7,代码来源:SetActionListenerTag.java


示例8: ResetActionListenerTag

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public ResetActionListenerTag(TagConfig tagConfig)
{
  super(tagConfig);
}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:5,代码来源:ResetActionListenerTag.java


示例9: ReturnActionListenerTag

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public ReturnActionListenerTag(TagConfig tagConfig)
{
  super(tagConfig);
  _value = getAttribute("value");
}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:6,代码来源:ReturnActionListenerTag.java


示例10: MetaTagHandler

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public MetaTagHandler(TagConfig config) {
    super(config);
}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:4,代码来源:MetaTagHandler.java


示例11: AnonymousFaceletsTagHandler

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public AnonymousFaceletsTagHandler(TagConfig config) {
	super(config);
}
 
开发者ID:joinfaces,项目名称:joinfaces,代码行数:4,代码来源:AnonymousFaceletsTagHandler.java


示例12: FullyAuthenticatedFaceletsTagHandler

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public FullyAuthenticatedFaceletsTagHandler(TagConfig config) {
	super(config);
}
 
开发者ID:joinfaces,项目名称:joinfaces,代码行数:4,代码来源:FullyAuthenticatedFaceletsTagHandler.java


示例13: AuthenticatedFaceletsTagHandler

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public AuthenticatedFaceletsTagHandler(TagConfig config) {
	super(config);
}
 
开发者ID:joinfaces,项目名称:joinfaces,代码行数:4,代码来源:AuthenticatedFaceletsTagHandler.java


示例14: CompositeTag

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public CompositeTag(TagConfig config) {
    super(config);
    this.component = this.getRequiredAttribute("component");
}
 
开发者ID:rogerkeays,项目名称:novdl,代码行数:5,代码来源:CompositeTag.java


示例15: ReadingTagHandler

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public ReadingTagHandler(TagConfig config) {
    super(config);
}
 
开发者ID:ArneLimburg,项目名称:jpasecurity,代码行数:4,代码来源:ReadingTagHandler.java


示例16: DeletionTagHandler

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public DeletionTagHandler(TagConfig config) {
    super(config);
}
 
开发者ID:ArneLimburg,项目名称:jpasecurity,代码行数:4,代码来源:DeletionTagHandler.java


示例17: AbstractBeanTagHandler

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public AbstractBeanTagHandler(TagConfig config) {
    super(config);
    beanAttribute = getAttribute("bean");
}
 
开发者ID:ArneLimburg,项目名称:jpasecurity,代码行数:5,代码来源:AbstractBeanTagHandler.java


示例18: RolesAllowedTagHandler

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public RolesAllowedTagHandler(TagConfig config) {
    super(config);
    roles = getAttribute("roles");
}
 
开发者ID:ArneLimburg,项目名称:jpasecurity,代码行数:5,代码来源:RolesAllowedTagHandler.java


示例19: CreationTagHandler

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public CreationTagHandler(TagConfig config) {
    super(config);
}
 
开发者ID:ArneLimburg,项目名称:jpasecurity,代码行数:4,代码来源:CreationTagHandler.java


示例20: UpdatingTagHandler

import javax.faces.view.facelets.TagConfig; //导入依赖的package包/类
public UpdatingTagHandler(TagConfig config) {
    super(config);
}
 
开发者ID:ArneLimburg,项目名称:jpasecurity,代码行数:4,代码来源:UpdatingTagHandler.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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