Primefaces and WAS 6.1

UI Components for JSF
Post Reply
Llathos
Posts: 35
Joined: 28 Apr 2010, 14:48

28 Apr 2010, 14:55

Does anyone have experience using primefaces with Websphere application server versioon 6.1 ?

How did you get it up and running if so ?

I have managed to get Icefaces running on my WAS, but so far Primefaces seems to elude me (or rather WAS is #¤""#¤"#¤"¤ with me). No, I'm not trying to run them together. I just wish to evaluate if Primefaces is better to use than Icefaces and/or Openfaces.

Thanks in adnavance for any help ! :)
PrimeFaces 6.1.8 | Primefaces-Extension 6.1.1 | jetty 9.4.9.v20180320 | com.sun.faces 2.2.14 | Juel 2.2.6
Read the forum posting rules

Llathos
Posts: 35
Joined: 28 Apr 2010, 14:48

29 Apr 2010, 11:09

So, to reiterate and add abit of info.

my web.xml is :

Code: Select all

<?xml version="1.0" encoding="UTF-8"?> 
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
        <display-name>primefaces_test</display-name> 
        
        <context-param> 
                <param-name>javax.faces.STATE_SAVING_METHOD</param-name> 
                <param-value>server</param-value> 
        </context-param> 
        <context-param> 
                <param-name>javax.faces.DEFAULT_SUFFIX</param-name> 
                <param-value>.jsf</param-value> 
        </context-param> 
        <context-param> 
                <param-name>com.ibm.ws.jsf.JSP_UPDATE_CHECK</param-name> 
                <param-value>true</param-value> 
        </context-param> 
        <context-param> 
                <param-name>com.ibm.ws.jsf.LOAD_FACES_CONFIG_AT_STARTUP</param-name> 
                <param-value>true</param-value> 
        </context-param> 
        
        <servlet> 
                <servlet-name>Resource Servlet</servlet-name> 
                <servlet-class>org.primefaces.resource.ResourceServlet</servlet-class> 
                <load-on-startup>1</load-on-startup> 
        </servlet> 
        <servlet-mapping> 
                <servlet-name>Resource Servlet</servlet-name> 
                <url-pattern>/primefaces_resource/*</url-pattern> 
        </servlet-mapping> 
</web-app>
the test page is:

Code: Select all

<html xmlns="http://www.w3c.org/1999/xhtml" 
      xmlns:f="http://java.sun.com/jsf/core" 
          xmlns:h="http://java.sun.com/jsf/html" 
          xmlns:p="http://primefaces.prime.com.tr/ui"> 
<head> 
    <p:resources /> 
</head> 
<body> 
    <p:editor /> 
</body>
I have added, more than, all needed jars..
Image

the result is a "blank" page. By "blank" I mean nothing is shown, but if I do view source (or its equivalent) I get the raw jsf file.

Anyone got any clue as to whats wrong ?
PrimeFaces 6.1.8 | Primefaces-Extension 6.1.1 | jetty 9.4.9.v20180320 | com.sun.faces 2.2.14 | Juel 2.2.6
Read the forum posting rules

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

29 Apr 2010, 12:31

What happens when you add h:inputText? What is the generated html?

Llathos
Posts: 35
Joined: 28 Apr 2010, 14:48

29 Apr 2010, 13:11

In Firefox it just dumps the content of the jsf file to screen and in IE it is still "blank" (with source beeing the content of the JSF file) - this also happens when adding the 'h:inputText'.

So - some setup is wrong, but I've stared myself blind on the code. Realy appreciate the help !

The only diffrence I can find with the Icefaces project (that I've got working), is that there is no face-config.xml nor backing beans (and ofcource the setup servlets for Icefaces), but that shouldn't be needed to make this simple an examplke work (?)

Again, thanks for taking the time to help me :)
PrimeFaces 6.1.8 | Primefaces-Extension 6.1.1 | jetty 9.4.9.v20180320 | com.sun.faces 2.2.14 | Juel 2.2.6
Read the forum posting rules

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

29 Apr 2010, 16:59

Are your pages xhtml?

If so try;

Code: Select all

<context-param> 
                <param-name>javax.faces.DEFAULT_SUFFIX</param-name> 
                <param-value>.xhtml</param-value> 
        </context-param> 
Also how do you access your pages, like page.jsf?

Llathos
Posts: 35
Joined: 28 Apr 2010, 14:48

30 Apr 2010, 10:06

the page has suffix jsf, and I access it by "... localhost/primetest/test.jsf"
PrimeFaces 6.1.8 | Primefaces-Extension 6.1.1 | jetty 9.4.9.v20180320 | com.sun.faces 2.2.14 | Juel 2.2.6
Read the forum posting rules

Llathos
Posts: 35
Joined: 28 Apr 2010, 14:48

03 May 2010, 14:11

Without ant further help here, I probably will have to put primefaces aside for the websphere world for now :cry:

would have loved to use it, but as of now Myfacese and Icefaces is the only thing I've got working on the WAS 6.1.019 server...
PrimeFaces 6.1.8 | Primefaces-Extension 6.1.1 | jetty 9.4.9.v20180320 | com.sun.faces 2.2.14 | Juel 2.2.6
Read the forum posting rules

srbala
Posts: 139
Joined: 02 May 2010, 01:06

04 May 2010, 04:34

JSF requires:

Java Servlet 2.5
JavaServer TM Pages 2.1
JavaServer TM Pages Standard Tag Library 1.2

They are part of J2EE 1.5 Specification.

Either you need EJB 3.0 Add-on Package or WAS 7.0 to support JSF 1.2.

Without those, WAS 6.1 supports only JSF 1.1

Thanks,
Bala

Llathos
Posts: 35
Joined: 28 Apr 2010, 14:48

04 May 2010, 10:04

So even though I'm using JSF1.2_13 library in a Icefaces project, I am realy only running with JSF1.1 ?
PrimeFaces 6.1.8 | Primefaces-Extension 6.1.1 | jetty 9.4.9.v20180320 | com.sun.faces 2.2.14 | Juel 2.2.6
Read the forum posting rules

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

04 May 2010, 14:45

Still if you use facelets and add proper class loading mechanism, you can use JSF 1.2 with WAS 6.1, we've done that for a project recently for PrimeFaces so be sure that PrimeFaces can work in WAS 6.1 with that combination.

Also try creating your pages as page.xhtml and execute them as page.jsf.

Also I didn't see Faces Servlet in your web.xml which is a must for JSF 1.2.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 53 guests