how to Specify DialogBox position ?

2009-03-16 Thread jake H

 Hello,
The scenario is the following.
I have a flextable with some textboxes in it. When a value pressed in
a textbox isn't what i expected i call a Dialog Box with an error
message. My question is if it is possible to get the position of the
'erroneous textbox' and show the dialog box in the previous cell.

For example my table

0, 0, Label 1
0 , 1 , TextBox 1
1, 0, Label 2
1 , 1 , TextBox 2

If the TextBox 2 is wrong then i want to place the DialogBox in the
1 , 0 position over the Label 2.
How can i do this automatically???

Ty in advance.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
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 properties file

2009-02-23 Thread jake H

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



gwt properties file

2009-02-20 Thread jake H

Hello,
I m working with gwt-properties files and i m wondering
1)if instead .properties file extension i can use another one.
2)I have some simple data , like name etc witch are saved in this
file. But in order to work fine every time i change their values, i
have to recompile. Is there any way to avoid that?

regards.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
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 + gmail template/site

2009-02-09 Thread jake H

I am also curious about this ( made a topic without success
though :p )

Dan , what do u mean exactly??

in onclick(),
to change the css for the 'articles','home' etc respectively?
if yes , change it to what?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



gwt site interface

2009-02-05 Thread jake H

Hello,
Can someone help me to implement a very same panel like gwt group use?

I mean a two-level-panel , with the options in the one side and by
clicking something in the submenu to reveal you the appropriate
informations in the other panel.
But i would like to keep the format of gwt site. Like when u press
Discussions for example or article , its very clear what u chose
because of the white line. same follows by pressing articles or home.


Ty 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-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: any tips for beautify gwt applications?

2009-02-04 Thread jake H

Ty all for your answers, i ll check them to see which of them fits the
best!

Although css may seem the easiest solution.

I found a DecoratedPanel from Gwt main library and now i m trying to
find out to make double-list look prettier!
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



any tips for beautify gwt applications?

2009-02-02 Thread jake H

Hello,
I m close to finish a gwt application project that i have started a
month ago. I m really delightful for gwt features and the time needed
this project to be done. I used the simple widgets of gwt like
tabpanels, buttons, lists, flextable. But the result seems to be like
a simple HTML page.
So i m asking if there are any designing tips to beautify my
application , so it wouldn't be like a simple HTML page but a nice GWT
application.( with 'wake effect' and etc )


Ty.
--~--~-~--~~~---~--~~
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: Multiple same buttons

2009-01-26 Thread jake H

ty now its working ;)
--~--~-~--~~~---~--~~
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: Multiple same buttons

2009-01-23 Thread jake H

Moreover the way i m using the buttons is

Button []but = new Button[x];


and in every table i add the following but[y] ( 0<= y < x )


the question remains though.


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



Multiple same buttons

2009-01-23 Thread jake H

Hello,
i have some data stored in an array which i print in my gwt
application in a table like this.
I need a button to implement some functionality like Update data. The
procedure that button does is the very same for all the table.

[0] data0 data0  [button]
[1] data1 data1  [button]
[2] data2 data2 [button]
...
[x] datax datax [button]


What i need is to find a way , when the user presses the [button] my
program to understand in which position it is and parse the right
data. Is this possible? Because its very chaotic to implement X same
buttons just to be sure that the parsed data is the correct. The
position in the table is specific, so can i do something like
getWidgetPosition() returns 0 for example if its in 0 line.


Ty 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-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: ListBox

2009-01-20 Thread jake H

I m not sure if I understood u completely.

Even though CheckBox supports setWidth , its pointless to change it.
( tick box )



--~--~-~--~~~---~--~~
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: general question: should I create one or two pages

2009-01-20 Thread jake H

Or if u dont want to mess with Servlet Sessions
just create 2 application projects
And make them interact by cookies for example.
--~--~-~--~~~---~--~~
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 set parameters in com.google.gwt.http.client.RequestBuilder

2009-01-20 Thread jake H

I dont know , if i understood u well but here is the implementation
for RequestBuilder POST
url - url to send
postData - data to send.

RequestBuilder builder = new RequestBuilder(RequestBuilder.POST,url);

