Re: Error in MapWidget

2011-03-22 Thread Ahmed Shoeib
i tried this but the problem not solved

pleas help me to solve this issue ???

On Mar 15, 4:30 pm, Eric Ayers zun...@google.com wrote:
 Did you try the options in this FAQ?

 http://code.google.com/p/gwt-google-apis/wiki/MapsFAQ#Why_is_my_map_s...

 On Mon, Mar 14, 2011 at 5:25 AM, Ahmed Shoeib



 ahmedelsayed.sho...@gmail.com wrote:
  hi all,

  i am trying to addMapWidgetto VerticalPanel but the map added on the
  left corner

  the image
 http://www.4shared.com/photo/zSoEo2LB/Screenshot.html

  and i added marker and the marker should be centered on the image
  i can't see the marker when i load the map . i should navigate to this
  location to show map

  the code for this
  -

  private FormPanel form = new FormPanel();
  private VerticalPanel main = new VerticalPanel();

  public Map(){

  ScrollPanel container = new ScrollPanel();
                 initWidget(container);
                 container.setStyleName(FuoEgForm);
                 form.setWidget(main);
                 main.setSpacing(6);

                 container.add(main);
  }

  publicMapWidgetaddMapWidget(){

                 MapWidgetmap = newMapWidget();

             //map.setSize(100%, 100%);
             map.setStyleName(gwt-map);
             map.removeMapType(MapType.getNormalMap());
             map.removeMapType(MapType.getSatelliteMap());
             map.addMapType(MapType.getPhysicalMap());
             map.addMapType(MapType.getHybridMap());
             map.setCurrentMapType(MapType.getHybridMap());

             //map.setSize(100%, 100%);
             map.setWidth(500px);
             map.setHeight(500px);
             main.add(map);

         }

  how can i solve this issue . the map should fill the gray
  boundary  ???

  thanks for help .

  regards,
  ahmed shoeib
  GWT developer

  --
  You received 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 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Eric Z. Ayers
 Google Web Toolkit, Atlanta, GA USA

-- 
You received 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: Error in MapWidget

2011-03-22 Thread Ahmed Shoeib
i tried to remove adding scroll and form but nothing happen
the problem still present.


On Mar 22, 4:51 pm, Eric Ayers zun...@google.com wrote:
 Is there something wrong with the widget hierarchy?  I'm not 100% sure
 this is the problem, but it looks like you add 'main' to both the
 FormPanel and the ScrollPanel.  That doesn't seem right to me.

 On Tue, Mar 22, 2011 at 10:18 AM, Ahmed Shoeib



 ahmedelsayed.sho...@gmail.com wrote:
  i tried this but the problem not solved

  pleas help me to solve this issue ???

  On Mar 15, 4:30 pm, Eric Ayers zun...@google.com wrote:
  Did you try the options in this FAQ?

 http://code.google.com/p/gwt-google-apis/wiki/MapsFAQ#Why_is_my_map_s...

  On Mon, Mar 14, 2011 at 5:25 AM, Ahmed Shoeib

  ahmedelsayed.sho...@gmail.com wrote:
   hi all,

   i am trying to addMapWidgetto VerticalPanel but the map added on the
   left corner

   the image
  http://www.4shared.com/photo/zSoEo2LB/Screenshot.html

   and i added marker and the marker should be centered on the image
   i can't see the marker when i load the map . i should navigate to this
   location to show map

   the code for this
   -

   private FormPanel form = new FormPanel();
   private VerticalPanel main = new VerticalPanel();

   public Map(){

   ScrollPanel container = new ScrollPanel();
                  initWidget(container);
                  container.setStyleName(FuoEgForm);
                  form.setWidget(main);
                  main.setSpacing(6);

                  container.add(main);
   }

   publicMapWidgetaddMapWidget(){

                  MapWidgetmap = newMapWidget();

              //map.setSize(100%, 100%);
              map.setStyleName(gwt-map);
              map.removeMapType(MapType.getNormalMap());
              map.removeMapType(MapType.getSatelliteMap());
              map.addMapType(MapType.getPhysicalMap());
              map.addMapType(MapType.getHybridMap());
              map.setCurrentMapType(MapType.getHybridMap());

              //map.setSize(100%, 100%);
              map.setWidth(500px);
              map.setHeight(500px);
              main.add(map);

          }

   how can i solve this issue . the map should fill the gray
   boundary  ???

   thanks for help .

   regards,
   ahmed shoeib
   GWT developer

   --
   You received 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 
   athttp://groups.google.com/group/google-web-toolkit?hl=en.

  --
  Eric Z. Ayers
  Google Web Toolkit, Atlanta, GA USA

  --
  You received 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 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Eric Z. Ayers
 Google Web Toolkit, Atlanta, GA USA

-- 
You received 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.



Sorting CellTable

2011-03-21 Thread Ahmed Shoeib
hi all,
i tried to execute this code (
http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellTable.html#columnSorting
)

to enable sorting to cellTable but i face error in it.
can any one help me with a simple example to show me how to sort
cellTable ( may contain anchor ) ??

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



Re: Sorting CellTable

2011-03-21 Thread Ahmed Shoeib
i have a problem @this line
Collections.sort(CONTACTS, new ComparatorTester.Contact() {


the error
The method sort(ListT, Comparator? super T) in the type
Collections is not applicable for the arguments
(ListCellTableExample.Contact, new ComparatorTester.Contact(){})

On Mar 21, 10:34 am, Albert Lacambra alacam...@gmail.com wrote:
 Hi,

 Try using this example. It works fine and you have the hole code.

 Hope that helps,
 al

 On 21 March 2011 09:14, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

  hi all,
  i tried to execute this code (

 http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellTable.html...
  )

  to enable sorting to cellTable but i face error in it.
  can any one help me with a simple example to show me how to sort
  cellTable ( may contain anchor ) ??

  please 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
  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-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: Sorting CellTable

2011-03-21 Thread Ahmed Shoeib
thank junaid and Albert
i found the problem in my code and solved .
thanks for help.

On Mar 21, 3:19 pm, junaid juna...@gmail.com wrote:
 here is the code for 
 paginationhttp://learneverywhere.wordpress.com/java/gwt/pagination-in-gwt-cell-...
 try it , it worked for me
 On Mon, Mar 21, 2011 at 9:04 AM, Ahmed Shoeib ahmedelsayed.sho...@gmail.com

  wrote:
  i have a problem @this line
  Collections.sort(CONTACTS, new ComparatorTester.Contact() {

  the error
  The method sort(ListT, Comparator? super T) in the type
  Collections is not applicable for the arguments
  (ListCellTableExample.Contact, new ComparatorTester.Contact(){})

  On Mar 21, 10:34 am, Albert Lacambra alacam...@gmail.com wrote:
   Hi,

   Try using this example. It works fine and you have the hole code.

   Hope that helps,
   al

   On 21 March 2011 09:14, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
  wrote:

hi all,
i tried to execute this code (

   http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellTable.html.
  ..
     )

to enable sorting to cellTable but i face error in it.
can any one help me with a simple example to show me how to sort
cellTable ( may contain anchor ) ??

please 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
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-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.

-- 
You received 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.



FlexTable inquiry

2011-03-15 Thread Ahmed Shoeib
i want to sort FlexTable if the user click on any cell in the header


note:
the table may contain anchor.
cause i found some class but not support anchor. and i failed to
support it in this code .


please help 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-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.



Error in MapWidget

2011-03-14 Thread Ahmed Shoeib
hi all,

i am trying to add MapWidget to VerticalPanel but the map added on the
left corner

the image
http://www.4shared.com/photo/zSoEo2LB/Screenshot.html

and i added marker and the marker should be centered on the image
i can't see the marker when i load the map . i should navigate to this
location to show map


the code for this
-

private FormPanel form = new FormPanel();
private VerticalPanel main = new VerticalPanel();

public Map(){

ScrollPanel container = new ScrollPanel();
initWidget(container);
container.setStyleName(FuoEgForm);
form.setWidget(main);
main.setSpacing(6);


container.add(main);
}

public MapWidget addMapWidget(){


MapWidget map = new MapWidget();

//map.setSize(100%, 100%);
map.setStyleName(gwt-map);
map.removeMapType(MapType.getNormalMap());
map.removeMapType(MapType.getSatelliteMap());
map.addMapType(MapType.getPhysicalMap());
map.addMapType(MapType.getHybridMap());
map.setCurrentMapType(MapType.getHybridMap());

//map.setSize(100%, 100%);
map.setWidth(500px);
map.setHeight(500px);
main.add(map);


}


how can i solve this issue . the map should fill the gray
boundary  ???

thanks for help .


regards,
ahmed shoeib
GWT developer

-- 
You received 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.



Error Using GeoCode with GW2.2

2011-02-16 Thread Ahmed Shoeib
hi all,

when adding GeoCode lib ( 
http://code.google.com/p/gwt-google-apis/wiki/Downloads?tm=2
)
To GWT Application ( using GWT2.2)

i face this problem . and this lib work and the application compile
with GWT2.1.1


how can i solve it ??

the error happen if i need to compile the application with GWT2.2

Compiling module com.empresto.hockeytoronto.HockeyToronto_MVP
   [ERROR] Errors in 'jar:file:/home/sho3ebovich/workspace/
HockeyToronto%20MVP/war/WEB-INF/lib/gwt-maps-noredist.jar!/com/google/
gwt/maps/client/impl/GeocoderImpl.java'
  [ERROR]  Internal compiler error
java.lang.IncompatibleClassChangeError: Found interface
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
at
com.google.gwt.maps.jsio.rebind.JSWrapperGenerator.generate(JSWrapperGenerator.java:
277)
at
com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:
48)
at
com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:
60)
at
com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:
662)
at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
41)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:74)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
259)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
248)
at
com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:
91)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
106)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:175)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:288)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access
$400(AbstractCompiler.java:145)
at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
632)
at
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:
124)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:
54)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
517)
at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
35)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:541)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
at com.google.gwt.dev.Compiler.run(Compiler.java:215)
at com.google.gwt.dev.Compiler.run(Compiler.java:187)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
87)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
at com.google.gwt.dev.Compiler.main(Compiler.java:166)

