Citing an actionURL outside the context of the ADF

Hello

I am struck a similar question as described in this thread: https://forums.oracle.com/thread/2320844

We have a JSR-286 on a page portlet and we use serveResource to return a JSON response. The URL of the resource is called from JavaScript code, which in turn then inserts a nice table in the JSP portlet page.

Now, we run into a case where we want to include an actionURL inside the JSON response.

It is possible to generate an action URL using the createActionURL call on ResourceResponse. This returns a URL that is yet to rewrite, but if this URL is inserted into the page through our JavaScript, it seems perfectly fine. The thing is that it doesn't do anything.

All links inside the portlets have JavaScript ADF around them, with a custom form with hidden fields. The format is:

< a href = "javascript:adfpp940818806_doAnchor (anchor_940818806_a4); "onclick ="javascript:setTimeout(actionRefresh,500);"> link< /a >

Is it possible that we can get this to work for our actionURLs which are inserted in the form of links through JavaScript and not the inside of the context of the ADF?

Kind regards

Jaap

We managed to work around this limitation by not generating the actionURL in portlet code, but only in the JSP content.

The actionURL must be inside the page for ADF/WebCenter generate the necessary form fields and JavaScript.

In the above code, anchor_940818806_a4 points to a valid actionURL. If necessary it can be manipulated through JavaScript.

Tags: Fusion Middleware

Similar Questions

  • Panel of the ADF does not variable defined in the ADF view object.

    I created a group of ADF, which allows the user to run some simple queries against a database of Oracle is using the view objects ADF and ADF view links and ADF application module.
    One of them asks detailed information of research on a database object (Table, view, or other) to dba_objects. SQL uses a parameter (: P_OBJ_NAME) which has a default value of "departments". If I run the ADF application by herself outside the ADF panel module, everything works fine, he invites me to provide a value for the parameter: P_OBJ_NAME.
    As I said the Panel contains various links to view ADF which one who must prompt the user to provide a value for: P_OBJ_NAME. When I run the Panel he does not invite me to: P_OBJ_NAME, it only uses the defined default value "departments".
    I hope that I have described my problem for everyone to understand. Of course, the question is how to make the Group ADF to prompt the user to provide a value for the parameter: P_OBJ_NAME, my waiting has been the sql of the view object and request module, both are designed to enter a value for this parameter, then the Panel should do just that, but it's not.

    Expert you would be most appreciated.
    Thank you.
    Bobby has.

    Published by: Babak Akbari, August 13, 2009 08:34

    Published by: Babak Akbari, August 13, 2009 11:12

    The instigation of a parameter is a feature that we have built in the ADF Tester - is not a default behavior that you get in your application when you have just placed a VO on your page.
    To get something like that spend the operations under the VO node in the data control palette and drag the operation "Run with parameters" to your page to drop it as a form of parameter.
    This will give your user name a place to complete the setting, then press a button to run the query.

  • java.lang.IllegalStateException: setPosition called outside the layout

    Hello guys '

    Good day. I try to spend PopupScreen and posted about this before.

    But I can't solve. You can see what I do from here.

    At the request of work, throws exception: java.lang.IllegalStateException: setPosition called outside the layout

    I use following code:

    import net.rim.device.api.ui.component.*;import net.rim.device.api.ui.container.HorizontalFieldManager;import net.rim.device.api.ui.container.MainScreen;import net.rim.device.api.ui.container.PopupScreen;import net.rim.device.api.ui.*;import net.rim.device.api.system.Bitmap;import net.rim.device.api.system.KeyListener;
    
    public class CursorField extends UiApplication {
    
      private InfoPopupScreen progressPopup;    int x = Graphics.getScreenWidth() / 3;    int y = Graphics.getScreenHeight() / 2;
    
      public CursorField() {
    
          ManagedScreen managedScreen = new ManagedScreen();        pushScreen(managedScreen);    }
    
      private class InfoPopupScreen extends PopupScreen implements KeyListener {
    
          protected void applyTheme() {         //Nothing     }
    
          public boolean keyStatus(int keycode, int time) {         return false;     }
    
          public boolean keyRepeat(int keycode, int time) {         return false;     }
    
          public boolean keyUp(int keycode, int time) {         return false;     }
    
          public InfoPopupScreen(Manager manager){          super(manager);       }
    
          protected boolean navigationMovement(int dx, int dy, int status, int time) {
    
              return true;      }
    
          protected void paintBackground(Graphics graphics) {           graphics.setBackgroundColor(16777215);        }
    
          public void sublayout(int width, int height){         super.sublayout(width, height);           setPosition(x, y);        }
    
          public boolean keyDown(int keycode, int time) {
    
              char key =  net.rim.device.api.ui.KeypadUtil.getKeyChar(keycode, net.rim.device.api.ui.KeypadUtil.MODE_UI_CURRENT_LOCALE);
    
              //Letter 'I'          if(key == 73) {               x = x + 10;               try {                 this.setPosition(x, y);              } catch(Exception e) {                    System.out.println("Exception : " + e.toString());                }         }
    
              if(key == net.rim.device.api.system.Characters.ESCAPE) {              this.close();         }         return true;      }
    
          public boolean keyChar(char key, int status, int time) {          return false;     }
    
          public boolean trackwheelRoll(int amount, int status, int time) {         return false;     }
    
          public boolean trackwheelUnclick( int status, int time ) {            return false;     }
    
          public boolean trackwheelClick( int status, int time ) {          super.trackwheelClick(status, time);          return true;      } }
    
      private class ManagedScreen extends MainScreen {      private BitmapField _cursorField;     private Bitmap _bitmap;
    
          public ManagedScreen() {
    
              _bitmap = Bitmap.getBitmapResource("cursor.png");         int[] a = new int [10 * 10];          _bitmap.getARGB(a, 0, 10, 0, 0, 10, 10);
    
              _cursorField = new BitmapField(_bitmap) {             public void paint(Graphics graphics) {                    graphics.setBackgroundColor(16777215);                    super.paint(graphics);                }         };
    
              HorizontalFieldManager manager = new HorizontalFieldManager(USE_ALL_WIDTH) {              public void paint(Graphics graphics) {                    graphics.setBackgroundColor(16777215);                    super.paint(graphics);                }         };
    
              manager.add(_cursorField);            progressPopup = new InfoPopupScreen(manager);
    
              Bitmap pic = Bitmap.getBitmapResource("background.jpg");          BitmapField picField = new BitmapField(pic);          add(picField);
    
              ButtonField _closeButton = new ButtonField("Push screen", ButtonField.CONSUME_CLICK | ButtonField.FIELD_HCENTER);         _closeButton.setChangeListener(new FieldChangeListener() {                public void fieldChanged(Field field, int context) {                  pushScreen(progressPopup);                }         });
    
              add(_closeButton);        } }
    
      public static void main(String[] args) {      CursorField application = new CursorField();      application.enterEventDispatcher();   }}
    

    I don't know what is the problem here.

    Please help me guys

    TNX in advance"

    You can only call layout() setPosition or sublayout().

    Try this...

    Subclass sublayout() and put your good standing in position one.  Once you update your x / call updateLayout().

  • ComboBox menu outside the bounds of the Panel

    I'm starting to feel like I'm talking about me here...

    Is it possible to make the drop-down list of a ComboBox break outside the limits of a Panel?

    I have a drop down enough, and to see all of the items, the width really needs to expand outside the bounds of the Panel...

    I'm sure I'll have the same request for height, but I have not had here yet...

    Substances

    Substances,

    Take a look at flash.display.NativeMenu (Air API). I'll probably get to try it later today or tomorrow; but I thought I'd give you a heads up when I want to come with her. It is probably not a combo box by itself, most likely a menu of native context that you place on the button/image/whatever.

    Bob

  • apex_util.prepare_url outside the ApEx

    Hello

    I'm trying to create a weekly task that sends an HTML email with links to the user session state protection application. However when I try to generate the URL with apex_util.prepare_url the checksum is not added to the chain. wwv_flow_api.set_security_group_id seems to have no effect.

    Any ideas?

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen

    Dan,

    Unfortunately, you have to jump through hoops to do it. I posted recently a method that defines a session programmatically context, that is, from outside the simple HTTP request for an application. What follows is an adaptation that allows prepare_url to do its thing. You can connect to SQL * more like your application schema and check it out:

    set serveroutput on
    
    DECLARE  l_cgivar_name owa.vc_arr;  l_cgivar_val owa.vc_arr;  --  l_workspace_id number;  l_application_id number := 132; /* change this to your application ID */  l_user varchar2(30) := 'USERUSER'; /* change this to the username to be associated with the session */BEGIN
    
         -- set up cgi environment  htp.init;  l_cgivar_name(1) := 'REQUEST_PROTOCOL';  l_cgivar_val(1) := 'HTTP';  owa.init_cgi_env(num_params => 1,param_name => l_cgivar_name,param_val  => l_cgivar_val);
    
      -- find workspace ID of application  for c1 in (select workspace_id from apex_applications where application_id = l_application_id) loop    l_workspace_id := c1.workspace_id;  end loop;
    
      -- set security group ID, session ID, app ID globals  wwv_flow_api.set_security_group_id(l_workspace_id);  apex_application.g_instance := wwv_flow_custom_auth.get_next_session_id;  apex_application.g_flow_id := l_application_id;
    
      -- create authenticated session for l_user  wwv_flow_custom_auth_std.post_login(    p_uname => l_user,    p_session_id => null,    p_flow_page => apex_application.g_flow_id||':'||1);
    
      dbms_output.put_line('workspace:'||v('WORKSPACE_ID')||', session:'||apex_application.g_instance||', user:'||apex_application.g_user);
    
      -- call wwv_flow.show so that the correct parsing schema and other globals are established for the application  wwv_flow.show (    p_flow_id => apex_application.g_flow_id,    p_instance => apex_application.g_instance,    p_request => 'FSP_SHOW_POPUPLOV'    );
    
      -- set array of protected page IDs for session state protection  wwv_flow.g_protected_page_ids(1) := '1';    -- this establishes page 1 as an SSP-protected page
    
      -- generate link with checksum using prepare_url  dbms_output.put_line(apex_util.prepare_url('f?p=' || v('APP_ID') || ':1::dummyrequest','utf-8','2')); -- the request references page 1, designated as a protected pageEND;/
    

    Note, the username parameter and the call to wwv_flow_custom_auth_std.post_login is necessary only if you want to generate a checksum of user (type '2') level. Links using this type of checksum may be used only by the same authenticated user which was set up during the generation of the checksum. For links that can be used by any authenticated user, a checksum of the application (type 1) level can be requested from prepare_url and for this, the user name parameter and the call to wwv_flow_custom_auth_std.post_login are useless.

    The second argument to prepare the url must match the implementation REQUEST_IANA_CHARSET of your DAD and the third argument is the type of checksum (3 = level of the session and is not appropriate here, 2 = user-level and requires you to make the configuration of the username first, 1 = application-level).

    Scott

  • RE: iOS iPhone 6 s 10 how l remove or disable the slippery camera from outside the locked screen? This feature is a security and threat privacy for me.

    RE: iOS iPhone 6 s 10 how l remove or disable the slippery camera from outside the locked screen? This feature is a security and threat privacy for me.

    You can not. However, I'm not sure why you think it's a privacy or security threat. The only thing that can be accessed without unlocking the phone is the camera to take pictures. No one can access your data already on the phone.

    You can send feedback to Apple here:

    http://www.Apple.com/feedback

  • AppleCare + value outside the United States?

    Hi, I bought a unit in March, and I got the Apple + with her care, thinking that I was protected agaisnt damage like a fool I drop a couple of weeks. I though that my applecare + cover me here in Central America (Nicaragua) Unfortunately that doesn't seem to be the case here. I need to find a way to get the device back to the United States in order to obtain this hotfix (which, currently, I can't), and none of the authorized service provider it me fix because basically, they refuse to do so, given that I have not bought the phone from them.

    What are my options locally? I have to get the aircraft to the United States for repair?

    I also had a conversation with a representative of apple, who told me that none of my apple devices even if they had apple care would get fix in the Nicaragua (even if I had before) because they were purchased in the United States what having the Service provider authorized and responsible for the care of apple outside the United States? He used to work for me and it is a disappointing entry of apple!

    Wow! I have always been under the impression that is you have AppleCare you can be anywhere in the world and you could be supported. Am I wrong?

  • How to stop multiple self-switching to the address bar every time I open a new tab and try typing something anywhere outside the address bar?

    How to stop multiple self-switching to the address bar every time I open a new tab and try typing something anywhere outside the address bar? As something just wants me to use this integrated search when you type something non-Web-address in the address bar and press to enter. And the most ridiculous thing is that happens repeatedly on as every second, as I just got off the address bar and start typing again, but still he passes me in the address bar, then 3, 4 times like that. And the result is that I don't see the address of this page.

    I think that its has something to do with my AVG Antivirus, because it started the same time a Nation AVG started to appear in each new tab I opened (and which is irritating as me, I've read here on support.mozilla.org and it seems that the only solution is to completely reinstall Firefox, but I don't want to lose all my settings) but when I type something in the address bar and press enter It opens the search results in Google.

    Please try to help me, I love Firefox but I have to switch to Chrome until I fix this.

    Thanks in advance

    First of all, please update Firefox 32. 22 is no longer support is not safe. So, let us know if you still have this problem. Update Firefox to the latest version

  • Bookmark drop downs that go outside the window of Firefox are left on the desk bookmarks closing requiring a refresh to clean

    If I open bookmarks and select a folder which is longer than the window of Firefox is high, the part of the list of bookmarks that falls outside the window remains on the desktop when I leave bookmarks or close the window. I then do a refresh of the desktop to get rid of the junk. Doesn't happen with IE9 MS. I use Windows 7 Home Premium on a SONY VAIO laptop. All started when I went to the VAIO in last November. A 'Show Desktop' or a refresh of the office cleaning.

    Could you try to disable graphics hardware acceleration? As this feature has been added to Firefox, it has gradually improved, but there are still some problems with some drivers/graphics cards.

    You need to restart Firefox for it to take effect, so save any work first (e.g. you compose mail, documents online that you are editing, etc.).

    Orange Firefox button or classic menu Tools > Options > advanced

    In the mini ' General' tab, uncheck the box for "use hardware acceleration when available.

    If you restart Firefox, the problem is solved?

  • Cloud tv Android App not available outside the United States

    Why the new cloud TV android app is not available for people outside the USA (Google game store of restriction)?

    As far as I can tell that the iOS app can be installed by anyone, so this seems unnecessary.
    He also mentions the cloud TV app for android on Toshiba of the EU website.

    On a separate note, does anyone know when the update of the firmware will be available which provides support miracast for TV of cloud platform?

    Details are not known to me, but on the cloud of Toshiba TV portal, you can find this disclaimer clause;

    + Toshiba Cloud TV is available in the television series L4, L6, L7, L9, M6, M8 and M9. +
    + Toshiba cloud TV content differs from one country to another and may change or end without notice. +
    + Errors and omissions excepted. +
    + The features available in the Toshiba TV cloud application may vary according to the country selection. +
    + Availability of app MediaGuide and Toshiba cloud TV vary dependent countries. +
    + To view the list of products and creating model and legal information, please click [here. | http://www.Toshiba.eu/innovation/Generic/disclaimers-Legal-Information/] +.

    http://www.Toshiba.EU/innovation/generic/cloud-TV-portal_eu/

  • I gifted my father music and a song of the AUS iTunes, but they upload because it is outside the Australia (in New Zealand). Is there a way to get around this? There is only an iPad.

    I gifted my father music and a song of the AUS iTunes, but they upload because it is outside the Australia (in New Zealand). Is there a way to get around this? There is only an iPad.

    "gifts can only be redeemed in the country store that they came from".

    You can try to contact iTunes Support through CHAT or by phone. -They can try to solve this problem.

    https://www.Apple.com/support/iTunes/

  • Pavilion 15z-ab100: replacement hard drive under warranty outside the country of purchase

    Hey everybody. I bought a laptop HP the HP online store in the United States in November 2015. I am currently in India and my laptop hard drive has failed and needs to be replaced. My laptop warranty is valid outside the country of purchase (USA)?

    Can I get the hard drive replaced under warranty in India, even if I bought the laptop in the United States? I read somewhere that the replacement of equipment under warranty can be done in the country of purchase. Is this true?

    Hi @Prad3791,

    Thank you for your query.

    I understand that you bought your laptop in the USA but are now in India and the hard drive has failed.  Want to know the overall guarantee of HP.  Here is a document which will answer this question for you:

    HP - worldwide warranty and FAQS

    This is a great question other clients may also wonder; Please click on the ""Accept as Solution " if you think that this message has helped you, or could help others." You can say thank you easily by clicking on the ""Thumbs Up " below!"

  • DeskJet 2050 All - in - One J510a: outside the printable area

    Hi all

    I use-

    W.7, Ultimate, 64-bit.

    Name of the model: Deskjet 2050 All - in - One J510a
    Firmware version:... SLM2FN1006BR
    Serial number:... CN0BD3F28805D1
    Service ID:... 21074
    IK No.:... 670
    Software version:... 028.000.1313.000
    The printer driver version:... 09.84.00.1189

    When you use Word, in Office 2010, I have margins set to 'Normal ' -.

    Top: 0.98 "low: 0"

    Left: 0.12 "right: 1.18"

    Whenever I have insert a border around my text and that you try to print, I was informed that section 1 page borders are defined"beyond the printable area of the page. Do you want to continue? »

    By clicking on 'Help' I read and follow all the different "solutions" available. None allow the page to print.

    I selected all of the selections of available margin different and even selected some of my own under the "custom margins. The page to print with border permits.

    For example, one that I tried was-

    Top: 0.06 "low: 0.57"

    Left: 0.12 "right: 0.13"

    I then clicked on 'Options' under 'Page borders.'

    to the "measure of" I chose "Text" once more, I was unable to print the page with the border!

    I find this very frustrating, and I can't find a solution.

    I would be very grateful if there is a known workaround that will allow me to print a Word document with a border selected.

    (I have no technical experience, and if there is a soluition, I'd be happy to get detailed instructions!)

    Thank you

    ColinX

    Hello

    Your printer can print without margins (IE margin = 0 ").  This printer can print only to a certain margin.

    bottom margin is 0.57 ",
    top margin is 0.06 "
    and the left and right margins are 0.125 ".

    So if you try to print beyond this margin, the impression will be cut or outside the printable area.

    Kind regards.

  • Can the iPad reset my new email password from outside the material?

    I used my mini iPad more than 2 years. A day ago I had to change my password main e-mail through my office due to some strange events in my account. My Android phone has stopped receiving emails after that; I have to reset the password in it. I thought I have to reset my iPad, too, but it seems that the emails always get through, as if nothing had happened. Is this normal? How could the iPad reset my password by email directly from the e-mail box, to outside the material? Is it considered normal?

    I've never been through this. To change the email password, you will need to go into settings, messages, contacts and calendars and manually change them

  • The upgrade of my AT &amp; T Atrix 4 G on ICS outside the United States?

    Hello

    I am currently using my atrix 4g outside the usa and im also using a SIM card from another provider (a local supplier to the country of im to) my question is when ICS will be available soon, will I have problems to update via OTA? If so how I can go to the official OS of ICS?

    Thank you

    D

Maybe you are looking for

  • Bug in Riched20.dll using EM_STREAMOUT XP

    Hello It seems that something has broken my routine to read RTF controls - at least I remember it working earlier. I get the first (and only) fragment of it in p_szB of my structure but then it crashes after that my routine is back. struct RTFdumpInf

  • I have a lot of mistakes on my computer

    Original title: I need remote assinstance I have a lot of mistakes on my computer to let my cousin get on here there are a lot of registry errors to and I needed a few remote assinstance to see if I could get to check it out and see if they can repai

  • Trouble formatting CD

    Hello!When I use Windows Media Player to burn a disc, I get a message saying... Windows was unable to format the drive. Help, please!Celeste

  • Getting kicked to the Office of games like Star Wars The Old Republic...

    So I have an app I think which is kick off games... Well I play only 2, Star Wars: The Old Republic and Battlefield 3. When I'm playing SWTOR, he kick me on the desk. Let me be clear though, it crashes, because I can get back in the game with Alt + T

  • Passage of the standard monthly subscription of photography to full student membership.

    Hi some time back I decided that I didn't need the complete package that I'm a photography student and the £7 per month has been a large amount during the year for things I would not use.  Anyway, now it would be useful to have access to other softwa