tag:blogger.com,1999:blog-5396570633771229267.post1316718373797503310..comments2024-03-29T00:04:12.306+01:00Comments on The BalusC Code: Reset non-processed input components on ajax updateBalusChttp://www.blogger.com/profile/00299057045960008647noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-5396570633771229267.post-8996590185660927002015-04-20T12:39:01.207+02:002015-04-20T12:39:01.207+02:00Thank you Bauke. I just wanted to give an update o...Thank you Bauke. I just wanted to give an update on latest RF 4.5 (around Aug 2014): The ResetInputAjaxListenr doesn`t work since RF EPVC has limited the visiting of activator with a fix for <a href="https://issues.jboss.org/browse/RF-13785" rel="nofollow">RF-13785: limit component visiting to RenderResponsePhase</a>. As a result the <i>getRichFacesRenderIds()</i> returns an empty list except forAnonymoushttps://www.blogger.com/profile/03624672397595979854noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-69540459703404817602014-07-23T12:33:09.949+02:002014-07-23T12:33:09.949+02:00hi ,
i have implemented the code you provide but...hi , <br /><br />i have implemented the code you provide but unable to resolve the problem. <br /><br />actually i have page in which few checkboxes are there which is of primefaces implementation which are not geting cleared after validation fails , and i included omnifaces jar files but unable resolve the problem , could u please help me outsunnyhttps://www.blogger.com/profile/01462621437786694109noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-65697581009973797282013-10-04T07:06:12.624+02:002013-10-04T07:06:12.624+02:00Is any library compatible with JSF 1.2 ? I will ap...Is any library compatible with JSF 1.2 ? I will appreciate any help.Juliánhttps://www.blogger.com/profile/10445454966228170740noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-8568574683341414412013-06-05T09:11:53.784+02:002013-06-05T09:11:53.784+02:00i want to update p:output label from back bean wit...i want to update p:output label from back bean without any call to method, i am running thread from which i want to update this component after every second... Please help me as soon as possibleCoolPicshttps://www.blogger.com/profile/06625346329948517006noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-57729011471950379392013-05-23T19:21:22.919+02:002013-05-23T19:21:22.919+02:00I just found out that Primefaces also has a soluti...I just found out that Primefaces also has a solution for this problem, so if you're having the problem I described in my past post, just use "RequestContext.getCurrentInstance().reset("your_form_id");" instead of "ResetInputAjaxActionListener#processAction" with null as parameter.Tiagohttps://www.blogger.com/profile/13916397841517617977noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-86474539810446868362013-05-23T19:03:12.120+02:002013-05-23T19:03:12.120+02:00Nice solution, but for those using a primefaces d...Nice solution, but for those using a primefaces datatable with rowSelection as their "updater", unfortunatelly "f:actionListener" doesn't seem to be an option. My workaround was to use the attribute "listener" in "p:ajax". I registered as my p:ajax listener a method in my been that calls "ResetInputAjaxActionListener#processAction". As Tiagohttps://www.blogger.com/profile/13916397841517617977noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-20432372998305462142013-05-23T19:01:13.868+02:002013-05-23T19:01:13.868+02:00This comment has been removed by the author.Tiagohttps://www.blogger.com/profile/13916397841517617977noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-30243897014862676862013-04-04T18:44:26.326+02:002013-04-04T18:44:26.326+02:00@Gigi: feel free to fork your own for portlets.@Gigi: feel free to fork your own for portlets.BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-32341155924027605752013-04-04T17:47:33.480+02:002013-04-04T17:47:33.480+02:00I read that omnifaces is not designed for portlet,...I read that omnifaces is not designed for portlet, but this listener in particular, works in portlet context?<br />Luigihttps://www.blogger.com/profile/06053991780902868815noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-38187816650827229412013-02-27T10:40:30.552+01:002013-02-27T10:40:30.552+01:00I'm not sure if this is the place to ask it, b...I'm not sure if this is the place to ask it, but... It seems that the doing too much "visitTree" , In my scenario this causes a not event rendered elements to try to invoke their EL expression in the value attribute which cause eventually Null Pointer Exceptions, But I don't want to change my code by adding Null Pointer , that's why I made their render condition to be false,Danielhttps://www.blogger.com/profile/11064939484786753824noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-39256746756918561962012-10-27T15:22:28.627+02:002012-10-27T15:22:28.627+02:00Hello
We are facing a critical issue with our app...Hello<br /><br />We are facing a critical issue with our application. It would be helpful if anyone can give some ideas<br /><br />We are having 4 tabs ( using prime faces), the page is same ( using render condition to display based on tab). The page is bind to entity and on every click of tab we are hitting the DB and getting the data and setting in view scope.<br /><br />The problem we are Praveenhttps://www.blogger.com/profile/05575334486784950730noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-37514079835624279112012-05-31T10:20:26.588+02:002012-05-31T10:20:26.588+02:00Hi BalusC
I'm currently getting my hands dirt...Hi BalusC<br /><br />I'm currently getting my hands dirty with my first JSF2 project and I got always a little feeling like fixing the framework with each step I try.<br /><br />First f:ajax broken because formIds need to be defined all the time and now this annoying feature of stale expression evaluation.<br /><br />Thanks to your ResetListener! It helps a great deal.<br /><br />I think i Antibrummhttps://www.blogger.com/profile/05358039124610049468noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-29669076911771067952012-04-23T13:54:29.089+02:002012-04-23T13:54:29.089+02:00niceniceAsif Razahttps://www.blogger.com/profile/14292723147043836922noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-42280813462281226912012-04-10T22:15:56.808+02:002012-04-10T22:15:56.808+02:00I'm trying to use this with an actionLink that...I'm trying to use this with an actionLink that uses EL 2.2 / JSF2 to call an action method with a parameter:<br /><br /><br /> <br /> <br /><br />I've abbreviated the above, but I know from debugging that the reset-listener is getting executed. However, JSF then throws a NullPointerExcetion when it tries to bind the method argument to the action method. It seems like the method spentmileshttps://www.blogger.com/profile/12597621552024292211noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-59585175331931345162012-03-30T06:12:53.104+02:002012-03-30T06:12:53.104+02:00@pandoo: the aforementioned issue has been fixed! ...@pandoo: the aforementioned issue has been fixed! Thank you for reporting.BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-61123677572870182092012-03-29T11:30:35.118+02:002012-03-29T11:30:35.118+02:00very nice idea! There seems to be a problem if you...very nice idea! There seems to be a problem if you decide to register the ResetInputAjaxActionListener globally in your faces-config.xml. You need to delegate the event to the next action listener (which normally is the jsf action listener called 'ActionListenerImpl'). Just make sure that the constructor from ResetInputAjaxActionListener takes a ActionListener parameter and assigns it to pandoohttps://www.blogger.com/profile/06796229717746403751noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-54703826010651668822012-03-26T05:27:43.726+02:002012-03-26T05:27:43.726+02:00Also, if the input component is included in the aj...Also, if the input component is included in the ajax process, it won't be resetted.BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-76904431065573815852012-03-24T23:59:06.316+01:002012-03-24T23:59:06.316+01:00The action listener is intented to be used on form...The action listener is intented to be used on forms/buttons which are supposed to update the form by preparing the values in the action(listener) method. If you don't want to do this, just don't use it :)BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-74375892297942346172012-03-24T22:04:10.043+01:002012-03-24T22:04:10.043+01:00Hello Balusc,
nice to hear from you again!
In out...Hello Balusc,<br />nice to hear from you again!<br /><br />In out project we had some discussion how we should handle this case.<br />We think that " JSF should reset the input component's value" is the best approach in general, but it may be uncomfortable for the user, when she changed a long string, like "92827272744" or an email adress, which validation fails just as smithhttps://www.blogger.com/profile/00459045501699146351noreply@blogger.com