Ajax call and session timeout?

2015-01-16 Thread Bjørn T Johansen
This is not strictly just a myfaces question but perhaps someone can help me still... :) I finally thought I woulf see if I could fix the problem of just no response when trying to use ajax calls when the session has timed out and I am almost there... I am using Primefaces 5.1, Spring 4.1.4

Re: Performance issue with component bindings and Ajax requests

2014-09-02 Thread Leonardo Uribe
Hi I checked the algorithm and I have also fixed the problem (committed in 2.0.x, 2.1.x and 2.2.x). See: https://issues.apache.org/jira/browse/MYFACES-3918 I think the solution is ok, but an extra test could be also helpful. regards, Leonardo 2014-08-20 2:45 GMT-05:00 l.pe...@senat.fr

Re: Performance issue with component bindings and Ajax requests

2014-08-20 Thread Marc Heinz
(); } return formRoot; } public void setFormRoot(UIPanel formRoot) { // Ignore. } // Public method to rebuild the current form content in reaction to updates fired from Ajax managed components. public void rebuildForm

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

Performance issue with component bindings and Ajax requests

2014-08-19 Thread Marc Heinz
(); } return formRoot; } public void setFormRoot(UIPanel formRoot) { // Ignore. } // Public method to rebuild the current form content in reaction to updates fired from Ajax managed components. public void rebuildForm() { if (formRoot

Re: Performance issue with component bindings and Ajax requests

2014-08-19 Thread Leonardo Uribe
) { // Ignore. } // Public method to rebuild the current form content in reaction to updates fired from Ajax managed components. public void rebuildForm() { if (formRoot == null) { formRoot = new UIPanel(); // The whole component tree

Adding ajax event to a DIV element

2013-12-17 Thread RICARD MORE FARRES
Hi, I'm testing beta version of MyFaces 2.2 and I'm facing following problem. I just want to add an ajax call directly to a div element, as explained in last example of this page: http://jsflive.wordpress.com/2013/08/08/jsf22-html5/#elements The problem is that if I set the jsf:id to the div

Problems with ajax-requests after server restart

2013-11-13 Thread Georg Portwich
Hi, After the restart of the server some ajax requests are not executed correctly. It seemed to be so, that in the send data some information is missing. The problem occurs only with the first click after the server start. The second and all later requests are working properly. We

Re: Problems with ajax-requests after server restart

2013-11-13 Thread Karl Kildén
/FullAjaxExceptionHandler r cheers On 13 November 2013 09:43, Georg Portwich portw...@blueskye.de wrote: Hi, After the restart of the server some ajax requests are not executed correctly. It seemed to be so, that in the send data some information is missing. The problem occurs only with the first click after

inputSuggest (non AjaX) with objects and converter

2013-03-06 Thread Porryman
marca; Thank you very much in advance -- View this message in context: http://myfaces.10567.n7.nabble.com/inputSuggest-non-AjaX-with-objects-and-converter-tp114348.html Sent from the MyFaces - Users mailing list archive at Nabble.com.

Re: Migration to TomEE/CODI: very strange AJAX issue during regression testing

2012-11-23 Thread Werner Punz
, 2012 9:48 AM Subject: Re: Migration to TomEE/CODI: very strange AJAX issue during regression testing If there is an EL struggling problem then this is probably a tomcat issue. Tomcat is providing the EL in tomee to my knowledge. Werner Am 22.11.12 00:07, schrieb Howard W. Smith, Jr.: I

Re: Migration to TomEE/CODI: very strange AJAX issue during regression testing

2012-11-22 Thread Werner Punz
DatePicker) that has *button* beside the textInput 2. Page that shows FROM and TO p:calendar components *without the button* beside textInput; this is an issue and *not* working as designed; this happens *sporadically after AJAX update* on the page, after I click the p:calendar button

Re: Migration to TomEE/CODI: very strange AJAX issue during regression testing

2012-11-22 Thread Mark Struberg
:48 AM Subject: Re: Migration to TomEE/CODI: very strange AJAX issue during regression testing If there is an EL struggling problem then this is probably a tomcat issue. Tomcat is providing the EL in tomee to my knowledge. Werner Am 22.11.12 00:07, schrieb Howard W. Smith, Jr.: I

Re: Migration to TomEE/CODI: very strange AJAX issue during regression testing

2012-11-22 Thread Howard W. Smith, Jr.
- Original Message - From: Werner Punz werner.p...@gmail.com To: MyFaces Discussion users@myfaces.apache.org Cc: Sent: Thursday, November 22, 2012 9:48 AM Subject: Re: Migration to TomEE/CODI: very strange AJAX issue during regression testing If there is an EL struggling problem

