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 org.apache.myfaces.view.facelets.el.FaceletStat

Re: Submit form after disabling an input element via javascript?

2014-06-10 Thread Howard W. Smith, Jr.
On Tue, Jun 10, 2014 at 4:38 PM, Leonardo Uribe wrote: > The thing to remember here is "never trust on the client". > No matter how intelligent we want the client to be, in cases like this one > the state on the server is the king, and that will not change (because we > can't!). > and this is wh

Re: Submit form after disabling an input element via javascript?

2014-06-10 Thread Leonardo Uribe
Hi This is something complicated. If you disable a link on the server, you don't want a javascript that enable it on the client side, submit it and then found that something that you don't expect has happended on the server, right?. Who manage "disable" attribute? The client or the server? If an a

Re: Submit form after disabling an input element via javascript?

2014-06-10 Thread Karl Kildén
Howard, thanks for the links and interest. In my case I already rewrote all my pages but I still think that error message is wrong. This is our use case: [X] Use Defaults for everything Once the user unclicks that checkbox 5 inputs are editable otherwise they get default. Since they get default

Re: Submit form after disabling an input element via javascript?

2014-06-10 Thread Howard W. Smith, Jr.
Leonardo, what are your thoughts on this thread? thanks. On Wed, Jun 4, 2014 at 11:43 AM, Karl Kildén wrote: > Howard, > > To do that one would need a purpose. I fail to see the benefit other than > bending the knee to a JSF limitation. > > > > > On 4 June 2014 16:48, Howard W. Smith, Jr. wro

Re: Tag component instantiation and EL strict or alwaysRecompile modes

2014-06-10 Thread Leonardo Uribe
Hi Ludovic Good to know that. In my understanding, that code is the best option so far, and a lot of effort has been done to make it work. It was really hard to get it done. It has some good junit tests in place. Anyway we need to convince to the EG that myfaces behavior is the way to go. I think

RE: Declaring a node that is not type 'view' as the start node.

2014-06-10 Thread Mark
Makes sense. Thank-you for your help. -Original Message- From: Leonardo Uribe [mailto:lu4...@gmail.com] Sent: 10 June 2014 17:57 To: MyFaces Discussion Subject: RE: Declaring a node that is not type 'view' as the start node. Hi It looks like if "register" bean was in the flow scope asso

RE: Declaring a node that is not type 'view' as the start node.

2014-06-10 Thread Leonardo Uribe
Hi It looks like if "register" bean was in the flow scope associated with the flow to evaluate. The lookup will fail, because when the start node outcome is calculated, you have not entered the flow yet. The algorithm works in 2 steps: calculate the final outcome and then perform the transitions.

RE: Declaring a node that is not type 'view' as the start node.

2014-06-10 Thread Mark
Hi, Can anyone confirm if this is a problem with the myfaces implementation? Regards, Mark. -Original Message- From: Mark [mailto:m...@piggybankrupt.co.uk] Sent: 19 May 2014 22:22 To: users@myfaces.apache.org Subject: Declaring a node that is not type 'view' as the start node. Declar

Re: [Tobago] h:commandButton action are not invoked

2014-06-10 Thread Udo Schnurpfeil
Hi, sorry for the late answer... Please use tc:button on Tobago pages. The "h:" HTML lib is currently not supported in Tobago. The reason for the h:commandButton is not working is, that Tobago uses it's own submit JS function, which encapsulate extended functionality. Regards, Udo Am 07.05.14

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 Leonar