How to find the size of an arrayList through Expression Builder.

Hai OTN,
How to find the size of an arrayList through Expression. I have a managed bean in View Scope.I am using Jdeveloper 11.1.1.2 with ADF Faces components.
Managed Bean :
ArrayList<IllnessEmployeesObj> employeeGridList =
new ArrayList<IllnessEmployeesObj>();
JSPX :
Value="#{viewScope.PandIVH.employeeGridList.size}"
Error : java.lang.NumberFormatException: For input string: "size"

Hi Dinil,
I have provided you with a sample that would show you the how you can get the size of an arraylist
the sample has a page untitled1 and a bean named test.
I have run in on jdev 11.1.2 and it is ok, it will be ok on 11.1.3
after running the sample you will see the 2.
please remember that you must add the JSTL taglib on the viewcontroller.
just right click on viewcontroller, go to tag lib select the jstl.
page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>untitled1</title>
</head>
<body>
<h:form>
<h:outputText value="#{fn:length(test.a)}"/>
</h:form>
</body>
</html>
</f:view>
bean
import java.util.ArrayList;
public class Test {
public Test() {
a= new ArrayList();
Object o=new Object();
a.add(o);
a.add(o);
ArrayList a;
public void setA(ArrayList a) {
this.a = a;
public ArrayList getA() {
return a;
I hope this sample came handy.
regards,

Similar Messages

  • How to find the size of a database?

    I'm not an oracle dba but a report developer. I'd like to find out the size of my database.
    Is this possible using simple query?

    francislazaro wrote:
    I'm not an oracle dba but a report developer. I'd like to find out the size of my database.
    Is this possible using simple query?There are many threads related to the same topic,
    http://forums.oracle.com/forums/search.jspa?threadID=&q=How+to+find+the+size+of+a+database&objID=f61&dateRange=all&userID=&numResults=15&rankBy=10001
    HTH
    Aman....

  • How to find the size of the pipe. I mean the total number of bytes/messages available in the named pipe?

    How to find the size of the pipe. I mean the total number of bytes/messages available in the named pipe?
    NAVEEN

    I'm afraid this forum for Microsoft Project Customization and Programming  is not the correct forum for your question. Please Choose correct forum in order
    to get help from experts. I think your question is more relevant to SQL server
    kirtesh

  • How to find the size (in Mb) of a project in Aperture 3?

    I do not know a quick way to find the size of the originals e versions in a project in Aperture 3.  Would any one know how to do this?
    Tks
    Pedro

    Take a look in the "More Like This" section in the right-hand column for discussions about this.
    The answer is: you can't.  Aperture is not so simply structured that you can select a group of Images and "weigh" them.
    If needed, your easiest solution is to export the Images as a new Library and include the Originals.  The size of that Library is more than but close to the size of the Originals and the Versions.
    HTH.

  • How to find the Size of an Idoc With data

    Hi All,
    There is business case where in the partner needs an Idoc with size 200KB - 250KB  triggerd from SAP.
    Is there any chace of knowing the size of an Idoc with data before it gets tirrgerd from SAP.
    Please Help
    Thanks,
    Suma

    Hi Dinil,
    I have provided you with a sample that would show you the how you can get the size of an arraylist
    the sample has a page untitled1 and a bean named test.
    I have run in on jdev 11.1.2 and it is ok, it will be ok on 11.1.3
    after running the sample you will see the 2.
    please remember that you must add the JSTL taglib on the viewcontroller.
    just right click on viewcontroller, go to tag lib select the jstl.
    page
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>untitled1</title>
    </head>
    <body>
    <h:form>
    <h:outputText value="#{fn:length(test.a)}"/>
    </h:form>
    </body>
    </html>
    </f:view>
    bean
    import java.util.ArrayList;
    public class Test {
    public Test() {
    a= new ArrayList();
    Object o=new Object();
    a.add(o);
    a.add(o);
    ArrayList a;
    public void setA(ArrayList a) {
    this.a = a;
    public ArrayList getA() {
    return a;
    I hope this sample came handy.
    regards,

  • How to find the size of a Table

    Dear all,
    How can i find the size of a table in a schema and size of the schema also.
    Thanks
    Mahi

    Try out with the help of this package, which will give out the total bytes, unused bytes, calculate the free bytes from total byes-unused bytes.
    dbms_space.unused_space(
    upper(oname),upper(tbname),upper('TABLE'),
    total_blocks, total_bytes,
    unused_blocks, unused_bytes,
    last_used_extent_file_id ,
    last_used_extent_block_id,
    last_used_block
    );

  • How to find the size of a file or folder

    How can I find the size of a file or folder?
    I am trying to determine the size of my iPhoto and Mail folder.
    It says "Size: --" under general from Get Info.

    It's working fine...
    When you ask for that info, and Finder presents those '--' dashes instead of a value, actually, Finder is calculating the value in background.
    That's something that i recently noticed and wonder why tha heck he needs to do all that work by himself, kinda re-inventing the wheel of file size value "calculus"...
    I posted some thoughts about it here: File / Folder size... How do Finder gets it?
    Will appreciate feedback about this!
    Props!

  • How to find the size of a Oracle 11g table

    I want to find the size of a table in Oracle 11g.
    I hope, my question is clear.
    Please revert with the reply to my query.
    Regards

    --- List all tables sorted by size
    set lines 100 pages 999
    col     segment_name     format a40
    col      mb           format 999,999,999
    select     segment_name
    ,     ceil(sum(bytes) / 1024 / 1024) "MB"
    from     dba_segments
    where     segment_type = 'TABLE'
    group     by segment_name
    order      by ceil(sum(bytes) / 1024 / 1024) desc
    --- List all tables owned by a user sorted by size
    set lines 100 pages 999
    col     segment_name     format a40
    col      mb           format 999,999,999
    select     segment_name
    ,     ceil(sum(bytes) / 1024 / 1024) "MB"
    from     dba_segments
    where     owner like '&user'
    and     segment_type = 'TABLE'
    group     by segment_name
    order      by ceil(sum(bytes) / 1024 / 1024) desc
    /

  • How to find the size of a field

    Can somebody tell how to find the sie of a varchar2 field?
    Thanks.

    SQL> desc global_name
    Name Null? Type
    GLOBAL_NAME VARCHAR2(4000)
    SQL> select global_name from global_name;
    GLOBAL_NAME
    ITFD.XXXXX.CO.XX
    1* select vsize(global_name) from global_name
    SQL> /
    VSIZE(GLOBAL_NAME)
    16

  • How to find the size (and sizelimit) BPS web interface

    Hello.
    We have build an application with the SEM-BPS webinterface builder.
    In the past we had problems with the size off this application. After we had added some new tabs in the application the size limit had been exceeded and the web inteface could not been activated. So we had to remove the new tabs into a new webinterface.
    Now we have to add again some new tabs into the webinterface application. That brings up some questions.
    Wat is the sizelimit of the webinterface application?
    Can we change this limit?
    How can we know the size off the current application?
    How can we find out the size of a separate tab in the webinterface? (So that we can make a prediction of the size which will be added to the web interface)?
    Thanks and regards,
    Eldo.

    Trevor.Dennis wrote:
    John, are there already differences?  I thought 13.1 was mainly about retina display support, but I guess there would also be other fixes released while they were at it.
    Yes, definitely already differences. I sympathize with Photoshop instructors (online and offline).
    The headline change was Retina support but that was also made available to non-Cloud versions.
    Other Cloud-only changes in 13.1 are listed here
    http://helpx.adobe.com/photoshop/using/whats-new.html
    http://psd.tutsplus.com/articles/news/cs6_1/
    Non-Cloud CS6 users have been very vocal and disgruntled about some of these changes.

  • How to find the size of data transferred(migrated) in the receiver system

    Hi all,
    I have successfully implemented time-based reduction Process type using TDMS.
    Now, I want to know the size of the data that was transferred to the receiver system. Is there a way to find out about this?
    Thanks ,
    Mohammed Tauseef Ahmed

    Thanks Eddy for the reply.
    The log shows the message Total data transfer volume (KB): 16.055.606
    How do I interpret  16.055.606 KB, doe this mean 16,055 KB or 16 million KB(which does not look possible)?
    Thanks,
    Mohammed Tauseef Ahmed

  • How to find the size of the master data objects in the BW system?

    Hi,
    We would like to understand the size of the master data tables overall for a specific source system (Logical name is Ex.ABCD, which supplies all master data to BW). Can you please advise the procedure to find out this?
    Is there any table that will allows to see all the master data objects related to specific sources system so that we can find out that table size? Thanks.
    For example, we have many Texts, Hier & Attributes.
    0COUNTRY_TEXT
    0REGION_TEXT
    0PERSON_ATTR
    0MATERIAL_LPRH_HIER
    Advance Thanks.
    Edited by: BW USA on Feb 2, 2010 10:52 AM

    Hi,
    You can find out all the master data tales used in the BW system by
    Tcode : SE11
    Enter as /BIC/P* for master data tables and press F4 which gives list of master data tables currently used in BW system.
    Similarly for Texts  /BIC/T*  and press F4
    Similarly for Hierarchies /BIC/H-* press F4
    and can know the size of the all tables.
    Thanks,
    Gopal

  • How to find the Size of a Folder &also list the sub folder and files in it

    In my program I want to know the size of a folder . The input given is the path of the folder and the ouptut should be the list of files and subfolders with their size. What is the function we have to use for this?
    Thank you

    class: file
    method: listFiles() - list all files of the dir referenced by the file object
    method: length() - give the size of the file referenced by the file object ; you have to call this method on all file of the dir to make the sum and have the dir size

  • How to find the list of users loggin through HTTP session

    Hi All,
    we are using SRM 5.5 system with ITS. I am able to find the list of concurrent users from ABAP level using report "CCUEVAL" but how do I know the list of concurrent users logged in from HTTP session?.
    could you please let us know the SAP note number or any report?
    Thanks in advance,
    Mohan Karri

    Hi Uday,
    thank you very much for your prompt response.
    I need a report because by end of every month I would need the average peak http users list for the reporting month.
    or tell me how to find " how many users logged in through HTTP session in a day?"
    Thanks
    Mohan

  • How to find the sessions connected to oracle through application server?

    Hi all,
    i want to restrict my application server users from the deletion of the data in my database.
    for this i was try to find out the application name from v$session but it is showing some application names and some blanks. i need to find out the application server name, so that i can restrict the users in product user profile.
    is there any view to find the sessions and applications which are connected to oracle database?
    Thanks,
    Sandeep

    hi pavan,
    Even whne the privileges are revoked, the java application(users) can able to delete data in the database schema through the java application.
    please suggest me on this?
    --sandeep                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • DVD from USA on a Mac in germany!

    Hi everybody! I have a MacBook Pro (os x lion), i bought it 4 moths ago. I've just realized, that my mac cannot read DVD from USA. So my question, is there way to change this so that my mac can read every formate? If yes how? Thank you all

  • Multiple Apple IDs with multiple PCs and multiple AppleTVs - content not authorised

    So, this is a slightly complicated setup; but it should work... and it does, until randomly AppleTV decides that it isn't authorised to play some content. Setup is this: PC1 - authorised for AppleID1, AppleID2, AppleID3 and AppleID4 - HomeSharing tur

  • HELP PLEASE!!! ipod will not update!!!

    i have had my ipod mini for a little over a year. i currently have about 900 song on my Itunes Library. However, once i got to almost 900 songs, my itunes started saying that "songs on the ipod cannot be update because all of the playlists selected f

  • Mail just stops receiving email

    Mail just stops receiving mail randomly and multiple times through out the day.  We are using an in house IMAP mail server.  I can use Sparrow, PostBox, etc and it never stops receiving using those clients.  All I have to do to get Mail working again

  • Sportlight, Privacy and my external hard drive

    I have a Powerbook. At the studio it's plugged into a large Firewire HD for back-up. So every day I unplug from the external and go home, where I use my powerbook without the external drive. Every morning I come to the studio and plug in the external