showing a Popup and automatically deactivate all the other widgets??

2010-01-28 Thread ojay
Hi,

I request a few strings from the user and if the values are not
correct format will a popup occur and show what is wrong. But as I
recognized now it is possible to press other buttons on the page
although the popup ist still open.

How can I deactive everything except the popup???

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: showing a Popup and automatically deactivate all the other widgets??

2010-01-28 Thread ojay
Thanks a lot ... If there is always such a solution for a problem :-)

On 28 Jan., 16:19, mariyan nenchev nenchev.mari...@gmail.com wrote:
 popup.setModal(true);



 On Thu, Jan 28, 2010 at 5:17 PM, ojay oliver.ja...@googlemail.com wrote:
  Hi,

  I request a few strings from the user and if the values are not
  correct format will a popup occur and show what is wrong. But as I
  recognized now it is possible to press other buttons on the page
  although the popup ist still open.

  How can I deactive everything except the popup???

  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.comgoogle-web-toolkit%2Bunsubs 
  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.



How to wait until the user clicked a button in a PopupPanel???

2010-01-26 Thread ojay
Hi,

I have user editor and when somebody clicks the delete button I show a
popup in which the user has to confirm that all the data should be
deleted. Only if this will be confirmed with yes, the data will be
deleted in the database. Now is my problem that I do not know how I
can wait until the button was pressed. I am using the MVP architecture
like it was diskussed in a lot of threads here, so my presenter calls
a getConfirmed Method in which the popup will be shown. But know I do
not know how to wait to this click.

Does somebody has a solution for this?

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: MVP Article... Source Code?

2010-01-16 Thread ojay
Hi,

i agree with Julien  it would be interesting how his case would be
handled. Does somebody has an idea?

Hope somebody will response to this topic

On 10 Jan., 14:30, Juju funkybre...@gmail.com wrote:
 Hello,

 There is one thing that I don't understand very well. I'm building an
 application with multiple services (imagine something like
 contactService, teamService, etc). Is there multiple AppController? In
 yourexample, the AppController is link with one service (the
 ContactService). It's a little dark for me.

 Thanks,

 Julien

 On 3 jan, 20:48, Flemming Boller flemming.bol...@gmail.com wrote:

  Hi Chris

  Thanks for you input around the dividing of presenters and views in bigger
  apps like Gmail.

  Do you have any brief input on how  runAsync andMVPplay together?

  /Flemming

  On Sun, Jan 3, 2010 at 8:36 PM, Chris Ramsdale cramsd...@google.com wrote:
   Yaakov,

   Having multiple presenters driving a single view would be a bit strange.
   Typically want to the presenter to define the display interface that the
   view will implement. Having multiple presenters drive a single view means
   that either a) the display interface is defined in some parent presenter
   class, or b) one of the presenters is responsible for defining the display
   interface. Either way, it decouples the presenter-display relationship 
   that
   is inherent to theMVParchitecture.

   For applications with large UI frontends, you could consider breaking the
   UI up into smaller presenter/view pairs that are managed by some 
   controller
   class. Take forexampleGmail; the folder list would be one presenter with
   an associated view, the inbox list another, the Google Talk interface
   another, and so on. All of these would then be managed by some
   MainViewController class.

   Keeping widget-based code out of the presenter for ease of testing is
   golden. Beyond that it's really a question how much code you want to
   maintain within a single presenter and view.

   On Sun, Jan 3, 2010 at 9:20 AM, Yaakov Chaikin 
   yaakov.chai...@gmail.comwrote:

   Chris, or anyone else with experience onMVPin GWT...

   Practically, do you always have 1 view as the user sees it, i.e., the
   whole GUI, or if your GUI has many components (as most GUIs do), do
   you have multiple views, and most importantly, multiple presenters,
   presenting 1 coherent view to the user? In yourexample, this would be
   similar to splitting the GUI into a view that has the buttons and the
   GUI that has the list.

   How would that be handled inMVP?

   Thanks,
   Yaakov.

   On Wed, Dec 30, 2009 at 2:43 PM, Chris Ramsdale cramsd...@google.com
   wrote:
While I see that someone has already found it, I just wanted to let
   everyone
know that it's officially there.

  http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architectur...

We're looking to put together parts 2 and 3 shortly. So far I have UI
   Binder
and Code Splitting integration as topics of interest. Let us know what
   else
would be of help.
- Chris

On Tue, Dec 29, 2009 at 1:00 PM, jpnet jprichard...@gmail.com wrote:

I really like this article:

  http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architectur...

However, it's almost useless without the entire source package. Are
there any plans to post the source code?

Thanks,

JP

--

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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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 
   togoogle-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to 
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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 
   togoogle-web-tool...@googlegroups.com.
   To unsubscribe from this group, send 

Changing mouse cursor during rpcservice is working

2010-01-13 Thread ojay
Hi,

I have two panels and if I press a button in the right panel then some
stuff will be done on the server and then the other panel will be
filled with data. Now I am searching how I can change the mouse cursor
when I called the rpc and change it back on the rpc success method.
Can somebody tell me how I can solve this?

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.




How to realize paging in combination with a FlexTable

2010-01-06 Thread ojay
Hi,

I stuck on the problem how I can implement paging in my GWT-App. I
want to show a list of users in a view, therefore I use the FlexTable.
Now it can happen that there are hundreds of users which is a bit too
much for the view, so I want to split it to 20 users on the screen and
let the client user page through this. Something like in Gmail when
you can go through your emails. Actually I do not know how to start??
Can somebody give me an advise how I can solve that?

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.




Step-by-Step tutorial how to use external Tomcat with GWT 2.0

2010-01-05 Thread ojay
Hi,

I am looking for a tutorial about using an external tomcat server with
gwt 2.0. I could only find discussions about older GWT versions, and
actually I am stuck at this step.

Does somebody can show me the steps how I can use the sample gwt
project, which will be created by the google eclipse plugin, on an
external tomcat server?

Thanks a lot.

--

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.




How to use a initServlet for database connections in host mode??

2010-01-05 Thread ojay
Hi,

I need to access my database in the server area of my gwt application.
Now I have the problem that i cannot init the database connection. I
am using hibernate to access my database, in my previous applications
(struts) I used the Datasource of the underlying tomcat to start and
database transcation with hibernate. Now with GWT 2.0 I want to use
the hosted mode and therefore I need to initialize my database
connection pool. Therefore I tried to create this pool with a servlet.
Now I have the problem that my servlet will not be started in the
hosted mode.

Can somebody explain where I can define in GWT to start a special
servlet at startup of the host mode?


--

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 use a initServlet for database connections in host mode??

2010-01-05 Thread ojay
Hi,

I forgot a tiny thing in the web.xml :-)

It's better to use the load-on-startup0/load-on-startup option in
the web.xml so that the servlet will be started :-)

On 5 Jan., 15:11, Qian Qiao qian.q...@gmail.com wrote:
 On Tue, Jan 5, 2010 at 22:08, ojay oliver.ja...@googlemail.com wrote:
  Hi,

  I need to access my database in the server area of my gwt application.
  Now I have the problem that i cannot init the database connection. I
  am using hibernate to access my database, in my previous applications
  (struts) I used the Datasource of the underlying tomcat to start and
  database transcation with hibernate. Now with GWT 2.0 I want to use
  the hosted mode and therefore I need to initialize my database
  connection pool. Therefore I tried to create this pool with a servlet.
  Now I have the problem that my servlet will not be started in the
  hosted mode.

  Can somebody explain where I can define in GWT to start a special
  servlet at startup of the host mode?

 ehhh, web.xml maybe?

 --
 Two things that are infinite, the universe and my stupidity, and I'm
 not sure about the universe.

--

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: Step-by-Step tutorial how to use external Tomcat with GWT 2.0

2010-01-05 Thread ojay
Thanks a lot for your step by step description! My GWT-App is working
now on the external server !!



On 5 Jan., 11:09, olivier nouguier olivier.nougu...@gmail.com wrote:
 Hi,
 1: You'll just need to deploy your server side application.
 2: Start the external server.

 3: Start the GWT Server (GWT application with eclipse plugin) *without* the
 embded server.
 4: browse to your html/jsp page hosting your gwt application with the extra
 parameter:
 ?gwt.codesvr=134.40.251.239:9997 (adapt of course with your IP address).
 Without this parameter you will use the deployed(js compiled) GWT code.

 HIH



 On Tue, Jan 5, 2010 at 10:54 AM, ojay oliver.ja...@googlemail.com wrote:
  Hi,

  I am looking for a tutorial about using an external tomcat server with
  gwt 2.0. I could only find discussions about older GWT versions, and
  actually I am stuck at this step.

  Does somebody can show me the steps how I can use the sample gwt
  project, which will be created by the google eclipse plugin, on an
  external tomcat server?

  Thanks a lot.

  --

  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group. To post to this group, send email 
  togoogle-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email 
  togoogle-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 A coward is incapable of exhibiting love; it is the prerogative of the
 brave.
 --
 Mohandas Gandhi

