How to dynamic construct checkbox and get the selected status
Hello. I'm new to the JSF development. I need to dynamically generate the table data based on the selection of database table name . The first column is the checkbox which will allow user to select one or more rows for modification, deletion, etc. Here is the partial code that i wrote to add checkbox to the first column of the table in the backing bean. I would like to generate the same checkbox binding as we did from Design Palette.
<webuijsf:checkbox binding="#{UpdateTable.checkbox}" id="checkbox" selected="#{UpdateTable.selectedRow}"/>
Checkbox checkbox = new Checkbox();
checkbox.setValueBinding("name", getApplication().createValueBinding("#{currentRow.value['ROWID_VALUE']}"));
checkbox.setValueBinding("selected", getApplication().createValueBinding("#{UpdateTable.selectedRow}"));
tableColumn1.getChildren().add(checkbox);
Once user checked the box, the backing bean should be able to catch the event.
* Records whether or not the current row should be marked as selected,
* based on the state of the checkbox.
public void setSelectedRow(boolean b) {
System.out.print("click");
TableRowDataProvider rowdp = (TableRowDataProvider) getBean("currentRow");
RowKey rowKey = rowdp.getTableRow();
if (checkbox.isChecked()) {
selectedRows.add(rowKey);
} else {
selectedRows.remove(rowKey);
But it's not working as I thought. I'm not sure if I can binding selected with backing bean attribute like I did above. Please help!!!
Edited by: askMore on Aug 6, 2009 12:25 PM
dt cust min max
1 a 100 200
1 b 300 400
1 c 500 600
2 a 200 300
2 b 400 500
2 c 600 700
CREATE OR REPLACE FUNCTION scott.rowtocol(p_slct IN VARCHAR2,p_dlmtr IN VARCHAR2 DEFAULT
RETURN VARCHAR2 AUTHID CURRENT_USER
AS
TYPE c_refcur IS REF CURSOR;
lc_str VARCHAR2 (4000);
lc_colval VARCHAR2 (4000);
lc_colval2 VARCHAR2 (4000);
c_dummy c_refcur;
BEGIN
OPEN c_dummy FOR p_slct;
LOOP
FETCH c_dummy
INTO lc_colval,lc_colval2;
EXIT WHEN c_dummy%NOTFOUND;
lc_str := lc_str || p_dlmtr || lc_colval || '=' || lc_colval2;
END LOOP;
CLOSE c_dummy;
RETURN SUBSTR (lc_str, 2);
END;
SQL> SELECT DISTINCT a.dt,
rowtocol
( 'SELECT cust , min FROM tst WHERE dt = '
|| ''''
|| a.dt
|| ''''
) AS min ,
rowtocol
( 'SELECT cust , max FROM tst WHERE dt = '
|| ''''
|| a.dt
|| ''''
) AS max
FROM tst a;
2 3 4 5 6 7 8 9 10 11 12 13 14
DT MIN MAX
1 a=100,b=300,c=500 a=200,b=400,c=600
2 a=200,b=400,c=600 a=300,b=500,c=700
Similar Messages
-
Hello there,I delete my scruff application on the 8/05/13. Receipt N: 184052577343. And I was charged ammount of £ 16.99on the 15/05/13. I t's a Subscription Renewal. How can I stop it and get the refund of this ammount back on my account? Thank you!!
There are instructions on this page for managing and stopping auto-renewing subscriptions (deleting an app won't stop it) : http://support.apple.com/kb/HT4098
In terms of a refund, what does it say on the app's description page in the store (a lot say that refunds aren't given) ? But you can try contacting iTunes Support and see if they will refund or credit you : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption -
I bought an iTune gift card for myself and sent it to my e-mail address. I have waited over an hour and the e-mail showing the gift card has not arrived. How do I find it and get the credit put into my iTunes account so that I can buy some music?
Oh hold on - sudden development!
I panicked and force-shut down my computer because it froze after I clicked on the 'Reset Cache' option, then I logged back on and noticed the Cloud symbol next to the missing song. I clicked it, and it's finally downloaded properly! <3
Mate, thank you so much for helping me out! xxx -
Need help to get access to iTunes store. I bought an iTunes card bor buying on iTunes store.
I forgot the answers for security questions, how can I reset them and get the access back to the iTunes store?If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you won't get the reset option - you will need to contact iTunes Support or Apple to get them reset.
e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then 'Forgotten Apple ID security questions'
or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312 . Or you could change to 2-step verification : http://support.apple.com/kb/HT5570 -
bought the HD season version of breaking bad, however I only need the regular @ 19.95. How can I change this and get the difference refunded?
When you purchase an HD video on a supported device or computer, only HD video will be downloaded. To download the SD version, you need to download the video again from your Purchased page. Conversely, if you purchase an HD video on an unsupported device, the SD version will be downloaded. Then, you will need to download the HD version from your Purchased page. Learn more about downloading previous purchases."
iTunes: Purchasing and viewing HD videos -
How to populate listbox on a screen and get the selected record.
I have place a edit box and converted to listbox .
It should diplay T001-Bukrs values.
When the user selects a value I should get the selected value ...
How can I do that?
The screen is a '0100'. not the normal 1000 selection screen.
Regards.
Erkan.Hi
You can try something like this to populate the listbox
type-pools: VRM.
data: l_t_values type vrm_values with header line,
l_wa_ce_conc type pa0001.
clear: l_wa_ce_conc,
l_t_values.
refresh: l_t_values.
select cod_ce_conc
des_ce_conc
into corresponding fields of l_wa_ce_conc
from pa0001
l_t_values-key = l_wa_ce_conc-cod_ce_conc.
l_t_values-text = l_wa_ce_conc-des_ce_conc.
append l_t_values.
endselect.
call function 'VRM_SET_VALUES'
exporting
id = 'p0061-cod_ce_conc' <=== Your Dynpro field
values = l_t_values[]
exceptions
id_illegal_name = 1
others = 2.
if sy-subrc <> 0.
message e398(00) with text-001.
endif. -
When I open a HTML document in Safari rather then getting an image, I get a ? in a box. Why is this and how can I change it to get the images back?
monkeyde,
You are getting entagled in the two confusing meanings of the term pixels, namely as a unit identical to points and equalling 1/72 inch, and the basic component of raster images (and effects).
You can read on in this very recent thread:
Is there a way to get Illustrator to know how many pixels are in an inch? -
How to read spool file and get the spool file number
Hey everyone.
I created a program ztemp that is calling another program ztemp2 within, ztemp2 creates a spool file. Now the requirement is I need to write a code within ztemp to download that spool request and then convert it to the pdf file. I know I can use program rstxpdft4 to convert the spool file to the PDF but for this I need to give the spool number, so can you please tell me how can I get the spool number and then fetch it to the program rstxpdft4 .
Thank you.
Rhul goelHi,
Please check the [link|Convert ABAP List to PDF and display without downloading first; (Rich's reply) and get the spool similarly.
Or read from table TSP01 to get the latest spool using sy-uname.
Regards,
Srini. -
I purchased a song and when downloading there was an error. No error on the other 8 songs just one and now only plays the first 5 seconds of the song. How do you fix this and do the download again so the entire song is downloaded? Thanks!
Delete the song from your library and re-download it from the Purchases section of the iTunes Store.
http://support.apple.com/kb/PH12491 -
A few years ago or so i bought Aperture and Photoshop (the whole kit and caboodle) from a university subsidized store (my husband worked there and buying programs like those two, the whole Microsoft office Suite, all kinds of things) at a very significant discount, i think we paid 25$ for Photoshop vs the 400$ it was selling for on the open market.
Yesterday i upgraded most of my laptops to Yosemite (one of them I'm sure was the one that had Aperture on it, a 17in MacBookPro, its about 2 years old now, but at the time i bought it it was the highest computer apple had on the regular floor, I'm sure i could have added some stuff to customize it for extra, but basically we are talking top of the line computer. I recently just required a 2012 MackBook Air with also fairly heavy specs from a family member that was upgrading (I'm not sure why, i know they couldn't possibly be using this thing for anything beyond its capacity, its basically new, and they aren't 3D animation rendering and needed a "quicker" one).
I was very happy with the upgrade, and now it does work much more seamlessly with my iPads and my iPhone, but the whole reason i uploaded it was to work on pictures, adjust them, change the size and then print them out to include in jewelry, and Yosemite won't let me use Aperture at all, when i click to upgrade it (in the bar all it has basically old icon with a (no sign or ghost busters like sign over it) i click on it and it says, you did not buy this with your apple account name and i could not upgrade it. But it just made me click ok, and did not give me any info on how to upgrade it. i do physically own it, or my husband does, I'm not sure to whom it is registered, but sholdnt i still make it able to work with this new operating system, even if not through regular "software updates" it used to always be asking me to upgrade "word" and i got that in the same way, so what is the issue and what do i do to get it to work on this new system?Wow that was really quick, thank you so much. Im not sure at all which version it was because i said it was around 4 years ago he bought it. I know it isn't under his username, since he's a PC person (ugh) so i know its probably registered to one of our actual names. isn't there some way to look it up since we did register it, because I'm not even sure where the disks are from when we bought it (we've moved a lot and also have two storage lockers, i know i would have kept it with other disks) but my cd rom drive is actually broken on my computer as well ( i think it got stepped on and is now squished and won't eject or run disks.)
So is there anyway they can look up that its registered to one of our names since we did register it when we bought and installed it, or do i really have to find the disk with some sort of proof of purchase (i know there would be no receipt after all this time)
either way, ill do what you suggested to the best of my abilities and thank you so much for answering my questions, i can't even open the program as its incompatible and find out the info from that) so I'm in a bit of a pickle and your response was so thorough and it didn't seem to be posted long enough to even write a well researched response, thanks, all the best,
sarucia -
How to join two tables and get the supply delivery date next to order?
So there are two tables. One has customer's order no, ordered date, order quantity, available quantity and code of article-
The other table comes form supply side where we have supply order no, article number, ordered qty, and delivery date.
We keep stock so this can not be MOT (made to order) system.
What i need is correct date of arrival to appear next to cusotmers spoecirfic order. The older cusotmers order get's the parts first, second oldest order is next in line etc.
here is any example
customer's order
ref order
art. code
ordered qty
available qty
order date
1809202491
700497
60
0
3.7.2014
1809200528
700497
13
0
20.6.2014
1809198640
700497
7
0
9.6.2014
supply order
supply order
art. code
qty orderd
date of arrival
4501243378
700497
50
4.8.2014
4501263437
700497
20
6.10.2014
There is actually a 3rd "table" and that sort of connects the two and that is stock on hand per art. code.
The main issue is that stock is assigned to purchase orders only when it actually arrives in the warehouse.
A human can easilly connect the dates of when the stock will arrive and quantities with correct customer's order. In this case the firts order will get 50 pcs in August while 10 pcs will remain on backorders. The missing 10 pcs Will arrive in October. The second order will get 10 pcs in october and 3 will remain on backorders with no delivery date. While the third customer orders does not have a delivery date.
So how to make the SAP do this calculations and display the arrival date next to date of customer's order?I checked the instructions as i do not have access to this part. It seem this is a query. We had issues with queries in the past as not all codes from orders would appear in them. They never found the reason why that is happening.
However, I think the main issue is that the information here is not connected and is separately provided for supply and for sales. So i doubt it can be connected in this query.
edit: as you can see the only connection is stock on hand.
and total number of various items we have is close to 100.000 of various article codes. -
How do I get the dialog box back when clicking on a pdf attachment in my email. Made the mistake of clicking save while the check box was ticked.
From Control Panel | Programs & Features: right-click on Windows Essentials 2012, then select Repair all Windows Essentials programs.
-
Whilst setting up my mums ipad air, i used my account instead of creating a new one. Is there a way i can reset it and set it up again so she can use it and still download the free apps (iWork) etc
Setup as new
Settings>General>Reset>Erase all content and settings
You will not get the free apps because the free apps are registered to your Apple ID. -
Please help me figure out how to get my 3rd generation ipod to have the newest software in order to download apps. It will not let me.
I suspect you have a 2G iPod. Those can only go to iOS 4.2.1.
Identifying iPod models
iPod touch (3rd generation)
iPod touch (3rd generation) features a 3.5-inch (diagonal) widescreen multi-touch display and 32 GB or 64 GB flash drive. You can browse the web with Safari and watch YouTube videos with Wi-Fi. You can also search, preview, and buy songs from the iTunes Wi-Fi Music Store on iPod touch.
The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the device. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318. -
My wife bought a Thai mp3 CD. When saved to the mac the titles appear correctly in Thai language. When we use iTunes to search for music and import these songs, iTunes changes the Thai language character to random symbols basically making the titles illegible, and the playlist unuseable if we want to select any songs by title.
Any idea how I can get iTunes to display the song titles correctly (in Thai language)? i.e. as they are in the folder that the songs are saved in?
Thanks a lot if anyone can help...To display right in iTunes the ID3 tags have to be in Unicode. This app may help:
http://www.macupdate.com/app/mac/15953/id3mod
Maybe you are looking for
-
MacBook Pro 13" (2011 late). second display problem after update
Updated to mountain lion this second and there is no signal out (thunderbolt to displayport cable) since ive upgraded. in lion there are no problems. does your external display work after upgrade to mountain lion? (monitor HP ZR24w)
-
Collective search help in SRM 7.0
Hello all, Does any body has an idea why the custom elementary search helps wont get displayed in SRM7.0 When we add for a collective search help. For ex.. BBP_BUPA* SOURCE_OF SUPPLY is the standard collective search help where we added custom search
-
ITunes no longer shows my iPod classic. do I show it in iTunes and manage it?
I have just upgraded to Yosemite and the latest iTunes. But my iPod Classic is no longer visible in iTunes
-
Is there a plug-in that tracks how much time you've spent in specific files?
I want an easy way to track how much time I've spent on certain projects. I really just need a plug-in that tracks how long files have been open. I'm having trouble searching for one like that; does anyone know if this exists as a plug-in or even as
-
Wont open new tab when I click on it
When I click on the new tab it will not open at all. Right clicking on the new tab icon wont work either. I can open a new tab when I click on a link in a web page though.