Re: Migration to TomEE/CODI: very strange AJAX issue during regression testing

2012-11-22 Thread Howard W. Smith, Jr.
; this happens *sporadically after AJAX update* on the page, after I click the p:calendar button to update the data on the page via AJAX Someone please open an issue for this, and let me know if this is a TomEE/OpenEJB issue *or* MyFaces Core 2.1.9 and CODI issue. This is the reason why I am

Migration to TomEE/CODI: very strange AJAX issue during regression testing

2012-11-21 Thread Howard W. Smith, Jr.
the textInput 2. Page that shows FROM and TO p:calendar components *without the button*beside textInput; this is an issue and *not* working as designed; this happens *sporadically after AJAX update*on the page, after I click the p:calendar button to update the data on the page via AJAX Someone

Re: Migration to TomEE/CODI: very strange AJAX issue during regression testing

2012-11-21 Thread Howard W. Smith, Jr.
components *without the button* beside textInput; this is an issue and *not* working as designed; this happens *sporadically after AJAX update* on the page, after I click the p:calendar button to update the data on the page via AJAX Someone please open an issue for this, and let me know

Re: Migration to TomEE/CODI: very strange AJAX issue during regression testing

2012-11-21 Thread Howard W. Smith, Jr.
the button* beside textInput; this is an issue and *not* working as designed; this happens *sporadically after AJAX update* on the page, after I click the p:calendar button to update the data on the page via AJAX Someone please open an issue for this, and let me know if this is a TomEE

Re: Migration to TomEE/CODI: very strange AJAX issue during regression testing

2012-11-21 Thread Howard W. Smith, Jr.
; this is an issue and *not* working as designed; this happens *sporadically after AJAX update* on the page, after I click the p:calendar button to update the data on the page via AJAX Someone please open an issue for this, and let me know if this is a TomEE/OpenEJB issue *or* MyFaces Core

Re: Migration to TomEE/CODI: very strange AJAX issue during regression testing

2012-11-21 Thread Howard W. Smith, Jr.
; this happens *sporadically after AJAX update* on the page, after I click the p:calendar button to update the data on the page via AJAX Someone please open an issue for this, and let me know if this is a TomEE/OpenEJB issue *or* MyFaces Core 2.1.9 and CODI issue. This is the reason why I am

Process ViewParams on AJAX request?

2012-06-13 Thread Thomas Andraschko
Hi, we introduced an global ajax poll (p:ajax) which possible polls several minutes over several pages. On some pages, we have viewParams and a registered preRenderView event. The poll triggers the preRenderView but does not process the viewParams again. Our viewParams are mapped

Re: no parallel ajax requests anymore with JSF 2.1?

2012-04-23 Thread Werner Punz
not allow parallel requests, I dont know about the Richfaces queue whether it is more flexible in this area. Werner Am 23.04.12 03:47, schrieb Paul Rivera: Hi Werner, I would have to agree with Michael. Doesn't this spec constraint of having ajax calls serialized make one of the best features

Re: no parallel ajax requests anymore with JSF 2.1?

2012-04-23 Thread Mark Struberg
, April 23, 2012 11:18 AM Subject: Re: no parallel ajax requests anymore with JSF 2.1? Hi Hard to say whether it is a good or bad feature, since I was not part of the discussion when they went for the serialized model I only can guess why it is like that. As I stated before, not being

Re: no parallel ajax requests anymore with JSF 2.1?

2012-04-22 Thread Paul Rivera
Hi Werner, I would have to agree with Michael.  Doesn't this spec constraint of having ajax calls serialized make one of the best features of ajax ineffective?  Assuming that we can manage these requests properly, I think that there is a real advantage of allowing concurrent ajax calls

Re: no parallel ajax requests anymore with JSF 2.1?

2012-04-22 Thread Scott O'Bryan
I actually disagree. The purpose of 'serialized' Ajax requests is that as events are queued and presumably reacted to on the client, they can be synchronized on the sever in the expected order. The main advantage of Ajax does not necessarily come in making concurrent requests, but rather

Re: Ajax update of a composite component within ui:repeat doesn't work

2012-04-17 Thread Marcus Büttner
: Monday, April 16, 2012 6:32 PM Subject: Re: Ajax update of a composite component within ui:repeat doesn't work Hi There was two issues solved in 2.1.7 related to ui:repeat: https://issues.apache.org/jira/browse/MYFACES-3415 [ui:repeat] field value disappears if validation error

Ajax update of a composite component within ui:repeat doesn't work

2012-04-16 Thread Marcus Büttner
Hi, This following example works with MyFaces 2.1.6 but not with 2.1.7. mycc.xhtml: cc:interface cc:attribute name=state type=ExampleModel.State/ /cc:interface cc:implementation h:selectBooleanCheckbox value=#{cc.attrs.state.state} f:ajax execute=@this render=@form/

Re: Ajax update of a composite component within ui:repeat doesn't work

2012-04-16 Thread Leonardo Uribe
Hi There was two issues solved in 2.1.7 related to ui:repeat: https://issues.apache.org/jira/browse/MYFACES-3415 [ui:repeat] field value disappears if validation error exists on current site https://issues.apache.org/jira/browse/MYFACES-3463 Refactor UIRepeat code to implement PSS algorithm

Re: Ajax update of a composite component within ui:repeat doesn't work

2012-04-16 Thread Mark Struberg
To: MyFaces Discussion users@myfaces.apache.org Cc: Sent: Monday, April 16, 2012 6:32 PM Subject: Re: Ajax update of a composite component within ui:repeat doesn't work Hi There was two issues solved in 2.1.7 related to ui:repeat: https://issues.apache.org/jira/browse/MYFACES-3415

Re: Ajax update of a composite component within ui:repeat doesn't work

2012-04-16 Thread Leonardo Uribe
@myfaces.apache.org Cc: Sent: Monday, April 16, 2012 6:32 PM Subject: Re: Ajax update of a composite component within ui:repeat doesn't work Hi There was two issues solved in 2.1.7 related to ui:repeat: https://issues.apache.org/jira/browse/MYFACES-3415 [ui:repeat] field value disappears

ANNOUNCE: Werner Punz on MyFaces Ajax and MyFaces Ext-Scripting

2012-04-06 Thread Kito Mann
I am pleased to announce a new Podcast with Werner Punz - JSFCentral Episode #25: Werner Punz on MyFaces Ajax and MyFaces Ext-Scripting In this podcast, JSFCentral editor-in-chief Kito D. Mann discusses MyFaces Ajax, MyFaces Extensions Scripting, and alternative JVM languages with Werner Punz

AJAX Request - No Cache

2012-04-03 Thread Thomas Andraschko
Hi, as far as i can see, the PartialViewContextImpl sets No-Cache to all AJAX requests. Is this required in all cases? We have an application with nearly static data which will changed only at night. Our search queries are implemented via URL params and the cache-header is set to expires at 22

Re: AJAX Request - No Cache

2012-04-03 Thread Werner Punz
Hi the ajax cache control as such is not part of the spec afair. But normally you can assume that only dynamic data is served hence the no-cache. (This is just a guess from me) The easiest way to enable caching might be over a servlet filter or a custom from the standard JSF Servlet derived

Re: no parallel ajax requests anymore with JSF 2.1?

2012-03-30 Thread Michael Heinen
of the JSF queue. Nick Baleavski from Richfaces said this also (07/2011): https://community.jboss.org/message/614023#614023 JSF 2 does not allow parallel AJAX requests, they are all being queued and then sent in the serial order. Another comment from Richfaces discussions, looking for concurrent

Re: no parallel ajax requests anymore with JSF 2.1?

2012-03-30 Thread Werner Punz
Baleavski from Richfaces said this also (07/2011): https://community.jboss.org/message/614023#614023 JSF 2 does not allow parallel AJAX requests, they are all being queued and then sent in the serial order. Another comment from Richfaces discussions, looking for concurrent requests: https

no parallel ajax requests anymore with JSF 2.1?

2012-03-29 Thread Michael Heinen
Hi all, I'm still converting my application (mayfaces, tomahawk and richfaces) from JSF 1.2 to 2.1. Now I noticed that parallel ajax requests are not working at all! E.g. a long running request which calculates something and parallel poll requests to fetch status or partial results until

Re: no parallel ajax requests anymore with JSF 2.1?

2012-03-29 Thread Milo van der Zee
that parallel ajax requests are not working at all! E.g. a long running request which calculates something and parallel poll requests to fetch status or partial results until the first request is finished. I stumbled over Werner's Blog (at http://werpublogs.blogspot.de/2011/07/apache

Re: onsumit not exeucted for ajax requests - alternative?

2012-02-06 Thread Werner Punz
Hi if you need to execute commands before any arbitrary ajax call then you can add your own global ajax request listener via jsf.ajax.addOnEvent(callback) The callback is called three times per request, same as if you would set it directly within the request, but on a global scale. http

Re: onsumit not exeucted for ajax requests - alternative?

2012-02-06 Thread Michael Heinen
can run in parallel (e.g. autocompletion, pulls) while others are blocking. Do you know why the simple onsubmit of a form is not executed for ajax requests? Michael Am 06.02.2012 14:02, schrieb Werner Punz: Hi if you need to execute commands before any arbitrary ajax call then you can add your

Re: onsumit not exeucted for ajax requests - alternative?

2012-02-06 Thread Werner Punz
The onsubmit is a simple callback coming from the dom tree, it is not executed during ajax because there is no form submit performed. Have in mind on some browsers you dont even get the event with special dom configurations (aka, simple form posts not by submit buttons etc...) or the event

Re: onsumit not exeucted for ajax requests - alternative?

2012-02-06 Thread Werner Punz
You can use the global listeners however, set yourself a marker class or an attribute in your form element which should trigger the listener and if you get an ajax request you can check for this marker whether you should intercept with your code or not. Just forgot to mention in your case

Re: onsumit not exeucted for ajax requests - alternative?

2012-02-06 Thread Michael Heinen
Werner, thanks for the explanation and pointing me to the Blog! I'll have a look any play around with this. Maybe RichFaces Queues are also an alternative for me because most of my ajax commands are from Richfaces. Thanks, Michael Am 06.02.2012 14:47, schrieb Werner Punz: You can use

Re: onsumit not exeucted for ajax requests - alternative?

2012-02-06 Thread Werner Punz
to the Blog! I'll have a look any play around with this. Maybe RichFaces Queues are also an alternative for me because most of my ajax commands are from Richfaces. Thanks, Michael Am 06.02.2012 14:47, schrieb Werner Punz: You can use the global listeners however, set yourself a marker class

Re: onsumit not exeucted for ajax requests - alternative?

2012-02-03 Thread Michael Heinen
Hi, onsubmit of the form is executed for the standard Command Button but not for an Ajax Button. I tried with myFaces 2.1.5, 2.0.11 and with mojarra 2.1.6 and 2.0.8. Here is a very simple sample: html xmlns=http://www.w3.org/1999/xhtml; xmlns:ui=http://java.sun.com/jsf/facelets

onsumit not exeucted for ajax requests - alternative?

2012-02-02 Thread Michael Heinen
Hi, I am currently migrating an application to JSF 2.1 I have a lot of ajax commands (richfaces) and some new f:ajax tags. My forms contain some js functions which should be called during onsubmit but unfortunately onsubmit is not called for ajax requests. How can I specify some JS functions

Re: onsumit not exeucted for ajax requests - alternative?

2012-02-02 Thread Milo van der Zee
Hello Michael, might be that 'onbegin' does what you want? MAG, Milo van der Zee On Thu, 2012-02-02 at 11:05 +0100, Michael Heinen wrote: Hi, I am currently migrating an application to JSF 2.1 I have a lot of ajax commands (richfaces) and some new f:ajax tags. My forms contain some js

Re: onsumit not exeucted for ajax requests - alternative?

2012-02-02 Thread Michael Heinen
der Zee On Thu, 2012-02-02 at 11:05 +0100, Michael Heinen wrote: Hi, I am currently migrating an application to JSF 2.1 I have a lot of ajax commands (richfaces) and some new f:ajax tags. My forms contain some js functions which should be called during onsubmit but unfortunately onsubmit

Re: Erros messages after ajax

2012-01-27 Thread Walter Mourão
For the record: using f:ajax/ instead of partialTriggers and partialSubmit it works fine. Walter Mourão http://waltermourao.com.br http://arcadian.com.br http://oriens.com.br 2012/1/25 Walter Mourão walter.mou...@gmail.com Hi folks, about this bug: Trinidad has no way to re-render

Antwort: [SPAM] Re: javax.faces.SEPARATOR_CHAR not working well together with AJAX

2011-06-16 Thread Christoph Dietze
I created an issue for this: https://issues.apache.org/jira/browse/MYFACES-3176 Von:Leonardo Uribe lu4...@gmail.com An: MyFaces Discussion users@myfaces.apache.org Datum: 15.06.2011 17:13 Betreff:[SPAM] Re: javax.faces.SEPARATOR_CHAR not working well together with AJAX Hi

javax.faces.SEPARATOR_CHAR not working well together with AJAX

2011-06-15 Thread Christoph Dietze
Hello, we changed the default SEPARATOR_CHAR from colon to underscore. However, that causes an Exception javax.faces.FacesException: Component with id:myid not found at org.apache.myfaces.renderkit.html.HtmlAjaxBehaviorRenderer.getComponentId(HtmlAjaxBehaviorRenderer.java:291) It looks like

Re: javax.faces.SEPARATOR_CHAR not working well together with AJAX

2011-06-15 Thread Leonardo Uribe
Hi I don't think use underscore could be a good choice, because for generated ids, the prefix is j_id, so methods like UIComponent.findComponent will not work correctly. I have checked it and it is a bug. It should use UINamingContainer.getSeparatorChar(FacesContext) instead a constant. Please

[TRINIDAD] non-PPR ajax update

2011-05-11 Thread Paul Mander
I'm using PPR extensively in an ipad web app I'm developing but there is one part of the application where I'm using a jquery ajax technique to load data dynamically. I use this for showing search results as you type and i found it much for responsive. I get the jquery ajax request top work

Re: [TRINIDAD] non-PPR ajax update

2011-05-11 Thread Paul Mander
:VODAFONEVODAFONE/option/select /code and when it is updated via jquery ajax load: select id=_id14:0:_id17 name=_id14:0:_id17 class=af_selectOneChoice_contentoption value=All/optionoption value=0:getFeature_Value02:AllAll/optionoption value=0:getFeature_Value02:LGLG/optionoption value=0:getFeature_Value02

Re: [TRINIDAD] non-PPR ajax update

2011-05-11 Thread Paul Mander
/optionoption value=0:getFeature_Value02:VODAFONEVODAFONE/option/select /code and when it is updated via jquery ajax load: select id=_id14:0:_id17 name=_id14:0:_id17 class=af_selectOneChoice_contentoption value=All/optionoption value=0:getFeature_Value02:AllAll/optionoption value=0

Re: [TRINIDAD] non-PPR ajax update

2011-05-11 Thread Paul Mander
'); var compid = $(this).attr('id'); TrPage._autoSubmit(formid,compid,event,1); return true; }); This works fine for the original request (that results from the page that is loaded from PPR). But when the page is refreshed from jquery ajax load, the form submission gets

Re: [TRINIDAD] non-PPR ajax update

2011-05-11 Thread Paul Mander
formid = $('form').attr('id'); var compid = $(this).attr('id'); TrPage._autoSubmit(formid,compid,event,1); return true; }); This works fine for the original request (that results from the page that is loaded from PPR). But when the page is refreshed from jquery ajax load

Re: [TRINIDAD] non-PPR ajax update

2011-05-11 Thread Scott O'Bryan
Paul, I think there is a number of issues with what you are doing here. As you probably know, TRINIDAD's ajax is not 'solely' about content delivery. It runs the JSF lifecycyle and updates the view state and a bunch of other things. While I don't know exactly why it's failing, I'm not surprised

Re: [TRINIDAD] non-PPR ajax update

2011-05-11 Thread Scott O'Bryan
that is loaded from PPR). But when the page is refreshed from jquery ajax load, the form submission gets to the server (I have a CustomFacesServlet theat delegates to the real one so i can see the requests coming in) nothing happens, the valueChangeListener doesn't get called. Ok - for now I'm

Re: [TRINIDAD] non-PPR ajax update

2011-05-11 Thread Werner Punz
Am 11.05.11 14:40, schrieb Scott O'Bryan: k there is a number of issues with what you are doing here. As you probably know, TRINIDAD's ajax is not 'solely' about content delivery. It runs the JSF lifecycyle and updates the view state and a bunch of other things. While I don't know exactly why

Failure to refocus on a field after a richfaces IE ajax submit

2011-02-18 Thread Mike Kienenberger
a4j:support to submit on click. When the second button is clicked, after the ajax submit, the focus needs to go back to the input text field. oncomplete=#{rich:element('newNumberInput')}.focus() That works fine in Firefox. The inputText gets focus. In Internet Explorer (6, 7, 8), the first button

Re: Use of trinidad stops AJAX from working on Mojarra

2010-10-25 Thread MAX STARETS
Alan, Could you file a Trinidad JIRA (bug) and upload a test case? Max On 10/23/2010 11:45 AM, Alan wrote: So I have started to use trinidad 2.0.0-alpha-2 on top of my application, which uses AJAX tags all over the place. After including trinidad in the library and making the indicated

Use of trinidad stops AJAX from working on Mojarra

2010-10-23 Thread Alan
So I have started to use trinidad 2.0.0-alpha-2 on top of my application, which uses AJAX tags all over the place. After including trinidad in the library and making the indicated web.xml and faces-config.xml changes, but without inserting any tr tags AJAX no longer works in my forms. The forms

RE: [Trinidad]Ajax polling in mobile devices

