SetPropertyListener - is there a better alternative
Hi guys - would like to a few tips here...11g Jdev...
Use case is that I am populating an update / create a screen of the VO by using set property listener operation and place the line in a variable pageFlowScope. I did this, I use the pageFlowScope variables to call an external method of PL/SQL through a managed bean.
My problem is that I have more than 30 parameters, which means 30 listeners to set property. Is there a better way to do this? Thanks to a managed bean, I guess? But could any body provide pointers as to what I should do if that's the case? That is to say a getter and setter for each parameter method?
See you soon,.
Simon
Simo,
If you use a bean that is defined in the user interface layer (like beans in a scope), you must transfer the bean (or its attributes) to model layer and access the attributes of the transferred bean. This is the reason why I told you about the transient VO. In this way the framework manages all the work (compulsory implemented for UI components, manage validation and transfer the values of the user interface to the attributes of the VO.
You should always pass with attributes in some way to your pl/sql class that makes the call to the db. To do this, you have two options
(1) pass each attribute to the class in a Set accessor
(2) pass the reference to the original Version to the class and get attributes directly from the class.
If the pl/sql class is designed only to handle calls to the set of attributes that you provide in the VO (or bean), you can implement the vital part of your pl/sql class (create education and setting up variables) inside the VO and qualifying from there. In this case, you have access to all the attributes you need.
Timo
Tags: Java
Similar Questions
-
I programmed the code according to a table of buttons
can be dragged on the screen when either:
var buttons: Array = [button1, button2, button3];
for (var i: uint = 0; i < buttons.length; i ++)
the buttons [i] .addEventListener (MouseEvent.CLICK, alignButtons)
alignButtons function (e: Event)
{
for (var i2:uint = 0; i2 < buttons.length; i2 ++)
if(Buttons[I2]!=e.Target) {buttons [i2] .x = e.target.x ;}
}
for (var i3:uint = 0; i3 < buttons.length; i3 ++)
keys [i3] .addEventListener (MouseEvent.MOUSE_DOWN, buttonDrag);
function buttonDrag (e: Event)
{
e.target.startDrag ();
e.target.addEventListener (MouseEvent.MOUSE_UP, buttonDrop);
function buttonDrop(e:Event)
{
e.target.stopDrag ();
}
}
It works pretty much I want to it works, except for the fact that I have to click the mouse to update the screen. However, when I change the first "MouseEvent.CLICK" to "Event.ENTER_FRAME" event listener code goes haywire. Is there an another event listener that I use here?
Due to what seems to be an incomplete set of braces, it is difficult to tell how much nesting you have there, but it should be none. Each listener and handler function must be able to stand on its own. You should not have to put all the functions inside a loop.
With the CLICK event listener is unnecessary if you have a MOUSE_DOWN and a MOUSE_UP because a followed MOUSE_DOWN to a MOUSE_UP is a CLICK.
If your goal is to have the buttons all are linked together around x-wise, so that you can do is assign a MOUSE_MOVE event listener at the same time you run the startDrag and use its event handler for button positions. When you stopDrag, you also remove the MOUSE_MOVE listener.
The extent of why things go haywire when you change using an ENTER_FRAME, you must show the code when it is in this form so that any error is obvious.
-
is there a better way to remove exact duplicates in my iTunes library, clicking on maintain organized the iTunes media folder is not working is not on for me
Do not automatically methods automated in the treatment of duplicates. There are several types of duplicates and how they should be solved is different.
How to find and delete items duplicated in your iTunes library - http://support.apple.com/kb/HT2905
More posts by turingtest2 on different types of duplicates and techniques - https://discussions.apple.com/thread/3555601 and https://discussions.apple.com/message/16042406#16042406 (Note: DeDuper script is for Windows).
http://dougscripts.com/iTunes/scripts/SS.php?SP=scanfordoubleentries
http://dougscripts.com/iTunes/iTInfo/Dupin.php (commercial) There are other similar tools, including a version much sooner this package called "duplicates iTunes Corral", which I'm sure that would reveal a general web search.
For example, Corral iTunes duplicates a mod. Eric Pugh - http://opensourceconnections.com/blog/2006/11/11/better-itunes-song-deduping/
May 2014 post on iCloud duplicates - https://discussions.apple.com/message/25867873#25867873
See the exact replica (Mac and Windows) - https://discussions.apple.com/message/16951281#16951281
-
Is DriverCure by parento LOGIC a scam? It work? This program addresses all types of file extensions? Or is there a better program I could use?
Is DriverCure by parento LOGIC a scam? It work? This program addresses all types of file extensions? Or is there a better program I could use?
If you have mutiple file extensions that have been changed, you were probably victim of some malicious programs and your best choice of action (as malware rarely comes without friends and other riders) is a complete wipe and the new installation of the tracking updates and restoring your file system and personally connected since the last known good backup applications you did.
-
Enumeration e = FileSystemRegistry.listRoots(); while (e.hasMoreElements()) { root = (String) e.nextElement(); Logger.logEventInfo("File System Registry: " + root); if (root.equalsIgnoreCase("sdcard/")) { sdCardPresent = true; break; } }
If I put a breakpoint on the while statement, it always returns the exception "an exception occurred: java.util.NoSuchElementException ' for me to consider the declaration
e.nextElement();
Is there a better or more reliable way to check if an SD card is mounted or available?
Thank you.
-
Is there a better way to set up my root directory
I started to design a Web site for my new project, but I'm not a Web Designer by trade and I just want to check that I've set up my root directory of the site correctly and that there is not a better way. The screenshot below shows what I have right now
I have not yet started to design real pages or customize almost anything because I first wanted to check that I had put in place the root properly. Is there a better way to implement or have I set up in the best possible way
If there is a better way, or if I made mistakes then please tell me.
Jay
No idea if there is a better way. Can tell you that my sites are configured in exactly in the same way.
-
Adobe Comp to Adobe Muse? (is there a beta program?)
Hello
Team Adobe Comp near the adobe adobe model muse in workflow.
Hi Kai,
We actually did a demo this workflow at MAX last week. Way to not give too much away... Yes. The team is close.
Sue.
-
Is there a better way to eliminate the "frequently used tools.
toolbar (which I've never used!) to open whenever I open Acrobat
drive. rather than uninstall Acrobat and use another PDF reader?Hi jg49392310,
You can disable the tool pane with Adobe Acrobat Reader DC was last updated, see this note cover hide the tools Panel in Acrobat and Acrobat Reader DC at all times.
Kind regards
Nicos
-
Is there a better way to rename multiple clips on ingest?
I am new to the prelude and the journal entry and transfer in FCP7.
I want to be able to put / output and the name of all my clips individually, each with a unique name, for example: WS_tilt_man walks down the street. With that name appear in my BONES is essential when it comes to my clips to archive and reuse of shots in several projects. I tried the function "Rename the file", but it is quite slow because I have to re - open the window of acquisition after each clip is ingested. It's laborious, when I have clips 50 or more that I want to log/transfer.
Is there a better way to rename multiple clips on ingest?
Hi Caleb,
You can rename all of the files at the time of ingestion of only.
Select Rename and add a preset. Also check the transfer of Clips to Destination and select any main destination path where all the clips with their new names/rename would be transferred.
Check the following picture. I hope it helps.
Thanks for mentioning if there is no confusion.
Thank you
MILIN
-
Now that we have liquid, is there a better way to make an Alphabet for Webapp elements filter when you have more than 500 Articles?
I am using the JQuery ListNav, but my webapp now has too many items. Liquid filter by chain to make a filter of the alphabet?
{module_webapps id = "16734" filter = 'all' template="/Layouts/WebApps/Applications/dashboard-list-a.tpl' = 'collection' render}
What else can I use in the parameter 'filter '?
Thank you!
Shannon
Udemy as a tutorial on it. Practical examples of liquid for Adobe Business Catalyst markup . It was called list Rolodex. This is the solution you want.
-
Hi I need to hide a pdf file hosted on a site of glasses, I would normally add
tag Meta on a html page, can I add this to the pdf format? I can't seem to find where to add this code, or is there a better way?
You cannot add these metadata in PDF format. You can use the robots.txt file.
-
Is there a better way? importing a .mp3 at the presentation file complete?
Is not sure if this is even possible, but I have a .mp3 file I try to import into Captivate. The problem is the file is a large file and those who speak in it is not able to save individual audio clips so I can import in each slide. My thought is to import the entire audio file for each slide and then the change until just the relevant section within each slide. Is there a better way to do?
Hello
Normally when you import an audio clip longer than the slide you're importing to, Captivate offers one more option to spread the music across multiple slides.
See you soon... Rick
Useful and practical links
Captivate wish form/Bug report form
-
Is there a better way to make the selection on this slider?
Is there a better way to make the selection on this slider?
I need to retrieve the test scores max (tesc_code SO1, S02, S03 etc... etc...)
I get the results presented here, but I wonder if it's a better way to do this.
The results should be back in the same cursor... e
CURSOR c_sortest_SAT_scores(p_pidm IN saturn.sortest.sortest_pidm%TYPE, p_term in saradap.saradap_term_code_entry%TYPE) IS SELECT s01.sortest_pidm pidm_s01, s01.sortest_tesc_code tesc_code_s01, s01.sortest_test_score score_s01, s02.sortest_pidm pidm_s02, s02.sortest_tesc_code tesc_code_s02, s02.sortest_test_score score_s02, s07.sortest_pidm pidm_s07, s07.sortest_tesc_code tesc_code_s07, s07.sortest_test_score score_s07, s08.sortest_pidm pidm_s08, s08.sortest_tesc_code tesc_code_s08, s08.sortest_test_score score_s08, s09.sortest_pidm pidm_s09, s09.sortest_tesc_code tesc_code_s09, s09.sortest_test_score score_s09 FROM saturn.sortest s01, saturn.sortest s02, saturn.sortest s07, saturn.sortest s08, saturn.sortest s09 WHERE s01.sortest_tesc_code IN ('S01') AND s01.sortest_pidm = p_pidm AND s01.sortest_term_code_entry = p_term AND s01.sortest_test_score = (SELECT MAX (s01a.sortest_test_score) FROM saturn.sortest s01a WHERE S01.sortest_pidm = s01a.sortest_pidm AND S01A.sortest_tesc_code IN ('S01')) AND s02.sortest_tesc_code IN ('S02') AND s02.sortest_pidm = p_pidm AND s02.sortest_term_code_entry = p_term AND s02.sortest_test_score = (SELECT MAX (S02A.sortest_test_score) FROM saturn.sortest s02a WHERE S02.sortest_pidm = s02a.sortest_pidm AND S02A.sortest_tesc_code IN ('S02')) AND s07.sortest_tesc_code IN ('S07') AND s07.sortest_pidm = p_pidm AND s07.sortest_term_code_entry = p_term AND s07.sortest_test_score = (SELECT MAX (S07A.sortest_test_score) FROM saturn.sortest S07A WHERE S07.sortest_pidm = S07A.sortest_pidm AND S07A.sortest_tesc_code IN ('S07')) AND S08.sortest_tesc_code IN ('S08') AND S08.sortest_pidm = p_pidm AND S08.sortest_term_code_entry = p_term AND S08.sortest_test_score = (SELECT MAX (S08A.sortest_test_score) FROM saturn.sortest S08A WHERE S08.sortest_pidm = S08A.sortest_pidm AND S08A.sortest_tesc_code IN ('S08')) AND S09.sortest_tesc_code IN ('S09') AND S09.sortest_pidm = p_pidm AND S09.sortest_term_code_entry = p_term AND S09.sortest_test_score = (SELECT MAX (S09A.sortest_test_score) FROM saturn.sortest S09A WHERE S09.sortest_pidm = S09A.sortest_pidm AND S09A.sortest_tesc_code IN ('S09'));
Hello
The problem is that you to act as a Cartesian product with all the tables (you will get: S01 * S02 * S08 * S09 lines!) Is it really what you want?
I don't think...Wharton, you can do (with no Cartesian product) is:
CURSOR c_sortest_SAT_scores(p_pidm IN saturn.sortest.sortest_pidm%TYPE, p_term in saradap.saradap_term_code_entry%TYPE) IS SELECT sortest_pidm pidm, sortest_tesc_code tesc_code, sortest_test_score score FROM sortest WHERE (sortest_tesc_code, sortest_test_score) IN ( SELECT sortest_tesc_code, MAX (sortest_test_score) FROM sortest WHERE sortest_tesc_code IN ('S01', 'S02', 'S07', 'S08', 'S09') AND sortest_pidm = :p_pidm AND sortest_term_code_entry = :p_term GROUP BY sortest_tesc_code) AND sortest_pidm = :p_pidm AND sortest_term_code_entry = :p_term
However you absolutely need a Cartesian product, you can do:
WITH allrows AS (SELECT sortest_pidm pidm, sortest_tesc_code tesc_code, sortest_test_score score FROM sortest WHERE (sortest_tesc_code, sortest_test_score) IN ( SELECT sortest_tesc_code, MAX (sortest_test_score) FROM sortest WHERE sortest_tesc_code IN ('S01', 'S02', 'S07', 'S08', 'S09') AND sortest_pidm = :p_pidm AND sortest_term_code_entry = :p_term GROUP BY sortest_tesc_code) AND sortest_pidm = :p_pidm AND sortest_term_code_entry = :p_term) SELECT s01.pidm pidm_s01, s01.tesc_code tesc_code_s01, s01.score score_s01, s02.pidm pidm_s02, s02.tesc_code tesc_code_s02, s02.score score_s02, s07.pidm pidm_s07, s07.tesc_code tesc_code_s07, s07.score score_s07, s08.pidm pidm_s08, s08.tesc_code tesc_code_s08, s08.score score_s08, s09.pidm pidm_s09, s09.tesc_code tesc_code_s09, s09.score score_s09 FROM allrows s01, allrows s02, allrows s07, allrows s08, allrows s09 WHERE s01.tesc_code = 'S01' AND s02.tesc_code = 'S02' AND s07.tesc_code = 'S07' AND s08.tesc_code = 'S08' AND s09.tesc_code = 'S09'
The lines will be stored in memory to a temporary table before that product happen (should be faster)...
-
Dismount-Tools, or is there a better way?
I guess I'm being stupid again, but is there a way to determine on which servers VMWare Tools are actually mounted?
I run DTS recommendations today and noticed that a svMotion failure because she had mounted tools. So I thought I should be able to find tools mounted with PowerCLI.
After a look around, I found the "Dismount-Tools" command for disassembly and this blog to give me a list of all virtual machines with mounted tools.
I also found this blog which has provided me with a list of the ISO mounted all the:
VM IsoPath
[Models] VM1 ISO/en_windows_server_2...
VM2 [models] ISO/SW_DVD5_Windows_Svr_...
VM3 [/usr/lib/vmware/isoimages/linux.iso]
VM4 [/usr/lib/vmware/isoimages/linux.iso]
VM5 [/usr/lib/vmware/isoimages/linux.iso]
VM6 [/vmimages/tools-isoimages/linux.iso]
VM7 [/vmimages/tools-isoimages/linux.iso]
VM8 [/usr/lib/vmware/isoimages/linux.iso]
Vitavm9 [/vmimages/tools-isoimages/linux.iso]
These two lists (mounted the ISO mounted tools) differ a lot. For example vm3 wouldn't appear in the 'mounted' tools - list but vm4 arise under both. In the research in the interface graphics I would be able to complete the installation of vmware for vm4 tools but not for vm3, there I saw that ISO mounted. I don't know if these 'ghosts' - frames affect vMotion/svMotion or any other action or not, but I tell myself that I might as well also remove them.
Is is safe to assume that all popular VM with ISO path ' [] / usr/lib/vmware/isoimages/linux.iso ' or ' [] / vmimages/tools-isoimages/linux.iso "have mounted tools or are dismantled but that disassembly of the ISO could not somehow and that"[Datastore]... ". "are user/admin mounted ISO? If Yes, is it better to use "Set-CDDrive-NoMedia" instead of "Dismount-Tools"? And what would be the equivalent for clients Windows look like when looking at the way the ISO?
Secondly, any suggestions for speeding up the script to the top (regardless of the alternative offer)?
We have 2000 + VMs and to first retrieve all the virtual machines, and then do the EEG view and finally the filter runs only the desired VMs as one-liner below takes some time:
(Get - VM |) Get-View | Where {$_.} Runtime.ToolsInstallerMounted}) | % {$_. Name}
Same issue really with the another one-liner for all virtual machines, can get all their CD players before making the filtering:
Get - VM | Get-CDDrive. Select @{N = "VM"; {E = 'Parent'}, IsoPath | where {$_.} IsoPath - don't $null}
Might be something like below a faster way to determine what virtual machines are ISO mounted?
Get - VM? {$_. CDDrives.IsoPath - not $null}
You can try
Notice-EEG - ViewType VirtualMachine-property Name, "Runtime.ToolsInstallerMounted" - filter @{"Runtime.ToolsInstallerMounted" ="True"} | " %{
$_. UnmountToolsInstaller()
}
This should be a bit faster.
-
Is there a better way to do it?
Okay, so I try to dial numbers to create a RPG character, and I think I found a way to transfer information from one sheet to the other. The specific cell transferred from sheet 1 (capacity degreasing) differs according to a variable of box chain drop in a cell on the worksheet 2.
What I have is: = IF (C2 = 'Force', ability Scores: $E$ 2, IF (C2 = 'Agility', ability Scores: $E$ 3, IF (C2 = 'Constitution', ability Scores: $E$ 4, IF (C2 = 'Intelligence', ability Scores: $E$ 5, IF (C2 = 'Wisdom', ability Scores: $E$ 6, IF (C2 = "Charisma", ability Scores: $E$ 7))) )))
And while this works, I wonder if there is a better way to implement.
Any ideas?
HI Durzan,
This sounds like a job for one of the search functions. Main table on the left, on the right ability Scores.
Main, column C contains three cells in the context menu.
Hand, D2: = VLOOKUP (C, ability Scores: A:E, 5, 0)
Filled down.
Kind regards
Barry
Maybe you are looking for
-
Ads pop up on my FireFox home page
What happens here? I have my homepage set. Ads appear at the top of my home page. Why? I checked my add on extensions and abducted in recent extensions of the best Surf. I just check through my plugins, and I have disabled things like: RocketLife Sec
-
HP Deskjet 9800: HP Deskjet 9800 will print on 13 "x 19" paper "
Hello! So I have a HP Deskjet 9800 and am trying to print a picture on 13 "x 19" Epson Ultra Premimum Photo paper luster (rated 241gsm). My problem is that my HP Deskjet 9800 will load the paper, but it just sort of pushes and pulls it back before se
-
is it possible for a virus to anchor themselves on Android OS when not rooted?
Hi im fairly new here is possible for a virus to anchor Tablet not rooted after it has downloaded remotely the extra files that needed to infect the system, im just wondering because ive found and removed the virus before on my front A1 - 810 tablet,
-
WVC210 missing controll buttons in «See the video»
Hello! It sems miss me buttons zoom and snapshots in the page "see video" for my camera. I saw pictures and videos of others using the same model, and they have more options above the buttons to pan and tilt. I tried different settings and also tried
-
I got a message today saying my server has been hacked by TiGER_M@TE , but the computer says that there are no security threats. I ran the page off and part he says * address email is removed from the privacy *. That's what worry and I'd do anything.