Tuesday, February 1, 2011

Re: Can CellWidgets contain custom composite widgets ?

Thank You,
I tried your suggestion.

In the onBrowseEvent, I capture the click event,
but just capturing event does not result in re-rendering the table.

I assume I need to somehow update the table for the re-rendering to happen,
but I don't know how
">> If your click event, updates the table in some fashion that leads to re-rendering of the table"


I also put a flag(conditional) inside onBrowseEvent method, and changed it upon click event,
and directly called render from within onBrowseEvent (as you can see below).
to somehow force the render method.
with this explicit call to render, upon on click, the flag is set and log statements in render method
confirm that the flag is actually set, but the table remains the same.
in other words the table is not re-rendered.

do you know how I can make the click event to update the table ?
or how is it possible to re-render just a row of the table ?
is it wrong to call render from within onBrowseEvent ?
 public void onBrowserEvent(.....

if ("click".equals(event.getType())) {

isFieldXVisible = true; // setting a flag so that render method can check for it
render(context,value,null); // forcing to re-rerender, does not seem to work

}

}

Thank You

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment