el expression parameter of a composite component

2012-06-14 Thread l.pe...@senat.fr
Dear all, I am experiencing a strange behaviour with a composite component. It seems to me that attributes values specified as el expressions are computed only once, and very early, when the composite component declaration specifies a componentType. I published an example on

Re: el expression parameter of a composite component

2012-06-14 Thread l.pe...@senat.fr
On 14/06/2012 12:40, Leonardo Uribe wrote: Hi I have checked the problem and what you need to do is implement your properties into your component class using StateHelper methods, otherwise the properties will not be saved and restored. Take a look at:

Passing method parameters to nested composite component

2012-07-23 Thread l.pe...@senat.fr
Dear all, I am experiencing what I think is a bug with Tomcat 6.0.33 / MyFaces 2.1.7 (I am also using CODI, but do not think this has an impact). I posted a question on stackoverflow but had no answer yet :

Re: Passing method parameters to nested composite component

2012-07-23 Thread l.pe...@senat.fr
On 23/07/2012 15:49, Leonardo Uribe wrote: Hi The stack trace shows it is a Tomcat EL bug. MyFaces is passing the params properly. I would suggest to use another EL implementation to see if it works, but first it is necessary to see if the listener defines the parameter correctly or not. You

Re: Passing method parameters to nested composite component

2012-07-23 Thread l.pe...@senat.fr
On 23/07/2012 17:53, Leonardo Uribe wrote: Hi Look the javadoc for composite:attribute targets property. It says something like this: Well, I did that and the bug still occurs. I am trying to use jboss-el to avoid it... Thx. Ludovic | | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT. |

Re: Passing method parameters to nested composite component

2012-07-23 Thread l.pe...@senat.fr
On 23/07/2012 18:22, l.pe...@senat.fr wrote: On 23/07/2012 17:53, Leonardo Uribe wrote: Hi Look the javadoc for composite:attribute targets property. It says something like this: Well, I did that and the bug still occurs. I am trying to use jboss-el to avoid it... I finally used glashfish el

Re: Passing method parameters to nested composite component

2012-07-23 Thread l.pe...@senat.fr
On 23/07/2012 18:46, l.pe...@senat.fr wrote: On 23/07/2012 18:22, l.pe...@senat.fr wrote: On 23/07/2012 17:53, Leonardo Uribe wrote: Hi Look the javadoc for composite:attribute targets property. It says something like this: Well, I did that and the bug still occurs. I am trying to use jboss

Re: Passing method parameters to nested composite component

2012-07-23 Thread l.pe...@senat.fr
On 23/07/2012 19:39, Leonardo Uribe wrote: Hi Thinking more about it, check if both composite components define the attribute with method-signature. In theory, if there is a bug, it should be possible to reproduce it excluding primefaces and using actionListener or valueChangeListener instead.

Re: Passing method parameters to nested composite component

2012-07-24 Thread l.pe...@senat.fr
On 24/07/2012 10:32, Leonardo Uribe wrote: Hi I tried the following example: h:form id=mainForm test:ajaxPanel2 onRowEditListener=#{ajaxListenerBean.ajaxRender} value=#{ajaxListenerBean.value}/ /h:form ajaxPanel2.xhtml cc:interface cc:attribute

Re: Passing method parameters to nested composite component

2012-07-24 Thread l.pe...@senat.fr
On 23/07/2012 20:23, Rafael Pestano wrote: Hi Ludovic, i've had similar problem with closeListener of primefaces dialog inside composite components, my workaround was as follows: Dear Rafael, thank you very much for this workaround. I spent a great deal of time trying to find the real

Setting CODI project stage

2012-10-08 Thread l.pe...@senat.fr
Hi. How can I configure the CODI project stage ? I crawled the doc but found nothing. In the org/apache/myfaces/extensions/cdi/core/api/projectstage/ProjectStage.java source file, I found the following doc : 53 * pThe following resolution mechanism is used to determine the current

Re: Setting CODI project stage

2012-10-08 Thread l.pe...@senat.fr
On 08/10/2012 14:55, Mark Struberg wrote: Hi Ludovic! I'm using -Dfaces.PROJECT_STAGE=Development which works perfectly. In production we have set it via JNDI in tomcats conf/context.xml: Environment name=jsf/ProjectStage value=SystemTest type=java.lang.String override=false/

Re: Can start in debug, but not in release

2012-11-21 Thread l.pe...@senat.fr
On 20/11/2012 20:16, Gerhard Petracek wrote: hi ludovic, to get rid of ... no org.apache.myfaces.extensions.cdi.core.api.provider.BeanManagerProvider in place! ... you have to ensure that all config-files and owb jar-files you are using are packaged correctly. you can compare your war-file

Re: Can start in debug, but not in release

2012-11-21 Thread l.pe...@senat.fr
On 21/11/2012 10:24, Gerhard Petracek wrote: hi ludovic, then we would need a link to a package example which illustrates the issue. Dear Gerhard, while preparing this package, I constated that Mark was right and that the problem was a combination of an hibernate init failure combined with

Re: Jsf Hibernate problem in SelectOneList event

2013-01-30 Thread l.pe...@senat.fr
On 30/01/2013 14:05, Giri Prasad wrote: Hello All, I have a very simple jsf page and a backing bean for this jsf, which is implemented in hibernate using Netbeans. Select button does properly populate the list box. Details button does display the debug message in glassfish log, when no

EventHandler.Listener

2013-01-31 Thread l.pe...@senat.fr
Dear all, I noticed that the constructor of the EventHandler.Listener taking two parameters is private : private Listener(MethodExpression methodExpOneArg, MethodExpression methodExpZeroArg) { this.methodExpOneArg = methodExpOneArg;

Re: Jsf Hibernate problem in SelectOneList event

2013-01-31 Thread l.pe...@senat.fr
On 31/01/2013 16:05, Giri Prasad wrote: I recently had a problem with jsf+hibernate, with another control from the selectOneXXX family (see http://forum.primefaces.org/viewtopic.php?f=3t=27919#p88162 and later) My problem was that I was comparing real objects and hibernate proxy objects.

Re: Problem converting custom components from mojarra to myfaces

2013-02-14 Thread l.pe...@senat.fr
On 14/02/2013 12:27, Karl Kild�n wrote: Hello! We have decided to upgrade to myfaces. Problem: We have about 30 or so in house components and a lot of things stopped working. Here's a concrete problem we would really appreciate some help with: we use onDoubleClick on our datatable and our

Re: Add 'Stateless JSF' to MyFaces Core? Is it really necessary?

2013-02-22 Thread l.pe...@senat.fr
On 22/02/2013 14:19, Howard W. Smith, Jr. wrote: Fair enough. Definitely not a concern of mine; seems not to be a real concern to MyFaces Dev/users as well. :) Dear all, maybe a stupid question... So, a f:view transient=true can be used to design a nice login form leveraging JSF power ?

EL expressions as custom component attributes

2013-03-06 Thread l.pe...@senat.fr
I do not succeed in passing EL expressions as attributes of a custom component used in a tag file. I could not find a clear doc on how to do that with EL 2.2. My use case is the following : 1. a tag file taking attribute context as a parameter 2. inside the tag file, using a home made custom

Re: EL expressions as custom component attributes

2013-03-06 Thread l.pe...@senat.fr
in advance for your patience. Ludovic On 06/03/2013 10:22, l.pe...@senat.fr wrote: I do not succeed in passing EL expressions as attributes of a custom component used in a tag file. I could not find a clear doc on how to do that with EL 2.2. My use case is the following : 1. a tag file taking

Re: EL expressions as custom component attributes

2013-03-07 Thread l.pe...@senat.fr
On 06/03/2013 20:02, Leonardo Uribe wrote: Hi There are good reasons to avoid use VariableMapper. This class is used when the EL expressions are built to store some values required to resolve the expression later, making the expression not cacheable, because the content of VariableMapper could

How to programmatically instantiate a composite component or a tag component ?

2013-04-04 Thread l.pe...@senat.fr
Dear all, how can I programatically instantiate a composite component or a tag component from a custom component ? I proceed this way to instantiate a composite component, but I do not really like it as I use reflection to hijack FaceletViewDeclarationLanguage methods... public

Re: Unwrap CC ValueExpression?

2013-05-13 Thread l.pe...@senat.fr
On 13/05/2013 14:35, Thomas Andraschko wrote: Hi Christian, i don't understand your solution exactly. Whats the difference? It would still store the #{cc.attrs.xxx} expression and #{cc} cant be evaluated without #pushComponentToEL(cc). Also #createView should be avoided for such a request IMO

Logging

2013-07-31 Thread l.pe...@senat.fr
Dear all, this is certainl a very simple question for most of you but... ... how do you configure myfaces logging ? I usually use log4j for my apps. I tried do create a commons-logging.properties file containing org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger I

JSF / MyFaces 2.2

2014-01-16 Thread l.pe...@senat.fr
Dear all, what documents do you suggest to read to get an idea of what's new in JSF 2.2 and in our favourite JSF implementation, MyFaces ? Best regards, Ludovic | | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT. |

Re: JSF / MyFaces 2.2

2014-01-20 Thread l.pe...@senat.fr
On 18/01/2014 09:14, Michael Kurz wrote: You can have a look at my blog http://jsflive.wordpress.com/. I wrote some articles about JSF 2.2 features. Thank you, that is exactly the kind of articles I am looking for. Best regards, Ludovic | | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT. |

@FlowScoped, @Named and @ManagedBean

2014-02-10 Thread l.pe...@senat.fr
Dear all, I am starting to really use JSF 2.2. I am trying to use Faces Flows. I am starting with a very simple flow, whose name is flow1. So, under src/main/webapp, I have a flow1 directory containing flow1-flow.xml flow1.xhtml flow1b.xhtml flow1-flow.xml contains : ?xml version=1.0

Re: @FlowScoped, @Named and @ManagedBean

2014-02-11 Thread l.pe...@senat.fr
On 11/02/2014 03:30, Leonardo Uribe wrote: Hi Thank you for your quick reply. 2014-02-10 11:56 GMT-05:00 l.pe...@senat.fr l.pe...@senat.fr: Dear all, I am starting to really use JSF 2.2. I am trying to use Faces Flows. I am starting with a very simple flow, whose name is flow1. So, under src

Re: @FlowScoped, @Named and @ManagedBean

2014-02-11 Thread l.pe...@senat.fr
On 11/02/2014 10:28, l.pe...@senat.fr wrote: On 11/02/2014 03:30, Leonardo Uribe wrote: [...] @FlowScoped annotation is for CDI only, so it will not work for JSF managed beans. In your case, I believe the bean is instantiated but it is not stored in any context, so once is created

Re: @FlowScoped, @Named and @ManagedBean

2014-02-11 Thread l.pe...@senat.fr
On 11/02/2014 14:51, l.pe...@senat.fr wrote: On 11/02/2014 10:28, l.pe...@senat.fr wrote: On 11/02/2014 03:30, Leonardo Uribe wrote: [...] @FlowScoped annotation is for CDI only, so it will not work for JSF managed beans. In your case, I believe the bean is instantiated but it is not stored

Re: @FlowScoped, @Named and @ManagedBean

2014-02-12 Thread l.pe...@senat.fr
On 12/02/2014 00:42, Thomas Andraschko wrote: Can't you just switch to DS? I gave a look to «migrate codi 1.x to deltaspike 0.5» by someone who seems to know a bit on this topic, posts on this mailing list and is also known a Gerhard Petracek :-)

Re: @FlowScoped, @Named and @ManagedBean

2014-02-12 Thread l.pe...@senat.fr
On 12/02/2014 10:22, Gerhard Petracek wrote: hi ludovic, @ProjectStageActivated is called @Exclude in deltaspike and you can just drop @Advanced. ok, thank you. I still had the same situation with deltaspike (0.5 + your os890-cdi-ext-jsf2-module-api and os890-cdi-ext-jsf2-module-impl or

Re: @FlowScoped, @Named and @ManagedBean

2014-02-12 Thread l.pe...@senat.fr
On 12/02/2014 10:37, l.pe...@senat.fr wrote: On 12/02/2014 10:22, Gerhard Petracek wrote: hi ludovic, @ProjectStageActivated is called @Exclude in deltaspike and you can just drop @Advanced. ok, thank you. I still had the same situation with deltaspike (0.5 + your os890-cdi-ext-jsf2-module

Re: @FlowScoped, @Named and @ManagedBean

2014-02-12 Thread l.pe...@senat.fr
On 12/02/2014 15:13, Gerhard Petracek wrote: hi ludovic, the add-on is for: codi 1.0.5 - deltaspike 0.5 (that's the reason for: 1.0.5_0.5_01) please don't use it with 0.6 (currently only @ViewAccessScoped is missing in ds) ok, I will do that as I do not need clientwindow support as long as I do

Re: @FlowScoped, @Named and @ManagedBean

2014-02-13 Thread l.pe...@senat.fr
On 13/02/2014 19:01, Leonardo Uribe wrote: Hi Thanks for the example. It helps to clarify the problem. The definition of the flow has a problem: @Produces @FlowDefinition public Flow defineFlow(@FlowBuilderParameter FlowBuilder flowBuilder) { String flowId = flux;

Tag component instantiation and EL strict or alwaysRecompile modes

2014-06-04 Thread l.pe...@senat.fr
Dear all, I am doing something dirty in my code. I dynamically instantiate and add tag components to my component tree, according to some information that I have at runtime. My instantiation method looks like : public static UIComponent instantiateTagComponent(Location loc, String

Re: Read Server Ip and Port inside JSF

2014-06-05 Thread l.pe...@senat.fr
On 05/06/2014 14:59, Georg Füchsle wrote: Hallo, my Application is deployed inside a Firewall and/or behind a Load-Balancer. My application provies a web-app and an web-service. At some time i have to call my own web-service from the web-app. In this case I have to use the internal URL of my

Re: Read Server Ip and Port inside JSF

2014-06-05 Thread l.pe...@senat.fr
On 05/06/2014 18:31, Georg Füchsle wrote: Hallo Ludovic, thanks for Your answer. But it didn't work for me. In my example the header: String forwardedFor = req.getHeader(X-Forwarded-For) was null. I also found this link:

Re: Tag component instantiation and EL strict or alwaysRecompile modes

2014-06-10 Thread l.pe...@senat.fr
On 05/06/2014 07:27, Leonardo Uribe wrote: Hi Use the standard vdl.createComponent(...) included since JSF 2.2. It has the necessary code to do the trick properly. Please note in Myfaces this method has been extend to support facelet tags too. It should work with the view pool. Thank you

NPE when view pooling / CACHE_EL_EXPRESSIONS == alwaysRecompile

2014-06-10 Thread l.pe...@senat.fr
(republished here following the advice of Gerhard Petracek on us...@deltaspike.apache.org) Dear all, I have the following NPE when view pooling is activated and CACHE_EL_EXPRESSIONS is set to alwaysRecompile : java.lang.NullPointerException at

Re: NPE when view pooling / CACHE_EL_EXPRESSIONS == alwaysRecompile

2014-06-19 Thread l.pe...@senat.fr
On 19/06/2014 17:22, Leonardo Uribe wrote: Hi I have checked the problem in deep and I was not able to reproduce the problem. The reason is view pooling algorithm saves UIViewRoot state fully (markInitialState is set to false, and the state is used later to clone the views), and that also

Re: FlowScope beans are being added to the FlowScope.

2014-07-04 Thread l.pe...@senat.fr
On 04/07/2014 06:52, Paul Spencer wrote: MyFaces 2.2.3 2.2.4 jetty-maven-plugin:8.1.15.v20140411 FlowScope beans are being added to the FlowScope. I suspect this is related to the message below. org.apache.myfaces.util.ExternalSpecifications isCDIAvailable INFO: MyFaces CDI

null Long values displayed as 0

2014-07-16 Thread l.pe...@senat.fr
Dear all, I just finished to struggle with the display of nullable Long or Integer values. I am using Primefaces 5.0.1 / MyFaces 2.2.4 / OpenWebBeans 1.2.2 / Tomcat 7.0.39. Those values are the result of the evaluation of EL expressions that I create with the following function :

Re: null Long values displayed as 0

2014-07-16 Thread l.pe...@senat.fr
On 16/07/2014 19:15, titou10 titou10 wrote: Maybe you could try to add property org.apache.el.parser.COERCE_TO_ZERO=false to your JVM Denis/MTL No, COERCE_TO_ZERO is useful in the opposite way, when submitting the value. BTW, I already use it. Thx anyway. Ludovic | | AVANT D'IMPRIMER, PENSEZ

Re: Performance issue with component bindings and Ajax requests

2014-08-20 Thread l.pe...@senat.fr
On 20/08/2014 09:41, Marc Heinz wrote: Thanks for the quick answer! We tried disabling PSS but this actually broke several other things, so we would prefer not to touch it right now. Setting the flag org.apache.myfaces.REMOVING_COMPONENTS_BUILD however seems to do the trick... (we though about

Re: @WebFilter not called when forwarding to login page

2015-03-13 Thread l.pe...@senat.fr
On 12/03/2015 14:59, Romain Manni-Bucau wrote: Can you share a project reproducing it? I could not... Well, I found a dirty workaround, so let's forget it. Ludovic | | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT. |

@WebFilter not called when forwarding to login page

2015-03-12 Thread l.pe...@senat.fr
Dear all, I have a legacy application which performs hibernate session attachement in a web filter. It works, excepting, sometimes, on a redirect by the container to the login page. In my web.xml, I have : login-config auth-methodFORM/auth-method form-login-config

Re: c:forEach issue in JSF 2

2015-07-01 Thread l.pe...@senat.fr
On 01/07/2015 10:08, khush N wrote: Hi, Thanks for the quick reply! Sorry, I do not have a sample project. But c:forEach aren't working on a simplest of page for me :( Did you put your code inside a h:form ? Ludovic | | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT. |

Re: c:forEach issue in JSF 2

2015-07-01 Thread l.pe...@senat.fr
On 01/07/2015 09:42, khush N wrote: [...] Can anyone please help me in understanding as to why the c:forEach tag is not working. I have huge code which is using forEach tag. With upgrade, I will have to remove every forEach if it is no more supported in JSF2 :( Thanks in advance! Do you have

Re: c:forEach issue in JSF 2

2015-07-01 Thread l.pe...@senat.fr
On 01/07/2015 10:01, khush N wrote: Hi Thomas, Thank you for the quick reply! I am using JSF 2.2. As mentioned in my previous email, I have huge code base which is using c:forEach tag. So, it would be really great if I can figure out the real issue with c:forEach. If there is not other way to

java.lang.IllegalStateException: Must be called before the start element is closed (attribute 'id')

2015-11-16 Thread l.pe...@senat.fr
Dear all, I randomly get the following exception in one of my apps : 16-Nov-2015 16:36:35.980 SEVERE [http-apr-8444-exec-10] org.omnifaces.exceptionhandler.FullAjaxExceptionHandler.logException FullAjaxExceptionHandler: An exception occurred during rendering JSF ajax response. Error page

Re: java.lang.IllegalStateException: Must be called before the start element is closed (attribute 'id')

2015-11-17 Thread l.pe...@senat.fr
On 17/11/2015 01:21, Howard W. Smith, Jr. wrote: On Mon, Nov 16, 2015 at 2:59 PM, l.pe...@senat.fr <l.pe...@senat.fr> wrote: java.lang.IllegalStateException: Must be called before the start element is closed (attribu

Re: java.lang.IllegalStateException: Must be called before the start element is closed (attribute 'id')

2015-11-18 Thread l.pe...@senat.fr
On 17/11/2015 13:11, l.pe...@senat.fr wrote: On 17/11/2015 01:21, Howard W. Smith, Jr. wrote: On Mon, Nov 16, 2015 at 2:59 PM, l.pe...@senat.fr <l.pe...@senat.fr> wrote: java.lang.IllegalStateException: Must be called before the start element is closed (attribu

Re: java.lang.IllegalStateException: Must be called before the start element is closed (attribute 'id')

2015-11-19 Thread l.pe...@senat.fr
On 18/11/2015 17:53, l.pe...@senat.fr wrote: On 17/11/2015 13:11, l.pe...@senat.fr wrote: On 17/11/2015 01:21, Howard W. Smith, Jr. wrote: On Mon, Nov 16, 2015 at 2:59 PM, l.pe...@senat.fr <l.pe...@senat.fr> wrote: java.lang.IllegalStateException: Must be called before the start e

Re: java.lang.IllegalStateException: Must be called before the start element is closed (attribute 'id')

2015-11-20 Thread l.pe...@senat.fr
On 19/11/2015 11:01, l.pe...@senat.fr wrote: On 18/11/2015 17:53, l.pe...@senat.fr wrote: On 17/11/2015 13:11, l.pe...@senat.fr wrote: On 17/11/2015 01:21, Howard W. Smith, Jr. wrote: On Mon, Nov 16, 2015 at 2:59 PM, l.pe...@senat.fr <l.pe...@senat.fr>

Adding a custom HTTP header to all requests

2016-03-18 Thread l.pe...@senat.fr
Hi. I am starting to use "JSON Web Tokens" ( https://jwt.io/ ). I implemented a tomcat valve checking those tokens and generating new ones transparently when another valve (such as BasicAuthenticator) takes care of the initial authentication. This stuff works and I can use it in a JS client