New Tutorial on Bookmarkable URLs

Thanks to Craig and Lark, we now have a tutorial about passing parameters via the URL (so that the url is bookmarkable).
You can read about it and other tutorial tips and tricks at http://blogs.sun.com/roller/page/divas?entry=new_tutorial_on_creating_bookmarkable
Diva #2

-

Similar Messages

  • Creating Bookmarkable URLs - two or more parameters

    I followed the tutorial "Creating Bookmarkable URLs" and I was able to pass 1 parameter OK with values from a database. I don't know the syntax for multiple parameters, though, when using the IDE Design view. I really would like to have bookmarkable URLs using multiple parameters.
    In the url property for the group of hyperlinks, I tried:
    /faces/Report.jsp?testableentityconfigId=#{currentRow.value['testableentityconfig.testableEntityConfigID']}&modelId=#{currentRow.value['device.deviceModelID']}
    When I run the program, the url in the address bar looks like this:
    /Reporting/faces/Report.jsp?testableentityconfigId=%23%7BcurrentRow.value%5B'testableentityconfig.testableEntityConfigID'%5D%7D&%3BmodelId=5
    The desired output would look like this:
    /Reporting/faces/Report.jsp?testableentityconfigId=2&modelId=5

    I tried it (using the TRAVEL FLIGHT table) and it worked for me.
    My url property setting in the Properties window looks like this:
    /faces/Details.jsp?flightId=#{currentRow.value['FLIGHT.FLIGHTID']}&tripId=#{currentRow.value['FLIGHT.TRIPID']}My JSP looks like this:
    <webuijsf:hyperlink binding="#{Page1.hyperlink1}" id="hyperlink1" text="text" url="/faces/Details.jsp?flightId=#{currentRow.value['FLIGHT.FLIGHTID']}&tripId=#{currentRow.value['FLIGHT.TRIPID']}"/>

  • Getting "Error 403--Forbidden" while accessing ADF bookmarked URL

    Hi,
    Here am trying to work with an ADF application to suport bookmarking.
    Following are the steps I did to create a sample application.
    Created a bounded task-flow (user-details.xml), which has the "Method call" as default activity along with an another view activity(userData.jsff page).
    This task-flow takes an input parameter "Id" to display user details. In the method call activity user data will be initialized using the given input parameter and then the data will be displayed using userData.jsff page.
    Created a view activity (details.jspx page) in adfc-config.xml file.
    Marked the "details.jspx" file as bookmark-able by changing "Bookmark property to true" and given a Bookmark URL Parameter "Name is Id and Value is #{pageFlowScope.user_id}".
    Dropped the bounded task-flow user-details.xml as a region into the details.jspx file.
    Now the user_id which is coming as URL Parameter will be passed to user-details.xml task-flows input parameter value.
    Created users.jspx page which lists all the users as home page. In the users.jspx page we'll have a link to user details page with a parameter Id.
    By running the application will get users page. When I click on the user details link in the users page, the app showing user details page as expected.
    Now I bookmarked the user details page. If I open the bookmarked page in the same tab, it is working fine. But when I open this bookmark in a new tab getting the "Error 403--Forbidden" response.
    Bookmarked URL: localhost:7101/BookmarkTestApp-ViewController-context-root/faces/user_details?id=123&_afrWindowMode=0&_afrLoop=4884151149818&_adf.ctrl-state=35yghmx4f_18
    When I click the above bookmark in another tab the url is processing for few seconds ( 2 to 3 seconds) and converts to localhost:7101/BookmarkTestApp-ViewController-context-root/ and giving 403 response. At this time it is not touching my beans at all (verified this by running the server in debug mode).
    Web.xml looks like:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
             version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
      <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
      </context-param>
      <context-param>
        <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
        <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
        <param-value>false</param-value>
      </context-param>
      <context-param>
        <description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>
        <param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>
        <param-value>true</param-value>
      </context-param>
      <filter>
        <filter-name>trinidad</filter-name>
        <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
      </filter>
      <filter>
        <filter-name>adfBindings</filter-name>
        <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
      </filter>
      <filter-mapping>
        <filter-name>trinidad</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>REQUEST</dispatcher>
      </filter-mapping>
      <filter-mapping>
        <filter-name>adfBindings</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>REQUEST</dispatcher>
      </filter-mapping>
      <listener>
        <listener-class>oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack</listener-class>
      </listener>
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet>
        <servlet-name>resources</servlet-name>
        <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
      </servlet>
      <servlet>
        <servlet-name>BIGRAPHSERVLET</servlet-name>
        <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.GraphServlet</servlet-class>
      </servlet>
      <servlet>
        <servlet-name>BIGAUGESERVLET</servlet-name>
        <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.gauge.GaugeServlet</servlet-class>
      </servlet>
      <servlet>
        <servlet-name>MapProxyServlet</servlet-name>
        <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.geoMap.servlet.MapProxyServlet</servlet-class>
      </servlet>
      <servlet>
        <servlet-name>GatewayServlet</servlet-name>
        <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.FlashBridgeServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>resources</servlet-name>
        <url-pattern>/adf/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>resources</servlet-name>
        <url-pattern>/afr/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>BIGRAPHSERVLET</servlet-name>
        <url-pattern>/servlet/GraphServlet/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>BIGAUGESERVLET</servlet-name>
        <url-pattern>/servlet/GaugeServlet/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>MapProxyServlet</servlet-name>
        <url-pattern>/mapproxy/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>resources</servlet-name>
        <url-pattern>/bi/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>GatewayServlet</servlet-name>
        <url-pattern>/flashbridge/*</url-pattern>
      </servlet-mapping>
      <mime-mapping>
        <extension>swf</extension>
        <mime-type>application/x-shockwave-flash</mime-type>
      </mime-mapping>
      <jsp-config>
        <jsp-property-group>
          <url-pattern>*.jsff</url-pattern>
          <is-xml>true</is-xml>
        </jsp-property-group>
      </jsp-config>
    </web-app>
    Am I missing any thing here.
    Thanks in advance.
    -Gopal.

    https://blogs.oracle.com/DavidGiammona/entry/why_do_i_get_this_error_403_--

  • Output Bookmark URL to dashboard page

    Hi,
    Once the user selects 'Create Bookmark Link' from the 'Page Options', is there any way in 11g to output the bookmark URL to the dashboard page/alert rather than the address bar?
    Regards

    876718 wrote:
    Hi,
    Once the user selects 'Create Bookmark Link' from the 'Page Options', is there any way in 11g to output the bookmark URL to the dashboard page/alert rather than the address bar?
    RegardsHi,
    There is no such in-built functionality available to do that, but one work around I can think of is using the new favorites functionality. You can navigate through the catalog and add the object's that you think are most used by you to the favorite's section. As you probably already know, there is a favorites menu link which you can access these objects you have Favorited from.
    For more details refer to this on step to step guide for using favorites: http://deliverbi.blogspot.com/2012/03/obiee-11116-favourites.html
    Thanks,
    -A.Y

  • Bookmarking Url

    Hi there,
              I have an application with a front-servlet that handles all the requests
              from the browser.
              Sometimes the request comes as submit-button requests and sometimes the
              servlet
              is activated from a href.
              When the submit button is used a servlet is activated with a post
              method,which prevents
              user from bookmarking Url. This is all fine.
              How can I do the same when the user clicks on a href ?
              I want the servlet to get activated without exposing the command and
              parameters in the Url.
              Is that possible ?
              Should I use JavaScript ?
              ..thanks in advance
              Per Lovdinger
              

    There are two things that web apps perform:
              - do
              - show
              You should typically not have "do" items bookmarkable. That means that a
              POST from a form should not be the resultant page's URL.
              Consider:
              page1 -> post -> page2
              This is usually accomplished by page2 being returned by the Servlet that
              handles the POST. If instead, the Servlet returns a Javascript redirect (or
              does a sendRedirect) to the page2 URL, then the user can save the bookmark.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              Tangosol Server: Enabling enterprise application customization
              "Per Lovdinger" <[email protected]> wrote in message
              news:[email protected]...
              > Hi there,
              >
              > I have an application with a front-servlet that handles all the requests
              > from the browser.
              >
              > Sometimes the request comes as submit-button requests and sometimes the
              > servlet
              > is activated from a href.
              >
              > When the submit button is used a servlet is activated with a post
              > method,which prevents
              > user from bookmarking Url. This is all fine.
              >
              > How can I do the same when the user clicks on a href ?
              > I want the servlet to get activated without exposing the command and
              > parameters in the Url.
              > Is that possible ?
              >
              > Should I use JavaScript ?
              >
              > ..thanks in advance
              > Per Lovdinger
              >
              >
              >
              

  • When I open a new link or bookmark I want it to open in a new window not a slew of tabs so I can see which sites I have open.

    I'm sorry if I'm not using the correct terminology. When I open a new window or a link I want it to open a whole new window so I have 500 open FireFox tabs in my taskbar if I open that many windows. I do not like having everything open in one window. Used to be I could find how to undo that but you changed everything on me and now only rocket scientists can use your application. If Chrome and Internet Explorer weren't so ridiculous, I would change. Thank you for any assistance you can provide.

    This didn't help me at all. I want a separate window to open each time I open a new tab or bookmark. Currently when I open a new link it just adds a tab to the window already open so from my non-technie point of view, I only have one window open and have to go up top to see what is open vs. being able to look below in my taskbar and see what I have open.

  • Somtimes Firefox loads a blank page; the Tab says "New Tab" and the URL is always "about:blank". What's up with that?

    Using Dogpile, I search and a list of URLs comes up. I select and click on one and Firefox opens a new tab. It responds promptly with a blank screen. The Tab says "New Tab" and the URL says "about:blank". The last one came up slowly in IE and turned out to be nothing more than a large pdf. Can you help me figure out what is happening and how to fix it, please? It is happening far too often. Running the virus, etc. software has not stopped this problem. Thank you very much for your help! Hutchy

    Using Dogpile, I search and a list of URLs comes up. I select and click on one and Firefox opens a new tab. It responds promptly with a blank screen. The Tab says "New Tab" and the URL says "about:blank". The last one came up slowly in IE and turned out to be nothing more than a large pdf. Can you help me figure out what is happening and how to fix it, please? It is happening far too often. Running the virus, etc. software has not stopped this problem. Thank you very much for your help! Hutchy

  • Creating a new folder in bookmarks

    I want to create a NEW folder in bookmarks and THEN add bookmarked pages to that folder.
    I've actually searched support for a specific solution or instructions and found none. Currently, I can not find any instructions or options for creating a folder. I don't want to just bookmark the current page I am on. I want to create a folder based on topic and then, later, add bookmarks to that folder when a particular page is related to that topic.
    How?

    Note that you can also create a new folder via the Organize button in the Library window.<br />
    The Organize is the first of the three buttons on the toolbar in the Library (Organize, Views, Import and Backup).

  • Created a new folder in bookmarks; when try to add new bookmark, new folder does not appear in drop down menu; using safari for windows

    created a new folder in bookmarks; when try to add new bookmark, new folder does not appear in drop down menu; using safari for windows

    You are using an older version of firefox, upgrade your browser to Firefox 8 and try
    * getfirefox.com

  • On my new computer my Bookmarks list no longer highlights the page I am viewing online, soI can no longer see exactly which site I am viewing.

    On my new computer the Bookmarks list no longer 'highlights' the website that I have clicked on and am viewing online. Therefore, I can no longer see exactly which site (location/name) I am viewing because I have quite a number of bookmarks. It wastes time to go to several bookmarked sites in search of the site I am currently visiting.
    Bottom line: I want the Bookmarks list to highlight the site I am currently visiting as it did on my previous computers (all Dell). Is there a setting to make this happen?
    Please help! Thank you.
    Joancmb

    It actually does highlight but in colour which is barely distinguishable so it appears that no highlighting is on.
    See:
    https://support.mozilla.org/en-US/questions/935395#answer-363047

  • The main part of the safari page is grey and won't respond/can't type in any commands.  I can move back through the previous pages, and even open new ones via the URL, but can't get onto the main part of the page and I can't get onto the 9 page option. !?

    The main part of the safari page is grey and won't respond/can't type in any commands.  I can move back through the previous pages, and even open new ones via the URL, but can't get onto the main part of the page and I can't get onto the 9 page option. !?
    Help, please.

    Try clearing Safari's cache : Settings > Safari > Clear Cache (and Clear History)
    If that doesn't work then try closing Safari completely and then re-open it : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • How do I create a new folder in bookmarks?

    I followed the suggestions from post a year ago, but the answer I was directed to no longer works. This used to be easy until they changed the bookmark section on Firefox. Wondering why there does not seem to be a choice simply marked "New Folder" or if there is, where is it?

    To create a new folder in Bookmarks: Click on "Bookmarks". Then click on "Bookmark this page". A small pop-up screen will have fields for "name" (of the page), "folder", and "tags". To the far right of the "folder" field are two downward arrows. Click on the one farthest to the right. This will show you '''all''' the existing folders, and an option to make a "NEW FOLDER".
    Before you click on this, you may want to select an existing folder to put the NEW folder into. If so, click on the folder of choice, then click on the "NEW FOLDER" option. The new folder will appear at the bottom of the menu. You can name it now, or later. When all fields have been filled to your satisfaction, click on "DONE". I'm not sure how you'd do it without starting with a page you want to save, but you'll find a way, right?

  • Announcement: New Tutorial On Using Premiere Pro And x264 With Encore

    I announced a new tutorial over in the Encore forum that outlines an efficient (and free) workflow to get HD video from Premiere Pro to x264 for encoding and then to Encore for Blu-ray authoring.
    Mods: if you consider this an unacceptable duplicate topic, please delete this one rather than the one in the Encore forum.  Thanks.
    Jeff

    Since the process starts with PP, I think it's fine here.

  • How can I force any new selection from bookmark to open in a new frame ?

    How can I force any new selection from bookmarks to open in a new frame ?

    Sorry I would like it happen as a preference,
    automate the option like
    "Always open in new tab when click Bookmark "
    (not over the actual tab)
    thanks

  • What is the best method for bookmarkable URLs

    Hi Everyone,
    I've been working with JSF for a little while now, and I've been using RestFaces ( [https://restfaces.dev.java.net/|https://restfaces.dev.java.net/] ) for my bookmarkable URLs, but there are still a few limitations, like, when validations phase occurs, the real path to the JSF page is exposed (currently working on a fix, but it's lead me to ask some other questions.)
    What has everyone's experience been?
    I want to be able to use Pretty URLs as Links, commandButtons (aka, as a result of an action method / or any navigation event).
    So:
    http://mysite.com/app/viewuser/username1
    This URL should bring me to the viewUser page... and if they choose to take an action, "Edit a user" by clicking a command button for example, then they should be redirected to the editUser page, which should still have a pretty URL: http://mysite.com/app/edituser/username1
    Effectively, I want to alias a pretty URL to a page:
    /Login -> /faces/login.jspx
    /viewUser/{username} -> /faces/viewUser.jspx (and also sets the username parameter based on the value parsed from the URL)
    /editUser/{username} -> /faces/editUser.jspx (and also sets the username parameter based on the value parsed from the URL)
    I know PrettyURLPhaseListener helps with this, but it does not enable rendering of pretty URLs after navigation like RESTfaces does.
    Thoughts? Thanks.

    Ok, so I solved my problem by creating a JSF extension.
    [ PrettyFaces|http://ocpsoft.com/prettyfaces/]
    I wrote it recently and released it as opensource in order to fix some of the major problems with existing JSF URL mapping tools.

Maybe you are looking for

  • Why won't my iPad 2 connect to my 802.11g network?

    Hello everyone, Today I received an iPad 2 as a gift.  It is the first Apple product I have ever owned.  I spent about 3 hours this morning trying to get it to turn on -- it kept displaying an image of a USB cord so I connected it to my computer.  St

  • Backing up an iPhoto Library

    I know that this is the mother of all iPhoto questions, but I am still perplexed about how to approach the backup issue. My wife is running Tiger on a MacBook Pro, and has a gargantuan iPhoto library (23+ gigs) that keeps me awake nights. It's too bi

  • Usage of java.sql.Timestamp with classes12.zip and ojdbc14.jar  ?

    Hi all, If i'm using java.sql.Timestamp with classes12 it is functioning perfectly, if i'm using ojdbc14 and java.sql.Timestamp it is functioning in different way and failing to do the action.. Example : update set xxx=yy where time = my Timestamp ob

  • NetStream.Play.Stop and Complete fired early on RTMPE streams

    Hi there I am experiencing an issue with playback on RTMPE streams. after investigation it seems that the FMS server is firing the NetStream.Play.Complete message at random points, indicating that a stream has ended. This is happening and random poin

  • Weird Xlate working - Xlate ip pool was xlated again on ASASM

    Hi Experts. Our customer has ASASM for their security. Their firewall mode is a transparent mode as below. Vlan 12 ---------- Bvi------------Vlan 112 From logs, after customer source IP xlated , It also seemed to be xlated again. This issue occurred