ADF Mobile: How to pass usernameToken properties dynamically

In ADF mobile we can set static values of the username and the password in the security configuration of the WSSE as binding for usernameToken properties. Is it possible to pass these values dynamically (for example) managed bean, or as an entry from the user interface?

You use a charger BC of basic web service?
If Yes: http://andrejusb.blogspot.be/2012/11/adf-mobile-secured-web-service-access.html

Tags: Java

Similar Questions

  • ADF Mobile: How to upgrade chart dvtm

    Hello

    I'm developing an ADF Mobile application that has component dvtm:graphLine. When the application is paused (user switches to another application, for example) and open the application again at a later date, should automatically refresh the chart to display the current data. I put in place of the page life cycle and function to activate it, I try to refresh the iterator. However when I open the app, suspend and open again, the chart says "No Data", even if the iterator is updated (I can follow in web service log) how can I update the graph to display the data updated? Another way of saying, how can the chart automatically update us when the underlying iterator is updated?

    Kind regards

    You might have better luck if you post an example of code, like how you refresh the iterator. Have you tried using the PropertyChangeSupport notification?

  • ADF Mobile: How user Bind for Backing Bean UI elements

    Hello

    Is it possible to access UI element such as the PanelGroupLayout of the bean of ADF Mobile support? I would like to gain access to its properties and methods.

    Thank you

    estt wrote:
    Thank you for your response. We expect hide or show a PanelGroupLayout according to the preferences. If the user defined in the preferences, the necessary information, we will hide the Panel, show otherwise.

    You can set an attribute in your bean that contains the value 'true' or 'false' and use this attribute to the attribute that is made for your PanelGroupLayout component.

  • ADF MOBILE: how to add an item in the list without refresh the entire list

    Hello

    I am using this method to add an item to a list (I've already added the item to the data model):


    providerChangeSupport.fireProviderCreate (String providerKey, int newRowKey, object newValue);


    I don't want refresh the entire list, rather, I want to just add a new item to the list, that's why I want to use this method.


    I want to know, what value should I use for the second argument? i.e. 'int newRowKey '.


    Thank you


    Hello

    the event of change of provider in your case seems to actually create a new line. So the int is the rowKey (index PK or line) of the new line. There is no other choice to simply add an element to a list (ADF Mobile provides no component handles)

    See: Embedded Java/ADF for beginners: ADF Mobile: refresh your valuable data

    Frank

  • ADF Mobile - How will I know which device is using my application?

    Hello, I am developing an app in adf mobile and I need to know if a device running that this application is a mobile phone or tablet, there no way to know what device is running in my application?

    Thank you!

    deviceScope is where you get that kind of thing. Found a tutorial that should help you get started.

    https://blogs.Oracle.com/mobile/entry/tablet_layouts

  • ADF mobile: how to download a file by using the adapter remains api

    Hello

    I want to download files using the adapter. How would download files like PDFs, images (png, jpg...) etc... Some code would be appreciated.

    Thank you

    Ok

    After days of headaches, there is a way to send files using the adapter and the code above for the side server. Even if it's a big fall in mobile ADF perspective they have no api for this.

    To download a txt file, you can simply copy and paste the text file into a string and have the string supplemented with appropriate limit values and padding values ('\r\n') before and after the string.

    To transfer a binary file, you must convert the file to a base64 string, then put it in the form mentioned above.

    then you can send it as follows:

    restAdapter.send (fileString);

    Don't forget to add the appropriate headers.

    content type

    and

    definitions of values to the limits

  • ADF Mobile: How Fund selectAll feature component < amx:selectManyChoice >.

    Hi all

    I use version 11.1.2.4.0 version jdev.

    I created an amx page where I create component selectmanychoice but problem, it's that there is no option as selectAll who select the option all presented in the list

    so, how I do this?


    any link tutorial


    Thank you

    Manish

    HI Manish,

    I tried something like this in one of my scripts:

    public EditionLov [] getDepartments() {}

    checkBoxUpdate();

    EditionLov d [] = null;

    d = (EditionLov []) s_editions.toArray (EditionLov [s_editions.size ()]) of new;

    return d;

    }

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Public Sub checkBoxUpdate()

    {

    Object checkAll = AdfmfJavaUtilities.evaluateELExpression("#{pageFlowScope.checkboxSelection}");

    If (checkAll! = null)

    {

    Boolean b = checkAll (Boolean);

    AdfmfJavaUtilities.setELValue ("#{pageFlowScope.checkboxSelection}", null);

    int size = s_editions.size ();

    for (int i = 0; i)< size;="" i++)="">

    try {}

    Edition EditionLov = s_editions.get (i);

    edition.setMark (b.booleanValue ());

    }

    }

    }

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------

    {} public void selectAllEdition (ValueChangeEvent valueChangeEvent)

    Boolean flag = false;

    Flag = ((Boolean) valueChangeEvent.getNewValue ()). BooleanValue();

    ValueExpression veIter = (ValueExpression) AdfmfJavaUtilities.getValueExpression("#{bindings.departmentsIterator}",Object.class);

    AmxIteratorBinding iteratorBinding = (AmxIteratorBinding) veIter.getValue (AdfmfJavaUtilities.getAdfELContext ());

    AdfmfJavaUtilities.setELValue ("#{pageFlowScope.checkboxSelection}", Boolean.valueOf (flag));

    iteratorBinding.getIterator (.refresh ());

    }

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Please try this and let me know if it works.

    Kind regards

    Deepak

  • ADF mobile: How can I insert parts pure html in a page of amx?

    How can I insert parts pure html in a page of amx?

    There is one tag verbatim which is used to display html markup, but I don't know how to use it. Can someone give an example? I want to use a canvas tag.

    Thank you

    Something like this should work:

         
       

    ]]>

       
  • ADF MOBILE: How to get selected line of an iterator in java

    Hello

    I'm calling this function:

    providerChangeSupport.fireProviderChange (String providerKey, int currentRowKey, object newValue);

    to update an individual line in an iterator.

    What value should I use for the parameter 'currentRowKey '?

    It is just the index of the line?

    If this is not the case, what is the value, and how do I get it?

    Thank you.

    Hello

    Try

    ValueExpression expression = AdfmfJavaUtilities.getValueExpression ("#{bindings.getMyIterator}", Object.class);

    AmxIteratorBinding amxIterator = expression.getValue (AdfmfJavaUtilities.getAdfELContext ()) (AmxIteratorBinding);

    BasicIterator basicIterator = amxIterator.getIterator ();

    GenericType line = (GenericType) iter.getCurrentRow ();

    YourEntity entity = row.getDataProvider ((YourEntity));


    Frank

  • JDeveloper 10 g &amp; ADF Faces: how to pass parameters to the html page request?

    I have a simple HTML as follows:
    ...
    < name of the form = "form1".
    action = "http://myserver/MyApp/faces/start.jsp".
    method = "POST" >
    < label for 'USER' = > USER < / label >
    < input type = "text" id = "USER" > < / input >
    < input type = "submit" value = "Send" > < / input >
    < / form > < / body >
    ...
    In my ADF Faces application, I traced a javax.servlet.Filter custom class with the following text for the doFilter method:

    ' Public Sub doFilter (ServletRequest request, ServletResponse response,)
    FilterChain chain) throws IOException,.
    ServletException {}

    System.out.println ("filter in MyApp");
    Map map = request.getParameterMap ();
    User String = (String) map.get('zoom') ("USER");
    System.out.println ("map of ask size:" + map.size () + "user:" + user);

    ...
    }

    What is printed:

    02/11/16 14:27:26 filter in MyApp

    02/11/16 14:27:26 length of content: 0 coding: iso-8859-1 getContentType: application/x-www-formulaires-urlencoded

    02/11/16 14:27:26 size request card: 0 user CRDBApps: null


    What can be the problem?

    Thank you!

    Hi Wes Fang

    Maybe you can try to use "name" instead of "id" for the input tag?

    
    

    success
    Jan Vervecken

  • ADF Mobile: What is the AmxAccessorIteratorBinding line item?

    I can get the iterator, but the methods give no idea.

    What I'll throw it AmxAccessorIteratorBinding.getCurrentRow or BasicIterator.getCurrentRow?

    None Returns a specific type, all are subject.

    When I capture in propertyListener, it's the same...

    < amx:setPropertyListener from = "#{bindings.srvIterator.currentRow} '"
    to = "#{pageFlowScope.CurrentRow}" type = "action" / > "

    Any ideas? What is the exact type of throw a line item?

    I'm not 100%, I understand your problem, but that's what you're looking for?
    http://adf4beginners.blogspot.be/2013/01/ADF-mobile-how-to-iterate-over-all-rows.html

  • Dynamic model AMX in ADF Mobile

    Hi guys,.

    As seen in file AMX to design the user interface for ADF Mobile, but I just need to have a dynamic flow user interface
    for example. When choosing fall down in the page (A) and jump to the next page (b) with the value control to show some of < amx:inputText > in the page (b)

    How to make dynamic in amx?

    Hello

    have a bean managed in the Workflow page range. Bind the property made of components on the page to the same successful bean and have the bean by assigning the value of the field that is rendered true or false. That's how I'd do. A similar use case is here: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/m02-dynamicallyshowhidecomponents-1915399.pdf

    Frank

  • Header of page-how to pass a dynamic value?

    Hello

    I created a page - which redirects to an external link.
    I have following code in the page header.

    < META HTTP-EQUIV = "refresh" CONTENT = "2; URL = XYZ.com ">".
    < b > < p > < p > < p > < p > < p >

    < /b >


    When I run this page, redirects after 2 seconds to this particular url: xyz.com.

    My query is: Ii would there the URL value dynamically.

    I tried with the following code in the header:

    var abc = $v ('P97_TEST');
    < META HTTP-EQUIV = "refresh" CONTENT = "2; URL = abc ">".
    < b > < p > < p > < p > < p > < p >

    < /b >

    where P97_Test is an element of text field.

    But he directs me to a url: my_apex instance/abc. It does not work.

    No idea how to pass the value of the url dynamically? I need to get the success of a particular URL.

    Thank you
    Archana

    Dear Archana,

    I found the following solution work:

    (1) create an element on the page to the URL (in this example, P3_URL)

    (2) create a pl/sql process
    type: PL/SQL anonymous block
    address the point: on the laundry before header
    Source:

    begin
    :P3_URL := 'http://www.google.de/';
    end;
    -- this can be as sophisticated as you need
        
    

    (3) according to the Page Properties / header before HTML

    
    

    Marc

  • How to pass the Record of entry to the dynamic SQL Code

    Hi all

    I am trying to run under Oracle applications API on the remote database using DB Link. I try to run using dynamic SQL. Part of the code is given below.

    DECLARE

    l_batch_info_rec wsh_picking_batches_pub.batch_info_rec;

    l_rule_id NUMBER;

    l_rule_name VARCHAR2 (240);

    l_batch_prefix VARCHAR2 (240);

    BEGIN

    l_batch_info_rec.document_set_id: = v_document_set_id;

    l_batch_info_rec.order_type_id: = v_order_type_id;

    l_batch_info_rec. Default_Stage_Subinventory: = v_default_stage_subinventory;

    l_batch_info_rec.pick_grouping_rule_id: = v_pick_grouping_rule_id;

    l_batch_info_rec.pick_sequence_rule_id: = v_pick_sequence_rule_id;

    l_batch_info_rec.autopack_level: = v_autopack_level;

    l_batch_info_rec.autopack_flag: = v_autopack_flag;

    l_batch_info_rec.ac_delivery_criteria: = v_ac_delivery_criteria;

    l_batch_info_rec.backorders_only_flag: = v_backorders_only_flag;

    l_batch_info_rec.existing_rsvs_only_flag: = v_existing_rsvs_only_flag;

    l_batch_info_rec.customer_id: = v_customer_id;

    l_batch_info_rec.order_header_id: = v_header_id;

    l_batch_info_rec.from_scheduled_ship_date: = NULL;

    l_batch_info_rec.organization_id: = v_organization_id;

    l_batch_info_rec.include_planned_lines: = v_include_planned_lines;

    l_batch_info_rec.autocreate_delivery_flag: = v_autocreate_deliveries_flag;

    l_batch_info_rec.autodetail_pr_flag: = v_autodetail_pr_flag;

    l_batch_info_rec.allocation_method: = 'I ';

    l_batch_info_rec.pick_from_locator_id: = NULL;

    l_batch_info_rec.auto_pick_confirm_flag: = 'n';         -The value manually to run Transact order

    l_batch_info_rec.autopack_flag: = 'n';         -Manually configure to perform the manual packaging

    l_rule_id: = NULL;

    l_rule_name: = NULL;

    l_batch_prefix: = NULL;

    v_sqlstmt1: = ' START

    wsh_picking_batches_pub.create_batch' | g_db_link | "(1.0,

    fnd_api.g_true,

    fnd_api.g_true,

    : l_return_status,.

    : l_msg_count,.

    : l_msg_data,.

    : l_rule_id,.

    : l_rule_name,.

    : l_batch_info_rec,.

    : l_batch_prefix,.

    : p_new_batch_id

    );

    END;';

    --

    EXECUTE IMMEDIATE V_sqlstmt1

    With the HELP OF THE l_return_status,.

    ON l_msg_count,.

    ON l_msg_data,.

    BY l_rule_id,

    BY l_rule_name,

    BY l_batch_info_rec,

    BY l_batch_prefix,

    OUT p_new_batch_id;

    --

    END;

    After you run this script, I get below error "PLS-00457: expressions must be SQL types ' for variable l_batch_info_rec which is of type record. can someone please guide me how can I pass variable type dynamic SQL record.

    Thank you

    Priyanka

    Food for thought:

    On remote db:

    SQL > create or replace
    package 2 pkg
    3 is
    4 type r_type is (record
    Number 5,
    6 name varchar2 (10)
    7                            );
    (p) 8 procedure
    9 p_rec in r_type,
    10 p_out out varchar2
    11                  );
    12 end;
    13.

    Package created.

    SQL > create or replace
    package 2 body pkg
    3 is
    4 procedure p)
    5 p_rec in r_type,
    6 p_out out varchar2
    7                  )
    8 is
    9 start
    10 p_out: = "ID = ' |" p_rec.ID | 'Name =' | p_rec. Name;
    11 end;
    12 end;
    13.

    Package body created.

    SQL >

    On local db:

    SQL > set serveroutput on
    SQL > declare
    v_rec 2 pkg.r_type@pdb1sol12;
    3 v_out varchar2 (50);
    4 start
    v_rec.ID 5: = 1;
    6 v_rec.name: = 'XXX ';
    7 immediate execution"
    8                        begin
    9 pkg.p@pdb1sol12 (: 1,: 2);
    10                        end;'
    11 using v_rec,
    12 v_out;
    13 dbms_output.put_line (v_out);
    14 end;
    15.
    using v_rec;
    *
    ERROR on line 11:
    ORA-06550: line 11, column 20:
    PLS-00457: expressions must be SQL types
    ORA-06550: line 7, column 5:
    PL/SQL: Statement ignored

    SQL > declare
    2 number of v_id: = 1;
    3 v_name varchar2 (10): = 'XXX ';
    4 v_out varchar2 (50);
    5. start
    6 immediate execution"
    7 report
    8 v_rec pkg.r_type@pdb1sol12.
    9                        begin
    10                            v_rec.id  := :1;
    11 v_rec.name: =: 2;
    12 pkg.p@pdb1sol12 (v_rec,: 3);
    13                        end;'
    14 using v_id,
    15 in v_name,
    16 v_out;
    17 dbms_output.put_line (v_out);
    18 end;
    19.
    ID = 1 name = XXX

    PL/SQL procedure successfully completed.

    SQL >

    SY.

  • How to pass the value of DocTitle in IDOCSCRIPT dynamically?

    Hello

    Can someone please tell me how to pass value dynamically (I mean dDocTitle value) in IDOCScript to fetch a particular file.

    Concerning
    REDA

    How to display the CSST? Link you to it somehow? If so, you can pass a variable name in the URL and the name of this variable will be available in the Idoc Script.

    Jonathan
    http://jonathanhult.com

