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
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,
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
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;
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
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