Trying to keep the search criteria in the session and stubborn taskflow outdoors
I have a page within a delimited taskflow on which the user can search. I use ViewCriteria and af:query.I can get the taskflow anytime, but when I return to my search criteria are still empty. I don't want to. I tried the following:
a custom queryListener that calls saveState() so that we remember the search criteria (I also put a boolean session to remember whether there were non-empty search criteria):
<af:query id="qryId1" disclosed="true"
model="#{bindings.StandaardFilterQuery.queryModel}"
value="#{bindings.StandaardFilterQuery.queryDescriptor}"
queryListener="#{reinigingsRechtBean.onQuery}"
queryOperationListener="#{reinigingsRechtBean.processQueryOperation}"
displayMode="compact" headerText="blaaa"
resultComponentId="::t1"
visible="#{reinigingsRechtBean.showFilter}"
saveQueryMode="hidden" styleClass="querypanel"
maxColumns="1">
public void onQuery(QueryEvent queryEvent) {
// zet het filter standaard op nonactief
filterActief = false;
QueryDescriptor queryDescriptor = queryEvent.getDescriptor();
DCBindingContainer bc = FacesUtils.getBindings();
Object execBinding = bc.findExecutableBinding("StandaardFilterQuery");
ViewCriteria vc =
JUSearchBindingCustomizer.getViewCriteria((DCBindingContainer)execBinding,
queryDescriptor.getName());
Variable[] variables = vc.getVariableManager().getDeclaredVariables();
// loop door de variabelen en kijk of er 1 een waarde heeft.
// zoja dan markeren we het filter als actief.
// kunnen we dat aan de gebruiker melden
for (Variable o : variables) {
System.out.println(o.getColumnName());
System.out.println(vc.getVariableManager().getVariableValue(o));
if (vc.getVariableManager().getVariableValue(o) != null) {
filterActief = true;
}
}
// raarheid, deze methode wist de waardes die we hierboven uitlezen.
// dus niet boven de loop zetten want daar zie je ze dan niet meer
vc.saveState();
// voer nog wel de query uit, anders krijg je geen gegevens :)
FacesUtils.invokeMethodExpression("#{bindings.StandaardFilterQuery.processQuery}",
Object.class, QueryEvent.class,
queryEvent);
}
That part works. I leave the taskflow and enter again and see my values. Yay! This feature breaks the "reset" button but reset() goes into its last saved state. I want to "reset" to clear the values and research. So I created this: public void processQueryOperation(QueryOperationEvent event) {
if (event.getOperation().equals(event.getOperation().RESET)) {
QueryDescriptor queryDescriptor = event.getDescriptor();
DCBindingContainer bc = FacesUtils.getBindings();
Object execBinding =
bc.findExecutableBinding("StandaardFilterQuery");
ViewCriteria vc =
JUSearchBindingCustomizer.getViewCriteria((DCBindingContainer)execBinding,
queryDescriptor.getName());
Variable[] variables =
vc.getVariableManager().getDeclaredVariables();
for (Variable o : variables) {
vc.getVariableManager().setVariableValue(o, null);
}
//JUSearchBindingCustomizer.applyNamedCriteria(bc, queryDescriptor.getName());
// saveState() hoeven we volgens mij niet uit te voeren want de onQuery zal ook afgaan en die doet een saveState()
vc.saveState(); // toch maar wel
FacesUtils.getRRAppModuleImpl().getMoeReinigingsRechtRO().applyViewCriteria(vc);
}
}
When I press reset, I catch the ViewCriteria, empty values, save the State and even to apply the Victoria Cross to the viewObject. However, the af: query indicates the criteria I entered before AND the search is made to these criteria.When I loop through the values of ViewCriteria they all void in the onQuery that is executed immediately after processQueryOperation(), but still it is ignored.
What I am doing wrong?
(Jdeveloper 11.1.1.3)
Wendy,
Here's one that is generic
public void onQueryOperation(QueryOperationEvent queryOperationEvent) {
if (queryOperationEvent.getOperation().equals(queryOperationEvent.getOperation().RESET)) {
QueryDescriptor queryDescriptor =
queryOperationEvent.getDescriptor();
DCBindingContainer bc =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
Object execBinding =
bc.findExecutableBinding("queryEmployeesByDepartmentOrJobIdQuery");
ViewCriteria vc =
JUSearchBindingCustomizer.getViewCriteria((DCBindingContainer)execBinding,
queryDescriptor.getName());
Row rw = vc.getCurrentRow();
String[] attrNames = rw.getAttributeNames();
for (String name : attrNames) {
if(rw.getAttribute(name)!=null){
rw.setAttribute(name, null);
}
}
vc.saveState();
}
//--------------------------------------
FacesContext fctx = FacesContext.getCurrentInstance();
ELContext elctx = fctx.getELContext();
ExpressionFactory exprFactory =
fctx.getApplication().getExpressionFactory();
MethodExpression me =
exprFactory.createMethodExpression(elctx, "#{bindings.queryEmployeesByDepartmentOrJobIdQuery.processQueryOperation}",
Object.class,
new Class[] { QueryOperationEvent.class });
me.invoke(elctx, new Object[] { queryOperationEvent });
}
}
Frank
Tags: Java
Similar Questions
-
I'm trying to download the demo version of creative cloud - can I still keep the CS5 and CS3 as well as Bridge CS5 on my computer that I don't want to uninstall these?
You can install the creative Cloud Desktop application as well as other creative applications Cloud while leaving the old programs installed.
You can download the Adobe Creative Cloud Desktop App from here:
Creative cloud help | Creative cloud desktop.After installing the desktop creative cloud application, you will need to sign in with a login password and Adobe. Then you can install applications. This link provides more information and step by step instructions, if you need: CC help | Download, install, update or uninstall applications
Guinot
-
I have two blades on the same chassis running ESXi 4.1, each has an Exchange Server on it. Im trying to keep the traffic between the two Exchange boxes contained between the two. I thought that I could put in the same vSwtich, but looks like I need vDS for this. I don't have this license level.
Now, I found myself with two separate vSwitches with the same label. network, it shows them on the same vSwitch so they don't transmit traffic. because they are separate switches... my vSphere networking missing a bit... need to study more.
Since you have virtual machines on different blades that the traffic between the two will have to cross a physical network card. If you need to segment this traffic, you can configure a VLAN in your network, add a new group of port on each host to ESXi virtual machine and then set up a NIC in the virtual machines to use this group of VIRTUAL LAN port.
Though the virtual machines on the same host (always) you can configure a single vSwitch. In this case the traffic between virtual machines would not hit the physical network and you wouldn't need even a physical NETWORK adapter, attached to the vSwitch.
Dave
VMware communities user moderatorESXi Essentials free training / eBook offer
Now available - VMware ESXi: planning, implementation, and security
Also available - vSphere Quick Start Guide
-
My Vista system trying to download the updates, and it does not complete the download. It is up to "Windowsupdate_00000646" and "windowsupdate_dt000" How do I clear this code to receive these updates?
They are only updated office or all updates?
For Office updates, usually to pick up the item at the: http://www.microsoft.com/downloads/en/default.aspx
then manually download and install the same.
If all updates, perhaps consider the following general tips-
Option: File of Windows Update agent wups2.dll is incorrectly registered and the registry associated with the Wups2.dll file files are missing.
Method 1: Save the Windows Update files
1. Click Start and type notepad in the box start the search.
2. click on Notepad in the list programs.
3. copy the following commands, and then paste them into the opened Notepad window:
REGSVR32 WUPS2. DLL/S
REGSVR32 STINKS. DLL/S
REGSVR32 WUAUENG. DLL/S
REGSVR32 WUAPI. DLL/S
REGSVR32 WUCLTUX. DLL/S
REGSVR32 WUWEBV. DLL/S
REGSVR32 JSCRIPT. DLL/S
REGSVR32 MSXML3. DLL/S
4. in Notepad, on the file menu, click Save as.
5. in the file type list, click all files.
6. in the file name box, type register.bat.
7. save the Register.bat file to your desktop.
8 right-click the Register.bat file, and then click Run as administrator. If you are prompted for an administrator password or a confirmation, type the password or click on continue.
9. try to reinstall updates.http://support.Microsoft.com/kb/958053
See: method 1: save the Windows Update fileshttp://support.Microsoft.com/kb/326253
Method 5: Registry Windows Update engine fileshttp://support.Microsoft.com/kb/971058
How to reset the Windows Update components?Method 2: Download and install Windows Update agent
Windows Update Agent
How to get the latest version of the Windows Update Agent to help manage updates on a computer
http://support.Microsoft.com/kb/949104Information for network administrators about how to obtain the latest Windows Update Agent
http://support.Microsoft.com/kb/946928Click Start, click run, click Browse, navigate to the file you saved and click Open.
Add the switch /wuforce at the end of the command run and then click OK. For example, the command run might look like this: "C:\WindowsUpdateAgent30-x86.exe" /wuforce
Click run.
Follow the steps to complete the wizard.
Important
To reinstall Windows Update Agent - download the relevant file from one of the links provided above and save it to a drive where Vista is not loaded because the file cannot be launched directly from the root directory of the system.
Click Start, run, type: "D:\WindowsUpdateAgent30-x86.exe /wuforce" (without the quotes) and press ENTER to install the Windows Update engine.
Note: There is a space between "D:\WindowsUpdateAgent30-x86.exe" and "/ wuforce.
D: is the drive where Windows is not installed (IE a flash drive or a 2nd hard drive etc.)
TaurArian [MVP] 2005-2010 - Update Services
-
I can barely read my monitor. I tried to adjust the color and resolution but does not
original title: monitor settings
I can barely read my monitor. I tried to adjust the color and resolution, but nothing helped.
Hello
try going to your graphic card manufacturers site or computer and are looking for the driver download section
Search your computer or graphics card model number based on what you have and download and install the latest graphics drivers for vista
then try to make the screen of solution of problems
http://Windows.Microsoft.com/en-us/Windows-Vista/change-screen-resolution
Change the screen resolution
-
Original title: acro32.exe
I did the update of windows, and there was a lot of mistakes. I then tried to restart the system, and it is said that acro32.exe is he keep awake. What is and how to fix it?
If you really see a message about "acro32.exe" is probably malware you should scan your computer with the virus eset online scanner and then download, update and run the free version of MalwareBytes AntiMalware.
If, as is most likely, the message concerns AcroRd32.exe, the main executable file of Adobe Reader. Go to control panel > programs and features and uninstall Adobe Reader. If you have problems uninstalling Adobe Reader, see--> http://labs.adobe.com/downloads/acrobatcleaner.html
Assuming that things patches, install Foxit Reader (free) instead--> http://www.foxitsoftware.com/Secure_PDF_Reader/
Or, if you really want Adobe Reader back, go here--> https://get.adobe.com/reader/ (remember to uncheck the box to install McAfee Security Scan or any other 'add-on free")
-
What is the best way to resize an image, but keep the height and width of the same original size or format?
I tried to use the function of the size of the Image, but when I changed the size of the image, the width has not changed with it.
Thanks for the tips!
Hi Landon.Luu,
You want to keep the relationship between the width and height to be the same?
Click the constraint between width and height to keep the ratio intact.
Kind regards
Claes
-
Keep the session with Esx/Vcenter throughout the backup
Hello
When I trigger a backup of drive on a virtual machine, I have the following algorithm.
1. log in to the host.
2 take a snapshot of the virtual machine.
3. for each disk in the virtual machine, the request for the block changed.
4. take the backup of the disk.
5. Repeat steps 3 and 4 for the entire disc.
6. store the virtual machine configuration.
7 remove the snapshot.
8 disconnection.
When I tested my code with a very large drive which took place for a 8hrs say for a diskbackup complete, when I get to step 6, the session appears to have expired. With the exception of the removal of the snapshot, I think I can work around the problem - since the snapshot is an object of the session, just confused how this can be managed. Is there a way to keep the session until I finish the backup - as it seems more natural to keep the session so that all operations are completed instead of trying to work around. Let me know your opinion.
Thank you
. / Siva.
Hello Shiva!
I couldn't find a way to get the object of snapshot based on the name. One of the recommended steps to do before taking a snapshot is to delete all the snapshots with the name that you use to take the snapshot - which are essentially snapshots of the backup failed. The virtual computer object provides a way that to remove all snapshots - which of course is false, but does not rely on the name of the snapshot. Any ideas on that?
Sorry to be not been clear enough, I'll try one another: how to find a snapshot by name?
I agree with you that it is not obvious at first glance. In my opinion the VirtualMachine managed object provides a property named 'snapshot '. This property is an instance of data object VirtualMachineSnapshotInfo. There is a property named "rootSnapshotList". This property is an array of data objects VirtualMachineSnapshotTree . And now comes the crucial point to the routine:
To me, it seems that the hierarchy entire snapshot is represented by instances of VirtualMachineSnapshotTree of objects where each of them finally points to the successful VirtualMachineSnapshot Explorer they represent in fact. The tree object provides data in read-only snapshot represented, i.e. name, description, etc.
In short:
- Download the roots of instant trees via VM.snapshot.rootSnapshotList
- Recursively browse through [VirtualMachineSnapshotTree.childSnapshotList]
- Identify your snapshot via VirtualMachineSnapshotTree.name
- Access to the managed VirtualMachineSnapshot object via VirtualMachineSnapshotTree.snapshot
- Remove the snapshot via the method RemoveSnapshot_Task
I guess that should work :-)
-
At the opening of the library of photos, each photo turn the black thumbnail and so that to open it. Preview also does not have photos properly. I tried to repair the library and this did not help. Could this be a problem with the RAM? Help, please!
Check, if pictures can access the original files of your pictures, or if the originals are missing.
You can test to try to edit a photo or trying to export it with "file > export > export original file..."
Photos can be edited or exported?
Shooting Raw or JPEG? Where your photo library is stored? On an external disk or in your pictures folder?
-
How can I keep the dock and menu bar in the window
How can I keep the dock and menu bar in the window
First of all, go to System Preferences and select general:
Under the dark menu and dock option, uncheck "hide and show the menu bar automatically".
Go back and select Dock Prefs system:
Make sure that "automatically hide / show the dock" is not checked.
-
Tried to update the computer and got the error code 80070490
I tried to download the update, and I get the error code 80070490. I tried to download one that you people told me to download to see if it corrects the problem. He did not, then I was told that I needed to reinstall Vista from disk, but I don't have the disc Vista came already in my computer. Is there a link where I can download from you guys directly. Help, please.
Hello
M ode 1.
You can try to install the updates to the clean boot, please visit the link mentioned to perform the clean boot below.
http://support.Microsoft.com/kb/929135
Method 2.
See the city link below to download and install the system update readiness tool
http://support.Microsoft.com/kb/947821
Method.3
Follow the link below city to run windows update
http://Windows.Microsoft.com/en-us/Windows-Vista/install-Windows-updates
See also: http://Windows.Microsoft.com/en-GB/Windows-Vista/Windows-Update-error-80070490
-
Hello, I have a creative signature cloud trying to renew the plan and will not appear in the information of the plan page. What should I do? adiquiro a new plan? or can someone help me?
Hello
For more information, see the following links:
Renew, restart, or extend your Adobe Creative Cloud membership
'Renew your membership' message when you start an Adobe Creative Cloud application
If nothing helps, please get in touch with support with adobe:
-
Hi, on some sites of adobe muse, when I load, I get a mobile version of the site (on a laptop). I tried to remove the 'phone' and the words after that on the address bar and even cleaned my browser, but the problem still exists. What can be the reason? I am using Lenovo y50... help me please
The y50 Lenovo is a hybrid and that manufacturers are especially ThinkPads, I guess that Adobe sees it as such is why you get the phone display.
However, you can delete the 5876 to get a view of the desktop and all do it muse site
for example, the home page
change the /phone/index.html to businesscatalyst.com/index.html to see the office... I suppect you forgot the slash so delete/phone phone not only
Office ex = yourweb page | Home
-
I installed the update of Adobe Acrobat reader on my computer a few weeks ago. I couldn't print my documents, new or old. I tried to uninstall the program and re-install and that has not worked. I went to the HP website and from the down loaded the latest printer drivers, and that did not work. I went to tools for the production printing package that reads 'Add' tab. I clicked Add and got a (1-800-915-9430) number to call if I want to pay other services that offer Adobe. I called the number in the hope of getting my answers to the question and that has not worked. I've gotten has been a long wait (1 h) for a person to respond to the call and when they meet a poor service. I went to different forums looking for answers and found my question but not response. The messages I get are: "the document could not be printed" and "there is no page selected. Is there a solution to this problem? The version of window is Win7.
Hi Abhishek,
I followed your instructions and none of it worked. I had to uninstall Acrobat Reader and then update my version of the window. After that I downloaded Acrobat Reader again and it worked. Thanks again for your help.
-
Hello. I have download Adobe Acrobat Pro DC, after loading it is a window that is unable to access the Internet or is configured incorrectly. Tried to change the time and the Internet works fine. What can we do?
Log, activation, or connection errors. CS5.5 and later, Acrobat DC
https://helpx.Adobe.com/x-productkb/policy-pricing/activation-network-issues.html
Maybe you are looking for
-
email has expired and I forgot security issues
Hello I have 2 problems: 1. to register my account, I have an alternative email address. the problem is that email is now expired before that I could change... 2. I've forgotten my security questions Together this makes the problem: I can not change
-
the update of firefox 28 for mac does not, the bar just rotates, I can't get the update
the update of firefox 28 for mac does not, the bar just rotates, I can't get the update. Thank you
-
When Windows 8 driver for laptop Satellite C660D - 1 H 2 be available?
When Windows 8 driver for laptop C660D - 1 H 2 be available?
-
Microphone does not work on the Satellite L830 - 10 p
Hello I use my new computer laptop satellite L830 - 10 p for three months. At the beginning everything worked well. Then, suddenly, the microphone not working.I checked and found that the * microphone is not more recognized as a device *. I have rein
-
H8-1534: upgrade of windows 10 says video card is not compatible
I have an office h8-1534 and I booked the 10 windows and when I ran the can I launch it says that my amd radeon hd 7570 is not totally compatible and I'll expericene problems with the display. I know that the drivers for this happen at hp, but can I