Skip to content

Commit

Permalink
If no customerized crosstab update listener set, we should perform
Browse files Browse the repository at this point in the history
default creation/validation operation.
  • Loading branch information
ycheng committed Sep 29, 2013
1 parent 535d67d commit 0eec6d0
Showing 1 changed file with 20 additions and 0 deletions.
Expand Up @@ -175,6 +175,16 @@ public static void notifyCreation( int type, Object model,
listener.onCreated( type, model );
}
}
else
{
try
{
// Perform default creation action
new DefaultCrosstabUpdateContext( ).performDefaultCreation( type, model, extras );
}
catch ( SemanticException e )
{}
}
}

/**
Expand Down Expand Up @@ -203,6 +213,16 @@ public static void notifyValidate( int type, Object model,
listener.onValidate( type, model );
}
}
else
{
try
{
// Perform default validation action
new DefaultCrosstabUpdateContext( ).performDefaultValidation( type, model, extras );
}
catch ( SemanticException e )
{}
}
}

/**
Expand Down

0 comments on commit 0eec6d0

Please sign in to comment.