Re: Creating a widget that can accept HTML + Widgets in UiBinder (Without using HTMLPanel)

2015-03-24 Thread Ali Akhtar
IMO that parser interface should be made external and it should allow any
widget that implements this interface to have html within UiBinder. I'm
surprised it wasn't done that way to begin with.

On Tue, Mar 24, 2015 at 9:11 PM, Jens  wrote:

>
> Surely UiBinder isn't hard-coded to only allow HtmlPanel to accept panels
>> + widgets?
>>
>
> HTMLPanel has its own HTMLPanelParser used by UiBinder which makes mixing
> HTML + Widgets possible, so yes it is kind of hardcoded.
>
> -- J.
>
> --
> 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/4DFGQF3oIYg/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@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.
>

-- 
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+unsubscr...@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.


Re: Creating a widget that can accept HTML + Widgets in UiBinder (Without using HTMLPanel)

2015-03-24 Thread Jens


> Surely UiBinder isn't hard-coded to only allow HtmlPanel to accept panels 
> + widgets? 
>

HTMLPanel has its own HTMLPanelParser used by UiBinder which makes mixing 
HTML + Widgets possible, so yes it is kind of hardcoded.

-- J.

-- 
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+unsubscr...@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.


Creating a widget that can accept HTML + Widgets in UiBinder (Without using HTMLPanel)

2015-03-24 Thread Ali Akhtar
Hi,

I'm trying to create a container widget which can accept html within 
uibinder files, without extending from HTMLPanel.

If I try to implement `HasHTML`, then I can only pass in HTML without being 
able to pass any widgets.

If I try to extend from ComplexPanel and override the add(Widget child) 
method, same as HTMLPanel does, then passing in HTML doesn't work.

Surely UiBinder isn't hard-coded to only allow HtmlPanel to accept panels + 
widgets? 

I'm trying to reduce the amount of boilerplate needed for displaying a 
form. (Right now I have to use a FormPanel containing a HtmlPanel which 
contains the actual form code. I'd like to be able to just use one widget 
which contains my html embdedded within the formPanel and HtmlPanel)

-- 
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+unsubscr...@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.