DataView, ReuseIfModelsEqualStrategy, Ajax

2010-04-06 Thread Arnaud Garcia
Hello, I have a simple DataView where each row has some labels and textfields. Each time the user enter in a textfield I would like to highlight the selected row. (The idea is to adapt the wicket stuff example (OIRPage.java) with an AjaxFormComponentUpdatingBehavior(onfocus) instead of a simple

Re: DataView, ReuseIfModelsEqualStrategy, Ajax

2010-04-06 Thread Arnaud Garcia
ok, find, so just do: item.setOutputMarkupPlaceholderTag(true); and myTextField.add(new AjaxEventBehavior(onfocus) { @Override protected void onEvent(AjaxRequestTarget target) { item.add(new SimpleAttributeModifier(class,

Re: DataView, ReuseIfModelsEqualStrategy, Ajax

2010-04-06 Thread Jeremy Thomerson
Don't do this with AJAX - that's overkill. Just use a JS library and attach to onfocus. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Apr 6, 2010 at 1:21 PM, Arnaud Garcia arn...@imagemed-87.comwrote: ok, find, so just do: item.setOutputMarkupPlaceholderTag(true); and

Re: DataView, ReuseIfModelsEqualStrategy, Ajax

2010-04-06 Thread Daniela Valero
Hi Jeremy, I'm doing something similar than Araun, but with item.add(new AjaxEventBehavior(onclick) { @Override protected void onEvent(AjaxRequestTarget target) { HighLitableDataItemThirdModelBasic hitem = (HighLitableDataItemThirdModelBasic)item;

Re: DataView, ReuseIfModelsEqualStrategy, Ajax

2010-04-06 Thread Jeremy Thomerson
No - I mean use jQuery, YUI, or whatever you are currently using (or custom JS that you write without one of these frameworks), and just add a CSS class to the dom element on the client-side. There is no reason to make a roundtrip to the server to simply change the CSS class. That wastes time

Re: DataView, ReuseIfModelsEqualStrategy, Ajax

2010-04-06 Thread Daniela Valero
Thanks Jeremy, that info is very usefull 2010/4/6 Jeremy Thomerson jer...@wickettraining.com No - I mean use jQuery, YUI, or whatever you are currently using (or custom JS that you write without one of these frameworks), and just add a CSS class to the dom element on the client-side. There