[ERROR] Unexpected
java.lang.IncompatibleClassChangeError: Found interface
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
at
com.google.gwt.maps.jsio.rebind.JSWrapperGenerator.generate(JSWrapperGenerator.java:
277)
at
com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:
48)
at
com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:
60)
at
com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:
662)
at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
41)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:74)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
259)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
248)
at
com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:
91)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
106)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
444)
at 

Re: Error Using GeoCode with GW2.2

2011-02-16 Thread Ahmed Shoeib
thanks Brian for this reply

On Feb 16, 3:57 pm, Brian Reilly brian.irei...@gmail.com wrote:
 Unfortunately, GWT 2.2 introduced an incompatibility for many
 libraries that rely on code generators. This includes the
 gwt-google-apis project, GIN, and at least one other that I know of.
 The only solution I know of right now is to compile your own versions
 of these libraries against GWT 2.2.

 Eventually, each library should either provide builds for GWT =2.1.1
 and GWT =2.2 or a single build that somehow works with both. However,
 that's up to the individual project maintainers. In the mean time, you
 can either build compatible versions yourself or hold off on upgrading
 to GWT 2.2.

 -Brian

 On Wed, Feb 16, 2011 at 6:11 AM, Ahmed Shoeib







 ahmedelsayed.sho...@gmail.com wrote:
  hi all,

  when adding GeoCode lib 
  (http://code.google.com/p/gwt-google-apis/wiki/Downloads?tm=2
  )
  To GWT Application ( using GWT2.2)

  i face this problem . and this lib work and the application compile
  with GWT2.1.1

  how can i solve it ??

  the error happen if i need to compile the application with GWT2.2
  --- 
  -
  Compiling module com.empresto.hockeytoronto.HockeyToronto_MVP
    [ERROR] Errors in 'jar:file:/home/sho3ebovich/workspace/
  HockeyToronto%20MVP/war/WEB-INF/lib/gwt-maps-noredist.jar!/com/google/
  gwt/maps/client/impl/GeocoderImpl.java'
       [ERROR]  Internal compiler error
  java.lang.IncompatibleClassChangeError: Found interface
  com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
         at
  com.google.gwt.maps.jsio.rebind.JSWrapperGenerator.generate(JSWrapperGenera 
  tor.java:
  277)
         at
  com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.ja 
  va:
  48)
         at
  com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(Generator 
  ExtWrapper.java:
  60)
         at
  com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally 
  (StandardGeneratorContext.java:
  662)
         at
  com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
  41)
         at com.google.gwt.dev.shell.StandardRebindOracle
  $Rebinder.rebind(StandardRebindOracle.java:74)
         at
  com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j 
  ava:
  259)
         at
  com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j 
  ava:
  248)
         at
  com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAns 
  wers(DistillerRebindPermutationOracle.java:
  91)
         at
  com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRe 
  binds(WebModeCompilerFrontEnd.java:
  106)
         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
  $CompilerImpl.process(AbstractCompiler.java:254)
         at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
  444)
         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
  $CompilerImpl.compile(AbstractCompiler.java:175)
         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
  $CompilerImpl.compile(AbstractCompiler.java:288)
         at 
  com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access
  $400(AbstractCompiler.java:145)
         at
  com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
  632)
         at
  com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations( 
  BasicWebModeCompiler.java:
  124)
         at
  com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclaratio 
  ns(WebModeCompilerFrontEnd.java:
  54)
         at
  com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScript 
  Compiler.java:
  517)
         at
  com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.jav 
  a:
  35)
         at com.google.gwt.dev.Precompile.precompile(Precompile.java:541)
         at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
         at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
         at com.google.gwt.dev.Compiler.run(Compiler.java:215)
         at com.google.gwt.dev.Compiler.run(Compiler.java:187)
         at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
         at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
  87)
         at
  com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu 
  nner.java:
  81)
         at com.google.gwt.dev.Compiler.main(Compiler.java:166)

  [ERROR] Unexpected
  java.lang.IncompatibleClassChangeError: Found interface
  com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
         at
  com.google.gwt.maps.jsio.rebind.JSWrapperGenerator.generate(JSWrapperGenera 
  tor.java:
  277)
         at
  com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.ja 
  va:
  48)
         at
  com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally

htmlPanel

2011-01-05 Thread Ahmed Shoeib
hi all,

now i made my code form using html and Added it to HtmlPanel()
now i need to get this html response and handle it on my client.

can i make this step or not ?
and if not what is the best way to do 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.



GWT TimeSpinner

2011-01-02 Thread Ahmed Shoeib
i tried to use incubator to use TimeSpinner:
http://code.google.com/p/google-web-toolkit-incubator/wiki/Spinner

but i found that TimePicker Deprecated

How Can i solve this problem ??

-- 
You received 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.



TimeSpinner in GWT.

2010-12-30 Thread Ahmed Shoeib
hi all,

i need an example to explain how to make TimeSpinner in GWT.

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: TimeSpinner in GWT.

2010-12-30 Thread Ahmed Shoeib
i tried to use it by i found that TimePicker deprecated
how to solve this problem ?

On Dec 30, 12:13 pm, Nirmal Patel nirmaljpa...@gmail.com wrote:
 Check this one in the 
 incubator:http://code.google.com/p/google-web-toolkit-incubator/wiki/Spinner

-- 
You received 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.



Java Mail API Error

2010-12-27 Thread Ahmed Shoeib
Compiling module com.fuoeg.testMail.TestMailAPI
   Validating newly compiled units
  [ERROR] Errors in 'file:/home/sho3ebovich/workspace/testMailAPI/
src/com/fuoeg/testMail/client/RootScreen.java'
 [ERROR] Line 53: No source code is available for type
java.util.Properties; did you forget to inherit a required module?
 [ERROR] Line 54: No source code is available for type
javax.mail.Session; did you forget to inherit a required module?
 [ERROR] Line 58: No source code is available for type
javax.mail.Message; did you forget to inherit a required module?
 [ERROR] Line 58: No source code is available for type
javax.mail.internet.MimeMessage; did you forget to inherit a required
module?
 [ERROR] Line 59: No source code is available for type
javax.mail.internet.InternetAddress; did you forget to inherit a
required module?
 [ERROR] Line 60: No source code is available for type
javax.mail.Message.RecipientType; did you forget to inherit a required
module?
 [ERROR] Line 64: No source code is available for type
javax.mail.Transport; did you forget to inherit a required module?
 [ERROR] Line 66: No source code is available for type
javax.mail.internet.AddressException; did you forget to inherit a
required module?
 [ERROR] Line 68: No source code is available for type
javax.mail.MessagingException; did you forget to inherit a required
module?

-- 
You received 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: Java Mail API Error

2010-12-27 Thread Ahmed Shoeib
thanks Jason

On Dec 27, 4:59 pm, Jason Essington jas...@greenrivercomputing.com
wrote:
 You cannot send email from the client portion of a GWT application. You can 
 only email from the server side portion.
 The errors indicate that you were trying to use javamail from the client 
 portion.

 On Dec 27, 2010, at 7:37 AM, Ahmed Shoeib ahmedelsayed.sho...@gmail.com 
 wrote:

  Compiling module com.fuoeg.testMail.TestMailAPI
    Validating newly compiled units
       [ERROR] Errors in 'file:/home/sho3ebovich/workspace/testMailAPI/
  src/com/fuoeg/testMail/client/RootScreen.java'
          [ERROR] Line 53: No source code is available for type
  java.util.Properties; did you forget to inherit a required module?
          [ERROR] Line 54: No source code is available for type
  javax.mail.Session; did you forget to inherit a required module?
          [ERROR] Line 58: No source code is available for type
  javax.mail.Message; did you forget to inherit a required module?
          [ERROR] Line 58: No source code is available for type
  javax.mail.internet.MimeMessage; did you forget to inherit a required
  module?
          [ERROR] Line 59: No source code is available for type
  javax.mail.internet.InternetAddress; did you forget to inherit a
  required module?
          [ERROR] Line 60: No source code is available for type
  javax.mail.Message.RecipientType; did you forget to inherit a required
  module?
          [ERROR] Line 64: No source code is available for type
  javax.mail.Transport; did you forget to inherit a required module?
          [ERROR] Line 66: No source code is available for type
  javax.mail.internet.AddressException; did you forget to inherit a
  required module?
          [ERROR] Line 68: No source code is available for type
  javax.mail.MessagingException; did you forget to inherit a required
  module?

  --
  You received 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.



com.google.appengine can't be resolved

2010-12-20 Thread Ahmed Shoeib
now i want to use this bean class outside server package
but i face problem during compilation with ( com.google.appengine )
that can't be resolved.

@PersistenceCapable(identityType = IdentityType.APPLICATION,
detachable = true)
public class HTNews {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key id;
@Persistent
private String name;
@Persistent
private String linkUrl;
@Persistent
private BlobKey imageKey;
.


is there any way to do that ??
please 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-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.



Serve image from blob store

2010-12-20 Thread Ahmed Shoeib

hi all,
i want to get image from blobstore using this code

// Serve image from blob store
BlobKey blobKey = new BlobKey(req.getParameter(apikey));
blobstoreService.serve(blobKey, resp);

and facing this problem

HTTP ERROR 500

Problem accessing /api/news/serve. Reason:

WRITER

Caused by:

java.lang.IllegalStateException: WRITER
at org.mortbay.jetty.Response.getOutputStream(Response.java:594)
at
javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:
105)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.serveBlob(ServeBlobFilter.java:
169)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
62)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:349)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:923)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)

-- 
You received 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: com.google.appengine can't be resolved

2010-12-20 Thread Ahmed Shoeib
the Error in using BlobKey that want to import com.google.appengine

how can i solve it ?

