NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Richfaces 3.3.3 + facelet

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
soolch



Joined: 30 Jun 2010
Posts: 3

PostPosted: Wed Aug 11, 2010 4:04 pm    Post subject: Richfaces 3.3.3 + facelet Reply with quote

I am using Netbeans 6.9 + Richfaces 3.3.3 + JSF2.0 Facelet.

Whenever I open the index.xhtml it will have errors as the following:

Quote:

/index.xhtml @13,23 <a4j:form> Tag Library supports namespace: http://richfaces.org/a4j, but no tag was defined for name: form


My web.xml is as the following:

Code:
<context-param>
        <param-name>javax.faces.PROJECT_STAGE</param-name>
        <param-value>Development</param-value>
    </context-param>
    <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>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>faces/index.xhtml</welcome-file>
    </welcome-file-list>


    <!-- Plugging the "Blue Sky" skin into the project -->
    <context-param>
        <param-name>org.richfaces.SKIN</param-name>
        <param-value>blueSky</param-value>
    </context-param>
    <!-- Making the RichFaces skin spread to standard HTML controls -->
    <context-param>
        <param-name>org.richfaces.CONTROL_SKINNING</param-name>
        <param-value>enable</param-value>
    </context-param>
    <context-param>
        <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
        <param-value>com.sun.facelets.FaceletViewHandler</param-value>
    </context-param>

    <!-- Defining and mapping the RichFaces filter -->
    <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>


The index.html

Code:
<?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:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <f:view>
            <a4j:form>
                <a4j:commandButton value="Get greeting" reRender="greeting" />
            </a4j:form>
        </f:view>
    </h:body>
</html>


Libraries that I have in the lib folder are:
richfaces-api-3.3.3.Final.jar
richfaces-impl-jsf2-3.3.3.Final.jar
ricchfaces-ui-3.3.3.Final.jar
commons-beanutils-1.8.3.jar
commons-collections.jar
commons-digester-2.0.jar
commons-logging.jar
jhighlight-1.0.jar


[/code]
Back to top
Hattusas



Joined: 11 Oct 2010
Posts: 1

PostPosted: Mon Oct 11, 2010 1:38 pm    Post subject: Reply with quote

@scoolch

I am having the same issue . I am using JSF 2.0 now. It seems application server fails to decode the ajax libraries.

I will try the latest built 4.x version of richfaces. Will keep you updated.

Of course if you had overcome this problem let me know pls Smile
Back to top
soolch



Joined: 30 Jun 2010
Posts: 3

PostPosted: Tue Oct 12, 2010 6:02 am    Post subject: Reply with quote

Hello Hattusas,

I managed to solve the problem by using normal html tags instead jsf html,
means replace <h:body> with <body>

Hope this help.
Back to top
angweisan



Joined: 21 Oct 2010
Posts: 1

PostPosted: Thu Oct 21, 2010 4:15 am    Post subject: Reply with quote

Hello,

I get exactly the same problem. I tried to change the JSF tags to normal HTML tags, but still get the same outcome. Any comment?

Thanks.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo