Re: GWT 2.5-rc1 feature uirender is not working as expected.
Yes you were right, it is instantiating new Person object. But if I try to set Type to empty string validation fails and I cannot run the application. When I looked at generated code it is creating new Person object and using it. I even tried below code just if it works using @uiFactory. But even it doesn't seems to be working.
PersonCell.java
--------------------------------------------------------------------------------------------------------------------------
public class PearsonCell extends AbstractCell<Person> {
interface MyUiRenderer extends UiRenderer {
void render(SafeHtmlBuilder sb, Person pearson);
}
private static MyUiRenderer renderer = GWT.create(MyUiRenderer.class);
private Person person;
@Override
public void render(com.google.gwt.cell.client.Cell.Context context, Person value, SafeHtmlBuilder sb) {
person = value;
renderer.render(sb, value);
}
@UiFactory
/* this method could be static if you like */
public Person getResources() {
return person;
}
--------------------------------------------------------------------------------------------------------------------------
Thanks,
-Pandurang.
--
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/-/2tyyRZ9W6QIJ.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home