Re: Sessions and GWT

2010-06-17 Thread Kasper Hansen
Just curious; why do You recommend a classic HTML form, Frederic ?

Cheers.

:-) Kasper

On Thu, Jun 17, 2010 at 8:25 AM, Frederic Conrotte
 wrote:
> GWT and Spring Security work perfectly together.
>
> See this as a starter point:
> http://www.jroller.com/sjivan/entry/ajax_based_login_using_aceci
> http://java.dzone.com/articles/integrating-gwt-spring
>
> I advise you to use a classic HTML form for login, not a GWT based
> login dialog.
>
> On Jun 17, 7:19 am, fmod  wrote:
>> Hi, I need to re-implement the classic login page. And I'm a bit lost
>> with all the alternatives. The communication with the server is with
>> RPC. Until now the flow I was using was:
>> - User enters login and pass [client sends them in plain text to the
>> server]
>> - Server validates and generate a session id (String generated with
>> UUID) [server replies that].
>> - On every request the client sends session id. (all the functions in
>> the rpc have sessionId)
>> - The server was keeping track of this session id and after 30 mins
>> without being used it removed it as valid session.
>>
>> This was working quite well, but it was a bit annoying to have this
>> sessionId all the time. Reading some posts, seems that is a bad idea
>> sending the session id all the time (at least as I understood). That I
>> can rely on the 'classical session' mechanism. So somehow the server
>> remembers the client after he logs in the first time.
>>
>> Here is my dilemma. This 'classical session' carried by the server
>> seems to disagree with the 'new Ajax-era' where the server carries no
>> status of the client.
>>
>> I think I'm totally messing concepts here. What is the correct way of
>> doing it? Is there some good explaining how to do it, maybe an example
>> will be great.
>>
>> Thank you 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT project with multiple pages

2010-06-17 Thread Stefan Bachert
Hi,

On Jun 16, 3:14 pm, Brian Reilly  wrote:
> This is a technique that I'm finding useful for using GWT to implement
> new features in an existing web application.

With multiple pages you will lose the gui state of the GWT-
application.
Multipages will have poor user timing problems and latencies.

When you do it reverse than you can maintain the gui-state.
"Reverse" means that ONE GWT-Application reads the "old paged"
application pages and than display them.
I guess this approach will succeed on the long run because it allows
to move to a modern, user friendly RIApplication

Stefan Bachert
http://gwtworld.de

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Sessions and GWT

2010-06-17 Thread Frederic Conrotte
In our case I didn't want the user to wait for the GWT app to load
because he could see the login screen.

Furthermore, you should take care at securing both HTML request URLs
and RPC requests URLs.

On Jun 17, 9:06 am, Kasper Hansen  wrote:
> Just curious; why do You recommend a classic HTML form, Frederic ?
>
> Cheers.
>
> :-) Kasper
>
> On Thu, Jun 17, 2010 at 8:25 AM, Frederic Conrotte
>
>  wrote:
> > GWT and Spring Security work perfectly together.
>
> > See this as a starter point:
> >http://www.jroller.com/sjivan/entry/ajax_based_login_using_aceci
> >http://java.dzone.com/articles/integrating-gwt-spring
>
> > I advise you to use a classic HTML form for login, not a GWT based
> > login dialog.
>
> > On Jun 17, 7:19 am, fmod  wrote:
> >> Hi, I need to re-implement the classic login page. And I'm a bit lost
> >> with all the alternatives. The communication with the server is with
> >> RPC. Until now the flow I was using was:
> >> - User enters login and pass [client sends them in plain text to the
> >> server]
> >> - Server validates and generate a session id (String generated with
> >> UUID) [server replies that].
> >> - On every request the client sends session id. (all the functions in
> >> the rpc have sessionId)
> >> - The server was keeping track of this session id and after 30 mins
> >> without being used it removed it as valid session.
>
> >> This was working quite well, but it was a bit annoying to have this
> >> sessionId all the time. Reading some posts, seems that is a bad idea
> >> sending the session id all the time (at least as I understood). That I
> >> can rely on the 'classical session' mechanism. So somehow the server
> >> remembers the client after he logs in the first time.
>
> >> Here is my dilemma. This 'classical session' carried by the server
> >> seems to disagree with the 'new Ajax-era' where the server carries no
> >> status of the client.
>
> >> I think I'm totally messing concepts here. What is the correct way of
> >> doing it? Is there some good explaining how to do it, maybe an example
> >> will be great.
>
> >> Thank you 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Sessions and GWT

2010-06-17 Thread Frederic Conrotte
>I didn't want the user to wait for the GWT app to load because he could see 
>the login screen

Correction: I didn't want the user to wait for the GWT app to load
BEFORE he could see the login screen.

Sorry :)

On Jun 17, 9:17 am, Frederic Conrotte 
wrote:
> In our case I didn't want the user to wait for the GWT app to load
> because he could see the login screen.
>
> Furthermore, you should take care at securing both HTML request URLs
> and RPC requests URLs.
>
> On Jun 17, 9:06 am, Kasper Hansen  wrote:
>
> > Just curious; why do You recommend a classic HTML form, Frederic ?
>
> > Cheers.
>
> > :-) Kasper
>
> > On Thu, Jun 17, 2010 at 8:25 AM, Frederic Conrotte
>
> >  wrote:
> > > GWT and Spring Security work perfectly together.
>
> > > See this as a starter point:
> > >http://www.jroller.com/sjivan/entry/ajax_based_login_using_aceci
> > >http://java.dzone.com/articles/integrating-gwt-spring
>
> > > I advise you to use a classic HTML form for login, not a GWT based
> > > login dialog.
>
> > > On Jun 17, 7:19 am, fmod  wrote:
> > >> Hi, I need to re-implement the classic login page. And I'm a bit lost
> > >> with all the alternatives. The communication with the server is with
> > >> RPC. Until now the flow I was using was:
> > >> - User enters login and pass [client sends them in plain text to the
> > >> server]
> > >> - Server validates and generate a session id (String generated with
> > >> UUID) [server replies that].
> > >> - On every request the client sends session id. (all the functions in
> > >> the rpc have sessionId)
> > >> - The server was keeping track of this session id and after 30 mins
> > >> without being used it removed it as valid session.
>
> > >> This was working quite well, but it was a bit annoying to have this
> > >> sessionId all the time. Reading some posts, seems that is a bad idea
> > >> sending the session id all the time (at least as I understood). That I
> > >> can rely on the 'classical session' mechanism. So somehow the server
> > >> remembers the client after he logs in the first time.
>
> > >> Here is my dilemma. This 'classical session' carried by the server
> > >> seems to disagree with the 'new Ajax-era' where the server carries no
> > >> status of the client.
>
> > >> I think I'm totally messing concepts here. What is the correct way of
> > >> doing it? Is there some good explaining how to do it, maybe an example
> > >> will be great.
>
> > >> Thank you 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT or SmartGWT and Oracle - Stored procedures

2010-06-17 Thread kensai yanesha
The database could be any SQL engine, so the dataserver type schould
be sql not hibernate.

On 17 čvn, 06:18, kensai yanesha  wrote:
> Hello,
>
> I am new to GWT at all. My approach is to have an editable grid on the
> client side and one or more tables on the database side (Oracle in my
> case). Could someone post really working project with all files which
> supports all 4 standard operations (select, insert, update, delete)?
> In my case I want to do all these operations using stored procedures
> to avoid SQL injection attacks.
>
> Any external link or pure sample will help. I was not able to find any
> complete project which is I think best to learn it as complex logic.
>
> Thank you very much.
>
> Kensai

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: parsing library for the client side

2010-06-17 Thread lpetit
Thanks guys for the encouragements !

Anybody could give feedback ? Anybody already tried to do this
already ?

On 17 juin, 01:33, Sky  wrote:
> Man, that just sounds kickass! Infinitely better than writing your
> parser code twice in two different languages and any time you fix a
> bug or add functionality needing to do it twice. Man, if that works
> that smoothly you guys will be sooo happy!
>
> Isn't that just exciting! woot :)
>
> On Jun 16, 2:06 pm, Sripathi Krishnan 
> wrote:
>
>
>
> > Hi Laurent,
>
> > You actually have an interesting idea, something I have been thinking about
> > for a different context for sometime.
>
> > I haven't used ANTLR before, I prefer JAVACC. When I analysed javacc
> > generated code, most of it was plain java that GWT could easily convert to
> > Javascript. The only classes that needed modifications were the ones that
> > read from the File/InputSteam. In the case of javacc, they were just 2 java
> > classes that are standard across all javacc projects. So, it should be
> > possible to replace those classes with a client specific class that reads
> > from textarea.
>
> > I suspect when you analyse the antlr generated code, it will follow the same
> > pattern. So, it should be possible to parse your "language" on the client
> > side without having to make network calls. If latency/user-responsiveness is
> > an issue, its definitely a good thing to do.
>
> > --Sri
>
> > On 16 June 2010 21:54, Stefan Bachert  wrote:
>
> > > Hi Laurent,
>
> > > I did not use antlr, yet. However, antlr generates java code and as
> > > far it generates ALL, the GWT compiler probably translates generated
> > > javacode to javascript.
> > > I would just give them a try.
>
> > > Stefan Bachert
> > >http://gwtworld.de
>
> > > On Jun 16, 3:02 pm, Laurent PETIT  wrote:
> > > > Hello,
>
> > > > I must create a rich editor. We have a custom language, and our
> > > > customers will be able to edit "sentences" of this language in their
> > > > browser.
> > > > Now, on the server side, we already have antlr stuff to parse the
> > > language.
>
> > > > I'm contemplating whether I should try to reuse to the maximum the
> > > > existing stuff, at the (probable) cost of more client/server
> > > > communications to benefit from the parser's functionality (hopefully
> > > > the client side editor will be "structured") ;
> > > > or whether I should rewrite a parser (by hand or with the help of a
> > > > third party library which could run on GWT client code) for my client
> > > > side ...
>
> > > > Any comments / suggestions ?
>
> > > > Thanks in advance,
>
> > > > --
> > > > Laurent
>
> > > --
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: AsyncCallback - returning values to enclosing block

2010-06-17 Thread Joost Bloemsma
Yep,

I tried it too, but my wife didn't get the beer!!!

On 16 jun, 15:07, Magnus  wrote:
> Hi,
>
> thanks, the mechanism is still too new for me. Now, after debugging
> exactly what Thomas said (the return val was empty), I understand it.
>
> So one can never just fetch something from the server while being in a
> process where the server's result is needed.
>
> Good example! :-)
>
> Magnus
>
> On 16 Jun., 14:52, aditya sanas <007aditya.b...@gmail.com> wrote:
>
> > LOL Thomas.[?]
>
> > That was great example to determine async calls.
>
> > anyway what you are saying is right.
>
> > Its a bad design to have a method which returns something and then make
> > async call which
>
> > changes the state of some variable.
>
> > --
> > Aditya
>
> > On Wed, Jun 16, 2010 at 6:13 PM, Thomas Broyer  wrote:
>
> > > On Jun 16, 1:09 pm, Magnus  wrote:
> > > > Hi,
>
> > > > because I cannot access a variable in the enclosing block from within
> > > > an AsyncCallback method I found the following workaround with a class
> > > > global variable, which I find very unpretty. How can one do this
> > > > better?
>
> > > What is it that you don't understand in "asynchronous"?
>
> > > I mean, your getUsr call will *always* end after the "return
> > > tmp_str_usr" statement. So, on the first call and until the server
> > > responds and you AsyncCallback is called, you'll get the empty string
> > > (initial value of the field); then AsyncCallback will change its
> > > value, and on all subsequent calls until the server responds to the
> > > new requests (and AsyncCallback will be called again) you'll get that
> > > value.
>
> > > When you ask your wife to get you some beer, the beer won't be there
> > > until your wife come back from the kitchen; and while she's gone, the
> > > football match isn't paused and life continues.
>
> > > --
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> >  360.gif
> > < 1 KBAnzeigenHerunterladen- Zitierten Text ausblenden -
>
> > - Zitierten Text anzeigen -
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to enable scrolling for app using DecoratedTabPanel?

2010-06-17 Thread Olivier Monaco
Hi,

There is two type of layouts: RIA-like and web-page-like. The RIA-like
layout is done using the layout panels. The app stretch to the whole
available space. There is no scrollbars. The web-page-like layout is
done using HTML tags (and some standard panels). The app don't
stretch. If the content is larger than the viewport, scrollbars
appears, like in traditional pages.

Looking at the first screenshot, here is my proposal:

1) The main panel is a DockLayoutPanel attached to RootLayoutPanel.
2) The north slot contains the header.
3) The center slot contains a TabLayoutPanel.

But when you show data (list, form...) you may have no enough space to
show all. Here you start to use web-page-like layout. So:

4) The contain of the contact tab is a LayoutPanel with four slot:
Tighformat, the list, Detail view, Relations.
5) Tighformat, Detail view and Relations are standard panels
(FlowPanel) into ScrollPanels. If there not enough space, a scrollbar
will appear.
6) The list is some sort of DockLayoutPanel with the headers top, the
navigation buttons bottom and the contains of the list in the center
with a scrollbar is needed. The exact implementation depends on the
used widget for the list (SmartGWT, GXT, gwt-incubator...)

Hope this helps.

Think also to invert the color between selected tab and not selected
tab. When i saw the screenshot, I thinking that blue tabs are not the
current tab and white one are the current... The current tab must be
the lighter.

Olivier

On 16 juin, 17:48, ingo  wrote:
> hello oliver,
>
> thank you very much for the link! i want to achieve a page layout
> similar to the google code uihttp://code.google.com/p/honeycrm/:tabs
> on top of the screen and right under the tabs is the module specific
> content. if the content right under the tabs is too big the whole page
> or the content of the tabpanel component should have scrollbars.
>
> at the moment i do not really care where the scrollbars are - more
> importantly is that there are scrollbars at all :-)
>
> what do you mean with your suggestion to use a dockpanel instead of a
> docklayoutpanel? should this solve the problem, too? i tried and it
> did not work out for me.
>
> i will read the stuff in the docs and play around with the different
> containers. would really find a solution for this issue. has anyone
> some sample code that i can have a look at? in the meantime you can
> have a look at my code by browsing through the 
> projecthttp://code.google.com/p/honeycrm/source/browse/#svn/trunk/src/honeyc...
>
> kind regards,
> ingo
>
> On 16 Jun., 13:48, Olivier Monaco  wrote:
>
> > Do you want:
> > 1) scroll the whole page? Don't use layouts (*LayoutPanel), there are
> > made to avoid scrolling. Did you 
> > readhttp://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideUiPanels...
>
> > Try:
>
> > RootPanel
> >  \_ DockPanel
> >   \_ DecoratedTabPanel
>
> > 2) scroll the content area of the tabs? Add a ScrollPanel in each tab
> > content.
>
> > Olivier
>
> > On 16 juin, 09:12, ingo  wrote:
>
> > > hello everyone,
>
> > > i am using the DecoratedTabPanel to split my application into several
> > > modules (http://honeyyycrm.appspot.com). however, i have currently no
> > > scrolling at all (in no browser). i read about this in the mailing
> > > list and it seems like a lot of developers have issues with this
> > > (especially when they use TabPanels). i experimented with the
> > > suggestions but i did not yet find a working solution. is there any
> > > point in the documentation describing what to do to enable scrolling
> > > when using TabPanels?
>
> > > this is the widget that is inserted into the 
> > > RootLayoutPanel:http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/cl...
> > > it contains a docklayoutpanel and inserts an instance of TabCenterView
> > > into 
> > > itself:http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/cl...
>
> > > RootLayoutPanel
> > >  \_ DockLayoutPanel (TabLayout class)
> > >   \_ DecoratedTabPanel (TabCenterView class)
>
> > > this is the current hierarchy. now which steps are neccessary to
> > > enable proper scrolling for the app?
>
> > > regards,
> > > ingo
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DockLayoutPanel inside a ScrollPanel

2010-06-17 Thread Olivier Monaco
Yes, Stefan, I missed it. Thanks.

On 16 juin, 18:33, Stefan Bachert  wrote:
> > The layout panels are made to avoid scrolling. They must have a fixed
> > size.
>
> The latter sentence is not completly true.
> A LayoutPanel does not calculate its size from children.
> Especially it does not grow when the children grow.
>
> A Layoutpanel needs to be told which size it has.
> The possibilities are:
>
> a) to set height and width explicitly (what you notice)
> b) to grow and shrink with its parent (what you missed)
>
> Stefan Bacherthttp://gwtworld.de

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Browser compatibility for event.getNativeEvent().getKeyCode()

2010-06-17 Thread ruds
Hello there,
I have a focus panel where i added a MouseDownHandler to it. now in my
MouseHandler i am doing the following:
public void onMouseDown(MouseDownEvent arg0) {
if(arg0.getNativeEvent().getKeyCode()==Event.BUTTON_LEFT){
}else if(arg0.getNativeEvent().getKeyCode()==Event.BUTTON_RIGHT){
}

The strange thing is IE, the keyCode returned if i do debug it is
always 0, it is working fine over FF and chrome and i need this in
order to differentiate right from left clicks.

is this a browser compatibility issue or a gwt bug?

i am using GWT 2.0.3.


best regards,
Rudolf Michael

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: MVP questions

2010-06-17 Thread Olivier Monaco
Hi,

Depending on the "size" of object2, I will use a dedicated presenter
or not. Commonly, I like to have a dedicated one so I can easily reuse
it, extends it... and, more important, I have more encapsulation,
reducing the complexity of my code.

Olivier

On 16 juin, 17:20, Bilousme  wrote:
> Hello all,
>
> I need some help to check if my design I choose is correct.
> Imagine I have a data model like that :
>  - An object1 containing a list of many object2
>
> Imagine now I want that my screen displays info of object1 and the
> list of object2 inside a tabpanel. When you click on a tab, you
> display the info of the selected object2.
>
> What is the best way to implement that ?
> 1) only one couple of presenter/view for object1 and this couple
> manages the display of object2 in each tab
> 2) one presenter/view object for object1 and one presenter/view for
> each instance of object2 ?
>
> in other words, do I have one couple of presenter/view by object
> model ?

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Browser compatibility for event.getNativeEvent().getKeyCode()

2010-06-17 Thread Jaroslav Záruba
There are couple of issue-reports for key-handlers, very old ones. This has
been also reported.

On Thu, Jun 17, 2010 at 10:06 AM, ruds  wrote:

> Hello there,
> I have a focus panel where i added a MouseDownHandler to it. now in my
> MouseHandler i am doing the following:
> public void onMouseDown(MouseDownEvent arg0) {
> if(arg0.getNativeEvent().getKeyCode()==Event.BUTTON_LEFT){
> }else if(arg0.getNativeEvent().getKeyCode()==Event.BUTTON_RIGHT){
> }
>
> The strange thing is IE, the keyCode returned if i do debug it is
> always 0, it is working fine over FF and chrome and i need this in
> order to differentiate right from left clicks.
>
> is this a browser compatibility issue or a gwt bug?
>
> i am using GWT 2.0.3.
>
>
> best regards,
> Rudolf Michael
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Browser compatibility for event.getNativeEvent().getKeyCode()

2010-06-17 Thread Jaroslav Záruba
And they apply to 2.1 m1 too.

2010/6/17 Jaroslav Záruba 

> There are couple of issue-reports for key-handlers, very old ones. This has
> been also reported.
>
> On Thu, Jun 17, 2010 at 10:06 AM, ruds  wrote:
>
>> Hello there,
>> I have a focus panel where i added a MouseDownHandler to it. now in my
>> MouseHandler i am doing the following:
>> public void onMouseDown(MouseDownEvent arg0) {
>> if(arg0.getNativeEvent().getKeyCode()==Event.BUTTON_LEFT){
>> }else if(arg0.getNativeEvent().getKeyCode()==Event.BUTTON_RIGHT){
>> }
>>
>> The strange thing is IE, the keyCode returned if i do debug it is
>> always 0, it is working fine over FF and chrome and i need this in
>> order to differentiate right from left clicks.
>>
>> is this a browser compatibility issue or a gwt bug?
>>
>> i am using GWT 2.0.3.
>>
>>
>> best regards,
>> Rudolf Michael
>>
>> --
>> 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-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT client timestamps for humans

2010-06-17 Thread PEZ
Now fixed. Many thanks for alerting on it! (I'm quite the GWT newbie.)

/PEZ

On Jun 16, 12:33 pm, Thomas Broyer  wrote:
> On Jun 16, 9:38 am, PEZ  wrote:
>
> > Hello,
>
> > I want to inform you all that I've "ported" PrettyTime (http://
> > ocpsoft.com/prettytime/) to GWT and packaged as a client module. The
> > module and its source is available on Github 
> > ashttp://github.com/PEZ/GWT-Relative-Time
>
> > GWT-Relative-Time can "tend" your widgets as long as they implement
> > HasText. Thus keeping the relative timestamp updated as time passes.
>
> > Now I want some users that can give me feedback on the usage interface
> > and bugs and such. Of course if you want to participate with
> > development, that's even more welcome.
>
> Er,  in the gwt.xml?
> really? You want all my apps to automatically have a Swedish locale as
> soon as I use GWT-Relative-Time? ;-)
>
> I haven't looked at any other file yet, but I thought I'd tell you
> about this thing asap (just in case I forget the project when I get
> back to work after lunch ;-) )

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Gwt Developer Plugin for Safari does not work

2010-06-17 Thread István Szoboszlai
Hello,

The developer mode plugin for safari stopped working a while ago.
I am using a Mac.
The symptom is, that when I point my browser to the url given by devmode in
eclipse, safari simply comes up with the "please download devmode plugin".
Doesn't matter how many times I reinstall the plugin, it won't be recognised
by safari... :(
Now my only option is to use Firefox, which is quiet slow...

Any answer would be greatly appreciated!

Thanks -
- István Szoboszlai | inepex.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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Browser compatibility for event.getNativeEvent().getKeyCode()

2010-06-17 Thread Thomas Broyer


On 17 juin, 10:06, ruds  wrote:
> Hello there,
> I have a focus panel where i added a MouseDownHandler to it. now in my
> MouseHandler i am doing the following:
> public void onMouseDown(MouseDownEvent arg0) {
> if(arg0.getNativeEvent().getKeyCode()==Event.BUTTON_LEFT){
>
> }else if(arg0.getNativeEvent().getKeyCode()==Event.BUTTON_RIGHT){
> }
>
> The strange thing is IE, the keyCode returned if i do debug it is
> always 0, it is working fine over FF and chrome and i need this in
> order to differentiate right from left clicks.
>
> is this a browser compatibility issue or a gwt bug?

Or a bug in your code? You're comparing mouse button codes with
keyboard codes!
You should use arg0.getNativeButton(), or eventually
arg0.getNativeEvent().getButton().
Also note that more than one button can be depressed at the same time,
the value returned is a bit-field, so if you want to know if the left
button is depressed, you should use
arg0.getNativeButton&NativeEvent.BUTTON_LEFT!=0, you'd use
arg0.getNativeButton()==NativeEvent.BUTTON_LEFT only you want to check
that the left button, and only the left button, is depressed.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: AsyncCallback - returning values to enclosing block

2010-06-17 Thread Thomas Broyer


On 16 juin, 14:52, aditya sanas <007aditya.b...@gmail.com> wrote:
> LOL Thomas.[?]
>
> That was great example to determine async calls.

To be fair, the beer/wife metaphor was originally described in much
more details by Jason Essington almost 2 years ago:
http://groups.google.fr/group/google-web-toolkit/msg/3be719c021aa19bd

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT client timestamps for humans

2010-06-17 Thread Thomas Broyer


On 16 juin, 14:43, PEZ  wrote:
> Oh, and I was planning to add a few more locales soon... What's the
> implications?

It obviously adds permutations to the app. You can however add as many
*.properties files to support additional locales without forcing
anyone. Have a look at com.google.gwt.i18n.client.impl, they define
all sorts of locale-specific formats for dates and numbers; when you
 you'll automatically "inherit" them, but they don't
force you to "support Arabic" if you don't want to (or can't translate
your app to Arabic because you don't speak/write 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Does a private variable in Java stays private when compiled to javascript?

2010-06-17 Thread Thomas Broyer

On 16 juin, 17:23, Shedokan  wrote:
> Hello,
> I am looking at GWT's features and can't figure out weather a variable
> declared in java as private will stay private once compiled in GWT.
> By private I mean unaccessible to anyone except for the constructor or
> the construtors functions.

I suppose with the "standard" linker some script could access the
iframe's script and mess things up (as everything is on the "global
scope").
With the "xs" linker though, the whole script is made "private" using
the module pattern ((function() { /* the script here */ })();)

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Browser compatibility for event.getNativeEvent().getKeyCode()

2010-06-17 Thread Jaroslav Záruba
Sorry if that is the case, my response was affected by the fact that I have
ran into that 0-bug yesterday.

On Thu, Jun 17, 2010 at 11:36 AM, Thomas Broyer  wrote:

>
>
> On 17 juin, 10:06, ruds  wrote:
> > Hello there,
> > I have a focus panel where i added a MouseDownHandler to it. now in my
> > MouseHandler i am doing the following:
> > public void onMouseDown(MouseDownEvent arg0) {
> > if(arg0.getNativeEvent().getKeyCode()==Event.BUTTON_LEFT){
> >
> > }else if(arg0.getNativeEvent().getKeyCode()==Event.BUTTON_RIGHT){
> > }
> >
> > The strange thing is IE, the keyCode returned if i do debug it is
> > always 0, it is working fine over FF and chrome and i need this in
> > order to differentiate right from left clicks.
> >
> > is this a browser compatibility issue or a gwt bug?
>
> Or a bug in your code? You're comparing mouse button codes with
> keyboard codes!
> You should use arg0.getNativeButton(), or eventually
> arg0.getNativeEvent().getButton().
> Also note that more than one button can be depressed at the same time,
> the value returned is a bit-field, so if you want to know if the left
> button is depressed, you should use
> arg0.getNativeButton&NativeEvent.BUTTON_LEFT!=0, you'd use
> arg0.getNativeButton()==NativeEvent.BUTTON_LEFT only you want to check
> that the left button, and only the left button, is depressed.
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: History and server call.

2010-06-17 Thread Thomas Broyer


On 16 juin, 15:31, Tristan  wrote:
> sounds like you're reinventing the place service, with event bus, with
> local cache rpc service, but doing it in a new, innovative, complex
> and if the code grows on you perhaps unintelligible way. if you're the
> only one who will support this ever, that may work. otherwise i would
> seriously look into a bunch of mvp-like frameworks out there and look
> at how place services/managers, local caches, and event buses are
> implemented. you don't need to use the framework, but the concepts are
> very helpful to organize the code. they're straightforward and most
> people understand the design.

Sure Ravi is "reinventing" the "place service" here. Sure he should
move its "cache" to a "local cache rpc service". But the main issue
with his code is that he has a "synchronous method" which has to do
something "asynchronous".

Now, most "place services & MVP" implementations I've seen don't use
the "switch view only when ready" pattern. The "activities" coming
into GWT 2.1 do that however.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: AsyncCallback - returning values to enclosing block

2010-06-17 Thread Chris Boertien
What you want to do is have some method in the caller that is waiting
for the result that the callback can call once the data is retrieved.
So you would make the getUser() method return type void and, if the
class defining that method is the same as the one calling that method,
add another method handleUser(String s) which will be called from
within onSuccess.

Some examples : http://pastebin.com/t8aMbPq3



On Thu, Jun 17, 2010 at 1:51 AM, Joost Bloemsma
 wrote:
> Yep,
>
> I tried it too, but my wife didn't get the beer!!!
>
> On 16 jun, 15:07, Magnus  wrote:
>> Hi,
>>
>> thanks, the mechanism is still too new for me. Now, after debugging
>> exactly what Thomas said (the return val was empty), I understand it.
>>
>> So one can never just fetch something from the server while being in a
>> process where the server's result is needed.
>>
>> Good example! :-)
>>
>> Magnus
>>
>> On 16 Jun., 14:52, aditya sanas <007aditya.b...@gmail.com> wrote:
>>
>> > LOL Thomas.[?]
>>
>> > That was great example to determine async calls.
>>
>> > anyway what you are saying is right.
>>
>> > Its a bad design to have a method which returns something and then make
>> > async call which
>>
>> > changes the state of some variable.
>>
>> > --
>> > Aditya
>>
>> > On Wed, Jun 16, 2010 at 6:13 PM, Thomas Broyer  wrote:
>>
>> > > On Jun 16, 1:09 pm, Magnus  wrote:
>> > > > Hi,
>>
>> > > > because I cannot access a variable in the enclosing block from within
>> > > > an AsyncCallback method I found the following workaround with a class
>> > > > global variable, which I find very unpretty. How can one do this
>> > > > better?
>>
>> > > What is it that you don't understand in "asynchronous"?
>>
>> > > I mean, your getUsr call will *always* end after the "return
>> > > tmp_str_usr" statement. So, on the first call and until the server
>> > > responds and you AsyncCallback is called, you'll get the empty string
>> > > (initial value of the field); then AsyncCallback will change its
>> > > value, and on all subsequent calls until the server responds to the
>> > > new requests (and AsyncCallback will be called again) you'll get that
>> > > value.
>>
>> > > When you ask your wife to get you some beer, the beer won't be there
>> > > until your wife come back from the kitchen; and while she's gone, the
>> > > football match isn't paused and life continues.
>>
>> > > --
>> > > 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-tool...@googlegroups.com.
>> > > To unsubscribe from this group, send email to
>> > > google-web-toolkit+unsubscr...@googlegroups.com
>> > > .
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>> >  360.gif
>> > < 1 KBAnzeigenHerunterladen- Zitierten Text ausblenden -
>>
>> > - Zitierten Text anzeigen -
>>
>>
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Browser compatibility for event.getNativeEvent().getKeyCode()

2010-06-17 Thread rudolf michael
Well the following worked fine for me, but i did a different implementation
though
@Override
public void onBrowserEvent(Event event) {
super.onBrowserEvent(event);
if(DOM.eventGetType(event)==Event.ONMOUSEDOWN){
if (DOM.eventGetButton(event) == Event.BUTTON_RIGHT){
TreeHandler.onRightClick(this);
}else if (DOM.eventGetButton(event) == Event.BUTTON_LEFT){
TreeHandler.onLeftClick(this);
}
}else if(DOM.eventGetType(event)==Event.ONMOUSEOVER){
 TreeHandler.onMouseOver(this);
}else if(DOM.eventGetType(event)==Event.ONMOUSEOUT){
TreeHandler.onMouseOut(this);
}

}

but then i am not taking advantage of the default listeners that i have over
this widget. i had to sink the mouse events and implement EventListener for
my Widget.

Hope that they will find a better solution in next GWT releases for Event
with Widgets and not Elements.

regards,
Rudolf Michael

2010/6/17 Jaroslav Záruba 

> Sorry if that is the case, my response was affected by the fact that I have
> ran into that 0-bug yesterday.
>
>
> On Thu, Jun 17, 2010 at 11:36 AM, Thomas Broyer wrote:
>
>>
>>
>> On 17 juin, 10:06, ruds  wrote:
>> > Hello there,
>> > I have a focus panel where i added a MouseDownHandler to it. now in my
>> > MouseHandler i am doing the following:
>> > public void onMouseDown(MouseDownEvent arg0) {
>> > if(arg0.getNativeEvent().getKeyCode()==Event.BUTTON_LEFT){
>> >
>> > }else if(arg0.getNativeEvent().getKeyCode()==Event.BUTTON_RIGHT){
>> > }
>> >
>> > The strange thing is IE, the keyCode returned if i do debug it is
>> > always 0, it is working fine over FF and chrome and i need this in
>> > order to differentiate right from left clicks.
>> >
>> > is this a browser compatibility issue or a gwt bug?
>>
>> Or a bug in your code? You're comparing mouse button codes with
>> keyboard codes!
>> You should use arg0.getNativeButton(), or eventually
>> arg0.getNativeEvent().getButton().
>> Also note that more than one button can be depressed at the same time,
>> the value returned is a bit-field, so if you want to know if the left
>> button is depressed, you should use
>> arg0.getNativeButton&NativeEvent.BUTTON_LEFT!=0, you'd use
>> arg0.getNativeButton()==NativeEvent.BUTTON_LEFT only you want to check
>> that the left button, and only the left button, is depressed.
>>
>> --
>> 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-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>  --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: History and server call.

2010-06-17 Thread Ravi Sharma
Hi Thomas,
I checked this URL 
http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html,
for GWT 2.1 but didnt find much information about Activities. Is it
explained somewhere else. Can you share such info/link so i can look
into it dont reinvent everything. I am about to start implementing
"switch view only when ready" pattern but if its present in 2.1 then i
would love to use it instead of writing my own.

Thanks,
Ravi.

On Jun 17, 10:59 am, Thomas Broyer  wrote:
> On 16 juin, 15:31, Tristan  wrote:
>
> > sounds like you're reinventing the place service, with event bus, with
> > local cache rpc service, but doing it in a new, innovative, complex
> > and if the code grows on you perhaps unintelligible way. if you're the
> > only one who will support this ever, that may work. otherwise i would
> > seriously look into a bunch of mvp-like frameworks out there and look
> > at how place services/managers, local caches, and event buses are
> > implemented. you don't need to use the framework, but the concepts are
> > very helpful to organize the code. they're straightforward and most
> > people understand the design.
>
> Sure Ravi is "reinventing" the "place service" here. Sure he should
> move its "cache" to a "local cache rpc service". But the main issue
> with his code is that he has a "synchronous method" which has to do
> something "asynchronous".
>
> Now, most "place services & MVP" implementations I've seen don't use
> the "switch view only when ready" pattern. The "activities" coming
> into GWT 2.1 do that however.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: History and server call.

2010-06-17 Thread Jaroslav Záruba
I searched too but have found only this:
http://code.google.com/p/google-web-toolkit/source/browse/branches/2.1/bikeshed/src/com/google/gwt/app/place/
It
seems to be missing in 2.1 m1 yet.

On Thu, Jun 17, 2010 at 12:30 PM, Ravi Sharma  wrote:

> Hi Thomas,
> I checked this URL
> http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html,
> for GWT 2.1 but didnt find much information about Activities. Is it
> explained somewhere else. Can you share such info/link so i can look
> into it dont reinvent everything. I am about to start implementing
> "switch view only when ready" pattern but if its present in 2.1 then i
> would love to use it instead of writing my own.
>
> Thanks,
> Ravi.
>
> On Jun 17, 10:59 am, Thomas Broyer  wrote:
> > On 16 juin, 15:31, Tristan  wrote:
> >
> > > sounds like you're reinventing the place service, with event bus, with
> > > local cache rpc service, but doing it in a new, innovative, complex
> > > and if the code grows on you perhaps unintelligible way. if you're the
> > > only one who will support this ever, that may work. otherwise i would
> > > seriously look into a bunch of mvp-like frameworks out there and look
> > > at how place services/managers, local caches, and event buses are
> > > implemented. you don't need to use the framework, but the concepts are
> > > very helpful to organize the code. they're straightforward and most
> > > people understand the design.
> >
> > Sure Ravi is "reinventing" the "place service" here. Sure he should
> > move its "cache" to a "local cache rpc service". But the main issue
> > with his code is that he has a "synchronous method" which has to do
> > something "asynchronous".
> >
> > Now, most "place services & MVP" implementations I've seen don't use
> > the "switch view only when ready" pattern. The "activities" coming
> > into GWT 2.1 do that however.
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: SerializerBase.check(String,int) throws useless exception?

2010-06-17 Thread Chris Lowe
I just had to debug one of these errors.

I just set a break point where the exception is raised (i.e.
SerializerBase.java:161).  I ran my app in debug developer mode and
when I hit the breakpoint I was able to inspect the parent call in the
stack where there is a method parameter called "instance".  This will
hopefully highlight the offending class where you should make sure it
follows Sri's previous recommendations.

I mostly get these errors where the RPC call is given a class which is
itself OK but has had a non-serialisable payload assigned to it
somewhere (e.g. as part of a Command pattern).  So, I'm not sure that
much can be done by the compiler to raise such conditions.  As a quick
method of getting the compiler to flag up possible RPC errors, I
modified the payloads for the offending commands to avoid vague types
like "Object" and instead used "Serializable".  (I'd normally avoid
using Object but I'd inherited the code ;)

You're right though - the exception message for this error case is
unhelpful and should at least additionally use information from the
serialisation target instance where RPC type information is not
available.

Cheers,

Chris.


On May 31, 3:53 pm, svincent  wrote:
> Greetings,
>
> I'm having a frustrating time debugging a bunch of code I'm trying to
> port to GWT.  There are various subtle serialization issues (not
> surprising, since GWT has its special rules).
>
> The real problem I'm running in to is that the exception I keep
> getting is this:
>
> com.google.gwt.user.client.rpc.SerializationException: null
>     at
> com.google.gwt.user.client.rpc.impl.SerializerBase.check(SerializerBase.jav a:
> 161)
>     at
> com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase 
> .java:
> 145)
>     at
> com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.seriali 
> ze(ClientSerializationStreamWriter.java:
> 199)
> ...
>
> This exception is terrible: it doesn't tell me what class is having
> the trouble.  It tries to print out the 'typeSignature', but the
> typeSignature is null for classes with certain types of serialization
> issues.
>
> A couple of thoughts:
>
> 1. it would be Really Nice if GWT could be changed to fix this
> exception to be more meaningful (at least include the class name
> that's having the trouble)
>
> 2. Does anybody have tips on what to do when you get this exception?
> I've encountered one case: don't have fields of type java.lang.Object
> in your GWT Serializable classes.  Is there more?
>
> Thanks!
>     -Shawn.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT, servlet, JSP and datastore

2010-06-17 Thread kensai yanesha
Tristan maybe you could help me, do you have any completed Eclipse
project with grid connected to database? I would thank you if you
could provide me such thing to learn more. I am on dead point. We will
use only stored procedures for communication with database and I am
not able to find any rich subject related to this over net.

Our application will run finally on intranet, so in our case there is
no possibility of using online google app engine, altough I already
tried to use it and it worked well.

Thank you


On 9 čvn, 18:32, Tristan Slominski 
wrote:
> @kensai
>
> If you look at Google App Engine, the datastore is part of Google's
> free-to-start cloud hosting service.
>
> On Wed, Jun 9, 2010 at 02:56, kensai yanesha wrote:
>
> > Hi Laurent,
>
> > I am also new to GWT, also fascinated :-). I also already went trough
> > samples and tutorials and well stopped at the point how to bind
> > components to, in my case, database table in Oracle database. I don't
> > know what do you mean exactly by "Google datastore" but I think you
> > mean the Datastore class in GWT framework.
>
> > Even GWT is very good for creating nice GUI on the client side, it's
> > object-relational mapping is still in incubation period and you
> > following options how to proceed:
> > 1.) You need to manually write the functions which manipulate with
> > data  on the server side and call it via AJAX (JavaScript) from the
> > client side when necessary.
> > 2.) Look at EoD SQL project athttp://eodsql.sourceforge.net/this
> > library may help you, there are also tutorials how to use it together
> > with GWT
> > 3.) This is the easiest, free for trial then payed, option. Use
> > SmartGWT Professional or Enterprise. Take a look at it
> >http://code.google.com/p/smartgwt/. It has integrated tomcat inside.
> > In the SDK there are lot of examples and tutorials, but also something
> > what you will find maybe really useful:
> > Datasource generator - generate XML DS descriptional file, works with
> > standard database engines, etc.
> > Visual designer - you can create client layouts in visual way, in this
> > tool you are also able to use for example Datagrid directly with
> > Datasource you created in generator, and you have component directly
> > interacting with any datasource.
>
> > I found SmartGWT SDK best for learning, as standard GWT, you have
> > access to all Java, XML files, but from Visual designer you also
> > generate JSP file and can see what have you created.
>
> > Hope I helped you. Also send me your experiences I you already found
> > something better, different.
>
> > Best regards,
>
> > Kensai
> > On Jun 8, 11:08 am, laurentleb  wrote:
> > > To the GWT community,
>
> > > I am pretty new to GWT but familiar with n-tiers application
> > > development. I find GWT fascinating to develop rich web applications
> > > and went through the tutorial. This is amazingly simple to achieve.
>
> > > On the other side, I tested also Google app Engine to develop and
> > > deploy a JSP/servlet + datastore testing app. Once again, it is really
> > > efficient.
>
> > > My question is : how can I combine these two approaches to build nice
> > > applications on the client side with efficient business java code on
> > > the server side and data storing in Google datastore ?
>
> > > Are there some guidelines ? Is there a policy ?
>
> > > Thank you in advance for your help.
>
> > > Laurent
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Simple working example of the Data Presentation Widget CellTable

2010-06-17 Thread bond
Hi,
someone can post a complete example of use of Data presentation
Widget?
it'll be also welcome an example of server side.

Thanks

Best regards

On 3 Giu, 14:14, Paul Stockley  wrote:
> Sorry my message got truncated:
>
> Your over complicating it. You should just subclass
> AsyncListViewAdapter such as:
>
>         protected class residentAsyncAdapter extends
> AsyncListViewAdapter{
>                 @Override
>                 protected void onRangeChanged(ListView view) {
>                         Range newRange = view.getRange();
>
>                         updateViewData(newRange.getStart(), 
> newRange.getLength(),  ofdatafor the requested range>);
>                 }
>         }
>
> Then add the table as a view of the adapter
>
> CellTable residentTable = new
> CellTable(5);
>
>   Column unitColumn = new
> Column(new TextCell()) {
>                 @Override
>                 public String getValue(ResidentListDO object) {
>                         return object.getUnit();
>                 }
>
> };
>
> residentTable.addColumn(unitColumn, "Unit");
>
> SimplePager thePager = new
> SimplePager(residentTable);
> residentTable.setPager(thePager);
>
> mainGridContainer.add(residentTable);
> pagerContainer.add(thePager);
>
> residentAsyncAdapter residentTableAdapter = new
> residentAsyncAdapter();
> residentTableAdapter.addView(view.residentTable);
> residentTableAdapter.updateDataSize(, true);
>
> If you have a list on the client already for thedataset it is even
> easier. Instead of using
> AsyncListViewAdapter use ListViewAdapter as follows:
>
> List ourList = new ArrayList();
> ListViewAdapter residentTableAdapter = new
> ListViewAdapter(ourList );
> residentTableAdapter.addView(view.residentTable);
> //No need to call updateDataSize
>
> On Jun 3, 7:52 am, Paul Stockley  wrote:
>
> > Your making it overly complicated:
>
> > For the case where you have all thedatain a list already:
>
> >             Column unitColumn = new
> > Column(new TextCell()) {
> >                 @Override
> >                 public String getValue(ResidentListDO object) {
> >                         return object.getUnit();
> >                 }
> >                 };
>
> >                 Column nameColumn = new
> > Column(new TextCell()) {
> >                 @Override
> >                 public String getValue(ResidentListDO object) {
> >                         return object.getName();
> >                 }
> >                 };
>
> >                 residentTable.addColumn(unitColumn, "Unit");
> >                 residentTable.addColumn(nameColumn, "Name");
>
> >                 SimplePager thePager = new
> > SimplePager(residentTable);
> >                 residentTable.setPager(thePager);
>
> >                 mainGridContainer.add(residentTable);
> >                 pagerContainer.add(thePager);
>
> >                residentTableAdapter = new residentAsyncAdapter();
>
> > On Jun 2, 11:18 pm, Andrew  wrote:
>
> > > The following code is what I'm woking on, hope it can help you:
>
> > > protected void init() {
> > >                 VerticalPanel container = new VerticalPanel();
> > >                 initWidget(container);
>
> > >                 int pageSize = 10;
> > >                 CellTable cellTable = new CellTable(pageSize);
> > >                 setColumns(cellTable);
> > >                 setSelectionModel(cellTable);
>
> > >                 setDataSize(cellTable);
> > >                 int pageStart = 0;
> > >                 loadData(pageStart, pageSize, cellTable);
>
> > >                 SimplePager pager = createPager(cellTable);
>
> > >                 container.add(cellTable);
> > >                 container.add(pager);
> > >         }
>
> > >         private SimplePager createPager(final CellTable
> > > cellTable) {
> > >                 SimplePager pager = new SimplePager(cellTable,
> > >                                 SimplePager.TextLocation.CENTER) {
> > >                         public void 
> > > onRangeOrSizeChanged(PagingListView listView) {
> > >                                 loadData(listView.getPageStart(), 
> > > listView.getPageSize(),
> > >                                                 listView);
> > >                                 super.onRangeOrSizeChanged(listView);
> > >                         }
> > >                 };
> > >                 return pager;
> > >         }
>
> > >         private void setColumns(CellTable cellTable) {
> > >                 cellTable.addColumn(new TextColumn() {
> > >                         @Override
> > >                         public String getValue(User user) {
> > >                                 return user.getName();
> > >                         }
> > >                 }, new TextHeader("Name"));
>
> > >                 cellTable.addColumn(new TextColumn() {
> > >                         @Override
> > >                         public String getValue(User user) {
> > >                                 return user.getLocation();
> > >    

Re: GWT client timestamps for humans

2010-06-17 Thread PEZ
Thanks for clarifying. Obviously it wasn't obvious to me. =)

/PEZ

On Jun 17, 11:43 am, Thomas Broyer  wrote:
> On 16 juin, 14:43, PEZ  wrote:
>
> > Oh, and I was planning to add a few more locales soon... What's the
> > implications?
>
> It obviously adds permutations to the app. You can however add as many
> *.properties files to support additional locales without forcing
> anyone. Have a look at com.google.gwt.i18n.client.impl, they define
> all sorts of locale-specific formats for dates and numbers; when you
>  you'll automatically "inherit" them, but they don't
> force you to "support Arabic" if you don't want to (or can't translate
> your app to Arabic because you don't speak/write 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Order in new CellTable

2010-06-17 Thread bond
Hi,
I'm using the new GWT2.1M1. I'm testing CellTable and it seems very
beautiful.
I've 2 questions:

-how I can order the data display clicking on the column header?
-how I can add an "onMouseOver" event on a single cell?

Thanks very much

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Order in new CellTable

2010-06-17 Thread Jaroslav Záruba
The Expenses demo-app uses ordering columns:
http://gwt-bikeshed.appspot.com/Expenses.html (see report details)
source:
http://code.google.com/p/google-web-toolkit/source/browse/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/

On Thu, Jun 17, 2010 at 2:06 PM, bond  wrote:

> Hi,
> I'm using the new GWT2.1M1. I'm testing CellTable and it seems very
> beautiful.
> I've 2 questions:
>
> -how I can order the data display clicking on the column header?
> -how I can add an "onMouseOver" event on a single cell?
>
> Thanks very much
>
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT, servlet, JSP and datastore

2010-06-17 Thread Tristan Slominski
hey there, my work is on app engine so i don't have an example you
requested, but probably someone else in the community does.

On Thu, Jun 17, 2010 at 06:06, kensai yanesha wrote:

> Tristan maybe you could help me, do you have any completed Eclipse
> project with grid connected to database? I would thank you if you
> could provide me such thing to learn more. I am on dead point. We will
> use only stored procedures for communication with database and I am
> not able to find any rich subject related to this over net.
>
> Our application will run finally on intranet, so in our case there is
> no possibility of using online google app engine, altough I already
> tried to use it and it worked well.
>
> Thank you
>
>
> On 9 čvn, 18:32, Tristan Slominski 
> wrote:
> > @kensai
> >
> > If you look at Google App Engine, the datastore is part of Google's
> > free-to-start cloud hosting service.
> >
> > On Wed, Jun 9, 2010 at 02:56, kensai yanesha  >wrote:
> >
> > > Hi Laurent,
> >
> > > I am also new to GWT, also fascinated :-). I also already went trough
> > > samples and tutorials and well stopped at the point how to bind
> > > components to, in my case, database table in Oracle database. I don't
> > > know what do you mean exactly by "Google datastore" but I think you
> > > mean the Datastore class in GWT framework.
> >
> > > Even GWT is very good for creating nice GUI on the client side, it's
> > > object-relational mapping is still in incubation period and you
> > > following options how to proceed:
> > > 1.) You need to manually write the functions which manipulate with
> > > data  on the server side and call it via AJAX (JavaScript) from the
> > > client side when necessary.
> > > 2.) Look at EoD SQL project athttp://eodsql.sourceforge.net/this
> > > library may help you, there are also tutorials how to use it together
> > > with GWT
> > > 3.) This is the easiest, free for trial then payed, option. Use
> > > SmartGWT Professional or Enterprise. Take a look at it
> > >http://code.google.com/p/smartgwt/. It has integrated tomcat inside.
> > > In the SDK there are lot of examples and tutorials, but also something
> > > what you will find maybe really useful:
> > > Datasource generator - generate XML DS descriptional file, works with
> > > standard database engines, etc.
> > > Visual designer - you can create client layouts in visual way, in this
> > > tool you are also able to use for example Datagrid directly with
> > > Datasource you created in generator, and you have component directly
> > > interacting with any datasource.
> >
> > > I found SmartGWT SDK best for learning, as standard GWT, you have
> > > access to all Java, XML files, but from Visual designer you also
> > > generate JSP file and can see what have you created.
> >
> > > Hope I helped you. Also send me your experiences I you already found
> > > something better, different.
> >
> > > Best regards,
> >
> > > Kensai
> > > On Jun 8, 11:08 am, laurentleb  wrote:
> > > > To the GWT community,
> >
> > > > I am pretty new to GWT but familiar with n-tiers application
> > > > development. I find GWT fascinating to develop rich web applications
> > > > and went through the tutorial. This is amazingly simple to achieve.
> >
> > > > On the other side, I tested also Google app Engine to develop and
> > > > deploy a JSP/servlet + datastore testing app. Once again, it is
> really
> > > > efficient.
> >
> > > > My question is : how can I combine these two approaches to build nice
> > > > applications on the client side with efficient business java code on
> > > > the server side and data storing in Google datastore ?
> >
> > > > Are there some guidelines ? Is there a policy ?
> >
> > > > Thank you in advance for your help.
> >
> > > > Laurent
> >
> > > --
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: History and server call.

2010-06-17 Thread Tristan Slominski
here's an example i wrote that walks through place service, hope that helps
with place service concepts. note that I got feedback that two types of
place events that i implemented here are not necessary and that one would be
sufficient, but i haven't had the time to refactor yet. it should however
capture the essence of what a place service does. I too am waiting for 2.1
to settle and see where Google wants to go with that, in the mean time this
is a production system description:

http://code.google.com/p/handlebars/wiki/PlaceServiceOverview

2010/6/17 Jaroslav Záruba 

> I searched too but have found only this:
>
> http://code.google.com/p/google-web-toolkit/source/browse/branches/2.1/bikeshed/src/com/google/gwt/app/place/
> It
> seems to be missing in 2.1 m1 yet.
>
>
> On Thu, Jun 17, 2010 at 12:30 PM, Ravi Sharma  wrote:
>
>> Hi Thomas,
>> I checked this URL
>> http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html,
>> for GWT 2.1 but didnt find much information about Activities. Is it
>> explained somewhere else. Can you share such info/link so i can look
>> into it dont reinvent everything. I am about to start implementing
>> "switch view only when ready" pattern but if its present in 2.1 then i
>> would love to use it instead of writing my own.
>>
>> Thanks,
>> Ravi.
>>
>> On Jun 17, 10:59 am, Thomas Broyer  wrote:
>> > On 16 juin, 15:31, Tristan  wrote:
>> >
>> > > sounds like you're reinventing the place service, with event bus, with
>> > > local cache rpc service, but doing it in a new, innovative, complex
>> > > and if the code grows on you perhaps unintelligible way. if you're the
>> > > only one who will support this ever, that may work. otherwise i would
>> > > seriously look into a bunch of mvp-like frameworks out there and look
>> > > at how place services/managers, local caches, and event buses are
>> > > implemented. you don't need to use the framework, but the concepts are
>> > > very helpful to organize the code. they're straightforward and most
>> > > people understand the design.
>> >
>> > Sure Ravi is "reinventing" the "place service" here. Sure he should
>> > move its "cache" to a "local cache rpc service". But the main issue
>> > with his code is that he has a "synchronous method" which has to do
>> > something "asynchronous".
>> >
>> > Now, most "place services & MVP" implementations I've seen don't use
>> > the "switch view only when ready" pattern. The "activities" coming
>> > into GWT 2.1 do that however.
>>
>> --
>> 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-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>  --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Gwt Developer Plugin for Safari does not work

2010-06-17 Thread Miguel Méndez
Which version of Safari are you using?  Also, what version of Mac are you
using?

On Thu, Jun 17, 2010 at 5:34 AM, István Szoboszlai wrote:

> Hello,
>
> The developer mode plugin for safari stopped working a while ago.
> I am using a Mac.
> The symptom is, that when I point my browser to the url given by devmode in
> eclipse, safari simply comes up with the "please download devmode plugin".
> Doesn't matter how many times I reinstall the plugin, it won't be
> recognised by safari... :(
> Now my only option is to use Firefox, which is quiet slow...
>
> Any answer would be greatly appreciated!
>
> Thanks -
> - István Szoboszlai | inepex.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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
Miguel

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT or SmartGWT and Oracle - Stored procedures

2010-06-17 Thread kensai yanesha
Well, I went trough many tutorials and howtos on internet. The one was
amazing and it solved all my needs. DataSource definition is in XML
and I can execute CRUD operations using storedc procedures on the
database side. I am talking about project SmartClient. One can define
DataSource using this way:









call 
spUpdateWSSWatchSources($values._watchID,
$wssSourceIDs)




This is very easy to write, but licence for one developer could be
very expensive, I think about almost 2000 dolars for the Power version
which supports the SQL templating, exactly putting into the XML
definiton of the datasource element 

I can forget buying this for this project, maybe in the future.

But what next? How to proceed with SmartGWT and SQL engine? Current
answer is using EoD SQL as ORM subsystem. There are some bad things
about loosing lazzy loading feature, etc., but in my case it seems to
be the best way now as you can see at:
http://lemnik.wordpress.com/2009/09/18/eod-sql-applied-%E2%80%93-part-5-5-gwt-applications/

Any your suggestion would be helpful.

Kensai

On 17 čvn, 09:32, kensai yanesha  wrote:
> The database could be any SQL engine, so the dataserver type schould
> be sql not hibernate.
>
> On 17 čvn, 06:18, kensai yanesha  wrote:
>
> > Hello,
>
> > I am new to GWT at all. My approach is to have an editable grid on the
> > client side and one or more tables on the database side (Oracle in my
> > case). Could someone post really working project with all files which
> > supports all 4 standard operations (select, insert, update, delete)?
> > In my case I want to do all these operations using stored procedures
> > to avoid SQL injection attacks.
>
> > Any external link or pure sample will help. I was not able to find any
> > complete project which is I think best to learn it as complex logic.
>
> > Thank you very much.
>
> > Kensai

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



SmartGWT and Database integration example

2010-06-17 Thread kensai yanesha
Hello there,

could someone provide me with complete eclipse project where schould
be used rather SmartGWT then GWT gui components integrated with any
sql type database engine?

This will really help me.

Thank you.

Kensai

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: gwt2.0 memory leak

2010-06-17 Thread Daniel Le Clere
For some reason my last message didn't go through. I don't have time
to retype the other thing, but essentially have a look at
http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html#DataPresentationWidgets
and gwt incubator. You want to re-implement it using a design that
utilises flyweight rather than the clunky widget currently packaged
with GWT.

On Jun 14, 6:08 pm, tarik  wrote:
> Is there a way to decrease the consumption ofmemoryfor widgets,
> datatable.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: MVP questions

2010-06-17 Thread Bilousme
Ok but what recommend the MVP pattern ?
- one View/presenter by screen ?
- one view/presenter by data object model...
It's not really clear (at least for me)

On Jun 17, 10:08 am, Olivier Monaco  wrote:
> Hi,
>
> Depending on the "size" of object2, I will use a dedicated presenter
> or not. Commonly, I like to have a dedicated one so I can easily reuse
> it, extends it... and, more important, I have more encapsulation,
> reducing the complexity of my code.
>
> Olivier
>
> On 16 juin, 17:20, Bilousme  wrote:
>
>
>
> > Hello all,
>
> > I need some help to check if my design I choose is correct.
> > Imagine I have a data model like that :
> >  - An object1 containing a list of many object2
>
> > Imagine now I want that my screen displays info of object1 and the
> > list of object2 inside a tabpanel. When you click on a tab, you
> > display the info of the selected object2.
>
> > What is the best way to implement that ?
> > 1) only one couple of presenter/view for object1 and this couple
> > manages the display of object2 in each tab
> > 2) one presenter/view object for object1 and one presenter/view for
> > each instance of object2 ?
>
> > in other words, do I have one couple of presenter/view by object
> > model ?- 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: What's the best/easiest way of doing server-side persistence with GWT?

2010-06-17 Thread kensai yanesha
Hi, could you release your GWT mysql project somewhere on the web.
Would be very helpful for me see real complete project of GWT and
database integration. I have to say, that in my case we plan to use
stored procedures only on the db side for access data.

thx.
kensai

On 21 kvě, 16:50, Robnauticus-  wrote:
> Hello,
> I have completed a GWT / Hibernate / gilead / mysql project. It was my
> first, the whole process was a large pain but mostly worth it still
> compared to DIY.
>
> My newer project is based on GWT / Oracle DB Java edition an object
> based db. It has been too easy so far... no translators, just one or
> two non intrusive annotations on my Entities and persistent classes.
> Plus it can outperform SQL in a lot of aspects.  Only thing that sucks
> is reporting.  Sql is much easier/robost for reporting solutions.
> Other than that, unless you were making a large shareddatabasethat
> has to be separate from the app, I would go without SQL.
>
> On May 19, 3:16 pm, Navigateur  wrote:
>
>
>
> > I haven't yet chosen a server or anything.
>
> > Is Gilead the best thing for persistence on the server side? Does the
> > choice of server make a difference for developing for persistence e.g.
> > AppEngine? GlassFish? Anything?
>
> > Sorry, these are relatively beginner questions - in case you say "it
> > depends on what you're doing" I'm making an app where I want object-
> > oriented persistence, quick error-free multi-user concurrent access to
> > that (object-oriented) datastore, and ease-of-development with code
> > that doesn't tie me down too strongly in case I want to switch
> > platforms.
>
> > Oh, and it should be in Java, like GWT is.
> > And besides, what are the full range of options for this?
>
> > Cheers! N
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Order in new CellTable

