Hi,

I think you need to read the manual :
http://code.google.com/intl/fr/webtoolkit/doc/latest/tutorial/buildui.html

Adding a panel to the HTML page is not just inserting the DOM
element...

Olivier

On 15 mar, 08:33, Šobis <[email protected]> wrote:
> Hello,
>
> I have a problem with click listener.
>
> Below is code. Click listener is simply not working. What am I doing
> wrong?
>
>               HorizontalPanel backgroundPanel = new HorizontalPanel();
>               backgroundPanel.setStyleName("spodnjiTabPanelGround");
>
>               /*najprej naredimo oba gumba da vemo njihova indeksa*/
>               Button gumbLevoSh = new Button();
>               gumbLevoSh.setStyleName("spodnjiTabgumbLevo");
>               Window.alert("Dodamo clicker pervi");
>               gumbLevoSh.addClickHandler(new ClickHandler(){
>                         public void onClick(ClickEvent event) {
>                          Window.alert("Levo");
>                         }
>               });
>
> .....................
>
>               backgroundPanel.add(gumbLevoSh);
>               DOM.appendChild((Element)
> Document.get().getElementById("fragment-1"),
> backgroundPanel.getElement());
>
> best Matej

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