Sending a variable between embeded HTML and GWT?

2008-08-26 Thread darkflame

I have some HTML embeded in a basic HTML frame in my GWT app.

What Id like to do is use links in the frame to effect the GWT app.
I thought at first I could do this using the history state and
bookmarks.
Set up the HTML so the links are like;

apple

And then use the "onHistoryChanged" in the app to detect the change
and return "apple".

Only the event dosnt seem to fire. I'm guessing because it isnt a real
history change, just adding the token onto the end of the url.

So does anyone have any ideas how to do this?
Preferable keeping the embeded html as simple as possible.


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to make an Emd to End application in GWT ?

2008-08-26 Thread Len

Hi

you could replace each page with a gwt app/module - it is quite
possible - however what would the point be ? if you are simply
replacing the functionality of a page, e.g. a jsp, with a gwt module
then I have to ask what is the value ?

What is driving you to use gwt ? Is it that you want richer more
interactive pages ? If that is so then you may need to look at the
pages you have and decide where gwt can add value by combining a few
of your existing pages into one gwt module

My 2c
Len

On 27/08/2008, Sam <[EMAIL PROTECTED]> wrote:
>
>
>
>  Hello all,
>  Thanks a lot for your valuabel help. What are all the options that you
>  said sounds quite appealing if I am going to create my product rt from
>  scratch. But in my case , we do have a stabel product and we are
>  planning to use GWT for some of the widely used pages as well as for
>  the forthcoming enhancements. So if we are planning to go for using
>  GWT with the exsisting web pages which are legacy web pages, we have
>  to go for either DOM manupulation or we can write a class for each web
>  page as per above discusion , rt ?
>  Thanks
>  Samir
>
>
>  >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT page detect as Virus in NOD32 anti virus

2008-08-26 Thread Fitrus...The Rising

I have create a page in GWT, when I run it on system having ie6 with
antivirus NOD32 it gives me error that it found trogan virus "BAT /
FormatC trojan " on page.
Can anyone know about it. your help will be appreciated.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to set the clor for Hyper link?

2008-08-26 Thread [EMAIL PROTECTED]

Thank you very much.
Is there any way to apply the stylesheet t the link like the following
statement
hl.setStyleName("gwt-Hyperlink a:active");

.gwt-Hyperlink a:link,.gwt-Hyperlink a:hover,.gwt-Hyperlink
a:visited,.gwt-Hyperlink a:active
{
   color:red;



}


On Aug 26, 4:57 pm, "alex.d" <[EMAIL PROTECTED]> wrote:
> Already solved in this group. Use search.
>
> On 26 Aug., 13:52, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > hi I am not getting how tosetthe color for thehyperlinkin gwt.
> > I am trying to change the color of hyperlink to red but it is showing
> > blue color only.
> > I am pasting my code plz check and tell me the idea
>
> >       private static Hyperlink hLink_= null;
> >       hLink_ = new Hyperlink("Home", "home");
> >       hLink_.setStyleName("evpn-tabbedButton");
>
> >       .evpn-tabbedButton {
> >           font-size: 12px;
> >           font-family: Arial;
> >           color: #ff;
> >           text-align: center;
> >           white-space: nowrap;
> >           background: no-repeat center top url('/
> > com.infovista.vistamart.evpn.Home/resources/images/
> > tab_unselected.gif');
> >         width: 79px;
> >         height: 17px;
>
> > }- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How we can stop control until we receive complete response from GWT

2008-08-26 Thread Feroz Gul Pathan
I am using this technique to fulfill required functionality. I am calling
method which has other functionality and calling that method from onComplete
method.

Thanks for support


On Tue, Aug 26, 2008 at 1:12 AM, alex.d <[EMAIL PROTECTED]> wrote:

>
> By:
>
> HTTPRequest.asyncGet("AnyPage.jsp", new ResponseTextHandler()
> {
>  public void onCompletion(String responseText) {
>final JSONValue jsonValue = JSONParser.parse(responseText);
> ToDoAfterTheResponsIsOverFunction();
>   }
> });
>
> The ToDoAfterTheResponsIsOverFunction() will be called AFTER the
> request is successfuly over ;)
>
> On 26 Aug., 07:36, "Feroz Gul Pathan" <[EMAIL PROTECTED]> wrote:
> > Thanks for reply
> > I used HTTPRequest.asyncGet ... method to make a request. After making a
> > call (request) this will proceed to next operation and don't wait for the
> > response. How we can block operation until response will be completed and
> > incompletion(String responseText) method will be executed successfully.
> How
> > can we make this asynchronous request synchronous?
> >
> > sample code is here.
> >
> > HTTPRequest.asyncGet("AnyPage.jsp", new ResponseTextHandler()
> > {
> > public void onCompletion(String responseText) {
> >final JSONValue jsonValue =
> > JSONParser.parse(responseText);
> >JSONObject jsonObject;
> >
> >}
> >});
> >
> > Thanks
> >
> > On Mon, Aug 25, 2008 at 9:53 AM, Ian Bambury <[EMAIL PROTECTED]>
> wrote:
> > > Whatever you are running after the request, run it after the response.
> >
> > > I.e. make the request the last thing you do when processing some input
> or
> > > other, and then in the onComplete, carry on with whatever it is you
> want to
> > > do.
> >
> > > 2008/8/25 feroz <[EMAIL PROTECTED]>
> >
> > >> Hi
> >
> > >> How we can stop control until we receive complete response in GWT.
> > >> Control will execute next source before the completion of response.
> > >> how we can stop control until response will be processed completely.
> > >> thanks
> >
> > > --
> > > Ian
> > >http://examples.roughian.com
> > > ___
> >
> > > Life is either a daring adventure or nothing.
> > > Security is mostly a superstition.
> > > It does not exist in nature.
> > > - Helen Keller
> > > ___
> >
> >
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Page is refreshing on clicking links

2008-08-26 Thread ratna

Hi,

This is ratnam.I am having login page.Here i provide links like forgot
password, forgot userid etc.I am displaying another panel while they
click on that links.But for me the page is refreshing when first time
they click on that link.This is happening only in IE.Can anybody help
me in this regard.

Thanks&Regards
Ratnam
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to make an Emd to End application in GWT ?

2008-08-26 Thread Sam



Hello all,
Thanks a lot for your valuabel help. What are all the options that you
said sounds quite appealing if I am going to create my product rt from
scratch. But in my case , we do have a stabel product and we are
planning to use GWT for some of the widely used pages as well as for
the forthcoming enhancements. So if we are planning to go for using
GWT with the exsisting web pages which are legacy web pages, we have
to go for either DOM manupulation or we can write a class for each web
page as per above discusion , rt ?
Thanks
Samir

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Dynamic Evaluation

2008-08-26 Thread masterGaurav

Hi Walden,

Thanks for your response.

I am working on DWT - the GWT port of Dojo Toolkit.
In Dojo Toolkit, we support widgets based on templates. In templates,
each node (element) can be referred to by an member variable (instance
variable) through what is referred to as dojoAttachPoint.

For example, my "Label" widget may have a template as follows:



Once the template-parser parses the templates, it creates two
variables - domNode and anchorNode - referring to the corresponding
element-nodes. Now, in the object (read: class) backing the template,
I can directly refer to these elements by saying, this.anchorNode.

What I am trying to do is providing a support for the same.

One idea that comes to my mind is to create a "HashMap attachPoints" and populate the same.

A simple demo at
  
http://eduzine.edujini-labs.com/archives/33-Creating-Custom-Widget-in-Dojo-Part-2-Templated-Widgets.html
may give you an idea of what dojoAttachPoint does.

Looking forward to your suggestions!


--
Happy Hacking,
Gaurav
http://sf.net/projects/dwt
http://eduzine.edujini-labs.com
http://blogs.mastergaurav.com
--

On Aug 25, 6:15 pm, walden <[EMAIL PROTECTED]> wrote:
> Gaurav,
>
> I think you're trying to do something that GWT does not support, as
> GWT builds a lot of its value atop the notion of a statically-typed
> language (Java).
>
> About your use case: it's not one.  If you would write a use case with
> a real actor, I'll bet we could find a statically-typed design that
> would satisfy it.
>
> Walden
>
> On Aug 24, 3:11 am,masterGaurav<[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I have a scenario wherein I need to refer to methods/fields in the
> > class that may be created on the fly - similar to how it is possible
> > in JavaScript.
>
> > Or, how do I refer to any field/function if I know the object-context
> > and the property-name at runtime?
>
> > Would it be mandatory to make the type inherited from
> > JavaScriptObject? If that's the case, I lose "public constructor" and
> > non-final methods. :(
>
> > What's the best way around?
>
> > The use-case is:
>
> > I need to load some entries from configuration settings and then
> > populate the object. The entries may include setting values to
> > properties. The values may be simple numeric/string/boolean or
> > reference to functions (function names), and then I need to refer to
> > those properties/functions dynamically.
>
> > Thanks in Advance!
>
> > --
> > Cheers,
> > Gaurav Vaishhttp://www.edujini-labs.comhttp://www.mastergaurav.com
> > -
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Is there a way to write a generator to write the same code from the original class?

2008-08-26 Thread Marcelo Emanoel

Hi there people :D

I'm developing a generator and I need just to implement the same class
with some other methods generated...
is there a way to read the content of a method or class?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: OFCGWT - charts for GWT !!

2008-08-26 Thread Tim

Glotr/Flotr looks neat however it requires Canvas support which IE
browsers don't have (alas!) without an extra plugin...Flash is too a
plugin, however it's installed in 99% (or whatever the actual latest
stat) of modern browsers/PC's.

I'd say that that a non-plugin pure javascript alternative such as
Gchart http://code.google.com/p/gchart/ could compare better here, if
you are looking for free non-Flash charts. Although, I still prefer
the flashiness of the flash charts :).

