Re: AW: Stuck making JSF 2.0 work with MyFaces

2010-02-23 Thread Matthias Wessendorf
use Trinidad2 :-)

On Tue, Feb 23, 2010 at 7:25 AM, cristiJ cristi_ju...@yahoo.com wrote:

 i checked out icefaces and primefaces. I think I'm going to wait untill
 Tomahawk will be released for JSF 2.0.
 Apache has done tremendous work so far.
 I hope you willl have time to upgrade Tomahawk soon



 Jakob Korherr wrote:

 Maybe tomahawk is causing the problems, because there is currently no real
 working branch of tomahawk for JSF 2.0. However there will be one soon.

 Please remove tomahawk completely from your webapp and try again!

 Regards,
 Jakob

 2010/2/22 cristiJ cristi_ju...@yahoo.com


 Hi,

 yes, I just tried it. For both of theses URLs :
 http://localhost:8080/app02/faces/index.xhtml
 http://localhost:8080/app02

 the file does not get translated to XHTML, it arrives in the browser with
 the f and h customs.
 This happens only when I add MyFaces.
 I tried adding my self a custom component, defined by this class :

 import javax.faces.component.FacesComponent;
 import javax.faces.component.html.HtmlInputText;

 @FacesComponent(value = HtmlInputFile)
 public class HtmlInputFile extends HtmlInputText {

   �...@override
    public String getRendererType() {
        return javax.faces.File;
    }

 }

 with this balusc.taglib.xml config file

 ?xml version=1.0 encoding=UTF-8?
 facelet-taglib
    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-facelettaglibrary_2_0.xsd;
    version=2.0

     namespacehttp://balusc.net/jsf/html/namespace
    tag
        tag-nameinputFile/tag-name
        component
            component-typeHtmlInputFile/component-type
        /component
    /tag
 /facelet-taglib

 and with the web.xml as such:

 context-param
        param-namejavax.faces.FACELETS_LIBRARIES/param-name
         param-value/WEB-INF/balusc.taglib.xml/param-value
 /context-param


 The page is:

 ?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:hh=http://balusc.net/jsf/html;
     body
        h:form enctype=multipart/form-data id=myForm
            firstName : h:inputText value=#{user.firstName} /br /
            lastName : h:inputText value=#{user.lastName} /br /
            city : h:inputText value=#{user.city} /br /
            price : h:inputText value=#{user.price} /br /
             pic : hh:inputFileUpload id=file value=#{user.file}/br
 /
             h:commandButton  action=#{user.createUser} value=Create
 user/
        /h:form
    /body
 /html

 and the xhtml is translated properly. I can't understand what is the
 conflict for MyFaces!?


 Jakob Korherr wrote:
 
  Hi,
 
  Does your URL in your browser include /faces/index.xhtml?
 
  Regards,
  Jakob
 
  2010/2/22 cristiJ cristi_ju...@yahoo.com
 
 
  Hi,
 
  Yes, you understood correctly, neither of h: or f: components are not
  processed.
  I have a very simple index.xhtml file :
 
  ?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:t=http://myfaces.apache.org/tomahawk;
     body
         h:form enctype=multipart/form-data id=myForm
             firstName : h:inputText value=#{user.firstName} /br /
             lastName : h:inputText value=#{user.lastName} /br /
              city : h:inputText value=#{user.city} /br /
             price : h:inputText value=#{user.price} /br /
              pic : t:inputFileUpload id=file storage=file
  accept=image/* styleClass=myStyle value=#{user.file}/br /
             h:commandButton  action=#{user.createUser} value=Create
  user/
         /h:form
     /body
  /html
 
  The web.xml file for it is:
 
  ?xml version=1.0 encoding=UTF-8?
  web-app version=3.0 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_3_0.xsd;
     context-param
         param-namejavax.faces.PROJECT_STAGE/param-name
         param-valueDevelopment/param-value!-- Debugging
 information
  is
  printed --
     /context-param
     servlet
         servlet-nameFaces Servlet/servlet-name
         servlet-classjavax.faces.webapp.FacesServlet/servlet-class
         load-on-startup1/load-on-startup
     /servlet
     servlet-mapping
         servlet-nameFaces Servlet/servlet-name
         url-pattern/faces/*/url-pattern
     /servlet-mapping
     session-config
         session-timeout
             30
         /session-timeout
     /session-config
     welcome-file-list
         welcome-filefaces/index.xhtml/welcome-file
     

Re: AW: Stuck making JSF 2.0 work with MyFaces

2010-02-23 Thread Jakob Korherr
we're on it!


2010/2/23, cristiJ cristi_ju...@yahoo.com:

 i checked out icefaces and primefaces. I think I'm going to wait untill
 Tomahawk will be released for JSF 2.0.
 Apache has done tremendous work so far.
 I hope you willl have time to upgrade Tomahawk soon



 Jakob Korherr wrote:

 Maybe tomahawk is causing the problems, because there is currently no real
 working branch of tomahawk for JSF 2.0. However there will be one soon.

 Please remove tomahawk completely from your webapp and try again!

 Regards,
 Jakob

 2010/2/22 cristiJ cristi_ju...@yahoo.com


 Hi,

 yes, I just tried it. For both of theses URLs :
 http://localhost:8080/app02/faces/index.xhtml
 http://localhost:8080/app02

 the file does not get translated to XHTML, it arrives in the browser with
 the f and h customs.
 This happens only when I add MyFaces.
 I tried adding my self a custom component, defined by this class :

 import javax.faces.component.FacesComponent;
 import javax.faces.component.html.HtmlInputText;

 @FacesComponent(value = HtmlInputFile)
 public class HtmlInputFile extends HtmlInputText {

@Override
public String getRendererType() {
return javax.faces.File;
}

 }

 with this balusc.taglib.xml config file

 ?xml version=1.0 encoding=UTF-8?
 facelet-taglib
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-facelettaglibrary_2_0.xsd;
version=2.0

 namespacehttp://balusc.net/jsf/html/namespace
tag
tag-nameinputFile/tag-name
component
component-typeHtmlInputFile/component-type
/component
/tag
 /facelet-taglib

 and with the web.xml as such:

 context-param
param-namejavax.faces.FACELETS_LIBRARIES/param-name
 param-value/WEB-INF/balusc.taglib.xml/param-value
 /context-param


 The page is:

 ?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:hh=http://balusc.net/jsf/html;
 body
h:form enctype=multipart/form-data id=myForm
firstName : h:inputText value=#{user.firstName} /br /
lastName : h:inputText value=#{user.lastName} /br /
city : h:inputText value=#{user.city} /br /
price : h:inputText value=#{user.price} /br /
 pic : hh:inputFileUpload id=file value=#{user.file}/br
 /
 h:commandButton  action=#{user.createUser} value=Create
 user/
