JSF commandLink

Hi all!
I'm new to JSF and I'm working on my first proj. so pardon me for asking simple questions...
I have commanLinks as follows:
<h:dataTable value="#{pe.persons}" var="person">
<h:column>
<h:form>
<h:commandLink action="#{pi.info}">
<f:param value="#{person.personID}" name="pID"/>
<h:outputText value="#{person.name}"/>
</h:commandLink>
</h:form>
</h:column>
</h:dataTable>Basically, the pe bean reads people's names and IDs from a database and lists them on the page as links. Clicking on a name should open a new page displaying further details about the person. Basically, I'm trying to pass the person's ID as a parameter to the next page - the pi bean. The pi bean creates a new Person object with the appropriate ID, looks up the ID in the database, sets up the person's details [name, phone, address, etc.]. The next page, PersonInfo, displays those details. In order to pass the ID to the pi bean I wrote a simple function, info(), which basically reads the pID parameter and sets the Person's ID. I associated the commandLink action with that function - action="#{pi.info}".
However, I can't even verify whether that function works all right, because I get weird results. info() returns "success", the way it should, and all the navigation cases are set properly (at least I think so):
<navigation-rule>
<from-view-id>/PersonList.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/PersonInfo.jsp</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>When I click the link, nothing happens. Nought. Nada. If I change the action to action="success", it works.
Does anyone have any idea why?
Any help would be greatly appreciated. Also, I'm open to suggestions, so please do let me know if there are better ways to do the whole thing!
Thanks!
Gaia

Never mind, I fixed it!!