I wish Ejschart (http://www.ejschart.com/) provided a GWT wrapper.

Tim
http://gwtnow.com

On Aug 26, 10:50 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Or you can use glotr which is pure GWT (no flash), cross platform
> support.http://code.google.com/p/glotr/
>
> On Aug 26, 9:24 am, gslender <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Quick msg to those who are interested in trying out an opensource
> > charting widget for GWT.
>
> > Check it out athttp://code.google.com/p/ofcgwt/
>
> > Features client-side data updates and is based on the Open Flash Chart
> > 2 API (http://teethgrinder.co.uk/open-flash-chart-2/) - requires no
> > server side logic or code to display charts.
>
> > Cheers,
> > Grant
>
>
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to make an Emd to End application in GWT ?

2008-08-26 Thread Renato Mangini
One more point: you can integrate your "monolithic" GWT app with the
browser's native history support (including previous/next buttons and
bookmarks) by using the History/HistoryListener GWT support. There are
examples and tutorial in the docs page.


On 8/26/08, walden <[EMAIL PROTECTED]> wrote:
>
>
> Sam,
>
> Len makes a good point: if you are building an integral application in
> GWT, then you don't want to switch pages the way you do in a legacy
> HTML application.  You want to "stay resident" by switching out DOM
> content.
>
> At some point, though, you will have another HTML page, and I think
> the answer you are looking for with regard to reusing widgets
> developed for page numero uno is this:
>
> a. to keep programming simple, your second page needs its own
> EntryPoint and Module
> b. your second Module can inherit your first Module, so you can reuse
> its custom widgets
>
> So check the GWT docs for the section on Modules and inheritance of
> same.
>
> Walden
>
>
> On Aug 26, 5:04 am, Len <[EMAIL PROTECTED]> wrote:
> > Hi
> >
> > Well you need to think about it differently - This is an application
> > that runs in the browser and not a set of html pages. The rough idea
> > with different html pages is that they would be different modules in
> > GWT - each module is an application (or part thereof that operates
> > independently)
> >
> > So in your case you want to have more than one panel in your application.
> >
> > Panel startPanel = ...
> > Panel nextPanel = ...
> >
> > At the beiginning of the application in the entry point class you set
> > the root panel to your fist panel
> >
> > RootPanel.get().add(startPanel);
> >
> > In your start panel there is a button
> >
> > Button nextButton = ...
> >
> > That is added to the startPanel
> >
> > startPanel.add(nextButton);
> >
> > The nextButton has a Listener attached to it that is called when the
> > button is clicked. The listener then changes the panels
> >
> > RootPanel.get().clear();
> > RootPanel.get().add(nextPanel);
> >
> > Hope that helps
> > Len
> >
>
> > On 26/08/2008, Sam <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> > >  Hi Len
> > >  Thanks for the prompt reply. I do admit that we can use panel. What my
> > >  concern is , if I render some widgets on lets say abc.html and it is
> > >  mapped to some java file which implements EntryPoint interface. This
> > >  abc.html file has a NEXT button on it . And this next button takes me
> > >  to lets say pqr.html. Now if I wanna render any widget or lets say a
> > >  pannel on which I added some widgets , do I need to write a class
> > >  which for pqr.html too which implements EntryPoint interface.
> >
> > > Thanks
>
> > >  Samir- Hide quoted text -
> >
> > - Show quoted text -
>
> >
>


-- 
Renato Mangini
http://www.linkedin.com/in/mangini

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



do somebody know how to access private field and method in gwt widget using jsni from custom class ?

2008-08-26 Thread Rene

I tryed everything and allways som exception or so. There is
getSplitElement() in HorizontalSplitPanel , how to access it , and or
some field also.  I beleve that it will be very helpful also to
others.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Compilation error after 1.5rc2 upgrade

2008-08-26 Thread Folke

On Aug 26, 11:37 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > On Aug 26, 11:15 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> >http://code.google.com/p/google-web-toolkit/source/detail?r=3061
>
> Thanks for the quick reply. I guess I'd rather see compilation errors,
> but why not just implement the code, I wonder? It seems like it's a
> simple function, which would be better implemented in one place (the
> Collections emulation), than in the client code of each user. It's no
> big deal; now that I know, I'll implement it myself. But still... is
> this just a symptom of getting to crunch time with some code
> incomplete?

It's not that simple. The returned sublist is backed by the returning
list. Any change to the sublist also changes the parent list.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Enter the Container

2008-08-26 Thread Folke

Hi!

Have you ever wondered how to write a widget that contains other
widgets but you don't want to extend Panel because Panel implements
HasWidgets? HasWidgets forces you to implement the ability to remove
child widgets via Iterator.remove() and remove() directly. But your
child widgets are completely managed by your parent widget and should
not be removable.

Such a container widget is currently only possible by extending Panel
and then wrapping a Composite around the subclass just to hide the
HasWidgets methods. But it can be much simpler. We introduce a new UI
base class that provides the well-known adopt() and orphan() methods
of Panel but does not implement HasWidgets. This base class also
provides methods to call Widget.onAttach() and onDetach().

Enter the Container.

A Container should provide methods to call setParent(), onAttach(),
and onDetach(), which are package-private and protected, respectively,
and Container should take over the adopt() and orphan() methods from
Panel. This would make Panel merely a semi-abstract implementation of
HasWidgets.

Please take a look a this document:
http://docs.google.com/View?docID=dgf5d73j_17c99djxgc
To attach or detach children you have to call attachChild() and
detachChild() or one of the convenience methods for collections.

For a more detailed explanation read this thread:
http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/cdee97b882979020

I also opened an issue and attached a patch. If you like to try this
out check out the GWT 1.5.1 source and apply the patch. If you only
like to try out Container you can create a package
"com.google.gwt.user.client.ui" in your project and copy the source
into Container.java.
http://code.google.com/p/google-web-toolkit/issues/detail?id=2810

Now I would like to hear what you think of this enhancement. Do you
think you have any use for this? Is there something you would rather
change?

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Compilation error after 1.5rc2 upgrade

2008-08-26 Thread [EMAIL PROTECTED]

Folke,


> On Aug 26, 11:15 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > Folks,
> >   I've been using 1.5rc1 for a while to develop a project, and it's
> > been working fine. When RC2 came out, I figured I should give it a
> > try. Lo and behold, my GWTCompiler task now fails as follows:
>
> > gwt-compile:
> >  [java] Removing units with errors
> >  [java][ERROR] Errors in 'file:/C:/Documents%20and%20Settings/
> > kfiles/workspace/yalta/src/com/masergy/yalta/client/controller/
> > BundleSelectorAction.java'
> >  [java]   [ERROR] Line 102: The method subList(int, int) is
> > undefined for the type List
[...]
> > Did the emulation classes change between RC1 and RC2 for some reason?

On Aug 26, 4:22 pm, Folke <[EMAIL PROTECTED]> wrote:
> Yes
>
> http://code.google.com/p/google-web-toolkit/source/detail?r=3061

Thanks for the quick reply. I guess I'd rather see compilation errors,
but why not just implement the code, I wonder? It seems like it's a
simple function, which would be better implemented in one place (the
Collections emulation), than in the client code of each user. It's no
big deal; now that I know, I'll implement it myself. But still... is
this just a symptom of getting to crunch time with some code
incomplete?

Perhaps an improved compiler error message would be, "this J2SE method
is not implemented by GWT emulation libraries." That way, I'd know the
error was intentional, and not indicating some kind of classpath
error.

  --kirby
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: VerticalSplitPanel setSplitPosition fails

2008-08-26 Thread Ian Bambury
You can't add splitpanels to widgets (or in the case of your tab panel) to
parts of widgets which are hidden when they are added to the DOM.

In IE, the splitter ends up on the left/top in FF all the dovs (the two
containing divs and the splitter) end up stacked up on each other with the
splitter not visible, just the second bit of content.

You also can't add the split panel to a visible part of the DOM then move it
- the three internal elements end up in the right formation, but stuck at
point 0,0.

And you can't subclass and override the duff bits because split panels are
final.

Even if you get it to work by adding it to a tab and then closing it (you
have to use a deferred command nested in another deferred command because
the split panels use a deferred command), the user will still see it, and if
the tab panel is part of a page you swap out, when you come back, it will be
screwed up.
Basically, you can add them to a visible portion of your screen so long as
you don't move them. Anything else, and, AFAICT, you're screwed.

Ian

2008/8/26 loott <[EMAIL PROTECTED]>

>
> Hello,
>
> I'm trying to add a VerticalSplitPanel to a TabPanel. The widget is
> added but the method setSplitPosition doesn't work anymore Do you
> know if this behaviour is normal or if it's a bug?
>
> Example of VerticalSplitPanel with setSplitPosition working:
> public void onModuleLoad() {
>
>HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
>splitPanel.setSize("800px", "600px");
>splitPanel.setLeftWidget(new Label("label 1"));
>splitPanel.setRightWidget(new Label("label 2"));
>splitPanel.setSplitPosition("30%");
>RootPanel.get().add(splitPanel);
> }
>
> Example of VerticalSplitPanel with setSplitPosition failing:
>
> public void onModuleLoad() {
>
>
>HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
>splitPanel.setSize("800px", "600px");
>splitPanel.setLeftWidget(new Label("label 1"));
>splitPanel.setRightWidget(new Label("label 2"));
>splitPanel.setSplitPosition("30%");
>
>VerticalPanel verticalPanel = new VerticalPanel();
>verticalPanel.setSize("800px", "600px");
>verticalPanel.add(splitPanel);
>TabPanel tabPanel = new TabPanel();
>tabPanel.setSize("800px", "600px");
>tabPanel.add(verticalPanel, "split");
>RootPanel.get().add(tabPanel);
>
> }
>
>
> Best Regards
>
> >
>


-- 
Ian
http://examples.roughian.com
___

Life is either a daring adventure or nothing.
Security is mostly a superstition.
It does not exist in nature.
- Helen Keller
___

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Compilation error after 1.5rc2 upgrade

2008-08-26 Thread Folke

Yes

http://code.google.com/p/google-web-toolkit/source/detail?r=3061


On Aug 26, 11:15 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Folks,
>   I've been using 1.5rc1 for a while to develop a project, and it's
> been working fine. When RC2 came out, I figured I should give it a
> try. Lo and behold, my GWTCompiler task now fails as follows:
>
> gwt-compile:
>      [java] Removing units with errors
>      [java]    [ERROR] Errors in 'file:/C:/Documents%20and%20Settings/
> kfiles/workspace/yalta/src/com/masergy/yalta/client/controller/
> BundleSelectorAction.java'
>      [java]       [ERROR] Line 102: The method subList(int, int) is
> undefined for the type List
>
> The code in question is below, a perfectly valid snippet in java
> JDK1.5:
>       Services.YALTA.findBundles(c.getCustId(), 0, 50,
>           new AsyncCallback>() {
>             public void onSuccess(List rv) {
>               if (null == rv)
>                 return;
>
> EventMapper.getInstance().fireEvent(EventMapper.SERVER_DONE,
>                   new ServerRequestEvent());
>               if (rv.size() > 0) {
>                 table.setModel(rv);
>
> EventMapper.getInstance().fireEvent(EventMapper.BUND_SEL,
>                     rv.get(0));
> Lien 102>>                table.setSelected(rv.subList(0, 1));
>               }
>             }
>
>             public void onFailure(Throwable caught) {
>               Window.alert("Failure " + caught);
>             }
>           });
>
> Did the emulation classes change between RC1 and RC2 for some reason?
>
> Thanks,
>   --kirby
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Compilation error after 1.5rc2 upgrade

2008-08-26 Thread [EMAIL PROTECTED]

Folks,
  I've been using 1.5rc1 for a while to develop a project, and it's
been working fine. When RC2 came out, I figured I should give it a
try. Lo and behold, my GWTCompiler task now fails as follows:

gwt-compile:
 [java] Removing units with errors
 [java][ERROR] Errors in 'file:/C:/Documents%20and%20Settings/
kfiles/workspace/yalta/src/com/masergy/yalta/client/controller/
BundleSelectorAction.java'
 [java]   [ERROR] Line 102: The method subList(int, int) is
undefined for the type List

The code in question is below, a perfectly valid snippet in java
JDK1.5:
  Services.YALTA.findBundles(c.getCustId(), 0, 50,
  new AsyncCallback>() {
public void onSuccess(List rv) {
  if (null == rv)
return;
 
EventMapper.getInstance().fireEvent(EventMapper.SERVER_DONE,
  new ServerRequestEvent());
  if (rv.size() > 0) {
table.setModel(rv);
 
EventMapper.getInstance().fireEvent(EventMapper.BUND_SEL,
rv.get(0));
Lien 102>>table.setSelected(rv.subList(0, 1));
  }
}

public void onFailure(Throwable caught) {
  Window.alert("Failure " + caught);
}
  });

Did the emulation classes change between RC1 and RC2 for some reason?

Thanks,
  --kirby
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Flex or GWT for JavaEE RIA development?

2008-08-26 Thread Arthur Kalmenson

Thomas,

I think GWT to SWF compilation is still in its infancy, so I wouldn't
base my application on it just yet. It has a lot of potential but I'd
stick with what works today.

On Aug 25, 3:58 am, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> First, thanks a lot for those details!
>
> But...
> ...how about compiling Java code into SWF through GWT?
> (seehttp://www.slideshare.net/cromwellian/gwt-extremefrom slide 44)
>
> On 25 août, 09:11, Kris Hofmans <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I would like to offer some insights into this, I have had some GWT
> > experience and currently I am working on a large Flex project (flex 3
> > + granite ds (like blaze ds but with some additional nifty features)).
>
> > First I would like to contradict a couple of people in this thread,
> > the flash player does NOT provide a similar experience between all
> > browsers/operating systems, layout issues arise in for example safari.
> > And don't even get me started on the difference on date handling
> > between windows and other platforms (linux, mac, ...) which adobe will
> > fix with an "enhancement" in flash player 11. They call it an
> > enhancement because they documented the difference for flash but not
> > for flex 
>
> > Then the tooling. Flex builder is a substandard IDE, it offers NO
> > usefull refactoring support. We have a flex client of around +-65000
> > loc, the ONLY option you have for refactoring is rename and if we use
> > update references it takes up to 25 minutes on a c2d 2,4ghz laptop
> > with 2gb ram. No organize imports, no code templates, ... it's more
> > like a text editor with some highlighting support. There is a visual
> > editor which works fine most of the time, the problem is we never
> > really use it because writing mxml/as ourselfs is faster and offers
> > more control. F3/ctrl-click support is broken most of the time when
> > using more than 1 linked flex project.
>
> > Gwt is java, so the java tooling works fantastic. You can also just
> > once write your model/dto and don't have to build the same objects in
> > actionscript that you than have to keep in sync.
>
> > Now I won't get into a battle about what is best: Actionscript or
> > Javascript, they are both ecmascript variants. The mxml declarative
> > notation is a nice to have but also not a deal breaker.
>
> > Another miss on the flex side is the lack of good load/ui testing
> > tools mostly because of the AMF protocol, there are some commercially
> > available load testing tools. It's still all very new and you can
> > definitly experience that when you get deeper into the flex
> > "underground".
>
> > Don't get me wrong, you can do lots of nice things, because of the
> > vector based nature you can get nice looking apps, animations run
> > smooth and overal the UI is a lot more consistent than what browsers
> > have to offer.
>
> > One of my last annoyances is some of the behaviour of the actionscript
> > VM, it bundles server calls into one single request block that gets
> > sent as soon as the code stops executing, this request block gets
> > handled by a single thread on the server, thus makes it harder to
> > scale in paralell per client.
>
> > Still I wouldn't write off flex completely, neither one is perfect. If
> > you would like a lot of eyecandy in you app I would probably suggest
> > flex, if you need multimedia support, I know gwt can do it, but I
> > would probably also go with flex because when you start mix&matching
> > you need to manage different codebases, when you have this nifty util
> > in gwt you have to rewrite it in actionscript if you would like to use
> > it in one of your multimedia components ... stick to as few languages
> > as possible.
>
> > Good luck with making a well thought out choice!
>
> > Sincerely,
> > Kris Hofmans
>
> > On Aug 22, 7:56 pm, taurinus <[EMAIL PROTECTED]> wrote:
>
> > > We are evaluating what UI technology to use for a Enterprise Rich
> > > Internet Application. It turns out to be difficult to find the right
> > > criteria and trusted sources that can help us finding the right
> > > decision. Can you tell what criteria would be most important and the
> > > dis-/advantage of Adobe Flex 3 (with/-out Blaze DS) vs. Google
> > > Webtoolkit?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: New GWT SlideShow

2008-08-26 Thread Pavel Byles
Great.. .I like.

On Mon, Aug 25, 2008 at 10:44 PM, Rekkai <[EMAIL PROTECTED]> wrote:

>
> Hi,
> We have developed a GWT wrapper for Lightbox slideshow.
> Please checkout the code from http://www.codelathe.com/gwtsshow/
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Query : Synchronous calls in GWT

2008-08-26 Thread Ian Bambury
It's OK, it was very asynchronous. I was in the pub, and I phoned her to get
her to stock up the refrigerator for when I got home. Pre-loading it. But
she obviously lost the thread somewhere.



2008/8/26 Jason Essington <[EMAIL PROTECTED]>

>
>
> On Aug 26, 2008, at 12:33 PM, Ian Bambury wrote:
> > I sent my wife out for beer 7 years ago.
> >
> > Where's she got to, that's what I want to know.
>
> Good thing that wasn't a synchronous request, or you'd still be stuck
> on the couch!
>
> > PS: Don't get me wrong, I'm not complaining...
>
> 7 years without getting your beer??? Is that even possible?
>
>
> >
>


-- 
Ian
http://examples.roughian.com
___

Life is either a daring adventure or nothing.
Security is mostly a superstition.
It does not exist in nature.
- Helen Keller
___

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Regarding your presentation

2008-08-26 Thread Miguel Méndez
[+gwt - where possible please use the developer forum or GWTC]
None of the public classes in the maps source code use the G prefix.  It
seems like you are looking at some other library.  If you want to see a
really detailed example that uses a large portion of the Maps API you should
check out the source code under
http://code.google.com/p/gwt-google-apis/source/browse/#svn/trunk/maps/samples/hellomaps.
 It will answer most of your questions.

HTH,

On Tue, Aug 19, 2008 at 4:05 PM, agnes Laffitte <[EMAIL PROTECTED]>wrote:

> I saw your video on : http://www.youtube.com/watch?v=sz6txhPT7vQ
> I had a few questions.
> The code you gave in your presentation:
> package com.example.google.gwt.mapstutorial.client;
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.maps.client.MapWidget;
> import com.google.gwt.maps.client.control.SmallMapControl;
> import com.google.gwt.user.client.ui.RootPanel;
>
> public class MapsTutorial implements EntryPoint {
>
>   public void onModuleLoad() {
>
> MapWidget mw = new MapWidget();
> mw.addControl(new SmallMapControl());
> mw.setSize("500px", "500px");
> RootPanel.get().add(mw);
>   }
> }
> works well when I tried it.
> About the two other codes:
> class CustomZoomControl extends CustomControl {
> protected Widget initialize (final MapWidge map){
> Panel container = new FlowPanel();
> Button zoomInButtonn = new FlowPanel();
> Button zoomInButton = new Button("Zoom In");
> zoomInButton.addClickListener(new ClickListener(){
> public void onClick(Widget sender){
> map.zoomIn();
> }
> });
> container.add(zoomInButton);
> return container;
> }
> public boolean isSelectable() {
> return false;
> }
> }
>
> class RectangleOverlay extends Overlay {
> public RectangleOverlay(LatLngBounds bounds, int weight)
> protected Overlay copyt()
> protected void initialize(MapWidge map)
> protected void redraw(boolean force)
> protected ovid remove()
> }
>
> where do you put these fragments into eclipse. Do you put them in the
> public void onModuleLoad(){
> //code goes in here
> }
> or no?
> And lastly, I found this example in javascript, and wanted to them in Java
> using the following library:
>
> http://gwt-google-apis.googlecode.com/svn/javadoc/1.1/maps/overview-summary.html
>
> http://google-web-toolkit.googlecode.com/svn-history/r2433/javadoc/1.4/overview-summary.html
>
> Example:
> /General setup nothing too interesting
> RootPanel.get("slot2").add(searchStatusText);
> GMap2Widget mapWidget = new GMap2Widget("500px", "500px");
> RootPanel.get("slot4").add(mapWidget);
> final GMap2 map = mapWidget.getGmap();
> map.addControl(GControl.GSmallZoomControl());
> Element e = RootPanel.get("directions").getElement();
>
> //Create the GDirections object and associate it to the map... you can
> create it without any map association (which means the API won't
> automatically put the route on the map, but you'll still get the
> results).  Also if you want to use Google's step by step directions on
> your page pass a Element object for a div (as in the example below).
>
> final GDirections gd = new GDirections(map, e);
>
> // Stronly recommend that you listen for the "load" event before
> attempting to access any of the result objects, lest you will be
> burdened with copious amounts of error messages.  An example of how to
> do that is below.
>
> GEventListener listener = GEvent.addListener(gd, "load", new
> GEventHandler(){
>
> public void onHandle(JSObject source, JSObject[] param) {
>
> GDirectionsDistance distance = gd.getDistance();
> GDirectionsDuration duration = gd.getDuration();
>
> GRoute route = gd.getRoute(0);
> int steps = route.getNumSteps();
> GLatLng end = route.getEndLatLng();
> distance = route.getDistance();
> duration = route.getDuration();
> String summary = route.getSummaryHtml();
>
> GStep step = route.getStep(0);
> GLatLng step_first = step.getLatLng();
> int step_polyline_index = step.getPolylineIndex();
> String step_desc = step.getDescriptionHtml();
> GDirectionsDistance step_distance =
> step.getDistance();
> GDirectionsDuration step_duration =
> step.getDuration();
>
> distance = step_distance;
> duration = step_duration;
>
> GLog.write("Distance in miles: " +
> distance.getMiles());
> GLog.write("Time in seconds: " +
> duration.getSeconds());
> GLog.write(distance.getHtml());
> GLog.write(duration.getHtml());
>
> int days = duration.getDays();
> int hours = duration.ge

Re: unable to lode moduloe entry point class

2008-08-26 Thread walden

An NPE is a plain old Java exception.  You've got a null reference and
you're trying to follow it to an object.  Right there on line 56.
Just fix that.  But if you don't know that much about Java, I think
you're in for some trouble with GWT.  Better get some familiarity with
Java first?

Walden

On Aug 26, 12:48 pm, princeezra <[EMAIL PROTECTED]> wrote:
> Unable to load module entry point class org.gwtbook.client.server1
> (see associated exception for details)
> [ERROR] Unable to load module entry point class
> org.gwtbook.client.server1 (see associated exception for details)
> java.lang.NullPointerException: null
>         at org.gwtbook.client.server1.onModuleLoad(server1.java:56)
>         at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:342)
>         at
> com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java­:
> 326)
>         at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access
> $200(BrowserWidgetIE6.java:36)
>         at
> com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidg­etIE6.java:
> 70)
>         at
> com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetI­E6.java:
> 125)
>         at
> com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
> 293)
>         at
> com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
> 196)
>         at
> org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
> 117)
>         at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
>
> any idea why this error has occured 
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Scrolling the RootPanel

2008-08-26 Thread walden

Paul,

I'm using something very much like this, but in raw javascript, and
it's working.  I'm curious where it falls down for you.  Do you have
any data on that?

Walden

On Aug 26, 12:34 pm, Paul van Hoven <[EMAIL PROTECTED]>
wrote:
> Thanks for the answers. Walden, unfortunatly your suggestion does not
> work in my implementation. And also unfortunatly I'm using GWT 1.4.
> Hence I think I'll have to make an upgrade.
>
> On Aug 25, 4:00 pm, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
>
>
>
> > How about something like this (tested, 1.5)
>
> > RootPanel.get("id").getElement().scrollIntoView();
>
> > Ian
>
> > 2008/8/25 walden <[EMAIL PROTECTED]>
>
> > > How about something like this (not tested) in a DeferredCommand:
>
> > > Element root = RootPanel.get().getElement();
> > > int offsetHeight = DOM.getElementPropertyInt(root, "offsetHeight")
> > > int clientHeight = Window.getClientHeight();
> > > if (offsetHeight > clientHeight) {
> > >    DOM.sestElementPropertyInt(root, "scrollTop", (offsetHeight -
> > > clientHeight + 40)
> > > }
>
> > > Walden
>
> > > On Aug 24, 12:00 pm, Paul van Hoven <[EMAIL PROTECTED]>
> > > wrote:
> > >  > On my webapp when the user clicks a certain link the page loads
> > > > another widget (significantly larger than the size of the physical
> > > > screen). The problem: the interesting part for the user is on the
> > > > bottom of the page. Hence I would like to make something like this:
>
> > > > RootPanel().get().setScrolling( toTheBottomOfThePage )
>
> > > > Since I didn't find anything like that I tired the
> > > > "DOM.scrollIntoView(Element elem)"-method by
>
> > > > DOM.scrollIntoView( myWidget.getElement() );
>
> > > > But it doesn't work. Then I tried ScrollPanel but it doesn't seem
> > > > apropriate for my case.
> > > > How can I tell my GWT app to scroll down to the bottom of the page?
>
> > --
> > Ianhttp://examples.roughian.com
> > ___
>
> > Life is either a daring adventure or nothing.
> > Security is mostly a superstition.
> > It does not exist in nature.
> > - Helen Keller
> > ___- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: For GWT developers : Using final and private across code , makes extending classes hard or mostly impossible, makes classes less readable and makes life with java harder overal

2008-08-26 Thread Thomas Broyer



On Aug 26, 7:11 pm, danael <[EMAIL PROTECTED]> wrote:
>
> "... just simply take the HorizontalSplitPanel.java original class
> file form svn and remake it to your needs ?"
> If I wanted to maintain my own API, I would not be using somebody
> else's, would I? I want to use standard GWT components and, at the
> same time, I want to be able to subclass them to add some extra
> functionality when I need it. As mentioned, previously, branching our
> own code for a component is not the way to go, it is the best way to
> run into cross browser bugs and maintenance issues along the way.

How about just maintaining a patch to GWT? Whenever you want to update
GWT, apply your patch to the new JAR (or compile/package from source)
and see if your subclasses still compile and run as expected.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How can i work with 2 Window

2008-08-26 Thread walden

It assumes the first window opened the second one, which is not
exactly the meaning of "no connection in theory".  Time to ask the big-
picture question.  What is the overall intent?

Walden

On Aug 26, 10:34 am, "alex.d" <[EMAIL PROTECTED]> wrote:
> Well, JavaScript allows you to do it. I don't remember the syntax
> precisely but it goes smth. like this:
>
> open a new browser window:
>
> var w = window.open("http://...";);
>
> to reach the opened window:
>
> w.window ...
>
> to reach the parent from the opened window:
>
> opener.window 
>
> Not sure if this work with all browsers. Also security issues possible
> like walden mentioned.
>
> On 26 Aug., 16:00, walden <[EMAIL PROTECTED]> wrote:
>
>
>
> > There is a huge security issue with what you want to do, and I don't
> > think it is possible.  I was trying to offer a workable alternative.
>
> > Walden
>
> > On Aug 26, 9:36 am, breder <[EMAIL PROTECTED]> wrote:
>
> > > A page with UI Tab, share the same information. I am ask for page that
> > > don't have any connection in theory, but there are same action between
> > > they.
>
> > > On Aug 25, 9:39 am, walden <[EMAIL PROTECTED]> wrote:
>
> > > > Use UI Tabs instead of Pages.
>
> > > > On Aug 22, 10:20 am, breder <[EMAIL PROTECTED]> wrote:
>
> > > > > I want to work with 2 page at the same time. If you click in the
> > > > > button from the first page, i will change a field in the second page.
> > > > > Of couse, the order doesn´t metter, the action from the first to the
> > > > > second and the second to the first.- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Text Area autosize

2008-08-26 Thread Folke

You can simply adjust the "height" until "scrollHeight" is equals to
"clientHeight".
The problem is that you cannot use this to shrink the TextArea
automatically. In this case you would have to set the height to
something very low, like 10px, and then check scrollHeight and
readjust "height" again.


On 26 Aug., 11:59, "jakob.korherr" <[EMAIL PROTECTED]> wrote:
> I'm afraid it is not that easy. You can not just count the '\n's in
> the text, because you also have to look at the length of each line. As
> we all know if the line is longer than the width of the textarea, it
> will display the new words in a new line automatically and without a
> '\n'.
>
> So you have to:
>
> 1) count the '\n's in the text
> 2) take a look at the length of every line and find out how often it
> is broken automatically (maybe with scrollWidth - I don't know..)
>
> On Aug 25, 10:31 am, Jason Morris <[EMAIL PROTECTED]> wrote:
>
> > Theres no automatic way to do this. What you would need to do is:
>
> > Add a KeyboardListener to the TextArea and in onKeyDown look for the number 
> > of
> > lines in the TextArea's content (plus one if the key is KEY_ENTER). Use
> > TextArea.setVisibleLines to make sure that the size of the TextArea is >= 
> > the
> > number of lines in it's content.
>
> > Something like:
>
> > final TextArea text = new TextArea();
>
> > text.addKeyboardListener(new KeyboardListenerAdapter() {
> >         public void onKeyDown(Widget sender, char keyCode, int mods) {
> >                 int lines = 0;
> >                 final String content = text.getText();
>
> >                 for(int i = 0; i != -1; i = content.indexOf("\n", i + 1)) {
> >                         lines++;
> >                 }
>
> >                 if(keyCode == KEY_ENTER) {
> >                         lines++;
> >                 }
>
> >                 if(text.getVisibleLines() < lines) {
> >                         text.setVisibleLines(lines);
> >                 }
> >         }
>
> > });
>
> > Should do the trick.
>
> > sri wrote:
> > > Hello,
> > > I'm new to GWT. Is there a way to NOT have a scrollbar for the
> > > TextArea and have it grow automatically when data goes beyond the
> > > visible lines? We do not use gwt-ext. I was able to take the scrollbar
> > > out with overflow:hidden but was not able to do the autosize part.
>
> > > Thanks in advance for any help.
>
> > > -sri
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Query : Synchronous calls in GWT

2008-08-26 Thread Jason Essington


On Aug 26, 2008, at 12:33 PM, Ian Bambury wrote:
> I sent my wife out for beer 7 years ago.
>
> Where's she got to, that's what I want to know.

Good thing that wasn't a synchronous request, or you'd still be stuck  
on the couch!

> PS: Don't get me wrong, I'm not complaining...

7 years without getting your beer??? Is that even possible?


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Opacity in IE 7

2008-08-26 Thread Thomas Broyer



On Aug 26, 12:22 am, Jacob <[EMAIL PROTECTED]> wrote:
> I've made a fade using the DOM.setStyleElement function to set opacity
> and the GWT Timer class. The approach works great in every browser
> I've tried (Firefox 2/3 and opera 9.5 in linux and windows) except for
> IE 7. I don't have a IE 6 to test it on, but thus far, IE 7, and the 8
> beta have failed. Any suggestions for how to make a better fade, or a
> way to get it to work in IE?

Googling for "IE opacity" led me to
http://joseph.randomnetworks.com/archives/2006/08/16/css-opacity-in-internet-explorer-ie/
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



unable to lode moduloe entry point class

2008-08-26 Thread princeezra

Unable to load module entry point class org.gwtbook.client.server1
(see associated exception for details)
[ERROR] Unable to load module entry point class
org.gwtbook.client.server1 (see associated exception for details)
java.lang.NullPointerException: null
at org.gwtbook.client.server1.onModuleLoad(server1.java:56)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:342)
at
com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:
326)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access
$200(BrowserWidgetIE6.java:36)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:
70)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:
125)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
293)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
196)
at
org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
117)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)


