the resolution may not be cast in java.util.ArrayList

I hava an accordion panel with this function in disclosureListener:

{} public void terrababdelhak (DisclosureEvent disclosureEvent)

System.out.println ("SHOW all THE NEWSPAPERS");

int stateIndex [---]

DCIteratorBinding dcLogs = (DCIteratorBinding) getBindings () .get ("LogTypesVO1Iterator");

ViewObject voLogs = dcLogs.getViewObject ();

List of JUCtrlListBinding = (JUCtrlListBinding) getBindings () .get ("LogTypesVO1");

System.out.println ("LIST LOGS" + list);

DCIteratorBinding iter = list.getDCIteratorBinding ();

System.out.println ("ITER LOGS" + iter);

RowSetIterator rsi = voLogs.createRowSetIterator (null);

System.out.println ("RSI" + rsi);

int i = 0;

rowCount int = (int) voLogs.getEstimatedRowCount ();

stateIndex = new int [rowCount];

While (rsi.hasNext ()) {}

System.out.println ("SEGUINTE!");

Line nextRow = rsi.next ();

iter.setCurrentRowWithKey (nextRow.getKey () .toStringFormat (true));

INDX int = iter.getCurrentRowIndexInRange ();

stateIndex [i] = indx;

System.out.println ("Index loop-" + indx);

i ++ ;

}

rsi.closeRowSetIterator ();

System.out.println ("INDEX" + stateIndex);

list.setSelectedIndices (stateIndex);

System.out.println ("LISTA" + list);

}

Then I valuechangelister to selectmanycheckbox this function:

{} public void filterLogs (ValueChangeEvent valueChangeEvent)

Dc2 DCIteratorBinding = (DCIteratorBinding) evaluteEL ("#{bindings.") EntityLogsVO1Iterator}");

ViewObject vo2 = dc2.getViewObject ();

String WhereClause = "LOG_TYPE in (";"."

System.out.println ("VALUE" + valueChangeEvent.getNewValue ());

If (valueChangeEvent.getNewValue ()! = null) {}

java.util.ArrayList selectedValues = (java.util.ArrayList) valueChangeEvent.getNewValue ();

for (int i = 0; i < selectedValues.size (); i ++) {}

If (!.) WhereClause.equals ("LOG_TYPE in (""))

WhereClause += ', ';

WhereClause += "'" + selectedValues.get (i) + "'";

}

WhereClause += ') ";

VO2.setWhereClause (WhereClause);

VO2. ExecuteQuery();

} else {}

WhereClause = "1 = 2";

VO2.setWhereClause (WhereClause);

VO2. ExecuteQuery();

}

}

But when I uncheck a selectmanychoice point, cause this error:

valueChangeListener = "#{backingBeanScope.backing_OrderDetail.filterLogs}": java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast in java.util.ArrayList.] "

My selectmanycheckbox have this property:

< af:selectManyCheckbox value = "#{bindings." LogTypesVO1.inputValue}.

label = "#{bindings." LogTypesVO1.label}"id ="smc1.

Simple Binding = "#{backingBeanScope.backing_OrderDetail.SMC1}" = 'true' "

layout = "horizontal" autoSubmit = 'true '.

valueChangeListener = "#{backingBeanScope.backing_OrderDetail.filterLogs}" >

< f: selectItems value = "#{bindings." LogTypesVO1.items}"id ="si2 ".

Binding="#{backingBeanScope.backing_OrderDetail.si2}"/ >

< / af:selectManyCheckbox >

my version of jdev is 11.2.4.0

User

You can not convert the ArrayList to direct object value

java.util.ArrayList selectedValues = (java.util.ArrayList) valueChangeEvent.getNewValue ();

write like this-

ArrayList selectedValues = new ArrayList();

        Object [] str = (Object []) valueChangeEvent.getNewValue ();
        for (int i = 0; i)< str.length;="" i++)="" {="">
           

System.out.println (STR [i]);

selectedValues.add (str [i]); Add the values from an ArrayList

        }

Ashish

Tags: Java