Maybe you are looking for

  • Why hide the menu bar hide the window title?

    [FF4.0] if I uncheck the (upper area of the R click) menu bar the title in the title at the top of the window bar also disappears. IE9 doesn't have a title bar empty! What is with the loss of the title bar? It is really useful...

  • Update 10.2.1 logic problem: controller keyboard Roland - 49 stop working

    My judgment of keyboard/controller of Roland A-49 working after install Logic Pro X update 10.2.1 I get a message "Please select MIDI CH.1...» "but even if I chose ch.1, this does not (no action from noon at all). Already uninstall and install Roland

  • WNDR3400V2 (RN600) router - wireless repeating with Wireless Modem Arris

    I need help. I have an Arris wifi Modem (TG862) - recently installed when moving into a new House and the signature to the top for cable internet. I have a problem with weak wifi signal in the rear rooms - with signal drop. I have the spare WNDR3400V

  • HP Pavilion 23-q114: how to connect a 23-q114 hp all-in-one for xbox one

    Hi, I just bought this option to use with my xbox one.i did not have a lot of space so I bought this all-in-one.i cant get it to work with my xbox one.this site does not help much.i thought these days, all the computers and tv should be able to hang

  • [Q] WiFi live in JB Ideapad K1?

    I just tried krook1 for K1 CM10. It's great! Thanks for the effort! A quick question: I don't see the WiFi Direct option in the framework. -What is that supposed to be native in ICS or JB? This feature is available in K1 to JB? Thank you!