any idea why this error has occured 

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Release Candidates now available: the Google API Libraries for Google Web Toolkit

2008-08-26 Thread Miguel Méndez
We're happy to say that the first Release Candidates for the Google API
Libraries for Google Web Toolkit
are now ready to be taken
for a test drive.

The project is a collection of libraries that provide Java language bindings
and API specific 'plumbing' for some Google JavaScript APIs. The goal is to
make it easy for developers to use these JavaScript APIs with GWT. Libraries
available at this time include a new version of Gears, as well as new
libraries for Gadgets and the Google AJAX Search API.

Gears 1.1 Library (Release Candidate)
A new version of the Gears library is available. In addition to the earlier
version's support for the Gears LocalServer, Database, and WorkerPool, 1.1
adds integrated support for offline applications and updated sample
applications. The bindings have also been refactored to use GWT 1.5
JavaScript overlay types and a new package hierarchy.

Gadgets 1.0 Library (Release Candidate)
The Gadgets library simplifies gadget development with GWT by automatically
generating a Gadget specification from Java source and inserting a selection
script in the specification much like a regular GWT project. After compiling
your gadget with GWT, all files are in place to publish your gadget. This
version currently supports the legacy Gadgets API based on the _IG_...
namespace.

Google AJAX Search 1.0 Library (Release Candidate)
The Google AJAX Search API lets you put Google Search in your web pages,
including Web, Local, and Multimedia searches. This library allows you to
access the API from Java code compiled with the GWT compiler without having
to write additional JavaScript code.

If you've been following the early milestone builds, you may also be aware
that a Google Maps API Library for GWT is in the works. Stay tuned for a
release candidate for that library.

With this set of release candidates, each library is now distributed
separately so that you can download only the specific library you are
interested in.

We encourage you to try these release candidates out and give us feedback,
either through the issue
trackeron
code.google.com, or through the
Google-Web-Toolkitor
Google-Web-Toolkit-Contributors
 group.

-- 
Google API Libraries for GWT Team

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Query : Synchronous calls in GWT

2008-08-26 Thread Ian Bambury
2008/8/26 gregor <[EMAIL PROTECTED]>

>
> Jason, I think u are doing less than justice to yourself:
>
>
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f#
>
> Now, has anybody got any argument with that?
>


I sent my wife out for beer 7 years ago.

Where's she got to, that's what I want to know.

Ian

PS: Don't get me wrong, I'm not complaining...

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Query : Synchronous calls in GWT

2008-08-26 Thread gregor

Jason, I think u are doing less than justice to yourself:

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f#

Now, has anybody got any argument with that?


On Aug 26, 7:18 pm, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
> I can't think of a single good reason to lock up all tabs in the user's
> browser.
>
> In your example:
>
> Show a modal popup for the user to log in.
>
> Once submitted, disable the Submit button.
>
> If the login fails, show a message and enable the Submit button.
>
> If the login succeeds, remove the modal popup.
>
> Why lock up all the tabs in the browser? It's an unnecessarily unfriendly
> thing to do.
>
> Ian
> 2008/8/26 ping2ravi <[EMAIL PROTECTED]>
>
>
>
>
>
> > yes i do have have workaround for this, but was just wondering if i
> > can use any of GWT feature.
> > Also i read in GWT FAQ, GWT do not support Synchronous calls and in
> > future they are not planning to have it(they have some theory). So i
> > guess need to implement my own workaround.
> >http://code.google.com/support/bin/answer.py?answer=55195&topic=10210
>
> > But guys just a question of thought, Don't you think having a
> > synchronous call feature will be added advantage.
>
> > Lets say u build a application and u have something like if user
> > logged out of application because of idle session then when user try
> > to do anything on application. instead of forwarding him to some user
> > login page , we just popup a login/password panel thing. And usually
> > on click we will call the login on server and close the dialogue
> > box(againw e can keep it open and in onSuccess function we can close
> > it, but for me not a good idea)
> > And as the call is asynchrnous so once we call the Login on server,
> > user is allowed to do other click in application(before he actually
> > login to server) and he will again see that u r not logged in.
> > Its just a small example.
>
> > But i think having synchronous call will be good thing.
>
> > Thanks for reading
> > Ravi.
>
> > On Aug 26, 5:03 pm, "Pavel Byles" <[EMAIL PROTECTED]> wrote:
> > > can't you just do:
> > > doTaskCallBack {
> > >   onResponse(...) {
> > > userService.doSynchronousTask(...);
> > >   }
>
> > > }
>
> > > Wouldn't that just give the synchronous effect?
>
> >  > On Mon, Aug 25, 2008 at 6:24 AM, ping2ravi <[EMAIL PROTECTED]> wrote:
>
> > > > Hi All,
>
> > > > Does any one know how to make Synchronous calls using GWT.
> > > > Currently i am using GWT to build services, creating files like
>
> > > > com.app.client.MyService.java
> > > > //One function in this interface
> > > > doMyTask(ParamTpye myparams) throws ClientException;
>
> > > > com.app.client.MyServiceAsync.java
> > > > //One function in this interface
> > > > doMyTask(ParamTpye myparams,AsyncCallback callback) throws
> > > > ClientException;
>
> > > > com.app.server.MyServiceImpl.java
> > > > //One function in this class
> > > > doMyTask(ParamTpye myparams) throws ClientException;
>
> > > > now i create the service and call
> > > >MyServiceAsync userService = (MyServiceAsync)
> > > > GWT.create(MyService.class);
> > > >ServiceDefTarget endpoint = (ServiceDefTarget) userService;
> > > >String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
> > > >endpoint.setServiceEntryPoint(moduleRelativeURL);
> > > >userService.doMyTask(MyParams,CallBackObject);
>
> > > > This piece of code is working fine as a ASYNCHRONOUS call.
>
> > > > Then i tried making is synchronous call using following code(i don't
> > > > know if its valid or not)
> > > > instead of using MyServiceAsync i am using MyService
>
> > > >MyService userService = (MyService) GWT.create(MyService.class);
> > > >ServiceDefTarget endpoint = (ServiceDefTarget) userService;
> > > >String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
> > > >endpoint.setServiceEntryPoint(moduleRelativeURL);
> > > >userService.doMyTask(MyParams);
>
> > > > But call to doMyTask throw following exception.
> > > > java.lang.ClassCastException in MyService_Proxy.
>
> > > > So i guess this is not the way to make synchronous call in GWT
> > > > Can any one point me how to do that. Or its not possible at all in
> > > > GWT.
>
> > > > Thanks in advance.,
> > > > Ravi.
>
> --
> Ianhttp://examples.roughian.com
> ___
>
> Life is either a daring adventure or nothing.
> Security is mostly a superstition.
> It does not exist in nature.
> - Helen Keller
> ___
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Query : Synchronous calls in GWT

2008-08-26 Thread Ian Bambury
I can't think of a single good reason to lock up all tabs in the user's
browser.

In your example:

Show a modal popup for the user to log in.

Once submitted, disable the Submit button.

If the login fails, show a message and enable the Submit button.

If the login succeeds, remove the modal popup.

Why lock up all the tabs in the browser? It's an unnecessarily unfriendly
thing to do.

Ian
2008/8/26 ping2ravi <[EMAIL PROTECTED]>

>
> yes i do have have workaround for this, but was just wondering if i
> can use any of GWT feature.
> Also i read in GWT FAQ, GWT do not support Synchronous calls and in
> future they are not planning to have it(they have some theory). So i
> guess need to implement my own workaround.
> http://code.google.com/support/bin/answer.py?answer=55195&topic=10210
>
> But guys just a question of thought, Don't you think having a
> synchronous call feature will be added advantage.
>
> Lets say u build a application and u have something like if user
> logged out of application because of idle session then when user try
> to do anything on application. instead of forwarding him to some user
> login page , we just popup a login/password panel thing. And usually
> on click we will call the login on server and close the dialogue
> box(againw e can keep it open and in onSuccess function we can close
> it, but for me not a good idea)
> And as the call is asynchrnous so once we call the Login on server,
> user is allowed to do other click in application(before he actually
> login to server) and he will again see that u r not logged in.
> Its just a small example.
>
> But i think having synchronous call will be good thing.
>
> Thanks for reading
> Ravi.
>
> On Aug 26, 5:03 pm, "Pavel Byles" <[EMAIL PROTECTED]> wrote:
> > can't you just do:
> > doTaskCallBack {
> >   onResponse(...) {
> > userService.doSynchronousTask(...);
> >   }
> >
> > }
> >
> > Wouldn't that just give the synchronous effect?
> >
>  > On Mon, Aug 25, 2008 at 6:24 AM, ping2ravi <[EMAIL PROTECTED]> wrote:
> >
> > > Hi All,
> >
> > > Does any one know how to make Synchronous calls using GWT.
> > > Currently i am using GWT to build services, creating files like
> >
> > > com.app.client.MyService.java
> > > //One function in this interface
> > > doMyTask(ParamTpye myparams) throws ClientException;
> >
> > > com.app.client.MyServiceAsync.java
> > > //One function in this interface
> > > doMyTask(ParamTpye myparams,AsyncCallback callback) throws
> > > ClientException;
> >
> > > com.app.server.MyServiceImpl.java
> > > //One function in this class
> > > doMyTask(ParamTpye myparams) throws ClientException;
> >
> > > now i create the service and call
> > >MyServiceAsync userService = (MyServiceAsync)
> > > GWT.create(MyService.class);
> > >ServiceDefTarget endpoint = (ServiceDefTarget) userService;
> > >String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
> > >endpoint.setServiceEntryPoint(moduleRelativeURL);
> > >userService.doMyTask(MyParams,CallBackObject);
> >
> > > This piece of code is working fine as a ASYNCHRONOUS call.
> >
> > > Then i tried making is synchronous call using following code(i don't
> > > know if its valid or not)
> > > instead of using MyServiceAsync i am using MyService
> >
> > >MyService userService = (MyService) GWT.create(MyService.class);
> > >ServiceDefTarget endpoint = (ServiceDefTarget) userService;
> > >String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
> > >endpoint.setServiceEntryPoint(moduleRelativeURL);
> > >userService.doMyTask(MyParams);
> >
> > > But call to doMyTask throw following exception.
> > > java.lang.ClassCastException in MyService_Proxy.
> >
> > > So i guess this is not the way to make synchronous call in GWT
> > > Can any one point me how to do that. Or its not possible at all in
> > > GWT.
> >
> > > Thanks in advance.,
> > > Ravi.
> >
>


-- 
Ian
http://examples.roughian.com
___

Life is either a daring adventure or nothing.
Security is mostly a superstition.
It does not exist in nature.
- Helen Keller
___

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Query : Synchronous calls in GWT

2008-08-26 Thread Jason Essington

nope, again, this use case shows a poor decision of using a  
synchronous request. In fact I'm not aware of a single good use of a  
synchronous request in a browser.

I do this very thing using Async RPCs. I start by opening a modal  
dialog. the user can type his credentials into the "login" dialog, and  
submit them.
The submit button is disabled as soon as it is pressed, but the dialog  
is not dismissed preventing any clicking anywhere else in the  
application.
Once the RPC returns indicating that the user has successfully  
authenticated, the dialog is dismissed, and any original RPC (that  
triggered the session timeout notification) is resent.

There are glass panels Modal Dialogs and other techniques that prevent  
the user from poking about in the application that do not lock up the  
browser, and any of those techniques should be used long before  
attempting to hack in a Synchronous request.

There is no case where you as a programmer should cause your user's UI  
to completely lock up. It is fine to disable bits, but synchronous  
requests don't play nice, they completely lock up the browser, in some  
cases, not allowing the user to switch tabs, or browse other pages, or  
even close the browser. Users don't like that, and as a result, will  
equate the behavior with poor programming on your part. So, just don't  
do it.

-jason

On Aug 26, 2008, at 11:53 AM, ping2ravi wrote:

>
> yes i do have have workaround for this, but was just wondering if i
> can use any of GWT feature.
> Also i read in GWT FAQ, GWT do not support Synchronous calls and in
> future they are not planning to have it(they have some theory). So i
> guess need to implement my own workaround.
> http://code.google.com/support/bin/answer.py?answer=55195&topic=10210
>
> But guys just a question of thought, Don't you think having a
> synchronous call feature will be added advantage.
>
> Lets say u build a application and u have something like if user
> logged out of application because of idle session then when user try
> to do anything on application. instead of forwarding him to some user
> login page , we just popup a login/password panel thing. And usually
> on click we will call the login on server and close the dialogue
> box(againw e can keep it open and in onSuccess function we can close
> it, but for me not a good idea)
> And as the call is asynchrnous so once we call the Login on server,
> user is allowed to do other click in application(before he actually
> login to server) and he will again see that u r not logged in.
> Its just a small example.
>
> But i think having synchronous call will be good thing.
>
> Thanks for reading
> Ravi.
>
> On Aug 26, 5:03 pm, "Pavel Byles" <[EMAIL PROTECTED]> wrote:
>> can't you just do:
>> doTaskCallBack {
>>   onResponse(...) {
>> userService.doSynchronousTask(...);
>>   }
>>
>> }
>>
>> Wouldn't that just give the synchronous effect?
>>
>> On Mon, Aug 25, 2008 at 6:24 AM, ping2ravi <[EMAIL PROTECTED]>  
>> wrote:
>>
>>> Hi All,
>>
>>> Does any one know how to make Synchronous calls using GWT.
>>> Currently i am using GWT to build services, creating files like
>>
>>> com.app.client.MyService.java
>>> //One function in this interface
>>> doMyTask(ParamTpye myparams) throws ClientException;
>>
>>> com.app.client.MyServiceAsync.java
>>> //One function in this interface
>>> doMyTask(ParamTpye myparams,AsyncCallback callback) throws
>>> ClientException;
>>
>>> com.app.server.MyServiceImpl.java
>>> //One function in this class
>>> doMyTask(ParamTpye myparams) throws ClientException;
>>
>>> now i create the service and call
>>>MyServiceAsync userService = (MyServiceAsync)
>>> GWT.create(MyService.class);
>>>ServiceDefTarget endpoint = (ServiceDefTarget) userService;
>>>String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
>>>endpoint.setServiceEntryPoint(moduleRelativeURL);
>>>userService.doMyTask(MyParams,CallBackObject);
>>
>>> This piece of code is working fine as a ASYNCHRONOUS call.
>>
>>> Then i tried making is synchronous call using following code(i don't
>>> know if its valid or not)
>>> instead of using MyServiceAsync i am using MyService
>>
>>>MyService userService = (MyService) GWT.create(MyService.class);
>>>ServiceDefTarget endpoint = (ServiceDefTarget) userService;
>>>String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
>>>endpoint.setServiceEntryPoint(moduleRelativeURL);
>>>userService.doMyTask(MyParams);
>>
>>> But call to doMyTask throw following exception.
>>> java.lang.ClassCastException in MyService_Proxy.
>>
>>> So i guess this is not the way to make synchronous call in GWT
>>> Can any one point me how to do that. Or its not possible at all in
>>> GWT.
>>
>>> Thanks in advance.,
>>> Ravi.
> >


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

Re: Query : Synchronous calls in GWT

2008-08-26 Thread ping2ravi

yes i do have have workaround for this, but was just wondering if i
can use any of GWT feature.
Also i read in GWT FAQ, GWT do not support Synchronous calls and in
future they are not planning to have it(they have some theory). So i
guess need to implement my own workaround.
http://code.google.com/support/bin/answer.py?answer=55195&topic=10210

But guys just a question of thought, Don't you think having a
synchronous call feature will be added advantage.

Lets say u build a application and u have something like if user
logged out of application because of idle session then when user try
to do anything on application. instead of forwarding him to some user
login page , we just popup a login/password panel thing. And usually
on click we will call the login on server and close the dialogue
box(againw e can keep it open and in onSuccess function we can close
it, but for me not a good idea)
And as the call is asynchrnous so once we call the Login on server,
user is allowed to do other click in application(before he actually
login to server) and he will again see that u r not logged in.
Its just a small example.

But i think having synchronous call will be good thing.

Thanks for reading
Ravi.

On Aug 26, 5:03 pm, "Pavel Byles" <[EMAIL PROTECTED]> wrote:
> can't you just do:
> doTaskCallBack {
>   onResponse(...) {
>     userService.doSynchronousTask(...);
>   }
>
> }
>
> Wouldn't that just give the synchronous effect?
>
> On Mon, Aug 25, 2008 at 6:24 AM, ping2ravi <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > Does any one know how to make Synchronous calls using GWT.
> > Currently i am using GWT to build services, creating files like
>
> > com.app.client.MyService.java
> > //One function in this interface
> > doMyTask(ParamTpye myparams) throws ClientException;
>
> > com.app.client.MyServiceAsync.java
> > //One function in this interface
> > doMyTask(ParamTpye myparams,AsyncCallback callback) throws
> > ClientException;
>
> > com.app.server.MyServiceImpl.java
> > //One function in this class
> > doMyTask(ParamTpye myparams) throws ClientException;
>
> > now i create the service and call
> >    MyServiceAsync userService = (MyServiceAsync)
> > GWT.create(MyService.class);
> >    ServiceDefTarget endpoint = (ServiceDefTarget) userService;
> >    String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
> >    endpoint.setServiceEntryPoint(moduleRelativeURL);
> >    userService.doMyTask(MyParams,CallBackObject);
>
> > This piece of code is working fine as a ASYNCHRONOUS call.
>
> > Then i tried making is synchronous call using following code(i don't
> > know if its valid or not)
> > instead of using MyServiceAsync i am using MyService
>
> >    MyService userService = (MyService) GWT.create(MyService.class);
> >    ServiceDefTarget endpoint = (ServiceDefTarget) userService;
> >    String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
> >    endpoint.setServiceEntryPoint(moduleRelativeURL);
> >    userService.doMyTask(MyParams);
>
> > But call to doMyTask throw following exception.
> > java.lang.ClassCastException in MyService_Proxy.
>
> > So i guess this is not the way to make synchronous call in GWT
> > Can any one point me how to do that. Or its not possible at all in
> > GWT.
>
> > Thanks in advance.,
> > Ravi.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: For GWT developers : Using final and private across code , makes extending classes hard or mostly impossible, makes classes less readable and makes life with java harder overal

2008-08-26 Thread danael

I just want to add my voice to this thread.
I want to clarify that, first of all, I am not particularly referring
to the HorizontalSplitPanel class but to the general practice of
making methods and member variables private (or not making observers
for private member variables) rather than protected in the GWT UI
component classes and second that I use composition extensively and
third that I come from a Swing background.

"... just simply take the HorizontalSplitPanel.java original class
file form svn and remake it to your needs ?"
If I wanted to maintain my own API, I would not be using somebody
else's, would I? I want to use standard GWT components and, at the
same time, I want to be able to subclass them to add some extra
functionality when I need it. As mentioned, previously, branching our
own code for a component is not the way to go, it is the best way to
run into cross browser bugs and maintenance issues along the way.

"Now, if you have a very specific use case that requires access to
something with private visibility, there is a way to handle it.
Javascript has no concept of visibility, so you can use a JSNI method
to get around Java's private keyword."
Right. Well, then why am I using GWT? Let's just implement the whole
thing using Javascript and HTML. In my understanding, I should be able
to use Java to implement my UI specially to do something as basic as
extending the functionality of a component. Please, give us observers
(accessor) so we do not need to hack the code using JSNI.