/h:form
/body
 /html

 and the xhtml is translated properly. I can't understand what is the
 conflict for MyFaces!?


 Jakob Korherr wrote:
 
  Hi,
 
  Does your URL in your browser include /faces/index.xhtml?
 
  Regards,
  Jakob
 
  2010/2/22 cristiJ cristi_ju...@yahoo.com
 
 
  Hi,
 
  Yes, you understood correctly, neither of h: or f: components are not
  processed.
  I have a very simple index.xhtml file :
 
  ?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:t=http://myfaces.apache.org/tomahawk;
 body
 h:form enctype=multipart/form-data id=myForm
 firstName : h:inputText value=#{user.firstName} /br /
 lastName : h:inputText value=#{user.lastName} /br /
  city : h:inputText value=#{user.city} /br /
 price : h:inputText value=#{user.price} /br /
  pic : t:inputFileUpload id=file storage=file
  accept=image/* styleClass=myStyle value=#{user.file}/br /
 h:commandButton  action=#{user.createUser} value=Create
  user/
 /h:form
 /body
  /html
 
  The web.xml file for it is:
 
  ?xml version=1.0 encoding=UTF-8?
  web-app version=3.0 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_3_0.xsd;
 context-param
 param-namejavax.faces.PROJECT_STAGE/param-name
 param-valueDevelopment/param-value!-- Debugging
 information
  is
  printed --
 /context-param
 servlet
 servlet-nameFaces Servlet/servlet-name
 servlet-classjavax.faces.webapp.FacesServlet/servlet-class
 load-on-startup1/load-on-startup
 /servlet
 servlet-mapping
 servlet-nameFaces Servlet/servlet-name
 url-pattern/faces/*/url-pattern
 /servlet-mapping
 session-config
 session-timeout
 30
 /session-timeout
 /session-config
 welcome-file-list
 welcome-filefaces/index.xhtml/welcome-file
 /welcome-file-list
 
 
 !-- Extensions Filter 

RE: AW: Stuck making JSF 2.0 work with MyFaces

2010-02-23 Thread venkat.ramanan
Hi

Is Trinidad 2 production quality ?  Is the alpha release of Trinidad compatible 
with JSF 2.0 ?

Thanks
Venkat

-Original Message-
From: mwessend...@gmail.com [mailto:mwessend...@gmail.com] On Behalf Of 
Matthias Wessendorf
Sent: Tuesday, February 23, 2010 2:55 PM
To: MyFaces Discussion
Subject: Re: AW: Stuck making JSF 2.0 work with MyFaces

use Trinidad2 :-)

