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

Java FacesServlet类代码示例

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

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



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

示例1: facesServletRegistraiton

import javax.faces.webapp.FacesServlet; //导入依赖的package包/类
@Bean
public ServletRegistrationBean facesServletRegistraiton() {
    ServletRegistrationBean registration = new ServletRegistrationBean(new FacesServlet(), "*.xhtml");
    registration.setName("Faces Servlet");
    registration.setLoadOnStartup(1);
    return registration;
}
 
开发者ID:Arquisoft,项目名称:Voting_2b,代码行数:8,代码来源:Application.java


示例2: facesServletRegistration

import javax.faces.webapp.FacesServlet; //导入依赖的package包/类
@Bean
public ServletRegistrationBean facesServletRegistration() {
    ServletRegistrationBean registration = new ServletRegistrationBean(
            new FacesServlet(), "*.xhtml");
    registration.setLoadOnStartup(1);     
    return registration;
}
 
开发者ID:Arquisoft,项目名称:VotingSystem_1b,代码行数:8,代码来源:Main.java


示例3: facesServletRegistration

import javax.faces.webapp.FacesServlet; //导入依赖的package包/类
@Bean
public ServletRegistrationBean facesServletRegistration() {
    ServletRegistrationBean registration = new ServletRegistrationBean(
            new FacesServlet(), "*.xhtml");
    registration.setLoadOnStartup(1);
    return registration;
}
 
开发者ID:Arquisoft,项目名称:Voting_2b,代码行数:8,代码来源:Application.java


示例4: base

import javax.faces.webapp.FacesServlet; //导入依赖的package包/类
public static WebArchive base(final String name) {
    final String webXml = Descriptors.create(WebAppDescriptor.class)
            .version("3.0")
            .createServlet()
                .servletName("jsf")
                .servletClass(FacesServlet.class.getName())
                .loadOnStartup(1)
            .up()
            .createServletMapping()
                .servletName("jsf")
                .urlPattern("*.xhtml") // not the default
            .up()
            .exportAsString();

    return ShrinkWrap.create(WebArchive.class, name)
            .setWebXML(new StringAsset(webXml));
}
 
开发者ID:apache,项目名称:tomee,代码行数:18,代码来源:JSFs.java


示例5: getArchive

import javax.faces.webapp.FacesServlet; //导入依赖的package包/类
@Deployment(testable = false)
public static WebArchive getArchive() {

    return ShrinkWrap.create(WebArchive.class, "jsf-jms-test.war")
            .addClasses(DummyManagedBean.class)
            .addAsWebResource(new ClassLoaderAsset(
                    JMSInjectionTest.class.getPackage().getName().replace('.', '/').concat("/").concat("dummy.xhtml")), "dummy.xhtml")
            .setWebXML(new StringAsset(Descriptors.create(WebAppDescriptor.class)
                    .version("3.0")
                    .createServlet()
                        .servletName("jsf")
                        .servletClass(FacesServlet.class.getName())
                        .loadOnStartup(1)
                    .up()
                    .createServletMapping()
                        .servletName("jsf")
                        .urlPattern("*.xhtml") // not the default
                    .up()
                    .exportAsString()));
}
 
开发者ID:apache,项目名称:tomee,代码行数:21,代码来源:JMSInjectionTest.java


示例6: configureServlets

import javax.faces.webapp.FacesServlet; //导入依赖的package包/类
@Override
protected void configureServlets() {
    // Bind our own ViewScoped implementation
    bindScope(ViewScoped.class, new ViewScopeImpl());

    // Bind the FacesServlet to be instantiated eagerly as soon as the
    // injector is created.
    bind(FacesServlet.class).asEagerSingleton();

    // Serve these uris with JSF
    serve("/faces/", "/faces/*", "*.jsf", "*.faces", "*.xhtml")
            .with(FacesHttpServlet.class);
}
 
开发者ID:skuzzle,项目名称:guice-jsf,代码行数:14,代码来源:JSFModule.java


示例7: jsfServletRegistration

import javax.faces.webapp.FacesServlet; //导入依赖的package包/类
@Bean
ServletRegistrationBean jsfServletRegistration() {
    ServletRegistrationBean reg = new ServletRegistrationBean();
    reg.setServlet(new FacesServlet());
    reg.setLoadOnStartup(1);
    reg.addUrlMappings("*.faces");
    return reg;
}
 
开发者ID:cims-bioko,项目名称:cims-server,代码行数:9,代码来源:WebConfig.java


