Questions on URLs and dynamic navigation rules

Hello,
I am new to JSF, so any help is appreciated. I am trying to do the following:
Dynamic display URI - users submit multiple parameters for a search. The URL needs to change depending on search parameters they submit. For example, if they search by state the URL must be changed to /state_name, ex: "/maryland"...

Yes and no... Searches can be made for different types of items. The same search form and search dispatcher are used, but each type has it's own display JSP for search results.
For example, searches for books are displayed as "/books/....", audio is displayed as "/audio/..." using different JSPs. Each item type has it's own parameters that may end up in the URI, but they share a search form. Searching for a book in Maryland should change the URI to "/book/maryland/" and use a JSP that displayes Book search results. Searching for classical music should change the URI to "/audio/classical", etc.
"/book/maryland/" and "/book/california/" will use the same JSP, and so will "/audio/classical" and "/audio/rock". Different JSPs will be used for "/book/*" and "/audo/*"

Similar Messages

  • WCF-WebHttp dynamic URL and Dynamic Header/Behavior configuration.

    HI,
    I have an requirement to integrate with the REST Services in BizTalk Server 2013 R2, And This REST Service URL and HTTP Headers will differs per message. So I had created an Orchestration with the Dynamic Request-Response port and assign the properties in
    Message Assignment Shape. However while testing HTTP Headers were not added to service request message.
    I had tried with create Custom endpoint behaviour and assigned this behaviour to service request in Orchestration, however this property also not assigned from the Orchestration.
    Is this a bug for WCF-WebHttp Adapter? Is any other options to achieve my requirement?
    Thanks,
    Raj
    Praveen

    Hi Praveen,
    Its a known bug already
    reported to Microsoft. 
    BizTalk 2013 servers that have been upgraded from BizTalk 2010 are missing
    some of the new global properties including HttpHeaders properties because
    of this even in orchestration we cannot change the HttpHeaders on messages.
    As a workaround WCF behavior extension
    can be used to solve this problem.
    Which can be downloaded from here.
    For the detailed explanation, I would adivce you to follow the below link on how to dynamically change
    the WCF-HttpHeaders for WCF-WebHTTP adapter.
    Dynamic
    WCF-HttpHeaders for WCF WebHttp adapter
    There is already a discussion going on around this on another post. Ashwin has also recommend to use custom pipeline component as a work around .
    Refer: BizTalk WCF-WebHttp Custom Headers per message
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • Dynamically build URLS  for dynamic navigation

    hello all, I am trying to develop dynamic navigation for pl/sql portlets in oracle portal 10g. When admins place the portlets i develop on pages or tabs, etc, i would like to be able to query the database for there location(what page or tab its assigned to) dynamically so i can build links that would allow linking from portlet to portlet no matter where the admin placed them in the Portal. So my question is, what table or tables list the page_id or tab_id for portlets when they are added to a region on page or tab???

    The Content Area Views describe the information that you can access from PL/SQL.
    Peter

  • A simple question about Drag and Relate navigation

    Dear experts
    I have found SAP help or related manuals only good at talking difficult things such as how to customise the drag and relate targets, etc.  However, after I followed exactly and then how to test.
    Then I just see pieces of information, very unstructured.  Spending me a whole day, even I can't get a good simple example on how to really perform a drag and relate at least for the proof of concept at EP 6.0.   It spent a lot of time in describing what the navgiation panels about, what drag and relate targets.  Then how to do it in once transversal.  That is, with all customisation, how to drag and relate an object.
    My step is with iview A, shows a purchase order details showing a drag and relate enabled object like vendor no.
    Then I try to drag this vendor no. to a display vendor iview, iview B.
    I have known I have to put iview A and iview B to a Drag-and-relate targets.  I am sure I have done this.  Does it mean opening the portal, I will see both iview A and iview B appearing at the same time in the drag-and-relate target area?  However, in my case, it is not, iview A only appears in that area when I load it once, same to view B.  When I load iview B, iview A links from D&R target will be wiped off.  Then how I can drag an item from iview A to B while each one of them can only appear at any time.
    Can anyone give me a simple guide (don't give me an internet link from help.com) I have been tired of this.
    First, I would to make sure if my so called self-learnt drag-and-relate simple action is correct in the steps or really I have made something wrong in the customisation or even a bug there.
    Can anyone on the planet have this experience, pls. act as my teacher in this area?
    Rgds
    Stephen

    Thanks
    I have tried the 1st way already.  But I can see both iviews existing in the D & R targets.  Now I try to drag an item with business object BUS2002 from iview A to relate to LFA1 of iview B of the same back end system.
    But iview B shown up with that data of LFA1 shown up (in my case the vendor no.)
    I have used autocomplete relationship and I have checked it has been well-defined already.  Also check from metadata at backend they are both active.
    Do you have any clues to the pitfall in my case?
    Rgds

  • Scrollbars for dynamic and detail navigation

    Hi,
    When I add an iView to the dynamic navigation, big scrollbars appear horizontally and vertically over the detail and dynamic navigation iviews.Is it possible to deactivate these scrollbars? My dynamic navigation iView already have a scrollbar...
    Thanks
    Renaud

    Hi Renaud,
    see http://help.sap.com/saphelp_ep60sp2/helpdata/en/32/66c53e5ae84d3be10000000a11405a/frameset.htm - maximum size.
    Hope it helps
    Detlev

  • Dynamic Modification Rule In Quality Module

    Dear All
    Please explain me in detail how to use Dynamic Modification Rule (At Lot Level) In quality Module.
    Thanks & Regards
    Rahul Bhardwaj

    Hi,
    Dynamic Modification Rule
    Definition
    The basic data record contains the definition of the inspection stages, the dynamic modification time (at lot creation or after the usage decision has been made), and the conditions for the inspection stage change. Inspection stage changes occur on the basis of the inspection results that are recorded for inspection lots and inspection characteristics (that is, on the basis of their acceptance or rejection).
    Use
    You can vary the inspection scope using dynamic modification rules. You can store a dynamic modification rule in one of the following places:
    In the inspection plan at the header level
    In the inspection plan at the characteristic level
    In the inspection setup of the material master record at the inspection type level
    Structure
    A dynamic modification rule contains the definition of the inspection stages, the dynamic modification time, and the conditions that lead to an inspection stage change.
    There are always two options that apply to the conditions for an inspection stage change: An acceptance (OK) and rejection (not OK). The system uses these conditions to update the quality level, which always reflects the current status.
    The functions for maintaining and displaying dynamic modification rules are primarily contained on three screens:
    On the initial screen, you enter the identifier for the dynamic modification rule.
    On the header data screen, you maintain a short text and the blocking indicator, and define the time of dynamic modification (at lot creation or when the usage decision is made) and the reset period.
    The reset period defines the period of time, which must elapse before the quality level again uses the initial inspection stage specified in the dynamic modification rule as the current inspection stage.
    On the inspection stages screen, you edit the inspection stage data (inspection severity, skip, initial inspection stage, and short text). You create the rules for the inspection stage change on this screen.
    In QM, the inspection stage describes a test or inspection status that is based on the inspection history and predefined rules. Different inspection stages mean that there are also different inspection scopes and/or inspection severities.
    Creating a Dynamic Modification Rule
    1.Choose Logistics ® Quality management ® Quality planning ® Basic data ® Sample ® Dynamic modification rule ® Create.
    2.Enter the identifier for the dynamic modification rule on the initial screen or choose Copy to use an existing dynamic modification rule as a copy model.
    3.Choose Dynamic modification rule to carry out the following activities on the header data screen:
    Edit the short text for the dynamic modification rule.
    Define the time of dynamic modification (at lot creation or usage decision).
    Define the reset period.
    Set the blocking indicator if you want to prevent the dynamic modification rule from being used in an inspection plan.
    4.Choose Next screen to carry out the following activities on the inspection stages screen:
    Define inspection stages.
    Define inspection severities for individual inspection stages.
    Identify skips.
    Identify the initial inspection stage.
    Maintain short texts for the inspection stages.
    5.Choose Stage change to carry out the following activities on the screen for creating the inspection stage change:
    Define the specifications for a stage change for an acceptance (OK)
    Define the specifications for a stage change for a rejection (Not OK)
    6.Choose Next screen to return to the inspection stages screen and save your entries.
    When you save the data, the system prompts you for a confirmation. If you want to include the dynamic modification rule in the allowed relationships for sampling procedures and dynamic modification rules (this is only necessary if a sampling procedure is used in a sampling scheme), you can switch directly to the assignment transaction by confirming this prompt. You define the assignment of sampling procedures and dynamic modification rules in this screen.
    If you do not confirm the prompt, the system returns directly to the initial screen and confirms that it has created the dynamic modification rule.
    Hope this helps.
    Award points if useful.
    Regards,
    Tejas

  • Changing Position of Dynamic Navigation

    Hi Folks,
    I'm working with the Default-Framework-Page and here I want to add an iview to my Navigation Panel. But for this, I need to change the position of the dynamic Navigation iview. It has to be set under my new iview. Does anybody know how I can change that? When its added, it is shown ON the dynamic navigation.
    greets
    heidi

    Hi,
    The Dynamic Navigation IView is located in the Desktop Innerpage in the Frameworkpage.
    http://help.sap.com/saphelp_nw70/helpdata/EN/b4/771158e4cb4bf6af9974380948db86/frameset.htm
    So if you add your IView to a role, it is shown in the Iview Content Area, so to get Dynamic Navigation IView under your Iview, you will have to add a page with both your IView and Dynamic Navigation IView to the role.
    So create a Page, add your IView and Dynamic Navigation IView to it. Add this page to the role.
    You can ofcourse arrange the IViews position in edit mode of page.
    If not clear, let me know.
    Regards,
    Praveen Gudapati

  • EP6: Switch positions of Detailed Nav and Dynamic Nav iviews?

    By default, the Detailed Navigation iview is, from the top of the screen, first, then the Dynamic Navigation iview.
    Is there any way to switch this?
    I tried changing the layout of the Desktop Innerpage (from the content list of the Default Framework Page), but these two iviews aren't even visible in the Edit Layout Screen.

    Hi Eric,
    you should be able to see these iViews there. Just continue clicking on Edit (select Desktop Innerpage first and then click on edit). In the next screen you should see several iViews (among them Detailed Navigation and Dynamic Navigation) now click on Layout and you should be able to change the position of these two iViews.
    Hope this helps,
    Holger.

  • JSF navigation rules sent me to different page, with same URL

    Hello everybody,
    Have a newbie question on JSF, if anyone can help me. I am using JSF for a web application, and i have a small problem.
    If i define a navigation rule, from one page to another, and i am having a button that should send me to another page,
    the browser URL remains the same, although the page content IS correctly changed.
    Thanks,
    Andrei

    You're welcome.
    Though I should have added that the advantage of the redirect after a POST request is that refreshing the request or navigating back and forward by browser history doesn't cause a re-submit of the POST request anymore. This way you avoid duplication of submitted data. This is called POST-redirect-GET pattern. Refreshing the request after a redirect (which is always a GET request) would only cause the redirect being refreshed, not the initiating POST request.
    The disadvantage of a forward is less or more obvious: the URL remains the same and it is not really good for the user experience. If one copypasted the URL in a new window (a new GET request), one wouldn't see the forwarded page, but the originating page. That's why I would recommend to avoid navigation cases and just use the same page to postback the POST request to. For normal page-to-page navigation within a website, I would recommend just using outputlinks and not commandlinks with navigation cases. It's all better for the user experience.

  • Dynamic Navigation mapping to Navigation Rules

    I have a situation where I need to create a javascript "hover-over" nav. I'd also like to have them define the navigation rules in their faces config. My question is, how do I code the javascript "action" for each nav item so that it somehow maps to the navigation rules I defined in my faces config? Right now I'm just rendering all of my javascript in my JSP. In order to get this to work, do I have to create a JSF component? Will it fit into the architecture more cleanly if I do? Any hints? I'd like this to fit into the JSF programming model as much as possible.
    Thanks,
    Dave

    I'm just kind of winging it at this point, basing my examples on some of the ones in Core JSF. I'm thinking my component will contain a string for the selected menu item and a collection of navigation items (display string/navigation key). Then there is the renderer for the component, followed by the Tag class and DTD. Does that sound like the right path? Since the nav is a glabal nav, I was thinking of reading in the structure from XML once, and not have all of the menu items in the JSP as child tags. I am still a bit confused as to how I will hook the action of the menu click to my backing bean action. Any help would be appreciated.
    Dave

  • Web URL application in Dynamic Navigation

    Hello all,
    in the dynamic navigation window I run an URL iview with HTML application with javascript.
    I receive in the dynamic navigation window an EPCF event with EPCMPROXY calls.
    After I receive the event I would like to navigate within the dynamic navigation iview to another page of the HTML application. When I use web URLs and form.submit of course the EPCF framework is not loaded with the HTML page and I cannot react to events anymore. Is there at all any solution to this problem?
    Thanks in advance
    Peter Balaz

    Yes, there is a problem with ur MDS.
    The command window for MDS should stay.
    I had jdk compatibility issue, so thats why I suggested to check on jdk.
    I'm not sure what version will be compatibile with MDS 4.1.4.
    check the prereuisites.
    You can try the following links:
    http://supportforums.blackberry.com/rim/board/message?board.id=browser_dev&message.id=264&query.id=368188#M264
    http://supportforums.blackberry.com/rim/board/message?board.id=browser_dev&message.id=257&query.id=368428#M257
    http://supportforums.blackberry.com/rim/search?category_id=BlackBerryDevelopment&submitted=true&q=MDSSimulatorclosing
    http://supportforums.blackberry.com/rim/search?submitted=true&q=MDS+4.1.4
    http://supportforums.blackberry.com/rim/board?board.id=MDS_dev
    http://supportforums.blackberry.com/rim/?category.id=BlackBerryDevelopment

  • Dynamic Navigation and Teamviewer

    We programed our own iviews in WebDynpro for using in manager selfservice.
    For changing between different employees, we assigned the standard SAP teamviewer as a dynamic navigation to the pages which include our WebDynpro iviews.
    This proceeding works well. For each iview we can change the employee we like to work on. But if we go to another WebDynpro application in the navigation path, the teamviewer is open in a new way. So the teamviewer lose the indicated employee by stepping from the first to the next application.
    But by using the standard manager role, the teamviewer hold the selected employee.
    How can I get this effect? Where can I find same information about this problem?

    Hi,
    Maybe it has to do with the isolation of the iView. By default (i guess) it is configured to be "embedded" on page, this will result in refreshing. Set the iViews to "URL" (and also set the highttype to "automatic").
    Otherwise it has to do with the navigation. Are u using the Light Portal Framework?
    If so it could be the case that the navigation is triggering a complete page refresh instead of only refreshing the content area..
    regards,
    Benjamin

  • Relation between URL and content in JSF navigation

    Hello,
    I've tried lots of JSF examples and there always occoured a strange kind of navigation to me:
    The URL you see in the browser's address bar has nothing to do with the actually displayed JSP. Instead of that, the URL is always pointing to the previously called JSP - where the call to the current JSP comes from.
    I know where this comes from:
    If the form tags don't define an action, they are pointing to the current page itself.
    And the actually called navigation case is chosen by a (hidden) post parameter.
    So the JSF controller servlet doesn't actually care, which URL is called - it just regards the mentioned parameter.
    This kind of navigation seems quite confusing, especcially since JSF claims to make navigation clearer.
    One of the basic demands of the web applications we are developing is, to have a clear relation between URL and page content.
    E.g. it must be possible to index the pages with search engines. Or to simply bookmark distinct pages in the browsers favourites.
    Another problem about this navigation concept is, that it always works with forms and with post method (you can't choose get method), even if you just have simple links - e.g. detail view of a single item after selecting it from a list of items. That way it's not possible to ever use the back button of your browser.
    I'm new to JSF, so my question:
    Is this the (one-and-only) navigation concept of JSF, or are there alternative concepts as well?
    I would be surprised, since the mentioned demands are basic web standard - although I didn't find any alternatives so far.
    Thanks,
    Chily

    Thanks for the answer!
    I'm not sure, if using a redirect on every single call is very achieveable and in the purpose of the JSF design.
    E.g. it is generating a lot of traffic overhead.
    (Identifying the navigation case by the page name instead of a hidden parameter would help a lot.)
    Or the history of the browser doesn't work with it, so you can't identify visited links.
    But anyways, there are also internal problems with it in most cases: I've inserted the <redirect/> tag in the navigation cases of a few examples. This just causes a call of the <to-view-id> page, without any parameters. So I probably have to add some non-standard-processing around the call to make it work:
    If e.g. I have the standard case of a list of items (let's say in a dataTable), which are identified by an id. And each item uses a commandLink to call it's detail view.
    * How do I get the identifier (id) as a parameter into the redirect URL?
    * And how do I access this parameter in the destination form bean to choose the item to be displayed? (see also http://forum.java.sun.com/thread.jspa?threadID=607505)
    Thanks for help,
    Chily

  • Navigation and Creating  a navigation rule at runtime

    Hi all,
    How can I create a navigation rule at runtime?
    I got all my pages (names and locations) stored in a database table.All my pages are jspx format.
    I don't want to create navigation rules for each page, Instead I want to use the location stored in the database and create a navigation rule to navigate to.
    I tried navigating using ServletRequest :
            ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
            HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
            HttpServletRequest  request = (HttpServletRequest)ectx.getRequest();
            request.getRequestDispatcher("/faces/Titles.jspx").forward(request,response);But it blows after the first call.
    is it possible to create a navigation rule in a Bean or is there another way to call jspx pages from a Bean without loosing the session.
    Can someone help me please.
    thanks in advance,
    Ahmad Esbita

    Ahmad,
    I don't know of any way to programatically create navigation cases at runtime. However, perhaps you could try creating a NavigationHandler decorator. Let's assume you have a function called "getViewIDforAction" that does the database lookup and returns the view ID for a given action code. You could do something like this:
    package my.code;
    import javax.faces.application.NavigationHandler;
    import javax.faces.context.FacesContext;
    public class MyNavigationManager extends NavigationHandler
       NavigationHandler _base;
       public NavigationManager (NavigationHandler base)
          super();
          _base = base;
       public void handleNavigation(FacesContext fc, String actionMethod, String actionName)
          String viewID = getViewIDforAction(actionName);
          if (viewID != null && ! "".equals(viewID))
             fc.getViewRoot().setViewId(viewID);
          else
             _base.handleNavigation(fc, actionMethod, actionName);
    }You'll also need this in faces-config.xml:
    <application>
      <navigation-handler>my.code.MyNavigationManager</navigation-handler>
    ...any other stuff...
    </application>Note: I haven't tested this or anything - just to give you an idea...
    Regards,
    john

  • Dynamic navigation, on HCM Process and Forms "Web Dynpro FORM"

    Hi,
    I'm trying to solve an issue regarding dynamic navigation, on a enhacement done at the Web Dynpro ABAP QISR_UI component for HCM Process and Forms.
    I'm hiding the Adobe Form, and doing "do_dynamic_navigation" for a dynamic generated view container present at the VIEWSHOWFORM on the QISR_UI component.
    The code works great, i.e.: the Adobe Form remains hidden and the custom form, using Web Dynpro appears.
    I'm also using the HRASR00_PROCESS_EXECUTE_1 component to execute a Portal IView (Floorplan based component).
    When the process is started, and the folowing actions are executed:
    1- Select Employee
    2- Select Process
    3- Edit form
    4- Press back (for example if the wrong process is selected)
    5- Select the Process
    6- Edit form again
    There is a NULL exception, the "embedding_vca" (below) is NULL
    SAPLWDR_RUNTIME_REPOSITORY
    METHOD: IF_WD_RR_VIEW_USAGE~GET_EMB_VIEW_CNT_ASSIGNMENT (LCL_VIEW_USA
    * method IF_WD_RR_VIEW_USAGE~GET_EMB_VIEW_CNT_ASSIGNMENT
      method if_wd_rr_view_usage~get_emb_view_cnt_assignment.
        result = me->view_usage->embedding_vca->get_api( ).
      endmethod.
    "IF_WD_RR_VIEW_USAGE~GET_VIEW_CONTAINER_ASSIGNMENT
    Can you guys give me an hand?
    Regards

    Hello,
    Basically what I did was replacing the Adobe Form, by a Web Dynpro component that contains its own form, and associated logic.
    Tecnically the steps to acomplish the task were:
    1º Development of a component for showing a form. ( I suggest you to start with just a "hello world" or something very basic )
    2º Enhance the QISR_UI component (VIEWSHOWFORM view, on the modify view method), something like
    if form scenario = XXXXX then
    hide the adobe form;
    create a custom view container (the problem I had above), and create an instance of the component created on step 1
    end if
    3º Access the context that the original form returns (you can check the context debugging the VIEWSHORFORM view )
    4º Pass the context to the component created..
    I can't provide further details on this, I'm sorry...
    I do not suggest doing this, this was a requirement so I had to do it... But this requires a lot of workarrounds, and lots of small changes in standard code related with process and forms... It's not, also, a "clean" solution
    Regards,
    Joã

Maybe you are looking for

  • How to add log messages in the sever/webui objects?

    Hi, I am new to the OA Framework. Can any one share any information in how to add log messages in the sever/webui objects? What are the beans I need to use to show in the diagnostic page? Can I get sample code for this log staments? Thanks in advance

  • Nokia N86 power consumption

    I have a Nokia N86 which is 2 years old. I have been experiencing a problem with battery drainage since I bought it. The battery meter suddenly drops from 5 bars to one bar when I browse the net using HSDPA, after about 30mins or so, when the phone i

  • Mac Mini to Component/S-Video based HDTV

    Im thinking of getting a mac mini to connect to my TV. The TV i have only has component and s-video input. i read that the dvi-component converter that apple has is not good for display, only for movies and such. is there anyway i can get clear resol

  • Email thread by sender

    Some genius appears to have decided that (unlike almost every other email system... you know, the useful ones) emails should be threaded by "subject" rather than the reply chain of a particular message.  This means that all emails with the same "subj

  • N79 connected in a non compatible USB mode

    Hi everyone, as being mentioned in the title, i'm facing this tedious problem whereby everytime when I connect my N79 using "Mass Storage" mode, my computer will detect it as non compatible USB mode.. can i know how to fix this problem as the window