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 and WAS 6.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
Read the forum posting rules
So, to reiterate and add abit of info.
my web.xml is :
the test page is:
I have added, more than, all needed jars..
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 ?
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>
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>
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
Read the forum posting rules
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
What happens when you add h:inputText? What is the generated html?
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
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
Read the forum posting rules
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Are your pages xhtml?
If so try;
Also how do you access your pages, like page.jsf?
If so try;
Code: Select all
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
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
Read the forum posting rules
Without ant further help here, I probably will have to put primefaces aside for the websphere world for now
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...
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
Read the forum posting rules
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
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
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
Read the forum posting rules
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
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.
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.
-
- Information
-
Who is online
Users browsing this forum: Google [Bot] and 53 guests