try {
builder.setHeader("Content-Type", 
"application/x-www-form-
urlencoded");
Request response = builder.sendRequest(postData, new 
RequestCallback
() {

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

2009-01-20 Thread jake H

To be more specific try something like this,

list.addChangeListener(new ChangeListener(){
public void onChange(Widget widget){
// Get the index of the selected item
int itemSelected = list.getSelectedIndex();
enableFlowPanel(itemSelected);
 } }
--~--~-~--~~~---~--~~
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: Date Calculation on Client side

2009-01-20 Thread jake H

I dont know what exactly u wanna do, but i ll show u a code related to
Date manipulation i m using.


Label l_time = new Label();
DateTimeFormat dtf = DateTimeFormat.getFormat(".MM.dd
HH:mm:ss");
 l_time.setText(dtf.format(new Date()));


--~--~-~--~~~---~--~~
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: History and Tab panels

2009-01-16 Thread jake H

OK i finally got what todd tried to say me :p

Its working now. ty all for your replies.

On Jan 9, 6:21 pm, "todd.sei...@gmail.com" 
wrote:
> First remember that #0 and #3 are not pages. Check 
> outhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...()
> to see how you can invoke the currenthistorywhen your app reloads
>
> Historyfor a full UI is rather complex. Consider mapping commands 
> tohistorywith very specific naming. For example you could use a token
> such as "MyTopLevelTab:1" and a command which selects the tab for you.
>
> new Command() {
>   public void execute() {
>     tpanel.selectTab(1);
>   }
>
> }
>
> And use some other token for the child TabPanel like "MyTopLevelTab:
> 1:MyOtherTabPanel:3"
>
> new Command() {
>   public void execute() {
>     tpanel.selectTab(1);
>     ((TabPanel) tpanel.getWidget(1)).selectTab(3);
>   }
>
> }

--~--~-~--~~~---~--~~
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: History and Tab panels

2009-01-15 Thread jake H


I tried something , that managed to do some more than the previous
codes.
But i still have the refresh problem , when refresh button is pressed
even if the url points in a specific page,  the main tab is reloaded.
And when i save a bookmark with subpanel and trying to visit it , i
cant. while in top panel its working.

I provide the code
tpanel is the top level tab panel , while the sub , is the sub tab
panel of a specific top level tab panel.


 tpanel.addTabListener(new TabListener() {
  public void onTabSelected(SourcesTabEvents sender, int 
tabIndex) {
// Push an item onto the history stack
History.newItem("page" + tabIndex);
}
public boolean onBeforeTabSelected(SourcesTabEvents sender, int
tabIndex){

return true;
}

});

  subpanel.addTabListener(new TabListener() {
  public void onTabSelected(SourcesTabEvents sender, int 
tabIndex) {
// Push an item onto the history stack
History.newItem("subpage" + tabIndex);
}
public boolean onBeforeTabSelected(SourcesTabEvents sender, int
tabIndex){

return true;
}

});

History.addHistoryListener(new HistoryListener() {
   public void onHistoryChanged(String historyToken) {
 if(historyToken != null) {
 String check = historyToken.substring(0,4);
 GWT.log("Check value "+check,null);
 String htok;
 int check2=-1;
 if( check.equals("page") )
 {
 htok = historyToken.substring(4,historyToken.length());
 check2 = 0;
 }
 else
 {
 htok = historyToken.substring(7,historyToken.length());
 check2 = 1;
 GWT.log("htok value "+htok,null);
 }

 int index = Integer.parseInt(htok);
 if( check2 == 0 ) {
 if( index >= tpanel.getTabBar().getTabCount()) index = 0;

  tpanel.selectTab(index);
  }
  else if( check2 == 1 ) {
 if( index >= 
subpanel.getTabBar().getTabCount()) index
= 0;

   subpanel.selectTab(index);
  }
 }
   }
});



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-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: Refreshing the Page

2009-01-13 Thread jake H

>From your problem , i can guess that u have make the whole application
using one entrypoint file.
So when u refresh your page, it just load back what u select as main.
If u want to play through your application u should use History().
--~--~-~--~~~---~--~~
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: RESTful URL with GWT

2009-01-13 Thread jake H

If u mean , if u can implement REST in GWT the answer is yes.
otherwise about playing with the urls and getting data , i m not sure
exactly but with some javascript u can parse the desire data i think.
--~--~-~--~~~---~--~~
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: History and Tab panels

2009-01-13 Thread jake H

I m not sure if i understood u completely.

In the meanwhile i tried using hyperlinks to see if it could work,
with no success though.

  tpanel.add(new HTML("test"),new Hyperlink("test","0"));
  subpanel.add(new HTML("testsub"),new Hyperlink
("testsub","10"));
  subpanel.add(new HTML("testsub"),new Hyperlink
("testsub"),"11"));
  subpanel.selectTab(0);
  tpanel.add(subpanel,new Hyperlink("test","1"));
  tpanel.selectTab(0);

   History.addHistoryListener(this);

History.fireCurrentHistoryState();


   }

String oldToken = null;
public void onHistoryChanged(String historyToken)
{
// If they are the same, no need to do anything
if (oldToken != null && historyToken.equals(oldToken)) return;

// Save the token for the next time round
oldToken = historyToken;

History.newItem(historyToken);
}

With this code, in the url it is shown the appropriate value , but
with no other functionality.


I then tried to use TabListeners like this.

 int place=-1;
//place = 0 , topanel
//place = 1 , subpanel
 // Place is a variable i use , to know every time in which tabpanel i
am so to run the appropriate part in the History.

  tpanel.add(new HTML("test"),new Hyperlink("test","0"));
  subpanel.add(new HTML("testsub"),new Hyperlink
("testsub","10"));
  subpanel.add(new HTML("testsub"),new Hyperlink
("testsub"),"11"));
  subpanel.selectTab(0);
  tpanel.add(subpanel,new Hyperlink("test","1"));
  tpanel.selectTab(0);


  tpanel.addTabListener(new TabListener1());
  subpanel.addTabListener(new TabListener2());
  History.addHistoryListener(this);

   }

String oldToken = null;
public void onHistoryChanged(String historyToken)
{

// If they are the same, no need to do anything
if (oldToken != null && historyToken.equals(oldToken) &&
place != -1) return;

// Save the token for the next time round
oldToken = historyToken;

// Get the tab index
int index = 0;
try
{
   if(place == 0 )
   index = Integer.parseInt(historyToken);
   else if( place == 1 )
   index = Integer.parseInt(historyToken)%10;

}
catch (Exception e)
{
}
// Do a bit of checking
if( place == 0 )
{if (index < 0 || index >= tpanel.getTabBar
().getTabCount()) index = 0;
}
else if( place == 1 )
{if (index < 0 || index >= subpanel.getTabBar
().getTabCount()) index = 0;
}

if( place == 0 )
  tpanel.selectTab(index);
else if( place == 1 )
{
 // tpanel.selectTab(place);
  subpanel.selectTab(index);
 }
  place = -1;
}

 public class TabListener1 implements TabListener {

public boolean onBeforeTabSelected(SourcesTabEvents sender, int
tabIndex)
{
return true;
}
public void onTabSelected(SourcesTabEvents sender, int tabIndex)
{
place = 0;
History.newItem("" + tabIndex);
}
}

 public class TabListener2 implements TabListener {

public boolean onBeforeTabSelected(SourcesTabEvents sender, int
tabIndex)
{
return true;
}
public void onTabSelected(SourcesTabEvents sender, int tabIndex)
{
place = 1;
History.newItem(""+ place + tabIndex);
}
}


Logically it seems right. But obviously it isnt :p.
When i m trying to move from topanel to subpanel it throws me back to
topanel. I put a window alert for debugging into the onHistorychange
and it showed that when i visiting tabs in the top level it runs
smoothly but when i m trying to move to subpanel it cant work , it
call itself 3 times with different values each time and at the end i
get the first top tabpanel as a result.
Furthermore i couldnt make work the refresh problem i mention in the
previous thread as well.

I downloaded Ian's demo site which inside its implemented with history
in more than one level and i saw that he uses html pages for every
call he use. Can i avoid this? and to find out sth similar with mine
implementation to succeed what i want?

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



History and Tab panels

2009-01-09 Thread jake H

Hello ,
i spent some hours checking how History could be beneficial and how it
can be implemented.
I have some questions though on how it can be set up to work properly.

At first i have a 2 level - Tab panel , Every initial node has
children. By using the following code from Ian's site.

...
...
...

tpanel.addTabListener(this);
  subpanel.addTabListener(this);
   RootPanel.get().add(vp1);
   RootPanel.get().add(vp2);
   History.addHistoryListener(this);

   }

String oldToken = null;
public void onHistoryChanged(String historyToken)
{
// If they are the same, no need to do anything
if (oldToken != null && historyToken.equals(oldToken)) return;

// Save the token for the next time round
oldToken = historyToken;

// Get the tab index
int index = 0;
try
{
index = Integer.parseInt(historyToken);
}
catch (Exception e)
{
}

// Do a bit of checking
if (index < 0 || index >= tpanel.getTabBar().getTabCount())
index = 0;
tpanel.selectTab(index);
}

 public boolean onBeforeTabSelected(SourcesTabEvents sender, int
tabIndex)
{
return true;
}
public void onTabSelected(SourcesTabEvents sender, int tabIndex)
{
History.newItem("" + tabIndex);
}


It worked fine only for tpanel. How i can modify this code to work
fine for the rest subpanels as well??
Secondly , when i m in the #3 page and i hit refresh , it redirects me
in the first page, #0 . Why is this happening?

Ty.
--~--~-~--~~~---~--~~
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: TabPanel listeners

2009-01-09 Thread jake H

sry for the late answer , but thank you
i ll try it and i ll let u know.
--~--~-~--~~~---~--~~
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 enable enter key for a button

2009-01-09 Thread jake H

Hello , i tried to do something similar.

Its not possible to set two listeners for the box right?
Because i add right afterwards the Clicklistener the Keyboard Listener
and it didnt work.

I have to use a more abstract listener , event listener , and put
inside both onClick and onKeyPress?



--~--~-~--~~~---~--~~
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: Listbox Listener

2008-12-29 Thread jake H

put an onChange() and with a for loop to check in what position i
am ??

Is there any more fast way to parse data with onChange()? or should i
use a for loop in order to find the position ?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Listbox Listener

2008-12-28 Thread jake H

Hellooo
i m wondering how can i implement a ListBox listener.

I save my data into an 2-dimension array.

In the ListBox i m showing the first element of every array
data[x][0].

But i want when the user select any of these elements
in a panel next to the ListBox the rest data to be shown.
data[x][1-3]. But i cant find how this can happen in correlation with
ListBox.

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



TabPanel listeners

2008-12-22 Thread jake H

Hello,
I m creating a simple tabpanel with subpanels like the one follows

  TabPanel tpanel = new TabPanel();
  tpanel.add(new HTML("tbp"),"Basic");
  TabPanel subpanel = new TabPanel();


  subpanel.add(new HTML("aaa"),"Two");
  subpanel.add(new HTML("aaa"),"Three");
  subpanel.selectTab(0);
  tpanel.add(subpanel,"Basic");
  tpanel.add(new HTML("tbp"),"Basic");

I want to ask if its possible with tabListeners , not to create the
interface from the start but when the user press the One subpanel for
example then it will load whatever it wants.

Basic  | Basic | Basic
 |
One | Two | Three  , by pressing One then load the stuff. I dont want
to load them all from the beginning.

Ty.
--~--~-~--~~~---~--~~
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: Multiple Json requests problem in parsing

2008-12-18 Thread jake H

Okay i found a solution :)