2010-06-17 Thread Jim
I got all source code from this repository and created a project -
bikeshed21. I fixed some minor issues because Parser and Render
classes are duplicated in two packages. Now I got a clean Eclipse
project without any syntax errors. But I can not run it because there
are DataNucleus-enhance problems which I have not fixed. I was trying
to get a working copy of bikeshed from this group. So far I am out of
luck. I would appreciate it if you can provide us with a working copy
of "bikeshed" Eclipse project. Or if you need this half-done project I
finished, I can provide it.




On Jun 17, 8:09 am, Jaroslav Záruba  wrote:
> The Expenses demo-app uses ordering 
> columns:http://gwt-bikeshed.appspot.com/Expenses.html(see report details)
> source:http://code.google.com/p/google-web-toolkit/source/browse/branches/2
>
>
>
> On Thu, Jun 17, 2010 at 2:06 PM, bond  wrote:
> > Hi,
> > I'm using the new GWT2.1M1. I'm testing CellTable and it seems very
> > beautiful.
> > I've 2 questions:
>
> > -how I can order the data display clicking on the column header?
> > -how I can add an "onMouseOver" event on a single cell?
>
> > Thanks very much
>
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



On struts2gwtplugin...

2010-06-17 Thread Vince
Hello,

We've been using GWT 1.7.1 with struts2gwtplugin-0.2.1 for quite
sometime now with zero problems until now... We're currently
encountering a NullPointerException on a callback transmission which
goes like this...

java.lang.NullPointerException
at
com.googlcode.strut2gwtplugin.interceptor.GWTServlet.processCall(GWTServlet.java:
91)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:
86)
...

We've gone over our configuration; struts.xml, callback interfaces and
the actual action class and everything checks out... We've checked the
source of the file, GWTServlet but the code does not make any sense to
us at this point. So the first and foremost question is,

1. Could anybody please point us to the right direction on what the
real source of this issue is? Would greatly appreciate it...
2. Does anybody know the most recent version of this plugin? We're
wondering if an upgrade is needed...

Thanks in advance...

Best,
Vince

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: New book, ESSENTIAL GWT

2010-06-17 Thread FKereki
Thanks for the reference. I can add the index of the book:

Chapter 1. Developing Your Application - Rich Internet Applications;
Advantages of GWT; Software Methodologies to Apply
Chapter 2. Getting Started with GWT 2.0 - Why use GWT?; The GWT
Components; Setting GWT Up
Chapter 3. Understanding Projects and Development - Creating a
Project; Project Structure; Running your Application: Development Mode
Chapter 4. Working with Browsers - The “Back Button” Problem;
Detecting the User’s Browser (including deferred binding and code
generators)
Chapter 5. Programming the User Interface - Thinking about UI
Patterns; Implementing MVP; Some Extensions; Declarative UI (including
UiBinder)
Chapter 6. Communicating with Your Server - Introduction to RPC; RPC
Patterns of Usage
Chapter 7. Communicating with Other Servers - The Same Origin Policy
(SOP) Restriction; Our City Update Application; Receiving and
Processing XML; Producing and Sending XML
Chapter 8. Mixing in JavaScript - JSNI; JSON; JSONP
Chapter 9. Adding APIs - A Weather Vane; Dashboard Visualizations;
Working with Maps
Chapter 10. Working with Servers - The Challenges to Meet;
Cryptography; Stateless vs Stateful Servers; Common Operations
Chapter 11. Moving Around Files - Uploading Files; Downloading Files
Chapter 12. Internationalization and Localization -
Internationalization (i18n); Localization (l10n)
Chapter 13. Testing your GWT Application - Why Testing?; Unit Testing
with JUnit; Integration Testing with GWTTestCase; Acceptance Testing
with Selenium
Chapter 14. Optimizing for Application Speed - Design Patterns for
Speed; Speed Measurement Tools
Chapter 15. Deploying Your Application - Compilation; Modules; Code
Splitting; Deployment


Best regards,
F.Kereki


On Jun 16, 6:20 pm, Jim Douglas  wrote:
> Frederic --
>
> You can find summary information on Amazon:
>
> http://www.amazon.com/gp/product/product-description/0321705149
>
> And you can read chapter 1 here:
>
> http://my.safaribooksonline.com/9780321705631
>
> On Jun 16, 12:31 pm, Frederic Conrotte 
> wrote:
>
> > Can you summarize what kind of new information this book gives in
> > comparison with previous books ?
>
> > On 16 juin, 17:32, FKereki  wrote:
>
> > > Hi!
>
> > > I'm quite proud to be able to announce I wrote a book for Addison-
> > > Wesley, called ESSENTIAL GWT.
>
> > > The book is available online 
> > > athttp://my.safaribooksonline.com/9780321705631
> > > and also (for preorders) in Amazon.com 
> > > athttp://www.amazon.com/Federico-Kereki/e/B003NE73LE
> > > or Barnes and Noble 
> > > athttp://search.barnesandnoble.com/Essential-GWT/Federico-Kereki/e/9780...
>
> > > 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Sessions and GWT

2010-06-17 Thread fmod
I think you can pretty much solve the problems related with
performance in runAsync() calls. So in the initial package have only
the minimum code for showing an empty page and the login, and after a
successful login start getting the data needed. That will also fix (I
think) problems related with security. No authenticated user can see
the content of your page.

In the second article I read this:
> Form-based Authentication
> Before I show you how to implement form-based authentication, you
> should be aware that Google does not recommend this. Below is a
> warning from their LoginSecurityFAQ.
> >Do NOT attempt to use the Cookie header to transfer the sessionID
> >from GWT to the server; it is fraught with security issues that will
> >become clear in the rest of this article. You MUST transfer the
> >sessionID in the payload of the request. For an example of why this
> >can fail, see CrossSiteRequestForgery.

Is kind of closing the loop (having a bit more knowledge in another
technology, always grateful) But with the same set of questions.

So the idea is that I always should send this session id. And then
having the server check for it. Maybe relegating the job to a
framework like spring security. But no one saves me from sending the
id.

thx

On Jun 17, 9:25 am, Frederic Conrotte 
wrote:
> >I didn't want the user to wait for the GWT app to load because he could see 
> >the login screen
>
> Correction: I didn't want the user to wait for the GWT app to load
> BEFORE he could see the login screen.
>
> Sorry :)
>
> On Jun 17, 9:17 am, Frederic Conrotte 
> wrote:
>
>
>
> > In our case I didn't want the user to wait for the GWT app to load
> > because he could see the login screen.
>
> > Furthermore, you should take care at securing both HTML request URLs
> > and RPC requests URLs.
>
> > On Jun 17, 9:06 am, Kasper Hansen  wrote:
>
> > > Just curious; why do You recommend a classic HTML form, Frederic ?
>
> > > Cheers.
>
> > > :-) Kasper
>
> > > On Thu, Jun 17, 2010 at 8:25 AM, Frederic Conrotte
>
> > >  wrote:
> > > > GWT and Spring Security work perfectly together.
>
> > > > See this as a starter point:
> > > >http://www.jroller.com/sjivan/entry/ajax_based_login_using_aceci
> > > >http://java.dzone.com/articles/integrating-gwt-spring
>
> > > > I advise you to use a classic HTML form for login, not a GWT based
> > > > login dialog.
>
> > > > On Jun 17, 7:19 am, fmod  wrote:
> > > >> Hi, I need to re-implement the classic login page. And I'm a bit lost
> > > >> with all the alternatives. The communication with the server is with
> > > >> RPC. Until now the flow I was using was:
> > > >> - User enters login and pass [client sends them in plain text to the
> > > >> server]
> > > >> - Server validates and generate a session id (String generated with
> > > >> UUID) [server replies that].
> > > >> - On every request the client sends session id. (all the functions in
> > > >> the rpc have sessionId)
> > > >> - The server was keeping track of this session id and after 30 mins
> > > >> without being used it removed it as valid session.
>
> > > >> This was working quite well, but it was a bit annoying to have this
> > > >> sessionId all the time. Reading some posts, seems that is a bad idea
> > > >> sending the session id all the time (at least as I understood). That I
> > > >> can rely on the 'classical session' mechanism. So somehow the server
> > > >> remembers the client after he logs in the first time.
>
> > > >> Here is my dilemma. This 'classical session' carried by the server
> > > >> seems to disagree with the 'new Ajax-era' where the server carries no
> > > >> status of the client.
>
> > > >> I think I'm totally messing concepts here. What is the correct way of
> > > >> doing it? Is there some good explaining how to do it, maybe an example
> > > >> will be great.
>
> > > >> Thank you 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-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to 
> > > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > > For more options, visit this group 
> > > > athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: New book, ESSENTIAL GWT

2010-06-17 Thread FKereki
Hi!

This book is geared towards GWT 2, including all its new features. I
cover items such as UiBinder, code generators, deferred binding, MVP,
etc. Quoting from the preface of the book:

"Chapters 1 through 3 deal with the basic setup for working with GWT.
After considering the main reasons and objectives for using GWT, we
shall study what other tools are required for serious code
development, the methodology to use, and the internal aspects of
projects.

Chapters 4 and 5 are really a backbone for the book, for they deal
with the basic design patterns that we shall use for building the User
Interface. The code style and idioms that are developed here will be
use throughout the rest of the book.

Chapters 6 and 7 deal with communications with servers, either through
RPC (to connect with servlets) or through direct Ajax (to communicate
with remote services).

Chapters 8 and 9 study how to add both JavaScript coding and third
party APIs to your application. Together with the previous two
chapters, everything that’s needed for mashing up services and getting
information from different sources will have been covered.

Chapters 10 and 11 deal with very common server related problems, such
as security aspects, and file upload and download.

Chapter 12 has to do with developing GWT applications that will be
used worldwide, and covers both internationalization and localization.

Finally, chapters 13 through 15 consider general themes such as
testing GWT applications, optimizing their performance, and finally
deploying them."

Hope this helps -- and just ask away if it doesn't!

Best regards,
F.Kereki



On Jun 16, 4:31 pm, Frederic Conrotte 
wrote:
> Can you summarize what kind of new information this book gives in
> comparison with previous books ?
>
> On 16 juin, 17:32, FKereki  wrote:
>
> > Hi!
>
> > I'm quite proud to be able to announce I wrote a book for Addison-
> > Wesley, called ESSENTIAL GWT.
>
> > The book is available online athttp://my.safaribooksonline.com/9780321705631
> > and also (for preorders) in Amazon.com 
> > athttp://www.amazon.com/Federico-Kereki/e/B003NE73LE
> > or Barnes and Noble 
> > athttp://search.barnesandnoble.com/Essential-GWT/Federico-Kereki/e/9780...
>
> > 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: AsyncCallback - returning values to enclosing block

2010-06-17 Thread Eric
On Jun 17, 5:11 am, Chris Boertien  wrote:
> What you want to do is have some method in the caller that is waiting
> for the result that the callback can call once the data is retrieved.
> So you would make the getUser() method return type void and, if the
> class defining that method is the same as the one calling that method,
> add another method handleUser(String s) which will be called from
> within onSuccess.

Or, since other parts of the system might care about the identity of
the
current user, use an event bus and post an UserChangeEvent in the
onSuccess method.  Anyone who cares about the current user can
listen for these events.

Respectfully,
Eric Jablow

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: MVP questions

2010-06-17 Thread Tristan
I'd do it the second way, for reasons Olivier pointed out.

On Jun 17, 3:08 am, Olivier Monaco  wrote:
> Hi,
>
> Depending on the "size" of object2, I will use a dedicated presenter
> or not. Commonly, I like to have a dedicated one so I can easily reuse
> it, extends it... and, more important, I have more encapsulation,
> reducing the complexity of my code.
>
> Olivier
>
> On 16 juin, 17:20, Bilousme  wrote:
>
>
>
> > Hello all,
>
> > I need some help to check if my design I choose is correct.
> > Imagine I have a data model like that :
> >  - An object1 containing a list of many object2
>
> > Imagine now I want that my screen displays info of object1 and the
> > list of object2 inside a tabpanel. When you click on a tab, you
> > display the info of the selected object2.
>
> > What is the best way to implement that ?
> > 1) only one couple of presenter/view for object1 and this couple
> > manages the display of object2 in each tab
> > 2) one presenter/view object for object1 and one presenter/view for
> > each instance of object2 ?
>
> > in other words, do I have one couple of presenter/view by object
> > model ?

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: On struts2gwtplugin...

2010-06-17 Thread Vince
Hello,

We found the problem... First of all we were looking at the wrong AJAX
call which started the entire puzzle over what was happening, totally
our mistake. Second of all, we were indeed encountering a null value
in one of our callback communications. We fixed the problem...

Having said that, we will be looking for a newer struts2gwtplugin.
Hopefully one that could register the actual GWT API that made the
call and failed - this is wishful thinking I think at this point.
Moving forward, to note... Logging enhancements are needed.

Best,
Vince




On Jun 17, 10:11 am, Vince  wrote:
> Hello,
>
> We've been using GWT 1.7.1 with struts2gwtplugin-0.2.1 for quite
> sometime now with zero problems until now... We're currently
> encountering a NullPointerException on a callback transmission which
> goes like this...
>
> java.lang.NullPointerException
>         at
> com.googlcode.strut2gwtplugin.interceptor.GWTServlet.processCall(GWTServlet­.java:
> 91)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceSer­vlet.java:
> 86)
> ...
>
> We've gone over our configuration; struts.xml, callback interfaces and
> the actual action class and everything checks out... We've checked the
> source of the file, GWTServlet but the code does not make any sense to
> us at this point. So the first and foremost question is,
>
> 1. Could anybody please point us to the right direction on what the
> real source of this issue is? Would greatly appreciate it...
> 2. Does anybody know the most recent version of this plugin? We're
> wondering if an upgrade is needed...
>
> Thanks in advance...
>
> Best,
> Vince

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT Help in NYC

2010-06-17 Thread David E.
I built a fairly large GWT app, it is a word processor of sorts,
everything is FlexTable based. It has about 100+ class files. It's
working pretty well, but I'm having issues that I'm having problems
figuring out.

I'm operating in a vacuum over here. There are no other programmers in
my company who I can confer with. I would really like to find one or a
few GWT authors or extreme experts in NYC to meet / consult with.

Are there any Google people (GWT) available in NYC to meet with me?
This could potentially even be a paid arrangement.

Thanks 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: HELP Problem JPA with the datasource of smartGWT

2010-06-17 Thread ckendrick
You should post this in the SmartGWT forums at forums.smartclient.com.

On Jun 14, 8:09 am, samounas  wrote:
> Can u help me please?
>
> On 14 juin, 14:55, samounas  wrote:
>
> > Hi,
>
> > I have a problem with the file mapping of JPA anddatasource.xmlof
> > smartGWT.
> > changes made in the mapping file in JPA does not appear in the
> >datasourceor in the database.
>
> > Please can anybody  help me find the solution?

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DialogBox glass panel incorrectly scrolls in Chrome (with fixed position HTML header)

2010-06-17 Thread ChrisK
I managed to fix this by changing some absolute positioning styling I
had. It looks like this is caused by absolutely positioned elements
like a main body div. GWT sets the height of the glass panel in CSS to
the height it think the body is, but it's wrong since the absolutely
positioned elements can extend beyond what Chrome thinks is the end of
the body (you can see what it thinks using the developer tools). By
removing the absolute positioned, I was able to get Chrome to see the
full height of the body and now the glass panel reacts correctly
according to this. I believe there is still an issue with the glass
panel though in GWT 2.0.3 though as it doesn't work out the correct
height under the conditions described.


On May 18, 9:56 am, ChrisK  wrote:
> I'm using GWT 2.0.3 and the latest dev Chrome (v6). I have a site with
> a piece of header HTML set to position:fixed but with the main body
> scrolling. The scroll bar is down the whole site, not just the body -
> the body scrolls underneath the header part. When I create a DialogBox
> with glassEnabled=true, if I scroll the base of the glass panel is
> exposed as the panel is not resized/redrawn correctly. The same code
> works fine in FF3.6, IE7 and IE8.
>
> Any ideas? I don't want to change the layout of the site at all. Is
> this just a GWT bug?
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Access ClientBundle ImageResource from UiBinder

2010-06-17 Thread CJ Bilkins
I've succeeded in getting sprites to work via uibinder though it
doesn't seem possible to get it to work how you'd like (or arguably at
all).

I looked high and low for a complete working example and couldn't find
one, so I'm going to try to be as verbose as possible in the hope that
you and future searchers can save hours of their life...

My .ui.xml file
==

http://dl.google.com/gwt/DTD/xhtml.ent";>






@sprite .hdrAlign {
gwt-image: "lbl_align";
}

@sprite .hdrWidth {
gwt-image: "lbl_width";
}







=== End ui.xml ===


MyResources.class
===

package com.sub;

import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;

public interface MyResources extends ClientBundle {
public static final MyResources INSTANCE =
GWT.create(MyResources.class);

/*
The @Source path has a huge gotcha... from what I can tell, the file
paths must exist in the location specified relative to this file, but
ALSO in the location relative to your .ui.xml

This was my problem.  I was storing my .ui.xml in a ./directory/ and
then this clientbundle in ./directory/sub/ along with the image
files.  The only way I could get it to work was to have the images
exist in both ./directory and ./directory/sub

I'm guessing you could avoid these dupe images by putting MyResources
in ./directory and then reference the images in ./directory/sub, but I
didn't test it.
*/
@Source("lbl_align.png")
ImageResource label_Align();

@Source("lbl_width.png")
ImageResource label_Width();
}

=== End MyResources.class ===

Things to consider:

After doing this the first time in Eclipse, I was getting errors about
my uibinder code.  Specifically, that dupe references to lbl_align
existed. (Even though they were called lbl_align and lbl_width.)It
took some playing with the code (just deleting parts and retyping
them, adding returns here and there above and below, before the errors
disappeared.  Note: I didn't actually change any code.)


As someone else noted (I believe in the linked post above), GWT seems
to use the field name to retrieve the image (which makes it just about
useless).  Trying to change:


To:


Results in an error that the resource could not be
found.. .. .. ... which means that your field="" needs to be the
name of the file (Use underscores and not hyphens in your filenames).
It seems that resource="" is completely ignored and I'm not sure what
the purpose of having a ClientBundle is.


When running in hosted mode, your background images will show up as
inline base64 encoded data and not as sprites.  The sprite assembling
seems to occur on build.


So far, my experiences with GWT have been that it makes my code more
complex, adds tons of extra time to development, and is buggy.  =]  I
would not recommend it to my enemies.  Maybe in a few years all this
will get sorted out.



