tag:blogger.com,1999:blog-5396570633771229267.post6486290728363522921..comments2024-03-03T14:43:52.399+01:00Comments on The BalusC Code: The benefits and pitfalls of @ViewScopedBalusChttp://www.blogger.com/profile/00299057045960008647noreply@blogger.comBlogger48125tag:blogger.com,1999:blog-5396570633771229267.post-39044676734767944492017-05-06T07:42:36.134+02:002017-05-06T07:42:36.134+02:00I was trying to adapt your sample recently, everyt...I was trying to adapt your sample recently, everything except for the "save" seems to work. I am not exactly sure why it doesn't<br /><br />I have the code <br /><br />https://github.com/trajano/jee/blob/master/jee-web/src/main/webapp/crud.xhtml<br /><br />and the respective bean <br /><br />https://github.com/trajano/jee/blob/master/jee-web/src/main/java/net/trajano/jee/web/Anonymoushttps://www.blogger.com/profile/06709900922358770930noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-63220147825260016752017-02-08T12:58:04.322+01:002017-02-08T12:58:04.322+01:00hi,
thanks for the article. what is instead dao i...hi,<br /><br />thanks for the article. what is instead dao i'm using entityManager and hibernate ? Can I do the same thing(almost) ?<br /><br />Thanks againAnonymoushttps://www.blogger.com/profile/05963703977636573131noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-71011997539942604792017-02-08T12:55:48.162+01:002017-02-08T12:55:48.162+01:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/05963703977636573131noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-90291266580343210062015-06-18T09:17:32.308+02:002015-06-18T09:17:32.308+02:00Thanks, nice postThanks, nice postBinh Nguyenhttps://www.blogger.com/profile/02069417158952884749noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-78156147457788292012015-04-06T11:13:13.094+02:002015-04-06T11:13:13.094+02:00I know that you wrote this sometime back, but I ju...I know that you wrote this sometime back, but I just wanted to thank you for getting me started on some basic JSF/JPA CRUD screens.Surface Detailhttps://www.blogger.com/profile/13976491263320698991noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-87367064965993633032015-04-04T09:06:03.400+02:002015-04-04T09:06:03.400+02:00Hello BalusC, I am using p:datatable to display va...Hello BalusC, I am using p:datatable to display value from list. I put this list in session map in one button click event. now i want to update this list from another jsf page which is open using javascript. after changing values I am getting updated list in controller but it is not updated in datatable. So if any idea then please let me know. Here note that i am not using session bean only use Anonymoushttps://www.blogger.com/profile/17827753574522145276noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-44845208185220955282014-08-05T19:49:12.199+02:002014-08-05T19:49:12.199+02:00Hi Balu,
I am facing difficulties in validation.
I...Hi Balu,<br />I am facing difficulties in validation.<br />If validation is failed to retain the row(i.e editable mode) but in my code getting refreshed the datatable.<br />Row Editing <br /><br /> <br /><br /> <br /> <br /> <br /> <br /> <br /> <br /><br /><br /> <br /> <br /> <br /><br />validate method<br /><br />public void validiD(FacesContext Siva_mshttps://www.blogger.com/profile/18390532615912641443noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-38720659692700411522014-03-28T07:45:40.925+01:002014-03-28T07:45:40.925+01:00Hi BaluC
We are using CDI with apache CODI,with C...Hi BaluC<br /><br />We are using CDI with apache CODI,with ConversationScoped annotation in the Backing beans, please lemme know how to use apache orchestra framework.<br /><br />Regards<br />Senthilsenthinilhttps://www.blogger.com/profile/16078357957809647669noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-79623690648774016802014-02-03T20:22:18.387+01:002014-02-03T20:22:18.387+01:00Hi, I tried a work around for the Jsf view bean is...Hi, I tried a work around for the Jsf view bean issue for both Jsf 2.1 & Jsf 2.2. Try the code in below link http://stackoverflow.com/questions/12182844/memory-leak-with-viewscoped-beanAnonymoushttps://www.blogger.com/profile/18177960890808616071noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-32747386029016800922013-10-05T11:17:32.934+02:002013-10-05T11:17:32.934+02:00Bauke, sorry to post this here didnt know how to g...Bauke, sorry to post this here didnt know how to get in tch<br /><br />case with ViewScoped beans not garbage collected ... even after session expiration and this would cause a memory leak ...<br /><br />i am using primefaces 3.5 and jsf 2.1.24 ...<br /><br />imagine people loging in and logging out of the application and leaving behind so many viewscoped beans in memory this could cause havoc ..sagsawhttps://www.blogger.com/profile/15677742756354975230noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-30299524218188588282013-09-26T03:51:47.510+02:002013-09-26T03:51:47.510+02:00Hello guys i am new to JSF,
How should i start abo...Hello guys i am new to JSF,<br />How should i start about JSF, any reference books or blogs that i can refer,<br />What are the best practices for JSF <br /><br />Help Me.... Maheshhttps://www.blogger.com/profile/01670136651964432138noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-53986013086225162042013-09-15T15:32:04.533+02:002013-09-15T15:32:04.533+02:00Hi, i have the same issue that had Lucio : i have ...Hi, i have the same issue that had <b>Lucio</b> : i have a view scoped bean with takes out some values out from the flash memory in a PostConstruct annotated method.<br /><br />Strangely, on page refresh the view scoped bean gets re-constructed with null values, since the flash memory lost his data after the refresh.<br /><br />How can i solve this issue?Anonymoushttps://www.blogger.com/profile/12786412945576993263noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-7678551241234688112013-07-06T07:08:32.719+02:002013-07-06T07:08:32.719+02:00Hi Balus,
Nice explanation indeed! I have been fac...Hi Balus,<br />Nice explanation indeed! I have been facing little problem, my all @viewscoped beans get initialized on server startup and publishing changes on server in Eclipse in development environment. @PostConstruct method gets called, i have code in @PostConstruct which should be called on view or page render instead of server startup. <br /><br />Please help me in this regard, will be Haseeb Mirzahttps://www.blogger.com/profile/00535666219265196920noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-18338602836675162972013-01-30T11:42:31.054+01:002013-01-30T11:42:31.054+01:00@Twittle: open the same page in multiple browser w...@Twittle: open the same page in multiple browser windows/tabs in the same session. You'll notice that the behavior is not the same and that they interfere all with each other.<br /><br />In order to learn how to choose the right bean scope, read <a href="http://balusc.blogspot.com/2011/09/communication-in-jsf-20.html#ManagedBeanScopes" rel="nofollow">Communication in JSF 2.0 - Managed Bean BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-59780355103657120022013-01-30T07:52:16.806+01:002013-01-30T07:52:16.806+01:00Hello, I have a really dumb question. (I am brand ...Hello, I have a really dumb question. (I am brand new to JSF/Beans/etc.) :)<br /><br />I ran you example then change the bean scope to SessionScoped and it worked exactly the same (at least as far as I could tell). <br /><br />Can you explain to me why the behavior is the same?<br /><br />Thanks!Twilitehttps://www.blogger.com/profile/01934672724579388860noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-79415941097336771282013-01-02T05:27:34.175+01:002013-01-02T05:27:34.175+01:00BalusC Is it possible to have two datatables in on...BalusC Is it possible to have two datatables in one jsf page, top and bottom ideal for typical master detail scenario? When I click radio button of top datatable, populate bottom datatable with rows based on master datatable. Could you be kind enough to provide some insight into this? <br /><br />ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-76514530857510538512012-11-30T05:42:47.423+01:002012-11-30T05:42:47.423+01:00Link for the issue mentioned for binding and @View...Link for the issue mentioned for binding and @ViewScoped<br /><br />http://java.net/jira/browse/JAVASERVERFACES-1492Tarqaronhttps://www.blogger.com/profile/01981932762541909762noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-51399077342455840132012-11-10T19:15:45.768+01:002012-11-10T19:15:45.768+01:001. The properties are been set on the Item instanc...1. The properties are been set on the Item instance itself. E.g. bean.getItem().setValue(newValue).<br /><br />2. It has the same effect as returning null.BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-11993674193265708572012-11-10T08:56:57.945+01:002012-11-10T08:56:57.945+01:00First of all, thank you very much for this very in...First of all, thank you very much for this very informative example !<br /><br />May I ask these questions:<br />1. I can't see any setItem() setter in the code, though 2 input fields are present (in Add and Save panels). I tried this example as shown (ie without setItem) and it works.<br />To me, it should not.<br />What am I missing ?<br /><br />2. In numerous doc around the net, managed Olivier2831https://www.blogger.com/profile/17994594377331676925noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-37752455402705929032012-07-11T11:44:28.139+02:002012-07-11T11:44:28.139+02:00Hi..
I am new to JSF. I have been trying to use t...Hi.. <br />I am new to JSF. I have been trying to use the function to update two list boxes based on the selection on one list box. The original ManagedBean was RequestScoped, but after adding it gives errors. Changing it to SessionScoped works, but then the page does not refresh and the selected values are always highlighted.<br />If I use ViewScoped and declare the bean Serializable, I get Neelam Singhhttps://www.blogger.com/profile/10113061284029838010noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-16113576826140250002012-06-17T09:45:33.107+02:002012-06-17T09:45:33.107+02:00Hi
Very nice tutorial on data table,i am having a...Hi <br />Very nice tutorial on data table,i am having a problem in data scroller,the data table doesn't get reset once i updated the value from the database.As such in your code i am having a table and below then i ma having add button and it will render a panel on click and when i click on save button in the add panel,it will render the table with the new row which is updated with the Rathihearshttps://www.blogger.com/profile/11459411154307226955noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-31021710169687716042012-03-08T14:05:37.695+01:002012-03-08T14:05:37.695+01:00Hi Balu,
I have a scenario where in a button acti...Hi Balu,<br /><br />I have a scenario where in a button action changes the value of some parameter x ( which is passed through url to the first page . I use viewParam for that )and moves to a new page.<br /><br />The first page bean myBean1 is in viewscope and second page bean myBean2 is also a viewscope bean.<br /><br />Now how I can pass the new value of x to the second bean myBean2 from Prajeesh Kumarhttps://www.blogger.com/profile/03711289767413904738noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-53490527654001230012012-02-03T05:12:51.995+01:002012-02-03T05:12:51.995+01:00hi BaluC,
Am using primefaces selectonemenu. Am f...hi BaluC,<br /><br />Am using primefaces selectonemenu. Am filling the data from mysql table when the page loads. If there is data in table no prob, its simply filling the data to selectonemenu. But if dont have data its throwing null pointer exception. how can i solve this issue. if no data in table it should not throw any error. <br /><br />thanks in advance<br />Sowmiya.Unknownhttps://www.blogger.com/profile/07604476083601858412noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-52174244080990218032012-02-03T05:12:31.757+01:002012-02-03T05:12:31.757+01:00hi BaluC,
Am using primefaces selectonemenu. Am f...hi BaluC,<br /><br />Am using primefaces selectonemenu. Am filling the data from mysql table when the page loads. If there is data in table no prob, its simply filling the data to selectonemenu. But if dont have data its throwing null pointer exception. how can i solve this issue. if no data in table it should not throw any error. <br /><br />thanks in advance<br />Sowmiya.Unknownhttps://www.blogger.com/profile/07604476083601858412noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-59831210286548676432012-02-03T05:11:59.052+01:002012-02-03T05:11:59.052+01:00hi BaluC,
Am using primefaces selectonemenu. Am f...hi BaluC,<br /><br />Am using primefaces selectonemenu. Am filling the data from mysql table when the page loads. If there is data in table no prob, its simply filling the data to selectonemenu. But if dont have data its throwing null pointer exception. how can i solve this issue. if no data in table it should not throw any error. <br /><br />thanks in advance<br />Sowmiya.Unknownhttps://www.blogger.com/profile/07604476083601858412noreply@blogger.com