"Now, if you have a very specific use case that requires access to
something with private visibility, there is a way to handle it.
Javascript has no concept of visibility, so you can use a JSNI method
to get around Java's private keyword. By doing this, you acknowledge
that you are accessing something that has no guarantee of actually
being there in a future release (that's why it was private) but it'll
allow you access where you really think you need it. "
Come on, making a method/member "private" because it might not be
there in future releases? Once you have an API, you cannot just
restrict the visibility and hence restrict the use of it based on you
future "maybe" needs. Fists of all, it is generally a good practice to
think the API throughly before coding it so you do not have to
redesign the whole thing once is published but even if you come up
with a better way and something  has to be changed, even a whole
class, just deprecated the old way and give the new way of doing it
instructions, we will be happy to make the changes.

Now, do not take me wrong, of course there are things that should be
private and of course stricter visibility is best but cut us,
developers, some slack, we need to use the API, and sometimes even
small changes are impossible due to lack of protected observers of
private members or due to some methods being private instead of
protected.

Thank you for being ready to listen and thank you for making GWT.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Running JSF inside a gwt frame in hosted or debug mode

2008-08-26 Thread janielse

Hi,

I am working on a project that uses both JSF and GWT technology. One
of our challenges is being able to run a JSF page (or flow) inside a
gwt frame in hosted or debug mode. It is not a problem if we package
it and deploy it on a tomcat but it would be extremely usefull if we
could run it directly while developing the GWT code.

I have found a link
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/dacde7a41e5b881d/f9186d10c219
that explains a bit about running a jsp file in hosted mode but it
references a tomcat web.xml file that i dont know where to find.

Hope someone is able to help.

/Jacob

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Text Area autosize

2008-08-26 Thread jakob.korherr

I'm afraid it is not that easy. You can not just count the '\n's in
the text, because you also have to look at the length of each line. As
we all know if the line is longer than the width of the textarea, it
will display the new words in a new line automatically and without a
'\n'.

So you have to:

1) count the '\n's in the text
2) take a look at the length of every line and find out how often it
is broken automatically (maybe with scrollWidth - I don't know..)


On Aug 25, 10:31 am, Jason Morris <[EMAIL PROTECTED]> wrote:
> Theres no automatic way to do this. What you would need to do is:
>
> Add a KeyboardListener to the TextArea and in onKeyDown look for the number of
> lines in the TextArea's content (plus one if the key is KEY_ENTER). Use
> TextArea.setVisibleLines to make sure that the size of the TextArea is >= the
> number of lines in it's content.
>
> Something like:
>
> final TextArea text = new TextArea();
>
> text.addKeyboardListener(new KeyboardListenerAdapter() {
>         public void onKeyDown(Widget sender, char keyCode, int mods) {
>                 int lines = 0;
>                 final String content = text.getText();
>
>                 for(int i = 0; i != -1; i = content.indexOf("\n", i + 1)) {
>                         lines++;
>                 }
>
>                 if(keyCode == KEY_ENTER) {
>                         lines++;
>                 }
>
>                 if(text.getVisibleLines() < lines) {
>                         text.setVisibleLines(lines);
>                 }
>         }
>
> });
>
> Should do the trick.
>
> sri wrote:
> > Hello,
> > I'm new to GWT. Is there a way to NOT have a scrollbar for the
> > TextArea and have it grow automatically when data goes beyond the
> > visible lines? We do not use gwt-ext. I was able to take the scrollbar
> > out with overflow:hidden but was not able to do the autosize part.
>
> > Thanks in advance for any help.
>
> > -sri

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



VerticalSplitPanel setSplitPosition fails

2008-08-26 Thread loott

Hello,

I'm trying to add a VerticalSplitPanel to a TabPanel. The widget is
added but the method setSplitPosition doesn't work anymore Do you
know if this behaviour is normal or if it's a bug?

Example of VerticalSplitPanel with setSplitPosition working:
public void onModuleLoad() {

HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
splitPanel.setSize("800px", "600px");
splitPanel.setLeftWidget(new Label("label 1"));
splitPanel.setRightWidget(new Label("label 2"));
splitPanel.setSplitPosition("30%");
RootPanel.get().add(splitPanel);
}

Example of VerticalSplitPanel with setSplitPosition failing:

public void onModuleLoad() {


HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
splitPanel.setSize("800px", "600px");
splitPanel.setLeftWidget(new Label("label 1"));
splitPanel.setRightWidget(new Label("label 2"));
splitPanel.setSplitPosition("30%");

VerticalPanel verticalPanel = new VerticalPanel();
verticalPanel.setSize("800px", "600px");
verticalPanel.add(splitPanel);
TabPanel tabPanel = new TabPanel();
tabPanel.setSize("800px", "600px");
tabPanel.add(verticalPanel, "split");
RootPanel.get().add(tabPanel);

}


Best Regards

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Opacity in IE 7

2008-08-26 Thread Jacob

I've made a fade using the DOM.setStyleElement function to set opacity
and the GWT Timer class. The approach works great in every browser
I've tried (Firefox 2/3 and opera 9.5 in linux and windows) except for
IE 7. I don't have a IE 6 to test it on, but thus far, IE 7, and the 8
beta have failed. Any suggestions for how to make a better fade, or a
way to get it to work in IE?

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



New GWT SlideShow

2008-08-26 Thread Rekkai

Hi,
We have developed a GWT wrapper for Lightbox slideshow.
Please checkout the code from http://www.codelathe.com/gwtsshow/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Scrolling the RootPanel

2008-08-26 Thread Paul van Hoven

Thanks for the answers. Walden, unfortunatly your suggestion does not
work in my implementation. And also unfortunatly I'm using GWT 1.4.
Hence I think I'll have to make an upgrade.

On Aug 25, 4:00 pm, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
> How about something like this (tested, 1.5)
>
> RootPanel.get("id").getElement().scrollIntoView();
>
> Ian
>
> 2008/8/25 walden <[EMAIL PROTECTED]>
>
>
>
>
>
> > How about something like this (not tested) in a DeferredCommand:
>
> > Element root = RootPanel.get().getElement();
> > int offsetHeight = DOM.getElementPropertyInt(root, "offsetHeight")
> > int clientHeight = Window.getClientHeight();
> > if (offsetHeight > clientHeight) {
> >    DOM.sestElementPropertyInt(root, "scrollTop", (offsetHeight -
> > clientHeight + 40)
> > }
>
> > Walden
>
> > On Aug 24, 12:00 pm, Paul van Hoven <[EMAIL PROTECTED]>
> > wrote:
> >  > On my webapp when the user clicks a certain link the page loads
> > > another widget (significantly larger than the size of the physical
> > > screen). The problem: the interesting part for the user is on the
> > > bottom of the page. Hence I would like to make something like this:
>
> > > RootPanel().get().setScrolling( toTheBottomOfThePage )
>
> > > Since I didn't find anything like that I tired the
> > > "DOM.scrollIntoView(Element elem)"-method by
>
> > > DOM.scrollIntoView( myWidget.getElement() );
>
> > > But it doesn't work. Then I tried ScrollPanel but it doesn't seem
> > > apropriate for my case.
> > > How can I tell my GWT app to scroll down to the bottom of the page?
>
> --
> Ianhttp://examples.roughian.com
> ___
>
> Life is either a daring adventure or nothing.
> Security is mostly a superstition.
> It does not exist in nature.
> - Helen Keller
> ___
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Query : Synchronous calls in GWT

2008-08-26 Thread Pavel Byles
can't you just do:
doTaskCallBack {
  onResponse(...) {
userService.doSynchronousTask(...);
  }
}

Wouldn't that just give the synchronous effect?


On Mon, Aug 25, 2008 at 6:24 AM, ping2ravi <[EMAIL PROTECTED]> wrote:

>
> Hi All,
>
> Does any one know how to make Synchronous calls using GWT.
> Currently i am using GWT to build services, creating files like
>
> com.app.client.MyService.java
> //One function in this interface
> doMyTask(ParamTpye myparams) throws ClientException;
>
>
> com.app.client.MyServiceAsync.java
> //One function in this interface
> doMyTask(ParamTpye myparams,AsyncCallback callback) throws
> ClientException;
>
> com.app.server.MyServiceImpl.java
> //One function in this class
> doMyTask(ParamTpye myparams) throws ClientException;
>
> now i create the service and call
>MyServiceAsync userService = (MyServiceAsync)
> GWT.create(MyService.class);
>ServiceDefTarget endpoint = (ServiceDefTarget) userService;
>String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
>endpoint.setServiceEntryPoint(moduleRelativeURL);
>userService.doMyTask(MyParams,CallBackObject);
>
> This piece of code is working fine as a ASYNCHRONOUS call.
>
> Then i tried making is synchronous call using following code(i don't
> know if its valid or not)
> instead of using MyServiceAsync i am using MyService
>
>MyService userService = (MyService) GWT.create(MyService.class);
>ServiceDefTarget endpoint = (ServiceDefTarget) userService;
>String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
>endpoint.setServiceEntryPoint(moduleRelativeURL);
>userService.doMyTask(MyParams);
>
> But call to doMyTask throw following exception.
> java.lang.ClassCastException in MyService_Proxy.
>
>
> So i guess this is not the way to make synchronous call in GWT
> Can any one point me how to do that. Or its not possible at all in
> GWT.
>
> Thanks in advance.,
> Ravi.
>
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Using firefox instead of IE on windows

2008-08-26 Thread Yegor

You can definitely run GWT in hosted mode on linux.

You can find downloads for all supported platforms here:
http://code.google.com/webtoolkit/versions.html

(as of this writing the latest production version is 1.4.62)

Yegor


On Aug 25, 7:04 am, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
> 2008/8/25 Asaf Lahav <[EMAIL PROTECTED]>
>
> >  Is it possible to run GWT in hosted mode on linux?
>
> Is there a download for it?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: OFCGWT - charts for GWT !!

2008-08-26 Thread [EMAIL PROTECTED]

Or you can use glotr which is pure GWT (no flash), cross platform
support.
http://code.google.com/p/glotr/

On Aug 26, 9:24 am, gslender <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Quick msg to those who are interested in trying out an opensource
> charting widget for GWT.
>
> Check it out athttp://code.google.com/p/ofcgwt/
>
> Features client-side data updates and is based on the Open Flash Chart
> 2 API (http://teethgrinder.co.uk/open-flash-chart-2/) - requires no
> server side logic or code to display charts.
>
> Cheers,
> Grant
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Query : Synchronous calls in GWT

2008-08-26 Thread Ian Bambury
And there is no reason to do so. Unless you want to lock p the browser, in
which case, just use a tight endless loop.

2008/8/25 Ian Petersen <[EMAIL PROTECTED]>

>
> On Mon, Aug 25, 2008 at 7:24 AM, ping2ravi <[EMAIL PROTECTED]> wrote:
> > So i guess this is not the way to make synchronous call in GWT
> > Can any one point me how to do that. Or its not possible at all in
> > GWT.
>
> There is no GWT-approved way to make a synchronous call to the server.
>  See also:
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f/3be719c021aa19bd
>
> Ian
>
> >
>


-- 
Ian
http://examples.roughian.com
___

Life is either a daring adventure or nothing.
Security is mostly a superstition.
It does not exist in nature.
- Helen Keller
___

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How can i work with 2 Window

2008-08-26 Thread alex.d

Well, JavaScript allows you to do it. I don't remember the syntax
precisely but it goes smth. like this:

open a new browser window:

var w = window.open("http://...";);

to reach the opened window:

w.window ...

to reach the parent from the opened window:

opener.window 

Not sure if this work with all browsers. Also security issues possible
like walden mentioned.

On 26 Aug., 16:00, walden <[EMAIL PROTECTED]> wrote:
> There is a huge security issue with what you want to do, and I don't
> think it is possible.  I was trying to offer a workable alternative.
>
> Walden
>
> On Aug 26, 9:36 am, breder <[EMAIL PROTECTED]> wrote:
>
> > A page with UI Tab, share the same information. I am ask for page that
> > don't have any connection in theory, but there are same action between
> > they.
>
> > On Aug 25, 9:39 am, walden <[EMAIL PROTECTED]> wrote:
>
> > > Use UI Tabs instead of Pages.
>
> > > On Aug 22, 10:20 am, breder <[EMAIL PROTECTED]> wrote:
>
> > > > I want to work with 2 page at the same time. If you click in the
> > > > button from the first page, i will change a field in the second page.
> > > > Of couse, the order doesn´t metter, the action from the first to the
> > > > second and the second to the first.- Hide quoted text -
>
> > - Show quoted text -
>
>
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: DTO feed to Suggest Oracles

2008-08-26 Thread Isaac Truett

You might be interested in Emily's patch a few months ago on the
contributor's list:

http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/83db777f0e0602d0

I've been quite happy with RPCSuggestOracle. It doesn't cancel
requests but it has helped me to avoid spamming the server with each
letter typed.

- Isaac

On Tue, Aug 26, 2008 at 9:48 AM, jhulford <[EMAIL PROTECTED]> wrote:
>
> If you wanted to take this a step further I'd suggest coding a way to
> not preload every option, instead requesting matches from the RPC
> service as the user types into the box.  There's some interesting
> things to account for like cancelling outdated requests.  Something
> I've been meaning to do in my own project, but haven't had the time
> and the preloading all options is working good enough for now.
>
> On Aug 25, 1:48 pm, eggsy84 <[EMAIL PROTECTED]> wrote:
>> Hi all
>>
>> For those interested I have worked out how to do this.
>>
>> I have provided a quick tutorial on my blog at:
>>
>> http://eggsylife.blogspot.com/2008/08/gwt-suggestbox-backed-by-dto-mo...
>>
>> Regards,
>>
>> On Aug 21, 12:00 pm, eggsy84 <[EMAIL PROTECTED]> wrote:
>>
>> > Hi all,
>>
>> > In the following post:
>>
>> >http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>>
>> > It mentions feeding custom Suggestion objects to a SuggestOracle. How
>> > do you do this?
>>
>> > I would post a reply on the same topic but the system isn't letting me
>> > - possibly because its quite an old post?
>>
>> > Thanks all in advance.
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How can i work with 2 Window

2008-08-26 Thread walden

There is a huge security issue with what you want to do, and I don't
think it is possible.  I was trying to offer a workable alternative.

Walden

On Aug 26, 9:36 am, breder <[EMAIL PROTECTED]> wrote:
> A page with UI Tab, share the same information. I am ask for page that
> don't have any connection in theory, but there are same action between
> they.
>
> On Aug 25, 9:39 am, walden <[EMAIL PROTECTED]> wrote:
>
>
>
> > Use UI Tabs instead of Pages.
>
> > On Aug 22, 10:20 am, breder <[EMAIL PROTECTED]> wrote:
>
> > > I want to work with 2 page at the same time. If you click in the
> > > button from the first page, i will change a field in the second page.
> > > Of couse, the order doesn´t metter, the action from the first to the
> > > second and the second to the first.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Display ListBox item as image

2008-08-26 Thread walden

Fine by me, Lan.

On Aug 26, 9:08 am, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
> New group member. Posts don't appear until moderated. This makes it seem
> like they didn't make it. People naturally try again.
>
> Lack of tolerance: Fine reassigned to walden.
>
> 2008/8/26 walden <[EMAIL PROTECTED]>
>
>
>
> > Double Post.  $500 fine.
>
> > On Aug 25, 12:26 pm, gwt-user <[EMAIL PROTECTED]> wrote:
> > > Is it possible to add an item to ListBox that would be displayed as
> > > image?
> > > Thanks.
>
> --
> Ianhttp://examples.roughian.com
> ___
>
> Life is either a daring adventure or nothing.
> Security is mostly a superstition.
> It does not exist in nature.
> - Helen Keller
> ___
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: DTO feed to Suggest Oracles

2008-08-26 Thread jhulford

If you wanted to take this a step further I'd suggest coding a way to
not preload every option, instead requesting matches from the RPC
service as the user types into the box.  There's some interesting
things to account for like cancelling outdated requests.  Something
I've been meaning to do in my own project, but haven't had the time
and the preloading all options is working good enough for now.

On Aug 25, 1:48 pm, eggsy84 <[EMAIL PROTECTED]> wrote:
> Hi all
>
> For those interested I have worked out how to do this.
>
> I have provided a quick tutorial on my blog at:
>
> http://eggsylife.blogspot.com/2008/08/gwt-suggestbox-backed-by-dto-mo...
>
> Regards,
>
> On Aug 21, 12:00 pm, eggsy84 <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
>
> > In the following post:
>
> >http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> > It mentions feeding custom Suggestion objects to a SuggestOracle. How
> > do you do this?
>
> > I would post a reply on the same topic but the system isn't letting me
> > - possibly because its quite an old post?
>
> > Thanks all in advance.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How can i work with 2 Window

2008-08-26 Thread breder

A page with UI Tab, share the same information. I am ask for page that
don't have any connection in theory, but there are same action between
they.

On Aug 25, 9:39 am, walden <[EMAIL PROTECTED]> wrote:
> Use UI Tabs instead of Pages.
>
> On Aug 22, 10:20 am, breder <[EMAIL PROTECTED]> wrote:
>
> > I want to work with 2 page at the same time. If you click in the
> > button from the first page, i will change a field in the second page.
> > Of couse, the order doesn´t metter, the action from the first to the
> > second and the second to the first.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: getting "Content-Type must be 'text/x-gwt-rpc' with 'charset=utf-8'" after updating to gwt 1.5RC1

2008-08-26 Thread ToOLs

Maybe this will help you:

http://code.google.com/p/google-web-toolkit/issues/detail?id=2484#c3

On Aug 11, 12:56 pm, TimTimGo <[EMAIL PROTECTED]> wrote:
> Hi,
> after updating to gwt 1.5, I'm getting this error:
>
> 2008-08-11 12:16:33.899:/:WARN:  Exception while dispatching incoming
> RPC call
> javax.servlet.ServletException: Content-Type must be 'text/x-gwt-rpc'
> with 'charset=utf-8'.
>         at
> com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8(RPCServletUtils.java:
> 141)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:
> 76)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 443)
> ... (and so on)
>
> I already read similar postings in this google group, but they didn't
> adress excactly this error. For 
> examplehttp://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
> . The difference is that the error message in this discussion is
> "Content Type must be text/plain" and my error message is "Content
> Type must be 'text/x-gwt-rpc'". I figured the proposed solution to
> replace the server libraries would work for me too. Thus I replaced
> client jars and also server jars.
>
> Nevertheless, I still get this errormessage. Maybe I forgot to update
> a library somewhere. Actually, I don't believe that, as I created a
> new project completely with gwt 1.5. I guessed this way gwt should use
> the new libraries, but the error still keeps showing up.
>
> I really don't know how to solve this, but maybe you professionals
> here have another clue for me.
>
> I guess for helping me, you will need some information about my setup:
> For development, I'm using Cypal Studio for gwt in Eclipse. This will
> compile the gwt project.
> As server, I use an embedded jetty in an eclipse application. I deploy
> the service servlet as well as the static content which is in the
> gwtOutput directory to this.
>
> Thanks for helping
> TimTimGo
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



OFCGWT - charts for GWT !!

2008-08-26 Thread gslender

Hi,

Quick msg to those who are interested in trying out an opensource
charting widget for GWT.

Check it out at http://code.google.com/p/ofcgwt/

Features client-side data updates and is based on the Open Flash Chart
2 API (http://teethgrinder.co.uk/open-flash-chart-2/) - requires no
server side logic or code to display charts.

Cheers,
Grant
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Display ListBox item as image

2008-08-26 Thread Ian Bambury
New group member. Posts don't appear until moderated. This makes it seem
like they didn't make it. People naturally try again.

Lack of tolerance: Fine reassigned to walden.

2008/8/26 walden <[EMAIL PROTECTED]>

>
> Double Post.  $500 fine.
>
> On Aug 25, 12:26 pm, gwt-user <[EMAIL PROTECTED]> wrote:
> > Is it possible to add an item to ListBox that would be displayed as
> > image?
> > Thanks.
> >
>


-- 
Ian
http://examples.roughian.com
___

Life is either a daring adventure or nothing.
Security is mostly a superstition.
It does not exist in nature.
- Helen Keller
___

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to Integrate a component inside HTML.

2008-08-26 Thread Ian Bambury
Hi 5am,

This code will add a counter if there is a  in the
page but won't if there isn't

Ian


public class Main implements EntryPoint
{
public void onModuleLoad()
{
addCounter();
}
private void addCounter()
{
if(RootPanel.get("counter") == null) return;
final Label label = new Label("Counter: 0");
RootPanel.get("counter").add(label);

new Timer()
{
int c = 0;
public void run()
{
label.setText("Counter: " + ++c);
}
}.scheduleRepeating(1000);
}
}
2008/8/26 Sam <[EMAIL PROTECTED]>

>
>
>
> Hi Lan
> It will be helpfull if you can explain with the example .
>  Thanks
> Samir
>
> >
>


-- 
Ian
http://examples.roughian.com
___

Life is either a daring adventure or nothing.
Security is mostly a superstition.
It does not exist in nature.
- Helen Keller
___

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How we can stop control until we receive complete response from GWT

2008-08-26 Thread Ian Bambury
public void doSomething(String href)
{
 /*
  * At this point you program is trolling along doing things that don't
  * rely on the response here (like creating the page structure), working
  * out what the href is going to be etc.
  *
  * Then you want to request the data
  *
  * You would be better off switching to RequestBuilder. Here's an
  * example. This sends off the request.
  */
 try
 {
  RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, href);
  builder.setHeader("Content-Type", "application/x-www-form-urlencoded");
  /*
   * The callback is where the processing of this request will pick up
   * again when the server responds.
   */
  builder.sendRequest(null, callback);
 }
 catch (RequestException e)
 {
  /*
   * The request failed on the client without being sent
   */
  Window.alert("RequestException: " + e.getMessage());
 }
 /*
  * The request has been made but the data isn't available. In a
  * synchronous call, you'd have the data, in this async one, you don't.
  *
  * If you were phoning a big company, you'd be listening to calming
  * music and be getting told that your call is important to them.
  *
  * In a synchronous telephone call, you just close your eyes and wait
  * for the call to be answered. In an async telephone call, you put it
  * on the speakerphone and get on with your game of Spider, chat to your
  * colleague, stare out the window, drink your coffee, and so on. You
  * might even do a bit of work.
  *
  * In a synchronous call, you block the thread. That doesn't matter if
  * you have more than one thread. In JavaScript, you don't. With async
  * calls, timers, and deferred commands, you are emulating threading.
  * Each request is a path which will continue again when it is ready and
  * has control again.
  *
  * You can send off more than one request, and then you have, say, two
  * more 'threads', two more paths to be followed. In this case, remember
  * that, like waiting for two on-hold calls to be answered, you can't
  * tell which one will be answered first, so in the second callback,
  * don't assume the first callback has run.
  *
  * Any code you put here means that you are using what would otherwise
  * be dead time waiting for a response. Just don't forget that you don't
  * have the data yet. Even if the call is lightening-fast and you are
  * doing shed-loads of heavy processing here, the onResponseReceived is
  * still queued and will only run after this code has finished.
  */
}
//===

/*
 * This callback gets called when the request returns - both on success and
 * failure
 */
RequestCallback callback = new RequestCallback()
{
 public void onError(Request request, Throwable e)
 {
  /*
   * The request failed really badly on the server. This more than the
   * 'expected' failures like a 404 and more serious than a 12017
   * ('The operation was cancelled, usually because the handle on
   * which the request was operating was closed before the operation
   * completed')
   *
   * This is something really bad. I've never seen one. Well, I've
   * never knowingly caught one.
   */
  Window.alert("onError Error: " + e.getMessage());
 }

//===
 public void onResponseReceived(Request request, Response response)
 {
  /*
   * The request was dealt with properly by the server, even if the
   * server's response was a '404: Page Not Found' or worse - so you
   * still need to check the return code
   */
  if(response.getStatusCode() != 200)
  {
   Window.alert("onResponseReceived Error: " + response.getStatusText());
   return;
  }
  /*
   * At this point, all you know is that you successfully got a string
   * back. It is whatever your server-side program sent back. Bear in
   * mind that this might be a MySQL error or a PHP syntax error
   * message. Success is relative.
   *
   * Anyway, send the text off to be dealt with.
   */
  doThingsWithTheData(response.getText());
 }
};

//===

public void doThingsWithTheData(String dataString)
{
 /*
  * Now you have the data, or a PHP error message, or a null, or
  * something. But...
  *
  * a) The request got sent
  *
  * b) The server didn't blow up
  *
  * c) Your page was there
  *
  * d) Some string (or a null) was returned by your server-side page.
  *
  * Here you can carry on with all the code you would have had after the
  * synchronous call. It's no different, you still waited for the call to
  * return, but instead of locking up the browser, users have been able
  * to do things in the mean time - switch tabs, watch your stock ticker
  * etc, and any other code waiting to run (timers, deferred commands
  * etc) has had the chance to do its thing.
  */
}


-- 
Ian
http://examples.roughian.com
___

Life is either a daring adventure or nothing.
Security is mostly a superstition.
It does not exist in nature.
- Helen Keller
___

--~--~

Re: How to make an Emd to End application in GWT ?

2008-08-26 Thread walden

Sam,

Len makes a good point: if you are building an integral application in
GWT, then you don't want to switch pages the way you do in a legacy
HTML application.  You want to "stay resident" by switching out DOM
content.

At some point, though, you will have another HTML page, and I think
the answer you are looking for with regard to reusing widgets
developed for page numero uno is this:

a. to keep programming simple, your second page needs its own
EntryPoint and Module
b. your second Module can inherit your first Module, so you can reuse
its custom widgets

So check the GWT docs for the section on Modules and inheritance of
same.

Walden

On Aug 26, 5:04 am, Len <[EMAIL PROTECTED]> wrote:
> Hi
>
> Well you need to think about it differently - This is an application
> that runs in the browser and not a set of html pages. The rough idea
> with different html pages is that they would be different modules in
> GWT - each module is an application (or part thereof that operates
> independently)
>
> So in your case you want to have more than one panel in your application.
>
> Panel startPanel = ...
> Panel nextPanel = ...
>
> At the beiginning of the application in the entry point class you set
> the root panel to your fist panel
>
> RootPanel.get().add(startPanel);
>
> In your start panel there is a button
>
> Button nextButton = ...
>
> That is added to the startPanel
>
> startPanel.add(nextButton);
>
> The nextButton has a Listener attached to it that is called when the
> button is clicked. The listener then changes the panels
>
> RootPanel.get().clear();
> RootPanel.get().add(nextPanel);
>
> Hope that helps
> Len
>
> On 26/08/2008, Sam <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> >  Hi Len
> >  Thanks for the prompt reply. I do admit that we can use panel. What my
> >  concern is , if I render some widgets on lets say abc.html and it is
> >  mapped to some java file which implements EntryPoint interface. This
> >  abc.html file has a NEXT button on it . And this next button takes me
> >  to lets say pqr.html. Now if I wanna render any widget or lets say a
> >  pannel on which I added some widgets , do I need to write a class
> >  which for pqr.html too which implements EntryPoint interface.
>
> > Thanks
> >  Samir- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to set the clor for Hyper link?

2008-08-26 Thread alex.d

Already solved in this group. Use search.

On 26 Aug., 13:52, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> hi I am not getting how to set the color for the hyper link in gwt.
> I am trying to change the color of hyperlink to red but it is showing
> blue color only.
> I am pasting my code plz check and tell me the idea
>
>       private static Hyperlink hLink_= null;
>       hLink_ = new Hyperlink("Home", "home");
>       hLink_.setStyleName("evpn-tabbedButton");
>
>       .evpn-tabbedButton {
>           font-size: 12px;
>           font-family: Arial;
>           color: #ff;
>           text-align: center;
>           white-space: nowrap;
>           background: no-repeat center top url('/
> com.infovista.vistamart.evpn.Home/resources/images/
> tab_unselected.gif');
>         width: 79px;
>         height: 17px;
>
> }
>
>
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



how to set the clor for Hyper link?

2008-08-26 Thread [EMAIL PROTECTED]

hi I am not getting how to set the color for the hyper link in gwt.
I am trying to change the color of hyperlink to red but it is showing
blue color only.
I am pasting my code plz check and tell me the idea

  private static Hyperlink hLink_= null;
  hLink_ = new Hyperlink("Home", "home");
  hLink_.setStyleName("evpn-tabbedButton");

  .evpn-tabbedButton {
  font-size: 12px;
  font-family: Arial;
  color: #ff;
  text-align: center;
  white-space: nowrap;
  background: no-repeat center top url('/
com.infovista.vistamart.evpn.Home/resources/images/
tab_unselected.gif');
width: 79px;
height: 17px;
}
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How we can stop control until we receive complete response from GWT

2008-08-26 Thread walden

Feroz,

It sounds to me like you are... "out of beer".  Search this list for
that string, and read the first item for your fortune.

Walden

On Aug 26, 1:36 am, "Feroz Gul Pathan" <[EMAIL PROTECTED]> wrote:
> Thanks for reply
> I used HTTPRequest.asyncGet ... method to make a request. After making a
> call (request) this will proceed to next operation and don't wait for the
> response. How we can block operation until response will be completed and
> incompletion(String responseText) method will be executed successfully. How
> can we make this asynchronous request synchronous?
>
> sample code is here.
>
> HTTPRequest.asyncGet("AnyPage.jsp", new ResponseTextHandler()
> {
>                     public void onCompletion(String responseText) {
>                        final JSONValue jsonValue =
> JSONParser.parse(responseText);
>                        JSONObject jsonObject;
>
>                            }
>                    });
>
> Thanks
>
>
>
> On Mon, Aug 25, 2008 at 9:53 AM, Ian Bambury <[EMAIL PROTECTED]> wrote:
> > Whatever you are running after the request, run it after the response.
>
> > I.e. make the request the last thing you do when processing some input or
> > other, and then in the onComplete, carry on with whatever it is you want to
> > do.
>
> > 2008/8/25 feroz <[EMAIL PROTECTED]>
>
> >> Hi
>
> >> How we can stop control until we receive complete response in GWT.
> >> Control will execute next source before the completion of response.
> >> how we can stop control until response will be processed completely.
> >> thanks
>
> > --
> > Ian
> >http://examples.roughian.com
> > ___
>
> > Life is either a daring adventure or nothing.
> > Security is mostly a superstition.
> > It does not exist in nature.
> > - Helen Keller
> > ___- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to Integrate a component inside HTML.

2008-08-26 Thread Sam



Hi Lan
It will be helpfull if you can explain with the example .
Thanks
Samir

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Display ListBox item as image

2008-08-26 Thread walden

Double Post.  $500 fine.

On Aug 25, 12:26 pm, gwt-user <[EMAIL PROTECTED]> wrote:
> Is it possible to add an item to ListBox that would be displayed as
> image?
> Thanks.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Query : Synchronous calls in GWT

2008-08-26 Thread walden

There is only one who knows how to make synchronous calls in GWT.  He
spends most of his time wandering in the desert, and usually kills
anyone brave enough to approach him.  You'll need a camel...

Just kidding. :-)

Walden

On Aug 25, 7:24 am, ping2ravi <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Does any one know how to make Synchronous calls using GWT.
> Currently i am using GWT to build services, creating files like
>
> com.app.client.MyService.java
> //One function in this interface
> doMyTask(ParamTpye myparams) throws ClientException;
>
> com.app.client.MyServiceAsync.java
> //One function in this interface
> doMyTask(ParamTpye myparams,AsyncCallback callback) throws
> ClientException;
>
> com.app.server.MyServiceImpl.java
> //One function in this class
> doMyTask(ParamTpye myparams) throws ClientException;
>
> now i create the service and call
>     MyServiceAsync userService = (MyServiceAsync)
> GWT.create(MyService.class);
>     ServiceDefTarget endpoint = (ServiceDefTarget) userService;
>     String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
>     endpoint.setServiceEntryPoint(moduleRelativeURL);
>     userService.doMyTask(MyParams,CallBackObject);
>
> This piece of code is working fine as a ASYNCHRONOUS call.
>
> Then i tried making is synchronous call using following code(i don't
> know if its valid or not)
> instead of using MyServiceAsync i am using MyService
>
>     MyService userService = (MyService) GWT.create(MyService.class);
>     ServiceDefTarget endpoint = (ServiceDefTarget) userService;
>     String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
>     endpoint.setServiceEntryPoint(moduleRelativeURL);
>     userService.doMyTask(MyParams);
>
> But call to doMyTask throw following exception.
> java.lang.ClassCastException in MyService_Proxy.
>
> So i guess this is not the way to make synchronous call in GWT
> Can any one point me how to do that. Or its not possible at all in
> GWT.
>
> Thanks in advance.,
> Ravi.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: implement online support

2008-08-26 Thread walden

Start by developing a requirement.  The above description is too thin
to begin work on.  Talk with your future users and get some concrete
ideas on form and function.

On Aug 25, 4:51 am, hasimtimurtas <[EMAIL PROTECTED]> wrote:
> hi,
>  I am new to this group. i want to implement an online support panel
> on a webpage what shal i do? thanks.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: ListBox control

2008-08-26 Thread walden

A ListBox is an HTML ; An Item is an HTML .  You'll
have to go a little "off road" for this, but I believe if you get the
nth child of the  element and set its backgroundImage style
attribute, you can achieve what you want.  see
com.google.gwt.user.client.DOM.

On Aug 25, 11:54 am, gwt-user <[EMAIL PROTECTED]> wrote:
> Is it possible to add an item to ListBox that would be displayed as
> image?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Incubator ScrollTable: how to get the entity corresponding to the selected row?

2008-08-26 Thread Jeremiah Elliott

In my case, i get the row/column index of the cell that was clicked,
and look that up in the data object I used to build the table from.
Not as OO as extending the ScrollTable class, but it is doing the
trick for me.

-Jeremiah

On Mon, Aug 25, 2008 at 5:15 PM, wt <[EMAIL PROTECTED]> wrote:
>
> I am using the incubator ScrollTable and I can load a List
> into it to get the entities displayed. When the user selects a row in
> the table, I need to retrieve the entity corresponding to the row. It
> seems that I can only get the selected row index from the data grid,
> so how can I achieve this? I appreciate if someone can help me with
> this.
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to Integrate a component inside HTML.

2008-08-26 Thread Ian Bambury
What you can do is add a custom tag (say ,
or  or  - with content in the tag
if you like) and then you make the page a GWT page (by including the



in the )

The GWT app *must* have an entry point, or it won't run.

The GWT app (same one in every page if you like - it only gets downloaded
once if you do that, no matter how many pages you include it in) then looks
for the tags and adds the GWT content.

In effect then, your HTML developers only need to know how to ue your
special tags, but someone (and it can be one person) has to write the GWT
app to find the tags and add the content.

Have I made myself clear enough? If not, say so, and I'll write you a demo -
it'll only take 2 minutes.

Ian




2008/8/26 Sam <[EMAIL PROTECTED]>

>
> Hello Lan ,
> Thanks a lot for the reply. so do you mean to say that its not
> possible for me to go on building the custom widgets as per my product
> need and let the developers use them as and when required WITHOUT
> actually exposing them to the GWT technology ?
> What I was thinking is , it could be possible to create the custom
> widgets (either through DOM manupulation API in GWT or composite
> widget) and then let the application developers use these widget
> through some tag or so .
> But from the last answer it seems an application develper needs to
> write a class implementing EntryPoint interface for all the JSP pages
> i.e. they should be given an exposure to GWT. is it the scenerio ?
> Actually I was planning to write a tag library which could make the
> use of all the widgets that GWT provides and let applicaion developers
> use theose tags there by hiding the internal GWT stuff from the
> developers.
> Thanks
>  Samir
>
>
> >
>


-- 
Ian
http://examples.roughian.com
___

Life is either a daring adventure or nothing.
Security is mostly a superstition.
It does not exist in nature.
- Helen Keller
___

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Declaring asynchronous method in GWT 1.5.1

2008-08-26 Thread obesga

hape[] getShapes(String databaseName) throws ShapeException,
DbException;


It can't throw whatever exception, as far as javascript code can only
handle certain type of exceptions

On 26 ago, 11:34, hezjing <[EMAIL PROTECTED]> wrote:
> Hi
>
> The GWT 1.5.1's Javadoc for the interface AsyncCallback described
> this example,
>
> If the service interface defines a method called getShapes as follows:
> Shape[] getShapes(String databaseName) throws ShapeException, DbException;
>
> Its asynchronous counterpart method be declared as:
> void getShapes(String databaseName, AsyncCallback callback)
>
> I think with Java 5, the asynchronous method should be declared as
> void getShapes(String databaseName, AsyncCallback callback) ?
>
> Another question is how do we declare the asynchronous method if the
> service method is a void method?
>
> I believe it is very helpful to describe this in the Javadoc too :-)
>
> --
>
> Hez
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: For GWT developers : Using final and private across code , makes extending classes hard or mostly impossible, makes classes less readable and makes life with java harder overal

2008-08-26 Thread Rene
tried: class TreeX extends Tree {
public native TreeItem getRoot()
/*-{
 return [EMAIL PROTECTED]::root;
 }-*/;
}

or

class TreeX extends Tree {
public native TreeItem getRoot()
/*-{
 return this.root;
 }-*/;
}
both dont wok .

in tree again i need access to root TreeItem . Tree contains TreeItem and
its is again hidden inside and no common interface shared wit TreeItem is
there . I have a workaroun , and each such workaround gives me more code ,
and more code means more bugs and bad readability. As Tree isnt final (god
bless) I can add him interface which can have same methods to access childer
as TreeItem have and than i can have clean nice method using Tree as
TreeItem . Anyway I am very intrested with that jsni approach , can somebody
show me please how to make accessor for private fied root in Tree using
jsni. Thanx



On Tue, Aug 26, 2008 at 8:51 AM, Rene <[EMAIL PROTECTED]> wrote:

> jason that jni method seems interesting , can you provide small simple
> example ? Thanx.
>
>
> On Tue, Aug 26, 2008 at 2:55 AM, Ian Bambury <[EMAIL PROTECTED]> wrote:
>
>> This is a case I looked into recently.
>>
>> Yes you can take VerticalSplitPanel and HorizontalSplitPanel and amend
>> them, but you also have to take the abstract SplitPanel and something else
>> (I can't remember what) and maybe even more (I gave up because they are
>> fundamentally flawed anyway for anything but very simple use)
>>
>> But having to maintain your own copies of classes because they can't be
>> subclassed isn't really the way forward, is it?.
>>
>> On the plus side, it does indicate that the GWT team might still rethink
>> the whole internal design of splitpanels, so maybe we'll eventally be able
>> to use them in disclosurepanels and move them about without them going
>> weird.
>>
>> Ian
>>
>>
>>
>>
>> 2008/8/26 obesga <[EMAIL PROTECTED]>
>>
>>
>>> ... just simply take the HorizontalSplitPanel.java original class file
>>> form svn and remake it to your needs ?
>>>
>>> Beyond this, subclassing and inheritance are double side knifnes: they
>>> can do a great service, but they can broke code ocultation and
>>> funtionality of a class.
>>>
>>>
>>> And Widget is the worst example, as far as
>>> java.lang.Object
>>>  extended by com.google.gwt.user.client.ui.UIObject
>>>  extended by com.google.gwt.user.client.ui.Widget
>>>  extended by com.google.gwt.user.client.ui.Composite
>>>
>>> Composite directly inherits Wigdet; and its purpose is to be used as
>>> superclass of your custom wigdets
>>>
>>> I'm not saying GWT code is perfect, I have - like others - MHO about
>>> this...
>>>
>>> Oskaloko
>>>
>>>
>>>
>>>
>>> On 25 ago, 19:52, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
>>> > It's not 'bits of code' it's the whole of both split panels. You can't
>>> > subclass them.
>>> >
>>> > 2008/8/25 Jason Essington <[EMAIL PROTECTED]>
>>>  >
>>> >
>>> >
>>> >
>>> >
>>> > > Visibility is an important concept in java. It allows a developer to
>>> > > cordon bits of code that are not meant to be accessed outside of the
>>> > > current class (private) or an extending class (protected). This
>>> allows
>>> > > a developer to "publish" a stable interface while preventing
>>> > > implementation details from being artificially fixed.
>>> >
>>> > > Now, if you have a very specific use case that requires access to
>>> > > something with private visibility, there is a way to handle it.
>>> > > Javascript has no concept of visibility, so you can use a JSNI method
>>> > > to get around Java's private keyword. By doing this, you acknowledge
>>> > > that you are accessing something that has no guarantee of actually
>>> > > being there in a future release (that's why it was private) but it'll
>>> > > allow you access where you really think you need it.
>>> >
>>> > > This little trick is of course a technique of last resort, so it
>>> > > should only be used if there is absolutely no other way to accomplish
>>> > > your intended task.
>>> >
>>> > > -jason
>>> >
>>> > > On Aug 25, 2008, at 8:53 AM, Rene wrote:
>>> >
>>> > > > I just want to say hello to developers of gwt  , and thank them for
>>> > > > making my life harder :) .  I want to extend HorizontalSplitPanel
>>> to
>>> > > > get acces to Split element to get his width dinamicly for layout
>>> > > > purposes , maybe its stupid then tell mi please why , but its
>>> > > > functional anyway and with HorizontalSplitPanel impossible as its
>>> > > > final. Can you please remove that keyword ?
>>> >
>>> > > > I know java has some keyword which can be used to protect access to
>>> > > > classes so they are less vulnerable for attacks , is it applicable
>>> > > > here in gwt in web context ? Library classes are meant for
>>> extending
>>> > > > so why restrict programmers to use classes only way you meant them
>>> ?
>>> > > > Its very limiting and man have to re implement thing a

Declaring asynchronous method in GWT 1.5.1

2008-08-26 Thread hezjing

Hi

The GWT 1.5.1's Javadoc for the interface AsyncCallback described
this example,

If the service interface defines a method called getShapes as follows:
Shape[] getShapes(String databaseName) throws ShapeException, DbException;

Its asynchronous counterpart method be declared as:
void getShapes(String databaseName, AsyncCallback callback)

I think with Java 5, the asynchronous method should be declared as
void getShapes(String databaseName, AsyncCallback callback) ?


Another question is how do we declare the asynchronous method if the
service method is a void method?


I believe it is very helpful to describe this in the Javadoc too :-)