2010-09-13 Thread Seema Richard (UST, IND)
Hi, 1. I saw that tr:poll is not supported in Trinidad for mobile devices. What is the reason for such a limitation? 2. Is there any alternative to achieve the same? Thanks, Seema

[Trinidad]Ajax polling in mobile devices

2010-09-12 Thread Seema Richard (UST, IND)
Hi, I saw that tr:poll is not supported in Trinidad for mobile devices. Is there any alternative to achieve the same? Our requirement is to display the remaining time updated every second on the screen. Thanks, Seema

Re: ExtVal cross field validation + Ajax

2010-08-03 Thread Gerhard
and Courses in English and German Professional Support for Apache MyFaces 2010/8/2 Björn Voß voss.bjo...@googlemail.com Hi, I use the stack JSF 2 (RI 2.0.2) + ExtVal (2.0.4-SNAPSHOT) . With @Equals I do a simple email check. What I wanted to do is ajax validation and the equality is only

Re: ExtVal cross field validation + Ajax

2010-08-03 Thread Björn Voß
2.0.2) + ExtVal (2.0.4-SNAPSHOT) . With @Equals I do a simple email check. What I wanted to do is ajax validation and the equality is only checked if the user leaves the secound input field? Here are bean and facelet snipp: # bean snip public class EmailBean

ExtVal cross field validation + Ajax

2010-08-02 Thread Björn Voß
Hi, I use the stack JSF 2 (RI 2.0.2) + ExtVal (2.0.4-SNAPSHOT) . With @Equals I do a simple email check. What I wanted to do is ajax validation and the equality is only checked if the user leaves the secound input field? Here are bean and facelet snipp: # bean snip public class

Re: ExtVal cross field validation + Ajax

2010-08-02 Thread Gerhard
. What I wanted to do is ajax validation and the equality is only checked if the user leaves the secound input field? Here are bean and facelet snipp: # bean snip public class EmailBean { @Email //hibernate constrain @UniqueEmail //custom jr 303 annotation @NotEmpty

Re: ExtVal cross field validation + Ajax

2010-08-02 Thread Gerhard
) + ExtVal (2.0.4-SNAPSHOT) . With @Equals I do a simple email check. What I wanted to do is ajax validation and the equality is only checked if the user leaves the secound input field? Here are bean and facelet snipp: # bean snip public class EmailBean { @Email

Re: ExtVal cross field validation + Ajax

2010-08-02 Thread Gerhard
Support for Apache MyFaces 2010/8/2 Björn Voß voss.bjo...@googlemail.com Hi, I use the stack JSF 2 (RI 2.0.2) + ExtVal (2.0.4-SNAPSHOT) . With @Equals I do a simple email check. What I wanted to do is ajax validation and the equality is only checked if the user leaves the secound input

ajax error in SelectOneMenu on change event

2010-07-12 Thread Marcus Büttner
Hi, a small example: h:form id=myForm h:selectOneMenu id=selectMenu value=#{myBean.menuValue} valueChangeListener=#{myBean.menuValueChangedListener} f:selectItem itemValue=true itemLabel=Yes/ f:selectItem itemValue=false itemLabel=No/ f:ajax event=change render=output/

Re: ajax error in SelectOneMenu on change event

2010-07-12 Thread Werner Punz
Hi Markus this looks like a new bug to me, which I introduced with some performance patches I did last week, can you file a bugrepot on this one, I will fix it today. It is vital to get this out before the 2.0.1 release. Werner Am 12.07.10 11:48, schrieb Marcus Büttner: Hi, a small

Re: ajax error in SelectOneMenu on change event

2010-07-12 Thread Bruno Aranda
Uhm, just opened a new thread about the same bug. It is an uninitialized variable in the _AjaxUtils class. Cheers, Bruno On 12 July 2010 12:57, Werner Punz werner.p...@gmail.com wrote: Hi Markus this looks like a new bug to me, which I introduced with some performance patches I did last week,

Re: ajax error in SelectOneMenu on change event

2010-07-12 Thread Werner Punz
Never mind, I will do it myself and will get on it right away. Werner Am 12.07.10 13:57, schrieb Werner Punz: Hi Markus this looks like a new bug to me, which I introduced with some performance patches I did last week, can you file a bugrepot on this one, I will fix it today. It is vital to

Re: ajax error in SelectOneMenu on change event

2010-07-12 Thread Werner Punz
Am 12.07.10 14:02, schrieb Bruno Aranda: Uhm, just opened a new thread about the same bug. It is an uninitialized variable in the _AjaxUtils class. Jepp as I said I am working on it currently and again, thanks for reporting it, it is vital to get the bugs out. I introduced the bug with my

