Problem with PrimeFaces + RichFaces

UI Components for JSF
Post Reply
User avatar
benignoms
Posts: 62
Joined: 18 Jun 2010, 05:56
Location: Brazil
Contact:

18 Jun 2010, 06:02

Hi, im using PrimeFaces and RichFaces. Whe i uses p:password tag this generates a javascript error:

Object expected

When i uses: p:editor return error

PrimeFaces is not defined

my web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 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-app_2_5.xsd">
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Resource Servlet</servlet-name>
<servlet-class>
org.primefaces.resource.ResourceServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Resource Servlet</servlet-name>
<url-pattern>/primefaces_resource/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>faces/index.xhtml</welcome-file>
</welcome-file-list>
</web-app>

My JSF code:
<rich:panel id="crudRecursoAdicionaRichPanel" rendered="#{crudUsuarioBackingBean.adicionarState}">
<h:panelGrid columns="3">
<h:outputLabel value="Nome:" />
<h:inputText value="#{crudUsuarioBackingBean.usuario.nome}" id="nomeInputText" required="true" requiredMessage="Campo NOME é obrigatório" size="70"/>
<h:message for="nomeInputText" errorStyle="color: darkred;"/>
<h:outputLabel value="Senha:" />
<p:password value="#{crudUsuarioBackingBean.usuario.senha}" id="senhaPassword" minLength="10" maxlength="20" goodLabel="Boa" weakLabel="Ruim" strongLabel="Forte" promptLabel="Força da senha:"/>
</h:panelGrid>
</rich:panel>


waiting some help,

thx
Last edited by benignoms on 18 Jun 2010, 12:33, edited 1 time in total.
7ec Solutions http://www.7ec.com.br/

Mojarra 2.1.6
PrimeFaces 4.0
PrimeFaces Extensions 1.1.0
GlassFish Server 3.1.2

User avatar
benignoms
Posts: 62
Joined: 18 Jun 2010, 05:56
Location: Brazil
Contact:

18 Jun 2010, 12:27

Anybody?
7ec Solutions http://www.7ec.com.br/

Mojarra 2.1.6
PrimeFaces 4.0
PrimeFaces Extensions 1.1.0
GlassFish Server 3.1.2

User avatar
benignoms
Posts: 62
Joined: 18 Jun 2010, 05:56
Location: Brazil
Contact:

18 Jun 2010, 12:43

I wasn´t loading the <p:resources/> :lol:

thx everyone...
7ec Solutions http://www.7ec.com.br/

Mojarra 2.1.6
PrimeFaces 4.0
PrimeFaces Extensions 1.1.0
GlassFish Server 3.1.2

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests