tag:blogger.com,1999:blog-5396570633771229267.post4451141435257890630..comments2024-03-03T14:43:52.399+01:00Comments on The BalusC Code: Objects in h:selectOneMenuBalusChttp://www.blogger.com/profile/00299057045960008647noreply@blogger.comBlogger83125tag:blogger.com,1999:blog-5396570633771229267.post-46797632345412419172017-02-09T19:32:07.130+01:002017-02-09T19:32:07.130+01:00Hi Baluc
Thanks for the great post :)
I'm new...Hi Baluc<br /><br />Thanks for the great post :)<br />I'm new to JSF and facing one issue with h:selectOneMenu. i have three selectionItem values(All,Checked, Uncheked).whnever iam changing the value of the dropdown, value changelistener is getting triggered and view is getting updated.<br />I have to introduce one button that always will set the value of the dropdown to All. as part of Anonymoushttps://www.blogger.com/profile/17739012241511684127noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-45185518420635258252015-03-23T05:40:35.957+01:002015-03-23T05:40:35.957+01:00Hi,
Please is there any way to add Filter function...Hi,<br />Please is there any way to add Filter function to the standard JSF SelectOneMenu. I have a large list of objects to be showed in the SelectOneMenu that is why I prefer using native JSF component rather than using Primefaces one. However I am facing a problem with adding filter function to the component. Can you please help in this issue?Anonymoushttps://www.blogger.com/profile/17617149472047337805noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-87206007065750150822014-04-25T08:36:13.084+02:002014-04-25T08:36:13.084+02:00What do you eat to be so genius???
ty.What do you eat to be so genius???<br />ty.ztbhttps://www.blogger.com/profile/09762099361342851454noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-56682634716249706142014-01-28T02:50:23.161+01:002014-01-28T02:50:23.161+01:00Thankss you from Argentina!! You´re a genius!! Thi...Thankss you from Argentina!! You´re a genius!! This has helped me a lot!!<br />Anonymoushttps://www.blogger.com/profile/03667384738550026674noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-39071916659771650612013-09-14T09:27:53.171+02:002013-09-14T09:27:53.171+02:00Thank you!!!!! im very new to jsf and i have spent...Thank you!!!!! im very new to jsf and i have spent all day with this problem, the is a real time saver, please keep up the great work you do!Anonymoushttps://www.blogger.com/profile/18256563477115102591noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-67143829976683222842013-08-01T19:36:33.091+02:002013-08-01T19:36:33.091+02:00Thank you BalC. you're really great. you have...Thank you BalC. you're really great. you have been very helpful in all my development workhauntinghttps://www.blogger.com/profile/02544083472891428171noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-33797774761626378152013-02-22T02:58:30.249+01:002013-02-22T02:58:30.249+01:00Thanks dude, using a map backing bean is really a ...Thanks dude, using a map backing bean is really a bright idea. use the map keyset for display, then get the value (bean) of that keyset from the map when saving.Daniel Dayrithttps://www.blogger.com/profile/03191212383401681700noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-53776676268605837122012-12-28T11:33:18.112+01:002012-12-28T11:33:18.112+01:00hi,
facing issue in p:selectOneMenu
it's wo...hi,<br /><br />facing issue in p:selectOneMenu <br /><br />it's working fine when selectOneMenu is prepopulted,but giving validation error when poopulating on p:ajax callRitahttps://www.blogger.com/profile/00180905697886084981noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-90425697411214343492012-09-17T20:40:28.018+02:002012-09-17T20:40:28.018+02:00Hi, BalusC, thanks for the great post
For saving ...Hi, BalusC, thanks for the great post<br /><br />For saving on database purposes it worked well; <br />but I could not get it working when I get some object from database on editing purposes, i.e., the drop down does not show the current value being edited, it appears blank.<br /><br />you know what's may be wrong ??Rafael A P Nascimentohttps://www.blogger.com/profile/15473733733063935040noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-3856883586799597522012-05-09T17:20:47.584+02:002012-05-09T17:20:47.584+02:00Hi BalusC....great blog!....I hope you can help. I...Hi BalusC....great blog!....I hope you can help. I'm trying to do something that should be simple. I have a datatable containing a number of lines. Each line contains a selectonemenu that has a list of selectItems (which represent products with an id, name and category).<br /><br />I basically want it so that when a user changes the product in the select item, the next outputfield in the Fizehttps://www.blogger.com/profile/00832164358643060720noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-53529816738231055782012-05-09T00:50:11.598+02:002012-05-09T00:50:11.598+02:00You are a genius!!! You saved my day!!You are a genius!!! You saved my day!!thewolfhttps://www.blogger.com/profile/16495831642805795661noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-52120703638717940272012-05-09T00:49:42.475+02:002012-05-09T00:49:42.475+02:00You are a genius!!!You are a genius!!!thewolfhttps://www.blogger.com/profile/16495831642805795661noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-22425846240583325182012-03-29T09:22:52.941+02:002012-03-29T09:22:52.941+02:00This comment has been removed by the author.Ryanhttps://www.blogger.com/profile/02338934107064980720noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-18146178583842024972011-11-09T05:50:51.126+01:002011-11-09T05:50:51.126+01:00BalusC to the rescue, once again. :)BalusC to the rescue, once again. :)Umohhttps://www.blogger.com/profile/09205864295141005451noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-76097453217561479572011-11-09T05:50:28.524+01:002011-11-09T05:50:28.524+01:00This comment has been removed by the author.Umohhttps://www.blogger.com/profile/09205864295141005451noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-224080458815271112011-05-11T20:12:54.611+02:002011-05-11T20:12:54.611+02:00Hi Balu,
I am using h:selectOneMenu.In this, drop ...Hi Balu,<br />I am using h:selectOneMenu.In this, drop down value is not reseting on seletion of default.It shows previously saved/entered value.Please let me know how to clear/reset it.<br /><br />Regards<br />AnwarAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-52632659907632103412011-05-11T19:54:57.373+02:002011-05-11T19:54:57.373+02:00This comment has been removed by the author.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-15769443848558428832011-04-27T16:46:46.684+02:002011-04-27T16:46:46.684+02:00That map represents a fake database. You should do...That map represents a fake database. You should do your database access thing in the `find()` method.BalusChttps://www.blogger.com/profile/00299057045960008647noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-28069646488514968922011-04-27T15:52:44.123+02:002011-04-27T15:52:44.123+02:00hi,
a map is used in "using converter" s...hi,<br />a map is used in "using converter" section. is there a way not to use any map only converter. thanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-74766633120544505592011-02-19T04:24:54.994+01:002011-02-19T04:24:54.994+01:00I solved, it was stupid mistake of mine, this exam...I solved, it was stupid mistake of mine, this example works perfectly!!!<br /><br />Thanks for publishing this things!Unknownhttps://www.blogger.com/profile/12148515350874677916noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-28563910214063694062011-02-04T04:49:20.278+01:002011-02-04T04:49:20.278+01:00Balus, i most say, you are the best! sincerely i l...Balus, i most say, you are the best! sincerely i learned a looot from you. im starting with jsf, and for luck i found your blog, i learned a lot. thanks!!!<br /><br />now i have a question, i made just like you made this example, but it dosent display any item in my h:selectonemenu, i mean its blank. <br /><br />im using your DAO and DTO form the another tutorial, i bring the data good, i checkedLordFrutoshttps://www.blogger.com/profile/01390843960169772691noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-86298223559811699682010-08-27T20:03:52.781+02:002010-08-27T20:03:52.781+02:00h:selectOneMenu id='valBox'
styleClass=&#...h:selectOneMenu id='valBox'<br /> styleClass='selectOneMenu' title='Values' value='#{calVO.money.dollars}'<br /> <br />f:selectItems value='#{action.moneyMap}'<br /><br />f:converter converterId='moneyConverter'<br />h:selectOneMenuUnknownhttps://www.blogger.com/profile/09000953078832876635noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-24713582719435248712010-07-10T15:16:14.040+02:002010-07-10T15:16:14.040+02:00you are the best maaaaaaan , thanks a millionyou are the best maaaaaaan , thanks a millionMonkeyhttps://www.blogger.com/profile/14876842262861712484noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-4798285410618631382010-07-07T22:01:56.524+02:002010-07-07T22:01:56.524+02:00This is what I have
facilities.add(new SelectItem...This is what I have<br /><br />facilities.add(new SelectItem("This is Test", fac.getName()));<br /><br />Where facilities is List facilities, and fac is an Entity object. Then my h:selecOneMenu just have <br /><br />h:selectOneMenu id="facility" value="#{document.facility}"> //In managed bean, facility is type String as well<br /> f:selectItems value=&Thang Phamhttps://www.blogger.com/profile/12898880509356389303noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-50695948491028411852010-07-07T21:56:53.344+02:002010-07-07T21:56:53.344+02:00This comment has been removed by the author.Thang Phamhttps://www.blogger.com/profile/12898880509356389303noreply@blogger.com