Struts 11 UpdateAction - validate attribute - bug or incorrect usage?

I�m updating a row which has an date attribute. For this attribute I�ve created a method validator in the EO�s <entity>Impl.java file:
public boolean validateErledigtdatum(Date value)
DBTransaction trans = (DBTransaction)getDBTransaction();
Date currentDate = Bc4jUtils.getCurrentDbDate(trans);
return (value.compareTo(currentDate) >= 0);
The struts UpdateAction validate method calls the validateErledigtdatum(�) twice:
-     firstly, in the populateRow(�) which is executed correctly, comparing the input value with the currentDate
-     secondly, in the row.validate() method, which compares the currentDate with the Date value stored in the database.?!!??? This of course brings an error if the stored Date value does not pass the validateErledigtdatum(�):
Validation Error
You must correct the following error(s) before proceeding:
Attribute set validation method validateErledigtdatum failed for attribute Erledigtdatum in BehAuftrModule.AuftrPosList
Has anyone experienced something like this? Thanks in advance for suggestions.
Regards
gabriela

hi
I have been searching the JDeveloper help documentation for "validation method" and I could not find much useful information.
In JDeveloper 10g Preview there is a topic "Implementing Validation Logic", but most of the topics that discuss implementing validation logic in detail show a page that says "Topic not available in this release." ... I know it is a preview release, but without the proper documentation it is hard to "preview".
tnx
-Jan

