tag:blogger.com,1999:blog-5396570633771229267.post5662663897567135736..comments2024-03-03T14:43:52.399+01:00Comments on The BalusC Code: Stateless JSFBalusChttp://www.blogger.com/profile/00299057045960008647noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-5396570633771229267.post-88030947054481798112014-07-03T19:44:28.342+02:002014-07-03T19:44:28.342+02:00BalusC,
Is it possible to use this approach for p...BalusC,<br /><br />Is it possible to use this approach for pages containing multiple forms and make only some of these forms stateless, while other forms stay statefull.<br /><br />I tried to make a simple example with 2 forms, and wrap one form in . However, both forms became stateless.Anonymoushttps://www.blogger.com/profile/10135923432955296774noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-71237379550786332802013-08-26T20:20:34.311+02:002013-08-26T20:20:34.311+02:00Thank you. You are wonderful. I am new in JSF and ...Thank you. You are wonderful. I am new in JSF and I am going to use it with primefaces in a new project. To be honest with you, I am little bit worried about that since no one in our company use JSF and I suggested to develope this project with JSF & Primefaces. Do you think I am in right path? I try my best to read all your articles. Thank you again.Anonymoushttps://www.blogger.com/profile/10199879198365233744noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-55093047965480605472013-08-26T20:07:13.834+02:002013-08-26T20:07:13.834+02:00Sorry I had not looked at the whole input tag.
inp...Sorry I had not looked at the whole input tag.<br />input type="hidden" name="javax.faces.ViewState" id="j_id1:javax.faces.ViewState:0" value="stateless" autocomplete="off" /<br />As you see the value is "stateless"Anonymoushttps://www.blogger.com/profile/10199879198365233744noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-15707927981580970972013-08-26T20:05:09.218+02:002013-08-26T20:05:09.218+02:00@Gita: check the input value, not the name.@Gita: check the input value, not the name.BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-28793706664700627772013-08-26T19:47:24.639+02:002013-08-26T19:47:24.639+02:00I did as you mentioned,using transient attribute i...I did as you mentioned,using transient attribute in view tag, but still in source code, I see<br /><input type="hidden" name="javax.faces.ViewState" .....Anonymoushttps://www.blogger.com/profile/10199879198365233744noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-56814710070331182362013-08-14T23:32:30.415+02:002013-08-14T23:32:30.415+02:00Hey,
I (using mojarra 2.1.2) realized the view tre...Hey,<br />I (using mojarra 2.1.2) realized the view tree is recreated every time even if I have a session.<br />Am I right that performance issue does not only come from the fact the view state is stored for forms, but also from the time cost of rebuilding the view tree on every request?<br /><br />I don't understand that if view state is stored for every session, why does the view tree need palkonyveshttps://www.blogger.com/profile/11665599490066388736noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-80034601469924980712013-04-24T02:38:12.637+02:002013-04-24T02:38:12.637+02:00Does the jsf stateless view feature make the omni ...Does the jsf stateless view feature make the omni faces enableRestorableView tag obsolete?httPantshttps://www.blogger.com/profile/03607570778737134231noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-15282108024672603202013-03-15T15:40:51.056+01:002013-03-15T15:40:51.056+01:00@Liyu: it will obviously break where state is requ...@Liyu: it will obviously break where state is required, such as in ajax postbacks which involve conditional renders.BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-23643348583946503132013-03-15T15:39:45.450+01:002013-03-15T15:39:45.450+01:00It seems that feature broken with AJAX Post redire...It seems that feature broken with AJAX Post redirect, or with RichFaces4.2, If I call with stateless enabled. it called the function, but the rendered result is empty, for example: <br /><br />Liyu Wanghttps://www.blogger.com/profile/07992722807195004429noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-19156461849122576132013-02-27T08:52:37.103+01:002013-02-27T08:52:37.103+01:00Hi BalusC. Can you explain a bit on how ajax reque...Hi BalusC. Can you explain a bit on how ajax request would work with stateless mode. So take a case of two selectOneMenu, where the selection of one change the values of the other. In stateful JSF, we have scoped, then upon selection of one selectOneMenu, we update the list of the second selectOneMenu in the backend, then re-render the second list. How do we do that now with JSF stateless, BalusCThang Phamhttps://www.blogger.com/profile/12898880509356389303noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-47530302891914377292013-02-22T04:09:54.894+01:002013-02-22T04:09:54.894+01:00BalusC you're the man! Thanks so much for this...BalusC you're the man! Thanks so much for this update! Very appreciated. I have two questions for you, firstly, what do you mean we shouldn't use SessionScoped? I thought that was stored in the http session map? How does this affect those beans? Unless you only meant that it would defeat the purpose of stateless jsf.<br />2nd questions, does this in any way require a change in the way we gabriel!https://www.blogger.com/profile/00412813526639585880noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-13584321340364099962013-02-15T02:58:23.744+01:002013-02-15T02:58:23.744+01:00@Richard: just in master template. Assuming that y...@Richard: just in master template. Assuming that you've XML namespace declarations in <html> tag, then you can put the <f:view> as immediate child, around the <h:head> and <h:body>.<br /><br />@DWuysan: yes, <f:ajax will keep working, but you can't use a view scoped bean, it would be recreated on every request. You'd need to fiddle with request parameters toBalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-62786401483108566632013-02-15T02:55:58.622+01:002013-02-15T02:55:58.622+01:00Will it work when using f:ajax?Will it work when using f:ajax?DWuysanhttps://www.blogger.com/profile/16334023173085993626noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-51872677683125375622013-02-15T02:52:26.626+01:002013-02-15T02:52:26.626+01:00BalusC,
Love your work!
I haven't used the f...BalusC,<br /><br />Love your work!<br /><br />I haven't used the f:view tag for many years since moving to Facelets. Is there a way to do this without re-introducing it?<br /><br />If not, where should f:view be placed in order to ensure it preempts any stateful initialization?<br /><br />Regards,<br /><br />Richard.Richardhttps://www.blogger.com/profile/11191015489042575122noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-83333215295867601072013-02-12T17:15:17.866+01:002013-02-12T17:15:17.866+01:00It concerns the JSF view state (the JSF component ...It concerns the JSF view state (the JSF component tree state). It's by default stored in the session scope and identified by javax.faces.ViewState hidden input field.BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-91694463745514968982013-02-12T17:08:01.016+01:002013-02-12T17:08:01.016+01:00I don't think I get it. Isn't @RequestScop...I don't think I get it. Isn't @RequestScoped already "stateless"? How is that different?Anonymoushttps://www.blogger.com/profile/01700407089335561362noreply@blogger.com