Panel Navigation in JSF

I am new to JSF. I want to implement panel navigation in JSF. Any links to implementing the same are appreciated.
Thnx in adv,
Sir

You can do it easily by using apache myfaces tomahawk implementation please see the link
http://myfaces.apache.org/tomahawk/panelNavigation2

Similar Messages

  • "Navigator" via JSF in a Struts Application (struts-faces)

    Hi!
    I got an existing Struts application which uses some includes to display a "Menu" on the left side with several links to navigate through the Webapp. Each of the Links points to a Struts-Action, that does some business logic and redirects any of a bundle of JSPs... Each of the JSPs is including this "navigation-jsp".
    Now i want to realize this Navigation with JSF and a TreeViewer (similar to the one in demo components) but the problem i face atm is, that when i click a link, and come back to any of the JSPs (after struts-action) how should this Tree-Navigator be rendered correctly???
    As said in topic, im using struts-faces.
    Any ideas?
    Greetings
    Patrick

    please guys - try to help me :-(

  • Problems with navigation using JSF 1.0 RI

    I have a problem with faces in that navigation simply stops working. I have a page which have prev/next buttons on it, and a cancel button. Each button is of the form
    <h:form id="viewxxx">
    <h:commandButton value="XXX" styleClass="buttonInput" action="#{somebean.doSomeAction}"/>
    </h:form>
    The code behind the next/prev button action returns "success", the cancel returns an action string which returns the user to the previous screen.
    After clicking on prev/next a few times one of two possible things happen:-
    (1) the navigation stops working (all buttons do nothing)
    (2) or after pressing a button a few times the navigation starts to work.
    I tried to simplify things to find out if my backing code was causing the problem. I included a very simple button:-
    <h:form id="view_c_getridofme">
         <h:commandButton value="Test" styleClass="buttonInput" action="success"/>
    </h:form>
    and after clicking this a few time it also breaks the navigation. So I suspect something strange is going on inside the Faces implementation.
    I checked the faces-config.xml and this is correct:
    <!-- Stay on View for page next/prev -->
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/viewcorr.jsp</to-view-id>
    <redirect />
    </navigation-case>
    I tried (albeit briefly) MyFaces 1.0.3 and the navigation does not break although it does present some other issues for me. My preference would be to use Sun's JavaFaces implementation if possible.
    Can anyone shed light on this - why this may be happening?

    I experienced the same problem while re-submitting to the same page about 15 times via a command button (a list page that would get updated with every new submit).
    After having turned JSF logging on I discovered that my stylesheet (!) was interpreted by JSF as a Faces view (because of the /faces/-mapping before it) and that this caused the list page to be (incorrectly) added up towards the maximum of 15 views in the session. After 15 reloads JSF would remove the list page from view, re-create it, and I experienced the same problems as you described in the top post - no navigation worked.
    My stylesheet used to be:
    <link rel="STYLESHEET" type="text/css" href="../../css/foo.css">
    ... which kept the /faces/ mapping from the page containing the css reference, and made it look like a faces view to JSF.
    When I switched to:
    <link rel="STYLESHEET" type="text/css" href="/css/foo.css">
    ... the problem disappeared.
    Hope that helps all of you that have this problem. It certainly took me quite a while to figure it out!
    Mattias L

  • How to implement smart navigation in JSF or JSP

    hi,dear all:
    we design a jsp page with tiles,everything is ok.
    But we got a problem: when we design many input text or radio button or listbox on our page1.jsf,it will reload to itself when it got error with the component that user keyin and render the page on the top place.
    we want user will see the place that he keyin error (droll automatic) not the top of the page.
    we see that already done by asp.net's "smart navigation",but we must write in jsf.
    How to do that next step? thank you very much.

    Hi Dan,
    Here is some key listner code that makes sure the user only enters numbers. Maybe you can change it for the return button (I think the charCode of the return button is 10, btw)
    <script type="text/javascript">
    function checkIt(evt)      
         var charCode = (evt.charCode) ? evt.charCode : ((evt.which) ? evt.which : evt.keyCode);
         if (charCode > 31 && (charCode < 48 || charCode > 57))
              alert("Please make sure entries are numbers only.");
              return false;
              return true;
    </script>And in the h:inputText I have onkeypress="return checkIt(event)"
    Cheers,
    Illu

  • Styling Panel tabs in JSF with CSS

    Hello,
    I have been struggling to find a good resource that deals with the styling of <t:panelTabbedPane> and panelTabs in CSS. It would seem that using conventional tab methods might not always work correctly since JSF tabs seem to dynamically resize themselves based on the text within the, Can anyone here point me to a good resource? Thank you!

    There are tabbed panel components available. For example the Tomahawk's [t:panelTabbedPane|http://myfaces.apache.org/tomahawk/tabbedPane.html].

  • Navigation of JSF pages on Linux

    Hi ,
    I am in process of developing an application containing JSF pages . I have deployed the EAR on WAS on windows machine and JSF pages developed are working fine and I am able to navigate the pages without any issues.
    However , when I deploy the same EAR on WAS which is installed on LINUX , JSF page navigation has stopped.
    There is no error as such coming on the console , I need to check the system.out/err files for any error .
    Do I need to make any changes in faces-config.xml ?
    Advices/Suggestions will be greatly appreciated .
    thanks...

    When you say the "navigation has stopped," what do you mean? The page refreshes but returns the user to the same page? The page doesn't refresh? The user is taken to a blank page?
    You shouldn't need to make any changes at all. I develop on a Windows machine and deploy to a Linux server on a daily basis without any modifications before releasing. I'm using WAR files and Tomcat, but JSF applications should run just the same either way. The only thing that immediately comes to mind is the JDK installed on Linux might not be adequite. For example an older version or jre instead of jdk.

  • Sliding panels navigation

    Hello,
    Got the sliding panels working fine however I am wondering if it is possible to change the navigation slightly.
    Currently I am navigation between the pabels using previous and next buttons such as:
    <a href="#" onclick="sp1.showNextPanel(); return false;">Next</a>
    <a href="#" onclick="sp1.showPreviousPanel(); return false;">Previous</a>
    However when you are at either the first panel and click previous or the last panel and next the buttons obviously don't do anything. Is there any code than can be added so that when you are at the first panel and click previous the last panel is navigated to and vise versa on the last.
    Here is an example of what I mean:
    http://www.panic.com/coda/
    Any ideas?

    Sure,
    You can modify the SlidingPanels showNext and prev methods like this:
    Spry.Widget.SlidingPanels.prototype.showPreviousPanel = function()
         var index = this.getContentPanelIndex(this.currentPanel) - 1;
         return this.showPanel(index < 0 ? this.getContentPanels().length -1 : index);
    Spry.Widget.SlidingPanels.prototype.showNextPanel = function()
         var index = this.getContentPanelIndex(this.currentPanel) + 1
         return this.showPanel(index >= this.getContentPanels().length ? 0 : index);
    And it should work
    (either change them in SprySlidingPanels.js file, or just add them in a script block under the SprySlidngPanels script)

  • Panel Navigation by metadata on Library is missing

    Hello,
    Context
    - Site : Team Site (native)
    - Site feature : Navigation metadata active
    - Library : enable content type, enable metadata navigation.
    When i open the Library, the left panel with tterm is not visible.
    It works on DEV but not in PROD environment.
    It seems configuration is the same both.
    - Rights, masterpage, service application.
    Thanbk you for your help.

    Hi jooleffect,
    Do you mean the settings doesn’t work in all sites in the production environment?
    try to deactivate/reactivate the site feature “Metadata Navigation and Filtering”, set the navigation in a new library, check the result.
    Also, make sure that Managed Metadata Service is working.
    If it persists, please check whether there is related information in the ULS log file.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Navigation in JSF when downloading the results to CSV .. html in CSV files

    Hi,
    I am new to JSF and am struggling with navigation.
    I tried using CommandLink and CommandButton to invoke the action in the backing bean.
    I am either getting html code written in the .CSV file or the click on the
    link is working in alternate attempts.. Please respond as soon as possible
    Below is the code in the backing bean :
    public String getHardCopyContactsFilterResultsAsCSV(){
              this.setFilterReportPrefId("HARDCOPY");
              FacesContext context = FacesContext.getCurrentInstance();
              HttpServletResponse response = (HttpServletResponse) ectx.getResponse();          
              response.setHeader("Content-disposition",
              "attachment; filename=Hard Copy Contacts Fliter Results Report.csv");
         E contec     response.setContentLength(getHeaderForFliterResultsReport().length());
              response.setContentType("application/text");     
              //response.getWriter();
              try {
              response.getOutputStream().write(getHeaderForFliterResultsReport().getBytes());     
              if(this.hardcopyResultsDTO!=null){
                   response.getOutputStream().write(getHardCopyContactsForFilterReport().getBytes());
              response.getOutputStream().flush();
              response.getOutputStream().close();
              //context.responseComplete();
              } catch (Exception e) {          
              e.printStackTrace();
              return "temporaryPage";
    Note:: I Tried to comment and uncomment the context.reponseComplete() .
    Case A:)When The above line is commented i.e responseComplete is called what I am observing is once I click the link to view the Results as .CSV First time I am able to save the results once I try to clik the se cond time the page is getting refreshed rather than opening the dialog as shown for the first attempt.
    Every alternate attempt it is working as required i.e opening a dialog.
    Case B:
    Here the line responseComplete is commented. So when click on link every time a dialog opens
    But what I see in te saved .CSV file is the Html code also rendered after the results written in the JSP

    Appreciate your response. Thank you.
    Yes, I did make the bean action method as void and also did FacesContext#responseComplete. But here the problem is on the first click it opens the CSV but on the second click the page is getting refereshed . So ever alternate click on the link opens the CSV,
    I am using the link in the jsp emmbed in the tabbed pane, I am providing the code in the tabbed pane as well the code to invoke the link..
    Tabbed pane code :::>>>>
    <h:form id="czAnnmtFilterReportOnlineForm">
         <t:panelTabbedPane id="czAnnmtFilterPane" bgcolor="#FFFFCC" activeTabStyleClass="editorPane_activeTab" inactiveTabStyleClass="editorPane_inactiveTab" tabContentStyleClass="editorPane_tabContent" >
    <t:panelTab id="allResults" label="All Contacts" title="All Contacts" >
              <jsp:include page="CzAnnmtFilterAllReport.jsp"/>
         <t:panelTab id="hardCopyResults" label="Hard Copy Contacts" title="Hard Copy Contacts" >
              <jsp:include page="CzAnnmtFilterHardCopyReport.jsp"/>
         </t:panelTab>
    Code to perform the action of view Results as .csv in CzAnnmtFilterHardCopyReport.jsp
    <h:commandLink styleClass="c14_green_under" value ="View Hard Copy Contact Results as .csv" action="#{announcementBackingBean.getHardCopyContactsFilterResultsAsCSV}" rendered="#{!empty announcementBackingBean.hardcopyResultsDTO}"/>
    Please let me know the nest approach to solve this problem
    That is the reson I was trying other approaches of fowarding to another page in the faces Context but even then
    I am not succesful.

  • Lync Server 2010 Control Panel - "navigation to the webpage was canceled"

    Hi All,
    I just installed Lync Server 2010. The SQL 2008 is installed on a separate box and both servers are on Windows 2008 R2.
    However, when I try to start the "Lync Server 2010 Control Panel"  i get a blank page with the following message "Navigation to the webpage was canceled"
    The Installation had no errors and went well. But I did have one problem in the Topology Builder where is asked to create a File Share and asked for FQDN and File Share. I entered "Server1.domain.com" and File Share "Poolshare" but it did
    not like it and error with a red cross saying.. 
    "FQDN Server1.domain.com is already used in this topology"
    So in the end I just change it to "Server1" then published and ran the installation sucessfully and all services are started OK
    Any idea? could it be that the file share is not using FQDN?
    Thanks
    ECL

    I have reveiwed this topic but have not been able to fing my answer. I am getting the same result when attempting to connect to the Lync Control Panel and the webpage saying "navigation was canceled..". Here are the details, any assistance is greatly
    appreciated:
    I have an existing OCS 2007 R2 server setup in the domain. My domain is company.CORP. It is a Standard Edition server for IM and Presence only. There is an Edge server as well and I have PIC enabled. My sipinternaltls SRV record to the current SE Front End.
    All works great. There is a SIP.company.com record in the domain too. I am standing up LYNC 2010 environment on HyperV and ran topology builder twice because I had to fix a name. (I see in Mac's comment that I need to run step2 again. Why is that?)
    My Share is on the HyperV server that is hosting the Front End server but they are completely different servernames. My topology published successfully and create some data in the File Share and the Backend DB was created and populated with tables. The certificates
    were successfully applied and all services started right up. The latest version of Silverlight was installed and the server was rebooted. Still the darn White Page with 'Navigation to the webpage was canceled'.
    I am able to go into IIS and launch the Control Panel successfully by browsing on the "cscp" directory for the Lync Server Internal Web Site. I can also connect to the Control Panel by using the
    httpS://admin.company.com/cscp but I have to put  'cscp ' in the path. I cannot browse AD using the Control Panel to find my TestLyncUser1 account but I can find the account, and successfully enable
    the account, using the Lync Management Shell. The account was enables and was able to successfully login to the Lync FE server (manually, since the SRV record point to OCS).
    This is where I am stuck. Why won't it launch from the Programs File Tool and why do I have to designate the CSCP in the URL? I am Not sure why I couldn't browse AD successfully in the Control Panel yet I could with Powershell. I will begin troubleshooting
    that issue next. Could it be because my sip.company.com record points to a different OCS Pool? Or my SRV internaltls record points to the OCS Pool? Microsoft supports standing up the two environments side-by-side and migrating but maybe I am missing something.
    Any ideas anyone?
    I want to add that I will be having a FE Pool and have named and published my second FE but I have not installed it. The Pool VIP is created in DNS and only pointing to FE1 right now.

  • Sliding Panels Current Panel Navigation

    Hi there,
    I am quite new to using the spry framework, and my js skills
    are not exceptionally strong. I am using a simple navigation menu
    to activate the sliding panel widget. I am wondering if there is a
    way to target the menu item so I can apply a different style it.
    (Different style when panel is active)
    Many thanks,
    Jarvis

    Take a look at this topic: http://forums.adobe.com/message/2174795#2174795

  • Problem in first request's navigation in JSF

    Hi all
    I want to redirect to first page of application thru faces-config. Please have look at the code flow
    1. First time request comes to our Java filter, this filter forward the controle to our facelets (i.e. dispatcher.xhtml).
    2. From this facelets we are calling servlet as manage bean, like this.. <h:outputText value="#{servletBean.analyseRequest}"/>
    3. Now in this servlet (servletBean) we are doing some processing and after completion of task i want to go back to faces-config for navigation.
    4. in the faces-config.xml i have written like this -
    <navigation-rule>
         <from-view-id>/facelets/dispatcher.xhtml</from-view-id>
         <navigation-case>
                   <from-outcome>success</from-outcome>
                   <to-view-id>/facelets/port.xhtml</to-view-id>
              </navigation-case>
         </navigation-rule>
    But in my case the control is going to port.xml.
    Can anyone tell me what am i missing something?
    Any help would be really appreciated.
    thanks.

    can anyone has any idea about it?

  • Spry Tabbed Panels navigation

    I am using Dreamweaver CS4 to create pages with both tabbed panels and accordian sets. I would like to "remember" which panel I was in when I navigate away from the page and then return to it using the "Back button on the browser. In some cases I have set the page to open to a specific panel instead of the default panel (0) when I navigate away from that page the back button on the browser takes me to the specific panel opened and not the last panel visited. In both cases I want to be able to return to the last panel visited and not to the default panel.

    Hi Beth,
    The older I get, the less I have to say (this ensures that I do not get into trouble) and the more I write down (memory starting to fail).
    This particular reference I wrote down because our mutual aquaintance going by the name of Arnout Kazemier still keeps producing excellent articles that would otherwise be forgotten.
    Come to think of it, thank you for broadcasting Learn to use the Spry framework for Ajax.  Maybe the above article should be mentioned in the online learning document.
    Ben

  • Microsoft Lync Server 2013 Control Panel "Navigation to the webpage was canceled"

    i'm facing this issue on the last 2 days.My Lync server 2013 was seted up a month ago and everything went fine on the installation.
    Lync server 2013 on Windows 2008R2 SP1.
    I could login to the Control Panel (using domain administrator credentials), create users (including myself) manage clients etc.
    i didn't login to Lync server for at least a week, beacause i didin't have any other user to add. When time came to add a new user to Lync, i got this error whenever i try to open Control Panel.
    i didn't change anything during this time, so i'm really confused by this.
    i've checked everything from the start and all seem to be in place.
    i also can't open the admin page from the local host as i get an error
    HTTP error 403.4 - Fobidden.
    i tried also to create new certificates for Lync server, but issue remains.
    Also, any solutions i've read for this problem doesn't work as everything is placed correct as other users suggest.
    Can anyone please help me further?
    Cheers,
    Elias

    Ok I had the same problem, I missconfigured the admin simple url in topology builder (TB) which I fixed.  Also the default certificate in the FE server did not have a SAN entry for the "admin" simple url (which was an error). 
    So I corrected the admin address in TB republised it, redid step two on the FE, reissued adn replaced the old cert.  The new cert had the corrected admin simple url.  Checked IIS on the server and made sure that the internal web server had the
    right certificate, restarted IIS.
    The default Lync control pannel still did not come up, I rebooted the server, the closest I got was being prompt for my credential which it did not accept.
    Finally control pannel came up with https://localhost/cscp but I got prompted becuase of a certificate missmatch:
    but it still worked!!! Very very wierd.  I have not changed CA servers.  I am interested about why this happened....
    [email protected]        BK
    Bob Krangle

  • Sliding Panels Navigation Question

    I'm using the sliding panels widget to display some image
    thumbnails. The problem is, I'm displaying about 5 or so at a time,
    and the showNextPanel function only moves the whole thing over by
    one thumbnail, making it necessary to click it five times to show
    the next set of thumbnails.
    Mangled test file can be found
    here.

    Hello Luke,
    I see there are 3 problems here you want/have to solve:
    1. On page load you try to animate an element in page that
    doesn't exists: thimbContainer. Every time you load the page in the
    browser 3 alerts that the element is not found are generated by the
    Spry Effects because the element isn't there. Please remove the
    following code from the onload attribute attached to the body tag:
    MM_effectAppearFade('thumbContainer', 2000, 0, 100, false);
    2. The move next arrow doesn't work on the first click. The
    problem appears because the SlidingPanel widget is instantiated
    before the data to be putted in place in your page by the ds1 XML
    DataSet. The regions are populated on page finish with the data but
    the SlidingPanel widget will still try to animate the old,
    incorrect element on the first click. To avoid this problem you'll
    have to remove from page the SlidingPanel instantiation and
    register a listener on the 'ticker' region update. Remove this
    code:
    <script type="text/javascript">
    var sp = new Spry.Widget.SlidingPanels("ticker");
    </script>
    and just after the ds1 DataSet instantiation add the
    following line:
    Spry.Data.Region.addObserver('ticker',
    {onPostUpdate:function(){sp = new
    Spry.Widget.SlidingPanels("ticker");}});
    3. To move the slider with the next 5 or prev 5 elements
    you'll have to create your own functions that should add or
    subtract from the current display index 5. The functions you look
    for are:
    function moveNextFive(){
    if (!sp)
    return;
    var idx = sp.getContentPanelIndex(sp.currentPanel) + 5;
    var maxPanels = sp.getContentPanels().length;
    if (idx > maxPanels)
    idx = maxPanels;
    sp.showPanel(idx);
    function movePrevFive(){
    if (!sp)
    return;
    var idx = sp.getContentPanelIndex(sp.currentPanel) - 5;
    var minPanels = 0
    if (idx < minPanels)
    idx = minPanels;
    sp.showPanel(idx);
    Please change the onclick for the previous and next arrows in
    your Sliding Panels with calls to these 2 functions.
    Regards,
    Cristian

Maybe you are looking for

  • Restoring from iTunes Backup disks

    I backed up my entire library once (> 2500 songs etc.) Since then I have made several backups using the "since last backup" option. I know the restoration process will initialize with the entire library b/u and assume the subsequent "since last backu

  • A select query

    I have two tables(Forum, Nettbruker), one is a list of all forums and the other is a list of all users. Some users are members of more than one forum. I want to write a query that would print out a user's name, email address and a list of all the for

  • How to calculate number of samples ni scope for PXI-5922

    Hi, I am streaming data from one of the channels from a PXI-5922. Assuming the resolution at 16bits/sample and the sampling rate at 10MS/s, i should be streaming at a data rate of 20MB/s So, if i stream for about 4 seconds, I should have collected 20

  • Spry menu link text cut off in IE8

    I have built a website in Dreamweaver using a horizontal spry menu bar. The site works everywhere when I tested it in all browsers on several different computers. However, when someone else checked it on their computer, the text on the links is cut o

  • Triggers implemented in TopLink

    I would like implement triggers in TopLink (instead of database). During UPDATE I need make the following steps: 1. modify attributes of the updated object 2. insert record into history table The first step I have implemented in "aboutToUpdate" callb