Re: ajax error in SelectOneMenu on change event

2010-07-12 Thread Werner Punz
Am 12.07.10 14:07, schrieb Werner Punz: Am 12.07.10 14:02, schrieb Bruno Aranda: Uhm, just opened a new thread about the same bug. It is an uninitialized variable in the _AjaxUtils class. Jepp as I said I am working on it currently and again, thanks for reporting it, it is vital to get the

Re: ajax error in SelectOneMenu on change event

2010-07-12 Thread Marcus Büttner
Thanks for fix. Now it works! Marcus Werner Punz schrieb: Am 12.07.10 14:07, schrieb Werner Punz: Am 12.07.10 14:02, schrieb Bruno Aranda: Uhm, just opened a new thread about the same bug. It is an uninitialized variable in the _AjaxUtils class. Jepp as I said I am working on it currently

Re: Problem with Ajax and ViewScope

2010-07-02 Thread Marcus Büttner
a) It was a temporary bug in the trunk (I did an svn update on the latest codebase to check) b) You might have forgotten to make the ViewScoped bean serializable. (In which case the latest trunk issues an error and the latest ajax scripts as well) c) Your event handlers supress the phases

concurrency problem ajax value change event and page submit

2010-07-02 Thread Marcus Büttner
and ajax value change event). The problem is I found four different behaviours which comes random (with firefox): 1.) 1. request: value change listener is called. 2. request actions is called (that's what I expected) 2.) 1. request value change listener is called. but the action request is missing

Re: concurrency problem ajax value change event and page submit

2010-07-02 Thread Werner Punz
Yes the issue is that you use a command button which in case of a single button maps automatically to input type=submit if you hit enter the ajax request is issued and subsequently parallely the full submit is issued as well. You can resolve that by using commandlinks or h:commandButton type

Re: Problem with Ajax and ViewScope

2010-06-30 Thread Werner Punz
the latest trunk issues an error and the latest ajax scripts as well) c) Your event handlers supress the phases In either case with a stock serializable page scoped bean thew example works as expected. I have closed the issue for now, please give me notice if the latest trunk works for you

Problem with Ajax and ViewScope

2010-06-29 Thread Marcus Büttner
, the javax.faces.ViewState component in html DOM tree is not updated by an ajax request and so always the first ViewState is restored instead of the last. I'm using the last MyFaces Snapshot (2.0.1-SNAPSHOT). Does anyone has an idea? Or is something wrong in my code? Thx for help. Regards Marcus

Re: Problem with Ajax and ViewScope

2010-06-29 Thread Werner Punz
) is restored. It looks like, the javax.faces.ViewState component in html DOM tree is not updated by an ajax request and so always the first ViewState is restored instead of the last. I'm using the last MyFaces Snapshot (2.0.1-SNAPSHOT). Does anyone has an idea? Or is something wrong in my code

Re: Problem with Ajax and ViewScope

2010-06-29 Thread Marcus Büttner
be: value1 value2) I've debugged and found, that in restoreView always the first ViewState (which was active after entering the page) is restored. It looks like, the javax.faces.ViewState component in html DOM tree is not updated by an ajax request and so always the first ViewState is restored instead

Re: Problem with Ajax and ViewScope

2010-06-29 Thread Werner Punz
be: value1 value2) I've debugged and found, that in restoreView always the first ViewState (which was active after entering the page) is restored. It looks like, the javax.faces.ViewState component in html DOM tree is not updated by an ajax request and so always the first ViewState is restored instead

Error handling in case of PPR was Re: Ajax Error Handler problem

2010-06-24 Thread Werner Punz
Ah ok, sorry it was a tad late... I personally agree, such a parameter would make sense, it definitely would be nice to route the errors thrown into an error tag in case of ajax instead of just pushing it up the server, you might drop a note in the devs list for that or even provide a patch

Re: How can I notice if there are facesmessages via ajax