On Tue, Feb 23, 2010 at 7:25 AM, cristiJ cristi_ju...@yahoo.com wrote:

 i checked out icefaces and primefaces. I think I'm going to wait untill
 Tomahawk will be released for JSF 2.0.
 Apache has done tremendous work so far.
 I hope you willl have time to upgrade Tomahawk soon



 Jakob Korherr wrote:

 Maybe tomahawk is causing the problems, because there is currently no real
 working branch of tomahawk for JSF 2.0. However there will be one soon.

 Please remove tomahawk completely from your webapp and try again!

 Regards,
 Jakob

 2010/2/22 cristiJ cristi_ju...@yahoo.com


 Hi,

 yes, I just tried it. For both of theses URLs :
 http://localhost:8080/app02/faces/index.xhtml
 http://localhost:8080/app02

 the file does not get translated to XHTML, it arrives in the browser with
 the f and h customs.
 This happens only when I add MyFaces.
 I tried adding my self a custom component, defined by this class :

 import javax.faces.component.FacesComponent;
 import javax.faces.component.html.HtmlInputText;

 @FacesComponent(value = HtmlInputFile)
 public class HtmlInputFile extends HtmlInputText {

   �...@override
    public String getRendererType() {
        return javax.faces.File;
    }

 }

 with this balusc.taglib.xml config file

 ?xml version=1.0 encoding=UTF-8?
 facelet-taglib
    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-facelettaglibrary_2_0.xsd;
    version=2.0

     namespacehttp://balusc.net/jsf/html/namespace
    tag
        tag-nameinputFile/tag-name
        component
            component-typeHtmlInputFile/component-type
        /component
    /tag
 /facelet-taglib

 and with the web.xml as such:

 context-param
        param-namejavax.faces.FACELETS_LIBRARIES/param-name
         param-value/WEB-INF/balusc.taglib.xml/param-value
 /context-param


 The page is:

 ?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:hh=http://balusc.net/jsf/html;
     body
        h:form enctype=multipart/form-data id=myForm
            firstName : h:inputText value=#{user.firstName} /br /
            lastName : h:inputText value=#{user.lastName} /br /
            city : h:inputText value=#{user.city} /br /
            price : h:inputText value=#{user.price} /br /
             pic : hh:inputFileUpload id=file value=#{user.file}/br
 /
             h:commandButton  action=#{user.createUser} value=Create
 user/
        /h:form
    /body
 /html

 and the xhtml is translated properly. I can't understand what is the
 conflict for MyFaces!?


 Jakob Korherr wrote:
 
  Hi,
 
  Does your URL in your browser include /faces/index.xhtml?
 
  Regards,
  Jakob
 
  2010/2/22 cristiJ cristi_ju...@yahoo.com
 
 
  Hi,
 
  Yes, you understood correctly, neither of h: or f: components are not
  processed.
  I have a very simple index.xhtml file :
 
  ?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:t=http://myfaces.apache.org/tomahawk;
     body
         h:form enctype=multipart/form-data id=myForm
             firstName : h:inputText value=#{user.firstName} /br /
             lastName : h:inputText value=#{user.lastName} /br /
              city : h:inputText value=#{user.city} /br /
             price : h:inputText value=#{user.price} /br /
              pic : t:inputFileUpload id=file storage=file
  accept=image/* styleClass=myStyle value=#{user.file}/br /
             h:commandButton  action=#{user.createUser} value=Create
  user/
         /h:form
     /body
  /html
 
  The web.xml file for it is:
 
  ?xml version=1.0 encoding=UTF-8?
  web-app version=3.0 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_3_0.xsd;
     context-param
         param-namejavax.faces.PROJECT_STAGE/param-name
         param-valueDevelopment/param-value!-- Debugging
 information
  is
  printed --
     /context-param
     servlet
         servlet-nameFaces Servlet/servlet-name
         servlet-classjavax.faces.webapp.FacesServlet/servlet-class
         load-on-startup1/load

Re: AW: Stuck making JSF 2.0 work with MyFaces

2010-02-22 Thread cristiJ

Hi Martin,

Thnak you for replying, I'm starting to get a little desperate with this
problem. I'm pretty sure the config files are proper. This is part of my
web.xml :

context-param
param-namejavax.faces.FACELETS_LIBRARIES/param-name
param-value/WEB-INF/tomahawk.taglib.xml/param-value
/context-param

which points to this tomahawk.taglib.xml file : 

?xml version=1.0 encoding=UTF-8?

facelet-taglib
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-facelettaglibrary_2_0.xsd;
version=2.0

namespacehttp://myfaces.apache.org/tomahawk/namespace
tag
tag-nameinputFileUpload/tag-name
component
   
component-typeorg.apache.myfaces.HtmlInputFileUpload/component-type
renderer-typeorg.apache.myfaces.FileUpload/renderer-type
/component
/tag

/facelet-taglib



Martin Monshausen-2 wrote:
 
 Hi,
 could you please post your config files?
  
 In my opinion there is a configuration problem which avoids the container
 to process your facelet...
  
 Yours,
  
 Martin
 
 
 
 Von: cristiJ [mailto:cristi_ju...@yahoo.com]
 Gesendet: Mo 22.02.2010 16:48
 An: users@myfaces.apache.org
 Betreff: Stuck making JSF 2.0 work with MyFaces
 
 
 
 
 Hi everybody,
 
 I'm trying to solve the file upload lack in JSF 2.0 using MyFaces. I'm
 trying with a very simple example:
 
 
 ?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:t=http://myfaces.apache.org/tomahawk;
 
 body
 h:form enctype=multipart/form-data id=myForm
 firstName : h:inputText value=#{user.firstName} /br /
 lastName : h:inputText value=#{user.lastName} /br /
 pic : t:inputFileUpload id=file storage=file accept=image/*
 styleClass=myStyle value=#{user.file}/br /
 h:commandButton action=#{user.createUser} value=Create user/
 /h:form
 /body
 /html
 
 The problem is that the page does not get transformed. In the browser I
 get
 the exact same code above, not the XHTML code expected.
 Please tell me, how can I solve this?
 --
 View this message in context:
 http://old.nabble.com/Stuck-making-JSF-2.0-work-with-MyFaces-tp27689327p27689327.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Stuck-making-JSF-2.0-work-with-MyFaces-tp27689327p27690169.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: AW: Stuck making JSF 2.0 work with MyFaces

2010-02-22 Thread Jakob Korherr
Hi,

Am I getting this right: also your h: and your f: components are not
displayed correctly?

If so, either your configuration or the URL with which you access the site
are wrong. You need to include /faces/ or *.jsf (or something similar,
depending on your configuration) in your URL to get the XHTML page processed
by the Faces Servlet.

Please provide your web.xml file and the URL from your browser with which
you try to access the site.

Regards,
Jakob

2010/2/22 cristiJ cristi_ju...@yahoo.com


 Hi Martin,

 Thnak you for replying, I'm starting to get a little desperate with this
 problem. I'm pretty sure the config files are proper. This is part of my
 web.xml :

 context-param
param-namejavax.faces.FACELETS_LIBRARIES/param-name
param-value/WEB-INF/tomahawk.taglib.xml/param-value
 /context-param

 which points to this tomahawk.taglib.xml file :

 ?xml version=1.0 encoding=UTF-8?

 facelet-taglib
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-facelettaglibrary_2_0.xsd;
version=2.0

namespacehttp://myfaces.apache.org/tomahawk/namespace
tag
tag-nameinputFileUpload/tag-name
component

 component-typeorg.apache.myfaces.HtmlInputFileUpload/component-type
renderer-typeorg.apache.myfaces.FileUpload/renderer-type
/component
/tag

 /facelet-taglib



 Martin Monshausen-2 wrote:
 
  Hi,
  could you please post your config files?
 
  In my opinion there is a configuration problem which avoids the container
  to process your facelet...
 
  Yours,
 
  Martin
 
  
 
  Von: cristiJ [mailto:cristi_ju...@yahoo.com]
  Gesendet: Mo 22.02.2010 16:48
  An: users@myfaces.apache.org
  Betreff: Stuck making JSF 2.0 work with MyFaces
 
 
 
 
  Hi everybody,
 
  I'm trying to solve the file upload lack in JSF 2.0 using MyFaces. I'm
  trying with a very simple example:
 
 
  ?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:t=http://myfaces.apache.org/tomahawk;
 
  body
  h:form enctype=multipart/form-data id=myForm
  firstName : h:inputText value=#{user.firstName} /br /
  lastName : h:inputText value=#{user.lastName} /br /
  pic : t:inputFileUpload id=file storage=file accept=image/*
  styleClass=myStyle value=#{user.file}/br /
  h:commandButton action=#{user.createUser} value=Create user/
  /h:form
  /body
  /html
 
  The problem is that the page does not get transformed. In the browser I
  get
  the exact same code above, not the XHTML code expected.
  Please tell me, how can I solve this?
  --
  View this message in context:
 
 http://old.nabble.com/Stuck-making-JSF-2.0-work-with-MyFaces-tp27689327p27689327.html
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 
 
 

 --
 View this message in context:
 http://old.nabble.com/Stuck-making-JSF-2.0-work-with-MyFaces-tp27689327p27690169.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: AW: Stuck making JSF 2.0 work with MyFaces

2010-02-22 Thread cristiJ

Hi,

Yes, you understood correctly, neither of h: or f: components are not
processed.
I have a very simple index.xhtml file :

?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:t=http://myfaces.apache.org/tomahawk;
body
h:form enctype=multipart/form-data id=myForm
firstName : h:inputText value=#{user.firstName} /br /
lastName : h:inputText value=#{user.lastName} /br /
city : h:inputText value=#{user.city} /br /
price : h:inputText value=#{user.price} /br /
pic : t:inputFileUpload id=file storage=file
accept=image/* styleClass=myStyle value=#{user.file}/br /
h:commandButton  action=#{user.createUser} value=Create
user/
/h:form
/body
/html

The web.xml file for it is: 

?xml version=1.0 encoding=UTF-8?
web-app version=3.0 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_3_0.xsd;
context-param
param-namejavax.faces.PROJECT_STAGE/param-name
param-valueDevelopment/param-value!-- Debugging information is
printed --
/context-param
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern/faces/*/url-pattern
/servlet-mapping
session-config
session-timeout
30
/session-timeout
/session-config
welcome-file-list
welcome-filefaces/index.xhtml/welcome-file
/welcome-file-list
 

!-- Extensions Filter --
filter
filter-nameextensionsFilter/filter-name
   
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
init-param
param-nameuploadMaxFileSize/param-name
param-value100m/param-value
/init-param
init-param
param-nameuploadThresholdSize/param-name
param-value100k/param-value
/init-param
init-param
param-nameuploadRepositoryPath/param-name
param-valueC:/Documents and
Settings/cristi/Desktop/work/Netbeans JEE 6
Projects/PRACTICE/JSF/app02/build/web/pics/param-value
/init-param
/filter

