HI Sumit Chandel
i'am fresher and new to GWT. kindly help me.
here with i have attach some sample code:
Thanking you in anticipation.
Regards
Syed Shahul
declaration of link: final HTML usersLink = new HTML( "<a href=\'#
\'>Users</a>");
set style to the link: usersLink.setHTML(getLnkUserTitle());
//getLnkUserTitle()- widget to get the text
click listener for the link :usersLink.addClickListener(new
ClickListener(){
public void onClick(Widget sender){
usersLink.setHTML(getLnkUserClkTitle());
overviewLink.setHTML(getLnkOverviewTitle());
benifitsLink.setHTML(getLnkBenftsTitle());
wantUseLink.setHTML(getLnkWantuseTitle());
enquiriesLink.setHTML(getLnkEnqTitle());
contactsLink.setHTML(getLnkContsTitle());
projectsLink.setHTML(getLnkPrjTitle());
quickViewLink.setHTML(getLnkQikViwTitle());
reportsLink.setHTML(getLnkRptsTitle());
if(overviewFTable.equals(hSplitPane.getRightWidget())){
hSplitPane.remove(overviewFTable);
}else
if(fWantUseLayout.equals(hSplitPane.getRightWidget())){
hSplitPane.remove(fWantUseLayout);
}else
if(flexEnqTable.equals(hSplitPane.getRightWidget())){
hSplitPane.remove(flexEnqTable);
}else
if(flexContTable.equals(hSplitPane.getRightWidget())){
hSplitPane.remove(flexContTable);
}else
if(flexPrjTable.equals(hSplitPane.getRightWidget())){
hSplitPane.remove(flexPrjTable);
}else
if(flexQikTable.equals(hSplitPane.getRightWidget())){
hSplitPane.remove(flexQikTable);
}else
if(flexRptTable.equals(hSplitPane.getRightWidget())){
hSplitPane.remove(flexRptTable);
}else
if(benifitsFTable.equals(hSplitPane.getRightWidget())){
hSplitPane.remove(benifitsFTable);
}
hSplitPane.add(flexUserTable);
}
});
i have more link like this but whenever i click these links i got the
error:
[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError):
'parentElement' is null or not an object
number: -2146823281
description: 'parentElement' is null or not an object
kindly help me.
On Oct 30, 10:13 pm, "Sumit Chandel" <[EMAIL PROTECTED]> wrote:
> Hi Syed,
> It will be a bit difficult to help with your issue without more code and
> details about the problem.
>
> What exactly are you clicking that is causing the exception you're seeing
> above? Can you post some sample code that would allow us to reproduce the
> problem?
>
> Regards,
> -Sumit Chandel
>
> On Tue, Oct 28, 2008 at 1:00 AM, Syed Shahul <[EMAIL PROTECTED]>wrote:
>
>
>
> > hi all,
> > while i clik the link options i got this bug. kindly help me
> > thanking you in anticipation,
>
> > [ERROR] Uncaught exception escaped
> > com.google.gwt.core.client.JavaScriptException: (TypeError):
> > 'parentElement' is null or not an object
> > number: -2146823281
> > description: 'parentElement' is null or not an object
> > at com.google.gwt.dom.client.DOMImplIE6.getParentElement(Native
> > Method)
> > at
> > com.google.gwt.dom.client.Element$.getParentElement$(Element.java:
> > 181)
> > at com.google.gwt.user.client.DOM.getParent(DOM.java:885)
> > at
> > com.google.gwt.user.client.ui.StackPanel.findDividerIndex(StackPanel.java:
> > 293)
> > at
> > com.google.gwt.user.client.ui.StackPanel.onBrowserEvent(StackPanel.java:
> > 169)
> > at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308)
> > at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:
> > 1287)
> > at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1255)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---