On 20 mar, 10:33, Mamadou Alimou DIALLO <[email protected]> wrote:
> Hello group,
>
> I have some problem in GWT with HTMLPanel. When I add a widget inside
> HTMLPanel, GWT create a html DIV element before, add my widget inside it and
> add this DIV in my HTMLPanel. For example:
>
> HTMLPanel htmlPanel = new HTMLPanel("<div id='MyId' > </div>");
> HTML html = new HTML("<a href='myWidget'> </a>");
> htmlPanel.add(html, "MyId");
>
> It generate this HTML Page:
>
> <DIV id=MyId>
> <DIV class=gwt-HTML>
> <A
> href="http://localhost:8888/com.company.exemple.gwt.ExempleGWT/myWidget"></A>
> </DIV>
> </DIV>
>
> But I would like to that it generate for me a HTML code without "gwt-HTML"
> element i.e:
>
> *<DIV id=MyId>
> <A href="http://localhost:8888/com.company**
> .exemple.gwt.ExempleGWT/myWidget"></A>
> </DIV>*
>
> Please, Is it possible ti do that ? Hiw ? Thanks in advance
If you do not want an HTML() widget, do not use one. Use an Anchor
widget instead:
HTMLPanel htmlPanel = new HTMLPanel("<div id='MyId' > </div>");
Anchor link = new Anchor("myWidget");
htmlPanel.add(link, "MyId");
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---