-- 

Hez

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to make an Emd to End application in GWT ?

2008-08-26 Thread Len

Hi

Well you need to think about it differently - This is an application
that runs in the browser and not a set of html pages. The rough idea
with different html pages is that they would be different modules in
GWT - each module is an application (or part thereof that operates
independently)

So in your case you want to have more than one panel in your application.

Panel startPanel = ...
Panel nextPanel = ...

At the beiginning of the application in the entry point class you set
the root panel to your fist panel

RootPanel.get().add(startPanel);

In your start panel there is a button

Button nextButton = ...

That is added to the startPanel

startPanel.add(nextButton);

The nextButton has a Listener attached to it that is called when the
button is clicked. The listener then changes the panels

RootPanel.get().clear();
RootPanel.get().add(nextPanel);

Hope that helps
Len

On 26/08/2008, Sam <[EMAIL PROTECTED]> wrote:
>
>
>
>  Hi Len
>  Thanks for the prompt reply. I do admit that we can use panel. What my
>  concern is , if I render some widgets on lets say abc.html and it is
>  mapped to some java file which implements EntryPoint interface. This
>  abc.html file has a NEXT button on it . And this next button takes me
>  to lets say pqr.html. Now if I wanna render any widget or lets say a
>  pannel on which I added some widgets , do I need to write a class
>  which for pqr.html too which implements EntryPoint interface.
>
> Thanks
>  Samir
>
>  >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to make an Emd to End application in GWT ?