--

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.




Integrating GWT into existing Struts 1.2.9 application

2010-01-04 Thread ojay
Hi,

I want to integrate a few GWT-Modules into an existing Struts 1.2.9
application. I read a few posts in this group but still I have not
really the knowledge how to do that. Can somebody explain me the
necessary steps for an integration.

What I wantI added a button into a jsp page of the struts
application and this should show my GWT-Component which I created.
Therefore I have a few questions

1.) How can I inject the GWT module into that jsp? What do I have to
copy from my GWT-Module to the Struts project? I developed the GWT-
Module in a own project and the struts app is also an own project.
Maybe somebody can show this by using the standard gwt project, how
can I include this example project into a struts app???

2.) How can I deploy the GWT-Module from the eclipse project into the
existing struts project? So that new releases of the module will be
transfered into the struts app.


Hopefully somebody can help me with this stuff

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: How to react on every new typed in character of a textbox

2009-10-01 Thread ojay

Thanks a lot for your answersI will try it with the KeyUp Event,
sounds like this is what I should really use!!

On Oct 1, 10:01 am, Erik luys.e...@gmail.com wrote:
 You have to use KeyUp as mentioned before, because if you use
 KeyPress, the textbox still has its old value, in you case

 filterText.getText().trim() = old value = AAA

 String matchThis = filterText.getText().trim() + event.getCharCode() =
 AAAB

 If you use KeyUp, you use the new value in the textbox.
 in this case

 String matchThis = filterText.getText().trim() = B

 On Sep 30, 12:56 pm, ThomasWrobel darkfl...@gmail.com wrote:

  I'm a bit confused why you dont just search for the whole text from
  the filterText every time a key is pressed.
  Surely thats what your effectively doing anyway by getting the current
  text and adding the new characters?

  Because the problem at the moment, if I'm understanding correctly, is
  simply the filterText isnt being erased/reset when you want it to be.

  Remember you can also use onKeyUp to get the state after the key is
  pressed and released.

  On Sep 30, 3:50 am, ojay oliver.ja...@googlemail.com wrote:

   Hi,

   I have a textbox and a list of values in a listbox. Regarding of the
   input of the typed in value of the textbox the list will be filtered.
   I've managed this so far, but it's not working as expected. For
   example you typed in AAA then every value in the list which does not
   contain AAA will be removed. But when you mark all the AAA and type
   instead a B then my function will search for the string AAAB instead
   of only B. This happens because I am building this string on the
   keypresshandler, but if i do not build it like this I do not get
   actual textfield value and the new typed in character...

   Does anybody understand my problem and have a suggestion ?

   thanks

   public void onKeyPress(KeyPressEvent event) {

                           filterFormList(filterText.getText().trim() + 
   event.getCharCode())

           }

   public void filterFormList(String matchThis){

                   ArrayListInteger toDeleteList = new 
   ArrayListInteger();

                   for (int i = 0; i  formList.getItemCount(); i++){
                           System.out.println(checking if  + matchThis
                                           +  is found in  + 
   formList.getItemText(i));

                           formList.getItemText(i).contains(matchThis);

                           if (formList.getItemText(i).contains(matchThis)){
                                   System.out.println(found it---adding 
   index  + i +  to delete
   list);
                                   toDeleteList.add(new Integer(i));
                           }
                           else{
                                   System.out.println(no match);
                           }
                   }

                   for (Integer integer: toDeleteList){
                           System.out.println(removing item  + 
   formList.getItemText
   (integer.intValue()));
                           formList.removeItem(integer.intValue());
                   }

           }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to initiate a event inside a KeyPressHandler

2009-09-29 Thread ojay

Hi thanks for your response but i don't get it :-(

Can you make an example with pseudo code? Thanks

