Problem in Cascading(Dependent) SelectManyShuttle in ADF

Hello All,
Here I am using jedveloper version -IDE     11.1.2.0.38.60.17
i am facing problem in Dependent SelectManyShuttle .
let's take a scenario
i have 2 SelectManyshuttle
First SelectManyShuttle Contains Countries ,and Second one Contains Cities.
when we select countries from first SelectManyShuttle, related cities are shown in Second SelectManyShuttle
after that i select cities from cities shuttle . and tries to save it in a table EmployeeMapCountryCity.
Related Tables1 ...Employees
Employees have attributes EmployeeId and Employee Name
Table2 - Countries
Countries have attributes CountryId and Country Name
Table3- CountryCities
CountryCities have attributes CityId, CountryId and CityName where CityId is unique
Example
CityId CountryId
11 1
12 1
13 1
14 1
23 2
26 2
29 2
30 3
34 3
Table4 -EmployeeMapCountryCity
EmployeeMapCountryCity have attributes EmployeeId ,CityId and CountryId
table Data should be saved like this
EmployeeId CityId CountryId
00001 11 1
00001 12 1
00001 13 1
00002 23 2
00002 26 2
00002 29 2
PROBLEM IS THAT  THIS DATA WON'T GET REFLECTED IN TABLE  -EmployeeMapCountryCity AFTER TRYING TO SAVE IT THROUGH FORM
Please help me
Thanks & Regards
Abhijeet Pratap Singh
Edited by: AbhijeetPS on Jan 31, 2013 3:42 PM
Edited by: AbhijeetPS on Jan 31, 2013 4:17 PM