On Dec 20, 10:50 pm, A. Stevko andy.ste...@gmail.com wrote:
 The reason your class instances are not available outside of the app engine
 jvm is that they have been altered/instrumented by the persistence manager.
 See step 3 of this 
 tutorialhttp://www.datanucleus.org/products/accessplatform_1_0/guides/jdo/tut...
 http://www.datanucleus.org/products/accessplatform_1_0/guides/jdo/tut...
 There are several approaches to designing around this requirement.
 For pure java - create Data Transfer Objects that match your persistent
 classses. I do this because it provides fine control of the externally
 visible model and not expose the entire internal model.
 Another approach is to use 
 Objectifyhttp://code.google.com/p/objectify-appengine/
 Other people like Gileadhttp://sourceforge.net/projects/gilead/

 On Mon, Dec 20, 2010 at 12:29 AM, Ahmed Shoeib 

 ahmedelsayed.sho...@gmail.com wrote:
  now i want to use this bean class outside server package
  but i face problem during compilation with ( com.google.appengine )
  that can't be resolved.

  @PersistenceCapable(identityType = IdentityType.APPLICATION,
  detachable = true)
  public class HTNews {

        �...@primarykey
        �...@persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
         private Key id;
        �...@persistent
         private String name;
        �...@persistent
         private String linkUrl;
        �...@persistent
         private BlobKey imageKey;
  .

  is there any way to do that ??
  please 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-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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Serve image from blob store

2010-12-20 Thread Ahmed Shoeib
ok thanks

On Dec 20, 4:25 pm, Matthew Hill matt2...@gmail.com wrote:
 Try the Google App Engine group:

 https://groups.google.com/forum/#!forum/google-appengine

 or the GAE Java group.

-- 
You received 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 keep row selected after pagination grid refresh?

2010-11-23 Thread Ahmed Shoeib
Thanks for your help

On Nov 22, 3:50 am, John LaBanca jlaba...@google.com wrote:
 @ahmedelsayed.shoeib -

 Are you using a CellTable?  If so, you can push new data into a row to
 refresh it:
 myCellTable.setRowData(rowIndexToRefresh,
 Collections.singletonList(valueToRefresh));

 Thanks,
 John LaBanca
 jlaba...@google.com

 On Sun, Nov 21, 2010 at 3:19 PM, Ahmed Shoeib ahmedelsayed.sho...@gmail.com

  wrote:
  i don't use gwt-ext
  i use gwt
  how can refresh selected Row ??

  On Nov 21, 1:35 am, Blagoja Chavkoski baze...@gmail.com wrote:
   This question is for ext gwt forum, but i had implemented some code close
  to
   this one, and I had the same problem!!
   Its interesting that I notised the problem is on adding the html css
  style
   for the selected row..its just not showing,
   the related model row is correct and all related listeners are
  fired...but
   the view row style is never set or set and cleared...
   I investigated in the GridView class but till that point all was ok and
   fired prop ..it looks like something is going on after that..
   the relation between gwt(resp for the css styles adding in widget, and
  the
   component class extension from ext) but no
   time to spent more and just continue without it..:)

   regards and hope u gonna solve it,
   if u do..u can notify here also...

   B

   On Sun, Nov 21, 2010 at 12:07 AM, John LaBanca jlaba...@google.com
  wrote:
It sounds like you are using gwt-ext.  Have you tried posting your
  question
on their forum?

Thanks,
John LaBanca
jlaba...@google.com

On Sat, Nov 20, 2010 at 11:48 AM, Ahmed Shoeib 
ahmedelsayed.sho...@gmail.com wrote:

i also need to know how to refresh a row with specific Object

