Monday, January 7, 2013

help to understand uiRenderer

Hi,

I am trying to use a CellList with a CellRenderer and I did a simple example that is just using a contact name in the .ui.xml.

Indeed, in my list of contact, it appears [object Object] instead of the name of the contact.
I have added a click event and my name appears thanks to :
renderer.getNameSpan(parent).setInnerText(o.getContact_name());

I do not know how to set the name of my contact, I think I should do it in :
@Override public void render(Context context, Contact value, SafeHtmlBuilder builder)
but here I do not have acces to the "parent" node.

Could you help me ? Thanks you,





--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/W1oiGAOh10sJ.
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