Re: fileUpload native and with primefaces5 and with tomer
But into myfaces2.2.3 i have also to configure Faces servlet with Multipart into web.xml or the class faces servlet it is annotated out-OF-the-box with @Multipart and so iT not plus necessaire ? Il 19/giu/2014 17:26 Leonardo Uribe [via MyFaces] ml-node+s10567n118249...@n7.nabble.com ha scritto: Hi It was fixed in 2.2.2, please use 2.2.3 instead. See: https://issues.apache.org/jira/browse/MYFACES-3865 regards, Leonardo 2014-06-17 7:51 GMT-05:00 maurojava [hidden email] http://user/SendEmail.jtp?type=nodenode=118249i=0: I have tried to use primefaces5 fileUpload with configuratoins of native use of Part (no with commons ) into myfaces 2.2 . But not success. You know if the FacesServlet is annotated with @Multipart or i have configure with multipart into web.xml ? Please help me. I would als use myfaces2.2 into tomee 1.6 with substitution jars of myfaces api and myfaces ikplbtnto tomee/lib. Also into that case i have to confgure into web.xml the faces servlet with multpart config for use native Part with fileUplad of myfaces and for use fileUpload of primefaces5 with myfaces 2.2 and tomee ? -- View this message in context: http://myfaces.10567.n7.nabble.com/fileUpload-native-and-with-primefaces5-and-with-tomer-tp118244.html Sent from the MyFaces - Users mailing list archive at Nabble.com. -- If you reply to this email, your message will be added to the discussion below: http://myfaces.10567.n7.nabble.com/fileUpload-native-and-with-primefaces5-and-with-tomer-tp118244p118249.html To unsubscribe from fileUpload native and with primefaces5 and with tomer, click here http://myfaces.10567.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=118244code=bWF1cm8yamF2YTIwMTFAZ21haWwuY29tfDExODI0NHwtMTExNzE4NzYyNQ== . NAML http://myfaces.10567.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://myfaces.10567.n7.nabble.com/fileUpload-native-and-with-primefaces5-and-with-tomer-tp118244p118253.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
fileUpload native and with primefaces5 and with tomer
I have tried to use primefaces5 fileUpload with configuratoins of native use of Part (no with commons ) into myfaces 2.2 . But not success. You know if the FacesServlet is annotated with @Multipart or i have configure with multipart into web.xml ? Please help me. I would als use myfaces2.2 into tomee 1.6 with substitution jars of myfaces api and myfaces ikplbtnto tomee/lib. Also into that case i have to confgure into web.xml the faces servlet with multpart config for use native Part with fileUplad of myfaces and for use fileUpload of primefaces5 with myfaces 2.2 and tomee ? -- View this message in context: http://myfaces.10567.n7.nabble.com/fileUpload-native-and-with-primefaces5-and-with-tomer-tp118244.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
problem wit hvisualize a size of colletion into a datatable
From the projectController , i have a method: getCollectionProject that return a ListProject . Each project contains a list of Professor . SO into the last line i would show the amount of professors for the project . The var item rappresent a project. project contains a ListProfessor i write #{item.professors.size()} for get the amount of professors for the project valutated form each iteration . Whi into the last outputText : h:outputText value=#{item.professors.size()} tot projects/ it shows only the words tot projects and not show the value of listSize? h:form h:outputText value=List/ h:dataTable value=#{projectController.collectionProject} var=item h:column f:facet name=header h:outputText value=Id/ /f:facet h:outputText value=#{item.id}/ /h:column h:column f:facet name=header h:outputText value=name of project/ /f:facet h:outputText value=#{item.name}/ /h:column h:column f:facet name=header h:outputText value=numbers of professors/ /f:facet h:outputText value=#{item.professors.size()} tot projects/ /h:column /h:dataTable /h:form -- View this message in context: http://myfaces.10567.n7.nabble.com/problem-wit-hvisualize-a-size-of-colletion-into-a-datatable-tp117242.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: problem wit hvisualize a size of colletion into a datatable
Tank you . I use tomee so for use jstl i have to add the jars of jstl to web-inf/lib ? Il giorno 20/feb/2014 18.42, Mike Kienenberger [via MyFaces] ml-node+s10567n117243...@n7.nabble.com ha scritto: Calling arbitrary methods like size() isn't supported in EL 2.1, although I think it might be in EL 2.2. Here's the way to do it that will work in any version of JSF. xmlns:jstl=http://java.sun.com/jsp/jstl/functions; [...] h:outputText value=#{jstl:length(item.professors)} tot projects/ On Thu, Feb 20, 2014 at 11:21 AM, maurojava [hidden email]http://user/SendEmail.jtp?type=nodenode=117243i=0 wrote: From the projectController , i have a method: getCollectionProject that return a ListProject . Each project contains a list of Professor . SO into the last line i would show the amount of professors for the project . The var item rappresent a project. project contains a ListProfessor i write #{item.professors.size()} for get the amount of professors for the project valutated form each iteration . Whi into the last outputText : h:outputText value=#{item.professors.size()} tot projects/ it shows only the words tot projects and not show the value of listSize? h:form h:outputText value=List/ h:dataTable value=#{projectController.collectionProject} var=item h:column f:facet name=header h:outputText value=Id/ /f:facet h:outputText value=#{item.id}/ /h:column h:column f:facet name=header h:outputText value=name of project/ /f:facet h:outputText value=#{item.name}/ /h:column h:column f:facet name=header h:outputText value=numbers of professors/ /f:facet h:outputText value=#{item.professors.size()} tot projects/ /h:column /h:dataTable /h:form -- View this message in context: http://myfaces.10567.n7.nabble.com/problem-wit-hvisualize-a-size-of-colletion-into-a-datatable-tp117242.html Sent from the MyFaces - Users mailing list archive at Nabble.com. -- If you reply to this email, your message will be added to the discussion below: http://myfaces.10567.n7.nabble.com/problem-wit-hvisualize-a-size-of-colletion-into-a-datatable-tp117242p117243.html To unsubscribe from problem wit hvisualize a size of colletion into a datatable, click herehttp://myfaces.10567.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=117242code=bWF1cm8yamF2YTIwMTFAZ21haWwuY29tfDExNzI0MnwtMTExNzE4NzYyNQ== . NAMLhttp://myfaces.10567.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://myfaces.10567.n7.nabble.com/problem-wit-hvisualize-a-size-of-colletion-into-a-datatable-tp117242p117244.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: myfaces 2.2 foe replace myfaces 2.1 into tomee
tank you very much 2014-02-14 8:47 GMT+01:00 Mark Struberg [via MyFaces] ml-node+s10567n117182...@n7.nabble.com: GAV = groupId + artifactId + version. See the sample of the mysql connector libmysql:mysql-connector-java:${mysql-connector.version}/lib For myfaces this would be liborg.apache.myfaces.core:myfaces-api:${myfaces.version}/lib LieGrue, strub On Thursday, 13 February 2014, 19:09, maurojava [hidden email]http://user/SendEmail.jtp?type=nodenode=117182i=0 wrote: escuse me Mark i not know maven how i can make the last your indication: - for adding jars to your tomee plugin, just use the maven GAV coordinates. If it starts with remove:xxx, then it will remove all the jars starting with this string. --- how i can put the jars dor tomme plugin using the GAV coordinates? 2014-02-13 18:44 GMT+01:00 Mark Struberg [via MyFaces] [hidden email] http://user/SendEmail.jtp?type=nodenode=117182i=1: btw if you use the tomee-maven-plugin then you can automatically 'tune' the lib folders with something like this: build plugins plugin groupIdorg.apache.openejb.maven/groupId artifactIdtomee-maven-plugin/artifactId version${tomee.mavenplugin.version}/version configuration ... libs libmysql:mysql-connector-java:${mysql-connector.version}/lib libremove:myfaces-api/lib libremove:myfaces-impl/lib /libs /configuration for adding jars to your tomee plugin, just use the maven GAV coordinates. If it starts with remove:xxx, then it will remove all the jars starting with this string. LieGrue, strub On Wednesday, 12 February 2014, 19:02, Karl Kildén [hidden email] http://user/SendEmail.jtp?type=nodenode=117170i=0 wrote: Try starting it outside of your IDE. If that works remove and reconnect IDE to a fresh TomEE on another path with the desired changes under /lib On 12 February 2014 18:48, maurojava [hidden email] http://user/SendEmail.jtp?type=nodenode=117170i=1 wrote: my jsk is : jdk1.7.0_25 my tomee :tomee 1.6.0 plus i have added myfaces-api2.2jar and myfaces-impl2.2.jar to tomee/lib i have removed myfaces 2.1 impl and api i not use codi -- View this message in context: http://myfaces.10567.n7.nabble.com/myfaces-2-2-foe-replace-myfaces-2-1-into-tomee-tp117127p117135.html Sent from the MyFaces - Users mailing list archive at Nabble.com. -- If you reply to this email, your message will be added to the discussion below: http://myfaces.10567.n7.nabble.com/myfaces-2-2-foe-replace-myfaces-2-1-into-tomee-tp117127p117170.html To unsubscribe from myfaces 2.2 foe replace myfaces 2.1 into tomee, click here . NAML http://myfaces.10567.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://myfaces.10567.n7.nabble.com/myfaces-2-2-foe-replace-myfaces-2-1-into-tomee-tp117127p117173.html Sent from the MyFaces - Users mailing list archive at Nabble.com. -- If you reply to this email, your message will be added to the discussion below: http://myfaces.10567.n7.nabble.com/myfaces-2-2-foe-replace-myfaces-2-1-into-tomee-tp117127p117182.html To unsubscribe from myfaces 2.2 foe replace myfaces 2.1 into tomee, click herehttp://myfaces.10567.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=117127code=bWF1cm8yamF2YTIwMTFAZ21haWwuY29tfDExNzEyN3wtMTExNzE4NzYyNQ== . NAMLhttp://myfaces.10567.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://myfaces.10567.n7.nabble.com/myfaces-2-2-foe-replace-myfaces-2-1-into-tomee-tp117127p117196.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
A beatiful web site on jsf and JSF2.2
http://jsflive.wordpress.com/ Hi have found the web site above with many post on jsf2.2 . -- View this message in context: http://myfaces.10567.n7.nabble.com/A-beatiful-web-site-on-jsf-and-JSF2-2-tp117149.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: myfaces 2.2 foe replace myfaces 2.1 into tomee
escuse me Mark i not know maven how i can make the last your indication: - for adding jars to your tomee plugin, just use the maven GAV coordinates. If it starts with remove:xxx, then it will remove all the jars starting with this string. --- how i can put the jars dor tomme plugin using the GAV coordinates? 2014-02-13 18:44 GMT+01:00 Mark Struberg [via MyFaces] ml-node+s10567n117170...@n7.nabble.com: btw if you use the tomee-maven-plugin then you can automatically 'tune' the lib folders with something like this: build plugins plugin groupIdorg.apache.openejb.maven/groupId artifactIdtomee-maven-plugin/artifactId version${tomee.mavenplugin.version}/version configuration ... libs libmysql:mysql-connector-java:${mysql-connector.version}/lib libremove:myfaces-api/lib libremove:myfaces-impl/lib /libs /configuration for adding jars to your tomee plugin, just use the maven GAV coordinates. If it starts with remove:xxx, then it will remove all the jars starting with this string. LieGrue, strub On Wednesday, 12 February 2014, 19:02, Karl Kildén [hidden email]http://user/SendEmail.jtp?type=nodenode=117170i=0 wrote: Try starting it outside of your IDE. If that works remove and reconnect IDE to a fresh TomEE on another path with the desired changes under /lib On 12 February 2014 18:48, maurojava [hidden email]http://user/SendEmail.jtp?type=nodenode=117170i=1 wrote: my jsk is : jdk1.7.0_25 my tomee :tomee 1.6.0 plus i have added myfaces-api2.2jar and myfaces-impl2.2.jar to tomee/lib i have removed myfaces 2.1 impl and api i not use codi -- View this message in context: http://myfaces.10567.n7.nabble.com/myfaces-2-2-foe-replace-myfaces-2-1-into-tomee-tp117127p117135.html Sent from the MyFaces - Users mailing list archive at Nabble.com. -- If you reply to this email, your message will be added to the discussion below: http://myfaces.10567.n7.nabble.com/myfaces-2-2-foe-replace-myfaces-2-1-into-tomee-tp117127p117170.html To unsubscribe from myfaces 2.2 foe replace myfaces 2.1 into tomee, click herehttp://myfaces.10567.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=117127code=bWF1cm8yamF2YTIwMTFAZ21haWwuY29tfDExNzEyN3wtMTExNzE4NzYyNQ== . NAMLhttp://myfaces.10567.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://myfaces.10567.n7.nabble.com/myfaces-2-2-foe-replace-myfaces-2-1-into-tomee-tp117127p117173.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
myfaces 2.2 foe replace myfaces 2.1 into tomee
What version of myfaces 2.2 i have to dowload for replace myfaces2.1 jars into tomee ? From download page of myfaces2.2 i have view many subdir. Core . Snapshot Shaded jee6 And many other. What it is the version shaded ? -- View this message in context: http://myfaces.10567.n7.nabble.com/myfaces-2-2-foe-replace-myfaces-2-1-into-tomee-tp117127.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: myfaces 2.2 foe replace myfaces 2.1 into tomee
hi . i have tried but not work! o have substitute the jars but when i deploy not start into tomee. It can possible because i have jse1.7 ? the source of project https://github.com/maurojava/esempioviewscopedmyfaces2.2.git feb 12, 2014 5:14:30 PM org.apache.catalina.startup.HostConfig deployDescriptor SEVERE: Error deploying configuration descriptor /home/utente_javaee7/catsmithtomee/conf/Catalina/localhost/esempioviewscopedmyfaces2.2.xml java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/esempioviewscopedmyfaces2.2]] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:663) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:542) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1468) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1447) at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:862) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:358) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:611) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) feb 12, 2014 5:15:39 PM org.apache.catalina.startup.HostConfig deleteRedeployResources INFO: Undeploying context [/esempioviewscopedmyfaces2.2] feb 12, 2014 5:15:39 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor /home/utente_javaee7/catsmithtomee/conf/Catalina/localhost/esempioviewscopedmyfaces2.2.xml feb 12, 2014 5:15:39 PM org.apache.tomee.catalina.TomcatWebAppBuilder init INFO: - localhost - /esempioviewscopedmyfaces2.2 feb 12, 2014 5:15:39 PM org.apache.catalina.core.StandardContext resourcesStart SEVERE: Error starting static Resources
Re: myfaces 2.2 foe replace myfaces 2.1 into tomee
my jsk is : jdk1.7.0_25 my tomee :tomee 1.6.0 plus i have added myfaces-api2.2jar and myfaces-impl2.2.jar to tomee/lib i have removed myfaces 2.1 impl and api i not use codi -- View this message in context: http://myfaces.10567.n7.nabble.com/myfaces-2-2-foe-replace-myfaces-2-1-into-tomee-tp117127p117135.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
@FAcesCOnverter(forClass=Address.class ) not work int omyfaces?
hi. i have developped a JSF - I have FacesConverter for selectOneMenu Into my code the FacesCOnverter are annotated for example : @FacesConverter(forClass=Address.class) // this converter it is for select a AddresEntity from selectOneMenu , , public static class AddressControllerConverter implements Converter { public Object getAsObject(FacesContext facesContext, UIComponent component, String value) { if (value == null || value.length() == 0) { return null; } AddressController controller = (AddressController)facesContext.getApplication().getELResolver(). getValue(facesContext.getELContext(), null, addressController); return controller.ejbFacade.find(getKey(value)); } java.lang.Integer getKey(String value) { java.lang.Integer key; key = Integer.valueOf(value); return key; } String getStringKey(java.lang.Integer value) { StringBuffer sb = new StringBuffer(); sb.append(value); return sb.toString(); } public String getAsString(FacesContext facesContext, UIComponent component, Object object) { if (object == null) { return null; } if (object instanceof Address) { Address o = (Address) object; return getStringKey(o.getAddressId()); } else { throw new IllegalArgumentException(object + object + is of type + object.getClass().getName() + ; expected type: +AddressController.class.getName()); } } } -- If i deploy into glassfsih with mojarra it work . But IF i deploy into TOMEE with myfaces i get: An Error Occurred: object is of type java.lang.String; expected type: jsf.ClientController viewId=/address/Create.xhtml location=E:\documenti_mauro\progetti_con_smith\rifattopertomee\ConsultingAgency-master\build\web\address\Create.xhtml phaseId=RENDER_RESPONSE(6) Caused by: java.lang.IllegalArgumentException - object is of type java.lang.String; expected type: jsf.ClientController at jsf.ClientController$ClientControllerConverter.getAsString(ClientController.java:271) --- why not work with myfaces and work with mojarra? -- View this message in context: http://myfaces.10567.n7.nabble.com/FAcesCOnverter-forClass-Address-class-not-work-int-omyfaces-tp117069.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: java.lang.IllegalArgumentException - object is of type java.lang.String; expected type: mauro.entity.Heart
hi all. Hi have correct the converter and now it is ok the String /object conversion. But now i have another problem. I have a entity DiscountCode and a Customer . I have a page CreateCustomer . INto i have to set the DIscountCOde. I have created the form , but int othe COntroller the Customer it is a new instance and so when render the page , i get a reference to null at the seelctOnemenu vlaue=#{controller.customer.discont} It iis a new instance and so the propertie discount it is null. from selectItems i get the List of all DiscountCode present into db . How i can resolve? I have to select a selectItem to be selected default? mauro -- View this message in context: http://myfaces.10567.n7.nabble.com/java-lang-IllegalArgumentException-object-is-of-type-java-lang-String-expected-type-mauro-entity-Heat-tp116991p117027.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: java.lang.IllegalArgumentException - object is of type java.lang.String; expected type: mauro.entity.Heart
Please i not have resolved .i have tried many times but i get errors -- View this message in context: http://myfaces.10567.n7.nabble.com/java-lang-IllegalArgumentException-object-is-of-type-java-lang-String-expected-type-mauro-entity-Heat-tp116991p117013.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: java.lang.IllegalArgumentException - object is of type java.lang.String; expected type: mauro.entity.Heart
I have read at http://stackoverflow.com/questions/14892680/selectonemenu-with-complex-objects-is-a-converter-necessary if i have understand it is not necessaries to create a ListSelectItem . It work also with a list of SameType . I have to implem a converter that return a string of id of myentity and return a object after transform the id string into the type of the id and retrouve the entyty objject from db . -- View this message in context: http://myfaces.10567.n7.nabble.com/java-lang-IllegalArgumentException-object-is-of-type-java-lang-String-expected-type-mauro-entity-Heat-tp116991p117019.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
java.lang.IllegalArgumentException - object is of type java.lang.String; expected type: mauro.entity.Heart
hi . i try a simple application jsf CRUD with 2 entity . When i try to insert a entity i get the following exception : Caused by: java.lang.IllegalArgumentException - object is of type java.lang.String; expected type: object is of type java.lang.String; expected type: mauro.entity.Heart viewId=/body/Create.xhtml location=/home/utente_javaee7/NetBeansProjects/progetti_nuovnetbeans/Study_relations_JPA/build/web/body/Create.xhtml phaseId=RENDER_RESPONSE(6) Caused by: java.lang.IllegalArgumentException - object is of type java.lang.String; expected type: mauro.entity.Heart at mauro.jsf.HeartController$HeartControllerConverter.getAsString(HeartController.java:225) how resolve??? read at : http://pastebin.com/rsFJes66 tank you mauro -- View this message in context: http://myfaces.10567.n7.nabble.com/java-lang-IllegalArgumentException-object-is-of-type-java-lang-String-expected-type-mauro-entity-Heat-tp116991.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
DOwnload codi bundle jar for use inot tomee
Hi all. Hi have read that i have to download the bundle jar for use codi ces into tomee. the myfaces-extcdi-bundle-jsf20-1.0.1.jar But i not have found it. I have only found many jars, but it exists a jar that bundle all of codi the link for download it??? readf at link below. https://www.ibm.com/developerworks/community/forums/html/topic?id=----14687152 https://www.ibm.com/developerworks/community/forums/html/topic?id=----14687152 http://www.icesoft.org/JForum/posts/list/18079.page#sthash.i4Kphlbs.dpbs http://www.icesoft.org/JForum/posts/list/18079.page#sthash.i4Kphlbs.dpbs -- View this message in context: http://myfaces.10567.n7.nabble.com/DOwnload-codi-bundle-jar-for-use-inot-tomee-tp115390.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: DOwnload codi bundle jar for use inot tomee
tank you for the link. but what it is the fifference from the ViewScoped of codi and ViewAccessScoped??? a real case of use both ?? Another questions: into tomee it is out of the box the bean validator. now i ask : the myfacesEXT validator it is anoyher ? difference from bean validator? Il giorno 05/ago/2013 12.37, Gerhard Petracek [via MyFaces] ml-node+s10567n115391...@n7.nabble.com ha scritto: tomee shouldn't have issues with the separated jar-files, however, see e.g. [1] regards, gerhard [1] http://repo2.maven.org/maven2/org/apache/myfaces/extensions/cdi/bundles/myfaces-extcdi-bundle-jsf20/1.0.5/myfaces-extcdi-bundle-jsf20-1.0.5.jar http://www.irian.at Your JSF/JavaEE powerhouse - JavaEE Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- If you reply to this email, your message will be added to the discussion below: http://myfaces.10567.n7.nabble.com/DOwnload-codi-bundle-jar-for-use-inot-tomee-tp115390p115391.html To unsubscribe from DOwnload codi bundle jar for use inot tomee, click herehttp://myfaces.10567.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=115390code=bWF1cm8yamF2YTIwMTFAZ21haWwuY29tfDExNTM5MHwtMTExNzE4NzYyNQ== . NAMLhttp://myfaces.10567.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://myfaces.10567.n7.nabble.com/DOwnload-codi-bundle-jar-for-use-inot-tomee-tp115390p115398.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: primefaces p:filejUpload not work with myfaces
read at : http://forum.primefaces.org/viewtopic.php?f=3t=29863p=95186#p95186 the response of tandraschko for the signature of method. But with 4 snapshot it works? mauro -- View this message in context: http://myfaces.10567.n7.nabble.com/primefaces-p-filejUpload-not-work-with-myfaces-tp114620p114666.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: primefaces p:filejUpload not work with myfaces
I TRY TO SEND YOU MY PROJECT. i have tried to deploy at tomee from netbeans but not deploy . I have put into tomee/lib the primefaces.jar. into the project i have added at web-inf/lib the jars :commons-io-2.4.jar and :commons-fileupload-1.3.jar Il giorno gio, 18/04/2013 alle 11.01 -0700, Howard W. Smith, Jr. [via MyFaces] ha scritto: 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 [hidden email] 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. __ If you reply to this email, your message will be added to the discussion below: http://myfaces.10567.n7.nabble.com/primefaces-p-filejUpload-not-work-with-myfaces-tp114620p114632.html To unsubscribe from primefaces p:filejUpload not work with myfaces, click here. NAML prova_fileupload_primefaces.zip (30K) http://myfaces.10567.n7.nabble.com/attachment/114635/0/prova_fileupload_primefaces.zip -- View this message in context: http://myfaces.10567.n7.nabble.com/primefaces-p-filejUpload-not-work-with-myfaces-tp114620p114635.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: primefaces p:filejUpload not work with myfaces
i attach a war project that it work but on glassfsih . Not for tomee . . it use mojarra implementation of jsf2 and primefaces . deploy it in glassfsih and it work. But i would to modify for use myfaces + primefaces into tomee . mauro __ If you reply to this email, your message will be added to the discussion below: http://myfaces.10567.n7.nabble.com/primefaces-p-filejUpload-not-work-with-myfaces-tp114620p114636.html To unsubscribe from primefaces p:filejUpload not work with myfaces, click here. NAML MYPRIMEFACESUPLOAD.war (2M) http://myfaces.10567.n7.nabble.com/attachment/114641/0/MYPRIMEFACESUPLOAD.war -- View this message in context: http://myfaces.10567.n7.nabble.com/primefaces-p-filejUpload-not-work-with-myfaces-tp114620p114641.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
primefaces p:filejUpload not work with myfaces
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
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
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
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: config web.xml myfaces for use with primefaces
tank you for your response. When i create a new project with netbeans 7.3 and tomee server, and i add the JSF framework, i get automatically into web.xml the following configuration for myfaces: listener listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class /listener 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 from your response not says over listener listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class /listener it is necessaries? what it is the work of the listener listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class /listener at startup of my web application?? 2)Other questions: from the link: http://tandraschko.blogspot.de/2012/08/increase-your-jsf-application.html i read : Use JUEL as EL implementation Add the newest JUEL API + implementation as depedency Configure MyFaces to use JUEL: context-param param-nameorg.apache.myfaces.EXPRESSION_FACTORY/param-name param-valuede.odysseus.el.ExpressionFactoryImpl/param-value /context-param Increase expression cache in JUEL Create src/main/resources/el.properties Add property javax.el.cacheSize with a custom size. The default size is 1000. In my application i use a size of 3000. DO i can download the JUEL ? it is from myfaces core??? --- If you use CDI, consider to use OpenWebBeans as implementation and configure this in your web.xml: context-param param-nameorg.apache.myfaces.EL_RESOLVER_COMPARATOR/param-name param-valueorg.apache.myfaces.el.unified.OpenWebBeansELResolverComparator/param-value /context-param -- View this message in context: http://myfaces.10567.n7.nabble.com/config-web-xml-myfaces-for-use-with-primefaces-tp114536p114539.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: config web.xml myfaces for use with primefaces
please you can send me a complete web.xml for get myfaces to work with primesfaces ? and with rich faces? tank you very much mauro -- View this message in context: http://myfaces.10567.n7.nabble.com/config-web-xml-myfaces-for-use-with-primefaces-tp114536p114544.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: config web.xml myfaces for use with primefaces
Tank you for response. I have tried but when add some of your param into wrb.xml i get a flag of error into netbeans. For many param not work with myfaces. Il giorno 09/apr/2013 20.01, Howard W. Smith, Jr. [via MyFaces] ml-node+s10567n114548...@n7.nabble.com ha scritto: On Tue, Apr 9, 2013 at 5:53 AM, maurojava [hidden email]http://user/SendEmail.jtp?type=nodenode=114548i=0 wrote: please you can send me a complete web.xml for get myfaces to work with primesfaces ? Below is part of my web.xml, which should be enough to get you started with PrimeFaces and TomEE. Please post any questions related to PrimeFaces on the PrimeFaces forums. ?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-valueProduction/param-value /context-param context-param param-namecom.sun.faces.allowTextChildren/param-name param-valuetrue/param-value /context-param !-- http://code.google.com/p/omnifaces/issues/detail?id=73 Comment 25 by project member balusc, Today (11 minutes ago) Just keep GZIP filter threshold size default. It has not the same meaning as Facelets buffer size. A large Facelets buffer size may be useful during development, to spot any bugs in the view which causes exceptions during render response. But I would not set it that large in production. http://code.google.com/p/omnifaces/issues/detail?id=51 It's technically not possible to change the response when it has already been committed. So if an exception occurs during rendering the response and the response has already been committed, then you'll end up with a broken response. In most default servletcontainer/webapp configurations, the response get committed when 2KB has already been written to the response. One of the ways to avoid this is to increase the response buffer size. In Facelets, you can do this using the following context parameter (which sets it to 64KB, you may if necessary need to adjust it to the size of the largest HTML output you have): context-param param-namejavax.faces.FACELETS_BUFFER_SIZE/param-name param-value65535/param-value /context-param Setting to 800KB, since /orders/pf_Add.xhtml (640+ KB) is the largest view; if this is not set, then OmniFaces 1.2 (OmniPartialViewContext) breaks pf_BrowsePayroll.xhtml, see OmniFaces issue 73 (URL above) context-param param-namejavax.faces.FACELETS_BUFFER_SIZE/param-name param-value819200/param-value /context-param -- context-param param-namejavax.faces.FACELETS_BUFFER_SIZE/param-name param-value65535/param-value /context-param context-param param-namejavax.faces.FACELETS_SKIP_COMMENTS/param-name param-valuetrue/param-value /context-param !-- javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE See following URLS to explain why it might be of use: http://forum.primefaces.org/viewtopic.php?f=3t=16701start=10#p50972 http://forum.primefaces.org/viewtopic.php?f=3t=16701#p50956 f:convertDateTime displays wrong Date; BalusC responded/answered http://stackoverflow.com/questions/2689245/fconvertdatetime-displays-wrong-date -- context-param param-namejavax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueserver/param-value /context-param context-param param-namejavax.faces.PARTIAL_STATE_SAVING/param-name param-valuetrue/param-value /context-param !-- * http://myfaces.apache.org/core20/myfaces-impl/webconfig.html * http://wiki.apache.org/myfaces/Performance * * Per default settings, Mojarra does not serialize beans in the session. * MyFaces serialize it per default. You can also disable it in MyFaces * but i recommand to make all the stuff serializable because it would be * required if you would like to use session replication and clustering for example. * http://forum.primefaces.org/viewtopic.php?f=3t=24157start=10#p75383 * * * If you want to use JUEL, then copy JUEL JARs to tomee/lib, and copy the following * to outside of this comment. context-param param-nameorg.apache.myfaces.EL_RESOLVER_COMPARATOR/param-name param-valueorg.apache.myfaces.el.unified.OpenWebBeansELResolverComparator/param-value /context-param -- context-param param-nameorg.apache.myfaces.COMPRESS_STATE_IN_SESSION/param-name param-valuefalse/param-value /context
config web.xml myfaces for use with primefaces
hi all. Hi not understand what oaram i have to set int oweb.xml for work myfaces with primefaces. Please i have tried with tomee that as out.of-the box myfaces like implementation of JSF2 . But i have use primefaces components with it. Primefaces it use ajax for partial process of page. I have read at http://myfaces.apache.org/core21/myfaces-impl/webconfig.html http://myfaces.apache.org/core20/myfaces-impl/webconfig.html https://cwiki.apache.org/confluence/display/MYFACES/Configuration+of+special+features but i not understand what i have to set . I use also openwebbeans for the managedbean with cdi. Mauro -- View this message in context: http://myfaces.10567.n7.nabble.com/config-web-xml-myfaces-for-use-with-primefaces-tp114536.html Sent from the MyFaces - Users mailing list archive at Nabble.com.