primefaces p:filejUpload not work with myfaces

2013-04-18 Thread maurojava
I have try primefaces p:uploadFile with myfaces .
When i deploy tge applic on to mcat not deploy .
But if u use mojarra it work.
How i can to work p upload primefaces wity myfaces 2 that it is bundled into
tomee ? 

Mauro




--
View this message in context: 
http://myfaces.10567.n7.nabble.com/primefaces-p-filejUpload-not-work-with-myfaces-tp114620.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


ist außer Haus.

2013-04-18 Thread Klaus SCHUSTER


Ich werde ab  17.04.2013 nicht im Büro sein. Ich kehre zurück am
19.04.2013.
In dringenden Fällen kontaktieren Sie bitte für den Bereich Elba Webcare
Fr. Daniela Lasinger (eMail.: lasin...@racon-linz.at - DW: 1478).
Für Auswertungen Elbanet: Hr. Markus Nopp (eMail.: n...@racon-linz.at)
Sowie für Anfragen im Bereich Bankrechner Herrn Hollin
(hol...@racon-linz.at)
Ich werde Ihre Nachricht nach meiner Rückkehr beantworten.

Die Rückmeldung bezieht sich auf ein Mail mit folgendem Thema:
primefaces p:filejUpload not work with myfaces


Gesendet (c) GRZ/RACON Linz 2010 Agent 'Abwesenheit'


Der Austausch von Nachrichten mit o.a. Absender via e-mail
dient ausschließlich Informationszwecken. Rechtsgeschäftliche
Erklärungen dürfen über dieses Medium nicht ausgetauscht
werden.

Correspondence with a.m. sender via e-mail is only for
information purposes. This medium is not to be used for the
exchange of legally-binding communications.




Re: primefaces p:filejUpload not work with myfaces

2013-04-18 Thread Howard W. Smith, Jr.
mauro,

The MyFaces user list is not the appropriate list to ask 'user' questions
about PrimeFaces. If you are aspiring to be a PrimeFaces 'user', then,

1. Go to PrimeFaces Showcase[1] and view 'all' of their UI components; they
have sample code how to use p:fileUpload and all the PrimeFaces JSF
components

2. Go to PrimeFaces Forum[2], search for keywords, to find discussion about
how to 'use' PrimeFaces

[1] http://www.primefaces.org/showcase/ui/home.jsf
[2] http://forum.primefaces.org/



On Thu, Apr 18, 2013 at 8:28 AM, maurojava mauro2java2...@gmail.com wrote:

 I have try primefaces p:uploadFile with myfaces .
 When i deploy tge applic on to mcat not deploy .
 But if u use mojarra it work.
 How i can to work p upload primefaces wity myfaces 2 that it is bundled
 into
 tomee ?

 Mauro




 --
 View this message in context:
 http://myfaces.10567.n7.nabble.com/primefaces-p-filejUpload-not-work-with-myfaces-tp114620.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: primefaces p:filejUpload not work with myfaces

2013-04-18 Thread Howard W. Smith, Jr.
I am a happy MyFaces 'and' PrimeFaces user, and 'simple FileUpload' works
well. Have I tried 'advanced' FileUpload? No. IMHO, it is not
required/necessary.

See/click URL[1] below and read what I did to get (Simple) FileUpload
working in my app. I got that working, when I was a Mojarra 'user', but
when I migrated from Mojarra v2.1.7 to MyFaces v2.1.8, I did 'not' have to
do anything special to get FileUpload to work with MyFaces. So, as I stated
earlier, it is not appropriate to ask MyFaces user list how to 'use'
PrimeFaces FileUpload,

If any other questions about FileUpload, then ask your questions in a 'new'
topics in the PrimeFaces forum[2].


[1] http://forum.primefaces.org/viewtopic.php?f=3t=23968p=79059#p79059
[2] http://forum.primefaces.org/



On Thu, Apr 18, 2013 at 8:43 AM, Howard W. Smith, Jr. 
smithh032...@gmail.com wrote:

 mauro,

 The MyFaces user list is not the appropriate list to ask 'user' questions
 about PrimeFaces. If you are aspiring to be a PrimeFaces 'user', then,

 1. Go to PrimeFaces Showcase[1] and view 'all' of their UI components;
 they have sample code how to use p:fileUpload and all the PrimeFaces JSF
 components

 2. Go to PrimeFaces Forum[2], search for keywords, to find discussion
 about how to 'use' PrimeFaces

 [1] http://www.primefaces.org/showcase/ui/home.jsf
 [2] http://forum.primefaces.org/



 On Thu, Apr 18, 2013 at 8:28 AM, maurojava mauro2java2...@gmail.comwrote:

 I have try primefaces p:uploadFile with myfaces .
 When i deploy tge applic on to mcat not deploy .
 But if u use mojarra it work.
 How i can to work p upload primefaces wity myfaces 2 that it is bundled
 into
 tomee ?

 Mauro




 --
 View this message in context:
 http://myfaces.10567.n7.nabble.com/primefaces-p-filejUpload-not-work-with-myfaces-tp114620.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.





Re: primefaces p:filejUpload not work with myfaces

2013-04-18 Thread maurojava
tank you for response.
my question is not how use the component p:fileUpload
my problem it is that i have to configure same thing i tihink  into web.xml
or faces-config.xml 
for not get the deployment error when i deploy the application on tomee that
came with myfaces. 

the error that i get it is :
Caused by: java.lang.InstantiationException:
org.primefaces.context.PrimePartialViewContextFactory

-

i have found the following web site :
http://www.borislam.com/2013/02/sample-apps-spring-data-mongodb-and-jsf_3493.html

int othe tutorial into web.xml i read many context-param .

For get Primefaces with myfaces i have to set all the parameter
I have noted that for the faces servlet it use :

org.apache.myfaces.webapp.MyFacesServlet

 servlet
servlet-nameFaces Servlet/servlet-name

   
servlet-classorg.apache.myfaces.webapp.MyFacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet


what you think?  it is for myfaces optimezed ?

mauro



--
View this message in context: 
http://myfaces.10567.n7.nabble.com/primefaces-p-filejUpload-not-work-with-myfaces-tp114620p114626.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: primefaces p:filejUpload not work with myfaces

2013-04-18 Thread maurojava
i have following the tutorial that i have mentioned .
into the faces-config i have added:

?xml version='1.0' encoding='UTF-8'?



faces-config version=2.1
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-facesconfig_2_1.xsd;
 factory

partial-view-context-factoryorg.primefaces.context.PrimePartialViewContextFactory/partial-view-context-factory
   /factory 

/faces-config


for resolve the Caused by: java.lang.InstantiationException:
org.primefaces.context.PrimePartialViewContextFactory

but i not have resolved.
I deploy into tomee and i get error fro mnetbeans that the application not
can start.





--
View this message in context: 
http://myfaces.10567.n7.nabble.com/primefaces-p-filejUpload-not-work-with-myfaces-tp114620p114627.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: primefaces p:filejUpload not work with myfaces

2013-04-18 Thread Howard W. Smith, Jr.
See my responses, inline, below, please.

On Thu, Apr 18, 2013 at 12:41 PM, maurojava mauro2java2...@gmail.comwrote:

 tank you for response.
 my question is not how use the component p:fileUpload
 my problem it is that i have to configure same thing i tihink  into web.xml
 or faces-config.xml
 for not get the deployment error when i deploy the application on tomee
 that
 came with myfaces.

 the error that i get it is :
 Caused by: java.lang.InstantiationException:
 org.primefaces.context.PrimePartialViewContextFactory


Interesting. that doesn't look good. :)


 -

 i have found the following web site :

 http://www.borislam.com/2013/02/sample-apps-spring-data-mongodb-and-jsf_3493.html


Spring? i'm not a 'spring' user, nor do I have experience with 'spring'.



 int othe tutorial into web.xml i read many context-param .

 For get Primefaces with myfaces i have to set all the parameter
 I have noted that for the faces servlet it use :

 org.apache.myfaces.webapp.MyFacesServlet

  servlet
 servlet-nameFaces Servlet/servlet-name


 servlet-classorg.apache.myfaces.webapp.MyFacesServlet/servlet-class
 load-on-startup1/load-on-startup
 /servlet


 what you think?  it is for myfaces optimezed ?


I don't have those in web.xml. In my previous response, I shared a URL to
PrimeFaces forum topic, where I shared my web.xml changes.

I have the following in web.xml (in the following order) :

filter-mapping
filter-namePrimeFaces FileUpload Filter/filter-name
servlet-nameFaces Servlet/servlet-name
/filter-mapping

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*.jsf/url-pattern
/servlet-mapping


Re: primefaces p:filejUpload not work with myfaces

2013-04-18 Thread Howard W. Smith, Jr.
faces-config.xml in my project is as follows (see comments at bottom of
this email):


?xml version='1.0' encoding='UTF-8'?


faces-config version=2.1
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-facesconfig_2_1.xsd;

factory

exception-handler-factoryorg.omnifaces.exceptionhandler.FullAjaxExceptionHandlerFactory/exception-handler-factory
/factory
application
resource-bundle
base-name/resources/Bundle/base-name
varbundle/var
/resource-bundle
/application
/faces-config


1. I'm using OmniFaces exception handler

2. my resources bundle, which was automatically added/generated by NetBeans
7.0 (when I first started developing web app)



On Thu, Apr 18, 2013 at 12:46 PM, maurojava mauro2java2...@gmail.comwrote:

 i have following the tutorial that i have mentioned .
 into the faces-config i have added:

 ?xml version='1.0' encoding='UTF-8'?



 faces-config version=2.1
 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-facesconfig_2_1.xsd;
  factory


 partial-view-context-factoryorg.primefaces.context.PrimePartialViewContextFactory/partial-view-context-factory
/factory

 /faces-config


 for resolve the Caused by: java.lang.InstantiationException:
 org.primefaces.context.PrimePartialViewContextFactory

 but i not have resolved.
 I deploy into tomee and i get error fro mnetbeans that the application not
 can start.





 --
 View this message in context:
 http://myfaces.10567.n7.nabble.com/primefaces-p-filejUpload-not-work-with-myfaces-tp114620p114627.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: primefaces p:filejUpload not work with myfaces

2013-04-18 Thread maurojava
but i not use OmniFaces




--
View this message in context: 
http://myfaces.10567.n7.nabble.com/primefaces-p-filejUpload-not-work-with-myfaces-tp114620p114631.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: primefaces p:filejUpload not work with myfaces

2013-04-18 Thread Howard W. Smith, Jr.
and i never had the following added to my faces-config.xml


 factory

partial-view-context-factoryorg.primefaces.context.
PrimePartialViewContextFactory/partial-view-context-factory
   /factory

what's your response to the other email?



On Thu, Apr 18, 2013 at 1:46 PM, maurojava mauro2java2...@gmail.com wrote:

 but i not use OmniFaces




 --
 View this message in context:
 http://myfaces.10567.n7.nabble.com/primefaces-p-filejUpload-not-work-with-myfaces-tp114620p114631.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.