On Jun 10, 1:27 pm, David Grant  wrote:
> The other solution which seems to work is that I can put
>
> @sprite .header {
>           gwt-image: 'myimage';
>      }
>
> in a css file and reference it as a CssResource in a ClientBundle...then it
> will look for an image resource called 'myimage' in that ClientBundle.
>
> it works but it just puts stuff in to the css file associated with my global
> theme that I would rather just keep local to my widget.
>
> Dave
>
>
>
> On Thu, Jun 10, 2010 at 9:41 AM, David Grant  wrote:
> > Has anyone succeeded in using @sprite  {gwt-image: ...} in a
> > uibinder file to access an image in a ClientBundle?
>
> > I've tried the following which Chris Ramsdale at Google claimed would 
> > workbut
> >  it doesn't:
>
> > 
> > 
> > 
> >     �...@sprite .header {
> >           gwt-image: 'myimage';
> >      }
> > 
>
> > I can't use  because I definitely can't put a hard-coded
> > path there because it needs change if the user changes themes. I'm grabbing
> > the ClientBundle from ThemeManager.res(). We need to be able to switch
> > themes, which involves switching the ClientBundle being used. I've tried
> > putting an expression in src= using curly braces to get the path dynamically
> > but that doesn't work.
>
> > The only alternative I can think of is to layout the UI in java code which
> > sucks.
>
> > Dave
>
> --
> David Granthttp://www.davidgrant.ca

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: History and server call.

2010-06-17 Thread Thomas Broyer


On 17 juin, 12:30, Ravi Sharma  wrote:
> Hi Thomas,
> I checked this 
> URLhttp://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html,
> for GWT 2.1 but didnt find much information about Activities. Is it
> explained somewhere else. Can you share such info/link so i can look
> into it dont reinvent everything. I am about to start implementing
> "switch view only when ready" pattern but if its present in 2.1 then i
> would love to use it instead of writing my own.

Ray Ryan gave an overview of activities in his I/O session about
"Architecting GWT applications for production at Google":
http://code.google.com/events/io/2010/sessions/architecting-production-gwt.html
Maybe you can find some details in the session's waves or other GWT-
related sessions.
And of course, have a look at the JavaDoc, for instance:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/app/place/Activity.html#start(com.google.gwt.app.place.Activity.Display)

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: History and server call.

2010-06-17 Thread Ravi Sharma
Hey guys,
I have been thinking about all this MVP architect(i am new to it) and
history management and show on ready pattern etc and came up with
following design/idea. Lets see if it will work and feel free to
comment on it.

1) Something happens on UI(Some User activity like mouse click,
keyboard press etc)
2) Raise an EVENT with required data from UI. something like
CLIENT_EVENT_% or VIEW_EVENT%(i.e.CLIENT_EVENT_PROFILE_LINK_CLICKED) ,
basically i want to have separate naming convention for all client/UI
events.
3) Presenters will be listening to these events. On Getting a event
presenter can do following things
   3.1) Create a history token and in history handler raise event to
get data from server SERVER_EVENT_GET_DATA (Optional, if you want to
keep history)
   3.2) or directly raise event (i.e.SERVER_EVENT_GET_DATA) to get
data from server. (If You don't want to keep history)
4) Different Data Handlers or Presenter it self will be listening to
these events SERVER_EVENT_% and make the server call.
5) once server call returns raise another event like DATA_MODEL_SUCCESS
%/DATA_MODEL_ERROR% with data/error returned by Server.
6) Presenter or View(I will prefer it to go to View, although it may
break classic MVP) will be listening to these events(DATA_MODEL%) and
will display the view/error accordingly.


Now if we want to use Client side cache in this flow then handlers of
events(at step 4) like SERVER_EVENT_GET_DATA / SERVER_EVENT_% can
first check in Cache, if found then raise the same
event(DATA_MODEL_SUCCESS%) as it will be raised by server returned
asyncallback functions.


So what we will achieve here.

Our server RPC call will stay independent of cache/view/presenter etc.
Our View stay independent of cache or server calls even independent of
presenter too.. I would make my view listen to events and show the
data.
Our Presenter dont need to know server call details, in case you are
planning to implement the separate data handlers which can use cache
as well as RPC.

Downside
1) For one user action i will be raising 3 Events like CLIENT_EVENT_%
and then SERVER_EVENT_% and then DATA_MODEL_SUCCESS%/DATA_MODEL_ERROR
%. So need to do lots of efficiency check, but good things is how many
clicks a user can click on an application on browser which is running
on atleast P4 machine, 1GHZ.
2) At some point you may forget that who is handling these events and
how the data is reaching from server to view etc, basically you wont
be able to just Ctrl + click to traverse the code tree in eclipse or
netbeans. Code reading may be bit difficult. If someone can write a
plugin for such code readability like Spring plugin then it will be
very nice.
3) One day you decide not to use cache, just remove it without
affecting any other code. Basically everything in pluggable/
unpluggable
4) One day you feel like creating same application for Mobile or new
web look create ur view again. This is what MVP gives.



Basically i am quite excited about using this new MVP archt. and
History and event bus(I Love Eventbus, it solves me lot of things and
long chains of async calls and also it gives me opportunity to make
client side calls asynch(i.e. if i find that data is present in cache
then i raise the event and view/presenter handler will be called in
async was as if server has returned)

happy coding guys.
Feel free to comment.


Thanks,
Ravi.














On Jun 17, 1:45 pm, Tristan Slominski 
wrote:
> here's an example i wrote that walks through place service, hope that helps
> with place service concepts. note that I got feedback that two types of
> place events that i implemented here are not necessary and that one would be
> sufficient, but i haven't had the time to refactor yet. it should however
> capture the essence of what a place service does. I too am waiting for 2.1
> to settle and see where Google wants to go with that, in the mean time this
> is a production system description:
>
> http://code.google.com/p/handlebars/wiki/PlaceServiceOverview
>
> 2010/6/17 Jaroslav Záruba 
>
>
>
> > I searched too but have found only this:
>
> >http://code.google.com/p/google-web-toolkit/source/browse/branches/2
> > It
> > seems to be missing in 2.1 m1 yet.
>
> > On Thu, Jun 17, 2010 at 12:30 PM, Ravi Sharma  wrote:
>
> >> Hi Thomas,
> >> I checked this URL
> >>http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html,
> >> for GWT 2.1 but didnt find much information about Activities. Is it
> >> explained somewhere else. Can you share such info/link so i can look
> >> into it dont reinvent everything. I am about to start implementing
> >> "switch view only when ready" pattern but if its present in 2.1 then i
> >> would love to use it instead of writing my own.
>
> >> Thanks,
> >> Ravi.
>
> >> On Jun 17, 10:59 am, Thomas Broyer  wrote:
> >> > On 16 juin, 15:31, Tristan  wrote:
>
> >> > > sounds like you're reinventing the place service, with event bu

Maven Module, Custom GWT Widget and RPC

2010-06-17 Thread Tim G
Hello all,

We are in the initial stages of implementing GWT into our current set
of web apps.  The goal is to develop a series of individual custom GWT
based widgets deployed to various apps as maven modules.

The basic structure of said projects would be as such:

  Parent (pom)
|
  Web (war)
  ||
   UI Elements (jars) -- Business/Backend logic (jar)

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT and CSS

2010-06-17 Thread Mohamed Cherb
Use addStyleName() method and use your own class to override the properties
declared by gwt-Button

2010/6/16 Magnus 

> Hi,
>
> I used CSS and setStyleName to style my widgets, until I found out
> that my widgets look less cool when I do that. I now understand that
> each widget has a GWT-style (e. g. ".gwt-Button") and that I overwrote
> this with my own style.
>
> So what is the way one should use CSS? Is it possible to "inherit" a
> style into another style, e. g. "my-button" inherits "gwt-Button", so
> that I just add my adjustments?
>
> Another question in this context: The MenuBar within the GWT widget
> gallery looks much cooler than mine. But I did not apply any styles at
> all. What's the reason for this?
>
> Magnus
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Using the addAndReplaceElement to add Widgets

2010-06-17 Thread Thiago Miranda de Oliveira
Hi.. Here in my company we've decided to adopt the GWT for a working
project but we are facing a huge barrier. Gwt has it's own widgets but
they won't be used for their HTML/CSS produced that is almost
impossible to "transform" in our design and HTML/CSS needs.
So we've decided to create our own Widgets using the Ui Binder. So
I've tried to do this:
panelSearch.ui.xml:




Search results

Busca:

Filtrar por 
data


ok
Adicionar projeto



  

And then I've created a Widget that extends the FormPanel and tried,
mapped it and tried to use the getWidgetContainer inside the
panelSearch.java to replace it with my class that extends the
FormPanel. It replaced well but I can't get the events ( like
submitHandler ). How can I do that? Is there a way?

Thanks for the attention
Cheers

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



jaas authentication in jetty

2010-06-17 Thread treyed
Hello, I am trying to use JAAS to authenticate my users.  My project
is in GWT v2, which runs jetty.  I use eclipse for development.

>From http://code.google.com/p/google-web-toolkit/issues/detail?id=4462
I found out that jetty doesn't like any realm definitions in web.xml,
so I moved them to jetty-web.xml.

I keep getting ClassNotFound exceptions so I followed the advice
here:  communitymapbuilder.org/display/JETTY/Problems+with+JAAS+in
+Jetty+6.0.0

However, I am still getting ClassNotFoundExceptionsHere in my jetty-
web.xml file.  How do I configure jetty to work jaas in GWT projects?

My jetty-web.xml file:




  -org.mortbay.jetty.plus.jaas.
  org.mortbay.jetty
  org.slf4j.

  




xyzrealm
xyz
/
WEB-INF/classes/jdbcRealm.properties




/login.jsp
/error.jsp






Error I am receiving:

[WARN] Failed startup of context
com.google.gwt.dev.shell.jetty.JettyLauncher
$webappcontextwithrel...@1fcef4f7{/,/home/dev/workspace/project/war}
java.lang.ClassNotFoundException:
org.mortbay.jetty.plus.jaas.JAASUserRealm
at java.lang.ClassLoader.findClass(ClassLoader.java:359)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:
352)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:
337)
at org.mortbay.util.Loader.loadClass(Loader.java:91)
at org.mortbay.xml.XmlConfiguration.nodeClass(XmlConfiguration.java:
216)
at org.mortbay.xml.XmlConfiguration.newObj(XmlConfiguration.java:564)
at org.mortbay.xml.XmlConfiguration.itemValue(XmlConfiguration.java:
907)
at org.mortbay.xml.XmlConfiguration.value(XmlConfiguration.java:829)
at org.mortbay.xml.XmlConfiguration.set(XmlConfiguration.java:278)
at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:
240)
at org.mortbay.xml.XmlConfiguration.get(XmlConfiguration.java:460)
at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:
246)
at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:
182)
at
org.mortbay.jetty.webapp.JettyWebXmlConfiguration.configureWebApp(JettyWebXmlConfiguration.java:
109)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
1217)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
513)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
448)
at com.google.gwt.dev.shell.jetty.JettyLauncher
$WebAppContextWithReload.doStart(JettyLauncher.java:447)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at
org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:
115)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
543)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
at com.google.gwt.dev.DevMode.main(DevMode.java:275)

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT

2010-06-17 Thread gourineni rakesh
Hi,
I m Rakesh. I m developing a GWT based eclipse project.The project is
about sensor web application for Buoys n i used google maps to display the
Buoy locations.For this the GWT i m using is 2.0.3, eclipse is 3.4 Ganemade
n Tomcat is 5.5.9. Recently I have upgraded the Sensor Web project from gwt
1.4.62 to 2.0.3. I m able to get the application in the web browser but i m
unable to update the database into PostgreSql {version is 8.2.}

 My *Web.xml* is shown below


http://java.sun.com/dtd/web-app_2_3.dtd";>




  
BuoyDataService

 edu.msstate.gri.server.BuoyDataServiceImpl
  



  
BuoyDataService
/buoyapplication/buoyDataService
  


  

  

BuoyApplication.html






And my *gwt.xml* file is given below



  
  

  
  
  
  
  
  
  
  
  
  
  
  

  

  
  

  
  






When I start my Tomcat I m getting the

 "End event threw exception" in startup window and following this another
error " Parse error in application web.xml"

Is there any error in my* web.xml file*.Plz help me

Thanks in advance,
Rakesh.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



trying to run bikeshed app and got error in Loading module 'com.google.gwt.core.XSLinker'

2010-06-17 Thread Otto
Hi,

I was playing around with GWT and learning it and found the bikeshed
source code.  I got it to compile but when I try to run it I get
errors.

As you can see it seems the root of my problem is in module XSLinker:

[TRACE] Loading inherited module 'com.google.gwt.user.User'
 - [TRACE] Loading inherited module 'com.google.gwt.core.Core'
- [TRACE] Loading inherited module 'com.google.gwt.core.XSLinker'
  - [ERROR] Line 22: Unexpected element 'when-linker-added'

Can anyone help me with this?

In case it's helpful, here is my full classpath and startup command (I
am using IntelliJ 9.0 with GWT plugin).

"C:\Program Files\Java\jdk1.6.0_18\bin\java"
-Xmx256m -Didea.launcher.port=7532 "
-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA
95.214\bin"
-Dfile.encoding=windows-1252
-classpath "
C:\tools\gwt-2.0.3\gwt-dev.jar;
C:\code\gwt\bikeshed\src;
C:\Program Files\Java\jdk1.6.0_18\jre\lib\alt-rt.jar;
C:\Program Files\Java\jdk1.6.0_18\jre\lib\charsets.jar;
C:\Program Files\Java\jdk1.6.0_18\jre\lib\deploy.jar;
C:\Program Files\Java\jdk1.6.0_18\jre\lib\javaws.jar;
C:\Program Files\Java\jdk1.6.0_18\jre\lib\jce.jar;
C:\Program Files\Java\jdk1.6.0_18\jre\lib\jsse.jar;
C:\Program Files\Java\jdk1.6.0_18\jre\lib\management-agent.jar;
C:\Program Files\Java\jdk1.6.0_18\jre\lib\plugin.jar;
C:\Program Files\Java\jdk1.6.0_18\jre\lib\resources.jar;
C:\Program Files\Java\jdk1.6.0_18\jre\lib\rt.jar;
C:\Program Files\Java\jdk1.6.0_18\jre\lib\ext\dnsns.jar;
C:\Program Files\Java\jdk1.6.0_18\jre\lib\ext\localedata.jar;
C:\Program Files\Java\jdk1.6.0_18\jre\lib\ext\sunjce_provider.jar;
C:\Program Files\Java\jdk1.6.0_18\jre\lib\ext\sunmscapi.jar;
C:\Program Files\Java\jdk1.6.0_18\jre\lib\ext\sunpkcs11.jar;
C:\code\gwt\bikeshed\out\production\Bikeshed;
C:\code\gwt\bikeshed\war\temp-libs\validation-api-1.0.0.GA-
sources.jar;
C:\code\gwt\bikeshed\war\temp-libs
\com.springsource.org.apache.log4j-1.2.15.jar;
C:\code\gwt\bikeshed\war\temp-libs\slf4j-api-1.5.11.jar;
C:\code\gwt\bikeshed\war\temp-libs\validation-api-1.0.0.GA.jar;
C:\code\gwt\bikeshed\war\temp-libs\hibernate-validator-4.0.2.GA.jar;
C:\code\gwt\bikeshed\war\temp-libs\slf4j-log4j12-1.5.11.jar;
C:\code\gwt\bikeshed\war\temp-libs\appengine-tools-api.jar;
C:\code\gwt\bikeshed\war\WEB-INF\lib;
C:\code\gwt\bikeshed\war\WEB-INF\lib\gwt-dev.jar;
C:\code\gwt\bikeshed\war\WEB-INF\lib\gwt-servlet.jar;
C:\code\gwt\bikeshed\war\WEB-INF\lib\gwt-user.jar;
C:\code\gwt\bikeshed\war\WEB-INF\lib\appengine-api-1.0-sdk-1.3.1.jar;
C:\code\gwt\bikeshed\war\WEB-INF\lib\appengine-jsr107cache-1.3.1.jar;
C:\code\gwt\bikeshed\war\WEB-INF\lib\appengine-api-labs-1.3.1.jar;
C:\code\gwt\bikeshed\war\WEB-INF\lib\geronimo-jpa_3.0_spec-1.1.1.jar;
C:\code\gwt\bikeshed\war\WEB-INF\lib\jdo2-api-2.3-eb.jar;
C:\code\gwt\bikeshed\war\WEB-INF\lib\geronimo-jta_1.1_spec-1.1.1.jar;
C:\code\gwt\bikeshed\war\WEB-INF\lib\jsr107cache-1.1.jar;
C:\code\gwt\bikeshed\war\WEB-INF\lib\datanucleus-core-1.1.5.jar;
C:\code\gwt\bikeshed\war\WEB-INF\lib\datanucleus-
appengine-1.0.5.final.jar;
C:\code\gwt\bikeshed\war\WEB-INF\lib\datanucleus-jpa-1.1.5.jar;
C:\tools\gwt-2.0.3\gwt-user.jar;
C:\Program Files\JetBrains\IntelliJ IDEA 95.214\lib\idea_rt.jar"
com.intellij.rt.execution.application.AppMain
com.google.gwt.dev.DevMode
-war "C:\Documents and Settings\wachtero\.IntelliJIdea90\system\gwt
\bikeshed.bikeshed4543e1b7\Bikeshed.a8b6db14\run\www"
-gen "C:\Documents and Settings\wachtero\.IntelliJIdea90\system\gwt
\bikeshed.bikeshed4543e1b7\Bikeshed.a8b6db14\run\gen"
-startupUrl Expenses.html com.google.gwt.sample.expenses.gwt.Expenses


Thank you!

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Regarding GWT 2.0.3

2010-06-17 Thread gourineni rakesh
Hi,
I m Rakesh. I m developing a GWT based eclipse project.The project is
about sensor web application for Buoys n i used google maps to display the
Buoy locations.For this the GWT i m using is 2.0.3, eclipse is 3.4 Ganemade
n Tomcat is 5.5.9. Recently I have upgraded the Sensor Web project from gwt
1.4.62 to 2.0.3. I m able to get the application in the web browser but i m
unable to update the database into PostgreSql {version is 8.2.}

 My *Web.xml* is shown below


http://java.sun.com/dtd/web-app_2_3.dtd";>




  
BuoyDataService

 edu.msstate.gri.server.BuoyDataServiceImpl
  



  
BuoyDataService
/buoyapplication/buoyDataService
  


  

  

BuoyApplication.html






And my *gwt.xml* file is given below



  
  

  
  
  
  
  
  
  
  
  
  
  
  

  

  
  

  
  






When I start my Tomcat I m getting the

 "End event threw exception" in startup window and following this another
error " Parse error in application web.xml"

Is there any error in my* web.xml file*.Plz help me

Thanks in advance,
Rakesh.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Inserting an external HTML/JSP Page in GWT

2010-06-17 Thread Gaurav Munjal
Is there an option that when the user clicks on one of the buttons in
gwt, in a seperate panel a html page ( kind of an iframe) is inserted
whose link will be specified by us.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



create table with the server response

2010-06-17 Thread Luan
I would like to create a table with the server response.

Example:

Sending a name and age to the server
and the answer should come within the DialogBox in table form.


name | age

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Image and setUrl()

2010-06-17 Thread ehab_refaat82
i wrote this code to view an image in Image widget.

String src = "file:///"+"file System Path";
  src = src.replaceAll("", "/");
  Image image = new Image();
  image.setUrl(src);



no images appears.

Note that: i want to view an image found on my computer file system.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Best way to Deserialize JSON String to Java Object

2010-06-17 Thread Jose Luis Estrella Campaña
Hello Folks !

I'm glad to say that I'm a brand new user of GWT, a very happy one by
the way. However, as any newcomer I have questions, One in particular.
Here it goes:

What's the easiest, most straight forward way to deserialize a JSON
String on the Server side and instance a Java Object from it ?

