Bind vars and LOVs on same JSP -incompatible?

I have managed to get a project working using bind variables, and another project working that has LOV. (Both using ADF,struts,JSP)
However, when I try and use bind variables for one attribute and an LOV for a different attribute on the same JSP I get the error msg:
No getter method available for property x for bean name org.apache.struts.taglib.html.BEAN
at org.apache.struts.taglib.SelectTag.calculateMathcValues(SelectTag.java:327)
Is it not possible to have bind vars and LOVs on the same page or have I just messed sthg up?(more likely...) Seems weird that I can get them working separately. Any help appreciated... not knowing Java I'm rather at my wits end...!

Hi kian chye,
unfortunately it is not possible to use the page item bind variable in shared components for more than one page.
If you want to get it to work you have to use application item in the LOV (shared components).
Then on change of the first selection (region) you should write the new selection (region) into the application item (maybe with a javascript code). Then the LOV of the city should work.
For the javascript code see an example here:
http://apex.oracle.com/pls/otn/f?p=31517:119
Regards,
Denise
www.appsassociates.de

Similar Messages

  • Query Bind Parameters and LOV's [JHS 10.1.3.1]

    Using the JHeadstart Developer's Guide instructions (starting section 3-69) I have started to learn and then implement Query Bind Parameters in JHeadstart - but I am being met with nothing but troubles.
    Is there anything 'special' that I have to do in order to get a query bind parameter to work with a LOV? I have followed the instructions in the Developer's Guide but just replaced the bind parameters that would otherwise be in a Dynamic Domain into a LOV group in the JHeadstart Application Definition file..
    To be precise about all of this, I have been trying to get this to work with the HR database schema. So, like in the mini-tutorial I have a query bind parameter on a Employee table View Object set as a LOV to the ManagerId field on the Departments View Object (set in Form View).
    What is actually happening when I open up my LOV, is that no rows are ever displayed in the LOV pop-up window.
    What am I doing wrong?

    Michael,
    Take a look at this thread:
    Re: Group Used as LOV does not return records
    You have to use a managed bean to "communicate" the value of the Employees base page to the LOV page definition.
    Steven Davelaar,
    Jheadstart Team.

  • Query regarding bind variables and LOVs

    HI,
    I am new to ADF.Last day I learnt about LOVS,View Criteria and bind variables.Now, I was trying to develop a sample application.I created some EOs,VOs and an AM.
    I also defined a view criteria which takes a bind variable as parameter and resolves the condition at runtime.Then I created a query panel based on my view criteria.In that Query Panel,when I enter a student's name in an input box(which is bound to the bind variable I guess), the info about the student is displayed in a table.Now, instead of an input box, I want a choice list based on a model driven LOV which will contain all the student names available.Is it possible in ADF 11g?
    Thanks in advance

    You need to open the VO , you are using , go to the Overview section and in overview section go to the Attributes section.
    In attributes section select the attribute by which you are searching or doing your operation, click the add button of List of values: Attribute name
    Select the vo object to populate the value.
    You will get the data in bind variable you have created in view criteria.
    For detailed reference you can follow the bolg
    http://saumoinak.blogspot.com/2011/02/showing-data-based-on-list-of-values.html

  • How to use same jsp for edit and add form

    Hi,
    I would like to use the same .jsp file for edit and add. I just want to change a few controls based on edit/add mode. How do I configure this in the jsp?

    In the environment I currently have access to do not have similar setup.
    Let say you setup the DFF1 default value to $HEADER.customer_name, the name of the DFF is CUSTOMER_NAME, description can be anything.
    In DFF2, default value should be a SQL, where you can reference the DFF1. For example, SELECT DECODE($FLEX.CUSTOMER_NAME, 'ABC', 1, 'DEF', 2, NULL) FROM dual
    In this case, you can reference the DFF1.

  • Show master and detail viewobjects in the same jsp

    I have two viewobjects which have a master-detail relationship (a viewlink between them).
    What I want to do is to show both the master and the detail data in the same jsp, i.e for every row in the master viewobject I want to show all the rows in the detail viewobject.
    I tried to drop the master vo on the page from the component palette and then the detail vo next to the master vo, but then only the first row in the detail vo is shown on the page. I want all of them to be shown.
    Can anyone please point me in the right direction here?
    Ps: I'm using JDeveloper version 9.0.5.2
    Thanx a lot
    Tom

    I dropped both viewobjects as read-only tables and they both have the rangesize set to -1.
    I think I made myself a bit unclear when asking my question. I do not want a "normal" master-detail view in my jsp where you see one masterrow and all the detailrows. I want my page to show all the masterrows with all their corresponding detail rows listed under the master row.
    The pseudocode may look like this:
    for each row in MasterViewObject loop
    <<display data in MasterViewObject>>
    for each row in DetailViewObject loop
    <<display data in DetailViewObject>>
    end inner loop
    end outer loop
    As you see I have a double loop here. Is somehing like this possible without "manually" doing all the stuff?
    Thanx
    Tom

  • HT1349 I just purchased an Iphone and love it except I'm surprised and annoyed that there is no way to create a group within contacts.  I coach a youth basketball team and routinely want to fire off a mass email or text to the same group. Am I missing som

    I just purchased an Iphone and love it except I'm surprised and annoyed that there is no way to create a group within contacts.  I coach a youth basketball team and routinely want to fire off a mass email or text to the same group. Am I missing something?

    When I click on my contacts icon on my phone there is a Groups choice in the upper left hand corner. Make sure you are in All Contacts and not a specific person.

  • Error with report - pkg and bind var

    Hi to all,
    i'm writing some report and i found a strange isssue.
    I would like to retrieve some data using packages.
    So, something like select dbms_xxxx(var1, var2, var3) from dual;
    I would like to pass through bind vars the value per each variable.
    I used :var1 and also &var1 to be secure..
    if i use select dbms_xxxx(':var1', ':var2', ':var3') from dual;
    it gives me error about the apex, so i changed it in
    select dbms_xxxx(par1 => :var1.....
    Now it gives a problem with the parenthesis. But they are right!
    Any ideas? A possible limit of developer?
    By the way.. latest sqldev version.
    Thanks
    Acr

    Example:
    SELECT DBMS_METADATA.GET_DDL(
    object_type => upper(&object_type),
    object_name => upper(&object_name),
    schema => upper(&schema)) DDL
    FROM DUAL;
    This i what i get.
    Error: ORA-00907 MISSING RIGHT PARENTHESIS
    using &var or :var
    Acr

  • We use Thunderbird all the time and love it, but for about a week it constantly goes into not responding mode. My boss uses the same service at home with no pr

    Thunderbird is a great asset to my boss and I. We use Thunderbird all the time and love it, but for about a week it constantly goes into "not responding mode". My boss uses the same service at home with no problem at all.
    I did an "safe mode" and restart and for a few minutes I thought it was "healed". However, I did a search and the same thing started happening again. The little blue ring starts spinning and "not responding" pops up above the toolbar. Sometime the screen fades to a sort of greyish and no mouse click are responded to, even to close Thunderbird.
    Please help however you can. Our office number is 512.246.3995.
    Thank you,
    Mary

    We wonder if it is a firewall problem that developed here at the office. My boss uses her account at home and all is well, but here, experiences the same issues I described

  • Are iDVD 05 and DVD Studio Pro 4 incompatible on the same computer

    Since I have installed DVD Studio Pro 4, I have had chronic problems attempting to burn DVDs in iDVD05. Often I get an error message "error occured during burning".
    Are iDVD 05 and DVD Studio Pro 4 incompatible on the same computer?

    I don't know if there are incompatibility issues between the applications, but for a period of time I was having burning problems with iDVD, and it turned out that it was due to something in my user account. I worked around the issue by making sure all the media for my iDVD project was on a shared data drive (open to all users) and I'd do all my iDVD work from a "fresh" user account that I kept on the machine. I'm not sure if that will solve your problem, but it's worth a try!

  • How to bind to a dataset and at the same time trim the text?

    Hi,
    I want to bind a listbox to a dataset, and the text value in the dataset is not always trimmed.
            Dim dsCity as dataset = GetListOfCity()
            ListBoxCity.DataSource = dsCity
            ListBoxCity.DataTextField = "CityName"
            ListBoxCity.DataValueField = "CityID"
            ListBoxCity.DataBind()
    I would like to ask if there is any handy way for me to bind to the dataset and at the same time, trim the text "CityName" when we are binding to it?
    Regards,
    Xavier

    Hi Xavier,
    Just as Uri Dimant said, we can use the Trim or Replace function in the textbox to trim leading or trailing spaces of any string. For example, we can use those functions as below:
    =Trim(Fields!FieldName.Value)
    =Replace(Fields!FieldName.Value, "  ", "")
    Besides, those two functions can also be done in the query with SQL.
    Reference:
    http://venkateswarlu.co.in/MSBI/ssrs/SSRS_Common_Functions__Text.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Same JSP/Servlet is executing again and again

    Hello,
    We have some JSPs which do a lot of processing and is 'alive' for a long period
    of time. If we use the JSP with small amouts of data, it is fine. But when we
    use the JSP with lot of data, it seems to 'go in a loop'.
    It is processing the data again and again and again and brings down our server.
    We do not think it is the code that is wrong - as it processes perfectly if the
    data is small or when our server is not busy. This problem happens if the data
    is lot and the server is also busy. The JSP seems to be executing again and again.
    Is there some type of 'refresh' logic in weblogic that refreshes the JSP/servlet
    and makes it 'execute' again and again.
    We are using WL 6.1
    Thanks,
    Oleg.

    Hi Oleg,
    Could you tell us how you find out that there is an additional request?
    Regards,
    Slava Imeshev
    "Oleg" <[email protected]> wrote in message
    news:[email protected]...
    >
    Thank you Varad and Slava,
    We don't use plagin for iplanet,
    but our problem is very similar:
    Weblogic generate additional request if the previous request toservlet/jsp is
    taking long time.
    Where I can configure JSP timeout to fix this problem?
    Thank you very much.
    Oleg.
    "Varadharajan" <[email protected]> wrote:
    Hi Oleg,
    Are you using weblogic plugin for iplanet webserver ?
    In weblogic server 6.1 sp3 there is a problem with this plugin. It would
    generate
    additional request if the previous request to servlet/jsp is taking more
    than
    the configurable timeout set in the obj.conf file of iplanet webserver.
    This plugin problem is fixed in wls6.1 sp4.
    Rgds,
    Varad
    "Slava Imeshev" <[email protected]> wrote:
    Hi Oleg,
    See my answers inline.
    "Oleg" <[email protected]> wrote in message
    news:[email protected]...
    Hello,
    We have some JSPs which do a lot of processing and is 'alive' for
    a
    long
    period
    of time. If we use the JSP with small amouts of data, it is fine.But
    when we
    use the JSP with lot of data, it seems to 'go in a loop'.I guess you need to figure out if "seems" really "does".
    It is processing the data again and again and again and brings downour
    server.
    How do you know that a JSP goes into a loop?
    We do not think it is the code that is wrong - as it processes
    perfectly
    if the
    data is small or when our server is not busy. This problem happensif the
    data
    is lot and the server is also busy. The JSP seems to be executingagain
    and again.
    What load is considered to be high/low for you
    application? Are you running a load test?
    Is there some type of 'refresh' logic in weblogic that refreshes
    the
    JSP/servlet
    and makes it 'execute' again and again.Normally Servlet/JSP enters service() method when
    there is an incoming request. It should not be happening
    at JSP's will.
    Regards,
    Slava Imeshev

  • How do I create linked LOVs in a JSP

    We are attempting to create a list of values (LOV) for a group of categories on a jsp page. We would like the LOV to be populated with the category names. Next to the category LOV we would like to have a link “get subcategories” that when clicked would return to the same jsp page, set the value of the LOV to the category selected, and populate a second LOV with sub-category names for the selected category.
    We have created an sql-only View Object (VO) for the categories and linked it to an sql-only VO for the subcategories (in a master-detail relationship) and added the VOs to an app module. We have tested the link between the two VOs with successful results.
    We would like to know how to create a linked pair of LOVs on a jsp page. Any help on this matter would be greatly appreciated.

    Les,
    If I understand correctly, you can do this fairly simply.
    First create datasources:
    <jbo:DataSource name="dsCategories" ...
    <jbo:DataSource name="dsSubCategories" ...
    <% // add a where clause to SubCategories based on the parameter "CategoryNumber"
    String categoryNumber = params.getParameter("CategoryNumber");
    // Make sure to default to something if the parameter is null or you'll get an error
    if (categoryNumber == null)
    categoryNumber = "1";
    dsSubCategories.getRowSet().setWhereClauseParam(0, categoryNumber);
    // execute the query on dsSubCategories to ensure that the where clause reflects on this page
    dsSubCategories.getRowSet().executeQuery();
    Create a form with your drop down lists.
    1. I would create a <form> that posts to the same page.
    2. Add a <jbo:FormEvent> tag with a custom event name like "getSubcategories".
    3. Create a LOV that isn't connected to the database:
    <jbo:InputSelect multiple="false" displaydatasource="dsCategories" displaydataitem="CategoryName" displayvaluedataitem="CategoryNumber" ></jbo:InputSelect>
    4. Create a second LOV that also isn't connected to a datasource. It would look like this:
    <jbo:InputSelect multiple="false" displaydatasource="dsSubCategories" displaydataitem="SubCategoryName" displayvaluedataitem="SubCategoryNumber" ></jbo:InputSelect>
    5. Add a submit button
    That should work. Some things to note:
    1. This probably won't track your previously selected options. I don't know if you can do that with this interface.
    2. I'd add some javascript to postback when a new list item is selected.
    Based on these points I would code the select list by hand like this:
    <select name="CategoryNumber" size="1" onchange="this.form.submit()">
    <% String curCatNumber="";
    String CatNumber = params.getParameter("CategoryNumber");
    if (CatNumber == null)
    CatNumber = "1";
    <jbo:RowsetIterate datasource="dsCategories" >
    <jbo:Row id="rowCategory" datasource="dsCategories" action="active" >
    <% curCatNumber = ((oracle.jbo.domain.Number)rowCategory.getAttribute("Category")).toString();%>
    <option value="<%=curParlimentId%>"
    <% if (CatNumber.equals(curCatNumber)) { %>selected<% } %>>
    <jbo:ShowValue datasource="dsCategories" dataitem="CategoryName" ></jbo:ShowValue>
    </option>
    </jbo:Row>
    </jbo:RowsetIterate>
    </select>
    The second would be similar.
    Hope this answered your question!
    ~Rob Lundeen

  • Two managed beans in same jsp page

    Hello
    First this could be a stupid question, but i just can't find a solutions on this problem.
    I wondering that could it be a two managed beans in same jsp page, here is a example:
    index.jsp
    <t:commandLink disabled="#{listBean.currentPage == 1}" id="previous2" type="button" immediate="true" style="font-size:small" action="#{listBean.previousPage}">
    <h:outputText value="Edellinen" id="prev"/>
    </t:commandLink>
    <t:commandLink disabled="#{listBean.currentPage == listBean.totalPages}" id="next2" type="button" immediate="true" style="font-size:small;" action="#{listBean.nextPage}">
    <h:outputText value="Seuraava" id="next"/>
    </t:commandLink>
    then i have a dataTable like this:
    <t:dataTable value="#{customerListBean.customerBeans}"
    binding="#{customerListBean.dataTable}" preserveDataModel="true" style="text-align:left">
    My problem is that when i push a commandLink it doesn't refresh a dataTable. Does anyone know a solution here or is this just a impossible way to do it?
    Thanks for help.

    when i push nextPage (commandLink) it's call action
    and count a new range of dataset and after that it's
    calls a method which is declared on subClass and that
    method get a new data of database on given params.
    and put it on DataTable.
    So listBean is upper class and customerListBean
    extends on ListBeanNo, it doesn't work that way as you expected. You have created two independent instances. They doesn't communicate automatically with each other or so. Just use one CustomerListBean instance and call the inherited methods of ListBean on the #{customerListBean} managed bean instance.

  • Linking between two IFRAME tags on the same JSP page

    I have a JSP (lets call it �PAGE_A.jsp�) that contains a table� the <TD> tags hold IFRAME tags with an initial �src� referencing a �blank.jsp��

    <!-- Report View Table-->
    <table width="100%">
    <tr>
    <td>
    <iframe id='report_view' name="report_view" width='60%' height="500" frameborder="0" src='blank.jsp'>
    </td>
    <td align="left">
    <iframe id='drilldown_view' name="drilldown_view" width='40%' height="500" frameborder="0" src='blank.jsp'>
    </td>
    </tr>
    </table>

    At a point, the user initiates a call to a servlet, and the output (PAGE_B.jsp) is returned to the first IFRAME �report_view�.
    PAGE_B.jsp contains HTML anchor tags that call the servlet again, this time the return target is the second IFRAME �drilldown_view� :
    ( Some Text).
    Clicking the link produces the desired page to be generated and displayed in the correct IFRAME running IE 5.5, however, the same code under NETSCAPE 7.x causes the �linked� page to open in a new browser window.
    I have deduced that this effect may be due to the NETSCAPE browser �thinking� that the targeted IFRAME (�drilldown_view�) should be a �child� of the IFRAME that contains the link (�report_view�), instead of another IFRAME belonging to PAGE_A.jsp. Under this circumstance, NETSCAPE cannot find the �target�, and thus redirects to a new browser window.
    Q: Is there a way to specify the �parent� of the �iframe� in the anchor�s �target� attribute?

    target in a link shouldn't care, as long as the IFRAME is in the same window... It should be able to find it.
    Otherwise, you could explore using Javascript to get a reference to the object by specifying the path:
    var oIFrame = top.document.getElementById('drilldown_view');
    oIFrame.src = 'somepage.html';
    that could work.. I've used that type of thing before.

  • Oracle 10g Diff in execution plan query with binding var Vs without

    We recently did 10g upgrade. In 10g, execution plan differs for query with binding var(thru jdbc etc) Vs without it as given below. For query with binding var,
    it chooses poor execution plan(no index is used, full scan is done etc). everything worked fine in 9i. To rectify the problem, we have to hint query with right index,join etc. but i dont like this solution.
    I would rather prefer to correct database to choose right execution path instead of eacy query level. but not sure what causes the issue.
    Does anybody came across this issue? if so, Please share your experiences. Thanks for the help. Do let me know if you need more info.
    1. Query without binding bar:
    select * from test where col1 = :1 and col2 = :2
    1. Query without binding bar:
    select * from test where col1 = 'foo' and col2= 'bar'

    I am not an expert but in my humble opinion it is the developer's responsability to ensure the correct explain plan is used before deploying code to production, if the explain plan returned by the DB is bad, then the use of a hint is perfectly acceptable.
    Check this out: http://lcgapp.cern.ch/project/CondDB/snapshot/performance.html
    Excerpt:
    Bind variable peeking. If an SQL query contains bind variables, the optimal execution plan may depend on the values of those variables. When the Oracle query optimizer chooses the execution plan for such a query, it may indeed look at the values of all bind variables involved: this is known as "bind variable peeking".
    In summary, the execution plan used for a given SQL query cannot be predicted a priori because it depends on the presence and quality of statistics and on the values of bind variables used at the time the query was first executed (hard-parsed). As a consequence of this instability of execution plans, very different performances may be observed for the same SQL query. In COOL, this issue is addressed by adding Oracle hints to the queries, to make sure that the same (good) plan is used in all cases, even with unreliable statistics or unfavourable bind variables.
    Edited by: Rodolfo Ferrari on Jun 3, 2009 9:40 PM

Maybe you are looking for

  • 10.8.5 crashes hard, fast, and often

    Last week when all the updates dropped, I was thrilled. XCode 5? That's nice. iTunes? Sounds good. iOS 7? Yes, please. 10.8.5? Absolutely. Absolutely not, it turns out. A day or two after that update got settled in, the crashing started. It would cra

  • FM 9 compatible with Acrobat 8?

    I'm evaluating a trial version of FM9. I already had Acrobat Standard 8 installed, so I skipped the PDF option of the FM9 install based on past experience with FrameMaker's built-in partial Acrobat distribution trashing Acrobat Proper. FM9 (as noted

  • Bug in Reports 6 Urgent

    HI, I have Reports (dev 6.0.5). Whenever I use Built in package LIST in my application it compiles but during execution I get an error that package not found...please help URGENT TIA Anand

  • Error in Processing Inbound 850 Doc  - AIP-50547

    I am having a problem with setting up my 850 - 997 transaction. I receive the following error after placing the 850 file in the pick up location. Any one have any helpful suggestions on what could be causing this error and how to fix it. Yogendra Mac

  • Did "keep window on top" go away in Safari 7.0.5?

    I just upgraded and it seems to be gone.