LOVS in JSP - No Combo

Is it possible to create a LOV opening a "search window" in wich the user can search and select the value he wants and have back the value in the main form ?
Any suggestion will be appreciated.
TIA
Tullio

Here is a sample page that shows usage of the datags. It shows various input tags including LOV:
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<jbo:ApplicationModule configname="OnlineOrders.OnlineOrdersModule.LocalConfig" id="OnlineOrdersModule" username="bc4j" password="bc4j" />
<jbo:DataSource id="Orders" appid="OnlineOrdersModule" viewobject="OrdView" ></jbo:DataSource>
<jbo:DataSource id="customers" appid="OnlineOrdersModule" viewobject="CustomerView" ></jbo:DataSource>
<jbo:RowsetNavigate datasource="Orders" action="First" />
<form name="form1">
Order Id:<jbo:InputText datasource="Orders" dataitem="Id" /><br>
Order Date:<jbo:InputDate datasource="Orders" dataitem="Orderdate" formname="form1" /><br>
Customer Name:<jbo:InputSelect datasource="Orders" dataitem="CustomerId" displaydatasource="customers" displaydataitem="Lastname" displayvaluedataitem="Id" /><br>
Customer Name:<jbo:InputSelect multiple="yes" datasource="Orders" dataitem="Id" displaydatasource="customers" displaydataitem="Lastname" displayvaluedataitem="Id" /><br>
<hr>
<jbo:InputSelectLOV datasource="Orders" dataitem="Contactname" displaydatasource="customers" displaydataitem="Lastname" displayvaluedataitem="Id" formname="form1" /><br>
<jbo:InputSelectGroup multiple="yes" datasource="Orders" dataitem="Id" displaydatasource="customers" displaydataitem="Email" displayvaluedataitem="Id" /><br>
<jbo:InputSelectGroup datasource="Orders" dataitem="Id" displaydatasource="customers" displaydataitem="Email" displayvaluedataitem="Id" /><br>
</form>
</BODY>
</HTML>
<jbo:ReleasePageResources releasemode="Stateless" />
null