The JSON String will be sent from the client side, an implementation
of the RemoteService for example, and I intend to deserialize it on
the Server side, say inside the RemoteServiceServlet Implementation,
so I can instance a Java Object with the information contained in the
JSON string afterwards. Is there a way this last step automatically
with some GWT API ?

I would like to see some examples if it's possible.

Best Regards,

Sincerely,

Jose.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: MVP questions

2010-06-17 Thread Elmaho
Hey,

In my opinion you'll need only one presenter/view with interface
containing a method to request object2 in each tab selection. These
objects are too related to be separated.

Like I said 'In my opinion'
Hope this help

On Jun 16, 4:20 pm, Bilousme  wrote:
> Hello all,
>
> I need some help to check if my design I choose is correct.
> Imagine I have a data model like that :
>  - An object1 containing a list of many object2
>
> Imagine now I want that my screen displays info of object1 and the
> list of object2 inside a tabpanel. When you click on a tab, you
> display the info of the selected object2.
>
> What is the best way to implement that ?
> 1) only one couple of presenter/view for object1 and this couple
> manages the display of object2 in each tab
> 2) one presenter/view object for object1 and one presenter/view for
> each instance of object2 ?
>
> in other words, do I have one couple of presenter/view by object
> model ?

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT server side WebServiceException when service is offline

2010-06-17 Thread noosy
I have a RPC style GWT app that has some server side code which
contains references to a few different web services which it act as
clients to. What I noticed the other day is that when one of my web
services is offline it causes a javax.xml.ws.WebServiceException when
the server side code is invoked. Msg: Failed to access the WSDL at:
http:mywsdl?WSDL Caused by: java.net.ConnectException: Connection
timed out: connect.

