What is the best way to render complex cell?

109 views
Skip to first unread message

ailinykh

unread,
Nov 26, 2010, 1:01:35 PM11/26/10
to Google Web Toolkit
Hello, everybody!
I have CellList which contains custom cells. It's pretty close to Cell
List example from show case, but my custom cell is more complicated.
It has several images, several links and I want to handle clicks on
images and links. Generating html code by overriding render method
seems to very difficult and error prone. Is there a better way to do
it? What I wish to have is implementing widget using UiBinder and then
converting it into Cell.
Is it possible?

Thank you,
Andrey

John LaBanca

unread,
Nov 28, 2010, 7:22:51 PM11/28/10
to google-we...@googlegroups.com
We plan to introduce UiBinder for Cells in a future version of GWT, hopefully GWT 2.2.  We want Cells to be a complete replacement for Widgets, but we realize that the potential for an HTML syntax error grows as the level of complexity of a Cell increases.  UiBinder for Cells should make it much easier to template Cells.

Thanks,
John LaBanca
jlab...@google.com



--
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.


Konstantin Scheglov

unread,
Nov 29, 2010, 5:29:10 AM11/29/10
to Google Web Toolkit


> We plan to introduce UiBinder for Cells in a future version of GWT,
> hopefully GWT 2.2.  We want Cells to be a complete replacement for Widgets,
> but we realize that the potential for an HTML syntax error grows as the
> level of complexity of a Cell increases.  UiBinder for Cells should make it
> much easier to template Cells.

Ah... Very good that you mentioned Cells.
Are there also plans for CellTable Columns support?

One of GWT Designer users asked if we will provide easier way to
generate form for displaying some entities in CellTable. With some
efforts we can do this in Java code, may be using special wizard, but
of course we should now also think about UiBinder.


>
> Thanks,
> John LaBanca
> jlaba...@google.com
>
>
>
>
>
>
>
> On Fri, Nov 26, 2010 at 1:01 PM, ailinykh <ailin...@gmail.com> wrote:
> > Hello, everybody!
> > I have CellList which contains custom cells. It's pretty close to Cell
> > List example from show case, but my custom cell is more complicated.
> > It has several images, several links and I want to handle clicks on
> > images and links. Generating html code by overriding render method
> > seems to very difficult and error prone. Is there a better way to do
> > it? What I wish to have is implementing widget using UiBinder and then
> > converting it into Cell.
> > Is it possible?
>
> > Thank you,
> >  Andrey
>
> > --
> > 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<google-web-toolkit%2Bunsubs cr...@googlegroups.com>
> > .

ailinykh

unread,
Nov 29, 2010, 9:21:25 AM11/29/10
to Google Web Toolkit
Good news.
Thank you,
Andrey

On Nov 28, 6:22 pm, John LaBanca <jlaba...@google.com> wrote:
> We plan to introduce UiBinder for Cells in a future version of GWT,
> hopefully GWT 2.2.  We want Cells to be a complete replacement for Widgets,
> but we realize that the potential for an HTML syntax error grows as the
> level of complexity of a Cell increases.  UiBinder for Cells should make it
> much easier to template Cells.
>
> Thanks,
> John LaBanca
> jlaba...@google.com
>
>
>
>
>
>
>
> On Fri, Nov 26, 2010 at 1:01 PM, ailinykh <ailin...@gmail.com> wrote:
> > Hello, everybody!
> > I have CellList which contains custom cells. It's pretty close to Cell
> > List example from show case, but my custom cell is more complicated.
> > It has several images, several links and I want to handle clicks on
> > images and links. Generating html code by overriding render method
> > seems to very difficult and error prone. Is there a better way to do
> > it? What I wish to have is implementing widget using UiBinder and then
> > converting it into Cell.
> > Is it possible?
>
> > Thank you,
> >  Andrey
>
> > --
> > 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<google-web-toolkit%2Bunsubs cr...@googlegroups.com>
> > .

Stephen Haberman

unread,
Nov 29, 2010, 9:56:21 AM11/29/10
to google-we...@googlegroups.com

> We plan to introduce UiBinder for Cells in a future version of GWT,
> hopefully GWT 2.2.

Sweet!

I was mulling that the flyweight-ness of cells would allow them to be
used within the static/no-iteration nature of ui.xml files.

The current API seems like it might need to change though--take
ActionCell, which takes the ActionCell.Delegate as a cstr parameter. If
UiBinder creates the ActionCell, it seems like a more traditional
ActionHandler would be easier to hook up after cell creation with
with @UiHandler or a cell.addActionlHandler method.

Unless ActionCells used provided=true I guess.

A HTMLPanel-ish cell would also be great.

> We want Cells to be a complete replacement for Widgets,

Interesting--only within iteration-based UI components (lists/tables),
or across the board?

- Stephen

Reply all
Reply to author
Forward
0 new messages