On Nov 19, 10:35 am, Tomeo tke...@gmail.com wrote:
 Hi folks,

 I have a below a simple scenario:

 1. I have a grid populated with data
 2. I select any 1 row from grid - data with a specific Object
 Id [internal id]
 3. I press a refresh button from a paginationToolbar
 4. data are refreshed
 5. no row from grid is being selected.

 Question 1:
 How can I change a step 5, so after refresh a row with specific
  Object
 Id (from step 2) would be automaticaly selected?

 I tried to implement a LoadListener to loader, but it seems like I'm
 incorrectly selecting a row from my grid.
 Here is a bit of my code:

 1. A global variable of type Zakazka to store a Zakazka before
 refresh occures (the one which should be selected after refresh):
 Code:

 private Zakazka selectedZakazka;

 2. Here is my grid definition with loader's load listener
 Code:

       RpcProxyPagingLoadResultZakazka proxy = new
 RpcProxyPagingLoadResultZakazka() {
         @Override
         public void load(Object loadConfig,
 AsyncCallbackPagingLoadResultZakazka callback) {
             Tracing.Log(ZakazkyAktivne.RpcProxy.load.before);
             service.getZakazky((PagingLoadConfig) loadConfig,
 callback);
             Tracing.Log(ZakazkyAktivne.RpcProxy.load.after);
         }
       };

       // loader
       final PagingLoaderPagingLoadResultModelData loader = new
 BasePagingLoaderPagingLoadResultModelData(proxy);
       loader.setRemoteSort(true);

       ListStoreZakazka store = new ListStoreZakazka(loader);
       pagingToolBar = new PagingToolBar(50);
       pagingToolBar.bind(loader);

       ListColumnConfig columns = new ArrayListColumnConfig();
       columns.add(new ColumnConfig(object_id, Object Id, 80));
       columns.add(new ColumnConfig(cislo_dokladu, Èíslo dokladu,
 100));
       ColumnConfig created = new ColumnConfig(created, Dátum
 vytvorenia, 105);
       created.setDateTimeFormat(DateTimeFormat.getFormat(dd.MM.
 HH:mm:ss));
       columns.add(created);
       columns.add(new ColumnConfig(objednavatel, Objednavatel,
 120));
       columns.add(new ColumnConfig(stredisko, Stredisko, 150));
       columns.add(new ColumnConfig(stav_zakazky_id, Id stavu
 zakazky, 60));
       columns.add(new ColumnConfig(stav_zakazky_kod, Kód stavu
 zakazky, 100));
       columns.add(new ColumnConfig(stav_zakazky, Stav zakazky,
 100));
       columns.add(new ColumnConfig(stav_zakazky_zmenil_uziv_meno,
 Zakazku zmìnil, 100));
       ColumnConfig updated = new ColumnConfig(stav_zakazky_zmena,
 Dátum zmìny, 105);
       updated.setDateTimeFormat(DateTimeFormat.getFormat(dd.MM.
 HH:mm:ss));
       columns.add(updated);

       ColumnModel cm = new ColumnModel(columns);

       gridZakazka = new GridZakazka(store, cm);
       gridZakazka.setStateId(pagingGridExample);
       gridZakazka.setStateful(true);
       gridZakazka.addListener(Events.Attach, new
 ListenerGridEventZakazka() {
         public void handleEvent(GridEventZakazka

Re: How to keep row selected after pagination grid refresh?

2010-11-21 Thread Ahmed Shoeib
i don't use gwt-ext
i use gwt
how can refresh selected Row ??

On Nov 21, 1:35 am, Blagoja Chavkoski baze...@gmail.com wrote:
 This question is for ext gwt forum, but i had implemented some code close to
 this one, and I had the same problem!!
 Its interesting that I notised the problem is on adding the html css style
 for the selected row..its just not showing,
 the related model row is correct and all related listeners are fired...but
 the view row style is never set or set and cleared...
 I investigated in the GridView class but till that point all was ok and
 fired prop ..it looks like something is going on after that..
 the relation between gwt(resp for the css styles adding in widget, and the
 component class extension from ext) but no
 time to spent more and just continue without it..:)

 regards and hope u gonna solve it,
 if u do..u can notify here also...

 B

 On Sun, Nov 21, 2010 at 12:07 AM, John LaBanca jlaba...@google.com wrote:
  It sounds like you are using gwt-ext.  Have you tried posting your question
  on their forum?

  Thanks,
  John LaBanca
  jlaba...@google.com

  On Sat, Nov 20, 2010 at 11:48 AM, Ahmed Shoeib 
  ahmedelsayed.sho...@gmail.com wrote:

  i also need to know how to refresh a row with specific Object

  On Nov 19, 10:35 am, Tomeo tke...@gmail.com wrote:
   Hi folks,

   I have a below a simple scenario:

   1. I have a grid populated with data
   2. I select any 1 row from grid - data with a specific Object
   Id [internal id]
   3. I press a refresh button from a paginationToolbar
   4. data are refreshed
   5. no row from grid is being selected.

   Question 1:
   How can I change a step 5, so after refresh a row with specific Object
   Id (from step 2) would be automaticaly selected?

   I tried to implement a LoadListener to loader, but it seems like I'm
   incorrectly selecting a row from my grid.
   Here is a bit of my code:

   1. A global variable of type Zakazka to store a Zakazka before
   refresh occures (the one which should be selected after refresh):
   Code:

   private Zakazka selectedZakazka;

   2. Here is my grid definition with loader's load listener
   Code:

         RpcProxyPagingLoadResultZakazka proxy = new
   RpcProxyPagingLoadResultZakazka() {
           @Override
           public void load(Object loadConfig,
   AsyncCallbackPagingLoadResultZakazka callback) {
               Tracing.Log(ZakazkyAktivne.RpcProxy.load.before);
               service.getZakazky((PagingLoadConfig) loadConfig,
   callback);
               Tracing.Log(ZakazkyAktivne.RpcProxy.load.after);
           }
         };

         // loader
         final PagingLoaderPagingLoadResultModelData loader = new
   BasePagingLoaderPagingLoadResultModelData(proxy);
         loader.setRemoteSort(true);

         ListStoreZakazka store = new ListStoreZakazka(loader);
         pagingToolBar = new PagingToolBar(50);
         pagingToolBar.bind(loader);

         ListColumnConfig columns = new ArrayListColumnConfig();
         columns.add(new ColumnConfig(object_id, Object Id, 80));
         columns.add(new ColumnConfig(cislo_dokladu, Èíslo dokladu,
   100));
         ColumnConfig created = new ColumnConfig(created, Dátum
   vytvorenia, 105);
         created.setDateTimeFormat(DateTimeFormat.getFormat(dd.MM.
   HH:mm:ss));
         columns.add(created);
         columns.add(new ColumnConfig(objednavatel, Objednavatel,
   120));
         columns.add(new ColumnConfig(stredisko, Stredisko, 150));
         columns.add(new ColumnConfig(stav_zakazky_id, Id stavu
   zakazky, 60));
         columns.add(new ColumnConfig(stav_zakazky_kod, Kód stavu
   zakazky, 100));
         columns.add(new ColumnConfig(stav_zakazky, Stav zakazky,
   100));
         columns.add(new ColumnConfig(stav_zakazky_zmenil_uziv_meno,
   Zakazku zmìnil, 100));
         ColumnConfig updated = new ColumnConfig(stav_zakazky_zmena,
   Dátum zmìny, 105);
         updated.setDateTimeFormat(DateTimeFormat.getFormat(dd.MM.
   HH:mm:ss));
         columns.add(updated);

         ColumnModel cm = new ColumnModel(columns);

         gridZakazka = new GridZakazka(store, cm);
         gridZakazka.setStateId(pagingGridExample);
         gridZakazka.setStateful(true);
         gridZakazka.addListener(Events.Attach, new
   ListenerGridEventZakazka() {
           public void handleEvent(GridEventZakazka be) {
             PagingLoadConfig config = new BasePagingLoadConfig();
             config.setOffset(0);
             config.setLimit(50);

             MapString, Object state = gridZakazka.getState();
             if (state.containsKey(offset)) {
               int offset = (Integer)state.get(offset);
               int limit = (Integer)state.get(limit);
               config.setOffset(offset);
               config.setLimit(limit);
             }
             if (state.containsKey(sortField)) {
               config.setSortField((String)state.get(sortField));

   config.setSortDir(SortDir.valueOf((String)state.get(sortDir

Re: How to keep row selected after pagination grid refresh?

2010-11-20 Thread Ahmed Shoeib
i also need to know how to refresh a row with specific Object

On Nov 19, 10:35 am, Tomeo tke...@gmail.com wrote:
 Hi folks,

 I have a below a simple scenario:

 1. I have a grid populated with data
 2. I select any 1 row from grid - data with a specific Object
 Id [internal id]
 3. I press a refresh button from a paginationToolbar
 4. data are refreshed
 5. no row from grid is being selected.

 Question 1:
 How can I change a step 5, so after refresh a row with specific Object
 Id (from step 2) would be automaticaly selected?

 I tried to implement a LoadListener to loader, but it seems like I'm
 incorrectly selecting a row from my grid.
 Here is a bit of my code:

 1. A global variable of type Zakazka to store a Zakazka before
 refresh occures (the one which should be selected after refresh):
 Code:

 private Zakazka selectedZakazka;

 2. Here is my grid definition with loader's load listener
 Code:

       RpcProxyPagingLoadResultZakazka proxy = new
 RpcProxyPagingLoadResultZakazka() {
         @Override
         public void load(Object loadConfig,
 AsyncCallbackPagingLoadResultZakazka callback) {
             Tracing.Log(ZakazkyAktivne.RpcProxy.load.before);
             service.getZakazky((PagingLoadConfig) loadConfig,
 callback);
             Tracing.Log(ZakazkyAktivne.RpcProxy.load.after);
         }
       };

       // loader
       final PagingLoaderPagingLoadResultModelData loader = new
 BasePagingLoaderPagingLoadResultModelData(proxy);
       loader.setRemoteSort(true);

       ListStoreZakazka store = new ListStoreZakazka(loader);
       pagingToolBar = new PagingToolBar(50);
       pagingToolBar.bind(loader);

       ListColumnConfig columns = new ArrayListColumnConfig();
       columns.add(new ColumnConfig(object_id, Object Id, 80));
       columns.add(new ColumnConfig(cislo_dokladu, Èíslo dokladu,
 100));
       ColumnConfig created = new ColumnConfig(created, Dátum
 vytvorenia, 105);
       created.setDateTimeFormat(DateTimeFormat.getFormat(dd.MM.
 HH:mm:ss));
       columns.add(created);
       columns.add(new ColumnConfig(objednavatel, Objednavatel,
 120));
       columns.add(new ColumnConfig(stredisko, Stredisko, 150));
       columns.add(new ColumnConfig(stav_zakazky_id, Id stavu
 zakazky, 60));
       columns.add(new ColumnConfig(stav_zakazky_kod, Kód stavu
 zakazky, 100));
       columns.add(new ColumnConfig(stav_zakazky, Stav zakazky,
 100));
       columns.add(new ColumnConfig(stav_zakazky_zmenil_uziv_meno,
 Zakazku zmìnil, 100));
       ColumnConfig updated = new ColumnConfig(stav_zakazky_zmena,
 Dátum zmìny, 105);
       updated.setDateTimeFormat(DateTimeFormat.getFormat(dd.MM.
 HH:mm:ss));
       columns.add(updated);

       ColumnModel cm = new ColumnModel(columns);

       gridZakazka = new GridZakazka(store, cm);
       gridZakazka.setStateId(pagingGridExample);
       gridZakazka.setStateful(true);
       gridZakazka.addListener(Events.Attach, new
 ListenerGridEventZakazka() {
         public void handleEvent(GridEventZakazka be) {
           PagingLoadConfig config = new BasePagingLoadConfig();
           config.setOffset(0);
           config.setLimit(50);

           MapString, Object state = gridZakazka.getState();
           if (state.containsKey(offset)) {
             int offset = (Integer)state.get(offset);
             int limit = (Integer)state.get(limit);
             config.setOffset(offset);
             config.setLimit(limit);
           }
           if (state.containsKey(sortField)) {
             config.setSortField((String)state.get(sortField));

 config.setSortDir(SortDir.valueOf((String)state.get(sortDir)));
           }
           loader.load(config);
         }
       });

 gridZakazka.getSelectionModel().addListener(Events.SelectionChange,
             new ListenerSelectionChangedEventZakazka() {
                public void handleEvent(SelectionChangedEventZakazka
 be) {
                    if (be.getSelection().size()  0) {
                        Tracing.Log(Grid selection changed);
                        formBindings.bind((ModelData)
 be.getSelection().get(0));

 setZakazkaDetailToolBar(be.getSelectedItem().getZakazkaObjectId(),

 be.getSelectedItem().getZakazkaStavZakazkyId());

                        //
 getLogZakazkaGrid(be.getSelectedItem().getZakazkaObjectId());
                        //pagingToolBarLog.refresh();
                    } else {
                        Tracing.Log(Nothing selected);
                        formBindings.unbind();
                        zakazkaDetailToolBar.removeAll();
                    }
                 }
        });

       loader.addLoadListener(new LoadListener() {
                   @Override
                   public void loaderLoad(LoadEvent le)
                   {
                       // Run your selection logic here
                       Tracing.Log(loaderLoad invoked!);

 gridZakazka.getSelectionModel().select(selectedZakazka, false);
                       Tracing.Log(selectedZakazka 

Re: UTF-8 Encoding Problem

2010-08-03 Thread Ahmed Shoeib
try this
For example, if you're using Eclipse (as many of us are) you need to
look at the Resource tab under Project  Properties, which will
probably have defaulted to Cp1252.  Switch this to Other: UTF-8.

You may also have to look at Edit  Set encoding..., although this
will probably do the right thing once you've changed the project
properties.


i don't know if it work or not ?

On Aug 3, 9:52 am, Kiarash email@gmail.com wrote:
 Hi Amed,

 I am facing the same problem with UTF-8. Did you find a solution?

 On Jul 20, 9:37 am, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
 wrote:

  Welcome all  ,

  now i face a problem withUTF-8Encoding Problem

  how to support it in GWT project 

-- 
You received 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: support F5 to load current page

2010-07-23 Thread Ahmed Shoeib
so you mean that
 i can't validate that when the user refresh the current history token
not return to the first page  ?



On Jul 22, 10:27 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 22 juil, 20:05, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

  what do you mean by showing another page than the expected one

 I hope the same as when you originally said now after pressing the f5
 button it return to the first page in my
 projects.

  how to know this this is the problem

 Debug, I mean with breakpoints and step-by-step.

  how to know that the user press refresh button or F5 ?

 AFAICT, you can't.

-- 
You received 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: support F5 to load current page

2010-07-22 Thread Ahmed Shoeib
what do you mean by showing another page than the expected one

how to know this this is the problem

how to know that the user press refresh button or F5 ?


On Jul 22, 1:49 am, Thomas Broyer t.bro...@gmail.com wrote:
 On Jul 21, 7:27 pm, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
 wrote:

  i use History.fireCurrentHistoryState() on the first page module load

  what can i do ???

 Debug, step-by-step, and find where you're doing something wrong so
 that the first page shows instead of the one corresponding to the
 history token.
 Sorry but without seeing the code, it's impossible to tell (we don't
 even now if the history token is changed to something else –which
 could help debug by setting a breakpoint within History– or keeping
 the token as-is but just showing another page than the expected one)

-- 
You received 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: support F5 to load current page

2010-07-21 Thread Ahmed Shoeib
i use History.fireCurrentHistoryState() on the first page module load

what can i do ???

On Jul 21, 4:08 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 20 juil, 11:30, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

  Welcome all ,

  i face a problem with pressing F5 button to load current page

  i use history manager to make next  back in my project

  now after pressing the f5 button it return to the first page in my
  projects

  how to fix this problem

  

 In your onModuleLoad, are you using the current History.getToken() (or
 History.fireCurrentHistoryState()) ? If not, then that's probably the
 problem.

-- 
You received 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.



UTF-8 Encoding Problem

2010-07-20 Thread Ahmed Shoeib
Welcome all  ,

now i face a problem with UTF-8 Encoding Problem

how to support it in GWT project 

-- 
You received 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: UTF-8 Encoding Problem

2010-07-20 Thread Ahmed Shoeib
what do you mean
can you explain it ??

On Jul 20, 11:09 am, olivier nouguier olivier.nougu...@gmail.com
wrote:
 AFAIK gwt expect UTF-8 encoding.

 On Tue, Jul 20, 2010 at 9:37 AM, Ahmed Shoeib ahmedelsayed.sho...@gmail.com



  wrote:
  Welcome all  ,

  now i face a problem with UTF-8 Encoding Problem

  how to support it in GWT project 

  --
  You received 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.

 --
 Computers are useless. They can only give you answers.
 - Pablo Picasso -

-- 
You received 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.



support F5 to load current page

2010-07-20 Thread Ahmed Shoeib
Welcome all ,

i face a problem with pressing F5 button to load current page

i use history manager to make next  back in my project

now after pressing the f5 button it return to the first page in my
projects

how to fix this problem



-- 
You received 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: UTF-8 Encoding Problem

2010-07-20 Thread Ahmed Shoeib
what about on the client side how to make this
cause when adding new one how to make the added value in UTF-8 format



On Jul 20, 11:43 am, rudolf michael roud...@gmail.com wrote:
 You need to make sure that the String that you are returning from the server
 is UTF8 Encoded.
 Since GWT by default supports UTF8 encoding, then you need to make sure that
 what ever value you are returning from the server/db is encoded properly.

 best regards,
 Rudolf Michael

 On Tue, Jul 20, 2010 at 11:39 AM, Ahmed Shoeib 

 ahmedelsayed.sho...@gmail.com wrote:
  what do you mean
  can you explain it ??

  On Jul 20, 11:09 am, olivier nouguier olivier.nougu...@gmail.com
  wrote:
   AFAIK gwt expect UTF-8 encoding.

   On Tue, Jul 20, 2010 at 9:37 AM, Ahmed Shoeib 
  ahmedelsayed.sho...@gmail.com

wrote:
Welcome all  ,

now i face a problem with UTF-8 Encoding Problem

how to support it in GWT project 

--
You received 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
  google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com

.
For more options, visit this group at
   http://groups.google.com/group/google-web-toolkit?hl=en.

   --
   Computers are useless. They can only give you answers.
   - Pablo Picasso -

  --
  You received 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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: support F5 to load current page

2010-07-20 Thread Ahmed Shoeib
i want to reload current page only without pressing any other button

On Jul 20, 12:48 pm, Muhammad Saifullah msaif.muham...@gmail.com
wrote:
 pls use Window.addWindowCloseHandler(
  new WindowCloseHandler(event) {
     event.setMessage(your message here);
  }
 );
 in your onModuleLoad() function.
 when F5 button is pressed then custom message will be displayed if you press
 OK button then reloads but if you press the cancel
 then no reload.
 OK and cancel is by default to the browser.
 hope this will help.

 pls use eclipse and press ctrl+ space then addWindowCloseHandler will be
 shown and fix any class name if i mistook.
 thanks
 On Tue, Jul 20, 2010 at 6:30 PM, Ahmed Shoeib ahmedelsayed.sho...@gmail.com

  wrote:
  Welcome all ,

  i face a problem with pressing F5 button to load current page

  i use history manager to make next  back in my project

  now after pressing the f5 button it return to the first page in my
  projects

  how to fix this problem

  

  --
  You received 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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Navigation Problem

2010-07-18 Thread Ahmed Shoeib
Thanks

On Jul 15, 8:06 pm, lineman78 linema...@gmail.com wrote:
 Look at the history api

 On Jul 14, 4:16 pm, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
 wrote:

  Hi all ,
  i face a problem With Navigation .

  now i have multiple panel added to the RootPanel ( clear the panel and
  add the next panel )

  now i want to support next  back for these panels

  how i can do 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: GWT overlay

2010-07-14 Thread Ahmed Shoeib
Thanks My Friends ,
i found that the problem in my json format
and i solved it
thanks alot

On Jul 11, 5:59 pm, james treas...@gmail.com wrote:
 first stop when validating any webservice json :)

 http://www.jsonlint.com/

 On Jul 11, 10:09 am, djd alex.dobjans...@gmail.com wrote:

  I don't think that what you're showing there is a valid json array. It
  should be, you are also expecting it, but the array should have [ ]
  brackets surrounding it...

  So, the jsonformat.html file in which you're showing the data, you
  should have [ { type:asd, ... } , { type:asd, ... } ]

  On Jul 11, 12:22 pm, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
  wrote:

   hi all ,

   after i get the json fomat from the server i tried to use GWT Overlay
   to get the values from The json

   but after eval that return an array of object
   each index hold the json format

   after trying to get the values from it

   in this function

   private void DoWork(JsArrayMember_JSON members) {

                   Window.alert(members.toString());
                   for (int i = 0; i  members.length(); i++) {
                           
   Window.alert(members.get(i).getEmail().toString());

                           
   if(members.get(i).getEmail().equals(loginInfo.getEmailAddress())){
                                   
   if(members.get(i).getType().equals(Admin)){
                                           AdminPanel admin = new 
   AdminPanel(loginInfo.getEmailAddress(),
   loginInfo.getLogoutUrl(), members);
                                           RootPanel.get().add(admin);
                                           break;
                                   }
                           }
                   }

   the Window.Alert Show Me unDefined

   the jsonScript Class
   -

   package com.apphuset.eventbuddy.client;

   import com.google.gwt.core.client.JavaScriptObject;

   public class Member_JSON extends JavaScriptObject
   {                              // [1]
     // Overlay types always have protected, zero argument constructors.
     protected Member_JSON()
   {}                                              // [2]

     // JSNI methods to get stock data.
     public final native String getEmail() /*-{ return this.email; }-
   */; // [3]
     public final native String getType() /*-{ return this.type; }-*/;

   }

   

   the json format
   --http://www.4shared.com/photo/xZvLBL2r/jsonformat.html

   The Message
   ---http://www.4shared.com/photo/h10Jln2n/Message.html

   how To Solve This problem ???

   Thanks,
   ahmed shoeib

-- 
You received 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 Navigation Problem

2010-07-14 Thread Ahmed Shoeib
Hi all ,
i face a problem With Navigation .

now i have multiple panel added to the RootPanel ( clear the panel and
add the next panel )

now i want to support next  back for these panels

how i can do 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.



GWT overlay

2010-07-11 Thread Ahmed Shoeib
hi all ,

after i get the json fomat from the server i tried to use GWT Overlay
to get the values from The json


but after eval that return an array of object
each index hold the json format

after trying to get the values from it

in this function

private void DoWork(JsArrayMember_JSON members) {

Window.alert(members.toString());
for (int i = 0; i  members.length(); i++) {
Window.alert(members.get(i).getEmail().toString());


if(members.get(i).getEmail().equals(loginInfo.getEmailAddress())){
if(members.get(i).getType().equals(Admin)){
AdminPanel admin = new 
AdminPanel(loginInfo.getEmailAddress(),
loginInfo.getLogoutUrl(), members);
RootPanel.get().add(admin);
break;
}
}
}


the Window.Alert Show Me unDefined


the jsonScript Class
-

package com.apphuset.eventbuddy.client;

import com.google.gwt.core.client.JavaScriptObject;

public class Member_JSON extends JavaScriptObject
{  // [1]
  // Overlay types always have protected, zero argument constructors.
  protected Member_JSON()
{}  // [2]

  // JSNI methods to get stock data.
  public final native String getEmail() /*-{ return this.email; }-
*/; // [3]
  public final native String getType() /*-{ return this.type; }-*/;


}




the json format
--
http://www.4shared.com/photo/xZvLBL2r/jsonformat.html


The Message
---
http://www.4shared.com/photo/h10Jln2n/Message.html



how To Solve This problem ???


Thanks,
ahmed shoeib






-- 
You received 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: gson module problem

2010-07-07 Thread Ahmed Shoeib
i need to convert JSON to/From Java Object

how to do it ?
i don't know how to use this way

On Jul 6, 10:35 pm, eggsy84 jimbob...@hotmail.com wrote:
 Hi all,

 With the latest versions of GWT you don't have to use any other
 libraries.

 GWT now comes with something known as Javascript Overlays that you can
 utilise to convert JSON into Objects.

 See here:

 http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOver...

 Also I have made a bit of a discussion on my blog here:

 http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays...

 Hope this helps,

 Eggsy

 On Jul 6, 1:38 pm, Harald Pehl harald.p...@googlemail.com wrote:

  You cannot use gson in GWT. 
  Seehttp://groups.google.com/group/google-gson/browse_thread/thread/6c3d6...
  for more infos.

  If you need a JSON parser for GWT take a look at Piriti (http://
  code.google.com/p/piriti/).

  - Harald

  On 6 Jul., 12:30, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

   Welcome ,

   i add gson lib version 1.4

   and i face a problem when trying to inherit it in the gwt.xml file

   how i can fix this problem ???

   thanks ,
   ahmed shoeib

-- 
You received 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: JSON Problem

2010-07-07 Thread Ahmed Shoeib
hi ,
converting the java object to JSON Done using

SONObject json_obj = new JSONObject();
json_obj.put(Member_Email,new JSONString(symbol));
json_obj.put(Member_type, new JSONString(type));

and send it using post method using RequestBuilder

try {
rb.sendRequest(json_obj.toString(), new 
RequestCallback() {
.
.
.
.
}
}

i need to know how to get this object on the server and convert it to
object again

thanks ,
On Jul 6, 10:36 pm, eggsy84 jimbob...@hotmail.com wrote:
 Hi all,

 (As mentioned on the following 
 post:http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
 )

 With the latest versions of GWT you don't have to use any other
 libraries.

 GWT now comes with something known as Javascript Overlays that you can
 utilise to convert JSON into Objects.

 See here:

 http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOver...

 Also I have made a bit of a discussion on my blog here:

 http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays...

 Hope this helps,

 Eggsy

 On Jul 6, 1:44 pm, André Moraes andr...@gmail.com wrote:

  I don't think that the Gson project can be used as a GWT module.

  Looks like it is for pure java development, not GWT development.

  Take a look at:http://code.google.com/p/piriti/

  http://code.google.com/p/piriti/This project is a GWT library that provide
  JSON and XML facilities.

  On Tue, Jul 6, 2010 at 5:22 AM, Ahmed Shoeib
  ahmedelsayed.sho...@gmail.comwrote:

   i face this problem
   how i can fix it

   the problem

   /AdminPanel.java'
           [ERROR] Line 139: No source code is available for type
   com.google.gson.Gson; did you forget to inherit a required module?

   Thanks,
   ahmed shoeib

   On Jul 5, 9:33 pm, André Moraes andr...@gmail.com wrote:
The response comes async.

When the response from the server arrives at the client the method
onResponseReceived in the RequestCallback object is called, if an
error hapens the the onErrormethod is called.

The RequestCallback object is the second parameter in the sendRequest
function call.

                                public void onResponseReceived(Request
request, Response response)
{
                                        if (response.getStatusCode()
== 200 || response.getStatusCode()
== 304)
                                        {
                                                JavaScriptObject
responseData =
JsonHelper.stringToJso(response.getText()).cast());
            // use the response
                                        }
                                        else
                                        {
            // invalid response
                                        }
                                }
                                @Override
                                public void onError(Request request,
Throwable exception) {
                                        // error on the resquest
                                }
                        });

On 5 jul, 15:01, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

 you told me how to send request from client to server

 now i want how yo get data from server to use it in client

 and the data in json

 On Jul 5, 8:12 pm, André Moraes andr...@gmail.com wrote:

  This code is quite simple

  The line:

   re = rb.sendRequest(jsonrpc-call= + JsonHelper.jsoToString(call),
  new RequestCallback()

  prepare a AJAX call to the server and make your javascript object to
   a
  string using JsonHelper.jsoToString.
  In ther server the json-string will be accessible by the parameter
  jsonrpc-call.

  The line:

                                          if (response.getStatusCode()
  == 200 || response.getStatusCode()
  == 304)
                                          {
                                                  JavaScriptObject
  responseData =
  JsonHelper.stringToJso(response.getText()).cast());
              // use the response
                                          }

  get the response wrote by the server and make i availabe as a
  JavaScriptObject.

  You can use the JSONObject class to populate and read a
  JavaScriptObject.

  You can read more about JSON + GWT at:

  http://code.google.com/intl/webtoolkit/webtoolkit/doc/latest/DevGuide...
  andhttp://
   code.google.com/intl/webtoolkit/webtoolkit/articles/using_gwt_...
  On 5 jul, 12:50, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

   i want a simple example to describe it
   cause i need it as soon as possible

   On Jul 5, 6:18 pm, André Moraes andr...@gmail.com wrote:

                        re = rb.sendRequest(jsonrpc-call= +
   JsonHelper.jsoToString(call),
new RequestCallback

Re: JSON Problem

2010-07-07 Thread Ahmed Shoeib
i don't know how to get the parameter from RequestBuilder

i tried

rb.sendRequest(json_mem=+json_obj.toString(), new RequestCallback()
{

... }

and on ther server
req.getparameter(json_mem) ;

and the result is null

how i can get the parameter in post method

On Jul 7, 11:08 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 7 juil, 20:47, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:



  hi ,
  converting the java object to JSON Done using

  SONObject json_obj = new JSONObject();
  json_obj.put(Member_Email,new JSONString(symbol));
  json_obj.put(Member_type, new JSONString(type));

  and send it using post method using RequestBuilder

  try {
                                  rb.sendRequest(json_obj.toString(), new 
  RequestCallback() {
  .
  .
  .
  .

  }
  }

  i need to know how to get this object on the server and convert it to
  object again

 Using any JSON parser; seehttp://json.org/for a list of Java (or
 other language) implementations.
 Note that GWT 2.1 M1 and M2 include org.json, needed for the
 RequestFactory.

-- 
You received 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: gson module problem

2010-07-07 Thread Ahmed Shoeib
i face this problem

Initializing AppEngine server
07/07/2010 10:57:34 م com.google.apphosting.utils.jetty.JettyLogger
info
INFO: Logging to JettyLogger(null) via
com.google.apphosting.utils.jetty.JettyLogger
07/07/2010 10:57:35 م
com.google.apphosting.utils.config.AppEngineWebXmlReader
readAppEngineWebXml
INFO: Successfully processed C:\Documents and Settings\Sho3ebovich\My
Documents\workspace\EventBuddy\war\WEB-INF/appengine-web.xml
07/07/2010 10:57:35 م
com.google.apphosting.utils.config.AbstractConfigXmlReader
readConfigXml
INFO: Successfully processed C:\Documents and Settings\Sho3ebovich\My
Documents\workspace\EventBuddy\war\WEB-INF/web.xml
The server is running at http://localhost:/
{Member_Email:t...@example.com, Member_type:Organizer}
07/07/2010 10:58:13 م com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: Error for /eventbuddy/member
java.lang.UnsatisfiedLinkError:
com.apphuset.eventbuddy.server.MembersServiceImpl.asArrayOfMember_JSON(Ljava/
lang/String;)Lcom/google/gwt/core/client/JsArray;
at
com.apphuset.eventbuddy.server.MembersServiceImpl.asArrayOfMember_JSON(Native
Method)
at
com.apphuset.eventbuddy.server.MembersServiceImpl.doPost(MembersServiceImpl.java:
43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
51)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:349)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)


how to solve it ?

On Jul 8, 12:54 am, lineman78 linema...@gmail.com wrote:
 The easiest way to convert between JSON and GWT objects is to use
 overlay objects.  Unfortunately, there is no type checking by doing
 this, but you get the best performance.  Now, if you need to support
 older versions of IE you will need to include json2.js in your
 project, but you can use the JSON.parse and JSON.stringify functions
 to convert between javascript objects and a JSON string.

 http://code.google.com/p/google-web-toolkit/wiki/OverlayTypes

 On Jul 7, 10:41 am, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
 wrote:

  i need to convert JSON to/From Java Object

  how to do it ?
  i don't know how to use this way

  On Jul 6, 10:35 pm, eggsy84 jimbob...@hotmail.com wrote:

   Hi all,

   With the latest versions of GWT you don't have to use any other
   libraries.

   GWT now comes with something known as Javascript Overlays that you can
   utilise to convert JSON into Objects.

   See here:

  http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOver...

   Also I have made a bit of a discussion on my blog here:

  http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays...

   Hope this helps,

   Eggsy

   On Jul 6, 1:38 pm, Harald Pehl harald.p...@googlemail.com wrote:

You cannot use gson in GWT

Re: gson module problem

2010-07-07 Thread Ahmed Shoeib
The Problem line

java.lang.UnsatisfiedLinkError:
com.apphuset.eventbuddy.server.MembersServiceImpl.asArrayOfMember_JSON(Ljava/
lang/String;)Lcom/google/gwt/core/client/JsArray;
at
com.apphuset.eventbuddy.server.MembersServiceImpl.asArrayOfMember_JSON(Native
Method)
at
com.apphuset.eventbuddy.server.MembersServiceImpl.doPost(MembersServiceImpl.java:
43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
51)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:349)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)



On Jul 7, 8:29 pm, Marcus Vinícius Bastos de Andrade
mynameisf...@gmail.com wrote:
 Use JSON in GWT ? It looks like PHP programming!

 On Wed, Jul 7, 2010 at 1:41 PM, Ahmed Shoeib
 ahmedelsayed.sho...@gmail.comwrote:



  i need to convert JSON to/From Java Object

  how to do it ?
  i don't know how to use this way

  On Jul 6, 10:35 pm, eggsy84 jimbob...@hotmail.com wrote:
   Hi all,

   With the latest versions of GWT you don't have to use any other
   libraries.

   GWT now comes with something known as Javascript Overlays that you can
   utilise to convert JSON into Objects.

   See here:

  http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOver...

   Also I have made a bit of a discussion on my blog here:

  http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays...

   Hope this helps,

   Eggsy

   On Jul 6, 1:38 pm, Harald Pehl harald.p...@googlemail.com wrote:

You cannot use gson in GWT. Seehttp://
  groups.google.com/group/google-gson/browse_thread/thread/6c3d6...
for more infos.

If you need a JSON parser for GWT take a look at Piriti (http://
code.google.com/p/piriti/).

- Harald

On 6 Jul., 12:30, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

 Welcome ,

 i add gson lib version 1.4

 and i face a problem when trying to inherit it in the gwt.xml file

 how i can fix this problem ???

 thanks ,
 ahmed shoeib

  --
  You received 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.

 --
 Marcus Vinícius Bastos de Andradehttp://twitter.com/mynameisflaw
 +55 31 9823-3606

-- 
You received 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

gson module problem

2010-07-06 Thread Ahmed Shoeib
Welcome ,

i add gson lib version 1.4

and i face a problem when trying to inherit it in the gwt.xml file

how i can fix this problem ???


thanks ,
ahmed shoeib

-- 
You received 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.



JSON Problem

2010-07-05 Thread Ahmed Shoeib
Dear Friends ,

i face a problem when trying to send and receive json object between
client and server in GWT application

so i want a simple example that show me how to do this

Thanks,
ahmed shoeib

-- 
You received 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: JSON Problem

2010-07-05 Thread Ahmed Shoeib
i want a simple example to describe it
cause i need it as soon as possible



On Jul 5, 6:18 pm, André Moraes andr...@gmail.com wrote:
                         re = rb.sendRequest(jsonrpc-call= + 
 JsonHelper.jsoToString(call),
 new RequestCallback() {

                                 @Override
                                 public void onResponseReceived(Request 
 request, Response response)
 {
                                         if (response.getStatusCode() == 200 
 || response.getStatusCode()
 == 304)
                                         {
                                                 JavaScriptObject responseData 
 =
 JsonHelper.stringToJso(response.getText()).cast());
             // use the response
                                         }
                                         else
                                         {
             // invalid response
                                         }
                                 }

                                 @Override
                                 public void onError(Request request, 
 Throwable exception) {
                                         // error on the resquest
                                 }
                         });

 public class JsonHelper {

         public static String jsoToString(JavaScriptObject jso) {
                 if (isJsonLibraryDefined()) {
                         return _jsoToString(jso);
                 } else {
                         return new JSONObject(jso).toString();
                 }
         }

         public static JavaScriptObject stringToJso(String value) {
                 if (isJsonLibraryDefined()) {
                         return _stringToJso(value);
                 } else {
                         return _stringToJsoEval(value);
                 }
         }

         public static native String _jsoToString(JavaScriptObject jso) /*-{
                 return JSON.stringify(jso);
         }-*/;

         public static native JavaScriptObject _stringToJso(String string) /*-
 {
                 return JSON.parse(string);
         }-*/;

         public static native JavaScriptObject _stringToJsoEval(String
 string) /*-{
                 return eval(( + string + ));
         }-*/;

         public static native boolean isJsonLibraryDefined() /*-{
                 return typeof(JSON) != 'undefined'
                          typeof(JSON.parse) != 'undefined'
                          typeof(JSON.stringify) != 'undefined';
         }-*/;

 }

 The JsonHelper class handle the conversion to and from JSON.

 If possible use the json.org javascript library that implements the
 functions JSON.parse / JSON.stringify

 I am currently writing a project that encapsulates that library and
 make it more easier to use than this JsonHelper class.

 When i release it in google-code I let you know.

 Hope it helps.

 On 5 jul, 09:01, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

  Dear Friends ,

  i face a problem when trying to send and receive json object between
  client and server in GWT application

  so i want a simple example that show me how to do this

  Thanks,
  ahmed shoeib

-- 
You received 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: JSON Problem

2010-07-05 Thread Ahmed Shoeib
you told me how to send request from client to server

now i want how yo get data from server to use it in client

and the data in json


On Jul 5, 8:12 pm, André Moraes andr...@gmail.com wrote:
 This code is quite simple

 The line:

  re = rb.sendRequest(jsonrpc-call= + JsonHelper.jsoToString(call),
 new RequestCallback()

 prepare a AJAX call to the server and make your javascript object to a
 string using JsonHelper.jsoToString.
 In ther server the json-string will be accessible by the parameter
 jsonrpc-call.

 The line:

                                         if (response.getStatusCode()
 == 200 || response.getStatusCode()
 == 304)
                                         {
                                                 JavaScriptObject
 responseData =
 JsonHelper.stringToJso(response.getText()).cast());
             // use the response
                                         }

 get the response wrote by the server and make i availabe as a
 JavaScriptObject.

 You can use the JSONObject class to populate and read a
 JavaScriptObject.

 You can read more about JSON + GWT at:

 http://code.google.com/intl/webtoolkit/webtoolkit/doc/latest/DevGuide...
 andhttp://code.google.com/intl/webtoolkit/webtoolkit/articles/using_gwt_...
 On 5 jul, 12:50, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

  i want a simple example to describe it
  cause i need it as soon as possible

  On Jul 5, 6:18 pm, André Moraes andr...@gmail.com wrote:

                           re = rb.sendRequest(jsonrpc-call= + 
   JsonHelper.jsoToString(call),
   new RequestCallback() {

                                   @Override
                                   public void onResponseReceived(Request 
   request, Response response)
   {
                                           if (response.getStatusCode() == 
   200 || response.getStatusCode()
   == 304)
                                           {
                                                   JavaScriptObject 
   responseData =
   JsonHelper.stringToJso(response.getText()).cast());
               // use the response
                                           }
                                           else
                                           {
               // invalid response
                                           }
                                   }

                                   @Override
                                   public void onError(Request request, 
   Throwable exception) {
                                           // error on the resquest
                                   }
                           });

   public class JsonHelper {

           public static String jsoToString(JavaScriptObject jso) {
                   if (isJsonLibraryDefined()) {
                           return _jsoToString(jso);
                   } else {
                           return new JSONObject(jso).toString();
                   }
           }

           public static JavaScriptObject stringToJso(String value) {
                   if (isJsonLibraryDefined()) {
                           return _stringToJso(value);
                   } else {
                           return _stringToJsoEval(value);
                   }
           }

           public static native String _jsoToString(JavaScriptObject jso) 
   /*-{
                   return JSON.stringify(jso);
           }-*/;

           public static native JavaScriptObject _stringToJso(String string) 
   /*-
   {
                   return JSON.parse(string);
           }-*/;

           public static native JavaScriptObject _stringToJsoEval(String
   string) /*-{
                   return eval(( + string + ));
           }-*/;

           public static native boolean isJsonLibraryDefined() /*-{
                   return typeof(JSON) != 'undefined'
                            typeof(JSON.parse) != 'undefined'
                            typeof(JSON.stringify) != 'undefined';
           }-*/;

   }

   The JsonHelper class handle the conversion to and from JSON.

   If possible use the json.org javascript library that implements the
   functions JSON.parse / JSON.stringify

   I am currently writing a project that encapsulates that library and
   make it more easier to use than this JsonHelper class.

   When i release it in google-code I let you know.

   Hope it helps.

   On 5 jul, 09:01, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

Dear Friends ,

i face a problem when trying to send and receive json object between
client and server in GWT application

so i want a simple example that show me how to do this

Thanks,
ahmed shoeib

-- 
You received 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

Re: JSON Problem

2010-07-05 Thread Ahmed Shoeib
Thanks a lot My Friends
it is easy way

thanks for your support

On Jul 5, 9:33 pm, André Moraes andr...@gmail.com wrote:
 The response comes async.

 When the response from the server arrives at the client the method
 onResponseReceived in the RequestCallback object is called, if an
 error hapens the the onErrormethod is called.

 The RequestCallback object is the second parameter in the sendRequest
 function call.

                                 public void onResponseReceived(Request
 request, Response response)
 {
                                         if (response.getStatusCode()
 == 200 || response.getStatusCode()
 == 304)
                                         {
                                                 JavaScriptObject
 responseData =
 JsonHelper.stringToJso(response.getText()).cast());
             // use the response
                                         }
                                         else
                                         {
             // invalid response
                                         }
                                 }
                                 @Override
                                 public void onError(Request request,
 Throwable exception) {
                                         // error on the resquest
                                 }
                         });

 On 5 jul, 15:01, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

  you told me how to send request from client to server

  now i want how yo get data from server to use it in client

  and the data in json

  On Jul 5, 8:12 pm, André Moraes andr...@gmail.com wrote:

   This code is quite simple

   The line:

    re = rb.sendRequest(jsonrpc-call= + JsonHelper.jsoToString(call),
   new RequestCallback()

   prepare a AJAX call to the server and make your javascript object to a
   string using JsonHelper.jsoToString.
   In ther server the json-string will be accessible by the parameter
   jsonrpc-call.

   The line:

                                           if (response.getStatusCode()
   == 200 || response.getStatusCode()
   == 304)
                                           {
                                                   JavaScriptObject
   responseData =
   JsonHelper.stringToJso(response.getText()).cast());
               // use the response
                                           }

   get the response wrote by the server and make i availabe as a
   JavaScriptObject.

   You can use the JSONObject class to populate and read a
   JavaScriptObject.

   You can read more about JSON + GWT at:

  http://code.google.com/intl/webtoolkit/webtoolkit/doc/latest/DevGuide...
   andhttp://code.google.com/intl/webtoolkit/webtoolkit/articles/using_gwt_...
   On 5 jul, 12:50, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

i want a simple example to describe it
cause i need it as soon as possible

On Jul 5, 6:18 pm, André Moraes andr...@gmail.com wrote:

                         re = rb.sendRequest(jsonrpc-call= + 
 JsonHelper.jsoToString(call),
 new RequestCallback() {

                                 @Override
                                 public void 
 onResponseReceived(Request request, Response response)
 {
                                         if (response.getStatusCode() 
 == 200 || response.getStatusCode()
 == 304)
                                         {
                                                 JavaScriptObject 
 responseData =
 JsonHelper.stringToJso(response.getText()).cast());
             // use the response
                                         }
                                         else
                                         {
             // invalid response
                                         }
                                 }

                                 @Override
                                 public void onError(Request request, 
 Throwable exception) {
                                         // error on the resquest
                                 }
                         });

 public class JsonHelper {

         public static String jsoToString(JavaScriptObject jso) {
                 if (isJsonLibraryDefined()) {
                         return _jsoToString(jso);
                 } else {
                         return new JSONObject(jso).toString();
                 }
         }

         public static JavaScriptObject stringToJso(String value) {
                 if (isJsonLibraryDefined()) {
                         return _stringToJso(value);
                 } else {
                         return _stringToJsoEval(value);
                 }
         }

         public static native String _jsoToString(JavaScriptObject 
 jso) /*-{
                 return JSON.stringify(jso

Drag and Drop Problem in GWT

2010-07-03 Thread Ahmed Shoeib
Welcome my Friends

i face a problem with drag and drop in GWT

i want a simple example to help me to make it

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: Drag and Drop Problem in GWT

2010-07-03 Thread Ahmed Shoeib
can you tell me how i can do it using JQuery

On Jul 3, 10:34 am, Prashant nextprash...@gmail.com wrote:
 i tried GWTDND and found it very hard to use. currently i am using jQuery
 drag-drop plugin with GWT .

 On 3 July 2010 12:54, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

  Welcome my Friends

  i face a problem with drag and drop in GWT

  i want a simple example to help me to make it

  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%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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Drag and Drop Problem in GWT

2010-07-03 Thread Ahmed Shoeib
i don't need it for tree
i want it for dragging panels

how i can do it 

On Jul 3, 11:00 am, Subhrajyoti Moitra subhrajyo...@gmail.com wrote:
 I have used gwt-dnd for simple absolute panels. But customizing for a tree
 (FastTree) is creating lot of problems. Some one who has used gwt-dnd with
 FastTreem please help.

 Thanks,
 Subhro.

 On Sat, Jul 3, 2010 at 1:04 PM, Prashant nextprash...@gmail.com wrote:
  i tried GWTDND and found it very hard to use. currently i am using jQuery
  drag-drop plugin with GWT .

  On 3 July 2010 12:54, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

  Welcome my Friends

  i face a problem with drag and drop in GWT

  i want a simple example to help me to make it

  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%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 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: Drag and Drop Problem in GWT

2010-07-03 Thread Ahmed Shoeib
how i can do it

On Jul 3, 11:35 am, Prashant nextprash...@gmail.com wrote:
 http://claymus-demo.appspot.com/_ah/block

 On 3 July 2010 13:40, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

  i don't need it for tree
  i want it for dragging panels

  how i can do it 

  On Jul 3, 11:00 am, Subhrajyoti Moitra subhrajyo...@gmail.com wrote:
   I have used gwt-dnd for simple absolute panels. But customizing for a
  tree
   (FastTree) is creating lot of problems. Some one who has used gwt-dnd
  with
   FastTreem please help.

   Thanks,
   Subhro.

   On Sat, Jul 3, 2010 at 1:04 PM, Prashant nextprash...@gmail.com wrote:
i tried GWTDND and found it very hard to use. currently i am using
  jQuery
drag-drop plugin with GWT .

On 3 July 2010 12:54, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
  wrote:

Welcome my Friends

i face a problem with drag and drop in GWT

i want a simple example to help me to make it

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%2bunsubscr...@googlegroups.com
  google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@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
  google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@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 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: Drag and Drop Problem in GWT

2010-07-03 Thread Ahmed Shoeib
my friend ,
i want a simple tutorial for this
this isn't a simple example


On Jul 3, 11:46 am, Prashant nextprash...@gmail.com wrote:
 source is here http://code.google.com/p/claymus/downloads/list. It is an
 Eclipse project.

 http://code.google.com/p/claymus/downloads/listsee
 cms.thirdparty/cms.block.manage.js in war dir
 and cms.module.block.gwt.ManageBlocks.java in src

 On 3 July 2010 14:13, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

  how i can do it

  On Jul 3, 11:35 am, Prashant nextprash...@gmail.com wrote:
  http://claymus-demo.appspot.com/_ah/block

   On 3 July 2010 13:40, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
  wrote:

i don't need it for tree
i want it for dragging panels

how i can do it 

On Jul 3, 11:00 am, Subhrajyoti Moitra subhrajyo...@gmail.com wrote:
 I have used gwt-dnd for simple absolute panels. But customizing for a
tree
 (FastTree) is creating lot of problems. Some one who has used gwt-dnd
with
 FastTreem please help.

 Thanks,
 Subhro.

 On Sat, Jul 3, 2010 at 1:04 PM, Prashant nextprash...@gmail.com
  wrote:
  i tried GWTDND and found it very hard to use. currently i am using
jQuery
  drag-drop plugin with GWT .

  On 3 July 2010 12:54, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
wrote:

  Welcome my Friends

  i face a problem with drag and drop in GWT

  i want a simple example to help me to make it

  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%2bunsubscr...@googlegroups.com
  google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com

google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
  google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@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
  google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com

google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
  google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@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
  google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@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 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: Drag and Drop Problem in GWT

2010-07-03 Thread Ahmed Shoeib
i don't want an example using mouse Events
i mean simple easy example to make portlet to understand it .

On Jul 3, 2:30 pm, Subhrajyoti Moitra subhrajyo...@gmail.com wrote:
 http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/Drag...
 from the gwt-dnd project.

 Well the simplest would be to implement your very own drag-drop, using
 MouseDown, MOuseUp and MouseMove events.
 In the book GWT Solutions by David Gearyhttp://www.coolandusefulgwt.com/IN
 the Examples link, u can find the Drag-Drop support.

 HTH.

 Thanks,
 Subhro.

 On Sat, Jul 3, 2010 at 1:40 PM, Ahmed Shoeib
 ahmedelsayed.sho...@gmail.comwrote:

  i don't need it for tree
  i want it for dragging panels

  how i can do it 

  On Jul 3, 11:00 am, Subhrajyoti Moitra subhrajyo...@gmail.com wrote:
   I have used gwt-dnd for simple absolute panels. But customizing for a
  tree
   (FastTree) is creating lot of problems. Some one who has used gwt-dnd
  with
   FastTreem please help.

   Thanks,
   Subhro.

   On Sat, Jul 3, 2010 at 1:04 PM, Prashant nextprash...@gmail.com wrote:
i tried GWTDND and found it very hard to use. currently i am using
  jQuery
drag-drop plugin with GWT .

On 3 July 2010 12:54, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
  wrote:

Welcome my Friends

i face a problem with drag and drop in GWT

i want a simple example to help me to make it

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%2bunsubscr...@googlegroups.com
  google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@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
  google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@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 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: Serialization Problem

2010-06-27 Thread Ahmed Shoeib
hi Sebastian Rothbucher ,
i founded the problem in returning arrayList of object from Member
Class
i replaced this with Array one dimension of Member Class
ans this problem solved

do you have any comment about why there is not available to return
arrayList  

thanks for reply ..


best regards,
ahmed shoeib


On Jun 25, 8:15 pm, Sebastian Rothbucher
sebastianrothbuc...@googlemail.com wrote:
 Hi Ahmed,
 does your Member class contain associations to other classes? If yes,
 I guess to have to repackage the lists as well... (i.e. create a new
 Hashtable and so on). Another question could be if you can have
 annotated classes on the client or you have to copy those classes as
 well, i.e. have a plain pojo and an annotated pojo... - you could just
 try with a few samples...
 Hope this helps
    Sebastian

 On Jun 14, 8:45 pm, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
 wrote:

  Exception while dispatching incoming RPC call
  com.google.gwt.user.client.rpc.SerializationException: Type
  'org.datanucleus.store.appengine.query.StreamingQueryResult' was not
  included in the set of types which can be serialized by this
  SerializationPolicy or its Class object could not be loaded. For
  security purposes, this type will not be serialized.: instance = []

  Members Class - on client
  -
  package com.Users.client;
  @PersistenceCapable
  public class Members implements Serializable{
  .
  .
  .

  }

  
  Entry Point --- Client Class

  the problem here

   // Get Persisted Member
                     memberService.getMembers(new 
  AsyncCallbackListMembers() {

                          @Override
                          public void onFailure(Throwable caught) {
                                  // TODO Auto-generated method stub

                          }

                          @Override
                          public void onSuccess(ListMembers result) {
                                  // TODO Auto-generated method stub
                                  adminPanel.add(new Label(get Members ));
                                  adminPanel.add(new Label(size  
  +result.size()));
                                  for (Members m : result) {
                                          adminPanel.add(new 
  Label(m.getMember()));
                                  }
                          }
                  });

  

  MembersServiceImpl   on Server
  

  package com.Users.server;
  @SuppressWarnings(serial)
  public class MembersServiceImpl extends RemoteServiceServlet
  implements
  MembersService {

  @SuppressWarnings(unchecked)
          @Override
          public ListMembers getMembers() throws NotLoggedInException {
                  // TODO Auto-generated method stub

                  ListMembers  returnList = new ArrayListMembers();

                  PersistenceManager pm = PMF.get().getPersistenceManager();
              String query = select from  + Members.class.getName();
              ListMembers members = (ListMembers)
  pm.newQuery(query).execute();

                   for(Members step: members)
                   {
                       returnList.add(step);
                   }
              return returnList;

          }

  }

  how to Solve this problem

-- 
You received 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: multiple pages

2010-06-27 Thread Ahmed Shoeib
i want to know how to manage pages navigation
in other word
how to load another page with GWT Component and remove the current
component
and support back  next

On Jun 20, 6:39 pm, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi Ahmed,

 with GWT you build a rich internet application. The concept of page
 does no more fit.
 This is different to a set of hyperlinked documents.

 What do you mean with Multiple Pages?

 a) Multiple entry points. Means different start sequences? Yes, this
 is possible
 b) Exchanges the whole application (layout) ? Yes, this is possible
 c) Something else? Please explain what you are going to achieve

 Stefan Bacherthttp://gwtworld.de

 On Jun 20, 1:56 pm, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
 wrote:

  can i make multiple pages in GWT
  it is one have its own onModuleLoad()

  can i do 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.



multiple pages

2010-06-20 Thread Ahmed Shoeib
can i make multiple pages in GWT
it is one have its own onModuleLoad()

can i do 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.



Serialization Problem

2010-06-15 Thread Ahmed Shoeib
Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type
'org.datanucleus.store.appengine.query.StreamingQueryResult' was not
included in the set of types which can be serialized by this
SerializationPolicy or its Class object could not be loaded. For
security purposes, this type will not be serialized.: instance = []


Members Class - on client
-
package com.Users.client;
@PersistenceCapable
public class Members implements Serializable{
.
.
.
}



Entry Point --- Client Class

the problem here

 // Get Persisted Member
   memberService.getMembers(new AsyncCallbackListMembers() {

@Override
public void onFailure(Throwable caught) {
// TODO Auto-generated method stub

}

@Override
public void onSuccess(ListMembers result) {
// TODO Auto-generated method stub
adminPanel.add(new Label(get Members ));
adminPanel.add(new Label(size  
+result.size()));
for (Members m : result) {
adminPanel.add(new 
Label(m.getMember()));
}
}
});



MembersServiceImpl   on Server


package com.Users.server;
@SuppressWarnings(serial)
public class MembersServiceImpl extends RemoteServiceServlet
implements
MembersService {

@SuppressWarnings(unchecked)
@Override
public ListMembers getMembers() throws NotLoggedInException {
// TODO Auto-generated method stub

ListMembers  returnList = new ArrayListMembers();

PersistenceManager pm = PMF.get().getPersistenceManager();
String query = select from  + Members.class.getName();
ListMembers members = (ListMembers)
pm.newQuery(query).execute();



 for(Members step: members)
 {
 returnList.add(step);
 }
return returnList;

}

}




how to Solve this problem

-- 
You received 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.