首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ice:inputRichText未呈现

ice:inputRichText未呈现
EN

Stack Overflow用户
提问于 2013-09-05 18:25:52
回答 1查看 545关注 0票数 0

我真的不知道这怎么可能。一定是配置不好..。ice:inputRichText只在简单转发之后呈现,而不是在form操作之后呈现(h:commandButton)。没有呈现任何内容,Firebug说: ReferenceError: renderEditor不是定义新的ActiveXObject('Microsoft.XMLHTTP');

这是我的代码:home.xhtml

代码语言:javascript
复制
    <h:form>
        <h:commandButton action="index2" value="index2"/>
    </h:form>

index2.xhtml

代码语言:javascript
复制
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ice="http://www.icesoft.com/icefaces/component"
      >
    <h:head>
        <title>RDFa test</title>
    </h:head>
    <h:body> 
        <h:form prependId="false">
            <ice:inputRichText/>
        </h:form>
    </h:body>
</html>

pom.xml:

代码语言:javascript
复制
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
    <artifactId>Impetus</artifactId>
    <groupId>com.dusek</groupId>
    <version>1.0-SNAPSHOT</version>
</parent>

<groupId>com.dusek</groupId>
<artifactId>Impetus-web</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>

<name>Impetus-web</name>

<properties>
    <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <!--netbeans.hint.deploy.server>gfv3ee6</netbeans.hint.deploy.server-->
</properties>

<dependencies>
    <dependency>
        <groupId>org.icefaces</groupId>
        <artifactId>icefaces</artifactId>
        <version>3.2.0</version>
    </dependency>
    <dependency>
        <groupId>org.icepush</groupId>
        <artifactId>icepush</artifactId>
        <version>3.2.0</version>
    </dependency>
    <dependency>
        <groupId>org.icefaces</groupId>
        <artifactId>icefaces-compat</artifactId>
        <version>3.2.0</version>
    </dependency>
    <dependency>
        <groupId>com.dusek</groupId>
        <artifactId>Impetus-ejb</artifactId>
        <version>1.0-SNAPSHOT</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>Impetus-ejb</artifactId>
        <version>${project.version}</version>
    </dependency>
    <dependency>
        <groupId>javax</groupId>
        <artifactId>javaee-web-api</artifactId>
        <version>6.0</version>
        <scope>provided</scope>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.3.2</version>
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
                <compilerArguments>
                    <endorseddirs>${endorsed.dir}</endorseddirs>
                </compilerArguments>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.1.1</version>
            <configuration>
                <failOnMissingWebXml>false</failOnMissingWebXml>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-dependency-plugin</artifactId>
            <version>2.1</version>
            <executions>
                <execution>
                    <phase>validate</phase>
                    <goals>
                        <goal>copy</goal>
                    </goals>
                    <configuration>
                        <outputDirectory>${endorsed.dir}</outputDirectory>
                        <silent>true</silent>
                        <artifactItems>
                            <artifactItem>
                                <groupId>javax</groupId>
                                <artifactId>javaee-endorsed-api</artifactId>
                                <version>6.0</version>
                                <type>jar</type>
                            </artifactItem>
                        </artifactItems>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>
<repositories>
    <repository>
        <url>http://anonsvn.icefaces.org/repo/maven2/releases/</url>
        <id>icefaces-core</id>
        <layout>default</layout>
        <name>Repository for library ICEfaces Core (3.2.0)</name>
    </repository>
    <repository>
        <id>unknown-jars-temp-repo</id>
        <name>A temporary repository created by NetBeans for libraries and jars it could not identify. Please replace the dependencies in this repository with correct ones and delete this repository.</name>
        <url>file:${project.basedir}/lib</url>
    </repository>
</repositories>

web.xml

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>

">0.xsd"> javax.faces.PROJECT_STAGE Development javax.faces.STATE_SAVING_METHOD服务器javax.faces.FACELETS_SKIP_COMMENTS javax.faces.FACELETS_SKIP_COMMENTS org.icefaces.mandatoryResourceConfiguration org.icefaces.ace.gmapKey AIzaSyATyWVqT2qNusNGmcVTyQ0QmymkpU-B5o javax.facescom.icesoft.faces.webapp.CompatResourceServlet 1面向Servlet .xhtml .VALIDATE_EMPTY_FIELDS假com.icesoft.faces.gmapKey AIzaSyAcAbAa7AL1DLU0785OeWn2byf4XOsm7KM Faces Servlet 1 javax.faces.webapp.FacesServlet 1资源Servlet

代码语言:javascript
复制
          _Resource Servlet         /xmlhttp/_                                30                            home.xhtml      

faces-config.xml:

代码语言:javascript
复制
<?xml version='1.0' encoding='UTF-8'?>

<!-- =========== FULL CONFIGURATION FILE ================================== -->

<faces-config version="2.1"
              xmlns="http://java.sun.com/xml/ns/javaee"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd">

    <application>
        <resource-bundle>
            <base-name>text.labels</base-name>
            <var>msg</var>
        </resource-bundle>
    </application>
    <navigation-rule>
        <navigation-case>
            <from-outcome>success</from-outcome>
            <to-view-id>/loggedin.xhtml</to-view-id>  
        </navigation-case>
        <navigation-case>
            <from-outcome>logout</from-outcome>       
            <to-view-id>/logout.xhtml</to-view-id>  
        </navigation-case>
    </navigation-rule>
</faces-config>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-09-06 08:27:57

我找到解决办法了!非常感谢,没人,你已经发现了问题.

ICEfaces向JSF添加Ajax功能(甚至简单地将icefaces.jar添加到JSF应用程序,通过影响页面标记中的必要更改来添加Ajax!)。结果是,在表单提交期间,与组件的交互会自动触发Ajax的使用。

以下是整个描述:http://www.icesoft.org/wiki/display/ICE/Disabling+Ajax还有一个教程,如何手动禁用AJAX。

我真的很难过!我已经找了三天的解决办法了.

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18643412

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档