Similar Messages

  • ORA-22370: incorrect usage of method AnyData Insert

    When I insert inherited SQL Types as payload into ANYDATA queue I am getting the following error.
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-22370: incorrect usage of method AnyData Insert
    ORA-06512: at "SYS.DBMS_AQ", line 243
    ORA-06512: at line 15
    The above error does not happen if the strucutre is flat and not inherited from other type.
    I have DOCUMENT_ADD_EVENT structure extends from EVENT_TYPE. IF I insert DOCUMENT_ADD_EVENT as payload, I get the above error but If I use DOCUMENT_ADD_EVENT_FLAT which does not extend any type works fine.
    Here is the example code :
    create type event_type as object
    name VARCHAR2(100 CHAR),
    description VARCHAR2(1000 CHAR),
    actor_id number,
    source_eid number,
    source_scope number,
    type VARCHAR2(1 CHAR)
    ) NOT FINAL NOT INSTANTIABLE;
    CREATE TYPE DOCUMENT_ADD_EVENT UNDER event_type
    properties DOCUMENT_ADDED
    CREATE TYPE DOCUMENT_ADD_EVENT_FLAT AS OBJECT
    name VARCHAR2(100 CHAR),
    description VARCHAR2(1000 CHAR),
    actor_id RAW(16),
    source_eid RAW(16),
    source_scope RAW(16),
    type VARCHAR2(1 CHAR),
    properties DOCUMENT_ADDED
    DECLARE
    d document_type := document_type(2,'document1');
    a actor_type := actor_type(2,'actor1','[email protected]');
    w workspace_type := workspace_type(2,'MarketingWorkspace');
    da document_added := document_added(d,a,w);
    --dae document_add_Event := document_add_event(null,null,null,null,null,null,da);
    dae document_add_Event_flat := document_add_Event_flat(null,null,null,null,null,null,da);
    payload SYS.ANYDATA;
    Enq_ct DBMS_AQ.Enqueue_options_t;
    Msg_prop DBMS_AQ.Message_properties_t;
    Enq_msgid RAW(16);
    begin
    payload := ANYDATA.convertObject(dae);
    Msg_prop.Exception_queue := null;
    Msg_prop.Correlation := null;
    DBMS_AQ.ENQUEUE('ocs.beehive_events', Enq_ct, Msg_prop, payload, Enq_msgid);
    end;
    /

    As said above, the example posted works on 10.2 as well as 9.2.0.5. Can you post a similar example (as my example below) that shows the problem and the exact version of the Oracle database?
    SQL> create or replace type xObj as object (
      2          name varchar2(32757),
      3          constructor function xObj return self as result
      4  );
      5  /
    Type created.
    SQL> CREATE OR REPLACE type body xObj as
      2          constructor function xObj return self as result is
      3          begin
      4                  name := 'this is a sample';
      5                  return;
      6          end;
      7  end;
      8  /
    Type body created.
    SQL> CREATE GLOBAL TEMPORARY TABLE DATA_TABLE ( DATA ANYDATA ) ;
    Table created.
    SQL> declare
      2          inv xobj := xobj();
      3          tmp anydata;
      4  begin
      5          tmp := anydata.convertObject(inv);
      6          insert into data_table values(tmp);
      7  end;
      8  /
    PL/SQL procedure successfully completed.
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.5.0 - Production
    SQL>                                            

  • Incorrect terminal name for "get variant attributes" (bug?)

    According to the help, the output named "values" should change its name to "value" once we wire a name.
    This does not seem to be the case (See tip strip in image below) as tested in 2013 and 2014..
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    VariantTipStrip.png ‏2 KB
    VariantValueValues.png ‏30 KB

    In LabVIEW 2013 it changes to value if only the name input is wired. Once you wire the default value, it switches back to values. 50% is true :-)

  • Af:query number attributes BUG in TP3

    Hello,
    The component af:query renders a spinbox for the number attributes. The spinbox stops working when it reaches the zero value or when I put a zero value manually.
    I suppose it's a bug in the javascript code that manages it.
    Thanks,
    Marc

    By "stops working" do you mean it doesn't allow you to decrement the zero (0) value to a negative number [but still allows incrementing]?
    or do you mean that neither the increment or decrement buttons works from that point on?

  • Af:query date attributes BUG in TP3

    Hello,
    I have found another bug in the af:query component. The date selectors that are rendered for every date attribute don't work, the calendar doesn't open when I click the calendar icon.
    Thanks,
    Marc

    Hi,
    thanks. I can reproduce this and filed this as a bug
    Frank

  • NSCD Segfaults - Bug or incorrect configuration?

    Hi, my NSCD is segfaulting a couple of times a day. The only record I have of it is:
    LINODE2: 04-22-2010 09:35:01 [kernel] nscd[31604]: segfault at a ip b776bcdb sp ae91a9dc error 4 in libc-2.11.1.so[b76f8000+141000]
    I don't know if it is possibly due to me configuring it incorrectly. Here is nscd.conf
    ### /etc/nscd.conf: Name Service Cache Daemon configuration file
    logfile /var/log/nscd.log
    debug-level 1
    server-user nobody
    paranoia no
    threads 4
    max-threads 32
    enable-cache passwd yes
    positive-time-to-live passwd 600
    negative-time-to-live passwd 20
    suggested-size passwd 211
    check-files passwd yes
    persistent passwd yes
    shared passwd yes
    max-db-size passwd 33554432
    auto-propagate passwd yes
    enable-cache group yes
    positive-time-to-live group 3600
    negative-time-to-live group 60
    suggested-size group 211
    check-files group yes
    persistent group yes
    shared group yes
    max-db-size group 33554432
    auto-propagate group yes
    enable-cache hosts yes
    positive-time-to-live hosts 3600
    negative-time-to-live hosts 20
    suggested-size hosts 211
    check-files hosts yes
    persistent hosts yes
    shared hosts yes
    max-db-size hosts 33554432
    enable-cache services yes
    positive-time-to-live services 28800
    negative-time-to-live services 20
    suggested-size services 211
    check-files services yes
    persistent services yes
    shared services yes
    max-db-size services 33554432
    Can someone take a look and tell me if I should file a bug report?

    Allan wrote:
    There is a bug report here: http://bugs.archlinux.org/task/19157 .   So far I have not been able to figure out what is going on.   Given you appear to be using Linode, I doubt this is a suspend-to-ram issue that the bug report suggests.
    Edit:  try
    enable-cache hosts no
    See http://patch-tracker.debian.org/patch/s … ching.diff
    Thanks for the answer. It turns out though that the hosts cache is actually the only one that is important for me...

  • Time Dimension Type allows different values in attributes - Bug or Feature?

    Not sure if this is a bug or a feature.
    But if one has multiple hierarchies on a Time dimension. You have the ability to specify different values for member attributes in different hierarchies.
    Example.
    Hierarchy A has MIN_ID for it's Member and uses MIN_END_DATE for it's END_DATE
    Hierarchy B has MIN_ID for it's Member and uses SESS_END_DATE for it's END_DATE
    As per this post and David Greenfield's comment:
    Dimension Sort issue when multiple mappings for different hierarchies
    "Are you attempting to map the same attribute, SORT, to different columns in the two hierarchies? Put another way, do you expect the same member to have different values for the attribute in the two different hierarchies? If so, then this is a problem since a member must have the same value for the attribute regardless of the hierarchy."
    Unlike a user dimension, a time dimension appears to allow this and it appears to work as intended. Is the behavior in this case intended to be different between a user and time dimension?

    I think that this is not a bug. There is an incompatibility in design which prevents you from using the same attribute differently for both hierarchies.
    NOTE: Unlike parent relationship which depends on <dimension, dimension hierarchy>, Dimension Attribute is dependent on <dimension> alone, not dependent on <dimension, dimension hierarchy> combination. Hence it can only take on 1 value for 1 dimension member.
    I think that the time dimension only appears to allow this. The key thing to check is for Time Dimension members which are common to both the hierarchies. Only one of the mappings will take effect (usually the hierarchy which is loaded last will remain in the aw/usable for queries, reports.. it would have over-written the earlier attribute value loaded as per the earlier hierarchy load).
    Visualize a dimension as a long list of members which are built up contiguously on a per hierarchy, per level process using the mapping information saved. Once a member is defined (created) via Hierarchy A, it wont be created once again while loading Hierarchy B but is instead updated or redefined based on Hierarchy B's mapping info.
    Assuming the dimension load attempts to load Hierarchy A first and then Hierarchy B,
    * Dimension load for Hierarchy A will define the various members using MIN_ID and set the END_DATE attribute to value=MIN_END_DATE
    * Dimension load for Hierarchy B will re-define the various members using MIN_ID and re-set or over-write the END_DATE attribute to value=SESS_END_DATE
    * In this case, it looks like all members are common for both hierarchies (as both members are mapped to same column MIN_ID) and you would end up with END_DATE=SESS_END_DATE.
    Actually whether all members are common to both hierarchies or not depends on the quality of data in your snowflake/star table: if parent level for Hierarchy A as well as Hierarchy B is setup fine then the members will be same set (overlapping in whole). If some rows for MIN_ID have parent column for Hierarchy A setup correctly but parent column for Hierarchy B =null or invalid value then that member will exist in Hierarchy A alone and would contain END_DATE=MIN_END_DATE as the corresponding update along Hierarchy B would fail due to hierarchy data quality issues (join from current level to parent level).
    As regards a solution to your problem, you should not use the same attribute "SORT" for dual purpose (both hierarchies). Instead define attributes SORT_A and SORT_B and make them enabled for Hierarchy A, Hierarchy B respectively and map/use them appropriately in your reports.
    HTH
    Shankar

  • Parsing String to XML Attribute bug

    Hello!
    I'm trying to convert String to org.w3c.dom.Document with javax.xml.parsers.DocumentBuilder, but when I check my XML Document after creating, I find that all the Attributes are like "" or "&#xa; ". Does anyone have some idea why that problem is and how it can be solved?
    Thanks a lot!
    Svigi

    There are lots of bug reports about Java 5's built-in XML parser screwing up on attribute values. Try forcing Java to use the current version of Xerces (download it) instead of whatever it has built in, if that seems to apply to you. On the other hand it's possible that the bug is in your code too.

  • Set component attribute bug

    I use components inside UIData and change thir attributes by children components.
    I tried to use UIComponent.setValueExpression("onclick", ...), UIComponent.getAttributes().put("onclick", ...), UIComponent.setValueBinding("onclick", ...). It works good for components, which is not within UIData. But in this case I have seen the following problem: I set attibute for component on the first row only, but its value is set for the other components too (I mean the same component but on the other rows).
    Is it bug or do I something wrong?

    Yes, I know it. But if I set attribute values on my page, everything is right. If I set it from code, there is an error.
    I think that it is a bug, because component, for which I set attribute, has client id like: UIDataId:rowIndex:componentId. I set value to component on the third row, and have this value on components on the third and the fifth row.
    To tell the truth, I am sure, that it is a bug. If it is not so, please tell me, how an I set attribute value to component, which I need. Is there any way? I think, no. And it is a bug.

  • Struts ActionForm - Is there a bug?

    Hi,
    I�ve been using the 9.0.3.3 (build 1205) and
    when I try to create a new ActionForm the wizard
    is not displayed...
    Yes, I�ve selected a project in the navigator.
    Does someone have an opinion about that?
    Tks in advance,
    Carlos.

    Problem occurs in JDeveloper 9.0.3.3 Build 1205 and seems to be introduced with the new version of Struts.
    When running jdev.exe instead of jdevw.exe, a stack trace is displayed. Bug 2835622 was logged for that.
    Regards,
    Didier.

  • Bug: BasicComboBoxUI incorrectly does setSelectedIndex(0) on model change

    The case with bugId=4150466 "BasicComboBoxUI incorrectly does setSelectedIndex(0) on model change" seems to be closed and fixed. I'am using JDK1.3, and a version of BasicComboPopup is * @version 1.31 12/04/99, and the problem still exists, the bug is not fixed.
    So, the question is if the bug is fixed.
    Thanks alot!

    public void actionPerformed(ActionEvent ae)
    // When the button is clicked, create a new model and set it.
    // would expect the selected item to change to the result
    // of getSelectedItem in the model (i.e. "Three"). Instead
    // it is always set to "One".
    m_combo.setModel(new MyModel());
    It's because BasicComboPopup$PropertyChangeHandler.propertyChange()allways calls JComboBox.setSelectedIndex(0), but in my case it should call setSelectedIndex(x);

  • How can i validate attribute(timestamp type) enter date day is not sunday.

    hi All,
    problem is that i want to validate timestamp type attribute. when user select a date if the date day is sunday than error message
    show to user.
    can i do this with groove expression.

    You can add a script validation to the EO attribute and use an groovy expression like
    def d = newValue;
    println d.day;
    return d.day != 0;
          I only tested this with a date but it should work with a timestamp too...
    Timo

  • Struts how can validate form without using validate method.

    Hi
    Is this possible validate a form without using validate form
    if it is possible then
    please tell me how can we validate it
    Thanks
    Surendra

    Make use of validator framework.. this would enable you to do validation both @ client side by javascript under defined validation rules and also enables you to do it @ serverside....
    And if want to create a Dyanamic Form beans which takes care of validations to make use ValidatorForm or DynaValidatorForm class under the pacakage org.apache.struts.validator and create an instance of it with preconfigured validations under structs...
    Make use of the links below which i think are the best tutors for newbies....
    http://www.roseindia.net/struts/struts_validator_framework.shtml
    http://www.oracle.com/technology/oramag/oracle/04-jan/o14dev_struts.html
    http://www.onjava.com/pub/a/onjava/2002/12/11/jakartastruts.html
    Hope might be of some help.. :)
    REGARDS,
    RaHuL

  • Xsql-query Attributes Bug

    Some of the xsql-query tag attributes in an XSQL page are only available in the XSQL page, not in the Query tag from the component palette.
    1. Create a XSQL page.
    2. Add a Query (xsql-query) tag from the Component Palette. The Query lists some xsql-query tag attributes.
    3. In the XSQL page, the xsql-query tag lists some additional attributes such as page-param, date-format and error-statement that are not listed in the Query frame when the Query tag is selected from the component pallette.

    Correction.
    3. In the XSQL page, the xsql-query tag lists some additional attributes such as bind-params, date-format and error-statement that are not listed in the Query frame when the Query tag is selected from the component pallette.

  • Major bug or incorrect setting? "intersect" gone completely wrong

    Hi all,
    I’m having massive issues with Illustrator CS5’s auto-alignment of shapes via the “smart guides” tool – and even when this functionality is turned off. It’s easier to see the problem when “smart guides” are turned on, however.
    So what’s the issue? Well, you know when you want the centre point of two shapes, say Shape A and Shape B (both of which are non-identical), to “intersect”? You drag Shape B to the desired side of Shape A until the helpful green “intersect” confirmation appears. Great. But when I release the shape by lifting my finger from the mouse, Illustrator ALWAYS moves the shape one pixel – just one – either up, down, left or right of the intersection, depending on which side of the shapes I want the intersection to occur.
    It’s maddening, and completely throws everything off. Yes, one pixel off is enough to ruin the whole graphic. Without a doubt. Especially when you're using the "shape builder tool" to merge shapes for specific results. I just want the things to intersect correctly and not continuously move off by one pixel; it’s really wasting time. Even moving the path points with the “direct selection” tool is a non-runner: they, too, refuse to snap into place where I tell them to, always moving one pixel off from the position I want them to settle in.
    Ok, I definitely haven’t noticed this issue before. And it can’t be a feature – who’d want this to be happening??? But what could possibly be the issue? I’ve updated Illustrator to the newest version – still no change. One pixel off, always.
    A final note: whenever an exact replica of a shape is created, it intersects perfectly with its clone. All other shapes, however, fall victim to the one-pixel-off bug.
    If this is too baffling, should I uninstall and reinstall Illustrator? And, if so, how could I go about doing that?
    Any help GREATLY appreciated at this stage...
    - C

    Excellent! Well done, all – very knowledge indeed. I’ll certainly remember this little detail in future...
    Still, there chould be some possible warning re: this on the “create new doc for web” panel on start up. I checked the “align to pixel grid” by default cos, well, wasn’t I told it was all the rage? But seems like it’s not everything it’s cracked up to be after all, is it?
    Anyway, well done again. Problem solved!
    Cheers,
    C

Maybe you are looking for