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.
--To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/K3xzMkkBptoJ.
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Hmm, this seems like a bug to me. Hopefully I'll have a fix ready for rc2.
Pandurang Patil
about.me/pandurangpatil
|
||
--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/TWYcWRfICXk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
public class PlayCell extends AbstractCell<PlayCellProxy> {
private static final PlayCellBinder cellRenderer = GWT.create(PlayCellBinder.class);
interface PlayCellBinder extends UiRenderer {
void render(SafeHtmlBuilder sb, PlayCellProxy myCellRenderer);
}
@Override
public void render(Context context, PlayCellProxy value, SafeHtmlBuilder sb) {
if (value == null) {
return;
}
cellRenderer.render(sb, value);
}
}
PlayCell.ui.xml
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'>
<ui:with field='playCellProxy' type="net.rushashki.shashki64.client.cell.renderer.PlayCellProxy"/>
<div ui:field="playCell">
<div ui:field="firstName">
Title:
<ui:text from="{playCellProxy.getTitle}"/>
</div>
Player:
<ui:text from="{playCellProxy.getWhitePlayer}"/>
</div>
</ui:UiBinder>
PlayCellProxy.java
public class PlayCellProxy {
private PlayDto playDto;
public PlayCellProxy(PlayDto playDto) {
this.playDto = playDto;
}
public String getTitle() {
return playDto.getTitle();
}
public String getWhitePlayer() {
return playDto.getWhitePlayer();
}
public String getBlackPlayer() {
return playDto.getBlackPlayer();
}
public String getDeskHtml() {
return playDto.getDeskHtml();
}
}
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.
interface PlayCellBinder extends UiRenderer {
void render(SafeHtmlBuilder sb, PlayCellProxy myCellRenderer);
}
<ui:with field='playCellProxy' type="net.rushashki.shashki64.client.cell.renderer.PlayCellProxy"/>
Pandurang Patil
about.me/pandurangpatil
|
||
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.