How to achieve below case using JSF page

Hi
I have Created a View Object on DEPT table and I have created a "selectOneChoice" to display only deptno column values.
When user selects deptno from "selectOneChoice" I need to refresh the JSF page by displaying selected department details.
How Can do this. I am new to JSF. Anybody let me know steps how to do this.
Regards
Kiran Akkiraju

You use the setWhereClause method on your view object:
http://download.oracle.com/docs/html/B25947_01/appendix_mostcommon002.htm#sm0406
One other approach to create the screen would be to have a VO with a built in where clause that uses a bind variable - then you drag this as a parameter form and then as a result table.
See:
http://www.oracle.com/technology/products/jdev/tips/muench/screencasts/threesearchpages/threesearchforms_partthree.html?_template=/ocom/technology/content/print

Similar Messages

  • How to achieve SUBMIT for the current page when I click other tab?

    Problem: How to achieve SUBMIT for the current page when I click other tab?
    Description: I have a two-page application and each page associates with a tab. Say page1 associates tab1 and page2 associates tab2. In each page, I have a submit button, a after submit process associated to the submit button, and a tabular form. For page1, I fill out the fields and hit the button. The page1 will appear again and I can see the data I have insert. However, If I fill out the fields and click the tab2 (page 2) instead. when I come back to page1, the data I filled out are all gone. Is there any way in HTML DB to force the submit in the current page after you click other page. If use JavaScript, what is code looks like.
    Appreciate your time and your answer.
    Mike

    Scott,
    just for clarity, if I understood correctly what you said there are two possibilities:
    1) keep the standard tab branch and give up the possibility of validating page items. Below you can find an example of such cases.
    2) Replace the template substitution string and perform a "custom" button-like submit also adding a branch to the main page associated with the tab. Page items will be validated if the branch firing point is set after the validations.
    I couldn't find an example of the latter, but I found easily an example of the former:
    it's the "Report attributes", page 420 of app 4000.
    If you enter 'aaa' in the "Number of rows" form field and then you press "apply changes", htmldb correctly displays an inline error message saying that the value must be numeric. On the contrary, if you click on the "Region Definition" tab, htmldb takes you to a page showing an oracle exception:
    ORA-20001: Error in DML: p_rowid=4785927011172906402, p_alt_rowid=ID, p_rowid2=, p_alt_rowid2=. ORA-20001: Invalid numeric value aaa for column PLUG_QUERY_NUM_ROWS
    Bye,
    Flavio

  • How to set unequal columns using master pages in InDesign CS3?

    How to set unequal columns using master pages in InDesign CS3?

    I don't have CS3 anymore but I don't think this has substantially changed in the last few versions of InDesign.
    Choose View > Grids & Guides > uncheck Lock Column Guides. Then drag the column guides to the position you want.

  • How-to get attributes from one JSF page redirected to another?

    How do I send information from one JSF page when the navigation rule redirects it to another?
    When JSF navigation does a forward I can use request.setAttribute() in the from-page and then use request.getAttribute() in the to-page, but this doesn't work with <redirect/>.
    Regards,
    Al Malin

    The process scope in ADF Faces solves this. See:
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.adffacesguide%7Cdevguide%7CcommunicatingBetweenPages%7Ehtml/

  • How to include taglib in a JSF page?

    Hi,
    How can I include a taglib in a JSF page? I tried the following:
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>but I get an error as:
    Invalid character used in text string ( <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> ).
    Please help!!
    Thanks.

    Hello Prasant,
    I think page fragments is what your after, one of the Sun guys did a good blog on page layout with jspf but i can't access the weblogs, but you could try this tutorial in the meantime:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/pagefragments.html
    Then search the weblogs when its available. i hope this helps
    Cheers
    Gaz

  • How to set bean property in jsf page

    Hi,
    Hopefully theres an easy solution, but I can't figure it out...
    I have a managed bean that spans several jsf pages.
    Within each page I want to set a flag that tells the bean which page it is serving (as well as some other params).
    How do I set a property of the bean in the page?
    I've tried
    <jsp:useBean id="filter3" scope="request" class="com.aol.rsistats.ui.FilterBean"/>
    <jsp:setProperty name="filter3" property="filterType" value="3"/>
    but that doesn't load the page through the normal JSF routine (and I initialise some values of the bean in the faces-config.xml file... so these are not initialiased when the setProperty is called) .
    (In general I get some strange behaviour when I mix jsf tags with jsp, or jstl, so I've avoided it as much as possilble)
    Is there another way?
    Cheers,
    Keith

    This example works for me (using jsf-1_1_01).
    Index.jsf:
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ page language="java" %>
    <%-- jakarta-taglibs-standard-1.0 --%>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%--
    Note, that with jakarta-taglibs-standard-1.1.1 taglib directive
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    the example NOT works!!!
    --%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <html>
    <head>
    <title>MyTitle</title>
    </head>
    <body>
    <f:view>
    <%--
    Do not delete the following lines! You need to address to WIManager before using c:set.
    --%>
    <!--
    <h:outputText value="#{WIManager != null}"/>
    -->
    <c:set target="${requestScope.WIManager}" property="bpId" value="bpIdValue"/>
    <h:form id="MyWebFormTask" >
    <h:commandButton id="ok" action="ok" value="Ok"/>
    <h:inputHidden id="bpId" value="#{WIManager.bpId}"/>
    </h:form>
    </f:view>
    </body>
    </html>
    ok.jsf:
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ page language="java" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <html>
    <head>
    <title>MyTitle</title>
    </head>
    <body>
    <f:view>
    WIManager.bpId: {<h:outputText value="#{WIManager.bpId}"/>}<br>
    </f:view>
    </body>
    </html>
    In ok.jsf I can see WIManager.bpId property set in Index.jsf.
    faces-config.xml:
    <managed-bean>
    <managed-bean-name>WIManager</managed-bean-name>
    <managed-bean-class>my.package.WIManagerBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bpId</property-name>
    <property-class>java.lang.String</property-class>
    <value>#{param.wim_bpid}</value>
    </managed-property>
    </managed-bean>
    Resume:
    -- use <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    instead of <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    -- address to WIManager before using c:set.

  • How to remove infopath ribbon using Master Page?

    Hi All,
    I would like to remove infopath ribbon using Master Page, using f12 removed like "<div id="s4-ribbonrow"
    class="s4-pr s4-ribbonrowhidetitle" style="display:none">". But how to perform in original master page? Thanks in advance!

    Hi,
    Based on your description, my understanding is that you want to remove InfoPath ribbon using Master Page.
    using F12 to find the <div id=”RibbonWrapper”> section:
    Navigate to :C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\ FormServer.aspx. Add the following CSS into <head runat="server"></head>section:<style type="text/css">
    #RibbonWrapper
    display: none !important;
    </style>
    Best Regards,Lisa Chen
    Lisa Chen
    TechNet Community Support

  • ASE 15.7 how to find data entry using table page nr

    Hi,
    I am looking for a dbcc () to get data when I know page number from a table
    Thank you

    Hi Isabella,
    What your asking is not supported by SAP .. although you can achieve the result by using dbcc page:
    http://wiki.scn.sap.com/wiki/display/SYBASE/DBCC+page
    The only problem is that the data is in binary format so you have to format it by yourself to a readable format.
    Regards,
    Adam

  • How to connect oracle database using jsf

    how to connect oracle database using javaserver faces with connection pooling

    Here is one way...
    http://jakarta.apache.org/commons/dbcp/

  • How to implement this interface using jsf

    This problem's been bothering me for serval days.
    Just a simple question, how to render the following case purely by JSF?
    http://www.hcj-sh.com/temp/case.gif
    case 1.
    It includes 2 radio button2, these 2 radios are in virtual layout, this is not different,
    but I need attach other items(such as input text filed, select menu... etc) after each
    radio button,,,,,
    case 2.
    5 raidos, 3 one the first row, and the others 2 on the second row....
    I had sleep on it for a long time, but still no answer...
    anyone can help me?
    Thanks a lot.

    I am not sure what you mean by case.? do you want to
    insert other components between the radio buttons ? in
    that case why don't you make them as two separate
    lists ?yes, I want to insert other components between the 2 radio buttons.
    the 2 raido buttons are in the same group, check one will auto uncheck another,
    so i think two spearate lists is not fit my require.
    For case 2, try using two SelectItemGroups, one for
    each set of radio buttons and see if that gives you
    the layout you want.SelectitemGroups? i donot found this tag in JSF, can you tell me more about it
    Thanks.
    David

  • How to display arraylist list on jsf page

    Hii all,
    i am having an jspx page where i want to display the value coming from a bean class getter..
    the getter is returning an Arrarylist of list
    and i want to display the entire array list on the jspx page when it gets loaded.
    The method is :-
    public ArrayList<List> getMyList() {
    myList=getDocumentProperties();
    return myList;
    How to iterate the entire list on jsf..??
    any idea..!!
    Thanks

    You can use <af:forEach> or <af:iterator> in an ADF Faces page to iterate over the items returned by the bean's getMyList() method:
    <af:forEach var="prop" items="#{MyBean.myList}">
      <af:outputText value="#{prop}"/>
    </af:forEach>If you want to iterate over the inner lists, then use a nested iterator:
    <af:forEach var="prop" items="#{MyBean.myList}">
      <af:forEach var="item" items="#{prop}">
        <af:outputText value="#{item}"/>
      </af:forEach>
    </af:forEach>Dimitar

  • How to Hide JBO Exceptions in JSF Pages in ADF 10g

    Hi All,
    How to hide the JBO Exceptions in ADF 10g, for example JBO-27122: SQL error during statement preparation. I have been used the same customizing error handler which was specified in bcadfdevguide. But the method reportexception which will call disableappendcodes is not doing anything in my case.
    I want to show some decent errors instead of JBO errors to the user, appreciate if you help me on this.
    thank you.

    Hi Jobinesh,
    Thanks for the reply, actually i am looking to show the user our own customized error instead of JBO errors, i don't know whether the method skipexception will skip it or i can override it to show customized exceptions. and registering the customerrorhandler in databindings is different from registering the customphaselistener class in faces-config.xml which was usually done in 10g.
    But in my case, even though i followed everything what was specified in dev guide, i am not getting the result. Hence this post in forums :)
    Thanks.

  • How to create search engine in JSF page with AJAX

    I want to create Java Server Faces page with search engine using AJAX. I'm interested can I do this with PL/SQL statement which searches strings into all Oracle tables at database level? What are the best practices in this case?

    user10484841 wrote:
    I want to create Java Server Faces page with search engine using AJAX.
    I'm interested can I do this with PL/SQL statement which searches strings into all Oracle tables at database level? I give up.
    Can you?
    What are the best practices in this case?Best practice is to know where data is stored to avoid search of all Oracle tables.

  • How to achieve this effect using Adobe Photoshop Touch?

    Hi,
    I'm new to photoshop of all kinds, as you'll soon learn, so I struggle to work out what effect(s), if any, certain images I find online have. At the moment I am trying to work out what effect(s) the images on the below links have, can anyone help? I assume they are the same effects on different images.
    https://pbs.twimg.com/media/B6h7rb_IEAAXR3a.png
    https://pbs.twimg.com/media/B6ipKsDIUAAmMOU.png
    https://pbs.twimg.com/media/B6iRV_XCIAAcHM6.png
    https://pbs.twimg.com/media/B6iQBbWCMAAlCD2.png
    https://pbs.twimg.com/media/B6iOePUCIAAy7tV.png
    Thanks in advance!

    Are you asking about the gradient mask towards the bottom of the images?
    You can try inserting a new layer then use More (looks like an ampersand or "&"; it's the 2nd icon from the upper right) > Gradient. Use a linear gradient. Tap and drag the gradient to where you want it. Tap and drag the end handles on the gradient to adjust where you want the gradient to begin and end.
    Tap the palette icon to change colors, opacity and add/subtract stops.

  • How to achieve this by using flex feild

    Hi, I am using financial tax register report in r12 etax module
    when am entering parameters,
    I have one flex feild for jurisdiction, based on this value two parameters are enabling, if I enter this value this is getting enabled and getting corresponding values,
    If I don't enter this I want all values to be displayed,
    and I have below code snippet in my form
    where jurisdiction_Code=nvl(:$flex$.jurisdiction,table_jurisdiction)
    but it is not happening,
    Your help is appreciated,
    Thanks in advance

    but my requirement is not give a static value there right?
    my requirement is
    where jurisdiction_Code=nvl(:$flex$.jurisdiction,jurisdiction_Code)
    should be worked. and if it is null corresponding parameters should get enabled.

Maybe you are looking for

  • Satelite and Linksys

    I see in the FAQ that Linksys routers do not work with satelite connections, yet I see questions with answers on the forum regarding satelite connections indicating it IS possible...so wanted to double-check before I made a purchase. I have HughesNet

  • HDTV to 3d

    is it possible to have my Vizio 42" HDTV project 3d images through an emitter or someting? Solved! Go to Solution.

  • Blurred web page prints wireless printing

    All of a sudden my Deskjet F4580 is printing blurry web pages. Documents from my laptop print clearly, but not web pages or e-mails. Any suggestions? I have already unplugged and restarted my printer. And restarted my laptop as well. I did the cleani

  • Skype api with google spreadsheets

    Hello, I want  to integrate skype call from my google spreadsheets, by clicking on the phone number which I have already saved in the sheet. Any body can say how I integrate this. waiting for your response. Arka

  • If i buy lightroom 5 am i able to wait for instant lightroom 8

    without installing lightroom updated version 6 and 7 or would i have to buy the updates  to continue to and get lightroom 8