当前位置: 首页>>代码示例>>Java>>正文


Java TagConfig类代码示例

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


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


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