On 27 Sep., 02:09, Dominik Steiner dominik.j.stei...@googlemail.com
wrote:
 Hi ojay,

 did you try to make your KeyListener an anonymous class so that you
 can reference from within it the formList and then change the
 selection of the ListBox by using the method

 formList.setSelectedIndex(int index);

 HTH

 Dominik

 On 25 Sep., 17:07, ojay oliver.ja...@googlemail.com wrote:

  Hi,

  after I read the intro to gwt in practice and looking around on the
  gwt site I just started my first steps with gwt and now I'm stuck.

  I guess its an easy question for you guys...

  I have a textbox and a listbox in my project. Now I added a
  KeyPressHandler to the textbox so that I can do something if somebody
  types in. I want to use this textbox input as a filter for the shown
  values in the listbox. So now what I do not know is, how can I
  initialize a change of the Listbox from my KeyPressHandler ??

  Here my Module

  public void onModuleLoad() {
                  // Create a tab panel with three tabs, each of which 
  displays a
  different
              // piece of text.
                  KeyPressHandler changeFormFilter = new FormFilterChanger();

                  VerticalPanel formSelectPanel = new VerticalPanel();
                  formSelectPanel.setSize(150px, 400px);

                  TextBox formFilterBox = new TextBox();
                  formFilterBox.setFocus(true);
                  formFilterBox.setSize(150px, 20px);

                  formFilterBox.addKeyPressHandler(changeFormFilter);
                  formFilterBox.addChangeHandler(handler)

                  ListBox formList = new ListBox(false);
                  formList.setVisibleItemCount(10);

                  for ( int i = 0; i  40; i++){
                          formList.addItem(form+i);
                  }
                  formList.setSize(150px, 380px);

                  formSelectPanel.add(formFilterBox);
                  formSelectPanel.add(formList);

                  RootPanel.get().add(formSelectPanel);

          }

  and the Handler

  public class FormFilterChanger implements KeyPressHandler {

          @Override
          public void onKeyPress(KeyPressEvent event) {
                  System.out.println(change);         // TODO 
  Auto-generated method stub

          }

  }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



How to react on every new typed in character of a textbox

2009-09-29 Thread ojay

Hi,

I have a textbox and a list of values in a listbox. Regarding of the
input of the typed in value of the textbox the list will be filtered.
I've managed this so far, but it's not working as expected. For
example you typed in AAA then every value in the list which does not
contain AAA will be removed. But when you mark all the AAA and type
instead a B then my function will search for the string AAAB instead
of only B. This happens because I am building this string on the
keypresshandler, but if i do not build it like this I do not get
actual textfield value and the new typed in character...

Does anybody understand my problem and have a suggestion ?

thanks


public void onKeyPress(KeyPressEvent event) {

filterFormList(filterText.getText().trim() + 
event.getCharCode())

}


public void filterFormList(String matchThis){

ArrayListInteger toDeleteList = new ArrayListInteger();


for (int i = 0; i  formList.getItemCount(); i++){
System.out.println(checking if  + matchThis
+  is found in  + 
formList.getItemText(i));

formList.getItemText(i).contains(matchThis);

if (formList.getItemText(i).contains(matchThis)){
System.out.println(found it---adding index  + 
i +  to delete
list);
toDeleteList.add(new Integer(i));
}
else{
System.out.println(no match);
}
}


for (Integer integer: toDeleteList){
System.out.println(removing item  + 
formList.getItemText
(integer.intValue()));
formList.removeItem(integer.intValue());
}





}


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



How to initiate a event inside a KeyPressHandler

2009-09-26 Thread ojay

Hi,

after I read the intro to gwt in practice and looking around on the
gwt site I just started my first steps with gwt and now I'm stuck.

I guess its an easy question for you guys...

I have a textbox and a listbox in my project. Now I added a
KeyPressHandler to the textbox so that I can do something if somebody
types in. I want to use this textbox input as a filter for the shown
values in the listbox. So now what I do not know is, how can I
initialize a change of the Listbox from my KeyPressHandler ??

Here my Module

public void onModuleLoad() {
// Create a tab panel with three tabs, each of which displays a
different
// piece of text.
KeyPressHandler changeFormFilter = new FormFilterChanger();

VerticalPanel formSelectPanel = new VerticalPanel();
formSelectPanel.setSize(150px, 400px);


TextBox formFilterBox = new TextBox();
formFilterBox.setFocus(true);
formFilterBox.setSize(150px, 20px);

formFilterBox.addKeyPressHandler(changeFormFilter);
formFilterBox.addChangeHandler(handler)

ListBox formList = new ListBox(false);
formList.setVisibleItemCount(10);


for ( int i = 0; i  40; i++){
formList.addItem(form+i);
}
formList.setSize(150px, 380px);


formSelectPanel.add(formFilterBox);
formSelectPanel.add(formList);

RootPanel.get().add(formSelectPanel);

}


and the Handler


public class FormFilterChanger implements KeyPressHandler {


@Override
public void onKeyPress(KeyPressEvent event) {
System.out.println(change);   // TODO Auto-generated 
method stub

}

}

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---