On 7/17/07, Mike03 <[EMAIL PROTECTED]> wrote: > > > Hello, I've seen the posting that refers to this wiki page > http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html How > to repaint a ListView with Ajax but my problem is a little different and > I'm hoping there's a solution. I'm using wicket-1.2.6 > > I've got a ListView that renders some dashboard icons. Each ListItem of > the > ListView contains a BookmarkableLink which contains WebMarkupContainer > representing a div which contains another WebMarkupContainer representing > an > img. The model object backing the div can change state which should > result > in a change of the img source (ie: change from warning.png to error.png). > Each div is given a unique markupId (via a SimpleAttributeModifier) that > matches the model object's primary key in the database. > > There's an AbstractAjaxTimer registered on the ListView who's onTimer > method > iterates through the ListView's children and drills down to the div > component. If the div's model object has changed state, I call > target.addComponent passing in the div component and the div's unique > markupId. > > With this methodology, I can't get an individual div to refresh. I put a > div container around the ListView and I can get the entire ListView to > refresh as the wiki page suggests but I'd like to get a tighter > granularity > of refreshing since there may be hundreds of icons on a dashboard. Am I > doing something wrong or is there no way to ajax refresh individual > ListItem > (or their children) components?
any errors in wicket ajax console? also try repeatingview - it is more "stable" then listview in the sense it doesnt try to recreate its hierarchy on every request. -igor Thanks, > Mike > -- > View this message in context: > http://www.nabble.com/AjaxRequestTarget.addComponent-for-a-child-of-ListItem-tf4100732.html#a11661543 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user