filter-mapping
filter-nameextensionsFilter/filter-name
url-pattern/faces/*/url-pattern
/filter-mapping

  context-param
param-namejavax.faces.FACELETS_LIBRARIES/param-name
param-value/WEB-INF/tomahawk.taglib.xml/param-value
/context-param
/web-app

and the tomahawk.taglib.xml is 

?xml version=1.0 encoding=UTF-8?

facelet-taglib
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-facelettaglibrary_2_0.xsd;
version=2.0

namespacehttp://myfaces.apache.org/tomahawk/namespace
tag
tag-nameinputFileUpload/tag-name
component
   
component-typeorg.apache.myfaces.custom.fileupload.HtmlInputFileUpload/component-type
   
renderer-typeorg.apache.myfaces.custom.fileupload.FileUpload/renderer-type
/component
/tag

/facelet-taglib

In the tomahawk.taglib.xml I've tried using other classes for component-type
and rendered-type, as such:

?xml version=1.0 encoding=UTF-8?

facelet-taglib...

namespacehttp://myfaces.apache.org/tomahawk/namespace
tag
tag-nameinputFileUpload/tag-name
component
   
component-typeorg.apache.myfaces.HtmlInputFileUpload/component-type
renderer-typeorg.apache.myfaces.FileUpload/renderer-type
/component
/tag

/facelet-taglib

but that does not work either.
This is the entire application; there's one managed bean with four
attributes which should receive values as the form is submitted.
As I've mentioned, this is JSF 2.0, J2EE version 1.6, perhaps there are some
compatibility issues



Jakob Korherr wrote:
 
 Hi,
 
 Am I getting this right: also your h: and your f: components are not
 displayed correctly?
 
 If so, either your configuration or the URL with which you access the site
 are wrong. You need to include /faces/ or *.jsf (or something similar,
 depending on your configuration) in your URL to get the XHTML page
 processed
 by the Faces Servlet.
 
 Please provide your web.xml file and the URL from your browser with which
 you try to access the site.
 
 Regards,
 Jakob
 
 2010/2/22 cristiJ cristi_ju...@yahoo.com
 

 Hi Martin,

 Thnak you for replying, I'm starting to get a little desperate with this
 problem. I'm pretty sure the config files are 

Re: AW: Stuck making JSF 2.0 work with MyFaces

2010-02-22 Thread Jakob Korherr
Hi,

Does your URL in your browser include /faces/index.xhtml?

Regards,
Jakob

2010/2/22 cristiJ cristi_ju...@yahoo.com


 Hi,

 Yes, you understood correctly, neither of h: or f: components are not
 processed.
 I have a very simple index.xhtml file :

 ?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:t=http://myfaces.apache.org/tomahawk;
body
h:form enctype=multipart/form-data id=myForm
firstName : h:inputText value=#{user.firstName} /br /
lastName : h:inputText value=#{user.lastName} /br /
 city : h:inputText value=#{user.city} /br /
price : h:inputText value=#{user.price} /br /
 pic : t:inputFileUpload id=file storage=file
 accept=image/* styleClass=myStyle value=#{user.file}/br /
h:commandButton  action=#{user.createUser} value=Create
 user/
/h:form
/body
 /html

 The web.xml file for it is:

 ?xml version=1.0 encoding=UTF-8?
 web-app version=3.0 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_3_0.xsd;
context-param
param-namejavax.faces.PROJECT_STAGE/param-name
param-valueDevelopment/param-value!-- Debugging information is
 printed --
/context-param
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern/faces/*/url-pattern
/servlet-mapping
session-config
session-timeout
30
/session-timeout
/session-config
welcome-file-list
welcome-filefaces/index.xhtml/welcome-file
/welcome-file-list


!-- Extensions Filter --
filter
filter-nameextensionsFilter/filter-name


 filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
init-param
param-nameuploadMaxFileSize/param-name
param-value100m/param-value
/init-param
init-param
param-nameuploadThresholdSize/param-name
param-value100k/param-value
/init-param
init-param
param-nameuploadRepositoryPath/param-name
param-valueC:/Documents and
 Settings/cristi/Desktop/work/Netbeans JEE 6
 Projects/PRACTICE/JSF/app02/build/web/pics/param-value
/init-param
/filter

filter-mapping
filter-nameextensionsFilter/filter-name
url-pattern/faces/*/url-pattern
/filter-mapping

  context-param
param-namejavax.faces.FACELETS_LIBRARIES/param-name
param-value/WEB-INF/tomahawk.taglib.xml/param-value
/context-param
 /web-app

 and the tomahawk.taglib.xml is

 ?xml version=1.0 encoding=UTF-8?

 facelet-taglib
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-facelettaglibrary_2_0.xsd;
version=2.0

namespacehttp://myfaces.apache.org/tomahawk/namespace
tag
tag-nameinputFileUpload/tag-name
component


 component-typeorg.apache.myfaces.custom.fileupload.HtmlInputFileUpload/component-type


 renderer-typeorg.apache.myfaces.custom.fileupload.FileUpload/renderer-type
/component
/tag

 /facelet-taglib

 In the tomahawk.taglib.xml I've tried using other classes for
 component-type
 and rendered-type, as such:

 ?xml version=1.0 encoding=UTF-8?

 facelet-taglib...

namespacehttp://myfaces.apache.org/tomahawk/namespace
tag
tag-nameinputFileUpload/tag-name
component

 component-typeorg.apache.myfaces.HtmlInputFileUpload/component-type
renderer-typeorg.apache.myfaces.FileUpload/renderer-type
/component
/tag

 /facelet-taglib

 but that does not work either.
 This is the entire application; there's one managed bean with four
 attributes which should receive values as the form is submitted.
 As I've mentioned, this is JSF 2.0, J2EE version 1.6, perhaps there are
 some
 compatibility issues



 Jakob Korherr wrote:
 
  Hi,
 
  Am I getting this right: also your h: and your f: components are not
  displayed correctly?
 
  If so, either your configuration or the URL with which you access the
 site
  are wrong. You need to include /faces/ or *.jsf (or something similar,
  depending on your configuration) in your URL to get the XHTML page
  processed
  by the Faces Servlet.
 
  Please provide your web.xml file and the URL from your browser with which
  you try to access the site.
 
  Regards,
  Jakob
 
  2010/2/22 cristiJ cristi_ju...@yahoo.com
 
 

Re: AW: Stuck making JSF 2.0 work with MyFaces

2010-02-22 Thread cristiJ

Hi,

yes, I just tried it. For both of theses URLs :
http://localhost:8080/app02/faces/index.xhtml
http://localhost:8080/app02

the file does not get translated to XHTML, it arrives in the browser with
the f and h customs.
This happens only when I add MyFaces. 
I tried adding my self a custom component, defined by this class : 

import javax.faces.component.FacesComponent;
import javax.faces.component.html.HtmlInputText;

@FacesComponent(value = HtmlInputFile)
public class HtmlInputFile extends HtmlInputText {

@Override
public String getRendererType() {
return javax.faces.File;
}

}

with this balusc.taglib.xml config file

?xml version=1.0 encoding=UTF-8?
facelet-taglib
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-facelettaglibrary_2_0.xsd;
version=2.0

namespacehttp://balusc.net/jsf/html/namespace
tag
tag-nameinputFile/tag-name
component
component-typeHtmlInputFile/component-type
/component
/tag
/facelet-taglib

and with the web.xml as such:

context-param
param-namejavax.faces.FACELETS_LIBRARIES/param-name
param-value/WEB-INF/balusc.taglib.xml/param-value
/context-param


The page is:

?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:hh=http://balusc.net/jsf/html;
body
h:form enctype=multipart/form-data id=myForm
firstName : h:inputText value=#{user.firstName} /br /
lastName : h:inputText value=#{user.lastName} /br /
city : h:inputText value=#{user.city} /br /
price : h:inputText value=#{user.price} /br /
pic : hh:inputFileUpload id=file value=#{user.file}/br /
h:commandButton  action=#{user.createUser} value=Create
user/
/h:form
/body
/html

and the xhtml is translated properly. I can't understand what is the
conflict for MyFaces!?


Jakob Korherr wrote:
 
 Hi,
 
 Does your URL in your browser include /faces/index.xhtml?
 
 Regards,
 Jakob
 
 2010/2/22 cristiJ cristi_ju...@yahoo.com
 

 Hi,

 Yes, you understood correctly, neither of h: or f: components are not
 processed.
 I have a very simple index.xhtml file :

 ?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:t=http://myfaces.apache.org/tomahawk;
body
h:form enctype=multipart/form-data id=myForm
firstName : h:inputText value=#{user.firstName} /br /
lastName : h:inputText value=#{user.lastName} /br /
 city : h:inputText value=#{user.city} /br /
price : h:inputText value=#{user.price} /br /
 pic : t:inputFileUpload id=file storage=file
 accept=image/* styleClass=myStyle value=#{user.file}/br /
h:commandButton  action=#{user.createUser} value=Create
 user/
/h:form
/body
 /html

 The web.xml file for it is:

 ?xml version=1.0 encoding=UTF-8?
 web-app version=3.0 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_3_0.xsd;
context-param
param-namejavax.faces.PROJECT_STAGE/param-name
param-valueDevelopment/param-value!-- Debugging information
 is
 printed --
/context-param
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern/faces/*/url-pattern
/servlet-mapping
session-config
session-timeout
30
/session-timeout
/session-config
welcome-file-list
welcome-filefaces/index.xhtml/welcome-file
/welcome-file-list


