If you have your dao always return the top x rows ordered by creation date the newest will always be at index 0. in onpopulate you can check if the creation date is within the last 5 sec and then apply a css style or whatever to achieve your effect. Attach the AjaxSelfUpdatingTimerBehavior to a WebMarkupContainer which contains your DataTable / DataView and your table will automatically be refreshed.
Maurice On Feb 18, 2008 2:23 PM, okrohne <[EMAIL PROTECTED]> wrote: > > Hi, > > I am new to Wicket and I think of how to achieve the following: > > I need a table which refreshes itself every 5 sec. This could be done > with AjaxSelfUpdatingTimerBehavior. The refresh mechanismen shall > only insert new rows at the beginning (there will be always only 1 new row > in a 5 sec period). > The table shall only display 10 rows (or be configurable), so if a new row > comes in the 10th row should dispear. The new row can have several effects > like sliding in, flashing ... > I need this as monitoring component. > > Has anyone done something like this? > Any suggestions are welcome, maybe it is obvious? > > Thanks, > Oliver > > > > -- > View this message in context: > http://www.nabble.com/self-refreshing-table-with-effects-tp15545179p15545179.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