"Typically, applications receive asynchronous responses in some sort
of
callback method. Java does not have a way of passing method pointers
around, so it usually accomplishes this through interfaces. The
provider of
the asynchronous resource defines a public interface that you would
implement if you needed an asynchronous response. When asynchronous
events occur, the event source calls a method on the provided
interface
instance."

That means in order to make the application work properly u have to
call the next requestcallback after the first one finishes. In this
way u guarantee take the results u want plus there isnt any waiting
time. ;)

ty all for the replies.

Another solutions are welcome also.
--~--~-~--~~~---~--~~
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: Multiple Json requests problem in parsing

2008-12-18 Thread jake H

no difference.
i created 3 callback and call them one by one
but at the end i have to use a while loop in the draw_table() function
and wait same secs as i waited when i use one callback for the 3.

Is there any other solution?
to use another method for example instead of RequestBuilder ??
--~--~-~--~~~---~--~~
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: Multiple Json requests problem in parsing

2008-12-18 Thread jake H

Yes i m using one callback for all! :p
i ll try what u said and i ll let u know.
--~--~-~--~~~---~--~~
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: Multiple Json requests problem in parsing

2008-12-17 Thread jake H

Ty ,
indeed the problem was the asynchronous communication.

I put a while loop which runs till all the array is filled with the
appropriate data.
The problem is that this can run in infinity!!! ( it took around 4 sec
for my application to be drawn , imagine if i had more data to
retrieve?!)