!-- Extensions Filter --
filter
filter-nameextensionsFilter/filter-name


 filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
init-param
param-nameuploadMaxFileSize/param-name
param-value100m/param-value
/init-param
init-param
param-nameuploadThresholdSize/param-name
param-value100k/param-value
/init-param
init-param
param-nameuploadRepositoryPath/param-name
param-valueC:/Documents and
 Settings/cristi/Desktop/work/Netbeans JEE 6
 Projects/PRACTICE/JSF/app02/build/web/pics/param-value
/init-param
/filter

filter-mapping
  

Re: AW: Stuck making JSF 2.0 work with MyFaces

2010-02-22 Thread Jakob Korherr
Maybe tomahawk is causing the problems, because there is currently no real
working branch of tomahawk for JSF 2.0. However there will be one soon.

Please remove tomahawk completely from your webapp and try again!

Regards,
Jakob

2010/2/22 cristiJ cristi_ju...@yahoo.com


 Hi,

 yes, I just tried it. For both of theses URLs :
 http://localhost:8080/app02/faces/index.xhtml
 http://localhost:8080/app02

 the file does not get translated to XHTML, it arrives in the browser with
 the f and h customs.
 This happens only when I add MyFaces.
 I tried adding my self a custom component, defined by this class :

 import javax.faces.component.FacesComponent;
 import javax.faces.component.html.HtmlInputText;

 @FacesComponent(value = HtmlInputFile)
 public class HtmlInputFile extends HtmlInputText {

@Override
public String getRendererType() {
return javax.faces.File;
}

 }

 with this balusc.taglib.xml config file

 ?xml version=1.0 encoding=UTF-8?
 facelet-taglib
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-facelettaglibrary_2_0.xsd;
version=2.0

 namespacehttp://balusc.net/jsf/html/namespace
tag
tag-nameinputFile/tag-name
component
component-typeHtmlInputFile/component-type
/component
/tag
 /facelet-taglib

 and with the web.xml as such:

 context-param
param-namejavax.faces.FACELETS_LIBRARIES/param-name
 param-value/WEB-INF/balusc.taglib.xml/param-value
 /context-param


 The page is:

 ?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:hh=http://balusc.net/jsf/html;
 body
h:form enctype=multipart/form-data id=myForm
firstName : h:inputText value=#{user.firstName} /br /
lastName : h:inputText value=#{user.lastName} /br /
city : h:inputText value=#{user.city} /br /
price : h:inputText value=#{user.price} /br /
 pic : hh:inputFileUpload id=file value=#{user.file}/br
 /
 h:commandButton  action=#{user.createUser} value=Create
 user/
/h:form
/body
 /html

 and the xhtml is translated properly. I can't understand what is the
 conflict for MyFaces!?


 Jakob Korherr wrote:
 
  Hi,
 
  Does your URL in your browser include /faces/index.xhtml?
 
  Regards,
  Jakob
 
  2010/2/22 cristiJ cristi_ju...@yahoo.com
 
 
  Hi,
 
  Yes, you understood correctly, neither of h: or f: components are not
  processed.
  I have a very simple index.xhtml file :
 
  ?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:t=http://myfaces.apache.org/tomahawk;
 body
 h:form enctype=multipart/form-data id=myForm
 firstName : h:inputText value=#{user.firstName} /br /
 lastName : h:inputText value=#{user.lastName} /br /
  city : h:inputText value=#{user.city} /br /
 price : h:inputText value=#{user.price} /br /
  pic : t:inputFileUpload id=file storage=file
  accept=image/* styleClass=myStyle value=#{user.file}/br /
 h:commandButton  action=#{user.createUser} value=Create
  user/
 /h:form
 /body
  /html
 
  The web.xml file for it is:
 
  ?xml version=1.0 encoding=UTF-8?
  web-app version=3.0 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_3_0.xsd;
 context-param
 param-namejavax.faces.PROJECT_STAGE/param-name
 param-valueDevelopment/param-value!-- Debugging information
  is
  printed --
 /context-param
 servlet
 servlet-nameFaces Servlet/servlet-name
 servlet-classjavax.faces.webapp.FacesServlet/servlet-class
 load-on-startup1/load-on-startup
 /servlet
 servlet-mapping
 servlet-nameFaces Servlet/servlet-name
 url-pattern/faces/*/url-pattern
 /servlet-mapping
 session-config
 session-timeout
 30
 /session-timeout
 /session-config
 welcome-file-list
 welcome-filefaces/index.xhtml/welcome-file
 /welcome-file-list
 
 
 !-- Extensions Filter --
 filter
 filter-nameextensionsFilter/filter-name
 
 
 
 filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
 init-param
 param-nameuploadMaxFileSize/param-name
 param-value100m/param-value
 /init-param
 init-param
 

Re: AW: Stuck making JSF 2.0 work with MyFaces

2010-02-22 Thread cristiJ

I just noticed on http://myfaces.apache.org/tomahawk/index.html that there is
support only for JSF 1.1 and JSF 1.2, I wished I would have noticed sooner.

Any ways, great work on MyFaces, and please add support for JSF 2.0 as soon
as possible.