So having one web service offline brings down my entire app :(

I think the line that causes this is the following annotation/
declaration:

@WebServiceRef(wsdlLocation = "WEB-INF/wsdl/myWsdl.wsdl")
private MyWSDLService myService;

Is this to be exected? How can I gracefully handle services being
offline? I can't rely on these 3rd party services to always be online
and available.

Advice is appreciated. 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Web server magic?

2010-06-17 Thread Matt
When I run a GWT application in eclipse, what is serving the web
page?  I haven't installed a web server, yet something is answering
requests on port  when I run the application through eclipse. Does
the eclipse plugin include a web server?

I'm having problems loading pages now... says:

HTTP ERROR: 503

Problem accessing /. Reason:

SERVICE_UNAVAILABLE
Powered by Jetty://


So I guess Jetty is running somehow... but I don't know how to fix
this problem since everything is magic and hidden from me.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Module Failure of Development mode

2010-06-17 Thread wwl
I have a problem. you can first see here

http://code.google.com/intl/de-DE/webtoolkit/gettingstarted.html#running

I tried to give this command "ant devmode" ,but I get the following
error in my shell:

Port 127.0.0.1: is already is use; you probably still have another
session active

and in the development mode window you can see the  Module Failure
instead of URL

how can I solve this Problem.
thanks very much

wwl

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Am I breaking MVP, (VIEW IS PASSIVE) !!?

2010-06-17 Thread Elmaho
Hey all,

I've read some articles on MVP pattern, and at the first glance I
thought
that am understanding it, but now am very confused  about the term
VIEW IS PASSIVE. By that I understand that events are handled in the
presenter (it's too simple to separate and it's also obvious).

But what causes me headaches, is some logics like the code below. In
my application I would like to be as close as I can to the techniques
and aspects described in (Google I/O 2009 - Google Web Toolkit
Architecture: Best Practices For Architecting Your GWT App Ray Ryan
http://www.youtube.com/watch?v=PDuhR18-EdM )

In my app I get a simple logic to implement, here is a specification:

The user wants to create an html document, for that he must chose a
template to use. This template is divided to blocks ex: (image, text,
list OR list, text, image OR ...), this list (blocks) is provided by
the server and each block contains a value to set before he'll get
back to the server. Also each block could be mandatory.

 Presenter 

//...

List blocks = null;
//Each block must get a reference to its value handler (for quick
access)
Map values = new HasMap();

public interface Display extends WidgetPresenter.Display{

//
//HasValue contains only one methode
//String getValue()
//
public HasValue addTextBlock(String text);
public HasValue addListBlock(Map listItems, boolean
isMandatory);
public HasValue addImageBlock(String url, String anonymousUrl);

//the click on this button sets the new values in the blocks
public HasClickHandler getValidationButton();
}

protected void onBind(){

blocks = serviceImpl.getBlocks();
HasValue valeuHandler = null;

for(BlockModel block:blocks){
if(block.getType().equals("text"))
valeuHandler = display.addTextBlock(block.getText());
else if(block.getType().equals("image"))
valeuHandler =  display.addImageBlock(block.getUrl());
else if(block.getType().equals("list"))
valeuHandler =  
display.addListBlock(block.getListValue());

values.put(block, valeuHandler);
}

display.getValidationButton().addClickHandler( new ClickHandler(){

public void onClick(ClickEvent event){
for(BlockModel block:blocks){

HasValue value  = values.get(block);
block.setValue(value.getValue());

//send it to the server
//...
}
}
});
}

//
//...


 View **

//
//...

@Override
public HasValue addListBlock(Map data, boolean
isMandatory){
ListBox list = new ListBox()

if(!isMandatory){
list.addItem("choose ...", "-1");
}

for(Map.Entry entry:data.entrySet()){
list.addItem(entry.getValue(), entry.getKey());
}

container.add(list);

return new HasValue(){
String value = list.getValue(list.getSelectedIndex());
//# START
return value.equals("-1") ? null : value;
//# END
};
}

// this should be enough to show you what's could be wrong
//.



IS THE LINE ENCLOSED BY //# IN THE VIEW BREAKS THE MVP PATTERN ??
THE VIEW IS NO LONGER PASSIVE ?
or it should be moved to the presenter and we return the raw value
from the view !!

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Acentos en gwt

2010-06-17 Thread seba
Hola, estoy haciendo un trabajo y tengo el mismo problema...los labels
que poseen palabras acentuadas se visualizan mal. Agradezco su ayuda

seba

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Custom GWT Widget and RPC

2010-06-17 Thread Tim G
Can you make a RPC call from a custom GWT widget (i.e. a Search Box
widget) which then can be packaged as a jar and added to another
projects build path?

For example:

I have a custom widget that is comprised of a textbox, button and a
popup panel.  What I want it to do is on the click event, make a call
to my server code, populate an list of result objects,send the list
back to the widget and populate the Popup box with data from the
list.  The goal is to reuse this widget in multiple internal web apps
we develop.

The problem I am having is configuring the servlet path in the web.xml
file for the specific we apps which is leading me to believe that this
can not do want I want it to do.

The GWT module that is inheriting the custom widget:

com.foo.web.Home

The GWT module that contains the custom widget:

   com.foo.widget.search.SearchBox

Currently, what I have populated in web.xml from com.foo.web.Home:


seachBox

com.foo.widget.search.server.SearchBoxServiceImpl


seachBox

/com.foo.widget.search.SearchBox/search


I have added @RemoteServiceRelativePath("search") to
com.foo.widget.search.client.SearchBoxService

Jetty throws the following warnings when I attempt to run the app in
dev mode:

00:00:00.000 [WARN] EXCEPTION
java.lang.ClassNotFoundException:
com.foo.widget.search.server.SearchBoxServiceImpl

00:00:00.000 [WARN] failed seachBox
javax.servlet.UnavailableException:
com.foo.widget.search.server.SearchBoxServiceImpl

00:00:00.093 [WARN] Failed startup of context
com.google.gwt.dev.shell.jetty.JettyLauncher
$webappcontextwithrel...@1b5a5cf{/,C:\web-app\main\web\war}
javax.servlet.UnavailableException:
com.foo.widget.search.server.SearchBoxServiceImpl

When I launch the app in Chrome, I get a 503 error.

Any insight will be much 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Problem with RequestBuilder

2010-06-17 Thread alian rea
Hallo guys, i'm new of this group.
I'm new developer for GWT 2.0 and SmartGWT.
I've a problem with RequestBuilder. There are one frontend and one
backend. The first is an java GWT application, the second is a PHP
scripts, and they speak with JSON. Now The first application is in
port  and the backend is in port 88, in the identical domain, and
the rule of SOP forbid the comunication, with the onsuccess method of
Request callback. The statuscode is 0, and the getText() is "".
How can i do?
Help please thank you.

Andrea

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Safari 5 on Mac crashes interacting with plugin

2010-06-17 Thread Tinny
My GWT application which has been running happily now for a year is
now broken.  The symptom:  Safari 5 reports that it has quit
unexpectedly while using the Aspera Web plugin (a third-party plugin
that my app uses for allowing file uploads and downloads).  This issue
is 100% repeatable.

GWT version is 2.0.3.  IE, Firefox, and Safari 4 have been and are
still operating correctly with my GWT application.

I have determined that the cause of this Safari 5 crash is the
interaction with the Aspera plugin within an AsyncCallback.  For
example, there is a native method defined:

  private static native void uploadToURL(final String sourcePath,
final String destinationURL)
  /*-{
$doc.getElementById('aspera-web').startUploadToURL(sourcePath,
destinationURL);
  }-*/;

...which fetches the 'aspera-web' plugin Object defined in the html
file.  It then calls a method on that plugin, passing in a couple of
Strings.

Now, if this native method is called within an AsyncCallback, Safari 5
will crash.  For example:

greetingService.greetServer(textToServer, new
AsyncCallback() {
  @Override
  public void onFailure(final Throwable caught) {
// ... deal with failure
  }

  @Override
  public void onSuccess(final String result) {
uploadToURL("DummyFile", "fasp://aspera...@dummyserver/
Test?v=2&auth=yes");
  }
});

The uploadToURL call will trigger Safari 5 to crash.  The parameters
are unimportant at this point - they can be empty Strings if you like.

Now, if the uploadToURL call is made anywhere outside of an
AsyncCallback, the call then succeeds on Safari 5.  The crash is only
experienced when uploadToURL is called as part of the callback.  So,
for example, if you create a GWT Button, and for the click event call
uploadToURL, the call will succeed.

Interestingly, other interactions with the plugin in Safari 5 work.
For instance, another native method:

  private static native String queryVersion()
  /*-{
return $doc.getElementById('aspera-web').queryVersion();
  }-*/;

... will query the version of the installed Aspera Connect plugin.
This queryVersion() method may be called anywhere in the code,
including an AsyncCallback handler, and will succeed.  The
significance here may be that this call passes no parameters to the
plugin.

I have posted a zipp'd Eclipse project that just modifies the basic
'greetingService' to show this example in action.  Download link:
http://rapidshare.com/files/399840688/Aspera-test_eclipse_project.zip.html

So the question is:  What's happened in Safari 5?  Here is a relevant
extract from the Apple Problem Report for Safari 5:

Process: Safari [3952]
Path:/Applications/Safari.app/Contents/MacOS/Safari
Identifier:  com.apple.Safari
Version: 5.0 (6533.16)
Build Info:  WebBrowser-75331600~5
Code Type:   X86-64 (Native)
Parent Process:  launchd [98]

PlugIn Path:   /Library/Internet Plug-Ins/Aspera Web.webplugin/
Contents/MacOS/Aspera Web
PlugIn Identifier: com.asperasoft.AsperaWeb
PlugIn Version:??? (1.1)

Date/Time:   2010-06-17 10:32:54.613 +1000
OS Version:  Mac OS X 10.6.4 (10F569)
Report Version:  6

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x, 0x
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Application Specific Information:
abort() called

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib   0x7fff81ed43d6 __kill + 10
1   libSystem.B.dylib   0x7fff81f74972 abort + 83
2   libstdc++.6.dylib   0x7fff814325d2 __tcf_0 + 0
3   libobjc.A.dylib 0x7fff86f45d3d _objc_terminate
+ 120
4   libstdc++.6.dylib   0x7fff81430ae1
__cxxabiv1::__terminate(void (*)()) + 11
5   libstdc++.6.dylib   0x7fff81430b16
__cxxabiv1::__unexpected(void (*)()) + 0
6   libstdc++.6.dylib   0x7fff81430bfc
__gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*) + 0
7   libstdc++.6.dylib   0x7fff813ecad4
std::__throw_logic_error(char const*) + 127
8   libstdc++.6.dylib   0x7fff8141816d char*
std::string::_S_construct(char const*, char const*,
std::allocator const&, std::forward_iterator_tag) + 53
9   libstdc++.6.dylib   0x7fff8141855f
std::basic_string, std::allocator
>::basic_string(char const*, std::allocator const&) + 67
10  com.asperasoft.AsperaWeb0x00011be3b2a3 -[AWPlugInView
startUpload:toURL:] + 103
11  com.apple.CoreFoundation0x7fff80a4ad2c __invoking___ +
140
12  com.apple.CoreFoundation0x7fff80a4abfd -[NSInvocation
invoke] + 141
13  com.apple.WebCore   0x7fff84879ef3
JSC::Bindings::ObjcInstance::invokeObjcMethod(JSC::ExecState*,
JSC::Bindings::ObjcMethod*, JSC::ArgList const&) + 787


Appreciate any assistan

Am I breaking MVP, (VIEW IS PASSIVE) !!?

2010-06-17 Thread Elmaho
Hey all,

I've read some articles on MVP pattern, and at the first glance I
thought
that am understanding it, but now am very confused  about the term
VIEW IS PASSIVE. By that I understand that events are handled in the
presenter (it's too simple to separate and it's also obvious).

But what causes me headaches, is some logics like the code below. In
my application I would like to be as close as I can to the techniques
and aspects described in (Google I/O 2009 - Google Web Toolkit
Architecture: Best Practices For Architecting Your GWT App Ray Ryan
http://www.youtube.com/watch?v=PDuhR18-EdM )

In my app I get a simple logic to implement, here is a specification:

The user wants to create an html document, for that he must chose a
template to use. This template is divided to blocks ex: (image, text,
list OR list, text, image OR ...), this list (blocks) is provided by
the server and each block contains a value to set before he'll get
back to the server. Also each block could be mandatory.

 Presenter 

//...

List blocks = null;
//Each block must get a reference to its value handler (for quick
access)
Map values = new HasMap();

public interface Display extends WidgetPresenter.Display{

//
//HasValue contains only one methode
//String getValue()
//
public HasValue addTextBlock(String text);
public HasValue addListBlock(Map listItems, boolean
isMandatory);
public HasValue addImageBlock(String url, String anonymousUrl);

//the click on this button sets the new values in the blocks
public HasClickHandler getValidationButton();
}

protected void onBind(){

blocks = serviceImpl.getBlocks();
HasValue valeuHandler = null;

for(BlockModel block:blocks){
if(block.getType().equals("text"))
valeuHandler = display.addTextBlock(block.getText());
else if(block.getType().equals("image"))
valeuHandler =  display.addImageBlock(block.getUrl());
else if(block.getType().equals("list"))
valeuHandler =  
display.addListBlock(block.getListValue());

values.put(block, valeuHandler);
}

display.getValidationButton().addClickHandler( new ClickHandler(){

public void onClick(ClickEvent event){
for(BlockModel block:blocks){

HasValue value  = values.get(block);
block.setValue(value.getValue());

//send it to the server
//...
}
}
});
}

//
//...


 View **

//
//...

@Override
public HasValue addListBlock(Map data, boolean
isMandatory){
ListBox list = new ListBox()

if(!isMandatory){
list.addItem("choose ...", "-1");
}

for(Map.Entry entry:data.entrySet()){
list.addItem(entry.getValue(), entry.getKey());
}

container.add(list);

return new HasValue(){
String value = list.getValue(list.getSelectedIndex());
//# START
return value.equals("-1") ? null : value;
//# END
};
}

// this should be enough to show you what's could be wrong
//.



IS THE LINE ENCLOSED BY //# IN THE VIEW BREAKS THE MVP PATTERN ??
THE VIEW IS NO LONGER PASSIVE ?
or it should be moved to the presenter and we return the raw value
from the view !!

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Serialization of Inner/Nested Class

2010-06-17 Thread chris
I am getting the ..gwt.client.rpc.SerializationException: Type
'org.impressions.client.view.component.Header$Model' was not included
in the set of types which can be serialized by this
SerializationPolicy..

I am trying to serizlialize a simple inner/nested class which works on
server side but returning the object to the client is giving me this
error. The annotation is for objectify on the back end.

Does GWT support serizialization of a static netsted class?? I have
looked for quite a while but have not found the answer.

public class Header extends ComponentWidget {

  public static class Model implements Serializable {
@Id
private Long Id;

public String title;
public String subtitle;

public String getTitle() {
  return title;
}

public String getSubtitle() {
  return subtitle;
}

public void setSubtitle(String subtitle) {
  this.subtitle = subtitle;
}

public void setTitle(String title) {
  this.title = title;
}
  }
..



Thank you for taking the time to read this,
Chris

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



css loading

2010-06-17 Thread Mohammad
My requirement is to support multiple themes. For achieving that need
to change the .css file and images at runtime. Can anyone help me out,
How to support multiple theme mechanism.

Regards
Zubair

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Invoke SOAP Web Service from GWT on the server side.

2010-06-17 Thread AgitoM
For a big GWT project I am working on, we need to to retrieve data
from other computer systems. Based on my previous experience, a good
way to integrate these two systems, is to integrate them together
using a SOAP based Web Service.

Preferably I would like to server side of my GWT project to invoke the
Web Service of the other system, and retrieve some data which is then
send back to the client using GWT's normal RPC methods.

I've tried creating such a integration using AXIS2 in Eclipse. This
however does not seem to work well. Therefore I would like to ask if
anyone knows what is the way Google prefers for GWT projects to make
Web Service calls?

I've tried  Googling for solutions for a significant amount of time,
but couldn't find much.
Anyone have any idea?

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: PushButton in UiBinder

2010-06-17 Thread david


On Jun 14, 1:26 pm, David Grant  wrote:
> Anyone know how to put a PushButton in to a ui.xml file and set the up/down
> text or up/down image?
>
> Dave

Use a @uihandler annoration in the java class to
change the button text . You may also want
to apply a style to changed the button to look as if it is
pressed.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Calling RSS service in GWT from the server side

2010-06-17 Thread AgitoM
Over the past few days I have been working on a small GWT based
application which retrieves and displays Weather information from
YAHOO RSS in real time.

To get information from the YAHOO RSS feed, I am using the HttpClient
from the org.apache.commons library.
Using this library I attempt to make a call to the RSS feed on the
server side of the GWT application I am building.

The application I have written works fine while run in debug mode
using Eclipse. However when the application is compiled and deployed
on Apache Tomcat 6, it doesn't work anymore. The application simply
makes no call to YAHOO. Evenmore, it seems nothing is happening at all
on the server side of the application. I can't be more specific about
what goes wrong becaue no error is given. I've checked the Apache
Tomcat 6 logs, and no error or any system out information is present
in the logs. The client side GUI loads properly, but as I said,
nothing seems to happen on the server side.

Being completely clueless about what causes this problem, and having
no error feedback to go on. I decided to post the problem here, hoping
someone may know the cause of this.

This is the relevant part of my server sides source code:

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Iterator;

import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.httpclient.methods.GetMethod;

public Weather getWeatherInSingapore() {
System.out.println("Server Reached");

String request = "http://weather.yahooapis.com/forecastrss?
w=1062617&u=c";

Weather weatherReport = new Weather();

HttpClient client = new HttpClient();
GetMethod method = new GetMethod(request);

try {
// Send GET request
int statusCode = client.executeMethod(method);

if (statusCode != HttpStatus.SC_OK) {
System.out.println("Method failed: " + 
method.getStatusLine());
}
InputStream rstream = null;

// Get the response body
rstream = method.getResponseBodyAsStream();

// Process the response from Yahoo! Web Services
BufferedReader br = new BufferedReader(new 
InputStreamReader(
rstream));

String xml = "";
String line;
while ((line = br.readLine()) != null) {
xml = xml + line;
}
br.close();

weatherReport = this.convertYAHOOWeather(xml);
} catch (IOException e) {
System.out.println("Error");
e.printStackTrace();
}

return weatherReport;
}

Note:
WeatherReport is a custom object I've written myself to contain the
necessary Information
The convertYAHOOWeather is a private function that parses the XML
reply form the YAHOO RSS.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



jaas authentication in jetty, jetty.plus not included?

2010-06-17 Thread treyed
I sent a similar message to this earlier but it doesn't seem to have
shown up;

Anyway, I am trying to configure JAAS authentication in jetty as
follows in web-jetty.xml, but I keep getting a classnotfound exception
for org.mortbay.jetty.plus.jaas.JAASUserRealm.  Even trying to import
this class in eclipse doesn't work.  Does the version of jetty bundled
with GWT lack this class?  I am using version 2.0

Thank you;


web-jetty.xml:




  -org.mortbay.jetty.plus.jaas.
  org.mortbay.jetty
  org.slf4j.

  




xyzrealm
xyz
/WEB-INF/classes/jdbcRealm.properties




/login.jsp
/error.jsp




-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Safari 5 on Mac crashes interacting with plugin

2010-06-17 Thread Chris Conroy
On Wed, Jun 16, 2010 at 8:49 PM, Tinny  wrote:
> My GWT application which has been running happily now for a year is
> now broken.  The symptom:  Safari 5 reports that it has quit
> unexpectedly while using the Aspera Web plugin (a third-party plugin
> that my app uses for allowing file uploads and downloads).  This issue
> is 100% repeatable.
>
> GWT version is 2.0.3.  IE, Firefox, and Safari 4 have been and are
> still operating correctly with my GWT application.
>
> I have determined that the cause of this Safari 5 crash is the
> interaction with the Aspera plugin within an AsyncCallback.  For
> example, there is a native method defined:
>
>  private static native void uploadToURL(final String sourcePath,
> final String destinationURL)
>  /*-{
>    $doc.getElementById('aspera-web').startUploadToURL(sourcePath,
> destinationURL);
>  }-*/;
>
> ...which fetches the 'aspera-web' plugin Object defined in the html
> file.  It then calls a method on that plugin, passing in a couple of
> Strings.
>
> Now, if this native method is called within an AsyncCallback, Safari 5
> will crash.  For example:
>
>        greetingService.greetServer(textToServer, new
> AsyncCallback() {
>         �...@override
>          public void onFailure(final Throwable caught) {
>            // ... deal with failure
>          }
>
>         �...@override
>          public void onSuccess(final String result) {
>            uploadToURL("DummyFile", "fasp://aspera...@dummyserver/
> Test?v=2&auth=yes");
>          }
>        });
>
> The uploadToURL call will trigger Safari 5 to crash.  The parameters
> are unimportant at this point - they can be empty Strings if you like.
>
> Now, if the uploadToURL call is made anywhere outside of an
> AsyncCallback, the call then succeeds on Safari 5.  The crash is only
> experienced when uploadToURL is called as part of the callback.  So,
> for example, if you create a GWT Button, and for the click event call
> uploadToURL, the call will succeed.
>
> Interestingly, other interactions with the plugin in Safari 5 work.
> For instance, another native method:
>
>  private static native String queryVersion()
>  /*-{
>    return $doc.getElementById('aspera-web').queryVersion();
>  }-*/;
>
> ... will query the version of the installed Aspera Connect plugin.
> This queryVersion() method may be called anywhere in the code,
> including an AsyncCallback handler, and will succeed.  The
> significance here may be that this call passes no parameters to the
> plugin.
>
> I have posted a zipp'd Eclipse project that just modifies the basic
> 'greetingService' to show this example in action.  Download link:
> http://rapidshare.com/files/399840688/Aspera-test_eclipse_project.zip.html
>
> So the question is:  What's happened in Safari 5?  Here is a relevant
> extract from the Apple Problem Report for Safari 5:
>
> Process:         Safari [3952]
> Path:            /Applications/Safari.app/Contents/MacOS/Safari
> Identifier:      com.apple.Safari
> Version:         5.0 (6533.16)
> Build Info:      WebBrowser-75331600~5
> Code Type:       X86-64 (Native)
> Parent Process:  launchd [98]
>
> PlugIn Path:       /Library/Internet Plug-Ins/Aspera Web.webplugin/
> Contents/MacOS/Aspera Web
> PlugIn Identifier: com.asperasoft.AsperaWeb
> PlugIn Version:    ??? (1.1)
>
> Date/Time:       2010-06-17 10:32:54.613 +1000
> OS Version:      Mac OS X 10.6.4 (10F569)
> Report Version:  6
>
> Exception Type:  EXC_CRASH (SIGABRT)
> Exception Codes: 0x, 0x
> Crashed Thread:  0  Dispatch queue: com.apple.main-thread
>
> Application Specific Information:
> abort() called
>
> Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
> 0   libSystem.B.dylib                   0x7fff81ed43d6 __kill + 10
> 1   libSystem.B.dylib                   0x7fff81f74972 abort + 83
> 2   libstdc++.6.dylib                   0x7fff814325d2 __tcf_0 + 0
> 3   libobjc.A.dylib                     0x7fff86f45d3d _objc_terminate
> + 120
> 4   libstdc++.6.dylib                   0x7fff81430ae1
> __cxxabiv1::__terminate(void (*)()) + 11
> 5   libstdc++.6.dylib                   0x7fff81430b16
> __cxxabiv1::__unexpected(void (*)()) + 0
> 6   libstdc++.6.dylib                   0x7fff81430bfc
> __gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*) + 0
> 7   libstdc++.6.dylib                   0x7fff813ecad4
> std::__throw_logic_error(char const*) + 127
> 8   libstdc++.6.dylib                   0x7fff8141816d char*
> std::string::_S_construct(char const*, char const*,
> std::allocator const&, std::forward_iterator_tag) + 53
> 9   libstdc++.6.dylib                   0x7fff8141855f
> std::basic_string, std::allocator
>>::basic_string(char const*, std::allocator const&) + 67
> 10  com.asperasoft.AsperaWeb            0x00011be3b2a3 -[AWPlugInView
> startUpload:toURL:] + 103
> 11  com.apple.CoreFoundation            0x7fff80a4ad2c __invoking___ +
> 140
> 12  com.apple.CoreFoundation        

enable/disable widgets?

2010-06-17 Thread Magnus
Hi,

how can I enable/disable a widget (TextBox, Button, etc.)?

I would like to iterate all Widgets of a form and set this status. I
found no appropriate methods in the Widget class...

Magnus

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Does a private variable in Java stays private when compiled to javascript?

2010-06-17 Thread Stefan Bachert
Hi,

probably not, I am quite sure that there is a way using (native)
JavaScript.

However, as long you only code in Java effectively it is private.
And remember, even in Java it is possible to access private var from
outside.
Some OR-mapper doing so. Or your debugger.

When your question is about security, never ever dream about that
anything is secure in your browser code.
Anything you give to a browser is open, at least for a professional.

Stefan Bachert
http://gwtworld.de



On Jun 16, 11:23 am, Shedokan  wrote:
> Hello,
> I am looking at GWT's features and can't figure out weather a variable
> declared in java as private will stay private once compiled in GWT.
> By private I mean unaccessible to anyone except for the constructor or
> the construtors functions.
>
> 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Regarding GWT 2.0.3

2010-06-17 Thread Andrés Cerezo
Try to open it with the xml editor of eclipse (design view) perhaps It has
an erroneus character (space, etc) and you can`t see it.

2010/6/16 gourineni rakesh 

> Hi,
> I m Rakesh. I m developing a GWT based eclipse project.The project is
> about sensor web application for Buoys n i used google maps to display the
> Buoy locations.For this the GWT i m using is 2.0.3, eclipse is 3.4 Ganemade
> n Tomcat is 5.5.9. Recently I have upgraded the Sensor Web project from gwt
> 1.4.62 to 2.0.3. I m able to get the application in the web browser but i m
> unable to update the database into PostgreSql {version is 8.2.}
>
>  My *Web.xml* is shown below
>
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> 
>
>
>   
> BuoyDataService
>
>  edu.msstate.gri.server.BuoyDataServiceImpl
>   
>
>
>
>   
> BuoyDataService
> /buoyapplication/buoyDataService
>   
>
>
>   
>
>   
>
> BuoyApplication.html
>
> 
>
> 
>
>
> And my *gwt.xml* file is given below
>
> 
> 
>   
>   
>
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>
>   
>
>   
>   
>
>   
>   
>
>
> 
>
>
>
> When I start my Tomcat I m getting the
>
>  "End event threw exception" in startup window and following this another
> error " Parse error in application web.xml"
>
> Is there any error in my* web.xml file*.Plz help me
>
> Thanks in advance,
> Rakesh.
>
>
>
>  --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to enable scrolling for app using DecoratedTabPanel?

2010-06-17 Thread Stefan Bachert
Hi Ingo,

from user point of view neither of your mentiones widget should scroll
at all.

RootLayoutPanel
 \_ DockLayoutPanel (TabLayout class)
  \_ DecoratedTabPanel (TabCenterView class)

 \_ScrollPanel
  \_Content A
 \_ScrollPanel
  \_Content B
 \_ScrollPanel
  \_Content C

The content page of a tab should be able to scroll.
Just put a scrollPanel in between.

Stefan Bachert
http://gwtworld.de

On Jun 16, 9:12 am, ingo  wrote:
> hello everyone,
>
> i am using the DecoratedTabPanel to split my application into several
> modules (http://honeyyycrm.appspot.com). however, i have currently no
> scrolling at all (in no browser). i read about this in the mailing
> list and it seems like a lot of developers have issues with this
> (especially when they use TabPanels). i experimented with the
> suggestions but i did not yet find a working solution. is there any
> point in the documentation describing what to do to enable scrolling
> when using TabPanels?
>
> this is the widget that is inserted into the 
> RootLayoutPanel:http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/cl...
> it contains a docklayoutpanel and inserts an instance of TabCenterView
> into 
> itself:http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/cl...
>
> RootLayoutPanel
>  \_ DockLayoutPanel (TabLayout class)
>   \_ DecoratedTabPanel (TabCenterView class)
>
> this is the current hierarchy. now which steps are neccessary to
> enable proper scrolling for the app?
>
> regards,
> ingo

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Web server magic?

2010-06-17 Thread fmod
Yes, GWT comes with an embedded server, for testing your apps. If you
open the Run Configurations dialog from eclipse it will uncover part
of this magic.
About that error, what are you trying to do? Maybe reloading the web
services (there is a refresh button in the dev mode view), or re-run
the app can fix it.

On Jun 15, 5:52 pm, Matt  wrote:
> When I run a GWT application in eclipse, what is serving the web
> page?  I haven't installed a web server, yet something is answering
> requests on port  when I run the application through eclipse. Does
> the eclipse plugin include a web server?
>
> I'm having problems loading pages now... says:
>
> HTTP ERROR: 503
>
> Problem accessing /. Reason:
>
>     SERVICE_UNAVAILABLE
> Powered by Jetty://
>
> So I guess Jetty is running somehow... but I don't know how to fix
> this problem since everything is magic and hidden from me.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Web server magic?

2010-06-17 Thread treyed
> So I guess Jetty is running somehow... but I don't know how to fix
> this problem since everything is magic and hidden from me.

Yes, GWT comes embedded with jetty for a webserver.

Have you tried to run the sample project that comes GWT?  If not, you
should start there.  Install the google eclipse plugin, and then, in
eclipse, use the new project wizard to make a Google Application
Project.  This will create a properly configured project that you can
run right away and start exploring.

Good luck

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Pass a Java Object between to Opener Window

2010-06-17 Thread Stefan Bachert
Hi,

you may run into browser incompatibilities and security issues with
such an approach.

Did you consider to pass the object via the url. Maybe as query part?

Stefan Bachert
http://gwtworld.de

On Jun 16, 7:21 pm, keyvez  wrote:
> Hi,
>
> I am trying to pass a custom Java object to the another window to
> which I have a reference using $wnd.opener.
>
> When I call $wnd.opener.callback(); or $wnd.opener.callback('string'),
> it works, however, when I pass
> $wnd.opener.callback(@com.package.Class::staticField), the staticField
> is received as null by callback.
>
> Here's my code:
>
> Main Window:
>
> -
>     public native void registerCallback() /*-{
>         $wnd.callback =
> $entry(@com.application.web.client.Tv::javaCallback(Lcom/application/
> web/model/User;));
>     }-*/;
>
>     public static void javaCallback( User registeredUser ) {
>
>         Window.alert(Boolean.toString(registeredUser == null));
>         Window.alert(user.getFirstname());
>
>     }
> -
> Child Window:
> -
>      Window.addWindowClosingHandler(new ClosingHandler() {
>
>             @Override
>             public native void onWindowClosing( ClosingEvent event ) /
> *-{
>                if($wnd.opener != null) {
>                     alert('sending request');
>                     var obj =
> @com.application.web.authentication.OAuth::registeredUser;
>                     $wnd.opener.callback(obj);
>                }
>             }-*/;
>       });
> -
>
> Any help is appreciated.
>
> 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Acentos en gwt

2010-06-17 Thread fmod
Supongo que el problema viene que estarás guardando los documento en
un charset distinto al especificado en la página html.


Puedes probar ese encoding a lo que estes usando, o si estas usando
eclipse prueba de ir a preferencias / general / workspace y cambiar el
encoding
a UTF-8.

On Jun 15, 5:41 pm, seba  wrote:
> Hola, estoy haciendo un trabajo y tengo el mismo problema...los labels
> que poseen palabras acentuadas se visualizan mal. Agradezco su ayuda
>
> seba

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT or SmartGWT and Oracle - Stored procedures

2010-06-17 Thread ckendrick
Be sure to compare the cost of the product to the value of your time
spent re-creating the same functionality, maintaining it, and missing
out on all features we keep adding to the SQL subsystem.  As well as
not finishing your project as soon, slipping deadlines etc.  As well
as delivering a weaker final application because you spent time re-
creating features of Pro/Power.  In most cases, for a professional
developer, the license cost is very low compared to all of these
costs.

However if you still need to find a way to cut corners, just use Pro,
priced at $745.  It's true, you miss out on the extremely powerful SQL
templating feature, but you can write a small amount of JDBC code as a
DMI for the cases where you want to call a stored procedure, and
you'll still have all the standard CRUD operations, automatic server
validation, queuing, exports, and other features of Pro.

On Jun 17, 6:21 am, kensai yanesha  wrote:
> Well, I went trough many tutorials and howtos on internet. The one was
> amazing and it solved all my needs.DataSourcedefinition is in XML
> and I can execute CRUD operations using storedc procedures on the
> database side. I am talking about project SmartClient. One can 
> defineDataSourceusing this way:
>
>          dbName="mydb"
>         tableName="mytbl"
>         ID="myDS"
>         dataSourceVersion="1"
>         generatedBy="SC_SNAPSHOT-2009-12-17/EVAL Deployment 2009-12-17"
>         serverType="sql"
>
>         
>                 
>                 
>         
>
>         
>                  allowMultiUpdate="true">
>                         call 
> spUpdateWSSWatchSources($values._watchID,
> $wssSourceIDs)
>                 
>         
> 
>
> This is very easy to write, but licence for one developer could be
> very expensive, I think about almost 2000 dolars for the Power version
> which supports the SQL templating, exactly putting into the XML
> definiton of thedatasourceelement 
>
> I can forget buying this for this project, maybe in the future.
>
> But what next? How to proceed withSmartGWTand SQL engine? Current
> answer is using EoD SQL as ORM subsystem. There are some bad things
> about loosing lazzy loading feature, etc., but in my case it seems to
> be the best way now as you can see 
> at:http://lemnik.wordpress.com/2009/09/18/eod-sql-applied-%E2%80%93-part...
>
> Any your suggestion would be helpful.
>
> Kensai
>
> On 17 čvn, 09:32, kensai yanesha  wrote:
>
> > The database could be any SQL engine, so the dataserver type schould
> > be sql not hibernate.
>
> > On 17 čvn, 06:18, kensai yanesha  wrote:
>
> > > Hello,
>
> > > I am new to GWT at all. My approach is to have an editable grid on the
> > > client side and one or more tables on the database side (Oracle in my
> > > case). Could someone post really working project with all files which
> > > supports all 4 standard operations (select, insert, update, delete)?
> > > In my case I want to do all these operations using stored procedures
> > > to avoid SQL injection attacks.
>
> > > Any external link or pure sample will help. I was not able to find any
> > > complete project which is I think best to learn it as complex logic.
>
> > > Thank you very much.
>
> > > Kensai
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Access ClientBundle ImageResource from UiBinder

2010-06-17 Thread CJ Bilkins
It seems my guess that you could store images outside of the directory
is wrong.  Because ui:image's field name is the image filename, the
images can only be stored in the same directory as the ui.xml file.

On Jun 17, 12:55 pm, CJ Bilkins  wrote:
> I've succeeded in getting sprites to work via uibinder though it
> doesn't seem possible to get it to work how you'd like (or arguably at
> all).
>
> I looked high and low for a complete working example and couldn't find
> one, so I'm going to try to be as verbose as possible in the hope that
> you and future searchers can save hours of their life...
>
> My .ui.xml file
> ==
>
> http://dl.google.com/gwt/DTD/xhtml.ent";>
>      xmlns:g='urn:import:com.google.gwt.user.client.ui'>
>
> 
> 
> 
> 
>         @sprite .hdrAlign {
>                 gwt-image: "lbl_align";
>         }
>
>         @sprite .hdrWidth {
>                 gwt-image: "lbl_width";
>         }
> 
>
> 
> 
> 
> 
>
> === End ui.xml ===
>
> MyResources.class
> ===
>
> package com.sub;
>
> import com.google.gwt.core.client.GWT;
> import com.google.gwt.resources.client.ClientBundle;
> import com.google.gwt.resources.client.ImageResource;
>
> public interface MyResources extends ClientBundle {
>         public static final MyResources INSTANCE =
> GWT.create(MyResources.class);
>
> /*
> The @Source path has a huge gotcha... from what I can tell, the file
> paths must exist in the location specified relative to this file, but
> ALSO in the location relative to your .ui.xml
>
> This was my problem.  I was storing my .ui.xml in a ./directory/ and
> then this clientbundle in ./directory/sub/ along with the image
> files.  The only way I could get it to work was to have the images
> exist in both ./directory and ./directory/sub
>
> I'm guessing you could avoid these dupe images by putting MyResources
> in ./directory and then reference the images in ./directory/sub, but I
> didn't test it.
> */
>         @Source("lbl_align.png")
>         ImageResource label_Align();
>
>         @Source("lbl_width.png")
>         ImageResource label_Width();
>
> }
>
> === End MyResources.class ===
>
> Things to consider:
>
> After doing this the first time in Eclipse, I was getting errors about
> my uibinder code.  Specifically, that dupe references to lbl_align
> existed. (Even though they were called lbl_align and lbl_width.)    It
> took some playing with the code (just deleting parts and retyping
> them, adding returns here and there above and below, before the errors
> disappeared.  Note: I didn't actually change any code.)
>
> As someone else noted (I believe in the linked post above), GWT seems
> to use the field name to retrieve the image (which makes it just about
> useless).  Trying to change:
> 
>
> To:
> 
>
> Results in an error that the resource could not be
> found.. .. .. ... which means that your field="" needs to be the
> name of the file (Use underscores and not hyphens in your filenames).
> It seems that resource="" is completely ignored and I'm not sure what
> the purpose of having a ClientBundle is.
>
> When running in hosted mode, your background images will show up as
> inline base64 encoded data and not as sprites.  The sprite assembling
> seems to occur on build.
>
> So far, my experiences with GWT have been that it makes my code more
> complex, adds tons of extra time to development, and is buggy.  =]  I
> would not recommend it to my enemies.  Maybe in a few years all this
> will get sorted out.
>
> On Jun 10, 1:27 pm, David Grant  wrote:
>
> > The other solution which seems to work is that I can put
>
> > @sprite .header {
> >           gwt-image: 'myimage';
> >      }
>
> > in a css file and reference it as a CssResource in a ClientBundle...then it
> > will look for an image resource called 'myimage' in that ClientBundle.
>
> > it works but it just puts stuff in to the css file associated with my global
> > theme that I would rather just keep local to my widget.
>
> > Dave
>
> > On Thu, Jun 10, 2010 at 9:41 AM, David Grant  wrote:
> > > Has anyone succeeded in using @sprite  {gwt-image: ...} in a
> > > uibinder file to access an image in a ClientBundle?
>
> > > I've tried the following which Chris Ramsdale at Google claimed would 
> > > workbut
> > >  it doesn't:
>
> > > 
> > > 
> > > 
> > >     �...@sprite .header {
> > >           gwt-image: 'myimage';
> > >      }
> > > 
>
> > > I can't use  because I definitely can't put a hard-coded
> > > path there because it needs change if the user changes themes. I'm 
> > > grabbing
> > > the ClientBundle from ThemeManager.res(). We need to be able to switch
> > > themes, which involves switching the ClientBundle being used. I've tried
> > > putting an expression in src= using curly braces to get the path 
> > > dynamically
> > > but that doesn't work.
>
> > > The only alternative I can think of is to layout the UI in java code which
> > > sucks.
>
> > > Dav

Re: Using the addAndReplaceElement to add Widgets

2010-06-17 Thread Olivier Monaco
Hi,

What do you think about that way :

SearchForm.ui.xml

  

  ...

  



SearchForm.java
public class SearchForm extends Composite {
  interface Binder extends UiBinder...
  private static final Binder binder = GWT.create...;

  private FormPanel form;

  public SearchForm() {
form = binder.createAndBind(this);
initWidget(form);
  }
}


This ensures you don't break the event handling. You can also replace
 by  and  by . These
two classes generate clean HTML.

If you really want to continue with your way, you have to deal with
widgets internal like sinkEvents, adopt, onAttach...

Olivier

On 16 juin, 19:13, Thiago Miranda de Oliveira 
wrote:
> Hi.. Here in my company we've decided to adopt the GWT for a working
> project but we are facing a huge barrier. Gwt has it's own widgets but
> they won't be used for their HTML/CSS produced that is almost
> impossible to "transform" in our design and HTML/CSS needs.
> So we've decided to create our own Widgets using the Ui Binder. So
> I've tried to do this:
> panelSearch.ui.xml:
>
> 
>                 
>                         
>                                 Search results
>                                 
>                                         Busca:
>                                          title="Busca" tabindex=""
> class="form-txt form-small" />
>                                         Filtrar por 
> data
>                                          class="form-txt form-date" />
>                                          tabindex="" class="form-txt form-
> date" />
>                                          type="submit" title="Ok" tabindex=""
> class="form-button form-left button">ok
>                                          href="upload-projeto.html"
> class="add-project button right">Adicionar projeto
>                                 
>                         
>                 
>   
>
> And then I've created a Widget that extends the FormPanel and tried,
> mapped it and tried to use the getWidgetContainer inside the
> panelSearch.java to replace it with my class that extends the
> FormPanel. It replaced well but I can't get the events ( like
> submitHandler ). How can I do that? Is there a way?
>
> Thanks for the attention
> Cheers

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Problem with RequestBuilder

2010-06-17 Thread Chris Conroy
On Wed, Jun 16, 2010 at 9:16 AM, alian rea  wrote:
> Hallo guys, i'm new of this group.
> I'm new developer for GWT 2.0 and SmartGWT.
> I've a problem with RequestBuilder. There are one frontend and one
> backend. The first is an java GWT application, the second is a PHP
> scripts, and they speak with JSON. Now The first application is in
> port  and the backend is in port 88, in the identical domain, and
> the rule of SOP forbid the comunication, with the onsuccess method of
> Request callback. The statuscode is 0, and the getText() is "".
> How can i do?
> Help please thank you.
>
> Andrea
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

Check out JsonpRequestBuilder:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/jsonp/client/JsonpRequestBuilder.html

-- 
Chris Conroy
Software Engineer
Google, Atlanta

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Problem with RequestBuilder

2010-06-17 Thread Olivier Monaco
Hi,

Configure your "backend" server to serve the folder where your GWT
HTML page is (and the compiled JS). Then, open this page in your
browser. The URL may be something like:

http://localhost:88/mypage.html

This load the "compiled" version of your application. Add a parameter
named "gwt.codesvr" with value "127.0.0.1:9997" and the dev mode will
be used.

http://localhost:88/mypage.html?gwt.codesvr=127.0.0.1:9997

Now you can use the dev mode and have not SOP probem ;)

Olivier

On 16 juin, 15:16, alian rea  wrote:
> Hallo guys, i'm new of this group.
> I'm new developer for GWT 2.0 and SmartGWT.
> I've a problem with RequestBuilder. There are one frontend and one
> backend. The first is an java GWT application, the second is a PHP
> scripts, and they speak with JSON. Now The first application is in
> port  and the backend is in port 88, in the identical domain, and
> the rule of SOP forbid the comunication, with the onsuccess method of
> Request callback. The statuscode is 0, and the getText() is "".
> How can i do?
> Help please thank you.
>
> Andrea

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Access ClientBundle ImageResource from UiBinder

2010-06-17 Thread Tristan
Thanks for taking the time to share your findings. It's a good clear
example / starting point for understanding the plumbing.

On Jun 17, 2:15 pm, CJ Bilkins  wrote:
> It seems my guess that you could store images outside of the directory
> is wrong.  Because ui:image's field name is the image filename, the
> images can only be stored in the same directory as the ui.xml file.
>
> On Jun 17, 12:55 pm, CJ Bilkins  wrote:
>
>
>
> > I've succeeded in getting sprites to work via uibinder though it
> > doesn't seem possible to get it to work how you'd like (or arguably at
> > all).
>
> > I looked high and low for a complete working example and couldn't find
> > one, so I'm going to try to be as verbose as possible in the hope that
> > you and future searchers can save hours of their life...
>
> > My .ui.xml file
> > ==
>
> > http://dl.google.com/gwt/DTD/xhtml.ent";>
> >  >     xmlns:g='urn:import:com.google.gwt.user.client.ui'>
>
> > 
> > 
> > 
> > 
> >         @sprite .hdrAlign {
> >                 gwt-image: "lbl_align";
> >         }
>
> >         @sprite .hdrWidth {
> >                 gwt-image: "lbl_width";
> >         }
> > 
>
> > 
> > 
> > 
> > 
>
> > === End ui.xml ===
>
> > MyResources.class
> > ===
>
> > package com.sub;
>
> > import com.google.gwt.core.client.GWT;
> > import com.google.gwt.resources.client.ClientBundle;
> > import com.google.gwt.resources.client.ImageResource;
>
> > public interface MyResources extends ClientBundle {
> >         public static final MyResources INSTANCE =
> > GWT.create(MyResources.class);
>
> > /*
> > The @Source path has a huge gotcha... from what I can tell, the file
> > paths must exist in the location specified relative to this file, but
> > ALSO in the location relative to your .ui.xml
>
> > This was my problem.  I was storing my .ui.xml in a ./directory/ and
> > then this clientbundle in ./directory/sub/ along with the image
> > files.  The only way I could get it to work was to have the images
> > exist in both ./directory and ./directory/sub
>
> > I'm guessing you could avoid these dupe images by putting MyResources
> > in ./directory and then reference the images in ./directory/sub, but I
> > didn't test it.
> > */
> >         @Source("lbl_align.png")
> >         ImageResource label_Align();
>
> >         @Source("lbl_width.png")
> >         ImageResource label_Width();
>
> > }
>
> > === End MyResources.class ===
>
> > Things to consider:
>
> > After doing this the first time in Eclipse, I was getting errors about
> > my uibinder code.  Specifically, that dupe references to lbl_align
> > existed. (Even though they were called lbl_align and lbl_width.)    It
> > took some playing with the code (just deleting parts and retyping
> > them, adding returns here and there above and below, before the errors
> > disappeared.  Note: I didn't actually change any code.)
>
> > As someone else noted (I believe in the linked post above), GWT seems
> > to use the field name to retrieve the image (which makes it just about
> > useless).  Trying to change:
> > 
>
> > To:
> > 
>
> > Results in an error that the resource could not be
> > found.. .. .. ... which means that your field="" needs to be the
> > name of the file (Use underscores and not hyphens in your filenames).
> > It seems that resource="" is completely ignored and I'm not sure what
> > the purpose of having a ClientBundle is.
>
> > When running in hosted mode, your background images will show up as
> > inline base64 encoded data and not as sprites.  The sprite assembling
> > seems to occur on build.
>
> > So far, my experiences with GWT have been that it makes my code more
> > complex, adds tons of extra time to development, and is buggy.  =]  I
> > would not recommend it to my enemies.  Maybe in a few years all this
> > will get sorted out.
>
> > On Jun 10, 1:27 pm, David Grant  wrote:
>
> > > The other solution which seems to work is that I can put
>
> > > @sprite .header {
> > >           gwt-image: 'myimage';
> > >      }
>
> > > in a css file and reference it as a CssResource in a ClientBundle...then 
> > > it
> > > will look for an image resource called 'myimage' in that ClientBundle.
>
> > > it works but it just puts stuff in to the css file associated with my 
> > > global
> > > theme that I would rather just keep local to my widget.
>
> > > Dave
>
> > > On Thu, Jun 10, 2010 at 9:41 AM, David Grant  wrote:
> > > > Has anyone succeeded in using @sprite  {gwt-image: ...} in a
> > > > uibinder file to access an image in a ClientBundle?
>
> > > > I've tried the following which Chris Ramsdale at Google claimed would 
> > > > workbut
> > > >  it doesn't:
>
> > > > 
> > > > 
> > > > 
> > > >     �...@sprite .header {
> > > >           gwt-image: 'myimage';
> > > >      }
> > > > 
>
> > > > I can't use  because I definitely can't put a 
> > > > hard-coded
> > > > path there because it needs change if the user change

Re: GWT and CSS

2010-06-17 Thread André Moraes
You could use the CssResource + ClientBundle.

It is "inlined" in the HostedPage, so you probably will not have
problems with the standard.css.

You simply call the addStyleName passing the result of a function
call.

Check out the link to get more information:

http://code.google.com/intl/webtoolkit/webtoolkit/doc/latest/DevGuideClientBundle.html

On 16 jun, 07:57, Magnus  wrote:
> Hi,
>
> I usedCSSand setStyleName to style my widgets, until I found out
> that my widgets look less cool when I do that. I now understand that
> each widget has aGWT-style (e. g. ".gwt-Button") and that I overwrote
> this with my own style.
>
> So what is the way one should useCSS? Is it possible to "inherit" a
> style into another style, e. g. "my-button" inherits "gwt-Button", so
> that I just add my adjustments?
>
> Another question in this context: The MenuBar within theGWTwidget
> gallery looks much cooler than mine. But I did not apply any styles at
> all. What's the reason for this?
>
> Magnus

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: History and server call.

2010-06-17 Thread Tristan Slominski
So I will just adress things you see as a benefit, ie decoupling of server
calls from presenters / views and decoupling views from presenters.

First, though, I think you shouldn't call it MVP. In my opinion it seems
that what you're doing is MVC where the model is helped out by RPC. There is
already so much variety in the meanings of this (MVP, MVC, etc...),
especially with Activities and Request Factory coming into the picture that
terminology is becoming important. Not because I don't know what you're
describing, but because someone new to the frameworks will get thoroughly
confused.

As for the benefits of what you offer, i.e. the decoupling points. Multiple
frameworks out there already accomplish decoupling. Combine the fact that
those benefits already exist in frameworks out there today with the concern
you raised:

"At some point you may forget that who is handling these vents and how the
data is reaching from server to view etc, basically you wont be able to just
Ctrl + click to traverse the code tree in eclipse or netbeans. Code reading
may be bit difficult. If someone can write a plugin for such code
readability like Spring plugin then it will be very nice."

That fact alone would make me want to never ever learn what you have to
offer. This is almost getting into the realm of product development :) ie.
as a customer what benefits do I get from your framework?

I think you have some interesting ideas about the richness of event
interactions, but after reading your proposal I still don't feel a
compelling reason to write yet another framework. Where do you feel is the
crucial difference / benefit in comparison?

I'm not familiar with all of these frameworks, but here are some to compare
to:

gwt-presenter: http://code.google.com/p/gwt-presenter/

gwt-dispatch: http://code.google.com/p/gwt-dispatch/

gwt-platform: http://code.google.com/p/gwt-platform/

handlebars: http://code.google.com/p/handlebars/

I'm sure there are a lot more, these are the ones that immediately come to
mind.

On Jun 17, 2010 12:03 PM, "Ravi Sharma"  wrote:

Hey guys,
I have been thinking about all this MVP architect(i am new to it) and
history management and show on ready pattern etc and came up with
following design/idea. Lets see if it will work and feel free to
comment on it.

1) Something happens on UI(Some User activity like mouse click,
keyboard press etc)
2) Raise an EVENT with required data from UI. something like
CLIENT_EVENT_% or VIEW_EVENT%(i.e.CLIENT_EVENT_PROFILE_LINK_CLICKED) ,
basically i want to have separate naming convention for all client/UI
events.
3) Presenters will be listening to these events. On Getting a event
presenter can do following things
  3.1) Create a history token and in history handler raise event to
get data from server SERVER_EVENT_GET_DATA (Optional, if you want to
keep history)
  3.2) or directly raise event (i.e.SERVER_EVENT_GET_DATA) to get
data from server. (If You don't want to keep history)
4) Different Data Handlers or Presenter it self will be listening to
these events SERVER_EVENT_% and make the server call.
5) once server call returns raise another event like DATA_MODEL_SUCCESS
%/DATA_MODEL_ERROR% with data/error returned by Server.
6) Presenter or View(I will prefer it to go to View, although it may
break classic MVP) will be listening to these events(DATA_MODEL%) and
will display the view/error accordingly.


Now if we want to use Client side cache in this flow then handlers of
events(at step 4) like SERVER_EVENT_GET_DATA / SERVER_EVENT_% can
first check in Cache, if found then raise the same
event(DATA_MODEL_SUCCESS%) as it will be raised by server returned
asyncallback functions.


So what we will achieve here.

Our server RPC call will stay independent of cache/view/presenter etc.
Our View stay independent of cache or server calls even independent of
presenter too.. I would make my view listen to events and show the
data.
Our Presenter dont need to know server call details, in case you are
planning to implement the separate data handlers which can use cache
as well as RPC.

Downside
1) For one user action i will be raising 3 Events like CLIENT_EVENT_%
and then SERVER_EVENT_% and then DATA_MODEL_SUCCESS%/DATA_MODEL_ERROR
%. So need to do lots of efficiency check, but good things is how many
clicks a user can click on an application on browser which is running
on atleast P4 machine, 1GHZ.
2) At some point you may forget that who is handling these events and
how the data is reaching from server to view etc, basically you wont
be able to just Ctrl + click to traverse the code tree in eclipse or
netbeans. Code reading may be bit difficult. If someone can write a
plugin for such code readability like Spring plugin then it will be
very nice.
3) One day you decide not to use cache, just remove it without
affecting any other code. Basically everything in pluggable/
unpluggable
4) One day you feel like creating same application for Mobile or new
web look create ur view again. This i

Re: Regarding GWT 2.0.3

2010-06-17 Thread gourineni rakesh
Thanks Cerezo for the reply
  I had opened web.xml file from xml editor but I
couldnt find any error. Can you check whether my web.xml format is
correct?


Regards,
Rakesh

2010/6/17 Andrés Cerezo 

> Try to open it with the xml editor of eclipse (design view) perhaps It has
> an erroneus character (space, etc) and you can`t see it.
>
> 2010/6/16 gourineni rakesh 
>
>> Hi,
>> I m Rakesh. I m developing a GWT based eclipse project.The project is
>> about sensor web application for Buoys n i used google maps to display the
>> Buoy locations.For this the GWT i m using is 2.0.3, eclipse is 3.4 Ganemade
>> n Tomcat is 5.5.9. Recently I have upgraded the Sensor Web project from gwt
>> 1.4.62 to 2.0.3. I m able to get the application in the web browser but i m
>> unable to update the database into PostgreSql {version is 8.2.}
>>
>>  My *Web.xml* is shown below
>>
>> 
>> > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>> "http://java.sun.com/dtd/web-app_2_3.dtd";>
>>
>> 
>>
>>
>>   
>> BuoyDataService
>>
>>  edu.msstate.gri.server.BuoyDataServiceImpl
>>   
>>
>>
>>
>>   
>> BuoyDataService
>> /buoyapplication/buoyDataService
>>   
>>
>>
>>   
>>
>>   
>>
>> BuoyApplication.html
>>
>> 
>>
>> 
>>
>>
>> And my *gwt.xml* file is given below
>>
>> 
>> 
>>   
>>   
>>
>>   
>>   
>>   
>>   
>>   
>>   
>>   
>>   
>>   
>>   
>>   
>>   
>>
>>   
>>
>>   
>>   
>>
>>   
>>   
>>
>>
>> 
>>
>>
>>
>> When I start my Tomcat I m getting the
>>
>>  "End event threw exception" in startup window and following this another
>> error " Parse error in application web.xml"
>>
>> Is there any error in my* web.xml file*.Plz help me
>>
>> Thanks in advance,
>> Rakesh.
>>
>>
>>
>>  --
>> 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-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>  --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Access ClientBundle ImageResource from UiBinder

2010-06-17 Thread Jaroslav Záruba
I've searched in the issue tracker and haven't found this being reported.
Could someone confirm please whether the described behavior is intended (as
weird as it seems) or whether this is a bug, so we can file the report...?
Same applies for the other ?glitches?... It would kinda suck to leave this
unreported.

On Thu, Jun 17, 2010 at 6:55 PM, CJ Bilkins wrote:

> As someone else noted (I believe in the linked post above), GWT seems
> to use the field name to retrieve the image (which makes it just about
> useless).  Trying to change:
> 
>
> To:
> 
>
> Results in an error that the resource could not be
> found.. .. .. ... which means that your field="" needs to be the
> name of the file (Use underscores and not hyphens in your filenames).
> It seems that resource="" is completely ignored and I'm not sure what
> the purpose of having a ClientBundle is.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Cleaning up threads on GWT application shutdown

2010-06-17 Thread jjd
Jason and jhulford,

Thanks for your advice.  I checked into ServletContextListener and it
looks like it should work fine.  I'm about to give it a try.

Thanks.

--Jim--

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



  1   2   >