2010-06-23 Thread Mark Li
delivery messages in ajax via jsf.ajax.request. Mark. On Jun 13, 2010, at 1:11 PM, Mark Li wrote: when i use jsf.ajax, i cant find out any information about facesmessage. I have looked into Event Object, but find nothing. My situation is, jsf.ajax.request(this, event

Re: How can I notice if there are facesmessages via ajax

2010-06-23 Thread Werner Punz
solution to me. anyway, the specification should give a solution about delivery messages in ajax via jsf.ajax.request. Mark. On Jun 13, 2010, at 1:11 PM, Mark Li wrote: when i use jsf.ajax, i cant find out any information about facesmessage. I have looked into Event Object, but find nothing. My

Re: How can I notice if there are facesmessages via ajax

2010-06-23 Thread 李析寒
delivery messages in ajax via jsf.ajax.request. Mark. On Jun 13, 2010, at 1:11 PM, Mark Li wrote: when i use jsf.ajax, i cant find out any information about facesmessage. I have looked into Event Object, but find nothing. My situation is, jsf.ajax.request(this, event

Ajax Error Handler problem

2010-06-23 Thread Mark Li
Hi everyone, There is any solution for Ajax Error Handler? the org.apache.myfaces.ERROR_HANDLER seems dont work. The following is my temp solution: I hack the code about ajax exception handler. because I try the error handler extension, it doesnot work for ajax. and I cant find out any

Re: How can I notice if there are facesmessages via ajax

2010-06-23 Thread Mark Li
a lot. further, I have submit a new topic about Ajax Error Handler problem, sorry for hacking the code again. Mark On Jun 23, 2010, at 9:00 PM, Werner Punz wrote: Hi Mark this would be a good idea to post the problem in issue tracker for the spec, so that it might be covered in a future

Re: How can I notice if there are facesmessages via ajax

2010-06-23 Thread Werner Punz
about Ajax Error Handler problem, sorry for hacking the code again. Mark On Jun 23, 2010, at 9:00 PM, Werner Punz wrote: Hi Mark this would be a good idea to post the problem in issue tracker for the spec, so that it might be covered in a future revision. Btw. a cleaner solution probably

Re: Ajax Error Handler problem

2010-06-23 Thread Werner Punz
Hia mark since you are directly on the response writer anyway, look at the ajax protocol it has an error part where you can drag in errors which are pushed into the ajax error listener queue automatically: partial-response error error-name.../error-name error-message.../error-message /error

Re: How can I notice if there are facesmessages via ajax

2010-06-23 Thread Werner Punz
a lot. further, I have submit a new topic about Ajax Error Handler problem, sorry for hacking the code again. Mark On Jun 23, 2010, at 9:00 PM, Werner Punz wrote: Hi Mark this would be a good idea to post the problem in issue tracker for the spec, so that it might be covered in a future

Re: Ajax Error Handler problem

2010-06-23 Thread Werner Punz
Werner Punz: Hia mark since you are directly on the response writer anyway, look at the ajax protocol it has an error part where you can drag in errors which are pushed into the ajax error listener queue automatically: partial-response error error-name.../error-name error-message.../error-message

Re: Ajax Error Handler problem

2010-06-23 Thread Mark Li
topic about How can I notice if there are facesmessages via ajax. On Jun 24, 2010, at 5:10 AM, Werner Punz wrote: Hia mark since you are directly on the response writer anyway, look at the ajax protocol it has an error part where you can drag in errors which are pushed into the ajax error

Re: How can I notice if there are facesmessages via ajax

2010-06-15 Thread Luca Graf (Inxmail GmbH)
use this function to decide: function requestContainsErrors() { return document.getElementById('severityForm:maximumSeverity').value = '2'; } Its a bit complicated because you must rerender the hidden field on ajax requests too. If you use richfaces you can put the hidden field

Re: [Tobago] Javascript reload after Ajax Request.

2010-06-14 Thread Volker Weber
Hi, in tobago 1.0.x is no support for tc:script during ajaxReload :-( It is planned for 1.5, but, afaik, not implemented yet. You can solve this in 1.0.x by using a tc:out with script content inside the ajax reloaded panel. eg. replace a tc:script file=scripts/myFunctions.js onload=jsFunction

Re: How can I notice if there are facesmessages via ajax

2010-06-14 Thread Jakob Korherr
Hi Mark and Werner, You could also add a h:messages component to the page and re-render this one in any ajax-request. If the dom-update for this component is not empty, then you know that there are FacesMessages. Regards, Jakob 2010/6/13 Werner Punz werner.p...@gmail.com Am 13.06.10 07:11

AW: [Tobago] Javascript reload after Ajax Request.

2010-06-14 Thread Abushammala, Hani (EXTERN: FTP)
...@googlemail.com [mailto:weber.vol...@googlemail.com] Im Auftrag von Volker Weber Gesendet: Montag, 14. Juni 2010 09:35 An: MyFaces Discussion Betreff: Re: [Tobago] Javascript reload after Ajax Request. Hi, in tobago 1.0.x is no support for tc:script during ajaxReload :-( It is planned for 1.5

  1   2   3   4   5   6   7   8   9   >