Is there any other solution to keep up with Asynchronous calls?

--~--~-~--~~~---~--~~
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: Multiple Json requests problem in parsing

2008-12-17 Thread jake H

ok i did something similar to deadlock technique to get the data
ordered.
But i still has a problem with the fill in.

What i mean is:
To avoid having nullpointer in the array i fill it with error msgs.

   for (int i=0; ihttp://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Multiple Json requests problem in parsing

2008-12-17 Thread jake H

so is there any solution about asynchronous communication?
should i work with deadlocks?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Multiple Json requests problem in parsing

2008-12-16 Thread jake H

Hello,
In a application i m trying to make , i need in order to successfully
create it , to get some data from different Json requests.

for ex
Name, L_Name , address , tel


Accordingly i call , using a for loop ,  each time a json request with
different url. then i extract and save the data.

Now the problem that i face is  that  sometimes , dont know why , the
data is saved randomly.

I m sending first Name , L_name , add , tel
and may the response will be
L_name , tel , add , Name.

Algorithm implementation waits first to extract and save the data and
then it calls again the Json_request with the new url.

Anyone knows why something like that could happen??


To test the data i use Window.alert msgs as debug.
When i remove them i face another problem. It seems like the array
that holds the json data is null!! and nothing is printed. Whereas i
uncomment Window.alert msg , i can get the data but unordered.??

Any clue?
ty.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Multiple Languages , Locale

2008-12-08 Thread jake H

Hello , i m playing these days with the locale and trying to import to
my application more than one language.
I successfully created the properties files etc , edit the xml file
etc etc.

I want to ask how can i change the default language.
And secondly if i can change the default language dynamically.

For example , i have a form in which the user , chooses the language
he prefers to use. How can i modify the .xml file and change the
default language to the new one by the time user saves the form?


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



Re: Gwt + Html Templates

2008-12-08 Thread jake H

Ty a lot!!!
I quite understand how to manipulate with elements etc, but I m little
bit frustrated how can i implement this with DockPanel.

menu.java
---
 public static DockPanel outer1 = new DockPanel();

  public static final Images images = GWT.create(Images.class);
  public TopPanel topPanel = new TopPanel(images);
  public AristeroMenu new2 = new AristeroMenu(images);
  public static DexiMenu new1 = new DexiMenu("test");

public void onModuleLoad() {

topPanel.setWidth("100%");
new2.setWidth("70%");
new1.setWidth("100%");

outer1.add(topPanel, DockPanel.NORTH);
outer1.add(new2, DockPanel.WEST);
outer1.add(new1, DockPanel.CENTER);
outer1.setWidth("100%");

outer1.setSpacing(4);
RootPanel.get().add(outer1);
 }




 And i m wondering how to do this.
Is this correct?

  RootPanel.get("header").add(outer1.add(topPanel, DockPanel.NORTH));
 RootPanel.get("left").add(outer1.add(new2, DockPanel.WEST));
 RootPanel.get("center").add(outer1.add(new1, DockPanel.CENTER));

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



Gwt + Html Templates

2008-12-05 Thread jake H

Hello  i have made a simple template with the use of dockpanel etc
like the mail application.
Sth like this


   1 |
--
 | |
2   |3   |
| |
--

Even though it is what i was thinking of , its insufficient of lack of
design.
So i m asking if it is possible to find a html template for example,
that are plenty in the market, with this format
and incorporate it into my GWT application. And if this is possible,
how can i do that
Ty.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: implement Rest with RequestBuilder

2008-12-03 Thread jake H

sry for the late reply,
but nice answer !
ty.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Change Browser Address Dynamically

2008-12-03 Thread jake H

or u can use
Window.Location.assign(url);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Dockpanel question

2008-11-25 Thread jake H

This seems to work fine!!!
ty gregor


One question about DockPanels.

Is it possible to do sth like that?

outer.remove(DockPanel.CENTER.widget)
in case u arent sure about the panel u set in the center.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Dockpanel question

2008-11-25 Thread jake H

I m certain that is possible to do sth like that with Dockpanels.
Any one that can help?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Dockpanel question

2008-11-24 Thread jake H

 Hello i m trying to make a page like the mail application.
What i want look like this one

---
|1   |
|-|
|   ||
|   ||
|   2  |3   |
|   ||
|   ||
||___|

1 and 2 are static but in 3 frame i want to be refreshed any time i m
pressing a treeItem from 2 menu.
This is how i m trying to make this happen.

First.java


 private TopPanel topPanel = new TopPanel();
  private SecondMenu new2 = new SecondMenu();
  private ThirdMenu new1 = new ThirdMenu("example");
  public void onModuleLoad() {

topPanel.setWidth("100%");
new2.setWidth("100%");
new1.setWidth("100%");

DockPanel outer = new DockPanel();
outer.add(topPanel, DockPanel.NORTH);
outer.add(new2, DockPanel.WEST);
outer.add(new1, DockPanel.CENTER);
outer.setWidth("100%");

outer.setSpacing(4);
 RootPanel.get().add(outer);


By using this, it is created a page like the one i want

Inside the SecondMenu i have made a TreeListener which force the
ThirdMenu to be redisned again after a TreeItem is pressed. This the
code


SecondMenu.java


tree.addTreeListener(new TreeListener(){
 public void onTreeItemSelected(TreeItem item) {
  ThirdMenu neo = new ThirdMenu(item.getText());
 }
  public void onTreeItemStateChanged(TreeItem item) {
if (item.getState()){
//  currChapter.setText(item.getText());
}
 }


In the thirdmenu so far , i just print in the its region what user
parses.

However when i try to do that nothing happened. It seems that the menu
i created is a static one and nothing changes.
So indide the ThirdMenu i put this:   RootPanel.get().clear();  and
then printing the argument

But the result is a blank page with no menus at all , neither Toppanel
nor secondmenu.

Any help?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: implement Rest with RequestBuilder

2008-11-17 Thread jake H

ty a lot !!
One question about doDelete.
What am i supposed to write for 'RESTRequestCallback restCallback'


private class RESTRequestCallback implements RequestCallback {
public void onError(Request request, Throwable exception) {
 }

public void onResponseReceived(Request request, Response response)
{
}
  }



as usual??

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



implement Rest with RequestBuilder

2008-11-14 Thread jake H

Hello ,
I m trying to implement Rest 'commands' , like PUT or DELETE with
RequestBuilder.
As much as i read, i saw that we can avoid them by using POST and
modifying the header. Can someone share an example?

Secondly i came accross with this

public class DeleteRequestBuilder extends RequestBuilder {
public DeleteRequestBuilder(String url) {
 super("DELETE", url);

  }
}


In manning's book GWT in Practice. Any idea how it can be used?

Something like that?

DeleteRequestBuilder requestBuilder = new DeleteRequestBuilder(url);
try {
 //data
  requestBuilder.sendRequest(data_to_deleted?, new
ResponseTextHandler());
   ..





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



treeItem nodes dynamically creating

2008-11-13 Thread jake H

Hello ,
recently i m trying to create an application , which aims to design
the whole tree of a json file.
The default json file is given. after having it read it i create the
first tree sample like

root
=>A
=>B
=>C


But children theirself is a link for another json request. According
to current implementation
when a user presses A , by using an onClick label , it reloads the
page as follows
root ( A )
=> child of A1
=> child of A2

the children might can be pressed also.

Anyway , i m wondering how i can create the children as nodes and then
by pressing the cross (+) , like a tree ,  to get the specific json
file above it parent like the example.
I want to do this one

Same page
root
==> + A   // pressing node
==> +B
==> +C

Then
root
==> -A
> +A1child
> A2child
==> +B
==> +C

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