Regarding access to the ADF JS internal.
HelloIs there a way we can get a handle to the ADF internal JS functions? My requirement goes something like this.
There is a sign box\accordion that opens by clicking on the icon of the disclosure. I need to get a handle on this disclosure js function so that I can call it elsewhere on the page.
Note: I currently do not have necessary to override the js function to do anything else, just call him also.
Please let me know if this is possible and how.
Kind regards
Hello
no need to use an internal API
var Panel = AdfPage.PAGE.findComponentByAbsoluteId (showDetailPanelId);
Panel.Broadcast (new AdfDisclosureEvent (Panel, true_or_false));
Frank
Tags: Java
Similar Questions
-
Access to the hard drive internal
Hello
I currently have two hard drives in my PC. An SSD that manages windows and various other programs etc. In addition, another hard drive. call it a storage disk. At the moment it is accessible by any user of the PC. I was wondering if there is a way to limit disk storage of said access to individual logons? Thus, for example, if has and B were at the PC users... user A could see their files and not user B? Pretty much the same premise as a logon to their own profile and be able to only see their own stuff.
Or is it possible to simply restrict the said walk completely one user?
Any advice would be much appreciated!
Thank you!
Right-click any folder on the external drive, then click Properties, click the Security tab. Now, add or remove user names in the list at the top according to your needs.
Warning: do not place the tick marks in the deny column. This is likely to have unintended consequences. -
Question regarding access to the catalogues and files to an external hard drive in 6 items.
Having just acquired a DHM, I have successfully conducted a test of back up of a catalogue of photo of 6 2000 of an XP PC-based elements, using the Elements 6 complete the backup process. This process is intended to be used eventually to transfer it and other catalogs on a new Windows 8 PC installed with 11 elements.
However, while I would also like to be able to access the image files and the data of the catalogue on the EHD for a Vista based laptop which also has some Elements installed 6. Can you please advise how to make this without a full restoration of process that would load all the files on the hard drive of my laptop.
In the transfer of the EHD image I also seem to have lost the original structure of the file that was on my PC, as the files have been renamed numerically and are all files held individually in the main folder of the ehd. While is not too serious a lot while the files remain on the EHD, provided the catalog always knows where to find them, has the structure of the file original been permanently lost, or I can it recreate when I finally to restore the files and catalog on the new PC in Windows 8?
I can't wait to get this process right as I have a much bigger catalog similarly backup and transfer, once I was able to acquire the new PC and hoped to be able access the same way this catalogue by my laptop of EHD. given the lack of hard drive space on my laptop to contain all the 20 000 files that are involved.
Help, please
179 of the gardener
However, while I would also like to be able to access the image files and the data of the catalogue on the EHD for a Vista based laptop which also has some Elements installed 6. Can you please indicate how do complete it without a restoration process that would load all the files on the hard drive of my laptop.
When you are restoring, say you PES to restore to a new location, this place being on the EHD
In the transfer of the EHD image I also seem to have lost the original structure of the file that was on my PC, as the files have been renamed numerically and are all files held individually in the main folder of the ehd.
In fact, you have not lost this file structure. When you perform the restore, the folder structure will be returned to as it was.
-
share the contents of the adf with WebService
Dear all.
For my purpose, I have to share adf context with the web service. Let's take an example:
I managed bean class 'Main.java ':
public class Main {}
public Main() {}
}
public String AnyResult() {}
BindingContext bindingContext = BindingContext.getCurrent ();
DCBindingContainer dcb = bindingContext.findBindingContainer("view_page1PageDef");
DC DCDataControl = dcb.findDataControl("AppModuleDataControl1");
AppM AppModuleImpl = (AppModuleImpl) dc.getDataProvider ();
ViewObjectImpl vo = appM.getVO1 ();
vo.executeQuery ();
Line = vo.next ();
System.out.println (Row.GetAttribute("Data1"). ToString());
}
}
and the web service class:
@WebService
public class {Job
/.../
context WebServiceContext private;
private main cm; @WebMethod
@Oneway
public void run() {}
cm = new Main();
System.out.println (cm. AnyResult());
}
}
Result: BindingContext bindingContext = BindingContext.getCurrent (): Returns NULL
How to share the context of the ADF with web service for access to the ADF model.
Kind regards.
Something in your architecture is not supposed.
Usually, Web Services are part of your model layer - and if they want to access a Module of application they need not go through the viewController layer.
If you want to transfer data to your Web Service - pass it as parameters to the function - in this way your service is not dependent on a user interface layer.
-
Storage and access to the values of the pageFlowScope at the bean
Using JDeveloper 11.1.1.4.0
Hi again,
I read somewhere that store parameter values in a bean is a good practice, now I wonder. I did this and 'declared' this bean to my workflow bounded as pageFlowScope. Now, I need to access the values in another bean "method (scope of application) and cannot get them." If I would have just used EL #{pageFlowScope.variable1} I know how access (as in my code below), but since they are in a bean I can't find the right way to retrieve the values. Is it possible and how?
I also tried to use accessors of the bean of the pageFlowScope, which gives me an error indicating that the access is forbidden.<managed-bean id="__3"> <managed-bean-name id="__2">ViewAmtsParameters</managed-bean-name> <managed-bean-class>tax.viewamtsowedtreetbl.view.ViewAmtsParameters</managed-bean-class> <managed-bean-scope id="__4">pageFlow</managed-bean-scope> </managed-bean> // Get access to the adf faces context for page flow scope AdfFacesContext adfctx = null; adfctx = AdfFacesContext.getCurrentInstance(); BindingContainer bindings = getBindings(); OperationBinding operationBinding = bindings.getOperationBinding("ExecuteWithParams"); // Set the parameters for the query operationBinding.getParamsMap().put("cid", adfctx.getPageFlowScope().get("ViewAmtsParameters.clientIdParam")); operationBinding.getParamsMap().put("can", adfctx.getPageFlowScope().get("ViewAmtsParameters.canParam")); operationBinding.getParamsMap().put("asofdate", newValue); System.out.printf("first execute parms %s %s %s \n", operationBinding.getParamsMap().get("cid"), -- returned null operationBinding.getParamsMap().get("can"), -- returned null operationBinding.getParamsMap().get("asofdate"));
Thanks again in advance.
Troy"" "You're almost there. '" You cannot directly access the bean inside bean attributes. The pageFlowScope card allows you to access the bean itself. Once you have the bean, you can use their getter to get the attributes.
Or you use the EL (as you use it on the page) and evaluate it for the value:public static Object resolveExpression(String expression) { try { FacesContext facesContext = FacesContext.getCurrentInstance(); Application app = facesContext.getApplication(); ExpressionFactory elFactory = app.getExpressionFactory(); ELContext elContext = facesContext.getELContext(); ValueExpression valueExp = elFactory.createValueExpression(elContext, expression, Object.class); return valueExp.getValue(elContext); } catch (Exception e) { e.printStackTrace(); } return null; } public void YOURMETHOD() { AdfFacesContext adfctx = null; adfctx = AdfFacesContext.getCurrentInstance(); Map pageParams = adfctx.getPageFlowScope(); // assuming the class of your bean class is ViewAmtsParametersBean and the name you've given the bean is "ViewAmtsParameters" ViewAmtsParametersBean parambean = (ViewAmtsParametersBean) pageParams .get("ViewAmtsParameters"); //an other way to access the bean attributes is to use EL String strIdParam = (String) resolveExpression("#{pageFlowScope.ViewAmtsParameters.clientIdParam}"); BindingContainer bindings = getBindings(); OperationBinding operationBinding = bindings.getOperationBinding("ExecuteWithParams"); // Set the parameter for the query operationBinding.getParamsMap().put("cid", parambean.getClientIdParam()); operationBinding.getParamsMap().put("can", parambean.getCanParam()); operationBinding.getParamsMap().put("asofdate", newValue); System.out.printf("first execute parms %s %s %s \n", operationBinding.getParamsMap().get("cid"), operationBinding.getParamsMap().get("can"), operationBinding.getParamsMap().get("asofdate")); }
Timo
-
Access and modify rich components inside cells in the table of the ADF
Hello.
This is my current problem with Tables in the ADF.
I drop a simple VO in a page and create a table. Suppose one of the attributes/columns (named flagID, for example) may have specific values: 1 or 2.
Next, I add another column that contains links to the ADF.
For each line, I need it:
- If row.flagID.value is equal to 1, then its corresponding line contains an ADF link with text '1 link' value and go to destination 1 (can be a page, popup, etc.)
- If row.flagID.value is equal to 2, then its corresponding line must include an ADF link with text "Link 2" value and proceed to destination 2.
My main problem is to customize each cell. I add a column, I add a link "ADF" in this column, but how can I customize the link and its attributes as I have explained, at the level of cells?
How to access programmatically the cell, not its value, but its rich Component?
Is it possible (programmatic or not) to do?
Any help would be much appreciated.
Thanks in advance. Best regards
Try the EL Expression on the property of the ADF link text
#{row.flagId.value = 1? {Link 1: link 2}
If the link is to behave differently according to the text, and then create a listener of the action on the link and do the required action.
Thank you
Morgan.
-
Hello
I try to get the data of the selected line in the bean on the change of SelectOneChoice in a column of table of the ADF.
There are two definitions of node in the iterator. When I try to access the data in the row. I see that the first definition of node data.
How to access the definition data another node?
I'm trying to access the "sponsorId" of the iterator. I use the code below. But his return null pointer exception.
The code I use to access the data in the row:
DCBindingContainer links =
(DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding = dcItteratorBindings
bindings.findIteratorBinding ("sponsorIterator");
ViewObject voTableData = dcItteratorBindings.getViewObject ();
Line rowSelected = voTableData.getCurrentRow ();
System.out.println (":" + rowSelected.getAttribute ("sponsorId")); I am able to see the data correctly for sponsorCodeDesc, sponsorPercentage, sponsorStatusDesc
This is the iterator used for the table (page def):
< Tree IterBinding = "sponsorIterator" id = "sponsor1" >
< nodeDefinition DefName = "org.ieee.internal.ws.proxy.conf.types.ConferenceType.Sponsors.Sponsor"
Name = "sponsor10" >
< AttrNames >
< item Value = "sponsorCodeDesc" / >
< item Value = "sponsorPercentage" / >
< item Value = lie "sponsorStatusDesc" = "sponsorStatusDesc" / >
< / AttrNames >
< accessors >
< item Value = "sponsorDetails" / >
< / accessors >
< / nodeDefinition >
< nodeDefinition DefName = "org.ieee.internal.ws.proxy.conf.types.SponsorType"
Name = "sponsor11" >
< AttrNames >
< item Value = "sponsorId" / >
< item Value = "sponsorName" / >
< item Value = "isIEEE" / >
< item Value = "isNonProfit" / >
< item Value = "sponsorAcronym" / >
< item Value = "sponsorDesc" / >
< item Value = "sponsorEmail" / >
< item Value = "sponsorComment" / >
< item Value = "sponsorTypeId" / >
< item Value = "sponsorTypeDesc" / >
< item Value = "sponsorActive" / >
< item Value = "societyNumber" / >
< item Value = "businessUnit" / >
< item Value = "createdBy" / >
< item Value = "updatedBy" / >
< / AttrNames >
< / nodeDefinition >
< / tree >you have not yet a selectionlistener linked to the table... to make the currentrow as the selectedRow...
Can u please add the selectedRowKeys and the selectionlistener in the table asselectedRowKeys = "#{bindings.sponsor1.collectionModel.selectedRow} '"
selectionListener = "#{bindings.sponsor1.collectionModel.makeCurrent} '" -
Access to the internal mail (Exchange) by centimeters remote VPN server
Hi all
I have a problem in the configuration of ASA 5510 to access my internal mail (Exchange) through remote access VPN server
one... I have set up my D-Link ADSL router to port before the SMPTP (25) & POP3 (110) to the external interface of ASA 5510 (192.168.5.101 255.255.255.0)
b. How can I configure ASA 5510 (using ASDM) to portforward (SMTP POP3 110 25) to my internal mail server with IP 192.168.50.2 255.255.255.0
c. my internal LAN network (192.168.50.0 255.255.255.0) is coordinated at 10.1.1.0 255.255.255.224 for vpn clients
d. my IP of mail server (192.168.50.2 255.255.255.0) will also be translated while clients are accessing content through remote VPN access
e.What IP (Exchange of IP of the server (192.168.50.2) do I have to set up in Microsoft Outlook (incoming & outgoing mail server), vpn clients receive using a NAT IP 10.1.1.10
Here's my configuration details of access remote vpn
: Saved
: Written by enable_15 at 13:42:51.243 UTC Thursday, November 27, 2008
!
ASA Version 7.0 (6)
!
hostname xxxx
domain xxxx
enable the encrypted password xxxxx
XXXXX encrypted passwd
names of
DNS-guard
!
interface Ethernet0/0
nameif outside
security-level 0
IP 192.168.5.101 255.255.255.0
!
interface Ethernet0/1
nameif inside
security-level 100
IP 192.168.50.101 255.255.255.0
!
interface Ethernet0/2
Shutdown
No nameif
no level of security
!
interface Management0/0
nameif management
security-level 100
management only
IP 192.168.1.1 255.255.255.0
!
passive FTP mode
list of access inside the _nat0_outbound extended permits all ip 10.1.1.0 255.255.255.224
allow a standard vpn access list
outside_cryptomap_dyn_20 list of allowed ip extended access any 10.1.1.0 255.255.255.224
vpn-ip-pool 10.1.1.10 mask - 255.255.255.0 IP local pool 10.1.1.25
Global interface 10 (external)
NAT (inside) 0-list of access inside_nat0_outbound
NAT (inside) 10 0.0.0.0 0.0.0.0
Route outside 0.0.0.0 0.0.0.0 192.168.5.1 (D-Link ADSL router LAN IP) 1
internal vpn group policy
attributes of vpn group policy
Split-tunnel-policy excludespecified
Split-tunnel-network-list value vpn
WebVPN
xxxxx xxxx of encrypted password privilege 0 username
attributes of username xxxxx
Strategy-Group-VPN vpn
WebVPN
ASDM image disk0: / asdm - 508.bin
don't allow no asdm history
ARP timeout 14400
Enable http server
http 192.168.1.0 255.255.255.0 management
No snmp server location
No snmp Server contact
Server enable SNMP traps snmp authentication linkup, linkdown cold start
Crypto ipsec transform-set ESP-3DES-SHA edes-esp esp-sha-hmac
Crypto-map dynamic outside_dyn_map 20 the value transform-set ESP-3DES-SHA
card outside_map 655535-isakmp ipsec crypto dynamic outside_dyn_map
outside_map interface card crypto outside
ISAKMP allows outside
part of pre authentication ISAKMP policy 10
ISAKMP policy 10 3des encryption
ISAKMP policy 10 sha hash
10 2 ISAKMP policy group
ISAKMP life duration strategy 10 86400
tunnel vpn ipsec-ra group type
VPN tunnel-group general attributes
ip vpn-pool address pool
Group Policy - by default-vpn
Tunnel vpn ipsec-attributes group
pre-shared-key *.
Telnet timeout 5
SSH timeout 5
Console timeout 0
management of 192.168.1.2 - dhcpd address 192.168.1.254
dhcpd lease 3600
dhcpd ping_timeout 50
enable dhcpd management
!
Policy-map global_policy
class inspection_default
inspect the dns-length maximum 512
inspect the ftp
inspect h323 h225
inspect the h323 ras
inspect the rsh
inspect the rtsp
inspect esmtp
inspect sqlnet
inspect the skinny
inspect sunrpc
inspect xdmcp
inspect the sip
inspect the netbios
inspect the tftp
!
global service-policy global_policy
: end
So can someone help me, how can I configure these tasks
You can without problem
-
Cisco vpn client to connect but can not access to the internal network
Hi all
I have a VPN configured on cisco 5540. My vpn was working fine, but suddenly there is a question that the cisco vpn client to connect but can not access to the internal network
Any help would be much appreciated.
Hi Samir,
I suggest that you go to the ASA and check the configuration to make sure that it complies with the requirements according to the reference below link:
http://www.Cisco.com/en/us/products/ps6120/products_configuration_example09186a00805734ae.shtml
(The link above includes split tunneling, but this is just an option.
Please paste the output of "sh cry ipsec his" here so that we can check if phase 2 is properly trained. I would say as you go to IPSEC vpn client on your PC and check increment in packets sent and received in the window 'status '.
Let me know if this can help,
See you soon,.
Christian V
-
internal web server access to the content of the network using the public ip address
Hi, I saw similar topics, but not a clear answer about it. I have a PIX 515e with two interfaces, a web server internal (ip 192.168.0.5) and internal users want to access the server by its (99.99.99.9) ie public ip address is not using DNS. Tried the command alias ' alias (inside) 99.99.99.9 192.168.0.5 "but does not work for http. I can access the server on the local network using the public address for smtp, pop3 and ftp with or without command alias, but not the http service. Any idea?
a few quick comments.
a function of the command "alias" is to force the pix to manipulate the dns response. However, you mentioned that you didn't use dns.
'alias' command will also force the pix to send traffic to 192.168.0.5 when it receives a packet from the inside and intended to be 99.99.99.9. However, since the host and the server are located in the same segment, i.e. pix must re - route the packet to the inside interface, and this operation is not supported with pix v6.x.
In addition, you mentioned the inside host can access the smtp, pop3 and ftp using 99.99.99.9. This is interesting because the host of 192.168.0.0 would not directly have access to the host of 99.99.99.x without router.
-
Hi all
I have a question, I am a beginner with ADF and learn a lot through these forums and Google
Using Jdeveloper 11.1.1.7
is the question I have, I have a cluster/HA environment (2 knots) and move my application to use HA.
I changed the ADF - config.xml to add the following line:
" < adf-controller-config xmlns =" http://xmlns.Oracle.com/ADF/controller/config "> "
< adf-scope-ha-support > true < / adf-scope-ha-support >
< / adf-controller-config >
I currently have a managed bean (ViewScope) and it has all my actionListeners/valueChange etc... etc... It also has my UIComponent links and I have also several methods that define specific attributes on these components and then do:
AdfFacesContext.getCurrentInstance () .addPartialTarget ("ComponentRefHere");
I am aware that I have to put my beans managed to implement Serializable I also understand that the UI components are not serializable.
I use the ComponentReference method that is to say:
private ComponentReference<RichPanelBox> iframePB; public void setIframePB(RichPanelBox component) { iframePB = ComponentReference.newUIComponentReference(component); } public RichPanelBox getIframePB() { return uiComponentBean.getIframePB(); }
is the question I have, I can leave it like that? or will I move them to a different managed bean?
If so, how should I put the bean, it must also implement serializable, and how do I access them from my managed bean viewScope.
Thank youYou don't have to. Https://docs.oracle.com/javaee/6/tutorial/doc/gjbbk.html documentation
The beans that use the scope of the conversation, application, or session must be serializable, but beans that use the scope of the request need not be serializable.
I personally always add the serializable interface as the bean has never should be selected for serialization, it should not control. It is easier to tell everyone to add it anyway. In this way, you can use the same class in all scopes.
Timo
-
ADF Application on two different servers - unable to access at the same time.
I use Jdeveloper 11.1.2.3.
An ADF application is deployed on a server QA and Clone. A single point of time I could not access the two QA and clone the application of
a web browser. Suppose that if QA has been opened first, and if I try to open the clone, the QA disconnects automatically. The same thing happens if I try to open both with different browsers.
Is it something to do with the security of the ADF, or something related to my request.
Could someone guide me please?Hello
Appears not to have something to do with the ADF or ADF security. Server names must be different and so same same WLS should not conflict.
Frank
-
How to access all the lines one by one, a table ADF via managed bean
Hi Experts,
Hi I'm new in the ADF.
Could someone help me to fix the case below?
Scenario - I have a table called Test_T1 that have 4 columns C1, C2, C3, C4. Creation of EO, VO and AM for test_t1.
When created in pages ADF, I selected the option "automatically exposed components UI in new managed bean" (mynewmanagedbean.java).
Control data drag and drop Test_T1 table in the page as a table of the ADF.
Set the properties is read-only C1, C2, C3 and C4 is an input text.
Add after the table and attathed button action on the mynewmanagedbean.java bean managed.
At the time of the Test_T1 page filled with a few No.. lines (such as 9).
How can I access all the lines above through the key without selection of these.
In fact, I want to print all the rows of the table in the log at the time to press the button.
Thanks in advance.Sorry for the delay, the code was copied from another test case. You can work directly with the line...
I created a new test case based on the departments of the HR schema table:import oracle.adf.model.BindingContext; import oracle.adf.model.bean.DCDataRow; import oracle.adf.model.binding.DCBindingContainer; import oracle.adf.model.binding.DCIteratorBinding; import oracle.adf.share.logging.ADFLogger; import oracle.jbo.Row; public class DumpRows { private static ADFLogger _logger = ADFLogger.createADFLogger(DumpRows.class); public DumpRows() { } public String cb3_action() { DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry(); DCIteratorBinding dcIteratorBindings = bindings.findIteratorBinding("DepartmentsView1Iterator"); // Get all the rows of a iterator Row[] rows = dcIteratorBindings.getAllRowsInRange(); for (Row row : rows) { String depname = (String)row.getAttribute("DepartmentName"); _logger.info(depname); } return null; } }
As you do not have the class of line interface build you must get the attributes in their names. Be careful here, because any misspelling is cought only when you run the application.
Timo
-
To access the ADF UI components programmatically
How to locate an element of the ADF UI by its ID and access it programmatically, without the help of the Binding property?
What is the problem with the following code?
{} public void onButtonPressed (ActionEvent actionEvent)
FacesContext fc = FacesContext.getCurrentInstance ();
ELContext elctx = fc.getELContext ();
ExpressionFactory ef = fc.getApplication () .getExpressionFactory ();
ValueExpression ve = ef.createValueExpression (elctx, "#{it1}", UIXComponent.class);
RichInputText he = (RichInputText) ve.getValue (elctx);
System.out.println (IT. GetAttributes () .get ("label"));
it.setValue ("hehe");
}
'it1' is the Id of my InputText.
Published by: Alex October 30, 2011 23:54Hi Alex,
This isn't the right way to get the part #{it1} is not valid.
Here is the code example for the component by id, but is not recommended that you need to know the parent ID of component as well and it would be difficult to maintain in the long term:
FacesContext context = FacesContext.getCurrentInstance(); context.getViewRoot().findComponent("
") What is your exact usecase?
No reason to not use binding property?Jean Lou
-
ADF Mobile: Access to the authentication context
Hello
My app uses against remote WLS basic authentication (cookie JSESSIONID is used to store the token).
A java bean, I would read the name of the authenticated user and store it in the local database. Methods and who or classes provide access to the authentication context?
JDeveloper 11.1.2.4 does not allow me to import something like oracle.idm.mobile. *.
Thank you very much
Daniel
It should be available as: #{securityContext.userName}
Try to watch this value once the user is connected and see if it is correctly set.
Rich.
Maybe you are looking for
-
Back to the same place of the web page
When I click on the arrow to the left happens to me on web page, I was ahead, but there also go to the top of the page, but not to the task, I was working, so I have to scroll down to this place. How can I get back to this place on the web page?
-
Hello I am trying to open a file .xls existing from the same location as the test sequence file. Can you TestStand search in the location of the sequence input file test file and then select the if present? Also, can we store the output file in the s
-
Original title: Windows Media Player does not Remember - this is a public forum so never post private information such as numbers of mail or telephone! I have Windows XP Professional and have tried playing the CD through Windows Media Player. I get t
-
Do not have access to the oracle community ideas
HelloWhy don't I have access to the Oracle community ideas
-
HelloHow are they managing initial data priming guys?Our situation is as follows:We have our main SAN and ESXi infrastructure to the A. also site to the site, we have a spare SAN. We want exemplary (seeds) all virtual machines important to spare SAN