Similar Questions

  • Question of Wlan Qosmio F50-108 - the device may not be present

    Hello.

    I have a problem with my wirreles driver.
    When I try to install, it gorge yourself me the following error message: "the device may not be present or may have been ejected / disconnected from the system." Insert or reinsert now. »

    Hope that this problem can be solved :)

    To my knowledge, this message is displayed during the installation of the wrong drivers or is not compatible

    Have you chosen the right WLan driver?

    As far as I know, the laptop uses Intel 5100AGN wireless network card and the Wlan driver can be found here also:
    http://APS2.toshiba-tro.de/WLAN/

    Check it!

  • Satellite A110-351: error: the game may not be coherent AGP is disabled

    I have Toshiba Satellite A110-351 and whenever I run some games im getting this error: ' the game may not be coherent AGP is off.»

    Please enable AGP for consistency. "No idea where in the Bios or drivers I can activate it?

    Hello

    Perhaps you have not enabled the acceleration of the PMA?
    Check this box:
    Start the DirectX with the dxdiag command in the immediate window and check all the available tabs.
    In one of this tab, you will find the options enable graphics acceleration ;)

  • The user may not delete the file from the folder on the server but can rename file

    Hi all

    Please suggest how to give permission to some folder so that the user may not delete all the files in the folder but can create, update, or RENAME the folder.
    I gave permission where user is not able to delete the file, but the user is also able to rename the file or folder in this specific folder.

    Thanks in advance.

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

    http://social.technet.Microsoft.com/forums/en-us/winserverfiles/threads

  • Error to connect to the webcast - Windows Media Player cannot play the file because a network error occurred. The server may not be available.

    Original title - PROBLEM WITH WINDOWS MEDIA PLAYER

    I tried to view a technical presentation online and this is the error I received; -what it means and how can I fix it?

    Windows Media Player cannot play the file because a network error occurred. The server may not be available. Check that you are connected to the network and that your proxy settings are correct.

    Hi NinaOwens,


    1. are you able to view the same content from a different computer?
    2. you get the error only with a particular file or with the majority of them?
    3. during how long have you had this problem?
    4. did you sons of recent change the computer?

    You can see the links below and check if the proxy settings are correctly performed. Also you can check the other links to verify network connections-
    http://Windows.Microsoft.com/en-us/Windows-Vista/change-proxy-settings-in-Internet-Explorer

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-Internet-connection-problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-connection-problems

     

    I hope this helps.

  • The resolution does not change everytime I turn on my pc or restart?

    The resolution does not change everytime I turn on my pc or restart?

    The resolution does not change everytime I turn on my pc or restart?

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/resolution-changes-after-reboot/448c4735-851a-44BB-8286-9d160a9f335e

  • Why the error message is created, and the statement may not run properly?

    Why the error message is created, and the statement may not run properly?
    SQL> select sql_handle, plan_name, creator from dba_sql_plan_baselines where 
    sql_text='select*from hr.jobs where min_salary>10000';
    select sql_handle,plan_name,creator from dba_sql_plan_baselines 
    where sql_text='select*from hr.jobs where min_salary>10000'
                                                                          *
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected - got CLOB

    It is true that it is the problem of syntax. Change the increased as follows, the increased can run successfully:

    SQL> select sql_handle,plan_name,creator from dba_sql_plan_baselines where sql_text
    like 'select*from hr.jobs where min_salary>10000';
    

    Edited by: jetq may 3, 2010 19:26

  • ClassCastException: java.util.ArrayList cannot be cast to oracle.adf.view.f

    Hello

    I am currently check why I encounter this error in a line graph?

    Basically I have the managed bean
    public class TestMB
    {
      private List<Object[]> tabularData = new ArrayList<Object[]>();
    
      public void setTabularData(List<Object[]> tabularData)
      {
        this.tabularData = tabularData;
      }
    
      public List<Object[]> getTabularData()
      {
        
        return tabularData;
      }
    }
    In the code, I have this defined graphic line.
    <dvt:lineGraph id="lineGraph1" subType="LINE_VERT_ABS"
       emptyText="No Data To Display"
       value="#{backingBeanScope.TestMB.tabularData}"
       contentDelivery="immediate">
           <dvt:background>
              <dvt:specialEffects/>
           </dvt:background>
           <dvt:graphPlotArea/>
           <dvt:seriesSet>
              <dvt:series/>
           </dvt:seriesSet>
           <dvt:o1Axis/>
           <dvt:y1Axis/>
           <dvt:legendArea automaticPlacement="AP_NEVER"/>
    </dvt:lineGraph>
    But I continued to encounter this error.
    java.lang.ClassCastException: java.util.ArrayList cannot be cast to oracle.adf.view.faces.bi.model.DataModel
    My thought is that I would be able to display the emptytext attribute.

    JDeveloper 11.1.1.6

    Published by: Neliel Sep 9, 2012 23:51

    Neliel,

    You must link to the tabularData property and not to the value property.

    
           
              
           
           
           
              
           
           
           
           
    
    

    Arun-

  • java.lang.ClassCastException: java.util.ArrayList cannot be cast to oracle.adf.view.faces.bi.model.GeoMapDataModel

    Hello world

    LM l and map creation using table list as the data collection for the leaf theme of points to specify a given location. The problem l get here is that, after setting up the collection of data on the theme tab, the choice address and longtude & latitudes remain disabled. LM using JDeveloper 12 c last version & weblogic 12 c. When l run my lm project this error: java.lang.ClassCastException: java.util.ArrayList cannot be cast to oracle.adf.view.faces.bi.model.GeoMapDataModel. Here is the source code of my page and the Bean managed that define the ArrayList

    MapBean.pngPageSourceCode.png

    kdario Thanks for your comment, no. l didn't download the demo of component, but l did it right now. l use developer J 12 c to see how GeoMapDataModel is created .it will come back to you if any problem arises.

  • How to pass the java.util.ArrayList &lt; property &gt; type attribute to a tag

    How to move a type attribute, java.util.ArrayList < my.entity.Property > to a Tag implementation class?

    Please advise!

    Thank you
    Joe
    package my.tags;
    
    import java.io.IOException;
    import java.util.ArrayList;
    
    import javax.servlet.jsp.tagext.SimpleTagSupport;
    import javax.servlet.jsp.JspException;
    
    import my.entity.Property;
    
    public class PropertiesTag extends SimpleTagSupport {
        private ArrayList<Property> properties;
    
        public void setProperties(ArrayList<Property> properties) {
              this.properties = properties;
         }
    
         public void doTag() throws JspException, IOException {
         ..
         }     
    }
    <?xml version="1.0" encoding="utf-8" ?>
    <taglib ...>
         <tag>
              <name>propertiesTag</name>
              <tag-class>my.tags.PropertiesTag</tag-class>
              <body-content>empty</body-content>
              <description>Displays the product selection left menu</description>
              <attribute>
                   <name>properties</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
                   <type>java.util.ArrayList<my.entity.Property></type>
              </attribute>
         </tag>
    </taglib>
    Here is the error message:
    org.xml.sax.SAXParseException: The element type "my.entity.Property" must be terminated by the matching end-tag "</my.entity.Property>".

    As far as I know he did not use generics in a descriptor tag. Read the docs for this. Here is a quick tutorial on the writing of simple tags.

  • Windows 7 has changed after the Automatic Updates - screen resolution may not change back

    Last night was automatic updates from Microsoft.  Today, the resolution of the screen and the icons are huge.   Tried to change the resolution of the screen through Control Panel but can not find the same as before.  I tried to adjust the zoom level on Chrome but now everything is long and lean.

    Tried to do a system restore, but it has a red x next to it and will let me not turn it on.  How to restore my resolution wallpapers and icons to their previous size etc?

    Completely, remove the current (or software) driver and install the latest driver available.  For instructions on how to do read everything to update the drivers of my partner JMH3143 http://answers.microsoft.com/en-us/windows/wiki/windows_other-hardware/updating-a-driver/a5e6345e-af9b-4099-bef0-8d22254aa1c1?tm=1436753520149 here
  • Cannot install windows installer may not be correctly configured javas

    tried to instsll jsvs.com jsvs... stopped with the message that windows install msy not be configured correctly snf installation program closes

    Hello

    1. you try to install the latest version of java?

    You can check if the windows service install has been disabled, if yes, then turn it on.

    This problem may occur for various reasons:

    1 Windows Installer is disabled

    2 Windows install is not installed correctly.

    Step 1:

    Steps to manually start the Windows Installer service

    a. click Start, type Services.msc and press {ENTER}.

    b. double-click Windows Installer.

    c. set the Startup type for Windows Installer to manual or automatic.

    d. click Start to start the service. Note the error message, if any.

    e. click OK.

    Step 2:

    Update your windows installer by reinstalling Windows Installer 4.5 Redistributable:

    http://www.Microsoft.com/downloads/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en

    For 32 bit OS Vista download: Windows6. 0-KB942288-v2-x 86.msu

    For 64-bit operating system Vista download: Windows6. 0-KB942288-v2-x 64.msu

    Install windows install and reboot the computer and check if it works well.

  • Windows Installer error - hardwaree to the computer may not support booting to this disk.

    I need to reinstall Windows 7 in preparation for upgrade to Windows 10

    I use the Bootcamp Assistant to install Windows 7 and have the following problem.

    1. I partition my SSD 512 drivce, creation of a score of 91 GB for Windows. The partition is created successfully and the MacBook restarts on the Windows Setup disc.

    2, I select my BootCamp (91GB) partition

    3. I then click on "player (Advanced) Option, and then click format.

    4. I then get the following error:

    "Windows cannot be installed to this disk. This computer's hardware may not support booting to

    This disc. Make sure that the drive controller is enabled in the computer's BIOS menu.

    What can I do to solve this problem, so Windows thinks he can boot from this partition?

    Please disconnect all external storage devices, USB hubs and external devices. Run the following two procedures, then try again to BCA.

    Reset the management system (SCM) controller on your Mac - Apple Support

    How to reset the NVRAM on your Mac - Apple Support

  • the button may not get focus, Pls help

    A screen contained two buttons and a browserfield. I use jde 5.0, for this browserfield either on net.rim.device.api.browser.field2.BrowserField.

    This browserfield be contained in a Manager.

    for these two buttons, I use another Manager to add.

    The problem is: the button can not get focus after I move the browserfield box.

    Just show that arrowhead at the top of the button of button.this cannot get the focus. also can't click

    OK, got the solution.

    just use the BrowserFieldConfig.NAVIGATION_MODE_CARET, and then may alter browserfield performance.

  • Loop slider does not appear when you move to the right of the loop; may not extend the duration of the loop; aaarrrgh.

    Have checked tutorials and help , but doesn't understand why hovering over the right angle, at the top of the track loop not give me the slider that allows me to draw on the track and extend the playback loop.

    Long kickflip is the one that gives me a problem right now, but Latin Bembe Cowbell does not work for me either!

    It is my first try at GarageBand, and maybe my last very soon.  Thanks for easy to understand help you send.

    The two loops work very well for me in GarageBand 10.1.1. Skip on the upper right corner of the audio region to display the cursor of the loop, if it is not, save your project and the test in a different project.   Restart your Mac, if you don't have already done.

Maybe you are looking for

  • Why am I able to receive an email from my own email address I never sent?

    I get a mail in my Inbox which sends it to my spam folder sent by my own email address that I have never written or sent. It's a junk mail and I want to stop, I see no way to stop email with some unwanted words as you can in windows xp.

  • Hoy to convert an Ascii text file table

    I'm trying to parse this file in a table (can also be a spreadsheet), but there is no way to make the separation by spaces. Any idea? Attached the text file. Victor

  • Light on the wireless network adapter is orange instead of blue

    Hi I have a laptop Compaq Presario f700. The wireless card does not work the light is orange instead of blue, the switch is on, I tried updating it and its updates. The strange thing is that after a while like 3 hours or 4 led blue lights and it work

  • How to selectively remove Restore Points in Windows 7 Pro

    The discussion that I found to this question did not address the selective deletion of restore points. It describes how to remove all but most recent which does not help me. Does anyone have an answer? Thank you!

  • Review of CCNA security

    My review of CCNA will expire January 2, 2015. I am interested to take the exam for CCNA security this month and I hope it will go for security CCNP after that... I have a few questions (1) there is only one available exam IINS 640-554 ? (2) if I pas