hi,
I m using following code for selecting Countries
public List getSelectedCountries() {
if (selectedCountries == null || refreshSelectedList) {
selectedCountries = attributeListForIterator("EmployeeMapCountryCity2", "CountryId");
return selectedCountries;
That is working but
And same code is using for  selecting cities, it's not working
public List getSelectedCities() {
if (selectedCities == null || refreshSelectedList) {
selectedCities = attributeListForIterator("EmployeeMapCountryCity2", "CityId");
return selectedCities ;
Above method won't get the value of selected cities
please help me.
Regards
Abhijeet
Edited by: AbhijeetPS on Jan 31, 2013 4:49 PM
Edited by: AbhijeetPS on Jan 31, 2013 4:58 PM
Edited by: AbhijeetPS on Jan 31, 2013 4:59 PM

Similar Messages

  • Problem with cascading dependent LOV query running when it should not

    I have a page fragment with a regular ADF form on it that I use to add new entries to a table. This form has many fields on it with LOV’s associated with them. I have dependent LOV’s on some of them. The one case I have is I have three fields A, B, and C. Field C is dependent on A and B. The problem I seem to be having is when I enter a value for field A using it’s LOV, I get an hourglass for a long time after I select it and before it is displayed on the form. If I delete field C from the form the problem goes away. If I change the query behind the view for the LOV for field C to include a rownum < 20 in the where clause the problem goes away. My question is, why would the selection of a value for field A cause the query to fire for field C’s LOV view and how can I stop it. I don’t really want to use the rownum in the where clause.

    i had lot of question?
    The problem I seem to be having is when I enter a value for field A using it’s LOV, I get an hourglass for a long time
    ok. are using? any complex query to pick the lov 'a' .
    Answer: The LOV for A is based on a read only non-EO view with a SQL that is not really very complex. The LOV definition does set multiple values when the selection is made to blank out dependent fields in the data model used by the main form.
    after I select it and before it is displayed on the form.
    here i cant undestud?
    Answer. The order of things is I open the main form, I click the mag glass to open the LOV popup, I select the row I want and click the OK button. Navigation returns to the main form where I get the hourglass waiting for the selected value to be displayed in the field on the main form.
    If I delete field C from the form the problem goes away. If I change the query behind the view for the LOV for field C to include a rownum < 20 in the where clause the problem goes away.
    ok.
    why are you going to delete the value of c?. At intial stage you can make empty after selecting a and/or b you can load into c.
    Answer: I physically deleted field C from the main form to see if that was what was causing the long delay. When I run the main form without field C I do not get the hourglass. That is how I know they are related.
    My question is, why would the selection of a value for field A cause the query to fire for field C’s LOV view and how can I stop it.
    you may set partial trigger to c depends for 'a'.
    or else lov 'c' query depends on 'a'
    Answer. The query for C's LOV does depend on the value returned when I select a value for A. They are cascading LOV's. Will setting the partial trigger stop the SQL for field C from running? Is the SQL running because I'm blanking out field C when I change the value for field A?
    am not sure i understud correctly. can you pictuarize you problem with an example.

  • 2 or more cascading selectonechoice in Oracle ADF 11g Rel 2

    Hi,
    I want to have 2 (later more) cascading (depending) selectonechoice component.
    The first combobox (partners) will be filled with the result of a SQL view object (PartnerLovView) execution, this query has NO (bind) parameter and only has one primary key as id and a name column (SELECT partnerId, partnerName FROM Partner ORDER BY partnerName).
    The second combobox (partner sites) has empty default value. This combobox will be filled with the result of a SQL view object (PartnerSiteLovView) execution, this query HAS a parameter (p_partnerId) and has one primary key as id, one foreign key for partner (partnerId) and a name column (SELECT partnerSiteId, partnerId, partnerSiteName FROM PartnerSite WHERE partnerId = :p_partnerId ORDER BY partnerSiteName).
    I can't achieve to bind the two comboboxes. I've dropped from the AppModuleDataControl the PartnerLovView1 to the JSF page as "Single Selection --> ADF Select One Choice... and also dropped the PartnerSiteLovView1 as same (this combo depends on the first combo selected value).
    In this case I get error something like: IN, OUT parameter missing, what is true because select need the parameter value. But how to bind it?
    I've set the autoSubmit to true for the first combo and partialTrigger property to the first combo id of the second combo.
    If a modify the (depending) second SQL and removed the paramter from base query and added a view criteria, this combo will filled but no reaction if I submit the first combo.
    How and where to bind the first combo selected value to the second combo?

    Hi Shay,
    thank You for your answer.
    The first solution doesn't meet my use case: I have two (later more for addinitonal) separate queries. No join.
    Second solution: can You give me some concrete source code? In the valuechangeListener I always got the label of the selected value not the real value (id). I've followed Your code with [getting value|https://blogs.oracle.com/shay/entry/getting_the_value_from_a_selec].
    Later I will be use more dependent comboboxes, this combos will prefilter a tree, and the tree will prefilter a table. Please send me (throw email) your contact too, because I need somebody who can help me, and maybe I send you my project use cases.
    Thanks
    Bye

  • Dependent SelectOneListBox in ADF 10g

    hi,
    can anyone tell me the steps for Dependent SelectOneListBox in ADF 10g and atleast give a sample code work out

    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces"
              xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
              xmlns:afi="http://xmlns.oracle.com/adf/industrial/faces"
              xmlns:adfp="http://xmlns.oracle.com/adf/faces/portlet"
              xmlns:aj="http://java.sun.com/blueprints/ajaxtextfield">
      <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
                  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
                  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <af:document title="Service Extensions">
          <af:form>
            <af:panelPage title="Create Service Request">
              <f:facet name="menu1"/>
              <f:facet name="menuGlobal"/>
              <f:facet name="branding"/>
              <f:facet name="brandingApp"/>
              <f:facet name="appCopyright"/>
              <f:facet name="appPrivacy"/>
              <f:facet name="appAbout"/>
              <af:panelForm maxColumns="2" rows="3" width="60%">
                <af:selectOneListbox value="#{bindings.SrVOPartyId.inputValue}"
                                     label="#{bindings.SrVOPartyId.label}"
                                     autoSubmit="true" id="PartyList">
                  <f:selectItems value="#{bindings.SrVOPartyId.items}"/>
                </af:selectOneListbox>
                <af:selectOneChoice value="#{bindings.SrVOCustAccountId.inputValue}"
                                    label="#{bindings.SrVOCustAccountId.label}"
                                    partialTriggers="PartyList">
                  <f:selectItems value="#{bindings.SrVOCustAccountId.items}"/>
                </af:selectOneChoice>
                <af:inputText value="#{bindings.PartyId.inputValue}"
                              label="#{bindings.PartyId.label}"
                              required="#{bindings.PartyId.mandatory}"
                              columns="#{bindings.PartyId.displayWidth}"
                              rendered="false">
                  <af:validator binding="#{bindings.PartyId.validator}"/>
                  <f:convertNumber groupingUsed="false"
                                   pattern="#{bindings.PartyId.format}"/>
                </af:inputText>
                <af:inputText value="#{bindings.CustAccountId.inputValue}"
                              label="#{bindings.CustAccountId.label}"
                              required="#{bindings.CustAccountId.mandatory}"
                              columns="#{bindings.CustAccountId.displayWidth}"
                              rendered="false">
                  <af:validator binding="#{bindings.CustAccountId.validator}"/>
                  <f:convertNumber groupingUsed="false"
                                   pattern="#{bindings.CustAccountId.format}"/>
                </af:inputText>
                <af:inputText value="#{bindings.Invtoryitemid.inputValue}"
                              label="#{bindings.Invtoryitemid.label}"
                              columns="#{bindings.Invtoryitemid.displayWidth}">
                  <af:validator binding="#{bindings.Invtoryitemid.validator}"/>
                  <f:convertNumber groupingUsed="false"
                                   pattern="#{bindings.Invtoryitemid.format}"/>
                </af:inputText>
                <af:inputText value="#{bindings.SerialNumber.inputValue}"
                              label="#{bindings.SerialNumber.label}"
                              required="#{bindings.SerialNumber.mandatory}"
                              columns="#{bindings.SerialNumber.displayWidth}">
                  <af:validator binding="#{bindings.SerialNumber.validator}"/>
                </af:inputText>
                <af:inputText value="#{bindings.Summary.inputValue}"
                              label="#{bindings.Summary.label}"
                              required="#{bindings.Summary.mandatory}"
                              columns="#{bindings.Summary.displayWidth}">
                  <af:validator binding="#{bindings.Summary.validator}"/>
                </af:inputText>
                <f:facet name="footer">
                  <af:panelGroup layout="vertical">
                    <af:objectSpacer width="10" height="20"/>
                    <af:panelButtonBar>
                      <af:commandButton actionListener="#{bindings.process.execute}"
                                        text="process"
                                        disabled="#{!bindings.process.enabled}"
                                        action="CreateSr"/>
                    </af:panelButtonBar>
                  </af:panelGroup>
                </f:facet>
              </af:panelForm>
            </af:panelPage>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>
    page Definition
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                    version="10.1.3.42.70" id="CreateSrPageDef"
                    Package="userinteface.pageDefs"
                    MsgBundleClass="userinteface.pageDefs.CreateSrPageDefMsgBundle">
      <parameters/>
      <executables>
        <iterator id="SrVOIterator" RangeSize="10" Binds="SrVO"
                  DataControl="srAMDataControl"/>
        <invokeAction Binds="ExecuteWithParams" Refresh="renderModel"
                      id="InvokeActionExecuteWithParams"/>
        <invokeAction Binds="Create" id="invokeCreate" Refresh="renderModel"
                      RefreshCondition="${!adfFacesContext.postback and empty bindings.exceptionsList}"/>
        <iterator id="SerialnumbersIterator" Binds="Serialnumbers" RangeSize="-1"
                  DataControl="srAMDataControl"/>
        <variableIterator id="variables"/>
        <iterator id="CustomersIterator" RangeSize="-1" Binds="Customers"
                  DataControl="srAMDataControl"/>
        <invokeAction id="InvokeActionExecuteWithParams1" Binds="ExecuteWithParams1"
                      Refresh="renderModel"/>
        <iterator id="AccountsIterator" RangeSize="-1" Binds="Accounts"
                  DataControl="srAMDataControl"/>
      </executables>
      <bindings>
        <action id="Create" RequiresUpdateModel="true" Action="41"
                IterBinding="SrVOIterator" InstanceName="srAMDataControl.SrVO"
                DataControl="srAMDataControl"/>
        <action IterBinding="SerialnumbersIterator" id="ExecuteWithParams"
                InstanceName="srAMDataControl.Serialnumbers"
                DataControl="srAMDataControl" RequiresUpdateModel="true"
                Action="95">
          <NamedData NDName="itemid"
                     NDValue="${bindings.SrVOInvtoryitemid.inputValue}"
                     NDType="oracle.jbo.domain.Number"/>
        </action>
        <attributeValues id="PartyId" IterBinding="SrVOIterator">
          <AttrNames>
            <Item Value="PartyId"/>
          </AttrNames>
        </attributeValues>
        <attributeValues id="CustAccountId" IterBinding="SrVOIterator">
          <AttrNames>
            <Item Value="CustAccountId"/>
          </AttrNames>
        </attributeValues>
        <attributeValues id="Invtoryitemid" IterBinding="SrVOIterator">
          <AttrNames>
            <Item Value="Invtoryitemid"/>
          </AttrNames>
        </attributeValues>
        <attributeValues id="SerialNumber" IterBinding="SrVOIterator">
          <AttrNames>
            <Item Value="SerialNumber"/>
          </AttrNames>
        </attributeValues>
        <attributeValues id="Summary" IterBinding="SrVOIterator">
          <AttrNames>
            <Item Value="Summary"/>
          </AttrNames>
        </attributeValues>
        <methodAction id="process" InstanceName="CreateSRDC"
                      DataControl="CreateSRDC" MethodName="process"
                      RequiresUpdateModel="true" Action="999"
                      IsViewObjectMethod="false"
                      ReturnName="CreateSRDC.methodResults.CreateSRDC_process_result">
          <NamedData NDName="P_CREATESR_REC_CUST_ACCOUNT_ID"
                     NDValue="${bindings.PartyId}" NDType="java.math.BigDecimal"/>
          <NamedData NDName="P_CREATESR_REC_PARTY_ID"
                     NDValue="${bindings.CustAccountId}"
                     NDType="java.math.BigDecimal"/>
          <NamedData NDName="P_CREATESR_REC_SERIAL_NUMBER"
                     NDValue="${bindings.SerialNumber}" NDType="java.lang.String"/>
          <NamedData NDName="P_CREATESR_REC_INVENTORY_ITEM_ID"
                     NDValue="${bindings.Invtoryitemid}"
                     NDType="java.math.BigDecimal"/>
          <NamedData NDName="P_CREATESR_REC_SUMMARY" NDValue="${bindings.Summary}"
                     NDType="java.lang.String"/>
          <NamedData NDName="P_SR_NOTES_TBL_P_SR_NOTES_TBL_ITEM"
                     NDType="[Ljava.lang.Object;"/>
        </methodAction>
        <list id="SrVOPartyId" IterBinding="SrVOIterator" StaticList="false"
              ListOperMode="0" ListIter="CustomersIterator">
          <AttrNames>
            <Item Value="PartyId"/>
          </AttrNames>
          <ListAttrNames>
            <Item Value="PartyId"/>
          </ListAttrNames>
          <ListDisplayAttrNames>
            <Item Value="PartyName"/>
          </ListDisplayAttrNames>
        </list>
        <action IterBinding="AccountsIterator" id="ExecuteWithParams1"
                InstanceName="srAMDataControl.Accounts"
                DataControl="srAMDataControl" RequiresUpdateModel="true"
                Action="95">
          <NamedData NDName="pid" NDValue="${bindings.SrVOPartyId.inputValue}"
                     NDType="oracle.jbo.domain.Number"/>
        </action>
        <list id="SrVOCustAccountId" IterBinding="SrVOIterator" StaticList="false"
              ListOperMode="0" ListIter="AccountsIterator" NullValueFlag="1"
              NullValueId="SrVOCustAccountId_null">
          <AttrNames>
            <Item Value="CustAccountId"/>
          </AttrNames>
          <ListAttrNames>
            <Item Value="CustAccountId"/>
          </ListAttrNames>
          <ListDisplayAttrNames>
            <Item Value="AccountNumber"/>
          </ListDisplayAttrNames>
        </list>
      </bindings>
    </pageDefinition>if i select a value in selectoneListBox the SelectChoiceBox should populate according to values selected in the Selection can anyone please help me
    i have gone thru this link http://www.scribd.com/doc/2633296/ADF-Learning-6-Dependent-List-Boxes
    and followed the link
    Edited by: Naveenapps on Sep 12, 2009 5:09 AM

  • How to do cascading select lists  in ADF table

    I have bulk update ADF table and two of the columns are select lists. For example, in a row of the table, if first select list is changed, then is it possbile to populate second list based on the value in first select list within that row?. any ideas are appreciated.
    Regards,
    Surya

    Cascading LOV's .. refer http://andrejusb.blogspot.com/2008/12/cascading-lovs-in-oracle-adf-11g-update.html
    In table just set the PRR on column 2 for the column 1 component. Also set the AutoSubmit/PartialSubmit to true for the column1 component.
    Amit

  • Problems with cascading delete with entities

    I have a problem with cascading delete. I have two entities, Notebook and Note. One instance of Notebook can have several instances of Note in a Collection< Note >. The two entities are joined with a join table notebook_note that have two columns, the PK from the table of Notebook and Note. Note is not aware of the relation.
    From the user interface some elements of the collection<Note> can be added or deleted. I want to delete an element of that collection and make it persisted on the DB.
    If I add some Note elements to the collection and then I EntityManager.merge(notebook) (see public void persistNotebook() code below), I have all them persisted on the DB.
    However, if I delete some preexisting Note elements, after the merge I found deleted only the corresponding rows from the join table notebook_note BUT the rows in table Note, that was belonging to the deleted instance of Notebook, are NOT removed.
    Till now I found a way to do that (see code UserBean below), but I think that there is a simpler and so better way to do that! I hope to receive some suggestions!!
    @Entity
    public class Notebook implements Serializable {
    private static final long serialVersionUID = 1L;
    private String userName;
    private Collection<Note> notes;
    public Notebook() {
    public Notebook(String userName) {
    this.userName = userName;
    notes = new ArrayList<Note>();
    @Id
    public String getUserName() {
    return userName;
    public void setUserName(String userName) {
    this.userName = userName;
    @OneToMany(cascade = {CascadeType.ALL}, fetch = FetchType.EAGER)
    public Collection<Note> getNotes() {
    return notes;
    public void setNotes(Collection<Note> notes) {
    this.notes = notes;
    @Entity
    public class Note implements Serializable {
    String note;
    public void setNote(String note) {
    this.note = note;
    public String getNote() {
    return note;
    @Stateful
    public class UserBean implements UserRemote {
    private static Logger log = Logger.getLogger(UserRemote.class);
    @PersistenceContext(unitName = "etourism-ejbPU")
    private EntityManager em;
    &hellip;&hellip;
    @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
    public void persistNotebook() {
    NotebookDao notebookDao = new notebookDao(em);
    notebookDao.merge(notebook);
    em.flush();
    public void deleteNotebookNote (&hellip;.) {
    &hellip;..
    //noteFound is the note I want to delete from the Collection<Note>
    notebook.getEvents().remove(noteFound);
    persistNotebook(); //see method above
    *//I have also to explicitally delete the associated note!!!*
    *NoteDao noteDao = new NoteDao(em);*
    *noteDao.remove(noteDao.read(noteFound.getId()));*
    public void addNotebookNote(&hellip;..) {
    //add new note to the collection<Note> of the Notebook
    Note newNote = new Note(&hellip;);
    notebook.getNotes().add(newNote);
    persistNotebook();
    Where:
    public class NotebookDao extends JpaDao<Notebook, String> {
    &hellip;&hellip;
    public abstract class JpaDao<T, PK extends Serializable> implements IDao<T, PK> {
    &hellip;..
    public void remove(T entity) {
    getEntityManager().remove(entity);
    public void merge(T transientObject) {
    getEntityManager().merge(transientObject);
    }

    Thank you gimbal2 for your answer.
    You are right saying that a single Note could be bound to multiple notebooks, when using a join table, so the cascade cannot be done automatically by JPA.
    However, in my case, a single Note is bound only to one Notebook, so I would like to drop the join table (as you rightly suggest): however when I declare in the Notebook, a relation 1:N in this way ...
    @OneToMany(cascade = {CascadeType.ALL}, fetch = FetchType.EAGER)
    private Collection<Note> notes;
    ... the join table is automatically created during the deploy.
    Sorry, I am a beginner in EJB3. What kind of relational mapping annotation should I use to have a straight 1:N relationship that doesn't generate a join table?
    I think that it should be better to avoid to modify the relationship (es. cascade option) directly in the created db tables and let the logic be declared in the entity code definition: am I right?
    Waiting for your suggestion ...
    thank you very much
    Enzo
    Edited by: contini on May 22, 2009 5:37 AM

  • Problem with cascade delete and remove bean

    I am working with two entity beans that map to two tables that have a foreign key relationship. Table B has a foreign key to A and in the database that foreign key is set for cascaded updates and cascaded deletes.
    The problem occurs when the the sytem first tries to remove bean 1 (mapped to table A) and then remove bean 2 (mapped to B) where bean 2 is associated with bean 1 with a foreign key relationship. The first remove works but then when it tries to remove bean 2 it throws a very ugly "CORBA TRANSACTION_ROLLEDBACK 9998" Maybe exception. My guess is that the reason is because bean 2's reocrd in the database was deleted when bean 1 was removed but the 'bean object' was not removed from the container.
    When I go into our Application Server and look at how it see's the tables, it show the wrong relationship. It shows a restrict delete and a restrict update realationship.
    My question is, am I wrong to think that this is a application server problem or a configuration problem? It seems to me that attempting to remove a non-existant record should not cause an error. It won't cause any SQL exceptions. Is this a flawed viewpoint? As a work around I made sure that the dependent records are deleted first but it kind of defeats the point of cascaded deletes.
    We have a limited number of support calls, should I use one or am I at fault here?

    If the database removes the record from the second
    table, why is the system trying to remove it once
    again? You should try to remove an entity from a
    single place, should it be the database or the
    application. Don't try to remove it twice.
    Regards,
    DimitarI could do this but it is a huge pain in my ass. The problem is that you might want to remove the dependent bean without removing it's parent. The object structure is a little questionable, I'll admit that. It is, as they say, the eleventh hour and I can't really change that now.
    The way this work is that the server gets a list of objects marked either as new, modified, or deleted. It then relates those changes back to the database.
    In this case we have two lists(which makes me realize where the class structure sucks.) In order to do what you suggest I would have to get all the deleted parent objects and then search all the deleted child objects for ones that have the parent's key in them.
    It would be prefferable to fix the class structure but again this is not an option.
    Anyone want to answer the question I asked?

  • Problem in cascade-delete

    I've using cascade delete for delete rows from two entity beans.......
    but my problem is that if I'm doing it from ejb side...i.e. setting "fk_constraint" to false, and setting cascade-delete in ejb-jar.xml (& not in database), then its working fine....
    but if I remove these tags from the ejb-jar and in the database, specify foreign key and ON DELETE CASCADE, then its not working....it is giving the error...
    "can't add or update a child row...foreign key constraint fails".....
    I've read somewhere that this cascade delete option should be specified either on the ejb side or on the db side..and not on both the sides......but in run-time only ejb side is working...
    Plz. help me out coz I want the deletion from db side...as thr are some other tables not used in ejb but dependant on the one used in the ejb side.

    I think that you must specify <cascade-delete/> tag in ejb-jar.xml ONLY. But not in database.

  • Charset problems on 10.1.2 with ADF

    Hi,
    We have developed an ADF based application, then were forced to downgrade it to AS 10.1.2 as described on various pages. The application is running as expected with one problem.
    All our pages are jspx's and the encoding is windows-1250, though changing this value to utf-8, etc. does not change the behaviour. The jdev built in OC4J always uses this encoding and returns it to the browser as the response encoding. It also uses this encoding when loading the the resource bundle. Reading and posting to the database works as expected.
    After deployment to the server things get weird. The server always responds as ISO-8859-2 or ISO-8859-1 depending on the selected language in the browser. This is however, not the biggest problem (we could simply rewrite the resource file and that would be it). The biggest problem is that although the database items are displayed correctly, after the post back they all become garbage. (by all i mean items that include non ASCII characters).
    I have tried the following:
    - setting the encoding init parameter of the ADF binding filter-> no impact, on AS it is ignored
    - setting the encoding vie setCharacterEncoding of the request (although the same method on the response runs without problems on jdev, AS claims there is no such method on ServletResponse). Done this both on PageLifecycle and customized filter. no impact, on AS it is ignored
    - changing the encoding of the various pages. no impact, on AS it is ignored
    In all the attempts the result is the same. AS changes the encoding to the value it believes is best and decodes the response using some other encoding (i believe ISO-8859-1) no matter what i tell it.
    Any input would be much appreciated.

    Hi Si:
    I am stuck with the same problem. Could you please let me know if you have any solution or workaround for this. My email id is: [email protected]
    Thanks
    Sridhar

  • Problem with display of Buttons in ADF

    Hi All,
    I had a strange problem in display of the ADF Page in one of the server.I had two buttons inside ToolBars, The UI was coming fine in the two WLS, But when I deployed the application in third WLS, I was seeing that Buttons are coming in the top of screen,
    Kindly let me know as to why Iam not to replicate the issue in my earlier WLS.Please find my code
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core">
    <af:panelStretchLayout id="psl1">
    <f:facet name="center">
    <af:panelGroupLayout id="pgl1">
    <af:panelBox text="Service Request#: #{bindings.srNumber.inputValue}" id="pb1">
    <af:spacer width="10" height="10" id="s1"/>
    <af:outputText value="Service Request#: #{bindings.srNumber.inputValue}"
    id="ot18" inlineStyle="font-weight:bold;"
    rendered="false"/>
    <af:spacer width="15" height="10" id="s2"/>
    <af:separator id="s3" rendered="false"/>
    <af:panelFormLayout id="pfl1">
    <af:inputText value="#{bindings.subject.inputValue}" label="Summary"
    required="true" columns="100" maximumLength="100" id="it3" showRequired="true">
    <f:validator binding="#{bindings.subject.validator}"/>
    </af:inputText>
    <af:inputText value="#{bindings.description.inputValue}"
    label="Description" required="true" columns="100"
    maximumLength="1999" id="it2"
    rows="7" showRequired="true">
    <f:validator binding="#{bindings.description.validator}"/>
    </af:inputText>
    </af:panelFormLayout>
    <af:separator id="s4" rendered="false"/>
    </af:panelBox>
    <af:toolbar id="tb1">
    <af:group id="g1">
    <af:commandButton text="#{pageFlowScope.MySRBean.reopenSrBackButtonLabel}" id="cb2"
    action="backtodetails" accessKey="G"
    immediate="true" inlineStyle="border-style:outset; border-width:medium; outline-color:Gray;"/>
    <af:commandButton text="#{pageFlowScope.MySRBean.reopenSrConfirmReopenButtonLabel}" id="cb3"
    action="success"
    actionListener="#{pageFlowScope.MySRBean.reOpenSR}"
    accessKey="C" inlineStyle="border-style:outset; border-width:medium; outline-color:Gray;"/>
    </af:group>
    </af:toolbar>
    </af:panelGroupLayout>
    </f:facet>
    </af:panelStretchLayout>
    </jsp:root>
    thanks
    Krishnaveni

    User, please always tell us your jdev version.
    The interesting part is what you did not tell us.
    Kindly let me know as to why Iam not to replicate the issue in my earlier WLS.Please find my code means hte code has once run OK and now after you did some changes doesn't any longer. Querstion: what did you change, not oly to the code but to the environment.
    Timo

  • JsCookMenu - Problem with display of Menu (Oracle ADF)

    I am using Oracle ADF with JSF components. The jsCookMenu displays the menu along with "x" representing images on the right and left side of the menu label. Please suggest me how to remove this icon from the menu display. Please find the code below.
    <t:jscookMenu layout="hbr" theme="ThemeOffice" styleLocation="/css/jscookmenu" >
    <t:navigationMenuItem id="nav_1" itemLabel=" Menu1 " >
    <t:navigationMenuItem id="nav_1_1" itemLabel="Menu1.1" > </t:navigationMenuItem>
    </t:navigationMenuItem>
    </t:jscookMenu>
    I am getting this problem with IE when the application starts. When I do ctrl+refresh, this issue doesnot occur. Also, with Firefox I am not getting any problem. I need to know how to fix this issue with IE when the application starts. Any suggestions on this would be of great help.

    User, please always tell us your jdev version.
    The interesting part is what you did not tell us.
    Kindly let me know as to why Iam not to replicate the issue in my earlier WLS.Please find my code means hte code has once run OK and now after you did some changes doesn't any longer. Querstion: what did you change, not oly to the code but to the environment.
    Timo

  • Problem in using webservice in My ADF App

    hi ,OTN
    I used this tutorial http://www.oracle.com/technetwork/testcontent/wsdc-085537.html to have a webservice in my ADF Application that returns Weather Application.I used Jdeveloper 11g 11.1.1.3.0. by follwing this tutorial I could get the weather Info.but the first time I run my page or the first time I press the button getWeatherBy Name after writing the place there is an error Mesage as follows
    System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: Error occured when get webservices record ---> System.Data.SqlClient.SqlException: Procedure or function 'GetLatByPlace' expects parameter '@ZipcodeName', which was not supplied. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at WeatherService.WeatherForecast.GetLatLonDataByPlaceName(String PlaceName) --- End of inner exception stack trace --- at WeatherService.WeatherForecast.GetLatLonDataByPlaceName(String PlaceName) at WeatherService.WeatherForecast.GetWeatherByPlaceName(String PlaceName) --- End of inner exception stack trac
    when I press ok to this error Message.I could write the name of place and got Weather Info,so How can I prevent this error Message that appear every first Time the user call the page of Weather Forecast?
    note : in the tutorial I noticed that it explained that there is an error Message will appear ( On the error window click OK. )
    Edited by: Miar on Oct 13, 2010 6:03 AM

    hi,frank
    yes,the problem is that he asks about his parameter when the page is rendered for the first time,in the tutorial it prevents calling the web service before having
    provided the place Name by making the refresh condition of the iterator #{adfFacesContext.initialRender} , although I did this the web Service is called,How I prevent calling it when i run my page ?
    thanks shay,I will try it and tell the result
    Edited by: Miar on Oct 13, 2010 8:37 AM

  • Problem trying to develop a simple ADF Application

    Hi all,
    I am using Jdev 11.1.1.0 and webLogic 10.3.1
    I have a simple application with only a welcome message and a table.
    I am trying to deploy it, but I am a little confused.
    I have created the Application Server Connection succesfully.
    What have I to do now? I suppose, I have to create a deployment profile.
    If I right click on myApplication-->New-->Deployment profiles--> I can choose only EAR file or MAR file (not WAR file, like described in the manual 35.3.2). What I have to do?
    Instead, if I right click on ViewController-->New-->Deployment profiles--> I can choose more files (ADF Library JAR file, Client JAR File, JAR File, RAR File, Taglib JAR File, WAR File).
    If I choose this way, have I anything to do with the Model? if I right click on Model-->New-->Deployment profiles--> I can choose more files (ADF Library JAR file, Business Components Archive, Business Components EJB Session Bean, Business Components Service Interface, Client JAR File, JAR File, RAR File).
    Please help.
    Thanks

    The deploy seems to works, in fact Jdevelepor gives to me:
    Building...
    Deploying 2 profiles...
    Wrote Web Application Module to myFolder\ViewController\deploy\webapp1profile.war
    Wrote Enterprise Application Module to myFolder\deploy\application1EARProject.ear
    Deploying Application...
    The task cannot be processed further until the current edit session is activated. When this occurs, task processing will continue. The user can exit the deployer tool without affecting the task.
    Operation 'deploy' on application 'application1EARProject' has succeeded on 'AdminServer'
    Application Deployed Successfully.
    Elapsed time for deployment: 15 seconds
    But when I go to the URL: http://<host>:port/<context root>/faces/<page> I have the same problem: I can not see the page correctly, I continue to see only the welcome message, but not the table
    Any other suggestions?
    thanks again

  • Problems with custom search form in adf

    Hi,
    I am using JDeveloper 11.1.2.4. please can you help with this issue?
    I've created a custom search form with the help from this link.
    Jdeveloper,Oracle ADF &amp;amp; Java: Implementing custom search form in ADF programmatically (Without using af:query)
    I've created two bind variables SkuBind & ImperfectBind and a View Criteria.
    My problem is when I press Search button, it does not filter based on values of the bind variables in the View Criteria.
    I rightly get bind variable values in the System output though
    Skubind = 1000
    Imperfectbind = N
    but there is no where clause
    where clause = null
    public void SearchOddShoes(ActionEvent actionEvent) {
    AppModuleImpl am = (AppModuleImpl)resolvElDC("AppModuleDataControl");
    ViewObject oddShoeVo = am.getRtnOddShoesVO1();
    oddShoeVo.setNamedWhereClauseParam("SkuBind", skuPgBind.getValue());
    oddShoeVo.setNamedWhereClauseParam("ImperfectBind", imperfectPgBind.getValue());
    System.out.print("Named Skubind = " + oddShoeVo.getNamedWhereClauseParam("SkuBind") +"\n");
    System.out.print("Named Imperfectbind = " + oddShoeVo.getNamedWhereClauseParam("ImperfectBind") +"\n");
    System.out.print("where clause = " + oddShoeVo.getWhereClause()+"\n");
    System.out.print("where clause params= " + oddShoeVo.getWhereClauseParams()+"\n");
    System.out.print("Sql is " + oddShoeVo.getQuery()+"\n");
    oddShoeVo.executeQuery();
    public Object resolvElDC(String data) {
               FacesContext fc = FacesContext.getCurrentInstance();
               Application app = fc.getApplication();
               ExpressionFactory elFactory = app.getExpressionFactory();
               ELContext elContext = fc.getELContext();
               ValueExpression valueExp =
                       elFactory.createValueExpression(elContext, "#{data." + data + ".dataProvider}", Object.class);
               return valueExp.getValue(elContext);
    thanks

    Not clear what part of the code doesn't work. Assuming that you did check that the code you wrote executed
    the problem may be the following.
    You need to add partial trigger on the destination component.
    Add ...
    oddShoeVo.executeQuery();
    AdfFacesContext.getCurrentInstance().addPartialTarget(HERE_THE_BIND_NAME_OF_YOUR_TABLE);
    Also I don't see that you acctually use View Criteria. There are specific way to apply View Criteria programatically and I don't see that you use it.
    The simpliest way is just to change the VO query to embed bind variables into the query
    E.G.
    select 1
    from dual
    where some_column= :P_PARAM1

  • COMMIT problem in TopLink, Struts, JSP and ADF Databinding sample

    In the sample Developing a J2EE Application using TopLink, Struts, JSP and ADF Databinding,
    I followed all the steps to build a department browse page and a edit page.
    But when I get to Step number 23 in "Create a JSP to Edit Departments" I have a problem with the commit.
    Only after I make a change in the form and click the sumbit button, the commit and rollback buttons become active. And After I click the commit button the data gets commited to the database but the page inofmation changes to the very first department record, not the current one.
    How do I make those buttons active with out the extra click on the submit?
    After I click the commit button, how do I keep the current data on the screen?
    Thanks for you help.

    Shay,
    Thanks for the reply.
    For #1, I was able to do the following and get away with not having to press submit first. I just removed the bindings for disable. I hope that does not cause any problems?
    <input type="submit" name="event_Commit" value="Commit" />
    <input type="submit" name="event_Rollback" value="Rollback" />
    For #2, How I add an action on an HTML button? My UIModel.xml for the edit department page currently has two actions on it. Commit and RollBack. Is it linked through the "name" attribute of the input tag?

Maybe you are looking for

  • I want to change the sharing and permissions of a large number of photos. How can I do this in bulk rather than one at a time?

    I want to change the sharing and permissions of a large number of photos. How can I do this in bulk rather than one at a time?

  • Drag and Drop objects to the same target

    Can any one assist? I have a box that has six labels that can be dropped on targets on the box. I have all this in place but I want to be able to have label 2 drop onto target 2 and 3, and likewise label 3 drop on to target 2 and 3. All others drop o

  • How to reference a field statically in a program?

    Hi Everyone, Can any one explain me how to reference a field statically. As the error on Extended program check is as follows: Field FLAG is not referenced statically in the program    where as the particular field has been defined as below in the pr

  • Server Configuration programs

    I have managed to create a nice little program that allows me to configure my OPC VI Server. I can access that program by putting in the file path as an input to the "configuration path" input on the VI SVRG Add server Row VI. Once I have registered

  • What is the extension Clear Think?

    I went into my Firefox settings and into Extensions, and there was an extension in there called Clear Think. I didn't install this extension and can find absolutely no information about it online. I removed it, but am curious as to where it came from