AjaxHighlight provides a convenient way to queue up an object as highlighted so that it gets a highlight effect when the next page renders.
In the action prior to returning the page that will show a highlight, you can call
Computer code|AjaxHighlight.highlight(theObject). The object you highlight could be a String, an EO, or whatever object makes sense in your context.
Then you simply bind
on this component on the following page. If the value matches an object that was flagged as highlighted, the container you specify will receive the highlight effect. This component can also generate its own container if you do not specify another container id.
So you can do:
and in PersonListPage:
When the page loads, the newly created person will get the scriptaculous
Computer code|Effect.Highlight yellow flash effect (you can also specify
if you don't like