Jakob Korherr wrote:
 
 Maybe tomahawk is causing the problems, because there is currently no real
 working branch of tomahawk for JSF 2.0. However there will be one soon.
 
 Please remove tomahawk completely from your webapp and try again!
 
 Regards,
 Jakob
 
 2010/2/22 cristiJ cristi_ju...@yahoo.com
 

 Hi,

 yes, I just tried it. For both of theses URLs :
 http://localhost:8080/app02/faces/index.xhtml
 http://localhost:8080/app02

 the file does not get translated to XHTML, it arrives in the browser with
 the f and h customs.
 This happens only when I add MyFaces.
 I tried adding my self a custom component, defined by this class :

 import javax.faces.component.FacesComponent;
 import javax.faces.component.html.HtmlInputText;

 @FacesComponent(value = HtmlInputFile)
 public class HtmlInputFile extends HtmlInputText {

@Override
public String getRendererType() {
return javax.faces.File;
}

 }

 with this balusc.taglib.xml config file

 ?xml version=1.0 encoding=UTF-8?
 facelet-taglib
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-facelettaglibrary_2_0.xsd;
version=2.0

 namespacehttp://balusc.net/jsf/html/namespace
tag
tag-nameinputFile/tag-name
component
component-typeHtmlInputFile/component-type
/component
/tag
 /facelet-taglib

 and with the web.xml as such:

 context-param
param-namejavax.faces.FACELETS_LIBRARIES/param-name
 param-value/WEB-INF/balusc.taglib.xml/param-value
 /context-param


 The page is:

 ?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:hh=http://balusc.net/jsf/html;
 body
h:form enctype=multipart/form-data id=myForm
firstName : h:inputText value=#{user.firstName} /br /
lastName : h:inputText value=#{user.lastName} /br /
city : h:inputText value=#{user.city} /br /
price : h:inputText value=#{user.price} /br /
 pic : hh:inputFileUpload id=file value=#{user.file}/br
 /
 h:commandButton  action=#{user.createUser} value=Create
 user/
/h:form
/body
 /html

 and the xhtml is translated properly. I can't understand what is the
 conflict for MyFaces!?


 Jakob Korherr wrote:
 
  Hi,
 
  Does your URL in your browser include /faces/index.xhtml?
 
  Regards,
  Jakob
 
  2010/2/22 cristiJ cristi_ju...@yahoo.com
 
 
  Hi,
 
  Yes, you understood correctly, neither of h: or f: components are not
  processed.
  I have a very simple index.xhtml file :
 
  ?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:t=http://myfaces.apache.org/tomahawk;
 body
 h:form enctype=multipart/form-data id=myForm
 firstName : h:inputText value=#{user.firstName} /br /
 lastName : h:inputText value=#{user.lastName} /br /
  city : h:inputText value=#{user.city} /br /
 price : h:inputText value=#{user.price} /br /
  pic : t:inputFileUpload id=file storage=file
  accept=image/* styleClass=myStyle value=#{user.file}/br /
 h:commandButton  action=#{user.createUser} value=Create
  user/
 /h:form
 /body
  /html
 
  The web.xml file for it is:
 
  ?xml version=1.0 encoding=UTF-8?
  web-app version=3.0 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_3_0.xsd;
 context-param
 param-namejavax.faces.PROJECT_STAGE/param-name
 param-valueDevelopment/param-value!-- Debugging
 information
  is
  printed --
 /context-param
 servlet
 servlet-nameFaces Servlet/servlet-name
 servlet-classjavax.faces.webapp.FacesServlet/servlet-class
 load-on-startup1/load-on-startup
 /servlet
 servlet-mapping
 servlet-nameFaces Servlet/servlet-name
 url-pattern/faces/*/url-pattern
 /servlet-mapping
 session-config
 session-timeout
 30
 /session-timeout
 /session-config
 welcome-file-list
 welcome-filefaces/index.xhtml/welcome-file
 /welcome-file-list
 
 
 !-- Extensions Filter --
 filter
 

Re: AW: Stuck making JSF 2.0 work with MyFaces

2010-02-22 Thread Richard Yee
Are you trying to use JSF 2.0 features or what? Currently, Myfaces and
Tomahawk 1.x versions c