Similar Messages

  • Struts-faces & JSF commandLink bug in RI 1.1

    Hello,
    There was a bug with JSF, multiple forms and commandLink as discussed in thread: http://forum.java.sun.com/thread.jsp?thread=526788&forum=427.
    This bug is now fixed for JSF h:form form type.
    I personnally use Struts and JSF with the struts-faces JAR and this issue is still not fixed when you create a form using the s:form tag, in fact as long as there is a s:form on the page the commandLinks do not work the same way as first reported for pure JSF apps.
    Will this be fixed anytime soon in the struts-faces library? I hope so because I do need it.
    Thanks
    Xav

    hi,
    i guess [email protected]
    or
    http://issues.apache.org/bugzilla/enter_bug.cgi?product=Struts
    might be a better place for that.
    regards.

  • JSF commandlink Problrm

    hi
    i am facing problem in triggering action in commandlink when t:newspaperTable tag is used ...............
    But if i remove t:newspaperTable commandlink action works fine..........
    plz solve this problem..............and response as early as possible
    <f:view>
    <f:loadBundle basename="alien.support.iap_messages" var="msg"/>
    <h:form name="ThumbnailCenter2">
    <table border="0" bordercolor=red cellspacing="0" cellpadding="0" height=100% valign=top>
    <tr><td colspan="2" height="8" width="100%"></td></tr>
    <tr>
    <td width="2" height=100% bgcolor="#e0e0e0"><img src="images/transparent.gif" width=2 height=100%></td>
    <td width="100%" valign=top>
    <t:newspaperTable id="data" newspaperColumns="4" value="#{thumbnailBean.thumbimages}" var="album" >
         <h:column>
         <h:panelGrid columns="1" style="border:0px solid green;height:150px;width:30px" cellspacing="0" cellpadding="0">
              <h:panelGroup style="height:150px;width:25px">
                   <h:outputText value=" "/>
              </h:panelGroup>
         </h:panelGrid>
         </h:column>
         <h:column>
         <h:panelGrid columns="1" style="border:1px solid black;height:138px;width:138px" cellspacing="0" cellpadding="0">
              <h:panelGroup style="height:11px;width:138px">
                   <h:outputText value=" " style="height:11px;width:127px"/>
                   <h:graphicImage url="images/redball.jpg" width="11" height="11"/>
              </h:panelGroup>
              <h:panelGroup style="height:68px;width:138px">
                   <h:outputText value=" " style="height:68px;width:14px"/>
                   <h:graphicImage url="show_Thumbnail.jsf?imageid=#{album.id}"/>                    
              </h:panelGroup>
              <h:panelGroup style="height:20px;width:138px">
                   <t:commandLink id="imagename" action="#{thumbnailBottomBean.thumbDetails}" style="text-decoration:none;color:black; font-family: Verdana; font-size: 11px; font-weight: normal; color: black" onmouseover="style.color='#000000';style.backgroundColor='#D4D4D4';style.fontWeight='bold'" onmouseout="style.color='#000000';style.backgroundColor='#ffffff';style.fontWeight='normal'" target="f4">
                   <h:outputText value="#{album.name}"/>
                   <f:param name="id" value="#{album.id}"/>
                   </t:commandLink>
              </h:panelGroup>
              <h:panelGroup style="height:20px;width:138px;">
                   <h:graphicImage url="images/image1.jpg" width="15" height="18"/>
                   <h:outputText value="" style="height:20px;width:35px;" />
                   <h:graphicImage url="images/imagewrite.jpg" width="16" height="18"/>
                   <h:commandButton id="fullImage" immediate="true" onmousedown="showFullImage(this,'ThumbnailCenter2','fullImage', #{album.id})" image="images/imageview.jpg" >
                        <f:param name="fullImageID" value="#{node.id}"/>
                   </h:commandButton>
                   <h:outputText value="" style="height:20px;width:30px;" />
                   <h:selectBooleanCheckbox id="imageCheck" value="#{thumbnailBean.imageselect}"></h:selectBooleanCheckbox>
              </h:panelGroup>
         </h:panelGrid>
         </h:column>
    </t:newspaperTable>

    h:messages is a must. Please do that first!
    This is a message I posted in the other thread. Please respond in this thread.
    I don't know if I can solve your problem vin. Two things though:
    First. try it with h:commandLink instead of t:commandLink. I'm not sure what t:commandLink does.
    Secondly, I've experience some odd behaviour when using commandLink and commandButton as children components to anything but h:form (that is, f:view>h:form>h:command*). The action method doesn't seem to get called for some reason. I was unable to figure out why.
    CowKing

  • How to control scheme with JSF commandLink/Button tags?

    Ok, so I've a problem using JSF on Sun AS 9.0.1 when deployed behind an SSL accelerator in production.
    Because secure requests get to the app server unencrypted, I am unable to use regular declarative security user-data-constraint/transport-guarantee/CONFIDENTIAL in web.xml, or it gets in an infinite loop redirecting to https.
    Tomcat 5 provides a way to customize the default behavior (see http://www.unc.edu/~adamc/docs/tomcat/tc-accel.html), but I'm not going to be able to use this until Sun AS 9.1 comes out... :(
    So in the meantime, I'd just like to control the schemes on my links and action post, but JSF doesn't seem to support it! <commandLink/Button>s don't seem to allow you to change scheme. If you put a full URL in the action, it fails to lookup the full URL w/ scheme in the faces-config.xml...
    Is this a Glassfish bug or a JSF oversight?
    I'd appreciate any workaround idea the community would be willing to share. :)
    Thank you,

    Hey guyz plzzz help
    In my navigation rule , generally i call any other jsp, instead of it can i call controller servlet ? And now every action corresponding to any button will call this servlet.
    can i call servlet ?

  • JSF - CommandLink action - Partial Refresh for Multiple Pages in a Form

    Hi,
    I have a 3 JSP Pages, say ( 1.jsp, 2.jsp, 3.jsp) called as designed in the FORM below :
    --------------PAGE 1.jsp-----------------------------------------
    | Input Box 1 |
    | Input Box 2 |
    | Input Box 3 |
    | |
    | <DIV> |
    | PAGE 2.JSP |
    | </DIV> |
    | |
    | |
    | |
    | <DIV> |
    | PAGE 3.jsp |
    | </DIV> |
    |________________________________________ |
    Page 1 has some input boxes and onBlur() of one of the input Boxes --> I call some Ajax code pass Values from Page 1.jsp to Page 2.jsp --> build URL for Page 2.jsp and display it in the specifiedDIV area above.
    Similarly, Page 2.jsp has some inputs --> pass inputs from Page2 to Page 3----> build URL for Page 3.jsp and call it in DIV areaabove .
    Now,
    Page 3.jsp has a commanButton which I click and upon success submission refreshes the whole screen & loads only Page 3.JSP
    Is there a way that when i click on the submit button on Page3.jsp above, only the part of the whole form that has Page 3.jsp refreshes and rest of the screen remains as it is. I mean Page 1 & Page 2 do not get refreshed.
    I would really appreciate if you could assist with some code examples

    Don't know if I get it right, but it's not wise to discover wheel, when it's alredy discovered. Mix of JSF 1.2 with RichFaces should do. You can set form to be submited in ajax, you have ajax components, finally you have attribute 'reRender' in commandButton (or whatever you use) which tells which part of page should server rerender, so just indicate it by element id :].
    In short term You may try to divide your page with sub pages (suppose you use subview) on 3 forms. In JSF 1.2 RI h:form always send whole form, and so rerenders whole form

  • Issue when opening new windows using JSF CommandLink

    Hi,
    I'm opening this thread to follow up on a topic posted on the old Sun Developer Forum: http://forums.sun.com/thread.jspa?threadID=5435239 . That post was never answered and I am having the same problem.
    To summarize (and I'll quote from the original post):
    "I am having an issue where when I open a page in a new window from a link in my primary window any button or link clicked on the primary window after that opens a new window."
    "Any other actions on the primary page should keep navigation within the primary window. This issue does not start occurring until after the desired new window is opened the first time."
    Anyone has run into this problem and found a solution?
    Marc

    This is the command link code that, once this gets called, anything else on the page will open this window again:
    <h:commandLink immediate="true" styleClass="commandLink" target="_blank" style="text-decoration:none"
                id="pdfLink action="#{Bean.method}">
         <hx:graphicImageEx id="imageEx2" styleClass="graphicImageEx" value="../images/pdfButton.gif">
         </hx:graphicImageEx>
    </h:commandLink>

  • Help: commandLink does not work.

    commandLink does not work. It just simple refreshes the page, and not enter the Listener,( he listener work pretty well in other page).
    Is it dataTable problem? If I not use dataTable but just use JSTL & JSF commandLink and it works fine.
    --------------CODE---------------
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
    <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <link rel="stylesheet" type="text/css" href='<%= request.getContextPath() + "/style/styletable.css"%>'/>
    <f:loadBundle basename="bundle.admin.Attribute" var="bdlAttribute"/>
    <f:subview id="AttributeListView">
    <h:form id="AttributeListForm">
    <center>
    <h:outputText escape="false" value="Text Here"/>
    <br>
    <h:dataTable id="AttributeTable"
    columnClasses="list-column-center,list-column-right, list-column-center, list-column-right"
    headerClass="list-header"
    rowClasses="list-row"
    styleClass="list-background"
    value="#{list}"
    var="attribute">
    <f:facet name="header">
    <h:outputText value="#{bdlAttribute.TitleList}"/>
    </f:facet>
    <h:column>
    <f:facet name="header">
    <h:outputText value="#{bdlAttribute.Category}"/>
    </f:facet>
    <h:outputText id="category" value="#{attribute.category}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="#{bdlAttribute.Value}"/>
    </f:facet>
    <h:outputText id="value"
    value="#{attribute.value}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="#{bdlAttribute.DataType}"/>
    </f:facet>
    <h:outputText id="dataType" value="#{attribute.dataType}">
    </h:outputText>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="#{bdlAttribute.Edit}" />
    </f:facet>
              <h:commandLink action="#{Action.action}" styleClass="link">
                   <f:actionListener type="my.AttributeListener"/>
                   <h:outputText value="Edit"/>
                   <f:param name="ID" value="#{attribute.attributeId}"/>
                   <f:attribute name="COMMAND" value="getAttribute"/>
              </h:commandLink>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="#{bdlAttribute.Delete}"/>
    </f:facet>
         <h:commandLink action="#{Action.action}" styleClass="link">
              <f:actionListener type="my.AttributeListener"/>
              <h:outputText value="Delete"/>
              <f:param name="ID" value="#{attribute.attributeId}"/>
              <f:attribute name="COMMAND" value="deleteAttribute"/>
         </h:commandLink>
    </h:column>
    </h:dataTable>
    <h:messages styleClass="validationMessage"/>
    </center>
    </h:form>
    </f:subview>

    Hi,
    I was casually reading your code and noticed the line:'
    <h:commandLink action="#{Action.action}" styleClass="link">
    I recall from other posts that if you want the method on the bean (of the clicked/ selected row) to be called, you probably need:
    <h:commandLink action="#{attribute.action}" styleClass="link">
    Ofcourse you would need to have a method called action in the class of instance "attribute". This method should return string for navigation etc.
    Looking at your code again:
    <h:commandLink action="#{Action.action}" styleClass="link">
    <f:actionListener type="my.AttributeListener"/>
    <h:outputText value="Delete"/>
    <f:param name="ID" value="#{attribute.attributeId}"/>
    <f:attribute name="COMMAND" value="deleteAttribute"/>
    </h:commandLink>
    I don't understand why you need:
    <f:actionListener type="my.AttributeListener"/>
    As I am not coding a lot of JSF I am only answering from what I have read.
    All the best,
    Vinay

  • H:commandLink and Javascript

    Hi All,
    I have a commandLink in which I pass parameter using <f:param>. This commnadLink is enclosed under <h:form>
    This <h:form> is calling javascript function on its onSubmit event.
    <h:form onSubmit="return validateForm()" >
       <h:commandLink action="#{bean.action}" >
           <f:param name="action"  value ="settings"/>
       </h:commandLink>
    </h:form>Now my problem is when I click commandlink my javascript function is not executed. And there is no onclick available in commandLink tag.
    I saw the html output of this code. h:commandLink puts its own onclick so it makes sense that it doesnot have onClick support. But in generated code commandLink forcefully submits the form. So ideally any function in form's onsubmit() should be called but in this case it is not.
    Any suggestions ? What is going wrong here ?
    Thanks

    We have a similar problem here. Strictly speaking, it seems like Faces isn't really oriented toward javascript validation -- it's expected that'll happen server side.
    If you have to have it client-side (and, yes, I know the arguments), you could try the approach I came up w/here. (I'd actually appreciate some comments on it -- it's a hack, but i'm wondering how bad it is. :)
    Put the h:commandLink in a hidden div, with just a wee bit of extra javascript:
    <div style="display:none;">
    <h:commandLink id="okCmd" ....>....</h:commandLink>
    <h:outputFormat escape="false" value="
      <script> var okCmd = \"{0}\"; </script>
      ">
      <yourExtremelyShortTaglibNamespacePrefix:clientIdParam componentId="okCmd" />
    <h:outputFormat>
    </div>write your own link whose onclick handler calls validateForm() and then calls the h:commandLink's onclick:
    function okeyDokey() {
      if (validateForm())
        clickLink( okCmd);  // okCmd var defined elsewhere (see above)
    }So, then we need the clientIdParam custom tag, and the clickLink() javascript function.
    public class ClientIdParam extends UIParameter
       public static final String COMPONENT_TYPE = "canopy.ClientIdParam";
        * Returns the clientId of the component indicated by the 'componentId'
        * property.  {@link UIComponent#findComponent(String)} will be used to
        * find the component.
       public Object getValue()
          return findComponent( getComponentId())
             .getClientId( FacesContext.getCurrentInstance());
       // getComponentId() (omitted) is straightforward....
    }javascript clickLink():
    * Simulate a user clicking a link.  Originally written for simulating clicks
    * on JSF commandLinks, so if you change  it, make sure it still works for
    * that purpose.
    function clickLink( aLinkId)
       var link = document.getElementById( aLinkId);
       link.onclick();
    }So... am I insane? Did I miss a simple one-line solution as plain as the nose on my face? (I wouldn't mind finding out there's something better.)
    John.

  • MyFaces "columns" and "commandLink" problem

    I am having an issue with the MyFaces implementation of the the JSF "dataTable" where I am using the MyFaces "columns" tag to generate columns from a List, inside each of these generated columns is a JSF commandLink. The issue I am having is that when a commandLink is pressed I get an actionEvent for every column generated under the "columns" tag not just for the one that was clicked.
    Am I just thinking about this wrong?
    How can I identify the single commandLink that was clicked?
    Here is a code sample:
    <t:dataTable rowClasses="MenuItemRow"   value="#Bean.dmMenu}"  var="link" first="0" rows="1">
         <t:columns value="#{Bean.listLinks}" var="link">
             <h:commandLink value="#{link.value}" actionListener="#{Handler.linkPressed}">
              </h:commandLink>
         </t:columns>
    </t:dataTable>Thanks for any help.

    Hi,
    I tried with the steps you have mentioned . i was not able to reproduce your problem
    I click still the link : server sendes back page1 instead of page3.It sends back the page 3 itself.
    regards
    MJ

  • SubmitForm is not defined error after JDeveloper 11.1.1.6 install

    Just installed JDeveloper 11.1.1.6 and opened a project that was originally created in 11.1.1.4 and worked fine in 11.1.1.5. Now, when clicking on a JSF commandLink (h:commandLink), I receive the following error in the web browser console:
    Uncaught ReferenceError: submitForm is not definedI figure there is a missing or mis-matched JSF or ADF library somewhere in the install that calls the commandLink submitForm() JS method, but I cannot quite pinpoint it. Any help would be appreciated. Thanks.
    UPDATE: My web.xml has the following:
      <servlet>
        <servlet-name>resources</servlet-name>
        <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>resources</servlet-name>
        <url-pattern>/adf/*</url-pattern>
      </servlet-mapping>Weblogic 10.3.5
    Edited by: MattC on Jun 1, 2012 2:26 PM

    Frank Nimphius wrote:
    Matt,
    from the web.xml you posted this looks okay as it defines adf/ as a URI for resources that should be handled by the resource loader servlet. Do you use any kind of JavaScript in the form yourself? From the error message it would point to an invalid JavaScript syntax being used
    FrankFrank,
    Thank you for the reply. I do use JavaScript in the form, however there is no duplicate "submitForm" method defined or called within this custom JavaScript. There are no other JS syntax errors indicated on the page. The only change from the time I did not and did receive this error was upgrading to 11.1.1.6 from 11.1.1.5.
    Matt

  • User clicking same Browser link multiple times

    Hi,
    We have a really weird issue on user clicking a link multiple times from browser, and that request sent to server multiple times, which is resulting into other DB errors.
    We are using JSF "commandLink" component.
    How do I transale user duplicate request into one.
    thanks

    Kiros,
    That's really a big change for me. I have 30 JSF pages, and an average 2 links per page. So, I'm touching more than 60 places to implement this change.
    I know for sure that Java Script solution will not work.
    thanks,
    Amit

  • How can I parse email activation link and do some action?

    I have som email activation link
    http://localhost:8085/application/activate.jsf?id=10&key=35435454654654654646
    I want when user clicked on this url ,
    automatically do action in bean and activate his account or not.
    I receive parameters key and id from requestParameterMap, but I do not want put on the page commandLink and do action after clicking on it.
    key = (String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("key");
        id = (String) FacesContext.getCurrentInstance().getExternalContext()
                .getRequestParameterMap().get("id");
        How can I do this?
    I have some method activation () and I want run it after receiving key and uid ,
    May be I need phase listener? If yes, can you provide simple example.

    I'm afraid you'll have to use some kind of action listener; that's how jsf commandLink and commandButtons are design to work
    OR
    you could achieve your goal by writing a servlet mapped to the url . capture your request parameters and do the activation in your servlet.

  • How to simulate commandButton click

    Hi all,
    I got an image with a html map. On this html map, I got "href" link and that's my problem because they will not be able to indicate which server value or method to call to get outcome string for navigation rules...
    Do i have to use the map and area components proposed by the tutorial ? i hope not... I feel it is a bit "heavy" for doing this...
    Can i create an image map with JSF commandLink components ? may i have to use javascript ?
    let's say i got a button :
    <h:commandButton id="idButtonSearch" value="Search" action="#{validateBean.search}"/>
    How can i simulate a call to #{validateBean.search} when user clicks on the href of the image map ?
    I check for last posts but can't find an appropriate answer,
    Thanks for your help,
    Grayou

    Oups...
    using basic javascript like : document.forms['myform'].elements['myform:idButtonSearch'].click();
    is working fine... sorry for the poor useful post...
    Grayou

  • Passing object as parameter in JSF using h:commandLink tag

    Hi ,
    I have a scenario in which i need to pass objects from one jsp to another using h:commandLink. i read balusC article "Communication in JSF" and found a basic idea of achieving it. Thanks to BalusC for the wonderful article. But i am not fully clear on the concepts and the code is giving some error. The code i have is
    My JSP:
    This commandlink is inside a <h:column> tag of <h:dataTable>
    <h:commandLink id="ol3"action="ManageAccount" actionListener="#{admincontroller.action}" >
                   <f:param id="ag" name="account" value="#{admincontroller.account}" />
                   <h:outputText id="ot3" value="Manage Account" rendered="#{adminbean.productList!=null}" />
                   </h:commandLink>
    Also a binding in h:dataTable tag with the  binding="#{admincontroller.dataTable}"
                      My Backing Bean:
    public class CompanyAdminController {
              private HtmlDataTable dataTable;
              private Account account=new Account();
    public HtmlDataTable getDataTable() {
            return dataTable;
    public Account getAccount() {
             return this.account;
    public void setAccount(Account account) {
              this.account = account;
          public void action(){
                account= (Account)this.getDataTable().getRowData();
           } faces-config.xml
    <navigation-rule>
        <from-view-id>/compadmin.jsp</from-view-id>
        <navigation-case>
          <from-outcome>ManageAccount</from-outcome>
          <to-view-id>/manageAccount.jsp</to-view-id>
        </navigation-case>
      </navigation-rule>
    <managed-bean>
              <managed-bean-name>admincontroller</managed-bean-name>
              <managed-bean-class>com.forrester.AdminController</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <property-name>account</property-name>
                   <property-class>com.model.Account</property-class>
                   <value>#{param.account}</value>
             </managed-property>
         </managed-bean>My account object:
    public class Account {
    string name;
      public String getName()
        return this.name;
      public void setName(String name)
           this.name=name;
      }I need to display #{admincontroller.account.name} in my forwarded jsp. But I am not sure whether the code i wrote in commandlink is correct. I get an error if i use <f:setActionListener> . No tag "setPropertyActionListener" defined in tag library imported with prefix "f"
    Please advise.
    Edited by: twisai on Oct 18, 2009 11:46 AM
    Edited by: twisai on Oct 18, 2009 11:47 AM
    Edited by: twisai on Oct 18, 2009 11:48 AM

    Yes.. iam removed the managedproperty from faces-config. But still i get the null pointer exception on main jsp itself and i am taken to second jsp manageaccount.jsp. Did you find anything wrong in my navigation case in the action method??
                                     public String loadAccount(){
               Account account = (Account)this.getDataTable().getRowData();
                return "ManageAcct";And also can you please answer this question i have
    The AdminController is the backing bean of 1st JSP and manageAccontController is the backing bean of forwarded JSP .
    Can i put this action method and dataTable binding in a 2nd manageAccontController backing bean instead of AdminController. But if i do that way dataList binding in h:dataTable tag will be in first JSP backing bean and dataTable binding to 2nd JSP. Not sure how to deal with this.
    {                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to get another jsp by clicking a h:commandLink in jsf page

    Hi,
    I am new to JSF. pls send sample code me how to get another jsp by clicking a commandLink in jsf.
    SUB: TO go to the page "report7.jsp"
    -->By getting help from samples i wrote for above in 2 ways.
    1)
    <td><h:commandLink id="RO0007" action="r7" >Sharing of Information from Foreign FIU</h:commandLink></td>
    and in <reports-config>
    <navigation-case>
    <from-outcome>r7</from-outcome>
    <to-view-id>report7.jsp</to-view-id>
    </navigation-case>
    2) Sending request through bean method
    <td><h:commandLink id="RO0007" action="#{RBean.report7()}" >Sharing of Information from Foreign FIU</h:commandLink></td>
    in RBean the method form is
    public String report7(){          
         return "r7";
    and in <reports-config>
    <navigation-case>
    <from-outcome>r7</from-outcome>
    <to-view-id>report7.jsp</to-view-id>
    </navigation-case>
    Some problem in both i think as it is not going to next page. i need to go to th next page by calling Bean Method.
    please get me out of this problem. It is very urgent. Thank you.
    **************************************************************

    What error is it throwing? If it is throwing a Page not found, then maybe you should try mapping to "report7.faces" instead of "report7.jsp"
    Can you post your faces-config please

Maybe you are looking for

  • How to hide ToC in the body of an ebook?

    Hey folks, I have kind of a weird query. Keep in mind that everything I know about InDesign I've taught myself over the past month, so I may be missing somethng major. As part of an internship I'm creating ebooks, and have to make sure the ones I cre

  • Managing photos with iPhoto in iPad

    My target is to manage my photos with my iPad, iPhoto and iCloud without PC or Mac. Now I have noticed that their is quite many limitations: 1) iCloud backups only the camera roll (not other albums although I have created them by the old Photo apps?)

  • Set or map?

    I have an array of Strings I want to remove the duplicate names and order alphabetically into a new array I think the right way to do this is: 1. add each to a set or map 2. extract the info into an array 3. sort the array I have never used a set or

  • PDF opens in word??

    When i try to open a PDF-file that has been attached in a email, it open as a word document. I have Adobe reader installed and the latest updates......please help me, what to do

  • Fluxbox startup

    hi guys! Im having a little problem with flux. there is a ~/.fluxbox/startup file that should be run by every startup of this desktop enviroment. But its not! ..I mean, I have that file in my filesystem but it's not prcessed during flux start... I wa