小编Lin*_*e55的帖子

仅将inputText值限制为字母字符

我只需要[A-Z,a-z]在PrimeFaces inputText字段中只允许使用字母字符.

我怎样才能做到这一点?

regex input primefaces jsf-2

4
推荐指数
1
解决办法
2万
查看次数

无法找到神器休眠

这是我的pom.xml

<repositories>
    <repository>
        <url>http://download.java.net/maven/2/</url>
        <id>hibernate-support</id>
        <layout>default</layout>
        <name>Repository for library Library[hibernate-support]</name>
    </repository>
</repositories>

<dependencies>

<!-- MySQL database driver -->
    <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
        <version>5.1.9</version>
    </dependency>

<!-- Spring framework --> 
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring</artifactId>
        <version>2.5.6</version>
    </dependency>

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-web</artifactId>
        <version>3.1.1.RELEASE</version>
    </dependency>

<!-- Hibernate core -->
    <dependency>
    <groupId>hibernate</groupId>
    <artifactId>hibernate3</artifactId>
    <version>3.2.3.GA</version>
</dependency>


<!-- Hibernate core library dependecy start -->
    <dependency>
        <groupId>dom4j</groupId>
        <artifactId>dom4j</artifactId>
        <version>1.6.1</version>
    </dependency>

    <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.1.1</version>
    </dependency>

    <dependency>
        <groupId>commons-collections</groupId>
        <artifactId>commons-collections</artifactId>
        <version>3.2.1</version>
    </dependency>

    <dependency>
        <groupId>cglib</groupId>
        <artifactId>cglib</artifactId>
        <version>2.2</version>
    </dependency>
<!-- Hibernate core library dependecy end …
Run Code Online (Sandbox Code Playgroud)

hibernate java-ee maven

3
推荐指数
1
解决办法
1万
查看次数

重置主要面中的输入字段

我有一个Dialog输入详细信息.第一次,InputText为空.但是从第二个输入,InputText保持以前的值.

这是我的代码:

     <p:commandButton id="showDialogButton1" type="button" value="add" onclick="dlg1.show()" update="firstname1"/>
     <p:dialog id="dialogAjout" header="add department" widgetVar="dlg1" resizable="false">  
          <h:panelGrid columns="2" style="margin-bottom:10px">  
                <h:outputLabel for="firstname1" value="Libellé :" />  
                <p:inputText id="firstname1" value="#{departementBean.departement.libelleDepartement}" />
          </h:panelGrid>  
          <p:commandButton id="submitButton1" value="Valider" oncomplete="dlg1.hide();" action="#{departementBean.addDept()}" update="tabView"/> 
     </p:dialog>
Run Code Online (Sandbox Code Playgroud)

请问我怎么解决这个问题!

primefaces

2
推荐指数
3
解决办法
3万
查看次数

无法在eclipse Helios中集成Maven

我尝试通过点击eclipse市场将maven集成到我的日食helios中.

但是当它成为安装软件时,我有这个错误:

    An error occurred while collecting items to be installed
    session context was:(profile=epp.package.jee,
    phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
    action=).
    Comparison method violates its general contract!
    Comparison method violates its general contract!
Run Code Online (Sandbox Code Playgroud)

我怎么能解决这个问题!

eclipse maven helios

0
推荐指数
1
解决办法
1473
查看次数

标签 统计

maven ×2

primefaces ×2

eclipse ×1

helios ×1

hibernate ×1

input ×1

java-ee ×1

jsf-2 ×1

regex ×1