On Mon, Feb 22, 2010 at 10:26 AM, cristiJ cristi_ju...@yahoo.com wrote:


 I just noticed on http://myfaces.apache.org/tomahawk/index.html that there
 is
 support only for JSF 1.1 and JSF 1.2, I wished I would have noticed sooner.

 Any ways, great work on MyFaces, and please add support for JSF 2.0 as soon
 as possible.


 Jakob Korherr wrote:
 
  Maybe tomahawk is causing the problems, because there is currently no
 real
  working branch of tomahawk for JSF 2.0. However there will be one soon.
 
  Please remove tomahawk completely from your webapp and try again!
 
  Regards,
  Jakob
 
  2010/2/22 cristiJ cristi_ju...@yahoo.com
 
 
  Hi,
 
  yes, I just tried it. For both of theses URLs :
  http://localhost:8080/app02/faces/index.xhtml
  http://localhost:8080/app02
 
  the file does not get translated to XHTML, it arrives in the browser
 with
  the f and h customs.
  This happens only when I add MyFaces.
  I tried adding my self a custom component, defined by this class :
 
  import javax.faces.component.FacesComponent;
  import javax.faces.component.html.HtmlInputText;
 
  @FacesComponent(value = HtmlInputFile)
  public class HtmlInputFile extends HtmlInputText {
 
 @Override
 public String getRendererType() {
 return javax.faces.File;
 }
 
  }
 
  with this balusc.taglib.xml config file
 
  ?xml version=1.0 encoding=UTF-8?
  facelet-taglib
 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-facelettaglibrary_2_0.xsd;
 version=2.0
 
  namespacehttp://balusc.net/jsf/html/namespace
 tag
 tag-nameinputFile/tag-name
 component
 component-typeHtmlInputFile/component-type
 /component
 /tag
  /facelet-taglib
 
  and with the web.xml as such:
 
  context-param
 param-namejavax.faces.FACELETS_LIBRARIES/param-name
  param-value/WEB-INF/balusc.taglib.xml/param-value
  /context-param
 
 
  The page is:
 
  ?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:hh=http://balusc.net/jsf/html;
  body
 h:form enctype=multipart/form-data id=myForm
 firstName : h:inputText value=#{user.firstName} /br /
 lastName : h:inputText value=#{user.lastName} /br /
 city : h:inputText value=#{user.city} /br /
 price : h:inputText value=#{user.price} /br /
  pic : hh:inputFileUpload id=file
 value=#{user.file}/br
  /
  h:commandButton  action=#{user.createUser} value=Create
  user/
 /h:form
 /body
  /html
 
  and the xhtml is translated properly. I can't understand what is the
  conflict for MyFaces!?
 
 
  Jakob Korherr wrote:
  
   Hi,
  
   Does your URL in your browser include /faces/index.xhtml?
  
   Regards,
   Jakob
  
   2010/2/22 cristiJ cristi_ju...@yahoo.com
  
  
   Hi,
  
   Yes, you understood correctly, neither of h: or f: components are not
   processed.
   I have a very simple index.xhtml file :
  
   ?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:t=http://myfaces.apache.org/tomahawk;
  body
  h:form enctype=multipart/form-data id=myForm
  firstName : h:inputText value=#{user.firstName} /br
 /
  lastName : h:inputText value=#{user.lastName} /br /
   city : h:inputText value=#{user.city} /br /
  price : h:inputText value=#{user.price} /br /
   pic : t:inputFileUpload id=file storage=file
   accept=image/* styleClass=myStyle value=#{user.file}/br /
  h:commandButton  action=#{user.createUser}
 value=Create
   user/
  /h:form
  /body
   /html
  
   The web.xml file for it is:
  
   ?xml version=1.0 encoding=UTF-8?
   web-app version=3.0 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_3_0.xsd;
  context-param
  param-namejavax.faces.PROJECT_STAGE/param-name
  param-valueDevelopment/param-value!-- Debugging
  information
   is
   printed --
  /context-param
  servlet
  servlet-nameFaces Servlet/servlet-name
  servlet-classjavax.faces.webapp.FacesServlet/servlet-class
  load-on-startup1/load-on-startup
  /servlet
  servlet-mapping
  servlet-nameFaces 

Re: AW: Stuck making JSF 2.0 work with MyFaces

2010-02-22 Thread Richard Yee
Accidentally pressed the send button too soon.
What JSF 2.0 core library are you using? I don't think the problem you are
having with tomahawk not rendering is caused by Tomahawk not being based on
JSF 2.0.

-R

On Mon, Feb 22, 2010 at 10:55 AM, Richard Yee richard.k@gmail.comwrote:

 Are you trying to use JSF 2.0 features or what? Currently, Myfaces and
 Tomahawk 1.x versions c


 On Mon, Feb 22, 2010 at 10:26 AM, cristiJ cristi_ju...@yahoo.com wrote:


 I just noticed on http://myfaces.apache.org/tomahawk/index.html that
 there is
 support only for JSF 1.1 and JSF 1.2, I wished I would have noticed
 sooner.

 Any ways, great work on MyFaces, and please add support for JSF 2.0 as
 soon
 as possible.


 Jakob Korherr wrote:
 
  Maybe tomahawk is causing the problems, because there is currently no
 real
  working branch of tomahawk for JSF 2.0. However there will be one soon.
 
  Please remove tomahawk completely from your webapp and try again!
 
  Regards,
  Jakob
 
  2010/2/22 cristiJ cristi_ju...@yahoo.com
 
 
  Hi,
 
  yes, I just tried it. For both of theses URLs :
  http://localhost:8080/app02/faces/index.xhtml
  http://localhost:8080/app02
 
  the file does not get translated to XHTML, it arrives in the browser
 with
  the f and h customs.
  This happens only when I add MyFaces.
  I tried adding my self a custom component, defined by this class :
 
  import javax.faces.component.FacesComponent;
  import javax.faces.component.html.HtmlInputText;
 
  @FacesComponent(value = HtmlInputFile)
  public class HtmlInputFile extends HtmlInputText {
 
 @Override
 public String getRendererType() {
 return javax.faces.File;
 }
 
  }
 
  with this balusc.taglib.xml config file
 
  ?xml version=1.0 encoding=UTF-8?
  facelet-taglib
 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-facelettaglibrary_2_0.xsd
 
 version=2.0
 
  namespacehttp://balusc.net/jsf/html/namespace
 tag
 tag-nameinputFile/tag-name
 component
 component-typeHtmlInputFile/component-type
 /component
 /tag
  /facelet-taglib
 
  and with the web.xml as such:
 
  context-param
 param-namejavax.faces.FACELETS_LIBRARIES/param-name
  param-value/WEB-INF/balusc.taglib.xml/param-value
  /context-param
 
 
  The page is:
 
  ?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:hh=http://balusc.net/jsf/html;
  body
 h:form enctype=multipart/form-data id=myForm
 firstName : h:inputText value=#{user.firstName} /br /
 lastName : h:inputText value=#{user.lastName} /br /
 city : h:inputText value=#{user.city} /br /
 price : h:inputText value=#{user.price} /br /
  pic : hh:inputFileUpload id=file
 value=#{user.file}/br
  /
  h:commandButton  action=#{user.createUser} value=Create
  user/
 /h:form
 /body
  /html
 
  and the xhtml is translated properly. I can't understand what is the
  conflict for MyFaces!?
 
 
  Jakob Korherr wrote:
  
   Hi,
  
   Does your URL in your browser include /faces/index.xhtml?
  
   Regards,
   Jakob
  
   2010/2/22 cristiJ cristi_ju...@yahoo.com
  
  
   Hi,
  
   Yes, you understood correctly, neither of h: or f: components are
 not
   processed.
   I have a very simple index.xhtml file :
  
   ?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:t=http://myfaces.apache.org/tomahawk;
  body
  h:form enctype=multipart/form-data id=myForm
  firstName : h:inputText value=#{user.firstName} /br
 /
  lastName : h:inputText value=#{user.lastName} /br /
   city : h:inputText value=#{user.city} /br /
  price : h:inputText value=#{user.price} /br /
   pic : t:inputFileUpload id=file storage=file
   accept=image/* styleClass=myStyle value=#{user.file}/br /
  h:commandButton  action=#{user.createUser}
 value=Create
   user/
  /h:form
  /body
   /html
  
   The web.xml file for it is:
  
   ?xml version=1.0 encoding=UTF-8?
   web-app version=3.0 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_3_0.xsd;
  context-param
  param-namejavax.faces.PROJECT_STAGE/param-name
  param-valueDevelopment/param-value!-- Debugging
  information
   

Re: AW: Stuck making JSF 2.0 work with MyFaces

2010-02-22 Thread Mark Struberg
you could try PrimeFaces-2.0.1
I'm currently using it with MyFaces-2.0.0-beta-2, EL-2.2 
OpenWebBeans-1.0.0-SNAPSHOT and OpenJPA-2.0.0-beta without much problems.

LieGrue,
strub

--- Richard Yee richard.k@gmail.com schrieb am Mo, 22.2.2010:

 Von: Richard Yee richard.k@gmail.com
 Betreff: Re: AW: Stuck making JSF 2.0 work with MyFaces
 An: MyFaces Discussion users@myfaces.apache.org
 Datum: Montag, 22. Februar, 2010 20:03 Uhr
 Accidentally pressed the send button
 too soon.
 What JSF 2.0 core library are you using? I don't think the
 problem you are
 having with tomahawk not rendering is caused by Tomahawk
 not being based on
 JSF 2.0.
 
 -R
 
 On Mon, Feb 22, 2010 at 10:55 AM, Richard Yee richard.k@gmail.comwrote:
 
  Are you trying to use JSF 2.0 features or what?
 Currently, Myfaces and
  Tomahawk 1.x versions c
 
 
  On Mon, Feb 22, 2010 at 10:26 AM, cristiJ cristi_ju...@yahoo.com
 wrote:
 
 
  I just noticed on http://myfaces.apache.org/tomahawk/index.html that
  there is
  support only for JSF 1.1 and JSF 1.2, I wished I
 would have noticed
  sooner.
 
  Any ways, great work on MyFaces, and please add
 support for JSF 2.0 as
  soon
  as possible.
 
 
  Jakob Korherr wrote:
  
   Maybe tomahawk is causing the problems,
 because there is currently no
  real
   working branch of tomahawk for JSF 2.0.
 However there will be one soon.
  
   Please remove tomahawk completely from your
 webapp and try again!
  
   Regards,
   Jakob
  
   2010/2/22 cristiJ cristi_ju...@yahoo.com
  
  
   Hi,
  
   yes, I just tried it. For both of theses
 URLs :
   http://localhost:8080/app02/faces/index.xhtml
   http://localhost:8080/app02
  
   the file does not get translated to
 XHTML, it arrives in the browser
  with
   the f and h customs.
   This happens only when I add MyFaces.
   I tried adding my self a custom
 component, defined by this class :
  
   import
 javax.faces.component.FacesComponent;
   import
 javax.faces.component.html.HtmlInputText;
  
   @FacesComponent(value = HtmlInputFile)
   public class HtmlInputFile extends
 HtmlInputText {
  
      @Override
      public String
 getRendererType() {
          return
 javax.faces.File;
      }
  
   }
  
   with this balusc.taglib.xml config file
  
   ?xml version=1.0
 encoding=UTF-8?
   facelet-taglib
      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-facelettaglibrary_2_0.xsd
  
      version=2.0
  
   
    namespacehttp://balusc.net/jsf/html/namespace
      tag
         
 tag-nameinputFile/tag-name
         
 component
             
 component-typeHtmlInputFile/component-type
         
 /component
      /tag
   /facelet-taglib
  
   and with the web.xml as such:
  
   context-param
         
 param-namejavax.faces.FACELETS_LIBRARIES/param-name
       
    param-value/WEB-INF/balusc.taglib.xml/param-value
   /context-param
  
  
   The page is:
  
   ?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:hh=http://balusc.net/jsf/html;
       body
          h:form
 enctype=multipart/form-data id=myForm
             
 firstName : h:inputText value=#{user.firstName}
 /br /
             
 lastName : h:inputText value=#{user.lastName}
 /br /
             
 city : h:inputText value=#{user.city} /br
 /
             
 price : h:inputText value=#{user.price} /br
 /
           
    pic : hh:inputFileUpload id=file
  value=#{user.file}/br
   /
           
    h:commandButton 
 action=#{user.createUser} value=Create
   user/
         
 /h:form
      /body
   /html
  
   and the xhtml is translated properly. I
 can't understand what is the
   conflict for MyFaces!?
  
  
   Jakob Korherr wrote:
   
Hi,
   
Does your URL in your browser
 include /faces/index.xhtml?
   
Regards,
Jakob
   
2010/2/22 cristiJ cristi_ju...@yahoo.com
   
   
Hi,
   
Yes, you understood correctly,
 neither of h: or f: components are
  not
processed.
I have a very simple index.xhtml
 file :
   
?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:t=http://myfaces.apache.org/tomahawk;
       body
          
 h:form enctype=multipart/form-data id=myForm
          
     firstName : h:inputText
 value=#{user.firstName} /br
  /
          
     lastName : h:inputText
 value=#{user.lastName} /br /
          
      city : h:inputText
 value=#{user.city} /br /
          
     price : h:inputText value=#{user.price}
 /br /
          
      pic : t:inputFileUpload
 id

Re: AW: Stuck making JSF 2.0 work with MyFaces

2010-02-22 Thread cristiJ

i checked out icefaces and primefaces. I think I'm going to wait untill
Tomahawk will be released for JSF 2.0.
Apache has done tremendous work so far.
I hope you willl have time to upgrade Tomahawk soon



Jakob Korherr wrote:
 
 Maybe tomahawk is causing the problems, because there is currently no real
 working branch of tomahawk for JSF 2.0. However there will be one soon.
 
 Please remove tomahawk completely from your webapp and try again!
 
 Regards,
 Jakob
 
 2010/2/22 cristiJ cristi_ju...@yahoo.com
 

 Hi,

 yes, I just tried it. For both of theses URLs :
 http://localhost:8080/app02/faces/index.xhtml
 http://localhost:8080/app02

 the file does not get translated to XHTML, it arrives in the browser with
 the f and h customs.
 This happens only when I add MyFaces.
 I tried adding my self a custom component, defined by this class :

 import javax.faces.component.FacesComponent;
 import javax.faces.component.html.HtmlInputText;

 @FacesComponent(value = HtmlInputFile)
 public class HtmlInputFile extends HtmlInputText {

@Override
public String getRendererType() {
return javax.faces.File;
}

 }

 with this balusc.taglib.xml config file

 ?xml version=1.0 encoding=UTF-8?
 facelet-taglib
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-facelettaglibrary_2_0.xsd;
version=2.0

 namespacehttp://balusc.net/jsf/html/namespace
tag
tag-nameinputFile/tag-name
component
component-typeHtmlInputFile/component-type
/component
/tag
 /facelet-taglib

 and with the web.xml as such:

 context-param
param-namejavax.faces.FACELETS_LIBRARIES/param-name
 param-value/WEB-INF/balusc.taglib.xml/param-value
 /context-param


 The page is:

 ?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:hh=http://balusc.net/jsf/html;
 body
h:form enctype=multipart/form-data id=myForm
firstName : h:inputText value=#{user.firstName} /br /
lastName : h:inputText value=#{user.lastName} /br /
city : h:inputText value=#{user.city} /br /
price : h:inputText value=#{user.price} /br /
 pic : hh:inputFileUpload id=file value=#{user.file}/br
 /
 h:commandButton  action=#{user.createUser} value=Create
 user/
/h:form
/body
 /html

 and the xhtml is translated properly. I can't understand what is the
 conflict for MyFaces!?


 Jakob Korherr wrote:
 
  Hi,
 
  Does your URL in your browser include /faces/index.xhtml?
 
  Regards,
  Jakob
 
  2010/2/22 cristiJ cristi_ju...@yahoo.com
 
 
  Hi,
 
  Yes, you understood correctly, neither of h: or f: components are not
  processed.
  I have a very simple index.xhtml file :
 
  ?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:t=http://myfaces.apache.org/tomahawk;
 body
 h:form enctype=multipart/form-data id=myForm
 firstName : h:inputText value=#{user.firstName} /br /
 lastName : h:inputText value=#{user.lastName} /br /
  city : h:inputText value=#{user.city} /br /
 price : h:inputText value=#{user.price} /br /
  pic : t:inputFileUpload id=file storage=file
  accept=image/* styleClass=myStyle value=#{user.file}/br /
 h:commandButton  action=#{user.createUser} value=Create
  user/
 /h:form
 /body
  /html
 
  The web.xml file for it is:
 
  ?xml version=1.0 encoding=UTF-8?
  web-app version=3.0 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_3_0.xsd;
 context-param
 param-namejavax.faces.PROJECT_STAGE/param-name
 param-valueDevelopment/param-value!-- Debugging
 information
  is
  printed --
 /context-param
 servlet
 servlet-nameFaces Servlet/servlet-name
 servlet-classjavax.faces.webapp.FacesServlet/servlet-class
 load-on-startup1/load-on-startup
 /servlet
 servlet-mapping
 servlet-nameFaces Servlet/servlet-name
 url-pattern/faces/*/url-pattern
 /servlet-mapping
 session-config
 session-timeout
 30
 /session-timeout
 /session-config
 welcome-file-list
 welcome-filefaces/index.xhtml/welcome-file
 /welcome-file-list
 
 
 !-- Extensions Filter --
 filter