Is touchfaces publicly available yet or not?

UI Components for JSF
Post Reply
sunny
Posts: 20
Joined: 24 Oct 2009, 01:54

25 Oct 2009, 19:28

Is touchfaces publicly available yet or not?

Would appreciate if someone could point me to the links where I can download the jars for touchfaces.

Thx in advance

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

25 Oct 2009, 19:31

It's in primefaces ui 0.9.3 jar.

sunny
Posts: 20
Joined: 24 Oct 2009, 01:54

25 Oct 2009, 19:49

Thx.

Let me try your sample touchfaces demo. I was wondering if we need to add any plugin to Eclipse as you mention in the doc "TouchFaces is built on top of the jqTouch jquery plugin".

Let me try and am sure will ask a few more questions if I hit any blockers when trying to run your Touchfaces app.

Thx again

sunny
Posts: 20
Joined: 24 Oct 2009, 01:54

25 Oct 2009, 20:17

I think I have some simple issue.

I created a page called HelloWorld/sampletouch/test.xhtml

I loaded the url http://localhost:8080/HelloWorld/test.jsf and it fails with 404
and the namespace I have used in my test.html is

xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:i="http://primefaces.prime.com.tr/touch">

I have used web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>HelloWorld</display-name>

<servlet>
<servlet-name>Resource Servlet</servlet-name>
<servlet-class>org.primefaces.ui.resource.ResourceServlet</servlet-class>
<init-param>
<param-name>load-on-startup</param-name>
<param-value>1</param-value>
</init-param>
</servlet>

<servlet-mapping>
<servlet-name>Resource Servlet</servlet-name>
<url-pattern>/primefaces_resources/*</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<init-param>
<param-name>load-on-startup</param-name>
<param-value>1</param-value>
</init-param>
</servlet>

<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
</web-app>

sunny
Posts: 20
Joined: 24 Oct 2009, 01:54

25 Oct 2009, 21:35

Can you post a working web.xml for Touchfaces?

I can then see what the servlets and what the mappings are.

I have attached my web.xml in my previous post, but looks like it is not correct as I am getting http status 404 ..requested resource not available

User avatar
ydarcin
Posts: 258
Joined: 04 Jan 2009, 19:02
Location: Turkey

25 Oct 2009, 23:55

Hi,

you can see our example's web.xml and other files here:

http://primefaces.googlecode.com/svn/ex ... in/webapp/

you can check the web.xml there.

Yigit.

sunny
Posts: 20
Joined: 24 Oct 2009, 01:54

26 Oct 2009, 04:01

I had tried them. They do now work if I use facelets

The only way I could get something to work was using jsp. But that too has issues with i:rowitem. It does not understand "label" attribute.

<i:rowItem label="Google" url="http://www.google.com">

My google.jsf
----------------

Code: Select all

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://primefaces.prime.com.tr/ui" prefix="p" %>
<%@ taglib uri="http://primefaces.prime.com.tr/touch" prefix="i" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<html>

<f:view>
  <i:application>
    <i:view title="Demo">
      <i:tableView display="group">
        <i:rowGroup title="Hello">
         <i:rowItem >
         </i:rowItem>
         <i:rowItem label="Google" url="http://www.google.com"></i:rowItem>
        
        </i:rowGroup>
      </i:tableView>
    </i:view>
  </i:application>
</f:view>
</html>

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

26 Oct 2009, 09:06

Actually they work with facelets, all demo apps have facelets. Which browser have you tested with? Did you have f:view contentType="text/html" for facelets?

Regarding label problem of rowitem, try using 1.0.0.RC-SNAPSHOT build, it has the fix for that.

http://repository.prime.com.tr/org/prim ... -SNAPSHOT/

sunny
Posts: 20
Joined: 24 Oct 2009, 01:54

26 Oct 2009, 14:56

Thx. I will try facelets again. But before I get to it am trying to make jsp work with i:rowitem.

I tried using1.0.0.RC-SNAPSHOT and that did nto help either. I posted the i:rowitem as a different post as want to keep jsp and facelet conversations seperate

sunny
Posts: 20
Joined: 24 Oct 2009, 01:54

26 Oct 2009, 15:33

Cagatay replied in another thread that attribute name is "value" and not label. I will leave this message to continue the discussion if I face problems with facelets

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

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