示例8: isFacesConfigPresent

import javax.faces.webapp.FacesServlet; //导入依赖的package包/类
private boolean isFacesConfigPresent(final ServletContext servletContext) {
    try {
        if (servletContext.getResource("/WEB-INF/faces-config.xml") != null) {
            return true;
        }

        final String configFilesAttrValue = servletContext.getInitParameter(FacesServlet.CONFIG_FILES_ATTR);
        if (configFilesAttrValue != null) {
            final String[] configFiles = configFilesAttrValue.split(",");
            for (final String file : configFiles) {
                if (servletContext.getResource(file.trim()) != null) {
                    return true;
                }
            }
        }

        final Collection<URL> metaInfFacesConfigUrls =  new TomEEFacesConfigResourceProvider().getMetaInfConfigurationResources(null);
        if (metaInfFacesConfigUrls == null) {
            return false;
        }

        // remove our internal faces-config.xml
        final Iterator<URL> it = metaInfFacesConfigUrls.iterator();
        while (it.hasNext()) {
            final URL next = it.next();
            if (isOwb(next)) {
                it.remove();
            }
        }

        return !metaInfFacesConfigUrls.isEmpty();
    } catch (final Exception e) {
        return false;
    }
}
 
开发者ID:apache,项目名称:tomee,代码行数:36,代码来源:TomEEMyFacesContainerInitializer.java


示例9: servletRegistrationBean

import javax.faces.webapp.FacesServlet; //导入依赖的package包/类
@Bean
public ServletRegistrationBean servletRegistrationBean(ApplicationContext context) {
	ServletRegistrationBean jsfServlet = new ServletRegistrationBean(new FacesServlet(), "*.xhtml");
	return jsfServlet;
}
 
开发者ID:Arquisoft,项目名称:VotingSystem_1a,代码行数:6,代码来源:Application.java


示例10: facesServletRegistration

import javax.faces.webapp.FacesServlet; //导入依赖的package包/类
@Bean
public ServletRegistrationBean facesServletRegistration() {
	ServletRegistrationBean registration = new ServletRegistrationBean(new FacesServlet(), "*.htm");
	registration.setLoadOnStartup(1);
	return registration;
}
 
开发者ID:SchweizerischeBundesbahnen,项目名称:releasetrain,代码行数:7,代码来源:PrimeBootAdapterConfiguration.java


示例11: facesServletRegistraiton

import javax.faces.webapp.FacesServlet; //导入依赖的package包/类
@Bean
public ServletRegistrationBean facesServletRegistraiton() {
    ServletRegistrationBean registration = new ServletRegistrationBean(new FacesServlet(), new String[] {"*.jsf", "*.xhtml"});
    registration.setLoadOnStartup(1);
    return registration;
}
 
开发者ID:rcgallagher,项目名称:example-spring-boot-jsf-primefaces,代码行数:7,代码来源:Application.java


示例12: FacesHttpServlet

import javax.faces.webapp.FacesServlet; //导入依赖的package包/类
@Inject
FacesHttpServlet(FacesServlet facesServlet) {
    this.facesServlet = facesServlet;
}
 
开发者ID:skuzzle,项目名称:guice-jsf,代码行数:5,代码来源:FacesHttpServlet.java


示例13: FenixFacesServlet

import javax.faces.webapp.FacesServlet; //导入依赖的package包/类
public FenixFacesServlet() {
    super();
    facesServlet = new FacesServlet();
}
 
开发者ID:FenixEdu,项目名称:fenixedu-academic,代码行数:5,代码来源:FenixFacesServlet.java


示例14: facesServlet

import javax.faces.webapp.FacesServlet; //导入依赖的package包/类
@Bean
public FacesServlet facesServlet() {
	return new FacesServlet();
}
 
开发者ID:osnircunha,项目名称:SpringFrameworkSamples,代码行数:5,代码来源:JsfConfiguration.java


示例15: dispatcherRegistration

import javax.faces.webapp.FacesServlet; //导入依赖的package包/类
@Bean
public ServletRegistrationBean dispatcherRegistration(FacesServlet dispatcherServlet) {
	final ServletRegistrationBean registration = new ServletRegistrationBean(dispatcherServlet, "*.xhtml", "/pages/**");
	registration.setName("FacesServlet");
	return registration;
}
 
开发者ID:osnircunha,项目名称:SpringFrameworkSamples,代码行数:7,代码来源:JsfConfiguration.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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