I have a registration page for new users using SimpleCaptcha. I got it
to work without UiBinder but can't get it to work with. Does anyone
have any ideas to what I'm doing wrong?

The following works (without UiBinder):

private static String html = "<div><table> ... <tr><td id=
\"captchaImageContainer\"></td></tr> ... </table></div>";
HTMLPanel panel = new HTMLPanel(html);
...
private Image captchaImage = new Image("/SimpleCaptcha.jpg");
...
panel.add(captchaImage, "captchaImageContainer");


But when I try to convert it to UiBinder:

In my XML file:

<g:Image ui:field="captchaImage" />

In the view:

@UiField
Image captchaImage;

...

widget = uiBinder.createAndBindUi(this);
captchaImage = new Image("/SimpleCaptcha.jpg");

Am I missing something here? Any ideas appreciated.





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

Reply via email to