How to check the selected elements of a selectManyListbox in an OS doDML?
HelloI have a VO based on in EO. During the doDML (UPDATE) of this OS, I want to check what are the components of an af:selectManyListbox have been selected.
How could I get the items activated in the selectManyListbox (which belongs to the ViewController) in the doDML of an EO method (which belongs to the model)?
Thank you very much
HTTP, Yes, as long as you do everything in the same request. Something like:
your_AM_Method (list)
{
put things into a global temporary table
Commit (which will cause DB Report, citing doDML() as well)
}
Tags: Java
Similar Questions
-
Hallo,
I defined a VO with 3 fields (A, B and C) and I would like to create a SelectOneChoiche that shows only the field as options from this instance of VO.
In a managed bean, I need to retrieve the values for all areas (A, B and C) of the item selected by the user.
I started dragging the entire VO instance to UI to create a SelectOneChoiche (in which I have chosen to show only the to field).
Then, I created a for the SOC ValueChangeListener read the values A, B and C of the selected element, but the only thing I've done is to get the displayed value:
System.out.println((String) ((RichSelectOneChoice) FacesUtils.findComponent("MySoc")).getValue());
You kindly help me?
Thank you
Federico
Federico, sorry I didn't see your answer.
As you use 12.1.3 you can do this more easily than the code that I posted before. You can use
{} public void onCountrySelection (ValueChangeEvent valueChangeEvent)
FacesContext will involve = FacesContext.getCurrentInstance ();
Make sure that the selection change is processed and the current link lov line has the new selected line
valueChangeEvent.getComponent () .processUpdates (contxt);
BindingContext lBindingContext = BindingContext.getCurrent ();
BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry ();
List JUCtrlListBinding = lBindingContainer.get ("CountryId") (JUCtrlListBinding);
the newindex in not necessary, but ok let's get it (must be equal to the CountryId, the pharmacokinetics of the binding of the lov
String newindex = (String) valueChangeEvent.getNewValue ();
get the selected value in the list that is the selected line of the binding of the lov
Line lFromList = list.getSelectedValue () (line);
now, we can get the attributes of the line of lov
String s = (String) lFromList.getAttribute ("CountryId");
System.out.println ("CountryId:" + s);
String s2 = (String) lFromList.getAttribute ("CountryName");
System.out.println ("CountryName:" + s2);
BigDecimal s3 = lFromList.getAttribute("RegionId") (BigDecimal);
System.out.println ("RegionId:" + s3.toString ());
}
The form that I use is based on the location of the HR DB schema table. The CountryId is configured in the view object to display a lov based on the campagneVoir. This view contains thre CountryId, CountryName and RegionId attributes.
If you want to get to the attributes of an action listener you can use this code
{} public void onGetSelectedCountryLov (ActionEvent actionEvent)
BindingContext lBindingContext = BindingContext.getCurrent ();
BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry ();
List JUCtrlListBinding = lBindingContainer.get ("CountryId") (JUCtrlListBinding);
get the selected value in the list that is the selected line of the binding of the lov
Line lFromList = list.getSelectedValue () (line);
now, we can get the attributes of the line of lov
String s = (String) lFromList.getAttribute ("CountryId");
System.out.println ("CountryId:" + s);
String s2 = (String) lFromList.getAttribute ("CountryName");
System.out.println ("CountryName:" + s2);
BigDecimal s3 = lFromList.getAttribute("RegionId") (BigDecimal);
System.out.println ("RegionId:" + s3.toString ());
}
You must add the valueChangeListener and at least add the lines
FacesContext will involve = FacesContext.getCurrentInstance ();
Make sure that the selection change is processed and the current link lov line has the new selected line
valueChangeEvent.getComponent () .processUpdates (contxt);
to ensure that the selected line is available when you click the button.
And set autosubmit'= true for the field in the UI that displays the LOV.
Timo
-
How to check the value of the space of the tablespaces and tables when errors occur?
Hi Experts,
For example, lets say we get ORA-01653: unable to extend table of error. How to check the size of the table and a tablespace? And how understanding is full?
Thanks for your help
Hello
Select df.tablespace_name "Tablespace"
totalusedspace 'Used MB',
(df.totalspace - tu.totalusedspace) "MB free.
DF. TotalSpace 'Total MB. "
round (100 * ((df.totalspace-tu.totalusedspace) / df.totalspace))
"PCT free."
Of
(select nom_tablespace,
Round (Sum (bytes) / 1048576) TotalSpace
from dba_data_files
Group by tablespace_name) df,.
(select round (sum (bytes) /(1024*1024)) totalusedspace, nom_tablespace)
from dba_segments
you group by tablespace_name)
where df.tablespace_name = tu.tablespace_name
and df.tablespace_name = "
"; For example, lets say we get ORA-01653: unable to extend table of error. How to check the size of the table and a tablespace? And how understanding is full?
Is to say clearly to the question (you can let us know what you have understood so we can fix)
[oracle@machine1 ~] $01653 oerr ora
01653, 00000, "impossible to extend %s.%s table by %s in %s tablespace»
* Cause: Failed to allocate a certain measure the required number of blocks for
a segment of the table in the specified tablespace.
* Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more
storage of files indicate.
-Thank you
Pavan Kumar N
-
How to check the roles agreed on a specific group?
Hello
How to check the roles granted to a specific group?
If a user belongs to this group in particular, will have the same roles granted so much that the Group?
Thank you.
SQL> select grantee 2 from dba_role_privs 3 where granted_role = 'DBA'; GRANTEE --------------------------------- SYS SYSTEM
-
How to check the image source for the image which is losted?
Hello world
How to check the image source for the image which is losted?
If the image source already exists, I can read the PlaceItem.file.fsName.
But if remove the image of the source, read the PlaceItem.file.fsName will report the error: there is no file associated with this element
Thank you
If (app.documents.length > 0) {}
var sourceDoc = app.activeDocument;
sourceName = sourceDoc.name var;
artItem =]
for (i = 0; i < sourceDoc.pageItems.length; i ++) {}
artItem [i] = sourceDoc.pageItems [i];
If (.) TypeName artItem [i] == 'PlacedItem') {}
If (.imageColorSpace [i] artItem == undefined) {}
Alert ("the file is the link, but I don't know whether or not the source image is losted");
}
}
}
}
Use try/catch to catch the error
if (app.documents.length > 0) { var sourceDoc = app.activeDocument; var sourceName = sourceDoc.name; artItem = [] for (i = 0; i < sourceDoc.pageItems.length; i++) { artItem[i] = sourceDoc.pageItems[i]; if (artItem[i].typename == 'PlacedItem') { if (artItem[i].imageColorSpace == undefined) { try { var fname = artItem[i].file.name; alert("file name: " + fname); } catch (e) { alert("The file is linking ,but source image is lost"); } } } } }
-
How to check the column updated whereby the package or procedure?
Hi all
Can someone help me how to check the column updated by which the package or procedure
A.Mahesh
Hello.
You can check what object is a reference to the table of the column:
Select *.
of all_dependencies d
where d.REFERENCED_NAME = '
. ' And you can find all the links to the object source data column:
Select *.
of s all_source
where s.name = "
." and s.OWNER = '
. ' and s.TYPE = "
." and as s.TEXT '%
%' -
How to check the locks in the database
Hello
oracleDatabase version: 11 GR 2
OS: Solaris
How to check the locks on database objects .it can be any lock?
None Select sql query to check the levlel of objects of database locks? what basis locks occur?
Please explain on the locks or share notes MOS?
Rgds,
Sam.Check below sql.
Select s1.username. '@' || S1.machine
|| ' (SID =' | s1.sid | block him ') '
|| S2. UserName | '@' || S2.machine | ' (SID =' | s2.sid |) ') ' AS blocking_status
v $ lock l1, v$ session s1, v$ lock l2, s2 of v$ session
where s1.sid = l1.sid and s2.sid = l2.sid
and l1. BLOCK = 1 and l2.request > 0
and l1.id1 = l2.id1
and l2.id2 = l2.id2;http://psoug.org/snippet/locks-view-locked-Objects_866.htm
http://www.DBA-Oracle.com/t_locked_rows_user_locks.htm -
How to rotate a Select element for a GUI design
Hello, I work on this project of GUI non-profit and need to make a prototype of high fidelity with the graphics, I created. Most of my experience was in web design and I usually used Axure RP pro for the realization of prototypes that works very well for the web but this GUI is clearly for a video game and so some of the menus work way are a little more sophisticated and "flashy" so I decided to use well, flash. Now I have very little experience with the side of flash action script and I just need to get out a prototype as soon as possible, I don't have to do anything work perfectly, just enough to get the message
My question is on this Panel to select turning point. How would I go about using these orange arrows brilliant to rotate all the elements around the button "equip" when you press on? and how would program it each item on the scale when it snaps into the selected element? And of course the stats change when the element snaps as well.
I am very grateful for all the help that can be provided on this.
:
kglad wrote:
buttons have a number of limitations that movieclips are not. the only advantage of buttons, is that they require no coding for high, low States while movieclips are.
in any case, if your up arrow is up_arrow, down arrow is down_arrow, and guns are gun_0, gun_1 etc.:
assign x 0, y0 etc. to match the 5 positions of your weapons.
var int index = 0;
var positionA:Array = [[x 0, y0], [x 1, y1],..., [x 4, y4]];
Click on the listeners who call rotateF
Up_Arrow.addEventListener (MouseEvent.Click, rotateF);
Down_Arrow.addEventListener (MouseEvent.Click, rotateF);
function called when you click on arrows
function rotateF(e:MouseEvent):void {}
loop through each firearm
for (var i: int = 0; i<>
loop on gun positions
for (var j: int = 0; j<>
find the position of each weapon
If (this ["gun_" + i] there is positionA [j] [1] ;){
Once the position of each weapon is found, determine if the up or down button was clicked
{if(e.currentTarget.Name=="Up_Arrow")}
clicked the top arrow key or move to the next position of gun
var nextJ:int = (j + 1) %positionA.length;
} else {}
below then click go back a gun position
nextJ = (j+positionA.length-1)%positionA.length;
}
assign the ith next or previous position pistol
This ["gun_" + i] .x = positionA [nextJ] [0];
This ["gun_" + i] there = positionA [nextJ] [1];
put the scale on the gun expanded by resetting all.
This ['gun_' I] .scaleX = this ["gun_" + i] .scaleY = 1;
{if(j==2)}
expand the "chosen" (IE, the middle position) gun
This ['gun_' I] .scaleX = this ["gun_" + i] .scaleY = 2;
}
stop a loop in the posts. the location of the ith mortars has already been found.
break;
}
}
}
}
-
How to check the size of the tablespace by query?
How to check the size of the tablespace by query?Run this query...
SELECT
A.tablespace_name 'space ',.
A.bytes / (1024 * 1024) "Total_Size (MB).
Sum (B.bytes) / (1024 * 1024) "free_space (MB).
NVL (Round (Sum (B.bytes) * 100 / A.bytes), 1) "%Free."
Round ((A.bytes - SUM (B.bytes)) * 100/A.bytes) '% Used_Space '.
FROM dba_free_space B,.
(SELECT tablespace_name, SUM (bytes) bytes
FROM dba_data_files
A GROUP BY nom_tablespace)
WHERE B.tablespace_name (+) = A.tablespace_name
GROUP OF A.tablespace_name, A.bytes
UNION ALL
SELECT
A.tablespace_name 'space ',.
B.bytes / (1024 * 1024) "Total_Size (MB).
Sum (A.bytes_free) / (1024 * 1024) "free_space (MB).
NVL (Round ((Sum (B.bytes) - A.bytes_used) * 100 / B.bytes), 1) "%Free."
Round ((Sum (B.bytes) - A.bytes_free) * 100 / B.bytes) '% Used_Space '.
FROM dba_temp_files B,.
(SELECT tablespace_name, bytes_free, bytes_used
V $ temp_space_header
GROUP BY tablespace_name, bytes_free, bytes_used) has
WHERE B.tablespace_name (+) = A.tablespace_name
GROUP OF A.tablespace_name, B.bytes, A.bytes_free, A.bytes_used
ORDER BY DESC 4; -
How to check the arhice mode is on or not according to the pl/sql procedure
Hello
I'm trying to figure out how to check the mode archive inside begin end block. Basically, I'm developing a procedure that returns in mode archive.
I know that the following command returns the status of fashion archive but I can't do the job inside the begin end block.
"list of archive logs.
I'll be appricated if you show me how to call the above command inside begin end block.
Kind regards.Hello
If you want to see archive log mode is activated, you can simply check V$ database.
select log_mode from v$database
That is what you want, or is there something more, you need?
David
-
How to check the status of the import in Windows?
Hello
Import runs in my box of Wndows. The log file is not updated since long. How to check the status of the import job? FYI its oracle 10g.
And I checked the database which.
FYI
===
Select * from DBA_DATAPUMP_SESSIONS;
no selected line.
Select * from DBA_JOBS_RUNNING;
no selected line
Select the username, machine, module, sid, State, event, seq #, session seconds_in_wait $ v where type <>'IMPORT' and username = "AUTOTIME";
no selected line
Please let me know.You actually look at the session of $ v and check the status of the session that is created by the import job.
Sometimes the underlying tablespace is full, so import session just hangs, it must increase the size of the storage space.
You should also look at alert.log file and see if there is any error message like "cannot extend table space '.
-
How to check the status of the statistics on a table?
Hello
I started the statistics collection on a few large tables in my database.
How to check the status of statistics about a table? Are there views of data dictionary or tables to monitor the progress of the collection of statistics.
Regds,
MalikaHi all
You can check with this little script.
It lists details of sid for long as running session
When he started
What last update
How long still to the left
"ACTIVE/INACTIVE" session state etc.---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-Author: James Syed_
-Script_name: sid_long_ops.sql
-Description: list details of sid for long running the session as when it began when the last update how long still to the left.fixed lines 200
Neck LESS to a25Select
a.SID,
a.Serial #.
b.Status,
a.opname,
TO_CHAR (a.START_TIME,' DD-me-AAAA HH24:mi:ss) START_TIME,
TO_CHAR (a.LAST_UPDATE_TIME,' DD-me-AAAA HH24:mi:ss) LAST_UPDATE_TIME,.
a.time_remaining as 'time remaining dry. "
a.time_remaining/60 as "Min remaining time."
a.time_remaining/60/60 as 'remaining time in HR.
V $ session_longops a, v$ session b
where = select a.sid
a.sid = & sid
And time_remaining > 0;----------------------------------------------------------------------------------------------------------------------------------------------------------------
The sample output:
--------------------SQL > @sid_long_ops
Enter the SID value: 474
13 old: a.sid = & sid
13 News: and a.sid = 474SID, SERIAL # STATUS START_TIME LAST_UPDATE_TIME remaining time LESS dry time remaining minutes remaining HR time
--------------------------------
474 2033 ACTIVE collection schema statistics June 6, 2012 20:10:49 June 7, 2012 01:35:24 572 9.53333333.158888889Thank you & best regards
Syed James.
Oracle Apps DBA
Mobile: + 91 9966270072
E-mail: [email protected] -
How to check the table have are all views in oracle
Hello
How to check the table have are all views in oracleSELECT * FROM user_dependencies WHERE type='VIEW' AND referenced_type='TABLE' AND referenced_name ='Your_Table_Name'
You can use dba_dependencies to find views in the different schema.
-
How to check the amount/number of issued on the database DDL operations
Hello
Can someone please clear some doubts.
1. How can we check the number of DDL operations on the database
2. how we check the amount of growth in the size of the database.
3. How can we check the growth of a single table.
Concerning
AmithSelect startup_time "Startup."
MySQL 'Transactions. "
/Decode (value) sum (Sum (trunc(sysdate-STARTUP_TIME)), 0.1, Sum (trunc(sysdate-STARTUP_TIME))) "Avg per day."
/Decode (value) sum (Sum (trunc(sysdate-STARTUP_TIME)), 0.1, Sum (trunc(sysdate-STARTUP_TIME))) / 24 ' Avg / hour. "
/Decode (value) sum (Sum (trunc(sysdate-STARTUP_TIME)), 0.1, Sum (trunc(sysdate-STARTUP_TIME))) / 1440 "Avg / min.
v $ sysstat, instance $v
WHERE name in (a "user is committed," restores user)
Startup_time group; -
How to retrieve the selected values of the selectOrderShuttle using ADF 11 g
Hello world
Did anyone has idea how to retrieve the selected items by using the shuttle and the order of the elements by using the 'SelectOrderShuttle '?
Thank youvaluechangeevent of the shuttle would fire when you shuttle points back.
public void selectOrderShuttle1_valueChangeListener(ValueChangeEvent valueChangeEvent) { ArrayList list = new ArrayList(Arrays.asList(valueChangeEvent.getNewValue())); if (list != null){ for (int i=0; i
Maybe you are looking for
-
TouchSmart HP ENVY 15-j104ea N: BIOS Corruption and Windows Logo + B is DOES not
Hi guys,. I recently got a BIOS corruption this morning based on the indications of 2 key CAPS LOCK flashes. This happened after an accident caused by an UPDATE and a QR code on the page. I tried to use the resolution by pressing the logo WINDOWS + B
-
Hello Setup I own a latest firmware 7.7.3 Airport extreme race of generation a last macbook pro with the utility Airport 6.3.6 gen. I have fiber via my local fiber internet provider. The connection comes directly into my apartment and connects to the
-
Vertical scrolling got the reset each time that I use Ultra Nav to scroll vertically
I have a really weird behaviour UltraNav on my new refub T410 2537-XH4 (2537-DB5 before refub). I hope that someone here may know how to solve. Step 1: I go to control panel-> mouse-> tab control wheel-> Schölling Vertical-> select "one screen at a t
-
.. .and wringing wet!
-
CAN'T GET UPDATES FOR OFFICE PROFESSIONAL
I INSTALLED OFFICE PROFESSIONAL ACADEMIC VERSION & I WAS NOT ABLE TO GET UPDATES FOR IT. I EVEN UNINSTALLED MY NORTON TO SEE IF THAT WAS THE PROBLEM, BUT I STILL HAVE NO UPDATES. He IS NOT to GET any OTHER UPDATES of WINDOW ALSO, SO I UNINSTALL OFFIC