Here is the code I use when you set a 2.x cmp field:

public void setInstanceValue(EntityEnterpriseContext ctx, Object value) {
    FieldState fieldState = getFieldState(ctx);

    // short-circuit to avoid repetive comparisons
    // if it is not currently loaded or it is already dirty or
    // if it has changed
    fieldState.isDirty = !fieldState.isLoaded || fieldState.isDirty ||
          changed(fieldState.value, value);

    // we are loading the field right now so it isLoaded
    fieldState.isLoaded = true;

    // update current value
    fieldState.value = value;
}

Don't know if this helps.  If you can't figure it out in the source, can 
you post to source forge a small test case that demonstrates this behavior.

Thanks,

-dain


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to