Similar Messages

  • On click of lov new jsp page which has only text area for adding comment

    hi all ,
    please help me to do this task. on click of lov new jsp page should be opend which has only text area for adding comment and upon clicking submit on the jsp page the value entered on the textarea should fall on the text field of lov.
    with regards
    prabhakaran.p

    The only reason I see for such a requirement is "Notes" require more space for entering a detailed note and would be inconvenient to write it in small single-line text input box. But, still in this case, getting the entered text back to the page and displaying it will have the same inconvenience of reading it from that field. And, I still think that removing one amongst the two (text field or image link) would be good, design wise.
    Anyway, did u try the following:
    1. Add a flow layout to the table bean
    2. Add text input and image item to the flow layout.
    3. Attach the notes page as the destination uri for the image.
    Did u start the working on it, let us know how far did u reach so that we can guide you through from that point.

  • Create LOVS in jsp with ViewObjects

    Hello,
    I want to create a jsp-page containing two LOV's (html-<selects>). The first LOV is based on a VO named COUNTRIES. The second LOV is based on a VO named COMPANIES. There's a View Link between the two VO's.
    I am using the BC4j-Tags from the Component Palette. What I have to do to synchronize the both LOV's. For example, if I select a country, only specific companies have to appear in the COMPANY LOV.
    Thanks for your help.
    Peter

    Within jsp pages it is not possible to have the comboboxes dynamically updated without intervention to either refresh the page with the new data or use java script.
    I had a similar problem which i resolved with java script :
    Interactive combo boxes on jsp
    Have a look at this thread for more info.

  • Dependant lovs in jsp with mysql data

    hi to all.
    here is my doubt
    How to create dependant dynamic list of values in jsp where the data comes from mysql tables.(I mean i am storing all the details in mysql tables using foreign keys etc..).
    Ex.:country--->state--->district--->city--->
    we will be having this in most of the sites in general.
    Hope u got what i am looking for
    Expecting a very quick and excellent answer.
    thank you

    Within jsp pages it is not possible to have the comboboxes dynamically updated without intervention to either refresh the page with the new data or use java script.
    I had a similar problem which i resolved with java script :
    Interactive combo boxes on jsp
    Have a look at this thread for more info.

  • LOV's in form combo box - how to change font size?

    Greetings:
    I've a table generated form (custom vs. tabular), with a combo-box field that fills with a LOV's that has as it's visible data, a rather long concatenated string. Therefore, this field makes the entire form rather wide when the LOV's contains a long string (as returned from the SQL that gathers the data).
    I've tried using the FONT tag in the 2nd tab (Form wizard) for custom layouts; that didn't work.
    Anyone have ideas for decreasing the font size of the LOV's? Else, I'll have to leave-out some of the info concatenated on that string.
    As always, thanks for you continued guidance and support...
    Ed in Tampa

    Hi,
    Changing the font size and other properties like font color, width, height, etc.. of the form elements can be achieved by using Cascading Style Sheet (CSS).
    It cannot be changed using <FONT> tag.
    In Portal, one can add the CSS attribute to the HTML tags in the custom layout of the form. But adding the CSS attribute to FORM elements (Input, select..)is not possible through Form wizards.
    However, this can be achieved by creating a form through the Dynamic Page. In this case you have to define your whole form.
    To know more about CSS you can visit: http://www.mako4css.com
    Thanks,
    Shivank

  • Performance issue on LOV in JSP

    Hi,
    In my JSP application, I used two LOV for look up. One of them will show about 3,000 and so records. When I clicked the LOV button for this LOV, it took me more than 20 seconds to see the result. This is unacceptable. Is there anyone know how I can tune the BC4J framework to improve performance? Your any input will be highly appreciated.
    Rick
    null

    On many projects I've worked on, including non-JDev, a general user interface rule was that you don't use an LOV if there's much more than 20-30 items. Think of this from a USER standpoint.
    Note also that in Swing/DACF the combobox does NOT allow you to type the letters "starting" and automatically jump to the right place.. ( i.e. Enter WI in a state list doesn't take you to WISCONSIN ). This is a Sun JDK issue. ( Or has it changed in 1.3 in some manner... or is there a property set to allow this? )
    As such, you've more a application design issue than a performance issue.
    Good Luck
    null

  • Combo box in jsp : implemented by struts tiles

    Hi,
    I have few problems with JSP...
    we have devided the body part in the tiles into two parts
    initially..................
    body1: jsp with combo box
    body2: a blank jsp
    if the user selects an option from the combo box..in onchange function ..iam getting the value of the selected option..and iam doing form.action="action selected by user" ... so that it will go the struts-config then inturn will call the action then by forwarding success..will go to the struts-config file again ..then by have name="seccess".. it will call path="somedefinition"....this definition is defined in the tiles-definition file...
    where again...extending some standard definition by overriding ..
    body1:jsp with combo box
    body2:jsp related to the selected option..in the combo box
    second time.. in body1: again we r calling original jsp na..it will show default select only na??
    so how to get the selected option and how i can give that option as selected when it is loading second time.
    Hope you got my problem...
    Please help me out...
    Waiting for ur kind reply
    Thanks & Regards
    Kranti Kiran Kumar Parisa
    Software Engineer [ e-Biz ]
    [email protected]

    It's not nice to highjack someone elses thread. I posted a reply http://forum.java.sun.com/thread.jsp?forum=45&thread=552915 (though I shouldn't have, shoulda done it here). if you have questions post them to this thread instead. Leave the other one to the OP's question.

  • Pictures are not displaying in jsp page

    hi everyone,
    i want to display background images in my jsp page
    also some other images which are not background images
    plz tell me the way that enables me to place images in my jsp page
    thanx

    <body background="pic/love.gif">
    <%
    --- jsp code
    out.println("<img src='pic/vijay.jpg' height='100' width='100'>");
    --- jsp code
    %>
    </body>

  • Greek language not displaying in jsp page

    My application is based on struts framework...
    we doing in multilanguage.
    When i select greek the followingis displayed:
    �������&#132;�&#131;���&#133;���� ���&#128;�����&#137; �&#131;�&#132;��
    even i've did the pageEncoding code in jsp page...
    i dont know why it is not displaying but i maintaining properties files for greek language. so, when i call the greek language, the greek properties file was located and display the content... But for other languages like dutch, portuguese, spanish is working fine...I keep the resource properties file in the same place where other language files placed.
    Is there any more changes i want to do...
    I call this greek lang. externally but should this related to database(SQL Server 2000).
    What i want to do.

    <body background="pic/love.gif">
    <%
    --- jsp code
    out.println("<img src='pic/vijay.jpg' height='100' width='100'>");
    --- jsp code
    %>
    </body>

  • Combo Box in Portal Form resets after query

    Hello all,
    I have a portal form based on Stored Procedure. In it I have a Location combo box and Query button in addition to few text items. Users can select location from the drop down list and hit Query button to view the values in for the text items. The query part is working fine. But after query the Location resets to Null (as the LOV which feeds the combo box can have Null). We would like to keep the location they chose to query up even after the query results. Any help is appreciated.
    The Location item is in the parameters of the Stored Procedure. Initially it was IN, later I changed to IN OUT but there is no change in functionality.
    I also removed the ability to accept NULL for the LOV which feeds Location Combo box but now it is displaying the first location on the list after the query, which is even worse.
    Thanks in advance,
    Manohar

    You're catching Exceptions in empty catch() blocks. There might have been an exception, but you won't know if the catch block doesn't do anything.
    Try something like this:
    catch(SQLException e){
        System.err.println( "Problem with db query"+e.getMessage() );
        e.printStackTrace( System.err );
    }in order to see what's going wrong with your code.

  • Dependent LOV works but Master LOV displays incorrectly

    Hi,
    I have a form with two Combo-boxes.
    A Master Combo-box called category, and a Dependent Combo-box called Sub Category.
    I have the bind variable set up correctly in the LOV, and the dependent Combo-box is tied to the Master Combo-box in my form.
    The form updates properly when I select my 'Category' Combo-box displaying the 'Sub Category' Combo-box with good values.
    The problem I've run into is that the 'Category' Combo-box does not display my originally selected item after the page refreshes.
    For example...
    My Category Combo-box contains...
    Item1
    Item2
    Item3
    Item4
    When I select Item3, my Sub-Category
    displays properly...
    Item3_Sub1
    Item3_Sub2
    Item3_Sub3
    etc.
    ...but the Category now displays Item1, and
    not the selected Item3.
    My Portal Version is 3.0.9.8.0 on Linux
    Has anyone seen this bug before?

    I am having a simlar issue, but did not see any responses that fix the problem.
    When I select my Master combo-box, the form refreshes, the dependent combo-box gets populated correctly, but the master combo box gets reset to the default (NULL) value.
    The problem is that the resulting query does not work because it is based on the combination of Master and Detail values, where Master=NULL is not valid.
    Does anyone know how to force the Master combo box to display the originally-selected value?

  • How to animate a combo box?

    I have a combo box that get's populated from a web service.
    This may happen in the background as the user is doing other tasks.
    I would like the combo box to jiggle or bounce up and down
    when it receives it's data. Can anyone offer some insights into how
    to do this?

    Thanks for the suggestions all. I found the rotate effect to
    work just great. Here is the code I used for anyone else that's
    interested:
    In my web service call that updates the combo box, I declare
    the jiggle function on the result:
    <mx:operation name="getControlsProjects"
    resultFormat="object" result="jiggleComboBox()">
    public function jiggleComboBox() : void
    cbxProjects.visible=true;
    jiggleStart.play();
    ]]>
    </mx:Script>
    <mx:Rotate id="jiggleStart" target="{cbxProjects}"
    angleTo="3" effectEnd="jiggleEnd.play()" duration="100"
    repeatCount="10"/>
    <mx:Rotate id="jiggleEnd" target="{cbxProjects}"
    angleTo="-3" effectEnd="jiggleReset.play()" duration="100"/>
    <mx:Rotate id="jiggleReset" target="{cbxProjects}"
    angleTo="0"/>
    I love to watch that combo box jiggle up and down. LOL
    Thanks again all!

  • LOV in Filter ??

    Jdeveloper Version is - 11.1.1.4.0
    How can I have an LOV in a filter facet. I know the solution for putting a Choice list. But here what i require is an LOV with an editable combo box option
    Edited by: 966247 on Oct 18, 2012 10:10 PM

    Thank you for the reply. The solution is
    Drag and drop <af:inputComboBoxListOfValues> into the filter facet.
    Set value = "#{vs.filtercriteria.Colum}"
    Now go to bindings and add listofvalues binding. Select the base data source, Base Data Source Attribute and serverList Binding Name
    set model property of <af:inputComboBoxListOfValues> "{bindings.LovField.listOfValuesModel}"
    Save and Run

  • Java(jsp) problem....of combobox event

    hai here jai.....
    i m doing a project in jsp with backend postgresql.......
    my problem is.....i hv a combobox where i display department code from database....i hv done this.....now when i select a dept code in the combobox,then there is a textbox on the same page where corresponding ddo code of that dept code will be displayed from the database.....and the dept code and ddo code are 4m the same table of the database.....i can't do this......please help....give me the code in jsp......

    Try with the code below...I just implemented teh logic.You have to modify the code accoring to your need...............lemme know if it works or not...........
    <html>
    <head><script>
    function subit(){
    document.combo_chk.action='firstpage.jsp?combo='+document.combo_chk.combo.value;
    //alert(document.combo_chk.action);
    document.combo_chk.submit();
    function selit(){
    //alert(document.getElementById('<%=request.getParameter("combo")%>').value);
    document.getElementById('<%=request.getParameter("combo")%>').selected='true'
    </script>
    </head><%if(request.getParameter("combo")!=null){%>
    <body onload="selit()">
    <%}else{%>
    <body>
    <%}%>
    <form name="combo_chk" method="post" action="secondpage">
    <%
    String value="";
    if(request.getParameter("combo")!=null){
    //your code will go here..
    //dummy value for test
    value="edu1,edu2...................";
    //End dummy value for test
    }%>
    <select name="combo" onchange="subit()">
    <option value="home" id="home">HOME</option>
    <option value="education" id="education">EDUCATION</option>
    </select>
    empid<input type="text" name="empid" value="<%=value%>">
    </form>
    </body>
    <html>

  • Cannot find bean: "bean name" in any scope???? plsssssssssss  Urgent!

    Hi!
    I have a jsp with Combo boxes, when i select a value of one combo box
    OnChnage of it the 2nd combo box gets its value dynamically from the
    database..
    Here is my JSP..............................
    <script language="JavaScript">
    function ELMORG_MNEMONIC1Changed() {
    var frm = document.RetrieveReportDynaForm;
         frm.actionType.value = "1";
         frm.submit();
    function ELMORG_MNEMONIC2Changed(){
         var frm = document.RetrieveReportDynaForm;
         frm.actionType.value = "2";
         frm.submit();
    function ELMORG_MNEMONIC3Changed(){
         var frm = document.RetrieveReportDynaForm;
         frm.actionType.value = "3";
         frm.submit();
    </script>
    </head>
    <body>
    <table>
    <html:form action="/RetrieveReport.do" styleId="RetrieveReportDynaForm">
    <input type="hidden" name="actionType" value="">
    <table cellspacing=0 cellpadding=2 border=0 class="table_data" id="TABLE1" >
         <tr>
                        <td height="20px" colspan="5" class="table_top_td">Telecom DashBoard</td>
              </tr>
    <tr >     
         <tr class="table_data">
                   <td width="90px"></td>
                        <td class="smalltext" width="75px" align="right"><b>Organizational Element1</b></td>
                        <td>
                        <html:select property="ELMORG_MNEMONIC1" styleClass="mediumtext" style="width:120px; height:30px" onchange="ELMORG_MNEMONIC1Changed()">
                        <html:option value="">Select</html:option>
                        <html:optionsCollection name="reportlist" label="ELMORG_MNEMONIC1" value="ELMORG_MNEMONIC1"/>
                        </html:select>
                   </td>
         </tr>
    <tr class="table_data">
                   <td width="90px"></td>
                        <td class="smalltext" width="75px" align="right"><b>Organizational Element2</b></td>
                        <td>
                        <html:select property="ELMORG_MNEMONIC2" styleClass="mediumtext" style="width:120px; height:30px" onchange="ELMORG_MNEMONIC2Changed()">
                        <html:optionsCollection name="mnemonic1" label="ELMORG_MNEMONIC2" value="ELMORG_MNEMONIC2"/>
                        </html:select>
                   </td>
         </tr>     
         <tr class="table_data">
                   <td width="90px"></td>
                        <td class="smalltext" width="75px" align="right"><b>Organizational Element3</b></td>
                        <td>
                        <html:select property="ELMORG_MNEMONIC3" styleClass="mediumtext" style="width:120px; height:30px" onchange="ELMORG_MNEMONIC3Changed()">
                        <html:optionsCollection name="mnemonic2" label="ELMORG_MNEMONIC3" value="ELMORG_MNEMONIC3"/>
                        </html:select>
                   </td>
         </tr>
         <tr class="table_data">
                   <td width="90px"></td>
                        <td class="smalltext" width="75px" align="right"><b>Organizational Element4</b></td>
                        <td>
                        <html:select property="RC_MNEMONIC" styleClass="mediumtext" style="width:120px; height:30px" onchange="RC_MNEMONICChanged()">
                        <html:optionsCollection name="mnemonic3" label="RC_MNEMONIC" value="RC_MNEMONIC"/>
                        </html:select>
                   </td>
         </tr>
         <tr>
                   <td></td>
                   <td><html:submit/></td>
         </tr>
    </table>
    </html:form>          
    </body>
    </html:html>
    I am getting a error....
    javax.servlet.jsp.JspException: Cannot find bean: "mnemonic2" in any scope
         at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:935)
         at org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:173)
         at org.apache.jsp.jsp.reportParameter_jsp._jspx_meth_html_optionsCollection_2(reportParameter_jsp.java:469)
         at org.apache.jsp.jsp.reportParameter_jsp._jspx_meth_html_select_2(reportParameter_jsp.java:438)
         at org.apache.jsp.jsp.reportParameter_jsp._jspx_meth_html_form_0(reportParameter_jsp.java:210)
         at org.apache.jsp.jsp.reportParameter_jsp._jspService(reportParameter_jsp.java:130)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    when i execute this page..
    I am using struts action where i am setting the "mnemonic2" variable in a session....................................
         if ("2".equals(actionType)){
              String MNEMONIC1 = request.getParameter("ELMORG_MNEMONIC1");
              String MNEMONIC2 = request.getParameter("ELMORG_MNEMONIC2");
              if(MNEMONIC2==""){
                   request.getSession().removeAttribute("mnemonic2");
                   }else{
                        ArrayList reportParam1 = (ArrayList)this.reportService.getELMORG_MNEMONIC3(MNEMONIC1,MNEMONIC2);
                        System.out.println("The arraysize in the Action class2 is"+reportParam1.size());
                        request.getSession().setAttribute("mnemonic2", reportParam1);
    Can any one pls tell me why m i getting this error???

    hi enoch!
    yeah definitely...
    <action path="/FourthAction" name="RetrieveReportDynaForm"
                   type="org.springframework.web.struts.DelegatingActionProxy" >
                   <forward name="success" path="/jsp/reportParameter.jsp"></forward>
                   <forward name="failure" path="/jsp/reportParameter.jsp"></forward>
              </action>
    <form-bean name="RetrieveReportDynaForm"
                   type="org.apache.struts.validator.DynaValidatorForm">
                   <form-property name="GRP_MNEMONIC" type="java.lang.String"
                        initial="" />
                   <form-property name="POL_MNEMONIC" type="java.lang.String"
                        initial="" />
                   <form-property name="GRP_MNEMONIC1" type="java.lang.String"
                        initial="" />
                   <form-property name="ELMORG_MNEMONIC1" type="java.lang.String"
                        initial="" />
                   <form-property name="GRP_MNEMONIC2" type="java.lang.String"
                        initial="" />
                   <form-property name="ELMORG_MNEMONIC2" type="java.lang.String"
                        initial="" />
                   <form-property name="GRP_MNEMONIC3" type="java.lang.String"
                        initial="" />
                   <form-property name="ELMORG_MNEMONIC3" type="java.lang.String"
                        initial="" />
                   <form-property name="GRP_MNEMONIC4" type="java.lang.String"
                        initial="" />
                   <form-property name="ELMORG_MNEMONIC4" type="java.lang.String"
                        initial="" />
                   <form-property name="GRP_MNEMONIC5" type="java.lang.String"
                        initial="" />
                   <form-property name="ELMORG_MNEMONIC5" type="java.lang.String"
                        initial="" />
                   <form-property name="GRP_MNEMONIC6" type="java.lang.String"
                        initial="" />
                   <form-property name="RC_MNEMONIC" type="java.lang.String"
                        initial="" />
                   <form-property name="RC_LABEL" type="java.lang.String"
                        initial="" />
                   <form-property name="RC_MANAGER" type="java.lang.String"
                        initial="" />
                   <form-property name="RC_CODE" type="java.lang.String"
                        initial="" />
                   <form-property name="RC_MANAGER_EMAIL" type="java.lang.String"
                        initial="" />
                   <form-property name="actionType" type="java.lang.String"
                        initial="" />
              </form-bean>

Maybe you are looking for

  • How to configure windows services alerts in SCOM 2012 for all agent servers. For eg, Terminal Services, Netlogon, RPC etc..

    Hi, I need to configure different windows services alerts in SCOM 2012. Below are some of the windows services I need to monitor through SCOM. Serivce: Windows Management Instrumentation Service: Netlogon Service: Remote Procedure Call (RPC) Service:

  • Outlook 2007 won't start with 10.1.3 installed

    Hi, I'm trying to a do a fresh install of 10.1.3 on a windows XP machine that is running outlook 2007. The install goes ok but when I start Outlook I get the following error "Cannot start Microsoft Office Outlook. Cannot open the Outlook window. The

  • IMac G5 Replaced Failed HD - will not boot.

    Hello, I have an iMac G5 Model A1076 on which the Hard Drive was failing. I thought I would be able to save the data by transferring it to a new hard drive (literally as the old one died) but it seems perhaps the transfer did not complete before the

  • Apache mod_wl_20.so - Win2K

    Dear All, Can somebody please send me the apache mod_wl_20.so as I could not find it nowhere, the link on the bea support site point to nothing. I will appreciate really. Thx, Saiful

  • IP Address

    When I open Safari, the IP address for my WIFI is incorrect. Network Diagnostics say the connection is fine but Safari says no internet connection. I have to turn the WIFI connection off then back on to get the correct IP address. Why doesn't the Mac