2008-08-26 Thread Sam



Hi Len
Thanks for the prompt reply. I do admit that we can use panel. What my
concern is , if I render some widgets on lets say abc.html and it is
mapped to some java file which implements EntryPoint interface. This
abc.html file has a NEXT button on it . And this next button takes me
to lets say pqr.html. Now if I wanna render any widget or lets say a
pannel on which I added some widgets , do I need to write a class
which for pqr.html too which implements EntryPoint interface.
Thanks
Samir

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How we can stop control until we receive complete response from GWT

2008-08-26 Thread alex.d

By:

HTTPRequest.asyncGet("AnyPage.jsp", new ResponseTextHandler()
{
  public void onCompletion(String responseText) {
final JSONValue jsonValue = JSONParser.parse(responseText);
ToDoAfterTheResponsIsOverFunction();
   }
});

The ToDoAfterTheResponsIsOverFunction() will be called AFTER the
request is successfuly over ;)

On 26 Aug., 07:36, "Feroz Gul Pathan" <[EMAIL PROTECTED]> wrote:
> Thanks for reply
> I used HTTPRequest.asyncGet ... method to make a request. After making a
> call (request) this will proceed to next operation and don't wait for the
> response. How we can block operation until response will be completed and
> incompletion(String responseText) method will be executed successfully. How
> can we make this asynchronous request synchronous?
>
> sample code is here.
>
> HTTPRequest.asyncGet("AnyPage.jsp", new ResponseTextHandler()
> {
>                     public void onCompletion(String responseText) {
>                        final JSONValue jsonValue =
> JSONParser.parse(responseText);
>                        JSONObject jsonObject;
>
>                            }
>                    });
>
> Thanks
>
> On Mon, Aug 25, 2008 at 9:53 AM, Ian Bambury <[EMAIL PROTECTED]> wrote:
> > Whatever you are running after the request, run it after the response.
>
> > I.e. make the request the last thing you do when processing some input or
> > other, and then in the onComplete, carry on with whatever it is you want to
> > do.
>
> > 2008/8/25 feroz <[EMAIL PROTECTED]>
>
> >> Hi
>
> >> How we can stop control until we receive complete response in GWT.
> >> Control will execute next source before the completion of response.
> >> how we can stop control until response will be processed completely.
> >> thanks
>
> > --
> > Ian
> >http://examples.roughian.com
> > ___
>
> > Life is either a daring adventure or nothing.
> > Security is mostly a superstition.
> > It does not exist in nature.
> > - Helen Keller
> > ___
>
>
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Cookies not read in other module ?

2008-08-26 Thread vaib

Hi i am also having the same problem. Have you got any solution for
the problem. Plaese help me
Thanks in advance

On Jul 12, 3:58 pm, Ed <[EMAIL PROTECTED]> wrote:
> Hellu,
>
> I amsettinga cookie in one module and then load another gwt module
> and try to read the cookie set earlier.
> However, I am getting null back in hosted mode.
> Even if I amnotusing localhost host in my url, like this:
> test.bla.com, and then make a link to the localhost in the hosts file.
> I can read it within the same module, butnotbetween different ones.
> I also triedsettingthe domain and path, instead of leaving it null,
> but also no luck.
>
> Any idea why this is ?
> Maybe because I am running in -noserver mode and use the ajp connector
> from apache webserver to connect to the backend ?
> Or maybe because the webserver still discovers that it concerns
> localhost and simple doesn't allowcookiesread on localhost. I
> remember it also needs at leas two dots in the domain nam, like
> ".bla.com"
>
> I always get crazy ofcookies... Maybe I just use the window.name or
> top.name property to pass through some key/value paris (insescure) to
> the other module
>
> I am using gwt 1.5. RC 1 btw.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---