Indexed property question

I have several forms each containing a unique product. Each product has 'other' items that can be associated with each product.
Rather than creating setter and getter methods for each 'other' item (too many to do), I thought I'd send the values of those 'other' items to an indexed property like String[] other. A user will be presented with a list of 10 or so 'other' items for each, and each 'other' item will have a checkbox. I'd like only the checked values to show up on another page.
Is an indexed property the way to go with this? Plus I could iterate through the 'other' list on the seperate page. Any examples anyone knows of I can look at for some help? Thanks!

public String button1_action() {
setValue("#{AdminBean.rule[1]}",
selector.getValue());
How about
getAdminBean().setRule(1, selector.getValue());Assuming that selector.getValue() returns a Long and that AdminBean is either an Application, Session, or Request Bean.
Best regards
Antonio.

Similar Messages

  • System generated index property not generated in database

    Hi,
    I created an offline table by copying it from an (first) online database to my project. The table contains a unique key constraint, which references a system generated index. Now I used this offline table to generate a table in another (second) online database. This all works well except, that the "System Generated" property of the index is "false" and not "true" as in the offline table (and the first online database). When I manually reconcile the same table to the second online database again, there is always a difference shown for this index property. When I try to continue the reconcile process to change this property I get an error message, that the index cannot be dropped because it is obviousely referenced by the unique constraint.
    When I drop the constraint and try to generate the index only I get the following warning message:
    Jan 11, 2012 2:08:59 PM oracle.javatools.db.property.AbstractPropertyManager processDiffs
    WARNING: Unsupported property: systemGenerated
    Is there a way to work around this annoying behavour? Is it possible to change this index property by an ALTER INDEX statement?
    Im using JDeveloper 11.1.2.1.0 (Build JDEVADF_11.1.2.1.0_GENERIC_110907.2314.6081)
    Thanks for help and hints
    Thomas
    Edited by: thmayr on 11.01.2012 05:08

    Hi,
    it might be due to some BUG in RDBMS...
    First Check the Secondary index in TEST system
    Look at the Transport Number in DEV system, If this is having error, then it will show you the error details also,
    If that not moved Properly then you need to create another request for the INDEX and move it again
    See the threads with similar problem...
    Warning: Index does not exist in database system MSSQL
    Index does not exist in database system ORACLE??????
    Re creation of database index
    Hope it will solve your problem...
    <b>Reward Points if useful</b>
    Thanks & Regards
    ilesh 24x7

  • Indexed property - editor needed?

    Folks,
    I have a bean (MyBean) with a indexed property (array of class type ClassX). It has setter and getters (total of 4) according to Java Beans specification.
    On Netbeans, the indexed property appears on Properties list. But, I can�t add itens to it, like it occurs when the property is not indexed or is a String indexed property. I think I should assign an 'editor' to it.
    Does anybody knows how to do this?
    The idea is: the ClassX is a JComponent and the Frame has some of them (10, for example). This indexed property from MyBean should allow users to add as many as they want, but limited to those already added to the Frame. They could add, for example, 4 of 10 to the array.
    Thanks!

    Did you try selecting portal components like books, pages, portlets. I have seen this problem too. But it would go away when you restart workshop.
    --SJ                                                                                                                                                                                                                                                                                                               

  • Indexed property

    i have 20 Text fileds in my form and this may vary when the database data is changed
    so i want to use index property to that.
    how can i achive in the staruts
    i have declared in struts-config.xml as my property
    <form-property name="captionId" type="java.lang.String[]"/>
    but i dont know how to implement this
    please help

    Hi konkodi221,
    Hi had a similar problem where i was populating my form from a database and updating the form contents back to the database.I solved the problem using Dynamic action forms in Sturts.
    Here is the link :
    http://javaboutique.internet.com/tutorials/strutsform/index.html

  • Help with array / indexed property

    Hi,
    I am trying to save the value of multiple dropdowns in the Session Bean. Therefore, I created an index property "rule" in the Bean.
    Each time the page is loadad, a different dropdown appears depending on the previous choices. If the ok button is clicked, the action is performed to save the current dropdown value in the index property:
    public String button1_action() {
    int cnt = 1;
    // if page was loaded before, replace count
    if (getAdminBean().getCount() > 0) {
    cnt = getAdminBean().getCount() +1;
    } else {
    // save current count in Session
    getAdminBean().setCount(cnt);
    setValue("#{AdminBean.rule[cnt-1]}", selectme.getValue());
    This is the error message:
    Exception Details: javax.faces.el.PropertyNotFoundException
    Error setting property '-1' in bean of type null
    Possible Source of Error:
    Class Name: com.sun.faces.el.PropertyResolverImpl
    File Name: PropertyResolverImpl.java
    Method Name: setValue
    Line Number: 153
    I have played around and even the following code would not work to save a value at the first position of the index property:
    setValue("#{AdminBean.rule[0]}", selectme.getValue());
    Can anyone help?
    Thanks,
    Nils

    You can not set the index as you use here i.e
    #{AdminBean.rule[cnt-1]}
    is not correct. Because in JSF the "[" is used for some other purpose.
    I would suggest you to use another property called "index"
    setValue("#{AdminBean.index", cnt-1);
    setValue("#{AdminBean.rule", selectme.getValue());
    Inside the session bean, in the method setRule get the index (already set) and place your value in the correct indexed array.
    Same logic you can use to get the value too
    setValue("#{AdminBean.index", cnt-1);
    getValue("#{AdminBean.rule");
    the method getRule() should get the value for the index and return it.
    - WInston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • Indexed Property Example Code

    Is there an example out there for a Java Newby - I am trying to save data in an array - that is using the indexed property in a SessionBean.
    I have then added the indexed property and bound the value to it:
    * Indexed getter for property rule.
    * @param index Index of the property.
    * @return Value of the property at <CODE>index</CODE>.
    public Long getRule(int index) {
    return this.rule[index];
    * Indexed setter for property rule.
    * @param index Index of the property.
    * @param rule New value of the property at <CODE>index</CODE>.
    public void setRule(int index, Long rule) {
    this.rule[index] = rule;
    public String button1_action() {
    setValue("#{AdminBean.rule[1]}", selector.getValue());
    I am getting the followong error:
    Exception Details: org.apache.jasper.JasperException
    Error getting property 'rule' from bean of type magicwheel.AdminBean
    Possible Source of Error:
    Class Name: org.apache.jasper.servlet.JspServletWrapper
    File Name: JspServletWrapper.java
    Method Name: service
    Line Number: 384
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Can anyone help, possibly with some example code?
    Thanks,
    Nils

    public String button1_action() {
    setValue("#{AdminBean.rule[1]}",
    selector.getValue());
    How about
    getAdminBean().setRule(1, selector.getValue());Assuming that selector.getValue() returns a Long and that AdminBean is either an Application, Session, or Request Bean.
    Best regards
    Antonio.

  • Binding to an indexed property

    Hi
    Not sure if this is the correct way to do this, but I created
    an indexed property ( String array ) in the session bean
    with the intention of binding a TextField value to an
    indexed position on the indexed property. When attempting
    to perform the Property Binding for the TextField component
    I don't see the indexed property to bind to.
    Is this possible ?
    Thanks

    Hi Colinodo,
    I am just interacting with people so as to where an external customer can view the filed bugs.
    Once i get the link I would be providing you the reference number and the link.
    Regards.

  • Index property CS4

    Hi there,
    I have issue with index property.
    Running this script with this same document o have different index values for rectangles.
    frames = doc.rectangles;
    for (var i=0;i<frames.length;i++) {
            var frame = frames[i];
           $.writeln(frame.id+" "+frame.index+" "+frame.label);
    desktop Indesign
    33175 0 i12
    33176 1 i6
    33177 2 i9
    33178 3 i3
    33272 4 i10
    33273 5 i4
    33274 6 i7
    33275 7 i1
    33465 8
    33460 9 i11
    33461 10 i5
    33462 11 i8
    33464 12 i2
    Indesign Server
    33175 4 i12
    33176 5 i6
    33177 6 i9
    33178 7 i3
    33272 8 i10
    33273 9 i4
    33274 10 i7
    33275 11 i1
    33465 12
    33460 0 i11
    33461 1 i5
    33462 2 i8
    33464 3 i2
    So index on Server is different. Index property on desktop edition works well and can be used as z-index.
    Is there workaround for this?
    Regards
    Piotr

    After many test now i'm sure, it's just bug in CS4 server, in CS5 server works fine.
    regards

  • Indexed Property, html:select

    Hello,
    Dev. Env. : JSP/Struts - Indexed Properties
    <c:forEach var="lines" items="${MbrLines.map.lines}">
    <td>
    <html:select name="lines" indexed="true" property="loc" >
    <%
    StringBuffer sb = new StringBuffer();
    DBAccess dba = new DBAccess();
    sb = dba.fillDropdown("ALLLOC",0,"");
    out.println(sb);
    %>
    </html:select>
    </td>
    </c:forEach>
    This is the code I have in a JSP used for edits. I fill the dropdown with all available locations(e.g. Chicago, Miami etc) from a database table.
    How do I set the current value in the record to be edited, say "Chicago", to be "selected" in the dropdown? Or, is there a way to pass the property�s current value to the DB method ?
    Any help is greatly appreciated. Thanks in advance.

    the HTML generated as folllows:
    as you may see, the bean has been interpreted to array, which I have correspondent set method in form. Please check the code for form in my previous post.
    If I radio button of any row, it sets all the rows. which looks very strange to me, because it shows to me that the beans has been seperated by using different names. as poDisplayVO[0] ; poDisplayVO[1] ; poDisplayVO[2.
    <! ------------------------ html genterated ------------------------------------------------>
    <tr>
    <td>
    Accounting Studies
    </td>
    <td>
    <input type="radio" name="poDisplayVO[0].fosVO.select" value="Accounting">
    Accounting
    </td>
    <td>
    <input type="radio" name="poDisplayVO[0].fosVO.select" value="no"> NO
    </td>
    <td>
    <input type="radio" name="poDisplayVO[0].fosVO.select" value="yes"> YES
    </td>
    </tr>
    <tr>
    <td>
    Accounting Studies
    </td>
    <td>
    <input type="radio" name="poDisplayVO[1].fosVO.select" value="Bookkeeping">
    Bookkeeping
    </td>
    <td>
    <input type="radio" name="poDisplayVO[1].fosVO.select" value="no"> NO
    </td>
    <td>
    <input type="radio" name="poDisplayVO[1].fosVO.select" value="yes"> YES
    </td>
    </tr>
    <tr>
    <td>
    Accounting Studies
    </td>
    <td>
    <input type="radio" name="poDisplayVO[2].fosVO.select" value="Computerized Accounting(Duplicate)">
    Computerized Accounting(Duplicate)
    </td>
    <td>
    <input type="radio" name="poDisplayVO[2].fosVO.select" value="no"> NO
    </td>
    <td>
    <input type="radio" name="poDisplayVO[2].fosVO.select" value="yes"> YES
    </td>
    </tr>

  • Index creation -- question

    Hi,
    I have a question about creating indexes for my environment here
    i have a table that gets populated with about 200 million rows everyday.
    my table structure is as follows
    (tab_id,orig_add,orig_nw,dest_add,dest_nw,ts_arrive,ts_leave,status,fn_type,error_code)
    tab_id number
    orig_add varchar2
    dest_add varchar2
    orig_nw number
    dest_nw number
    ts_arrive date
    ts_leave date
    status number -- (0 /1)
    fn_type number -- (0/1/2/3/4/5)
    errorcode -- (about 20 distinct values)
    this table has been partitioned on ts_leave (hourly)
    if i know i am going to be using a lot of queries with the where clause like :
    orig_nw=something and dest_nw=something
    can i have a local index on (orig_nw,dest_nw) ?
    what about fields like status and errorcode and fn_type?, is a bitmap index suited for this?
    while indexes are being created, i will also have to be reminded of the fact that a great number of inserts are being done every second
    Please advise..thanks

    Bitmaps are most beneficial if the status holds something like Booleans
    either False or True , Y or N , 0 or 1 . Not wholly true. Read this article by Jonathan Lewis and enlighten yourself.
    "Forget the vague expressions like "low cardinality." In most cases there are only two points to bear in mind when considering bitmap indexes. First, it is the number of different blocks in the table that you have to visit for a typical index value that is the major cost of using an individual index; changing an index from B*tree to bitmap won't magically make it a better index. Secondly, it is Oracle's optimiser mechanism for combining multiple bitmap indexes that makes them useful."
    Cheers, APC

  • Alter index rebuild question

    Hello experts,
    I have a simple question regarding rebuilding indexes...
    First, I am running 11.2.0.2 on Solaris 10.
    My reason for rebuilding is to relocate the indexes to their own tablespace, and while I recognize this is a subjective reason as far as performance is concerned, it makes administration easier.
    That being said, my question is in regards to use of "compute statistics" and also "online", and "nologging".
    Since I do want to minimize he impact to our users, and this table is one of the most used tables in the database, my syntax was going to be as follows:
    alter index <schema>.<index> rebuild online nologging tablespace <ts_idx> compute statistics;
    Questions:
    1.   does doing the rebuild online preclude queries against the table during the duration of the rebuild?
    2.   does use of nologging improve speed of rebuilding
    3.   is it advisable to include the "compute statistics".  I believe I read on Jonathan Lewis' page that statistics are gathered automatically and to include "compute statistics" was not necessary when rebuilding an index.
    And I guess one final question is whether I can include all the options in the same rebuild statement as I have shown above?
    I've tested the above in our test database, but it seems to hang when using the online option (with all the other options).
    Thanks in advance.

    Excellent resource.  Thanks for the link.  While I've read most of those discussions on either Jonathan's or Richard's web sites already, it is a good presentation and reference.
    Unfortunately, it does not answer either of the questions that I asked.  The reason I asked those questions is because the answers you gave contradict what i read in Oracle documentation (although it might be version specific).
    Also, it does seem to be slightly faster to rebuild using nologging (in my test environment).
    I've tested this with multiple indexes and the timing is slightly improved consistently.
    {quote}
    SQL> ALTER INDEX ARADMIN."T2179_C1_0944_1037" REBUILD LOGGING TABLESPACE REMEDY_IDX;
    Index altered.
    Elapsed: 00:00:10.68
    SQL> ALTER INDEX ARADMIN."T2179_C1_0944_1037" REBUILD nologging TABLESPACE REMEDY_IDX;
    Index altered.
    Elapsed: 00:00:08.50
    {quote}
    The use of online, however, seems to "hang" for some reason, even in my test database while no one else is logged into the database except me.
    Referencing Oracle's documentation, it says that rebuilding an index online does not allow queries against the base table.  This is why I asked this question, but your answer is different than Oracle's.  In this case, however, it is for Oracle 10.2, so not sure if this is still true for 11.2.
    Ref.  Oracle Text SQL Statements and Operators
    [ONLINE]
    ONLINE enables you to continue to perform updates, inserts, and deletes on a base table; it does not enable you to query the base table.
    You cannot use PARALLEL with ONLINE. ONLINE is only supported for CONTEXT indexes.
    Now, regarding the use of "compute statistics", I am pretty sure I recall reading either in Jonathan's papers, or in Richard's papers, that this is not necessary and/or is redundant.  But then why would Oracle include this as an option.  This is counter intuitive, which again is why I'm asking.  Do you know if any reference that can clear this up?

  • Again need indexed property

    Hi,
    I have in a jsp this nested...
    <nested:nest property="myList[0]">
    <nested:nest property="param[0]">
    <nested:text property="name">
    </nested:nest>
    </nested:nest>
    The problem is what struts invoke method getList() and not getList(int index), i have need what invoke getList(int index) because the list have to grow dinamically.
    any suggest???

    Im finding on web but now nothing solution.
    HELP!

  • GT60 2OC - Windows Experience Index scores - Question!

    I had a MSI GT70 0NC before this one and now I'm a bit confused with the Windows Experience Index on the graphics and HDD scores, on the GT70 the graphics score was 7.3 and 7.3 (Nvidia GT 670m) and on the MSI GT60 2OC I get 7.2 and 7.2 (Nvidia GT 770m), is this score good? I mean that I get lower score on a new/better graphics board? 
    The other question is about the 2 Msata drives in raid 0, the score on the old one was 7.9 (with a Samsung 840 Pro 256GB SSD) and now with the 2 Msata in raid 0 I get 7.8, is this score good? What is better: the 2 Msata or the single Samsung SSD? ... 

    I've contacted MSI UK sales department and was advised to try with customer support ( [email protected] ) and now I'm waiting for an answer... meanwhile I had some time to test and install the Samsung 840 PRO (removed the 750GB HDD) and made some tests on all drives, this is what I got using CrystalDisk Mark and Samsung Magician:
    The 2nd picture is made with RAPID mode activated (it was looking a but too boosted on CrystalDisk Mark) 
    Now the laptop feels again fast and "furious"  the bad part is that I don't have any other space to keep my files at the moment, just the 120GB from the 2 mSata and what is left from the SSD... I hope I can get an SATA board so I can use the SSD as Primary and the HDD as secondary/data drive.

  • BUG CSS Editor z-index property

    I use JDeveloper 10.1.3.1 to edit CSS.
    span.dialog { z-index: 100; } is underlined in red, although span.dialog { z-index: 99; } and span.dialog { z-index: 101; } are OK.

    Hi,
    thanks. I filed a bug with very low priority because a) a work around exists (to set it to 101) and b) at runtime it behaves as designed
    Frank

  • StartupFailureisFatal Property question

    What is name of the registeredclass that we need to specify for the
    startupFailureisFatal property. I have set it to the name of my virtual
    startup class, the name of my startup class, left it alone as
    registeredclass but I don't get the weblogic 4.5 server to shutdown when I
    throw an exception from the startup class. I would appreciate it if someone
    could give me an example of its use. Thanks.
    My weblogic.property file
    weblogic.system.startupClass.mezziaStartup=com.mezzia.planner.admin.MezziaSt
    artup
    weblogic.system.startupArgs.mezziaStartup=serverType=development,\
    serverOwner=me
    I have tried each of the following three settings but none of them cause the
    server to shutdown.
    weblogic.system.startupFailureisFatal.mezziaStartup=true
    weblogic.system.startupFailureisFatal.registeredclass=true
    weblogic.system.startupFailureisFatal.MezziaStartup=true
    I get the following error but the server doesn't shutdown.
    Wed Sep 06 16:37:37 EST 2000:<E> <WebLogicServer> Failed to invoke startup
    class mezziaStartup=com.mezzia.planner.admin.MezziaStartup
    I know it is probably something really simple but I can't figure out what I
    am doing wrong. Thanks Again.
    IRfan
    ---- BEA Documentation for Weblogic 4.5 ----
    You can use the following property to require that specific startup classes
    are correctly loaded before the server will start:
    weblogic.system.startupFailureisFatal.registeredclass=boolean
    The default is false, which will not affect the startup of WebLogic Server.
    If set to true, the server will not start if the class or classes registered
    to the indicated name throw an exception.

    If an expression evaluates to multiple objects, then the Powershell pipeline will automatically create and return an array of those objects.
    If the expression evaluates to a single object (sometimes referred to as being
    scalar) then the pipeline will return one object of that type.
    This can cause problems if the expression is normally expected to return multiple objects, and you write your script to always expect an array to be returned.  To mitigate that, in V3 they added a feature that will synthesize a Count property for the
    object with a value of 1.  But this can only work as long as the object doesn't already have Count property.  If the object already has a Count property, then any reference to .count will return the value of the native property.
    You see the same kind of situation with hash tables.  Hash table objects in Powershell have synthetic .keys and .values properties that return arrays of the hash table keys and values, respectively.  But Powershell syntax also allows you to reference
    hash table keys using the same dot notation used for returning properties.  This produces a conflict if the hash table actually has keys that are named 'keys' or 'values'.  If it does then the actual hash table entry having those key names is returned,
    not they key or value collection.  
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

Maybe you are looking for