Re: Unable to set the text of a HTML element with a string, advice Please!!
You never seem to actually set the 'tml' variable to anything besides
null, so I'm guessing that's your issue.
-Ben
On Jan 20, 3:45 pm, AmaraSat <amara.forthewo...@gmail.com> wrote:
> static HTML tml = null;
> String HeatParametersString = "";
>
> for (int i = 0; i < Properties.length; i++) {
>
> HeatParametersString = HeatParametersString +
> Properties[i].getValue() + "<br>";
>
> }
>
> tml.setHTML(HeatParametersString);
> ----> Error thrown; java.lang.NullPointerException: null
> tml.setText(HeatParametersString);
> ----> Error thrown; java.lang.NullPointerException: null
>
> later in the code
> popup.setWidget(tml);
>
> The main aim is to collect three String values from the server side
> and display them in the popup (each in one new line). tried so many
> ways no luck any suggestions.
--
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home