Jsf help

Hi,
I have a requirement like
three dropdown boxes 1)Select a country based on that populate
2)Currency and based on that populate 3)Price List
after populatiing data in three dropdown boxes I have some Tabedpanels on the same page like PriceList,SalesPrice,Discounts etc.,What I have to do is I need to get data into the tabs based on the three dropdown boxes after selecting items in tabs I have a common submit button for this page.
Please could anybody give me some Idea of how to populate data in the
tabs based on three dropdown boxes.Here tabs are individual jsp pages included on the page.
Any help is appreciated.
Thanks and regards..

<h:selectOneMenu value="#{myBean.selectedItem}">
    <f:selectItems value="#{myBean.selectItems}" />
</h:selectOneMenu>You can get the value by the selectedItem property.
Anyway, I recommended you to read some online JSF tutorials or to ask your big boss to order a book or course for you.

Similar Messages

  • JSf - Help Required Please

    HI Guys - Need all ur help here,
    a) I am trying to develop a JSF application - where i have say 2 buttons on a page - say main.jsp - one button say will do a ftp from a remote machine while the other button just refreshes the current page with some values ouputted. Now my ftp may take a lot of time depending on the connection. I have an h:outputText linked to this ftp button - which outputs result of ftp. But whats happening is as ftp is going on if i perform some other action with my second button to refresh the page - my FacesContext is lost - and i am not able to see the succes or failure of my ftp. The way i am ouputting for ftp is (FacesContext.getCurrentInstance).getViewRoot.findComponent("outputtext:message").setValue("Ftp Success......")). I am new to JSF - is there any way i can get the FacesContext for a previous request

    AJAX is perfect solution for your problem. Look at ajax4jsf [1].
    [1] https://ajax4jsf.dev.java.net

  • Problem with JSF, help me...

    Hi viewers,
    I'm having an jsf application... in that according to my reqirements i hav created a jsp like this...
    i devided the page into two frames (like left side and right side) and in left side i hav some command buttons... whenever i press that command button it displays the data in a new page but my requirement is it should display the data in the same page at right side.... plz solve this proble.... thanks in advance,,, any help is appriciated.....

    Navigational frame would help you
    http://www.w3schools.com/HTML/html_frames.asp

  • Possible memory leak in JSF � help needed

    Hi,
    We are developing a JSF application using the following:
    SUN JSF 1.1_02-b08
    Tomahawk 1.1.3
    Tomcat 5.5
    Our application includes pages with lists; these lists are held and extracted from backing beans.
    We are using these beans in request scope with <t:saveState> tag (to avoid holding the lists in the session all the time).
    We tested the application using JProbe and found out that each bean that was used in the saveState was added to the view (to the session) , each time we entered the page , and the bean was not released until the end of the session (instead of only one instance of the backing bean).
    After I found this problem, I added the following context params to the web.xml:
    com.sun.faces.NUMBER_OF_VIEWS_IN_SESSION = 1 (instead of the default 15)
    com.sun.faces.NUMBER_OF_VIEWS_IN_LOGICAL_VIEW_IN_SESSION = 1 (instead of the default 15)
    We tested the application again, and now no unnecessary instances of the beans were held in the session (in the view).
    BUT , now when we use the browser �Back� button, and returning to a page with a list, when selecting an item from the list, no action is performed (the list in the server side does not exist).
    My questions are:
    1)What is the meaning (difference) of each of the context param : NUMBER_OF_VIEWS_IN_SESSION , NUMBER_OF_VIEWS_IN_LOGICAL_VIEW_IN_SESSION
    2)What are the recommended values for these parameters, to minimize session memory, and to enable the usage of the browser �Back� button.
    Thank you all,
    Lior.

    Me too.
    Please somebody knows how can we avoid memory leak problems in JSF 1.1 ?
    Thansk in advanced

  • How To... Call An Enterprise Service From JSF - Help..

    Hi,
    I was following the PDF but when I deploy my application I'm getting a Null Pointer Exception.
         @WebServiceRef(name="EmployeeBasicData")
         EmployeeBasicDataByEmployeeQueryResponseInService service;
         EmployeeBasicDataByEmployeeQueryResponseIn employeeBasicDataByEmployeeQueryResponse_InSoapBinding = service.getEmployeeBasicDataByEmployeeQueryResponse_InSoapBinding();
    Can someone help me with that?
    Regards,
    Daniel

    Perhaps Netbeans is having troubles with the import statements in the wsdl.  OSS note 738912 describes how to combine the 3 parts of the downloaded wsdl into a single file.

  • New 2 JSF, Help me in configuring it

    Hey what all are the JAR's required for JSF?
    where can i find it.
    Does it has any site or link, where i can download?
    Thanks
    Praveen

    Hi,
    The EA4 Version of JSF is bundled in version 1.2 of the Java Web Services Developer Pack (JWSDP):
    http://java.sun.com/webservices/webservicespack.html
    If you want to separate the libs from the pack you will need following libs after you have installed Java Web Services Developer Pack:
    C:\jwsdp-1.2\jsf\lib
    (=essential jsf jar files)
    and probably
    C:\jwsdp-1.2\common\lib
    (=additional jar files needed)
    Greetings,
    Rene

  • Event handling in JSF

    Hi
    I have come across a scenario where i need to open a JSF page based on a key press event.
    scenario -
    if the user clicks on 'F1' key a Help page (a jsf help page with respect to our application) should open. its the same way windows opens help page on click of 'f1'.
    Can some body provide any direction?

    For starters:
    1) Java/JSP/JSF runs at the server machine.
    2) Java/JSP/JSF generates and produces a HTML/CSS/JS page.
    3) Server machine sends HTML/CSS/JS page to the client machine.
    4) Client retrieves HTML/CSS/JS and displays HTML/CSS and runs JS.
    So when you want to capture keys in the client side, you need to look for the solution in the HTML/CSS/JS corner. HTML is a markup language, it can't do anything for you. CSS is a styling language, it can't do anything for you. JS (Javascript) is a scripting languate which can intercept on client events, so it's the only which can be of means for you.
    Google "javascript capture function keys" or something smart like that for answers. Otherwise better try a javascript forum in the case you stucks.

  • HotKey based Web application

    I want to insert "Key Listener" to my Servlet/JSP/JSF, help....

    If you want to have a webapplication where the user can type key combinations and the application will respond, look at the accessKey attribute in HTML. You can define that on your button or link and the link will be executed on some user action like [ALT]+[S]
    Hope this helps.

  • Help me in the first JSF !

    Hi everybody ! Help me please ! I'm starting learn JSF, but in my first program have problems, I dont know, please help me ! Every config is normal, it can write message "Hello, JSF !", but when I use bean, problems appear...
    ---------------------Here my code file index.jsp-----------------------
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    </head>
    <body>
    <f:view>
         <h:form id="myform">
         <h:inputText value="#{MyStudent.name}"></h:inputText>
         <h:commandButton action="#{MyStudent.welcome}" value="Submit"></h:commandButton>
         <h:outputLabel value="#{MyStudent.msg}"></h:outputLabel>
         </h:form>
    </f:view>
    </body>
    </html>
    --------------------Here my code of bean-------------------------------
    package myhoangthanh.yahoo.com;
    public class Student {
         String name;
         String msg;
         public void setName(String name) {
              this.name = name;
         public String getName(){
              return name;
         public String getMsg() {
              return msg;
         public String welcome() {
              msg = "Welcome " + name + " to my Website !";
              return "";
    ----------------------And here my code in faces-config.xml---------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
         <managed-bean>
              <managed-bean-name>MyStudent</managed-bean-name>
              <managed-bean-class>myhoangthanh.yahoo.com.Student</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
    </faces-config>
    --------------------------I use server GlassFish 2.1, when run, I get message error : ---------------------------------
    exception
    javax.servlet.ServletException: The class 'myhoangthanh.yahoo.com.Student' does not have the property 'welcome'.
    root cause
    javax.el.PropertyNotFoundException: The class 'myhoangthanh.yahoo.com.Student' does not have the property 'welcome'.
    =========================
    Why, in my class have welcome method, and I can call it ! Right ? Please help me !

    Hi oisunngungoc ,
    i think you should return value in in your welcome method.... There are two problems/.....
    Firstly, you miss here an update-string for your next page (welcome method)
    secondly navigation rules are not well defined (faces-config)
    public String welcome() {
    msg = "Welcome " + name + " to my Website !";
    return "";
    }instead of returning nothing or empty string you can return "success"
    and in your Faces-config.xml you should have navigation like this
            <navigation-rule>
              <display-name>index.jsp</display-name>
              <from-view-id>/index.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>Success</from-outcome>
                   <to-view-id>/index.jsp</to-view-id>
              </navigation-case>rigth welcome method is as follows
    public String welcome() {
    msg = "Welcome " + name + " to my Website !";
    return "Success";
    }Regards,
    Romi

  • HELP!  I can't  filter out jsf-impl.jar

    Every jar file can be filtered out of a deployment file EXCEPT jsf-impl.jar, Why?
    JDeveloper (older) version of jsf-impl.jar is causing problem with a newer version in JBossAS 4.2.0.CR1 and consequently, throwing java.lang.ClassCastException error. I can filter out every other jar file but not jsf-impl.jar.
    If I manually remove the jsf-impl.jar from my project /WEB-INF, JDeveloper complains about the missing jsf-impl.jar when I restart it. The other alternative is to manually delete the jsf-impl.jar from my *.war file every time I re-deploy it to JBossAS. This option is very tedious in production with frequent re-deployment.
    Could someone suggest a more civilised approach to excluding jsf-impl.jar from my deployment file? I will also like to know why it is not possible to filter out jsf-impl.jar like other jars. Could this be a bug?
    Thanks for your help

    I have found the problem: For those who might be interested and in addition to the normal way filtering deployment files, you also need to uncheck the jsf-impl.jar as follows;
    1 This is in the War Deployment Profile Property
    2 Right click web project name
    3 Click the ‘War Deployment Profile Property’ option
    4 The ‘War Deployment Profile Property’ dialog open
    5 Select File Group
    6 Select Web Filter
    7 Select Contribution
    8 Select Filter
    9 Select WEB-INF
    10 Select lib
    11 Uncheck jsf-imp.jar

  • Need help in Displaying Chinese Character in JSF

    Hi. Good Morning!
    I'm having problem with displaying Chinese Characters in JSF. I've tried placing all the chinese words in the *.properties file however it doesn't work..
    The result in the browser is something like this.
    ���� ��������� ���� ��������� ���� ���������

    Hi,
    When you say that you put Chinese characters in
    *.properties files, can you be more specific? Did
    you use native2ascii to convert the files to ASCII?
    What is the character encoding setting for the JVM?
    Have you sniffed the HTTP headers? If so, what's the
    character encoding listed for the response?
    Answers to these questions should help you nail down
    the problem.
    Regards,
    PeterHi...
    I did not use any converter like native to ascii... an example of what I placed in the properties file is:
    title : &#20197;&#19979;5&#31181;&#26631;&#31614;&#30340;&#34920;&#38754;&#35201;&#27714;&#21015;&#26679;
    Request=&#26465;&#30721;&#31163;&#36793;&#26694;
    Tablehead=&#36879;&#26126;&#26631;&#31614;
    Note1= &#36879;&#26126;&#26631;&#31614;
    Note2= &#36879;&#26126;&#26631;&#31614;
    NoteA= &#21360;&#21830;&#26631;&#22270;
    then when i build the project in linux it turns out to be like this:
    title= ???
    Request=???
    Tablehead=???
    Note1= ???
    Note2= ???
    NoteA= ???
    The character encoding for JVm.. i haven't check that yet nor know how...

  • PLZ Help: how to get value of a request scoped Bean/Attribute in JSF ?!!!

    hi,
    I noticed this part of code to retrieve session scoped beans/vars in an ActionListener or other jsf classes, but it does not work for request scoped beans/vars :( what's the problem then ? what shall i do ?
    Type var = (Type)Util.getValueBinding("myBeanInRequest")).getValue(context);
    I have also set that getPhaseId() returns UPDATE_MODEL_VALUES or APPLY_REQUEST_VALUES.
    Any comment or idea ?

    I have declared my Bean in my JSP page not in the
    faces-config.xml. Does this make any problem ? Also I
    have tried the way you told me as well, but still the
    returned attribute is null.
    P.S. My bean is declared in my JSP page this way:
    <jsp:useBean id="newSurveyVar" class="SurveyModel"
    scope="request" />
    This declaration causes the SurveyModel instance to be created in request scope when the page is rendered, but that doesn't help you when the form is submitted -- that is going to happen on the next request (so the request attribute created here goes away). Basically, <jsp:useBean> is not typically going to be useful for request scope attributes (it's ok for session or application scope, though).
    and further I have this jsf code:
    <h:command_button label="Create" commandName="create"
    action="create" >
    <f:action_listener
    r type="CreateNewSurveyActionListener"/>
    </h:command_button>
    and this is my
    CreateNewSurveyActionListener.processAction(ActionEvent
    e) {
    if (actionCommand.equals("create_the_survey")) {
    FacesContext context =
    t = FacesContext.getCurrentInstance();
    SurveyModel survey =
    y =
    (SurveyModel)(Util.getValueBinding("newSurveyVar")).get
    alue(context);
    if (survey==null) // returns true :(((
    And since I've declared my beans here there is nothing
    special declared in my faces-config.xml
    For me again it is really strange why it is not
    working !!!
    Any idea ? Because the event listener is fired in a separate request, so the one you created in the page is gone.
    This is why the managed bean creation facility was created. If your component contains a valueRef that points at the bean name (or you evaluate a ValueBinding as illustrated earlier in the responses to your question), then the bean will get instantiated during the processing of the form submit.
    Craig McClanahan

  • Need help on File uploading in JSF

    Hi All,
    i have to upload some document into IBM DB2 Content Management using JSF Portlet.
    Is it possible to upload a document( in my case it is an image) using JSF Portlet into IBM DB2 Content Management? and also i need to keep the reference of the uploaded document in DB2 database.
    i need some sample code to do this.
    the tools i am using are
    RAD 6.0 as IDE
    IBM DB2 Content Managener 8.3
    IBM DB2 8.2
    its an urgent requirement please help me out in this regard

    If it's possible in Portlets i don't know, but in JSF is possible with the Tomahawk component to upload files.
    See
    www.myfaces.org
    Try it.

  • Navigation Problem in JSF - Urgent, pls help

    hi,
    I have a problem while navigating into a popup using a custom commandLink which opens the popup.The problem is that when i close the popup and return to the parent JSF and click any button or link in the parent, the page navigates to the page that was shown in the popup. This is my custom component:
    <hl:helplink id="alternateIdHelpLink" rendered="true" actionListener="#{helpBean.handleEvent}" value="Help" action="helpNeeded" target="NewWin" onclick="javascript:openPopup();"></hl:helplink>I have specified the navigation 'helpNeeded' inside the faces-config file which navigates to the page that is shown in the popup. So the problem is that i am unable to navigate to any other page after i open the popup(even after closing it).Can anyone pls find a solution for this problem.
    thanks and regards
    soorejkumar

    Thanks Sergey.Smirnov for the code..but its not working :-(...
    This is my javascript for opening the popup in my help.js file:
    function openPopup() {
        var windowDefn = "width=800, height=400, location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=yes";
        win=window.open('',"NewWin", windowDefn);
    }On clicking the Custom Command Link the popup is opened. But then when i return back to the parent and click any other link or button the contents inside the popup is being displayed.
    <hl:helplink id="alternateIdHelpLink" rendered="true"  value="Help"  onclick="openPopup()" action="#{helpBean.execute}" target="NewWin" actionListener="#{helpBean.handleEvent}" ></hl:helplink>I tried to hard code the path of the jsf file into the popup but that gave an error that 'Page Cannot be Displayed'.
    I tried to get the path of the JSF using the contectPath as follows:
    var path= <%= renderResponse.encodeURL(renderRequest.getContextPath() + "/pages/epsHelp.jsp" %>;
    window.open('"+path+"','helpPopup','height=200,width=400,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes');",null);When i viewed the source of the parent page the javascript was showing the correct context path ie "/help/pages/myjsf.jsp". What might be the issue.Can you please help..
    Thanks
    soorejkumar

  • Help required in jsf coding?

    Hello all,
    I am working on Jdeveloper 11g & JSF 1.2
    I want to be the expert on JSF(coding). The problem is that i am biggner in Core Java Coding.
    I have sufficient pdf/link about JSF.
    Anybody can please help me to guide how to start write coding on JSF(java coding). I am trying to understand the [jsf API |http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/] but Its hard for me.
    Please guide me, how to start writing simple code. send me some link also.
    --Neelmani Jaiswal                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Frank,
    I am already working on ADF 11g.
    I am frequent visitor of the link(Jdeveloper home page) which you sent me. I am writing codes(small) for managed bean to handle ApplicationModule, ViewObject etc.
    But facing problem when i need to write complex codes.
    My objective is to improve myself in Java Coding. I am expecting some help.
    --Neelmani Jaiswal                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • TS3999 can't see times of my icloud calendar events when using month view...

    I use a macbook pro and like to view my icloud calendar using month view so I can see the whole month at a glance. It used to be that when I viewed my calendar using Google Chrome, the time of each event would show next to the event name. Recently, t

  • Authorization problems after upgrade

    After upgrading to the new version of iTunes, I was prompted to reauthorize my pc. It will not accept my old aol screename and password (no longer with aol), and when I created a new screename with apple, it did not copy 410 songs over. So I'm stuck.

  • Yellow Boxes around type in normal view mode but not in preview?

    There are these yellow boxes that appear around type when in normal view mode, but when in preview mode it disappears.....any idea of what I can do to alleviate this issue? Here is an image of the problem....  

  • Middleware starts replicating before initial load

    Hi folks, currently i´m setting up the middleware to connect a live ERP with a fresh CRM. The initial load is not done yet, also a lot other configuration stuff. I noticed that at the time of registering the queues the middleware is connecting itself

  • Weekly response time of workproces

    hi 1.how to check weekly  response time of a particular work process? 2. does abap program which is usually developed by our abapers is client specific or cross client?