Sunday, June 15, 2014

Re: GWT: CellBrowser isn't displayed in a composite



Le samedi 14 juin 2014 21:22:18 UTC+1, Jens a écrit :
                <g:HTMLPanel>
                   
<c:CellBrowser defaultColumnWidth='300' ui:field='cellBrowser' />
               
</g:HTMLPanel> 


I think you don't need to wrap it in an HTMLPanel.

In your Java file:

- you want to use "200px" and "630px"
- remove the @UiFactory getCellBrowser() method OR remove "provided = true" from your @UiField and don't assign the field yourself (like you currently do in your constructor). You don't need both @UiFactory AND @UiField(provided = true), only one of them.

-- J.


Hi. Thank you for your answer. I tried what you said, but it still doesn't get displayed (or I didn't get correctely your answer).
Please, can you further explain the part of "don't assign the field yourself (like you currently do in your constructor)"?
Also for the "200px" and "630px" they are for width and height. Shall I keep only one?

Thanks a lot.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment