Re: Using piriti 0.4.1

2010-08-11 Thread Harald Pehl
The JSON way would just be an alternative if the server delivers JSON.
Converting XML to JSON on the client is a very bad idea.

Anyway the XML is parsed using the browsers native XML parsrer. So it
should be reasonable fast. Though it depends on the size of the XML
response you're parsing.

- Harald

On 10 Aug., 18:24, Deepak Singh deepaksingh...@gmail.com wrote:
 Hi Harald,

 If i use JSON then i think i need to convert first my xml into json as i am
 getting xml from my server response. And then i will have to map this JSON
 with java pojo. then it may take more time for conversion of xml into json.
 My critical issue is the time for taking xml and representing it into front
 end in the minimum possible time.

 On Tue, Aug 10, 2010 at 8:08 PM, Harald Pehl 
 harald.p...@googlemail.comwrote:



  Piriti is the only XML mapper for GWT I know. So I cannot say if it
  performs better than XYZ. If performance is critical in your
  application, consider to use JSON as it it more lightweight and
  integrates in GWT.

  - Harald

  On 10 Aug., 11:05, Deepak Singh deepaksingh...@gmail.com wrote:
   Thanks harald. I hope the issue will be resolved now.
   But do you suggest using piriti is a better solution for xml mapping to
  pojo
   which can give fast result. Or is there anything else i should take up
  for
   xml to java mapping.
   Pls suggest.

   Deepak

   On Tue, Aug 10, 2010 at 1:04 PM, Harald Pehl harald.p...@googlemail.com
  wrote:

You missed one more dependency: Google GIN -
   http://code.google.com/p/google-gin/

Please take a look athttp://
  code.google.com/p/piriti/wiki/GettingStarted
- Prerequisites. There you can see all dependencies necessary for
Piriti.

- Harald

On 9 Aug., 20:47, Deepak Singh deepaksingh...@gmail.com wrote:
 Hi Harald,

 Thanks for your guidance.

 I did all these things as stated by you. I included the jar file of
totoe.
 Reads xml through clientBundle. But while compiling i get the
  following
 error

 Loading inherited module 'name.pehl.piriti.Piriti'
    Loading inherited module 'com.google.gwt.inject.Inject'
       [ERROR] Unable to find 'com/google/gwt/inject/Inject.gwt.xml'
  on
your
 classpath; could be a typo, or maybe you forgot to include a
  classpath
entry
 for source?
    [ERROR] Line 8: Unexpected exception while processing element
'inherits'
 com.google.gwt.core.ext.UnableToCompleteException: (see previous log
 entries)
 at

  com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:239)
 at

  com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDe
fSchema.java:407)
 at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at

  com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:22
4)

 So the compilation failed.

 I have injected these two in .gwt.xml
 inherits name=name.pehl.totoe.Totoe /
 inherits name=name.pehl.piriti.Piriti /

 Do i need to include anything else in the project ?

 Thanks
 Deepak

 On Mon, Aug 9, 2010 at 7:03 PM, Harald Pehl 
  harald.p...@googlemail.com
wrote:

  Piriti relies on Totoe. Totoe is an alternative XML parser with
  namespace support. So please make sure you have the relevant JAR
  file
  in the classpath / eclipse project. Totoe is available under
 http://code.google.com/p/totoe/.

  Having your POJO in the shared folder is no problem. Just make sure
  the folder is included in your module definition. Having the XML in
  the shared folder seems a little bit weired to me. Normally you
  receive the XML in response to some request you made. Anyway if you
  just want to test Piritis XML mappings, you can load the XML using
  a
  ClientBundle:

  
  public interface FooResources extends ClientBundle
  {
     FooResources INSTANCE = GWT.create(FooResources.class);

    �...@source(foo.xml)
     public TextResource fooXml();

     ...
  }
  

  Make sure foo.xml is in the same package as FooResources. Then you
  can
  get the XML using
  FooResources.INSTANCE.fooXml().getText()

  - Harald

  On 9 Aug., 14:52, Deepak Singh deepaksingh...@gmail.com wrote:
   Any suggestion pls .

   On Mon, Aug 9, 2010 at 2:02 AM, Deepak Singh 
deepaksingh...@gmail.com
  wrote:

Hi All,

I am using piriti 0.4.1 for mapping XML to POJO's with gwt 2.1
  m2.
For learning purpose, i added on sample xml file to shared
  folder
and
created the java classes in shared folder only. But these java
classes
  show
the following error
 *The type 

Re: Using piriti 0.4.1

2010-08-11 Thread Deepak Singh
Hi Harald,

XML size is larger one as it is the result of available hotels or flight on
a particular date.
So what is the best way to parse you suggest.

You mean Anyway the XML is parsed using the browsers native XML parsrer is
about the parser used by GWT internally ?

On Wed, Aug 11, 2010 at 12:19 PM, Harald Pehl harald.p...@googlemail.comwrote:

 The JSON way would just be an alternative if the server delivers JSON.
 Converting XML to JSON on the client is a very bad idea.

 Anyway the XML is parsed using the browsers native XML parsrer. So it
 should be reasonable fast. Though it depends on the size of the XML
 response you're parsing.

 - Harald

 On 10 Aug., 18:24, Deepak Singh deepaksingh...@gmail.com wrote:
  Hi Harald,
 
  If i use JSON then i think i need to convert first my xml into json as i
 am
  getting xml from my server response. And then i will have to map this
 JSON
  with java pojo. then it may take more time for conversion of xml into
 json.
  My critical issue is the time for taking xml and representing it into
 front
  end in the minimum possible time.
 
  On Tue, Aug 10, 2010 at 8:08 PM, Harald Pehl harald.p...@googlemail.com
 wrote:
  
 
 
   Piriti is the only XML mapper for GWT I know. So I cannot say if it
   performs better than XYZ. If performance is critical in your
   application, consider to use JSON as it it more lightweight and
   integrates in GWT.
 
   - Harald
 
   On 10 Aug., 11:05, Deepak Singh deepaksingh...@gmail.com wrote:
Thanks harald. I hope the issue will be resolved now.
But do you suggest using piriti is a better solution for xml mapping
 to
   pojo
which can give fast result. Or is there anything else i should take
 up
   for
xml to java mapping.
Pls suggest.
 
Deepak
 
On Tue, Aug 10, 2010 at 1:04 PM, Harald Pehl 
 harald.p...@googlemail.com
   wrote:
 
 You missed one more dependency: Google GIN -
http://code.google.com/p/google-gin/
 
 Please take a look athttp://
   code.google.com/p/piriti/wiki/GettingStarted
 - Prerequisites. There you can see all dependencies necessary for
 Piriti.
 
 - Harald
 
 On 9 Aug., 20:47, Deepak Singh deepaksingh...@gmail.com wrote:
  Hi Harald,
 
  Thanks for your guidance.
 
  I did all these things as stated by you. I included the jar file
 of
 totoe.
  Reads xml through clientBundle. But while compiling i get the
   following
  error
 
  Loading inherited module 'name.pehl.piriti.Piriti'
 Loading inherited module 'com.google.gwt.inject.Inject'
[ERROR] Unable to find
 'com/google/gwt/inject/Inject.gwt.xml'
   on
 your
  classpath; could be a typo, or maybe you forgot to include a
   classpath
 entry
  for source?
 [ERROR] Line 8: Unexpected exception while processing element
 'inherits'
  com.google.gwt.core.ext.UnableToCompleteException: (see previous
 log
  entries)
  at
 
  
 com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:239)
  at
 
  
 com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDe
 fSchema.java:407)
  at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at
 
  
 com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:22
 4)
 
  So the compilation failed.
 
  I have injected these two in .gwt.xml
  inherits name=name.pehl.totoe.Totoe /
  inherits name=name.pehl.piriti.Piriti /
 
  Do i need to include anything else in the project ?
 
  Thanks
  Deepak
 
  On Mon, Aug 9, 2010 at 7:03 PM, Harald Pehl 
   harald.p...@googlemail.com
 wrote:
 
   Piriti relies on Totoe. Totoe is an alternative XML parser with
   namespace support. So please make sure you have the relevant
 JAR
   file
   in the classpath / eclipse project. Totoe is available under
  http://code.google.com/p/totoe/.
 
   Having your POJO in the shared folder is no problem. Just make
 sure
   the folder is included in your module definition. Having the
 XML in
   the shared folder seems a little bit weired to me. Normally you
   receive the XML in response to some request you made. Anyway if
 you
   just want to test Piritis XML mappings, you can load the XML
 using
   a
   ClientBundle:
 
   
   public interface FooResources extends ClientBundle
   {
  FooResources INSTANCE = GWT.create(FooResources.class);
 
  @Source(foo.xml)
  public TextResource fooXml();
 
  ...
   }
   
 
   Make sure foo.xml is in the same package as FooResources. Then
 you
   can
   get the XML using
   FooResources.INSTANCE.fooXml().getText()
 
   - Harald
 
   

Displaying date in format dd/mm/yy

2010-08-11 Thread Santosh kumar
Hi,
After rpc cal i am getting the date from datastore which was stored in some
of the kind,
but i want to display that date in the format dd/mm/yy and the time also.
Please can anyone help me to make over this task.

-- 
Thanks  Regards

*S a n t o s h  k u m a r . k*

-- 
You received 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: why we probably won't use GWT for a large UI project

2010-08-11 Thread Stefan Bachert
Hi marius,

using REST, SOAP, JSON directly from the browser client is always
insecure.
This is because the browser client has to know the credentials.
Either these services are not protected at all, or your credentials
are likely to be stolen.

When you need a minimum of security and privacy, your gui browser
client should only talk via GWT-RPC  to a GWT-server under your
control which gathers all data from REST, SOAP or JSON services.

Stefan Bachert
http://gwtworld.de

On 10 Aug., 04:27, marius.andreiana marius.andrei...@gmail.com
wrote:
 Hi,

 We're working on a large project, which has the back-end is written in
 a non-Java technology, with REST APIs. We're looking for a framework
 to replace the current UI.

 I did a brief analysis of using 
 GWT:https://docs.google.com/document/edit?id=16rQknO-r3ZqfMbuIl0R52OnFcWB...

 I'm looking to get this group's feedback before I present my findings
 to the team. What do you think?

 Thanks,
 Marius

-- 
You received 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 and Map dynamic loading

2010-08-11 Thread Vincent COROLLEUR
Hello,

In my application, users can choose between two different map : google
map or OpenLayers. I'd like to load dynamically the chosen one by
loading the corresponding script (in this exemple google map).

I tried this (in the EntryPoint) :

ScriptElement script1 = Document.get().createScriptElement();
script1.setType(text/javascript);
script1.setSrc(http://maps.google.com/maps?
file=apiv=2sensor=falsekey=ABQIpOR5tulUc5y1R6lOKFkbpRTwM0brOpm-
All5BF6PoaKBxRWWERTqbaRJ6lpQdSlaltvv3tD-fLXwvQ);

Document.get().getElementsByTagName(head).getItem(0).appendChild(script1);

ScriptElement script2 = Document.get().createScriptElement();
script2.setType(text/javascript);

script2.setSrc(http://mapstraction.googlecode.com/svn/trunk/source/
mxn.js?(google));

Document.get().getElementsByTagName(head).getItem(0).appendChild(script2);

This code makes my application unloading... (message : Unloading
module).

I don't understand the problem. Is there a way to realize this ?

Vincent COROLLEUR



-- 
You received 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: Displaying date in format dd/mm/yy

2010-08-11 Thread Prashant Hegde

 See if this helps

http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/i18n/client/DateTimeFormat.html

Thanks
Prashant


On 11-08-2010 12:49, Santosh kumar wrote:

Hi,
After rpc cal i am getting the date from datastore which was stored in 
some of the kind,

but i want to display that date in the format dd/mm/yy and the time also.
Please can anyone help me to make over this task.

--
Thanks  Regards

*S a n t o s h  k u m a r . k*
--
You received this message because you are subscribed to the Google 
Groups Google Web Toolkit group.

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


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



Re: Displaying date in format dd/mm/yy

2010-08-11 Thread Shakun Sachdeva
Hi,
You can see the below snippet..
Hope it helps...

private void initDateFormat()
{
DateUtil.setShortDateDisplayFormatter(new DateDisplayFormatter() {
 public String format(Date date) {
 if(date == null) return null;
 final DateTimeFormat dateFormatter =
DateTimeFormat.getFormat(dd/mm/yy HH:mm);
 String format = dateFormatter.format(date);
 return format;
 }
 });
}

Regards,
Shakun
On Wed, Aug 11, 2010 at 12:49 PM, Santosh kumar kopp@gmail.com wrote:

 Hi,
 After rpc cal i am getting the date from datastore which was stored in some
 of the kind,
 but i want to display that date in the format dd/mm/yy and the time also.
 Please can anyone help me to make over this task.

 --
 Thanks  Regards

 *S a n t o s h  k u m a r . k*

 --
 You received 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: Using piriti 0.4.1

2010-08-11 Thread Harald Pehl
At the end of the day both GWT and Piriti use the browsers internal
XMLParser. I would suggest to map the XML using Piriti and see if the
performance is ok for you.

- Harald

On 11 Aug., 09:06, Deepak Singh deepaksingh...@gmail.com wrote:
 Hi Harald,

 XML size is larger one as it is the result of available hotels or flight on
 a particular date.
 So what is the best way to parse you suggest.

 You mean Anyway the XML is parsed using the browsers native XML parsrer is
 about the parser used by GWT internally ?

 On Wed, Aug 11, 2010 at 12:19 PM, Harald Pehl 
 harald.p...@googlemail.comwrote:



  The JSON way would just be an alternative if the server delivers JSON.
  Converting XML to JSON on the client is a very bad idea.

  Anyway the XML is parsed using the browsers native XML parsrer. So it
  should be reasonable fast. Though it depends on the size of the XML
  response you're parsing.

  - Harald

  On 10 Aug., 18:24, Deepak Singh deepaksingh...@gmail.com wrote:
   Hi Harald,

   If i use JSON then i think i need to convert first my xml into json as i
  am
   getting xml from my server response. And then i will have to map this
  JSON
   with java pojo. then it may take more time for conversion of xml into
  json.
   My critical issue is the time for taking xml and representing it into
  front
   end in the minimum possible time.

   On Tue, Aug 10, 2010 at 8:08 PM, Harald Pehl harald.p...@googlemail.com
  wrote:

Piriti is the only XML mapper for GWT I know. So I cannot say if it
performs better than XYZ. If performance is critical in your
application, consider to use JSON as it it more lightweight and
integrates in GWT.

- Harald

On 10 Aug., 11:05, Deepak Singh deepaksingh...@gmail.com wrote:
 Thanks harald. I hope the issue will be resolved now.
 But do you suggest using piriti is a better solution for xml mapping
  to
pojo
 which can give fast result. Or is there anything else i should take
  up
for
 xml to java mapping.
 Pls suggest.

 Deepak

 On Tue, Aug 10, 2010 at 1:04 PM, Harald Pehl 
  harald.p...@googlemail.com
wrote:

  You missed one more dependency: Google GIN -
 http://code.google.com/p/google-gin/

  Please take a look athttp://
code.google.com/p/piriti/wiki/GettingStarted
  - Prerequisites. There you can see all dependencies necessary for
  Piriti.

  - Harald

  On 9 Aug., 20:47, Deepak Singh deepaksingh...@gmail.com wrote:
   Hi Harald,

   Thanks for your guidance.

   I did all these things as stated by you. I included the jar file
  of
  totoe.
   Reads xml through clientBundle. But while compiling i get the
following
   error

   Loading inherited module 'name.pehl.piriti.Piriti'
      Loading inherited module 'com.google.gwt.inject.Inject'
         [ERROR] Unable to find
  'com/google/gwt/inject/Inject.gwt.xml'
on
  your
   classpath; could be a typo, or maybe you forgot to include a
classpath
  entry
   for source?
      [ERROR] Line 8: Unexpected exception while processing element
  'inherits'
   com.google.gwt.core.ext.UnableToCompleteException: (see previous
  log
   entries)
   at

  com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:239)
   at

  com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDe
  fSchema.java:407)
   at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
  Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at

  com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:22
  4)

   So the compilation failed.

   I have injected these two in .gwt.xml
   inherits name=name.pehl.totoe.Totoe /
   inherits name=name.pehl.piriti.Piriti /

   Do i need to include anything else in the project ?

   Thanks
   Deepak

   On Mon, Aug 9, 2010 at 7:03 PM, Harald Pehl 
harald.p...@googlemail.com
  wrote:

Piriti relies on Totoe. Totoe is an alternative XML parser with
namespace support. So please make sure you have the relevant
  JAR
file
in the classpath / eclipse project. Totoe is available under
   http://code.google.com/p/totoe/.

Having your POJO in the shared folder is no problem. Just make
  sure
the folder is included in your module definition. Having the
  XML in
the shared folder seems a little bit weired to me. Normally you
receive the XML in response to some request you made. Anyway if
  you
just want to test Piritis XML mappings, you can load the XML
  using
a
ClientBundle:


public interface FooResources extends ClientBundle
{
   FooResources INSTANCE = GWT.create(FooResources.class);

  

Re: why we probably won't use GWT for a large UI project

2010-08-11 Thread cokol
hi,

goods thoughts you had, but dont treat GWT as a framework, Google
doesnt do it either :-) Its just a toolkit or better yet, a JS
compiler with some tooling around. And being just a toolkit is more
powerful than create yet another throw-away ajax framework! There're
plenty wonderful ajax frameworks around so why should GWT be just
another one?!

so its best choice for you to get on fast productivity with GWT - but
from the beginning consider using a real framework BASED on GWT,  i.e.
SmartGWT or ExtGWT or I also would suggest to look at Vaadin...

for me personally I would prefer ExtGWT rather than SmartGWT because
smart is not written purely in Java but is just  a wrap on existing
smartClient technology, which has some drawbacks.

regards

On 10 Aug., 10:27, marius.andreiana marius.andrei...@gmail.com
wrote:
 Hi,

 We're working on a large project, which has the back-end is written in
 a non-Java technology, with REST APIs. We're looking for a framework
 to replace the current UI.

 I did a brief analysis of using 
 GWT:https://docs.google.com/document/edit?id=16rQknO-r3ZqfMbuIl0R52OnFcWB...

 I'm looking to get this group's feedback before I present my findings
 to the team. What do you think?

 Thanks,
 Marius

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



Deserialization on the Client / Browser

2010-08-11 Thread cokol
hi folks,

i am using standard rpc calls but the client fails to deserialize the
response with error could not deserialize - it here a way to debug
that deserialization process on the client from within eclipse?

-- 
You received 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: Deserialization on the Client / Browser

2010-08-11 Thread cokol
update: ok, got the reason for that - wrong magic number for the class
type :( I've provided some source which differs from original class by
having dummy API implementation, I dont believe this should make
signature change...?

On 11 Aug., 11:18, cokol eplisc...@googlemail.com wrote:
 hi folks,

 i am using standard rpc calls but the client fails to deserialize the
 response with error could not deserialize - it here a way to debug
 that deserialization process on the client from within eclipse?

-- 
You received 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: Displaying date in format dd/mm/yy

2010-08-11 Thread Santosh kumar
Hi Shakun,
I want to display this date in the flextable as one of the column for the
list of rows.
is your snippet will help me ??

On Wed, Aug 11, 2010 at 1:12 PM, Shakun Sachdeva s28sw...@gmail.com wrote:

 Hi,
 You can see the below snippet..
 Hope it helps...

 private void initDateFormat()
 {
 DateUtil.setShortDateDisplayFormatter(new DateDisplayFormatter() {
  public String format(Date date) {
  if(date == null) return null;
  final DateTimeFormat dateFormatter =
 DateTimeFormat.getFormat(dd/mm/yy HH:mm);
  String format = dateFormatter.format(date);
  return format;
  }
  });
 }

 Regards,
 Shakun
 On Wed, Aug 11, 2010 at 12:49 PM, Santosh kumar kopp@gmail.comwrote:

 Hi,
 After rpc cal i am getting the date from datastore which was stored in
 some of the kind,
 but i want to display that date in the format dd/mm/yy and the time also.
 Please can anyone help me to make over this task.

 --
 Thanks  Regards

 *S a n t o s h  k u m a r . k*

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




-- 
Thanks  Regards

*S a n t o s h  k u m a r . k*

-- 
You received 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: Displaying date in format dd/mm/yy

2010-08-11 Thread cokol
why dont you try :D

but yes, it will...

regards,

On 11 Aug., 11:38, Santosh kumar kopp@gmail.com wrote:
 Hi Shakun,
 I want to display this date in the flextable as one of the column for the
 list of rows.
 is your snippet will help me ??





 On Wed, Aug 11, 2010 at 1:12 PM, Shakun Sachdeva s28sw...@gmail.com wrote:
  Hi,
  You can see the below snippet..
  Hope it helps...

  private void initDateFormat()
      {
          DateUtil.setShortDateDisplayFormatter(new DateDisplayFormatter() {
               public String format(Date date) {
                   if(date == null) return null;
                   final DateTimeFormat dateFormatter =
  DateTimeFormat.getFormat(dd/mm/yy HH:mm);
                   String format = dateFormatter.format(date);
                   return format;
               }
           });
      }

  Regards,
  Shakun
  On Wed, Aug 11, 2010 at 12:49 PM, Santosh kumar kopp@gmail.comwrote:

  Hi,
  After rpc cal i am getting the date from datastore which was stored in
  some of the kind,
  but i want to display that date in the format dd/mm/yy and the time also.
  Please can anyone help me to make over this task.

  --
  Thanks  Regards

  *S a n t o s h  k u m a r . k*

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

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

 --
 Thanks  Regards

 *S a n t o s h  k u m a r . k*

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

2010-08-11 Thread mariyan nenchev
Hi,

I need to play simple wav file with gwt voices. But i have problem (may be
with plugins)...

Here is what i do:

// construct sound
final SoundController sc = new SoundController();
sound = sc.createSound(Sound.MIME_TYPE_AUDIO_BASIC,
ServiceUtils.getClientResource().cue().getUrl());

// onClick()
sound.play();

I've installed Qucktime (manually) and it works there. But in IE 7/8 it does
not play the sound. Any ideas? Please help.

Regards.

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



exception with Gwt and Hibernate

2010-08-11 Thread Shakun Sachdeva
Pls help me with the below exception..


Hi

I am working on Gwt with Hibernate at backend and am having this exception.
Can anyone help me in this that why I am geting this exception??

Caused by: org.hibernate.StaleObjectStateException: Row was updated or
deleted by another transaction (or unsaved-value mapping was incorrect):
[com.axim.emr.client.beans.Insurance#259]
at
org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:418)
at
org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:234)
at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:715)
at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:697)
at
org.hibernate.engine.CascadingAction$6.cascade(CascadingAction.java:268)
at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:292)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:240)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:193)
at
org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:320)
at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:266)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:243)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:193)
at org.hibernate.engine.Cascade.cascade(Cascade.java:154)
at
org.hibernate.event.def.DefaultMergeEventListener.cascadeOnMerge(DefaultMergeEventListener.java:563)
at
org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:423)
at
org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:234)
at
org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:705)
at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:689)
at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:693)
at
com.axim.emr.server.DataServiceImpl.updatePatientObject(DataServiceImpl.java:227)
at
com.axim.emr.server.DataServiceImpl.updatePatientObject(DataServiceImpl.java:1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
net.sf.gilead.gwt.PersistentRemoteService.processCall(PersistentRemoteService.java:174)


Thanks ,
Shakun

-- 
You received 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 rpc application scope

2010-08-11 Thread Thomas Van Driessche
Hi All,

Is it possible to put something in the application scope of the server
where the gwt app is deployed?

The app uses rpc.

kind regards

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



Re: GWT and Map dynamic loading

2010-08-11 Thread Eric Ayers
That error message doesn't look familiar.  Where do you see the
message?  Are you running in development mode or web mode?

If you want to dynamically load the Google Maps API, you can use the
gwt-google-apis maps library Maps.loadMapsApi() method:

http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.1/com/google/gwt/maps/client/Maps.html

or the AjaxLoader classs directly:

http://gwt-google-apis.googlecode.com/svn/javadoc/ajaxloader/1.1/com/google/gwt/ajaxloader/client/AjaxLoader.html

If you want to see how Maps.loadMapsApi to injects a script tag, take
a look at the implementation of the AjaxLoader class.

http://www.google.com/codesearch/p?hl=en#ow6Lmd7dcZY/trunk/ajaxloader/ajaxloader/src/com/google/gwt/ajaxloader/client/AjaxLoader.java

It is pretty much the same, only it puts the script tag on the BODY
element, and has logic to wait for the tag to be loaded by using a
callback.


On Wed, Aug 11, 2010 at 3:26 AM, Vincent COROLLEUR vcoroll...@gmail.com wrote:
 Hello,

 In my application, users can choose between two different map : google
 map or OpenLayers. I'd like to load dynamically the chosen one by
 loading the corresponding script (in this exemple google map).

 I tried this (in the EntryPoint) :

                ScriptElement script1 = Document.get().createScriptElement();
                script1.setType(text/javascript);
                script1.setSrc(http://maps.google.com/maps?
 file=apiv=2sensor=falsekey=ABQIpOR5tulUc5y1R6lOKFkbpRTwM0brOpm-
 All5BF6PoaKBxRWWERTqbaRJ6lpQdSlaltvv3tD-fLXwvQ);

 Document.get().getElementsByTagName(head).getItem(0).appendChild(script1);

                ScriptElement script2 = Document.get().createScriptElement();
                script2.setType(text/javascript);
                
 script2.setSrc(http://mapstraction.googlecode.com/svn/trunk/source/
 mxn.js?(google));

 Document.get().getElementsByTagName(head).getItem(0).appendChild(script2);

 This code makes my application unloading... (message : Unloading
 module).

 I don't understand the problem. Is there a way to realize this ?

 Vincent COROLLEUR



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





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

2010-08-11 Thread Luis Daniel Mesa Velasquez
I don't see anything about the encryption used in the RPC call to the
userservice... so it's just a fancy 3rd party RPC call, no security
there...

On Aug 10, 3:20 am, Peter Simun si...@seges.sk wrote:
 Hi all,

 I just wanted to share with you the article about security in GWT
 application.http://java.dzone.com/articles/securing-gwt-client-acris

 Serious security implementation is something that was missing almost
 to each GWT developer. I saw many topics here in the forum about the
 security, so maybe it will helps you to implement security in a
 correct way.

 Peter

-- 
You received 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 rpc application scope

2010-08-11 Thread cokol
why not? do you want to put the whole application scope on wire or
what do you mean why is should interfere?

On 11 Aug., 13:20, Thomas Van Driessche
thomas.van.driessch...@gmail.com wrote:
 Hi All,

 Is it possible to put something in the application scope of the server
 where the gwt app is deployed?

 The app uses rpc.

 kind regards

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



(BUG) -- Uncaught exception escaped

2010-08-11 Thread Santosh kumar
Hi,
this is the BUG which i see when i work with this module ..
please can any one help me to fix this this BUG.

17:47:16.937 [ERROR] [TaxCategory] Uncaught exception escaped
java.lang.AssertionError: A widget that has an existing parent widget may
not be added to the detach list
at
com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose(RootPanel.java:136)
at com.google.gwt.user.client.ui.RootPanel.get(RootPanel.java:211)
at
com.veersoft.gwt.client.taxcategory.TaxCategoryGwtEntryPoint.setScreenletTitle(TaxCategoryGwtEntryPoint.java:475)
at
com.veersoft.gwt.client.taxcategory.TaxCategoryGwtEntryPoint.addOrUpdateTaxCategoryHandler(TaxCategoryGwtEntryPoint.java:198)
at
com.veersoft.gwt.client.taxcategory.TaxCategoryGwtEntryPoint.onValueChange(TaxCategoryGwtEntryPoint.java:484)
at
com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:128)
at
com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:1)
at
com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:65)
at
com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:53)
at
com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:178)
at
com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:74)
at
com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:43)
at
com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:81)
at
com.google.gwt.user.client.impl.HistoryImpl.newItem(HistoryImpl.java:118)
at com.google.gwt.user.client.History.newItem(History.java:173)
at com.google.gwt.user.client.History.newItem(History.java:156)
at
com.google.gwt.user.client.ui.Hyperlink.onBrowserEvent(Hyperlink.java:163)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1307)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor727.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)

-- 
Thanks  Regards

*S a n t o s h  k u m a r . k*

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

2010-08-11 Thread cokol
there is no reason to secure it, since decryption logic would be in
javascript - thus public accessible, so better to use https ;)

On 11 Aug., 14:04, Luis Daniel Mesa Velasquez
luisdanielm...@gmail.com wrote:
 I don't see anything about the encryption used in the RPC call to the
 userservice... so it's just a fancy 3rd party RPC call, no security
 there...

 On Aug 10, 3:20 am, Peter Simun si...@seges.sk wrote:



  Hi all,

  I just wanted to share with you the article about security in GWT
  application.http://java.dzone.com/articles/securing-gwt-client-acris

  Serious security implementation is something that was missing almost
  to each GWT developer. I saw many topics here in the forum about the
  security, so maybe it will helps you to implement security in a
  correct way.

  Peter

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



Upgrade from 1.5.3 to 2.x

2010-08-11 Thread cupakob
HI *,

we have an application, which is build with GWT 1.5.3. Is it possible
to upgrade to the newest GWT version? Is there any howto, how to make
the upgrade?

Thanks in advance!
S.

-- 
You received 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: exception with Gwt and Hibernate

2010-08-11 Thread cokol
do you rpc objects to the client? maybe it cannot find the id of the
object when unmarshalled on the server?

On 11 Aug., 12:50, Shakun Sachdeva s28sw...@gmail.com wrote:
 Pls help me with the below exception..

 --- 
 -
 Hi

 I am working on Gwt with Hibernate at backend and am having this exception.
 Can anyone help me in this that why I am geting this exception??

 Caused by: org.hibernate.StaleObjectStateException: Row was updated or
 deleted by another transaction (or unsaved-value mapping was incorrect):
 [com.axim.emr.client.beans.Insurance#259]
     at
 org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultM 
 ergeEventListener.java:418)
     at
 org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEvent 
 Listener.java:234)
     at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:715)
     at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:697)
     at
 org.hibernate.engine.CascadingAction$6.cascade(CascadingAction.java:268)
     at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:292)
     at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:240)
     at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:193)
     at
 org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:320)
     at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:266)
     at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:243)
     at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:193)
     at org.hibernate.engine.Cascade.cascade(Cascade.java:154)
     at
 org.hibernate.event.def.DefaultMergeEventListener.cascadeOnMerge(DefaultMer 
 geEventListener.java:563)
     at
 org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultM 
 ergeEventListener.java:423)
     at
 org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEvent 
 Listener.java:234)
     at
 org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEvent 
 Listener.java:84)
     at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:705)
     at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:689)
     at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:693)
     at
 com.axim.emr.server.DataServiceImpl.updatePatientObject(DataServiceImpl.jav 
 a:227)
     at
 com.axim.emr.server.DataServiceImpl.updatePatientObject(DataServiceImpl.jav 
 a:1)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9)
     at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at
 net.sf.gilead.gwt.PersistentRemoteService.processCall(PersistentRemoteServi 
 ce.java:174)

 Thanks ,
 Shakun

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



More woes with IE + Client(Image) Bundles

2010-08-11 Thread Sean
I have a widget that dynamically makes medals. What it does is takes
the place they are in (1st,2nd...) and gets the right color background
medal from a ClientBundle, then using the same Client Bundle it
creates the number from the ClientBundle, which has the #'s 0-9 in it.
If it's 10, it grabs 1 and 0, and scales them accordingly. It takes
all these images and arranges them on an Absolute Panel to center
everything and it works amazingly well.

Except of course on IE. When on IE it looks like it takes the whole
ImageBundle and smooshes it together with all transparency lost of
course. I am SO sick of IE. I like to do lots of things with Images
and Bundles and I find IE messes it up almost every-time.

Is there anyway around this or should I check for the user using IE
and warn them their browser sucks and my site won't always render
correctly using 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: (BUG) -- Uncaught exception escaped

2010-08-11 Thread cokol
hum, this assertion seems to be wanted, what did u do to cause the
error? i mean seems like there is an event firing which causes this
error isnt it?

On 11 Aug., 14:29, Santosh kumar kopp@gmail.com wrote:
 Hi,
 this is the BUG which i see when i work with this module ..
 please can any one help me to fix this this BUG.

 17:47:16.937 [ERROR] [TaxCategory] Uncaught exception escaped
 java.lang.AssertionError: A widget that has an existing parent widget may
 not be added to the detach list
     at
 com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose(RootPanel.java: 
 136)
     at com.google.gwt.user.client.ui.RootPanel.get(RootPanel.java:211)
     at
 com.veersoft.gwt.client.taxcategory.TaxCategoryGwtEntryPoint.setScreenletTi 
 tle(TaxCategoryGwtEntryPoint.java:475)
     at
 com.veersoft.gwt.client.taxcategory.TaxCategoryGwtEntryPoint.addOrUpdateTax 
 CategoryHandler(TaxCategoryGwtEntryPoint.java:198)
     at
 com.veersoft.gwt.client.taxcategory.TaxCategoryGwtEntryPoint.onValueChange( 
 TaxCategoryGwtEntryPoint.java:484)
     at
 com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEv 
 ent.java:128)
     at
 com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEv 
 ent.java:1)
     at
 com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(Handle 
 rManager.java:65)
     at
 com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(Handler 
 Manager.java:53)
     at
 com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:17 8)
     at
 com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:74)
     at
 com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent. 
 java:43)
     at
 com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryI 
 mpl.java:81)
     at
 com.google.gwt.user.client.impl.HistoryImpl.newItem(HistoryImpl.java:118)
     at com.google.gwt.user.client.History.newItem(History.java:173)
     at com.google.gwt.user.client.History.newItem(History.java:156)
     at
 com.google.gwt.user.client.ui.Hyperlink.onBrowserEvent(Hyperlink.java:163)
     at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1307)
     at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1263)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9)
     at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
     at
 com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
     at
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav 
 a:157)
     at
 com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur 
 n(BrowserChannel.java:1714)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
 elServer.java:165)
     at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:12 0)
     at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
     at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:26 4)
     at
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
 ava:91)
     at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
     at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
     at sun.reflect.GeneratedMethodAccessor727.invoke(Unknown Source)
     at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
     at
 com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
     at
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav 
 a:157)
     at
 com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java 
 :1669)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
 nelServer.java:401)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java 
 :222)
     at java.lang.Thread.run(Thread.java:619)

 --
 Thanks  Regards

 *S a n t o s h  k u m a r . k*

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



Change font-size on window resize

2010-08-11 Thread René
I'm building a game application that is intended to fully occupy a
browser window. This means that when a user resizes the window, the
application has to resize as well. This would be straightforward if
the application only consisted of panels with images, but in my case I
also need text to scale. What I would like to do is dynamically change
the font-size property in the CSS of a lower-level DIV element that
is wrapping all other elements in my application. By using relative
font sizes in the CSS for my encapsulated panels, I'm hoping to
propagate any changes to the font size of the lower-level element to
higher-level encapsulated panels.

In fact, when I statically change the font-size of div{} in my
external style sheet, all the text in my application is affected, so
it seems to be possible. However, I would like to do this dynamically.
Naively, I expected that I could simple change the font-size of the
root element (RootLayoutPanel.get().getElement() in my case), but that
does not have any effect on higher-level text fields. I'm a newbie
when it comes to CSS, so maybe I'm not getting inheritance correctly.

In a nutshell, is it possible to programmatically change the font-size
style property for one element and thereby affect all child elements?

Thanks very much in advance!

René

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



Excessive number of property descriptors

2010-08-11 Thread G. Vaaler

I got the following just now trying to GWT-compile for testing:

gwtc:
 [java] Compiling module com.dataloy.webtest2.TestApp
 [java]Scanning for additional dependencies: jar:file:***
 [java]   Computing all possible rebind results for 
'org.gwt.beansbinding.core.client.util.GWTBeansBinding'
 [java]  Rebinding 
org.gwt.beansbinding.core.client.util.GWTBeansBinding
 [java] Invoking 
com.google.gwt.dev.javac.standardgeneratorcont...@334d0d4d
 [java]Enable 
org.gwt.beansbinding.core.client.util.GWTBeansBinding for introspection

 [java]   Adding '1' new generated units
 [java]  Validating newly compiled units
 [java] [ERROR] Errors in 
'generated://E1893746222116E9EE87FF082CB77979/org/gwt/beansbinding/core/client/util/GWTBeansBindingIntrospector.java'
 [java][ERROR] Line 9: The code of method 
setupBeanInfo() is exceeding the 65535 bytes limit
 [java]See snapshot: 
/tmp/GWTBeansBindingIntrospector2326369653473147222.java
 [java]   [ERROR] Unable to find recently-generated type 
'org.gwt.beansbinding.core.client.util.GWTBeansBindingIntrospector
 [java][ERROR] Errors in 
'jar:file:/home/gardv/NetBeansProjects/vms/webtest2/war/WEB-INF/lib/gwt-beans-binding-0.3.jar!/org/gwt/beansbinding/core/client/util/GWTBeansBinding.java'

 [java]   [ERROR]  Internal compiler error
 [java] java.lang.RuntimeException: Unable to commit generated files
 [java] at 
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:131)
 [java] at 
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:200)
 [java] at 
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
 [java] at 
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:123)
 [java] at 
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:234)
 [java] at 
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$200(AbstractCompiler.java:109)
 [java] at 
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:522)
 [java] at 
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:112)
 [java] at 
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:47)
 [java] at 
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:422)
 [java] at 
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32)
 [java] at 
com.google.gwt.dev.Precompile.precompile(Precompile.java:522)
 [java] at 
com.google.gwt.dev.Precompile.precompile(Precompile.java:414)

 [java] at com.google.gwt.dev.Compiler.run(Compiler.java:201)
 [java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
 [java] at 
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
 [java] at 
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)

 [java] at com.google.gwt.dev.Compiler.main(Compiler.java:159)
 [java] Caused by: 
com.google.gwt.core.ext.UnableToCompleteException: (see previous log 
entries)
 [java] at 
com.google.gwt.dev.javac.StandardGeneratorContext.finish(StandardGeneratorContext.java:358)
 [java] at 
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:129)

 [java] ... 17 more

It seems my ontology actually contains too many properties to compile 
for GWT! This sounds a bit odd. Are there any workarounds or fixes?


--
Gard

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



No tag for 2.0.4 in SVN

2010-08-11 Thread Karel Piwko
Hi,

I haven't been able to find the tag for 2.0.4 at
http://google-web-toolkit.googlecode.com/svn/tags/2.0.4/.

Could you create it and specify the revision number of
http://google-web-toolkit.googlecode.com/svn/release/2.0 or another
branch the tag was created from?

Thanks,

Karel

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



Instantations gwt-builder

2010-08-11 Thread markomina
Instantations had gwt-builder which I evaluated some years ago.
When evaluation/commercial version will be available?

-- 
You received 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: Excessive number of property descriptors

2010-08-11 Thread Fernando
split it into multiple files

On 11 ago, 02:39, G. Vaaler g...@dataloy.com wrote:
 I got the following just now trying to GWT-compile for testing:

 gwtc:
       [java] Compiling module com.dataloy.webtest2.TestApp
       [java]    Scanning for additional dependencies: jar:file:***
       [java]       Computing all possible rebind results for
 'org.gwt.beansbinding.core.client.util.GWTBeansBinding'
       [java]          Rebinding
 org.gwt.beansbinding.core.client.util.GWTBeansBinding
       [java]             Invoking
 com.google.gwt.dev.javac.standardgeneratorcont...@334d0d4d
       [java]                Enable
 org.gwt.beansbinding.core.client.util.GWTBeansBinding for introspection
       [java]       Adding '1' new generated units
       [java]          Validating newly compiled units
       [java]             [ERROR] Errors in
 'generated://E1893746222116E9EE87FF082CB77979/org/gwt/beansbinding/core/client/util/GWTBeansBindingIntrospector.java'
       [java]                [ERROR] Line 9: The code of method
 setupBeanInfo() is exceeding the 65535 bytes limit
       [java]                See snapshot:
 /tmp/GWTBeansBindingIntrospector2326369653473147222.java
       [java]       [ERROR] Unable to find recently-generated type
 'org.gwt.beansbinding.core.client.util.GWTBeansBindingIntrospector
       [java]    [ERROR] Errors in
 'jar:file:/home/gardv/NetBeansProjects/vms/webtest2/war/WEB-INF/lib/gwt-beans-binding-0.3.jar!/org/gwt/beansbinding/core/client/util/GWTBeansBinding.java'
       [java]       [ERROR]  Internal compiler error
       [java] java.lang.RuntimeException: Unable to commit generated files
       [java]     at
 com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:131)
       [java]     at
 com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:200)
       [java]     at
 org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
       [java]     at
 com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:123)
       [java]     at
 com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:234)
       [java]     at
 com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$200(AbstractCompiler.java:109)
       [java]     at
 com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:522)
       [java]     at
 com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:112)
       [java]     at
 com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:47)
       [java]     at
 com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:422)
       [java]     at
 com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32)
       [java]     at
 com.google.gwt.dev.Precompile.precompile(Precompile.java:522)
       [java]     at
 com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
       [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:201)
       [java]     at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
       [java]     at
 com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
       [java]     at
 com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
       [java]     at com.google.gwt.dev.Compiler.main(Compiler.java:159)
       [java] Caused by:
 com.google.gwt.core.ext.UnableToCompleteException: (see previous log
 entries)
       [java]     at
 com.google.gwt.dev.javac.StandardGeneratorContext.finish(StandardGeneratorContext.java:358)
       [java]     at
 com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:129)
       [java]     ... 17 more

 It seems my ontology actually contains too many properties to compile
 for GWT! This sounds a bit odd. Are there any workarounds or fixes?

 --
 Gard

-- 
You received 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: Upgrade from 1.5.3 to 2.x

2010-08-11 Thread Fernando
I did the migration from 1.6.x to 2.0.x and it was pretty much
straightforward, just a couple deprecated elements (listeners -
handlers), but before that, from 1.5.x to 1.6.x, it seems that they
ran into some trouble...

On 11 ago, 09:37, cupakob sira...@gmail.com wrote:
 HI *,

 we have an application, which is build with GWT 1.5.3. Is it possible
 to upgrade to the newest GWT version? Is there any howto, how to make
 the upgrade?

 Thanks in advance!
 S.

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

2010-08-11 Thread Ladislav Gazo
I don't think that security is just about encrypting RPC calls. And as
cokol said if encrypted RPC stream is the only concern it should go
through HTTPs. The purpose of acris-security is to integrate server
side security with GWT client, propagating authentication and
authorization things (like allowing a user to see or manipulate
certain kind of data),...

And yes, it is fancy ;) but not only RPC call ;)

On 11. Aug, 14:04 h., Luis Daniel Mesa Velasquez
luisdanielm...@gmail.com wrote:
 I don't see anything about the encryption used in the RPC call to the
 userservice... so it's just a fancy 3rd party RPC call, no security
 there...

 On Aug 10, 3:20 am, Peter Simun si...@seges.sk wrote:

  Hi all,

  I just wanted to share with you the article about security in GWT
  application.http://java.dzone.com/articles/securing-gwt-client-acris

  Serious security implementation is something that was missing almost
  to each GWT developer. I saw many topics here in the forum about the
  security, so maybe it will helps you to implement security in a
  correct way.

  Peter

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

2010-08-11 Thread Peter Simun
Luis, why do you think that there is no security there?

Please, read the article again and carefully, or go on the wiki pages:
http://code.google.com/p/acris/wiki/Security

Peter

On 11. Aug, 14:04 h., Luis Daniel Mesa Velasquez
luisdanielm...@gmail.com wrote:
 I don't see anything about the encryption used in the RPC call to the
 userservice... so it's just a fancy 3rd party RPC call, no security
 there...

 On Aug 10, 3:20 am, Peter Simun si...@seges.sk wrote:

  Hi all,

  I just wanted to share with you the article about security in GWT
  application.http://java.dzone.com/articles/securing-gwt-client-acris

  Serious security implementation is something that was missing almost
  to each GWT developer. I saw many topics here in the forum about the
  security, so maybe it will helps you to implement security in a
  correct way.

  Peter

-- 
You received 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: Upgrade from 1.5.3 to 2.x

2010-08-11 Thread Bhaskar
we have upgraded GWT 1.7 to GWT 2.0.3... just we added new GWT in Google web
tool kit in Eclipse IDE..( in preferences).


On Wed, Aug 11, 2010 at 7:03 PM, Fernando spiderkens...@gmail.com wrote:

 I did the migration from 1.6.x to 2.0.x and it was pretty much
 straightforward, just a couple deprecated elements (listeners -
 handlers), but before that, from 1.5.x to 1.6.x, it seems that they
 ran into some trouble...

 On 11 ago, 09:37, cupakob sira...@gmail.com wrote:
  HI *,
 
  we have an application, which is build with GWT 1.5.3. Is it possible
  to upgrade to the newest GWT version? Is there any howto, how to make
  the upgrade?
 
  Thanks in advance!
  S.

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




-- 
Keep Smiling
Thanks  Regards
Bhaskar.
Mobile:9866724142

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



Re: History and/or Place

2010-08-11 Thread Thomas Broyer


On 8 août, 23:44, jaybose onyeje.b...@gmail.com wrote:
 Some background...

 This link discusses using the History concept in GWT to manage history
 and navigation 
 -http://code.google.com/webtoolkit/articles/mvp-architecture.html#history

 This link gives more detail on the History concept 
 -http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHist...

 This link describes how GWT-Presenter manages Place 
 -http://code.google.com/p/gwt-presenter/wiki/GettingStarted#The_Presenter

 My question...

 Does anyone know if and how the 2 concepts (History and Place) will
 come together? With the existence of Place, is anyone even using the
 History concept anymore?

 I ask because I plane on using the AppController concept described in
 the first link, but I'd like merge this with the Place implementation
 I see in GWT-Presenter.

 Wondering what the general consensus on this is, if one exists.

See https://wave.google.com/wave/waveref/googlewave.com/w+eva-sERfA

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



DateBox locals messed up with GWT 2.1 MS2

2010-08-11 Thread Christian Goudreau
I have a small issue since updating to GWT 2.1 MS2, I have to write my dates
MM/JJ/ while I had and want to write them in the format JJ/MM/ in
earlier versions.

I tried to force the local, didn't change anything. I was just wondering if
there's anything that changed that I didn't see.

Thanks

-- 
Christian Goudreau
www.arcbees.com

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



Re: GWT security

2010-08-11 Thread Stefan Bachert
Hi Peter,

I had just a glance at acris.
Acris is talking about a client side part.

No mechanism which depends on client side code could be secure!

So I would suspect acris to be a misconsception.
At  the moment I do not spend time to exactly find out what is wrong
with acris.

Stefan Bachert
http://gwtworld.de


On 11 Aug., 15:47, Peter Simun si...@seges.sk wrote:
 Luis, why do you think that there is no security there?

 Please, read the article again and carefully, or go on the wiki 
 pages:http://code.google.com/p/acris/wiki/Security

 Peter

 On 11. Aug, 14:04 h., Luis Daniel Mesa Velasquez

 luisdanielm...@gmail.com wrote:
  I don't see anything about the encryption used in the RPC call to the
  userservice... so it's just a fancy 3rd party RPC call, no security
  there...

  On Aug 10, 3:20 am, Peter Simun si...@seges.sk wrote:

   Hi all,

   I just wanted to share with you the article about security in GWT
   application.http://java.dzone.com/articles/securing-gwt-client-acris

   Serious security implementation is something that was missing almost
   to each GWT developer. I saw many topics here in the forum about the
   security, so maybe it will helps you to implement security in a
   correct way.

   Peter

-- 
You received 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: css bullets with sprites ?

2010-08-11 Thread Thomas Broyer

On 4 août, 16:57, Ed post2edb...@gmail.com wrote:
 Anybody any idea how to use gwt sprites with bullets  in css?
  Normally you would use gwt sprites in css like this:

 @sprite ul.bulletSimple li {
   gwt-image: bulletSimple;
   }

 But this will cause that GWT adds the width and height according to
 the image dimensions. This results in a list item with unwanted
 dimensions.
 Normally you can solve this with a div that wraps the div containing
 the image.
 However how to do this with a bullet list item?

You don't want spriting (possibly compositing multiple images into a
single file and using CSS hacks/tricks to only show the portion you
want), that won't work with list-style-image which expects a uri.
Instead, you should use a DataResource:

@url bulletSimple bulletSimple;
ul.bulletSimple li {
  list-style-image: bulletSimple;
}

see 
http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#References_to_Data_Resources

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



compile report

2010-08-11 Thread ben fenster
can anyone tell me why when i compile without compile report flag the
compilation finishes ok and when i use the flag the compilation gets
stuck at the end after all the permutation is finished here is the
report:
   Compiling 42 permutations
  Compiling permutation 0...
  Compiling permutation 1...
  Compiling permutation 2...
  Compiling permutation 3...
  Compiling permutation 4...
  Compiling permutation 5...
  Compiling permutation 6...
  Compiling permutation 7...
  Compiling permutation 8...
  Compiling permutation 9...
  Compiling permutation 10...
  Compiling permutation 11...
  Compiling permutation 12...
  Compiling permutation 13...
  Compiling permutation 14...
  Compiling permutation 15...
  Compiling permutation 16...
  Compiling permutation 17...
  Compiling permutation 18...
  Compiling permutation 19...
  Compiling permutation 20...
  Compiling permutation 21...
  Compiling permutation 22...
  Compiling permutation 23...
  Compiling permutation 24...
  Compiling permutation 25...
  Compiling permutation 26...
  Compiling permutation 27...
  Compiling permutation 28...
  Compiling permutation 29...
  Compiling permutation 30...
  Compiling permutation 31...
  Compiling permutation 32...
  Compiling permutation 33...
  Compiling permutation 34...
  Compiling permutation 35...
  Compiling permutation 36...
  Compiling permutation 37...
  Compiling permutation 38...
  Compiling permutation 39...
  Compiling permutation 40...
  Compiling permutation 41...
   Compile of permutations succeeded
at this point it is stuck and the java process takes 600mb
pls 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.



Re: Static CSS rules reference in UiBinder xml

2010-08-11 Thread Thomas Broyer


On 5 août, 20:30, Thamizharasu S zaru...@gmail.com wrote:
 Hi,

 I have started a new project on GWT. I have some basic question on
 CSS. I have a css file which has been referred directly in the HTML
 file (Main html file for this project)

 Now I am trying to have ui binder xml for each view. I want to refer
 the css rules directly in the ui binder xml file. Is it possible?

 I don't want to put this css file under the same location of ui binder
 xml file. My css file is placed under the war folder directly.

 Can any one help me on this?

Just use the class name from your CSS file, without braces.

ui:style
.fromInlineCssResource {
   border: 1px solid red;
}
/ui:style
g:HTMLPanel
  div class=fromExternalCssFile {style.fromInlineCssResource}
 FOO
 g:TextBox addStyleNames={style.fromInlineCssResource}
fromExternalCssFile /
 BAR
  /div
/g:HTMLPanel

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

2010-08-11 Thread Peter Simun
Hi Stefan,

of course, client side code could never be secured! AcrIS security
fully depends also on securing the RPC services (on the server side,
client side security is an complementary security - some kind of nice
to have security)
The goal is: if the user does not have rights to see some parts of the
screens, it won't be displayed. If the user is not able to modify the
data, he will see the readonly components.
Anyway, server side security is also checking if the user is able to
execute methods or if he is able to modify/see data he are reguesting.

This coupled approached gives you completly secured solution for GWT
applications.

Peter

On 11. Aug, 16:07 h., Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi Peter,

 I had just a glance at acris.
 Acris is talking about a client side part.

 No mechanism which depends on client side code could be secure!

 So I would suspect acris to be a misconsception.
 At  the moment I do not spend time to exactly find out what is wrong
 with acris.

 Stefan Bacherthttp://gwtworld.de

 On 11 Aug., 15:47, Peter Simun si...@seges.sk wrote:

  Luis, why do you think that there is no security there?

  Please, read the article again and carefully, or go on the wiki 
  pages:http://code.google.com/p/acris/wiki/Security

  Peter

  On 11. Aug, 14:04 h., Luis Daniel Mesa Velasquez

  luisdanielm...@gmail.com wrote:
   I don't see anything about the encryption used in the RPC call to the
   userservice... so it's just a fancy 3rd party RPC call, no security
   there...

   On Aug 10, 3:20 am, Peter Simun si...@seges.sk wrote:

Hi all,

I just wanted to share with you the article about security in GWT
application.http://java.dzone.com/articles/securing-gwt-client-acris

Serious security implementation is something that was missing almost
to each GWT developer. I saw many topics here in the forum about the
security, so maybe it will helps you to implement security in a
correct way.

Peter

-- 
You received 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: Making GWT look good...

2010-08-11 Thread Kevin Qiu
+1 for Vaadin.
Their widgets are very polished and professional. GXT and SmartGWT are fine
but they're too desktop-looky, not Web2.0 looky...



On Mon, Aug 9, 2010 at 4:03 PM, marius.andreiana marius.andrei...@gmail.com
 wrote:

 Hi Chi,

 On Aug 9, 10:23 pm, Chi H c...@chi.ca wrote:
   * Pagination is the standard solution to the 'large number of
  entities' problem.  However, there is a usability cost to pagination.
  It would be really nice to get rid of the pagination and just use a
  scrollbar.   If you used the approach of SlickGrid (http://
  wiki.github.com/mleibman/SlickGrid/), where you only rendered what was
  visible on the screen, you can render large numbers entities without
  the need for pagination.

 How will search engines index all the content in this case?

 The SlickGrid widget doesn't work at all if JS is not enabled.

 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: Hosting Entire Website on AppEngine? Integrating GWT into your website?

2010-08-11 Thread Joe Hudson
Sure, no problem Scott.

If you are looking at the source, I am using GWT Pages (http://
code.google.com/p/gwtpages/).  It makes life easier when dealing with
application messaging, history token management and page navigation.

One of the most important things to get working right at first IMHO is
the history token management as that is what will allow the back
button to work as it would in a more traditional web application.

I'm currently working on the demo application and adding to the wiki
docs but it is well javadoc'd.

Joe

On Aug 10, 10:09 pm, spierce7 spier...@gmail.com wrote:
 Thank you very much for your replies earlier today. Due to the link to
 your app (and even the source code!), you've completely changed/
 corrected my view of how GWT is supposed to be used. I was stuck in
 the PHP mindset of multiple websites, and I've read that GWT is used
 to make Rich Internet Applications probably 15 times, but I didn't
 really understand how it was supposed to fit together until I saw your
 app, so thank you very much.

 ~Scott

 On Aug 10, 11:00 am, Joe Hudson joe...@gmail.com wrote:

  It very well could be called datastore - I just recalled a name from
  memory...

  As far as the multiple files, you can have as many GWT application
  files as you  want - the each require an EntryPoint class though.  And
  if you want just plain static files and resources, you can do that as
  well... you would just put them directly under the war directory of
  your application.  One thing to note - AFAIK, you can't make a change
  to a single resource and upload that - you have to upload the whole
  site again.  But, google has a nice versioning system so you can
  upload multiple versions of your app to test and then move a version
  to the default version when you are ready.

  Joe

  On Aug 10, 9:22 am, spierce7 spier...@gmail.com wrote:

   Joe,

   Thanks for your fast reply. I figured you'd have you use google's
   database solution, but I thought it was called datastore. Either way
   I'm fine with that as long as it works, however using multiple less
   than operators across multiple entities would be convenient.

   One of my questions was how would you have a gwt application (or
   applicationS) spanning multiple html files, however you have your
   entire website it seems on a single html file. I'm not sure how you
   did that with your GWT app, but I'm gonna look through your source
   code and see if I can't figure out how. Through doing that, AppEngine
   is able to host your entire website, which is what I'd like.

   I actually have a good portion of my GWT app written. I've got RPC
   calls working, and I have the ability to use JDO, and make objects
   persistent, however I've been getting weird errors, and haven't been
   able to get my queries to work once. So I started thinking about other
   things and these questions started coming to mind. I thought that if I
   wasn't going to be able to host my site completely on app engine, why
   would I even bother with this, and not just use SQL? So apparently I'm
   going to keep chugging it out with AppEngine. Thanks!

   ~Scott

   On Aug 10, 8:50 am, Joe Hudson joe...@gmail.com wrote:

Hi Scott,

That is what I am doing withhttp://www.gwtmarketplace.com.  The catch
is that you currently have to use their BigTables DB but supposedly in
the third quarter they will be adding relational database support.

You need to register an app engine account and then register a google
apps account for the domain of your choice and map the app engine
account to that domain.  You can browse the source code for
gwtmarketplace here if you are 
interested:http://code.google.com/p/gwtmarketplace/source/browse/

I am using Objectify (http://code.google.com/p/objectify-appengine/)
as the data access utility but you could also use JPA as well.

As far as what hosts can run GWT - a simple web server like Apache can
do that as your GWT application will be compiled to static recources
to be served.  You will still need servlets or some other mechanism
for data access - I use servlets with RPC calls (http://
code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html)

Hope this helps...

Joe

On Aug 10, 7:59 am, spierce7 spier...@gmail.com wrote:

 There isn't any way to host an entire website on AppEngine is there?
 It doesn't seem like it, I just thought I'd ask. So if that's the
 case, how am I supposed to integrate GWT into my application? an
 iFrame? Does GWT have any write-ups about this? What if I need the
 rest of my website to have access to the same database my application
 is using. Is my only option at that point alternative hosting?

 What if I want my entire website to use GWT components, and a GWT RIA
 integrated into a specific part? That's what I'm trying to accomplish,
 and I don't know javascript worth squat, so what am I supposed to 

Re: Instantations gwt-builder

2010-08-11 Thread cokol
as soon as google finalises the transition :)

On 11 Aug., 14:54, markomina minam...@hotmail.com wrote:
 Instantations had gwt-builder which I evaluated some years ago.
 When evaluation/commercial version will be available?

-- 
You received 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: Is there a way to write html and then wrap widgets

2010-08-11 Thread cokol
write a Composite with static or dynamic built elements inside, they
just use it as it was a widget

On 11 Aug., 03:07, A/C A/C acro...@gmail.com wrote:
 Is there a way to write some html directly. Add this html to an
 existing gwt widget as a child and then wrap the html elements so they
 become gwt objects?

 That is:
 I want to write something like

 String myHtml=
 div id='outerDiv'h1Hello text field/h1input type='text'
 id='myTextField'/div;

 I then want to create a widget with this html, so I do a
 new HTML(myString) and add this html widget to my panel. So far so
 good, but then I want to wrap myTextField so it become a gwt object,
 but if I do a
 TextBox.wrap(DOM.getElementById(myTextField);
 I get an

 java.lang.AssertionError: A widget that has an existing parent widget
 may not be added to the detach list     at
 com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose(RootPanel.java:
 136)

 If i understand this correct, I can't wrap an html element if the html
 element it is in html that have a parent which is a gwt widget.

 So is there anyway to do what I have tried to describe above? I don't
 have to make the html at runtime, so I thought about placing the html
 in a display: none block in the page which contain my gwt root panel,
 and then use DOM methods to move it to where I wan't it at runtime,
 but this still give me the exception above when I try to wrap the html
 elements .

 Martin

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



Re: GWT and Map dynamic loading

2010-08-11 Thread Vincent COROLLEUR
Hello,

I'm trying this in hosted mode (development mode). I can see this
error in the Eclipse console.
If i use Goodle map API, i will not be able to load the other king of
map i need to use.

I tried many way to load these javascript files dynamically with an
URL as argument but it's always the same error.

 Module is loading normaly and when the code is reached, it unloads
the application.

Regards,

Vincent COROLLEUR

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



Is KeyPress discouraged ?

2010-08-11 Thread Christian Goudreau
I had made a masked text box and since rolling up to GWT 2.1 MS2 backspace
return 0 or nothing, enter too.

I'll go with KeyDown instead, but I was wondering why that have been changed
?

-- 
Christian Goudreau
www.arcbees.com

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



Re: Dev plugin for firefox 3.7

2010-08-11 Thread a...@mechnicality.com

Hi Chris,

I've found that FF 4 beta on Linux x86_64 (Ubuntu 10.04) doesn't seem to 
work with the BROWSER=ff40 version of the plugin. I've updated to 8516 
and tried to repeat the steps in your last email but I can't seem to get 
the make to work. It worked fine with 3.7 but I urgently need to move to 
4 beta. There's also a thread on the gwt-dev list on this, where John 
gave me help to get the plugin going on 3.7.


I'm getting the following errors:

gwt-source/trunk/plugins/xpcom$ make
(cd ../common  make)
make[1]: Entering directory `/home/ajc/gwt-source/trunk/plugins/common'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ajc/gwt-source/trunk/plugins/common'
Makefile:148: Using firefox libraries at 
../../../plugin-sdks/gecko-sdks/gecko-1.9.3/Linux_x86_64-gcc3/lib
[ ! -x 
../../../plugin-sdks/gecko-sdks/gecko-1.9.3/Linux_x86_64-gcc3/bin/xpidl 
-o \( -e prebuilt/ff40/include/IOOPHM.h -a ! -w 
prebuilt/ff40/include/IOOPHM.h \) ] || 
../../../plugin-sdks/gecko-sdks/gecko-1.9.3/Linux_x86_64-gcc3/bin/xpidl 
-I../../../plugin-sdks/gecko-sdks/gecko-1.9.3/idl -m header -e 
prebuilt/ff40/include/IOOPHM.h IOOPHM.idl
g++ -g -O2 -fPIC 
-I../../../plugin-sdks/gecko-sdks/gecko-1.9.3/Linux_x86_64-gcc3/include 
-I../../../plugin-sdks/gecko-sdks/gecko-1.9.3/include 
-Iprebuilt/ff40/include/ -rdynamic -m64 -DBROWSER=ff40 -DGECKO_19 
-fshort-wchar -c -o build/Linux_x86_64-gcc3-ff40/ExternalWrapper.o -I. 
-I../common ExternalWrapper.cpp

In file included from ExternalWrapper.h:21,
from ExternalWrapper.cpp:17:
mozincludes.h:11:26: error: xpcom-config.h: No such file or directory
mozincludes.h:12:28: error: mozilla-config.h: No such file or directory
In file included from ExternalWrapper.h:23,
from ExternalWrapper.cpp:17:
prebuilt/ff40/include/IOOPHM.h:10:25: error: nsISupports.h: No such file 
or directory

In file included from ExternalWrapper.h:25,
from ExternalWrapper.cpp:17:
Preferences.h:23:22: error: nsCOMPtr.h: No such file or directory
Preferences.h:25:25: error: nsIObserver.h: No such file or directory
Preferences.h:26:28: error: nsIPrefBranch2.h: No such file or directory
In file included from FFSessionHandler.h:23,
from ExternalWrapper.h:26,
from ExternalWrapper.cpp:17:
SessionData.h:23:19: error: jsapi.h: No such file or directory
In file included from ExternalWrapper.cpp:17:
ExternalWrapper.h:31:41: error: nsISecurityCheckedComponent.h: No such 
file or directory

ExternalWrapper.h:32:25: error: nsStringAPI.h: No such file or directory
ExternalWrapper.h:33:30: error: nsIWindowWatcher.h: No such file or 
directory

ExternalWrapper.h:34:26: error: nsIDOMWindow.h: No such file or directory
ExternalWrapper.cpp:19:36: error: nsIHttpProtocolHandler.h: No such file 
or directory

ExternalWrapper.cpp:21:22: error: nsNetCID.h: No such file or directory
ExternalWrapper.cpp:23:22: error: nsMemory.h: No such file or directory
ExternalWrapper.cpp:24:35: error: nsServiceManagerUtils.h: No such file 
or directory
ExternalWrapper.cpp:25:30: error: nsIPromptService.h: No such file or 
directory
ExternalWrapper.cpp:27:34: error: nsIDOMWindowInternal.h: No such file 
or directory
ExternalWrapper.cpp:28:28: error: nsIDOMLocation.h: No such file or 
directory
ExternalWrapper.cpp:29:28: error: nsXPCOMStrings.h: No such file or 
directory
ExternalWrapper.cpp:30:32: error: nsICategoryManager.h: No such file or 
directory
ExternalWrapper.cpp:31:31: error: nsIJSContextStack.h: No such file or 
directory
ExternalWrapper.cpp:32:30: error: nsIScriptContext.h: No such file or 
directory
ExternalWrapper.cpp:33:35: error: nsIScriptGlobalObject.h: No such file 
or directory

ExternalWrapper.cpp:34:27: error: nsPIDOMWindow.h: No such file or directory
ExternalWrapper.cpp:37:42: error: nsIClassInfoImpl.h: No such file or 
directory

In file included from ExternalWrapper.h:23,
from ExternalWrapper.cpp:17:
prebuilt/ff40/include/IOOPHM.h:27: error: expected initializer before 
‘:’ token

make: *** [build/Linux_x86_64-gcc3-ff40/ExternalWrapper.o] Error 1

What am I doing wrong?

Thanks in advance

Alan





On 06/17/2010 04:23 PM, Chris Conroy wrote:

On Tue, Jun 15, 2010 at 9:09 AM, Alan Chaneya...@mechnicality.com  wrote:
   

I'm developing a large WebGL application which is currently only supported
by the nightly builds, so the answer to your question is, sadly, no :-) .

I really, really want to be able to debug GWT in Firefox, so if necessary
I'd be prepared to help with testing/building.

Alan


On 06/14/2010 02:35 PM, Jim Douglas wrote:
 

Firefox 3.7 is the nightly (Minefield) build; is it possible to
switch back to the current released version (3.6.3)?


On Jun 14, 1:18 pm, Alan Chaneya...@mechnicality.com   wrote:

   

When I try to install the dev plugin on my Ubuntu 10.04 x64 system I get:

No suitable plugins were found

Seems to me that's because the 'latest' version in the plugin descriptor
is set to 3.6.

Does anyone know if there is a dev plugin build for 3.7? If not, can I
build/modify one 

Re: Dev plugin for firefox 3.7

2010-08-11 Thread Chris Conroy
The short answer is that after preliminary support went in, the supporting
libraries changed upstream. Also, when the prelim support went in Windows
dev libraries weren't even available. I think John has a change in the works
to get this updated but is blocked on something.

I suggest for the time being that you just use production mode for anything
you specifically have to test on 3.7. If that won't work, consider using a
slightly older version of 3.7 (from Jun 16 or so) to build the plugin.

On Wed, Aug 11, 2010 at 11:30 AM, a...@mechnicality.com 
a...@mechnicality.com wrote:

 Hi Chris,

 I've found that FF 4 beta on Linux x86_64 (Ubuntu 10.04) doesn't seem to
 work with the BROWSER=ff40 version of the plugin. I've updated to 8516 and
 tried to repeat the steps in your last email but I can't seem to get the
 make to work. It worked fine with 3.7 but I urgently need to move to 4 beta.
 There's also a thread on the gwt-dev list on this, where John gave me help
 to get the plugin going on 3.7.

 I'm getting the following errors:

 gwt-source/trunk/plugins/xpcom$ make
 (cd ../common  make)
 make[1]: Entering directory `/home/ajc/gwt-source/trunk/plugins/common'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory `/home/ajc/gwt-source/trunk/plugins/common'
 Makefile:148: Using firefox libraries at
 ../../../plugin-sdks/gecko-sdks/gecko-1.9.3/Linux_x86_64-gcc3/lib
 [ ! -x
 ../../../plugin-sdks/gecko-sdks/gecko-1.9.3/Linux_x86_64-gcc3/bin/xpidl -o
 \( -e prebuilt/ff40/include/IOOPHM.h -a ! -w prebuilt/ff40/include/IOOPHM.h
 \) ] ||
 ../../../plugin-sdks/gecko-sdks/gecko-1.9.3/Linux_x86_64-gcc3/bin/xpidl
 -I../../../plugin-sdks/gecko-sdks/gecko-1.9.3/idl -m header -e
 prebuilt/ff40/include/IOOPHM.h IOOPHM.idl
 g++ -g -O2 -fPIC
 -I../../../plugin-sdks/gecko-sdks/gecko-1.9.3/Linux_x86_64-gcc3/include
 -I../../../plugin-sdks/gecko-sdks/gecko-1.9.3/include
 -Iprebuilt/ff40/include/ -rdynamic -m64 -DBROWSER=ff40 -DGECKO_19
 -fshort-wchar -c -o build/Linux_x86_64-gcc3-ff40/ExternalWrapper.o -I.
 -I../common ExternalWrapper.cpp
 In file included from ExternalWrapper.h:21,
 from ExternalWrapper.cpp:17:
 mozincludes.h:11:26: error: xpcom-config.h: No such file or directory
 mozincludes.h:12:28: error: mozilla-config.h: No such file or directory
 In file included from ExternalWrapper.h:23,
 from ExternalWrapper.cpp:17:
 prebuilt/ff40/include/IOOPHM.h:10:25: error: nsISupports.h: No such file or
 directory
 In file included from ExternalWrapper.h:25,
 from ExternalWrapper.cpp:17:
 Preferences.h:23:22: error: nsCOMPtr.h: No such file or directory
 Preferences.h:25:25: error: nsIObserver.h: No such file or directory
 Preferences.h:26:28: error: nsIPrefBranch2.h: No such file or directory
 In file included from FFSessionHandler.h:23,
 from ExternalWrapper.h:26,
 from ExternalWrapper.cpp:17:
 SessionData.h:23:19: error: jsapi.h: No such file or directory
 In file included from ExternalWrapper.cpp:17:
 ExternalWrapper.h:31:41: error: nsISecurityCheckedComponent.h: No such file
 or directory
 ExternalWrapper.h:32:25: error: nsStringAPI.h: No such file or directory
 ExternalWrapper.h:33:30: error: nsIWindowWatcher.h: No such file or
 directory
 ExternalWrapper.h:34:26: error: nsIDOMWindow.h: No such file or directory
 ExternalWrapper.cpp:19:36: error: nsIHttpProtocolHandler.h: No such file or
 directory
 ExternalWrapper.cpp:21:22: error: nsNetCID.h: No such file or directory
 ExternalWrapper.cpp:23:22: error: nsMemory.h: No such file or directory
 ExternalWrapper.cpp:24:35: error: nsServiceManagerUtils.h: No such file or
 directory
 ExternalWrapper.cpp:25:30: error: nsIPromptService.h: No such file or
 directory
 ExternalWrapper.cpp:27:34: error: nsIDOMWindowInternal.h: No such file or
 directory
 ExternalWrapper.cpp:28:28: error: nsIDOMLocation.h: No such file or
 directory
 ExternalWrapper.cpp:29:28: error: nsXPCOMStrings.h: No such file or
 directory
 ExternalWrapper.cpp:30:32: error: nsICategoryManager.h: No such file or
 directory
 ExternalWrapper.cpp:31:31: error: nsIJSContextStack.h: No such file or
 directory
 ExternalWrapper.cpp:32:30: error: nsIScriptContext.h: No such file or
 directory
 ExternalWrapper.cpp:33:35: error: nsIScriptGlobalObject.h: No such file or
 directory
 ExternalWrapper.cpp:34:27: error: nsPIDOMWindow.h: No such file or
 directory
 ExternalWrapper.cpp:37:42: error: nsIClassInfoImpl.h: No such file or
 directory
 In file included from ExternalWrapper.h:23,
 from ExternalWrapper.cpp:17:
 prebuilt/ff40/include/IOOPHM.h:27: error: expected initializer before ‘:’
 token
 make: *** [build/Linux_x86_64-gcc3-ff40/ExternalWrapper.o] Error 1

 What am I doing wrong?

 Thanks in advance

 Alan






 On 06/17/2010 04:23 PM, Chris Conroy wrote:

 On Tue, Jun 15, 2010 at 9:09 AM, Alan Chaneya...@mechnicality.com
  wrote:


 I'm developing a large WebGL application which is currently only
 supported
 by the nightly builds, so the answer to your question is, sadly, no :-) .

 I really, really want 

Re: Is KeyPress discouraged ?

2010-08-11 Thread cokol
keypressed is actually an event for writeable characters, like 'a' or
'b' so if you push CTRL button, the keypress is not fired in browser,
so google just made is convenient

On 11 Aug., 17:22, Christian Goudreau goudreau.christ...@gmail.com
wrote:
 I had made a masked text box and since rolling up to GWT 2.1 MS2 backspace
 return 0 or nothing, enter too.

 I'll go with KeyDown instead, but I was wondering why that have been changed
 ?

 --
 Christian Goudreauwww.arcbees.com

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



Re: GWT and Map dynamic loading

2010-08-11 Thread Eric Ayers
The gwt-maps API allows you to defer loading of the Maps API.  The
Maps API will not actually be download until you call
Maps.loadMapsApi()

Regardless, what I think is happening is that your code is failing in a static
initializer or before the onModuleLoad() returns.

One way to debug this is to put all of your startup logic into a
different method, and then invoke the method via a Timer or
DeferredCommand.  if your code is failing before onModuleLoad()
returns, you'll likely get a better stack trace.

You can also just set your IDE debugger to stop in onModuleLoad and
trace through it until it throws an exception.

On Wed, Aug 11, 2010 at 11:14 AM, Vincent COROLLEUR
vcoroll...@gmail.com wrote:
 Hello,

 I'm trying this in hosted mode (development mode). I can see this
 error in the Eclipse console.
 If i use Goodle map API, i will not be able to load the other king of
 map i need to use.

 I tried many way to load these javascript files dynamically with an
 URL as argument but it's always the same error.

  Module is loading normaly and when the code is reached, it unloads
 the application.

 Regards,

 Vincent COROLLEUR

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





-- 
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-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: Is KeyPress discouraged ?

2010-08-11 Thread Christian Goudreau
Yeah I saw the issue, should have read that before asking my question here.

I wanted to avoid changing anything, well I'll do it in a more proper way
then :D

Cheers and thanks,

On Wed, Aug 11, 2010 at 11:47 AM, cokol eplisc...@googlemail.com wrote:

 keypressed is actually an event for writeable characters, like 'a' or
 'b' so if you push CTRL button, the keypress is not fired in browser,
 so google just made is convenient

 On 11 Aug., 17:22, Christian Goudreau goudreau.christ...@gmail.com
 wrote:
  I had made a masked text box and since rolling up to GWT 2.1 MS2
 backspace
  return 0 or nothing, enter too.
 
  I'll go with KeyDown instead, but I was wondering why that have been
 changed
  ?
 
  --
  Christian Goudreauwww.arcbees.com

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




-- 
Christian Goudreau
www.arcbees.com

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



Re: compile report

2010-08-11 Thread ben fenster
?

On 11 אוגוסט, 15:21, ben fenster fenster@gmail.com wrote:
 can anyone tell me why when i compile without compile report flag the
 compilation finishes ok and when i use the flag the compilation gets
 stuck at the end after all the permutation is finished here is the
 report:
    Compiling 42 permutations
       Compiling permutation 0...
       Compiling permutation 1...
       Compiling permutation 2...
       Compiling permutation 3...
       Compiling permutation 4...
       Compiling permutation 5...
       Compiling permutation 6...
       Compiling permutation 7...
       Compiling permutation 8...
       Compiling permutation 9...
       Compiling permutation 10...
       Compiling permutation 11...
       Compiling permutation 12...
       Compiling permutation 13...
       Compiling permutation 14...
       Compiling permutation 15...
       Compiling permutation 16...
       Compiling permutation 17...
       Compiling permutation 18...
       Compiling permutation 19...
       Compiling permutation 20...
       Compiling permutation 21...
       Compiling permutation 22...
       Compiling permutation 23...
       Compiling permutation 24...
       Compiling permutation 25...
       Compiling permutation 26...
       Compiling permutation 27...
       Compiling permutation 28...
       Compiling permutation 29...
       Compiling permutation 30...
       Compiling permutation 31...
       Compiling permutation 32...
       Compiling permutation 33...
       Compiling permutation 34...
       Compiling permutation 35...
       Compiling permutation 36...
       Compiling permutation 37...
       Compiling permutation 38...
       Compiling permutation 39...
       Compiling permutation 40...
       Compiling permutation 41...
    Compile of permutations succeeded
 at this point it is stuck and the java process takes 600mb
 pls 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.



Re: Dev plugin for firefox 3.7

2010-08-11 Thread John Tamplin
On Wed, Aug 11, 2010 at 10:46 AM, Chris Conroy con...@google.com wrote:

 The short answer is that after preliminary support went in, the supporting
 libraries changed upstream. Also, when the prelim support went in Windows
 dev libraries weren't even available. I think John has a change in the works
 to get this updated but is blocked on something.


Just being on vacation much of the last two weeks and having other things in
front of it.  I intend to update all the platforms for 4.0b2 this week.

-- 
John A. Tamplin
Software Engineer (GWT), Google

-- 
You received 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: Dev plugin for firefox 3.7

2010-08-11 Thread a...@mechnicality.com

Thanks Chris and John

I'll hold off switching platforms for a few days, I have other things to 
do which don't require the webgl stuff.


I greatly appreciate all the work done on this and your responsiveness.

Regards


Alan


On 08/11/2010 09:06 AM, John Tamplin wrote:
On Wed, Aug 11, 2010 at 10:46 AM, Chris Conroy con...@google.com 
mailto:con...@google.com wrote:


The short answer is that after preliminary support went in, the
supporting libraries changed upstream. Also, when the prelim
support went in Windows dev libraries weren't even available. I
think John has a change in the works to get this updated but is
blocked on something.


Just being on vacation much of the last two weeks and having other 
things in front of it.  I intend to update all the platforms for 4.0b2 
this week.


--
John A. Tamplin
Software Engineer (GWT), Google


--
You received 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: compile report

2010-08-11 Thread cokol
please post your gwt.xml module descriptor

On 11 Aug., 18:03, ben fenster fenster@gmail.com wrote:
 ?

 On 11 אוגוסט, 15:21, ben fenster fenster@gmail.com wrote:



  can anyone tell me why when i compile without compile report flag the
  compilation finishes ok and when i use the flag the compilation gets
  stuck at the end after all the permutation is finished here is the
  report:
     Compiling 42 permutations
        Compiling permutation 0...
        Compiling permutation 1...
        Compiling permutation 2...
        Compiling permutation 3...
        Compiling permutation 4...
        Compiling permutation 5...
        Compiling permutation 6...
        Compiling permutation 7...
        Compiling permutation 8...
        Compiling permutation 9...
        Compiling permutation 10...
        Compiling permutation 11...
        Compiling permutation 12...
        Compiling permutation 13...
        Compiling permutation 14...
        Compiling permutation 15...
        Compiling permutation 16...
        Compiling permutation 17...
        Compiling permutation 18...
        Compiling permutation 19...
        Compiling permutation 20...
        Compiling permutation 21...
        Compiling permutation 22...
        Compiling permutation 23...
        Compiling permutation 24...
        Compiling permutation 25...
        Compiling permutation 26...
        Compiling permutation 27...
        Compiling permutation 28...
        Compiling permutation 29...
        Compiling permutation 30...
        Compiling permutation 31...
        Compiling permutation 32...
        Compiling permutation 33...
        Compiling permutation 34...
        Compiling permutation 35...
        Compiling permutation 36...
        Compiling permutation 37...
        Compiling permutation 38...
        Compiling permutation 39...
        Compiling permutation 40...
        Compiling permutation 41...
     Compile of permutations succeeded
  at this point it is stuck and the java process takes 600mb
  pls 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.



Re: Making GWT look good...

2010-08-11 Thread Steve Wart
Vaadin looks good, and it makes sense to keep the client-side load
light, especially with touch devices becoming prevalent.

But it doesn't seem great (so far) for touch UI work, and I think the
everything in Java mantra is sub-optimal. While Vaadin has hooks for
CSS and hand-crafted JavaScript, my ideal toolset would better support
the developers who can make these technologies sing.

On Wed, Aug 11, 2010 at 7:42 AM, Kevin Qiu kevin.jing@gmail.com wrote:
 +1 for Vaadin.
 Their widgets are very polished and professional. GXT and SmartGWT are fine
 but they're too desktop-looky, not Web2.0 looky...


 On Mon, Aug 9, 2010 at 4:03 PM, marius.andreiana
 marius.andrei...@gmail.com wrote:

 Hi Chi,

 On Aug 9, 10:23 pm, Chi H c...@chi.ca wrote:
   * Pagination is the standard solution to the 'large number of
  entities' problem.  However, there is a usability cost to pagination.
  It would be really nice to get rid of the pagination and just use a
  scrollbar.   If you used the approach of SlickGrid (http://
  wiki.github.com/mleibman/SlickGrid/), where you only rendered what was
  visible on the screen, you can render large numbers entities without
  the need for pagination.

 How will search engines index all the content in this case?

 The SlickGrid widget doesn't work at all if JS is not enabled.

 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.


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


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



Re: why we probably won't use GWT for a large UI project

2010-08-11 Thread marius.andreiana
Hi Stefan ,

I'm not sure I understand your point.

Say we have api.site.com, with the back-end written in a non-Java
tech, which offers REST APIs over SSL such as
POST login
Body: data username, password
Response: auth token

GET tweets
header: auth token
Body: none
Response: tweets

api.site.com will return on all headers
Access-Control-Allow-Origin: *
so that the UI can be served from ui.com but still access the APIs
(same origin policy). There won't be anything else on api.site.com
besides stateless APIs (no cookies, no html files). [Is this secure?]

User navigates to ui.com. The UI gets username  password, passes it
to api.site.com, then it will store auth token and use it on all
further requests (same as a cookie stories session id on other
systems).

How is this less secure than GWT-RPC approach?


On Aug 11, 10:23 am, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi marius,

 using REST, SOAP, JSON directly from the browser client is always
 insecure.
 This is because the browser client has to know the credentials.
 Either these services are not protected at all, or your credentials
 are likely to be stolen.

 When you need a minimum of security and privacy, your gui browser
 client should only talk via GWT-RPC  to a GWT-server under your
 control which gathers all data from REST, SOAP or JSON services.

 Stefan Bacherthttp://gwtworld.de

 On 10 Aug., 04:27, marius.andreiana marius.andrei...@gmail.com
 wrote:



  Hi,

  We're working on a large project, which has the back-end is written in
  a non-Java technology, with REST APIs. We're looking for a framework
  to replace the current UI.

  I did a brief analysis of using 
  GWT:https://docs.google.com/document/edit?id=16rQknO-r3ZqfMbuIl0R52OnFcWB...

  I'm looking to get this group's feedback before I present my findings
  to the team. What do you think?

  Thanks,
  Marius

-- 
You received 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: why we probably won't use GWT for a large UI project

2010-08-11 Thread marius.andreiana
From this point of view it makes sense. Will have a look at ExtGWT  
Vaadin.

On Aug 11, 12:14 pm, cokol eplisc...@googlemail.com wrote:
 hi,

 goods thoughts you had, but dont treat GWT as a framework, Google
 doesnt do it either :-) Its just a toolkit or better yet, a JS
 compiler with some tooling around. And being just a toolkit is more
 powerful than create yet another throw-away ajax framework! There're
 plenty wonderful ajax frameworks around so why should GWT be just
 another one?!

 so its best choice for you to get on fast productivity with GWT - but
 from the beginning consider using a real framework BASED on GWT,  i.e.
 SmartGWT or ExtGWT or I also would suggest to look at Vaadin...

 for me personally I would prefer ExtGWT rather than SmartGWT because
 smart is not written purely in Java but is just  a wrap on existing
 smartClient technology, which has some drawbacks.

 regards

 On 10 Aug., 10:27, marius.andreiana marius.andrei...@gmail.com
 wrote:



  Hi,

  We're working on a large project, which has the back-end is written in
  a non-Java technology, with REST APIs. We're looking for a framework
  to replace the current UI.

  I did a brief analysis of using 
  GWT:https://docs.google.com/document/edit?id=16rQknO-r3ZqfMbuIl0R52OnFcWB...

  I'm looking to get this group's feedback before I present my findings
  to the team. What do you think?

  Thanks,
  Marius

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

2010-08-11 Thread John Ivens
Nice example... have you done anything with dragging rectangles around, and
having other rectangles scooch out of their way?  I would like to
investigate something like this for scheduling.

On Wed, Aug 4, 2010 at 5:22 AM, pschonefeld peter.schonef...@gmail.comwrote:

 I've played around with svgweb and GWT ...

new SvgRectangle(myRect,0, 0, 200, 200, 0, 0,
 black, orange, 5);
...
private class SvgRectangle extends Widget {
private Element element;
private String fill;
private String svgns = http://www.w3.org/2000/svg;;
private SvgRectangle(String id, String x, String y,
 String width, String
 height,
 String rx, String ry,
 String fill, String stroke,
 String strokeWidth) {
element = createElementNS(svgns,rect);
element.setAttribute(id, id);
element.setAttribute(x, x);
element.setAttribute(y, y);
element.setAttribute(width, width);
element.setAttribute(height, height);
element.setAttribute(rx, rx);
element.setAttribute(ry, ry);
element.setAttribute(fill, fill);
element.setAttribute(stroke, stroke);
element.setAttribute(stroke-width,strokeWidth);
this.fill = fill;
setElement(element);
Element elem = RootPanel.get(myg).getElement();
elem.appendChild(element);
addClickListener(this, id);

}

public void OnClick() {
Element elem = getElementById(myRect);
elem.setAttribute(fill, green );
Window.alert(Ahhtahh!);
 }

private native Element createElementNS(String ns, String
 localname) /*-{
return elem = $doc.createElementNS(ns,localname);
}-*/;

private native Element getElementById(String id) /*-{
return $doc.getElementById(id);
}-*/;

private native void addClickListener(SvgRectangle instance,
 String id) /*-{
function pete_click(e) {
if ($wnd.event || $wnd.Event) {
if (!e) e = $wnd.event;

 instan...@com.example.client.index.svgrectangle::OnClick()();
}
}
var rect =$doc.getElementById(id);
rect.addEventListener(click,pete_click,false);
}-*/;

@Override
protected void onLoad() {
super.onLoad();
addClickListener(this, myRect);
}

@Override
protected void onUnload() {
super.onUnload();
}
}

 and in the html 

script type=text/javascript src=src/svg.js data-
 path=src data-debug=false/script
...
script type=image/svg+xml
svg xmlns=http://www.w3.org/2000/svg; width=200
 height=200
 version=1.1 baseProfile=full
g id=myg/g
/svg
/script

 probably not the out of the box solution that you're looking for but
 HTH.

 --
 You received 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: Making GWT look good...

2010-08-11 Thread Jamie
One thing that I have been doing lately is to *not* use the tab
panel.  It's boring.  Instead, I create my own tab bar, which I have
full css control of, and then a separate stack of widgets.

This lets me turn boring looking tabs into something really nice, much
like the tabs you find here:
http://www.counterpath.com/
(Yes, I work for CounterPath.)

I haven't taken the time to figure out how to do that with the
tabpanel, especially the part about having the tabs a different width
and start position from the stack.
As well, I can then make the page header stay in place, and the stack
have scrollbars.



-- 
You received 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: compile report

2010-08-11 Thread Katharina Probst
It's possible that it's not stuck, but actually building a compile report
for all your 42 permutations (you can look into your extra directory and see
if it's happily outputting stuff there).  That could take a while, as it's
going through all kinds of compilation information and building up a lot of
html files.

Unless you are specifically interested in comparing all your 42 compile
reports (that would be a bit tedious...), you will probably want to restrict
your compilation with compile reports to some key permutations, e.g., one
per browser family.

kathrin

On Wed, Aug 11, 2010 at 12:16 PM, cokol eplisc...@googlemail.com wrote:

 please post your gwt.xml module descriptor

 On 11 Aug., 18:03, ben fenster fenster@gmail.com wrote:
  ?
 
  On 11 אוגוסט, 15:21, ben fenster fenster@gmail.com wrote:
 
 
 
   can anyone tell me why when i compile without compile report flag the
   compilation finishes ok and when i use the flag the compilation gets
   stuck at the end after all the permutation is finished here is the
   report:
  Compiling 42 permutations
 Compiling permutation 0...
 Compiling permutation 1...
 Compiling permutation 2...
 Compiling permutation 3...
 Compiling permutation 4...
 Compiling permutation 5...
 Compiling permutation 6...
 Compiling permutation 7...
 Compiling permutation 8...
 Compiling permutation 9...
 Compiling permutation 10...
 Compiling permutation 11...
 Compiling permutation 12...
 Compiling permutation 13...
 Compiling permutation 14...
 Compiling permutation 15...
 Compiling permutation 16...
 Compiling permutation 17...
 Compiling permutation 18...
 Compiling permutation 19...
 Compiling permutation 20...
 Compiling permutation 21...
 Compiling permutation 22...
 Compiling permutation 23...
 Compiling permutation 24...
 Compiling permutation 25...
 Compiling permutation 26...
 Compiling permutation 27...
 Compiling permutation 28...
 Compiling permutation 29...
 Compiling permutation 30...
 Compiling permutation 31...
 Compiling permutation 32...
 Compiling permutation 33...
 Compiling permutation 34...
 Compiling permutation 35...
 Compiling permutation 36...
 Compiling permutation 37...
 Compiling permutation 38...
 Compiling permutation 39...
 Compiling permutation 40...
 Compiling permutation 41...
  Compile of permutations succeeded
   at this point it is stuck and the java process takes 600mb
   pls 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: GWT and Spring - More Generation Options

2010-08-11 Thread Jack
MyEclipse For Spring (ME4S) 8.6 is now generally available with
support for GWT front end generation as well as Spring back end
generation.

We also posted an article on DZone here: 
http://java.dzone.com/articles/generating-enterprise-class
You can download the software and get more information here:
http://www.myeclipseide.com/me4s/

We are anxious to get feedback from the GWT community so please let us
know what you think.

Thanks,
Jack


On Jul 12, 3:38 pm, Jack jack.kenn...@gmail.com wrote:
 Hello Stefan,

 Thanks for the question.

 First let me say that I am a fan of the work that is being done by the
 Roo and GWT teams.  Our goal in releasing additional generative
 tooling forSpringhas always been to give developers additional
 options and capabilities that largely complement the free options
 available from SpringSource.

 We have a page that highlights some of the key differences in approach
 between Roo 
 andMyEclipseforSpringhere:http://www.myeclipseide.com/me4s/faqs/faqs_tool_comparison.php

 Specific to GWT, the most important difference for developers to
 consider is the GWT version.  ME4S supports GWT 2.0.x which is the
 current GA version and is based on the best practices presentation
 from Ray Ryan at Google I/O 2009. You can find that presentation 
 here:http://www.youtube.com/watch?v=PDuhR18-EdM

 The Roo integration for GWT is targeted at GWT 2.1 which looks to be a
 great set of additions to GWT, however it is still a work in progress.
 Most of the low level variances in the code that is generated reflect
 the difference in GWT version supported.

 Another difference is that ME4S generates code that does not use
 separate aspect files or design time annotations .  Our goal is to
 generate reusable software components from your existing technology
 assets like RDBMS tables, WSDL Documents, POJO's or Entities as
 quickly as possible giving you options as to which project, source
 folder, and package you would like the generated code to go into.

 You can review videos of the GWT and other scaffolding options from
 ME4S in action here:http://www.youtube.com/user/myeclipseforspring

 Finally, we have an option to let you generate JUST the GWT front end
 and Service stub without requiring the use of any specific back end
 implementation includingSpring.

 ME4S can start from your existing Java code, WSDL, or RDBMS definition
 and generate reusable GWT front end components that are tied to your
 data model and which follow a strong MVP / Command pattern.  These
 components can be mixed and matched together to build more complicated
 downstream applications that go beyond CRUD.  The Remote Services are
 stubbed out to allow you to integrate with the server side technology
 of your choice, or you can accept the defaults and let ME4S build out
 a layered CRUD backend that includes JPA Entities, DAO’s, and Services
 all wired up usingSpring.

 I hope this helps, but let me know if you would like to have more
 detail.

 Thanks
 Jack Kennedy
 Skyway Software

 On Jul 12, 2:13 pm, Stefan Bachert stefanbach...@yahoo.de wrote:



  Hi,

  how do you compare your kind of scaffolding with the one ofSpring
  Roo?
  What is similar?
  What is different?

  Stefan Bacherthttp://gwtworld.de

  On 9 Jul., 15:06, Christiana Thompson christiana.thomp...@gmail.com
  wrote:

   This week Genuitec and Skyway Software released the second milestone
   (M2) ofMyEclipseforSpring8.6, which includes scaffolding for GWT
   applications.  With this new release, our users can now generate full
   ready-to-run GWT applications from a domain model (i.e. DB tables,
   Java Beans, or JPA Entities).

   As excited as we are about this new feature, we are eager to get
   feedback from the GWT community.  Some key aspects of our GWT
   scaffolding:

   - The functionality is based on GWT 2.0.4 (no dependency on early
   access or non-GA libraries)
   - The generated code is based on current best practices (from last
   year's Google I/O session with Ray Ryan and the MVP tutorials from
   Chris Ramsdale) and UI Binder
   - The GWT RPC services are based onSpringServices, and include
   conversion of JPA objects to/from data transfer objects (DTO) that are
   optimized for GWT
   - The generated applications support bothSpring2.5.x andSpring3.0

   Again, we'd appreciate input and feedback from the GWT community.
   Additional information and resources are as follows:

   - More Details:http://bit.ly/9ydV0X
   - Installer:http://bit.ly/asbbYo
   - Tutorial:http://bit.ly/945fK2
   - Getting Started Video (5 min):http://bit.ly/cwSawM

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



HTML5 and canvas

2010-08-11 Thread Jamie
I've been doing some more work with HTML5 and canvas.
Writing out canvas scripts by hand is a pain, especially when you get
into curves.

So, have a look here if you're interested in canvas.

For now, it's just plain JavaScript.
However, javascript can be integrated into GWT, or you could transform
it to Java if you want.
Hope it's of some use.

http://jamies-gwt.blogspot.com/2010/08/html5-canvas-editing.html

Jamie.

-- 
You received 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: Making GWT look good...

2010-08-11 Thread bradr
Style is so subjective 

I love GWT as-is, because it is plain, and CSS makes customization a
breeze

Has the GWT team thought about adding a theme section to there
website, similar to Firefox's addon page? A place where developers
could showcase custom themes. Other developers could download them,
rate them, etc. Let the community drive styling since they obviously
have such diverse taste.

I'd rather see the core GWT team continue to enhance the widget
library and add JRE Emulated classes ... like JDBC for working with
WebDatabases and other HTML5 features.

On Aug 6, 5:44 am, Chris Ramsdale cramsd...@google.com wrote:
 Hey GWT(ers),

 I've heard from many of you that GWT apps simply don't look that good out of
 the box, and styling the default app would go a long way. We couldn't agree
 more. As some of you know, GWT 2.1 (with the help of Spring Roo 1.1) will
 generate a full-fledged scaffolding app that users can then go customize,
 and build on top of. The current incarnation looks like this:

 http://gwt-bikeshed.appspot.com/Scaffold.html

 And while it's a start, it's long from being...well...good looking. I'm
 working with some UI/UX people back at Google, but in the spirit of openness
 I wanted to get feedback from the real users -- you. Specifically we're
 looking for business apps that are a good example of UI and/or UX. Apps
 that allow you to track tasks, expenses, travel, projects, etc.

 If you have ideas, simply post a link in a follow-up to this thread.

 Cheers,
 -- Chris

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



Re: GWT 2.0, Maven, Google eclipse and TOMCAT, why didn't google build maven support?

2010-08-11 Thread dane.molotok
The documentation is frustrating, so let's all document some stuff
here so that other googlers will find help. Hilco, can you link to
your pom or post some relevant snippets?

My current configuration is broken but I feel like I am very close
with having GPE, maven, and the maven-war-plugin happy where I can run
in Development Mode in Eclipse and have everything work the same as
running mvn clean package and installing the resulting war against
geronimo. Because that's the goal, right? A GWT developer using
Eclipse and Maven wants to, and should be able to, run in Development
Mode and get the same stuff running that would be running in a full
fledged deployment.

Or are we saying that with the current state of GPE and maven-gwt-
plugin that that is not possible?

On Aug 10, 4:45 pm, Rajeev Dayal rda...@google.com wrote:
 Hey guys,

 I know that maven issues with GWT and GPE are a common theme. We're
 currently working on improving the experience within GPE. It won't solve all
 of the problems, but it will at least solve some of them. Hilco's suggestion
 is probably the best one at this point, as GPE 1.4 M2 contains some Maven
 support (in conjunction with STS).

 @abby: Can you tell me what some of the problems were that you were running
 into? I'd like to make sure that we address them in GPE 1.4 final.

 Rajeev

 On Tue, Aug 3, 2010 at 5:39 PM, Hilco Wijbenga 
 hilco.wijbe...@gmail.comwrote:



  On 3 August 2010 14:23, abby misra.a...@gmail.com wrote:
   The problem is when you try to bring maven, tomcat and google plugin
   together. I have hacked my way around with jetty and was able to get
   it working at some level.

  I know it's frustrating but you might want to consider using Jetty
  then? At least for development, you can always deploy your WAR to
  Tomcat.

   The problem is there is zero documentation on getting things working.

  :-) I know the feeling.

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

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



Re: More woes with IE + Client(Image) Bundles

2010-08-11 Thread Ted
I have had success with IE and using the AbstractImagePrototype that
is now deprecated.  It is somewhat distasteful to use deprecated API
this way, but I figure IE itself is deprecated and I just hope they
keep that in there until IE is but a painful memory.

On Aug 11, 8:00 am, Sean slough...@gmail.com wrote:
 I have a widget that dynamically makes medals. What it does is takes
 the place they are in (1st,2nd...) and gets the right color background
 medal from a ClientBundle, then using the same Client Bundle it
 creates the number from the ClientBundle, which has the #'s 0-9 in it.
 If it's 10, it grabs 1 and 0, and scales them accordingly. It takes
 all these images and arranges them on an Absolute Panel to center
 everything and it works amazingly well.

 Except of course on IE. When on IE it looks like it takes the whole
 ImageBundle and smooshes it together with all transparency lost of
 course. I am SO sick of IE. I like to do lots of things with Images
 and Bundles and I find IE messes it up almost every-time.

 Is there anyway around this or should I check for the user using IE
 and warn them their browser sucks and my site won't always render
 correctly using 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: Making GWT look good...

2010-08-11 Thread Marcelo Magno
Worth to mention their debug mode where you can find design problems.

Try to click on the analyse layouts button:
http://demo.vaadin.com/sampler/?debug=true

so +1 for Vaadin

Marcelo Magno



On Wed, Aug 11, 2010 at 1:17 PM, Steve Wart steve.w...@gmail.com wrote:

 Vaadin looks good, and it makes sense to keep the client-side load
 light, especially with touch devices becoming prevalent.

 But it doesn't seem great (so far) for touch UI work, and I think the
 everything in Java mantra is sub-optimal. While Vaadin has hooks for
 CSS and hand-crafted JavaScript, my ideal toolset would better support
 the developers who can make these technologies sing.

 On Wed, Aug 11, 2010 at 7:42 AM, Kevin Qiu kevin.jing@gmail.com
 wrote:
  +1 for Vaadin.
  Their widgets are very polished and professional. GXT and SmartGWT are
 fine
  but they're too desktop-looky, not Web2.0 looky...
 
 
  On Mon, Aug 9, 2010 at 4:03 PM, marius.andreiana
  marius.andrei...@gmail.com wrote:
 
  Hi Chi,
 
  On Aug 9, 10:23 pm, Chi H c...@chi.ca wrote:
* Pagination is the standard solution to the 'large number of
   entities' problem.  However, there is a usability cost to pagination.
   It would be really nice to get rid of the pagination and just use a
   scrollbar.   If you used the approach of SlickGrid (http://
   wiki.github.com/mleibman/SlickGrid/), where you only rendered what
 was
   visible on the screen, you can render large numbers entities without
   the need for pagination.
 
  How will search engines index all the content in this case?
 
  The SlickGrid widget doesn't work at all if JS is not enabled.
 
  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-toolkit@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.



newbie - gweventservice vs eventbus

2010-08-11 Thread Rajesh
Hi,

This is a newbie question. i am evaluating GWT to be used where i
have  a need for the server to push events to 1 of the client. The
solution will be hosted on Tomcat App server and we are looking for
concurrent 5000 users using this
i came across a project called 'GWTEventService' which says it can do
such things. I also came across EventBus concept in GWT. I wanted to
ask for some expert advice to see if these two things ( EventBus ,
gwteventservice ) try to solve the same problem  also any
recomendations on how i go about sending an event from my app server
to the browser.



Rajesh

-- 
You received 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: RequestCallback.onResponseReceived() always returning status code 0

2010-08-11 Thread Philippe Laflamme
Had the same issue. In my case, it was due to making cross-site
requests.

My server was at localhost:8080 and I was running in DevMode at
localhost:. Making a request from : to :8080 is considered a
cross-site request (which is not per the same-origin policy).

The behaviour in Firefox was that it would return 0 as the status code
and prevent accessing the HTTP headers.

I solved this issue by running a transparent proxy on : in
DevMode. The proxy forwards everything to :8080. I provided the
solution here:
http://code.google.com/p/google-web-toolkit/issues/detail?id=3131#c46

Hope it helps,
Philippe

On Aug 10, 5:11 pm, Jaya jp.a...@gmail.com wrote:
 Hi All,
 I have deployed the GWT web app ( only client code. no server code is
 present) on JBOSS. web client is accessing a URL ( Servlet of
 different application. not the GWT servlet)  on the same server  using
 POST. The servlet is getting the Request (xml string) from GWT client
 app and responding with a xml string ( appeared in the servlet logs).
 But the GWT client's  onResponseReceived () always return a status
 code 0 with response data null.

 here  the basic code i am using. no fancy of it.

                 String eventParticipationReq=Count id=\1\/Count;
                 String serverURL=http://myserver:8080/b1/MyServlet?;;
                 Log.info(serverURL);
                 Log.info(eventParticipationReq);
                 RequestBuilder builder = new 
 RequestBuilder(RequestBuilder.GET,
 serverURL);
                         try {

                           Log.info(Request Data :+eventParticipationReq);
                       Request response = builder.sendRequest(, new
 RequestCallback() {
                             public void onError(Request request, Throwable 
 exception) {
                                 // Couldn't connect to server (could be 
 timeout, SOP
 violation, etc.)
                              }

                              public void onResponseReceived(Request request, 
 Response
 response) {
                                  Log.info(+response.getStatusCode());
                                  Log.info(+request.isPending());
                                  if (200 == response.getStatusCode()) {
                                    Log.info(response.getText());
                                } else {
                                  // Handle the error.  Can get the status 
 text from
 response.getStatusText()
                                }
                              }
                            });
                       return null;
                     } catch (RequestException e) {
                       // Code omitted for clarity
                         e.printStackTrace();
                     }

 =

 Can some one please let me know what i should  change in the code?

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



Property user.agent got stuck

2010-08-11 Thread Richova
Hi.

I am working with Eclipse Galileo and GWT 2.0.3.

Once, to improve compilation time, I put these lines into the
Project.gwt.xml file:

set-property name=user.agent value=gecko1_8 /
set-property name=locale value=default /

Days after that, I removed the lines and the project stop working,
executing it in Eclipse's host mode.

From Eclipse's Development mode tab, I got this message:

[ERROR] [project] Failed to load module 'project' from user agent
'Mozilla/5.0 (Windows; U; Windows NT 6.0; es-ES; rv:1.9.2.8) Gecko/
20100722 AskTbUT2V5/3.8.0.12304 Firefox/3.6.8 ( .NET CLR
3.5.30729; .NET4.0E)' at 127.0.0.1:57662

And associated to that message, the following stack trace:

12:15:33.610 [ERROR] [project] Unable to load module entry point class
com.project.client.Project (see associated exception for details)
java.lang.RuntimeException: Deferred binding failed for
'com.google.gwt.user.client.impl.DOMImpl' (did you forget to inherit a
required module?)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:43)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at com.google.gwt.user.client.DOM.clinit(DOM.java:34)
at com.google.gwt.user.client.ui.CellPanel.init(CellPanel.java:
68)
at
com.google.gwt.user.client.ui.VerticalPanel.init(VerticalPanel.java:
37)
at
com.pilote.client.ProjectMainFrame.setupGUI(ProjectMainFrame.java:29)
...
at java.lang.Thread.run(Thread.java:619)


After some hours, I put the same lines back to the gwt.xml file, and
the project came back to life.

I don't know if there is something bad with the GWT plug-in, with
Eclipse or with the version of GWT.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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.



RichTextArea fixed Font Size enumeration, can we set font sizes in pixels?

2010-08-11 Thread Karthikeyan Radhakrishna
Hi,

I am building a product configurator using GWT, in which I have
implemented RichtextArea for text editing.  As RichtextArea has a
fixed set of enumeration for font size(small, large, xxlarge...), this
doesn't suit my requirement.  Is there a way to pass in pixel font
size to the RichTextArea?

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



Caching issue in host mode?

2010-08-11 Thread markM
I successfully integrated the GWT Server Library into my GWT 2.0 app
and had a working example in hosted mode.  Due to a suggestion in the
server library documentation I then added the following to my web.xml.

filter
filter-nameNoCachingFilter/filter-name

filter-classorg.gwtwidgets.server.filters.ResponseHeaderFilter/
filter-class
init-param
param-nameExpires/param-name
param-valueDi, 1 Jul 2008 12:00:00 GMT/param-value
/init-param
init-param
param-nameCache-Control/param-name
param-valueno-cache, must-revalidate/param-value
/init-param
init-param
param-namePragma/param-name
param-valueno-cache/param-value
/init-param
/filter

filter-mapping
filter-nameNoCachingFilter/filter-name
servlet-namestream/servlet-name
/filter-mapping

Shortly thereafter I was unable to load my GWT app in hosted mode.
The html page loads but I get the error shown below in the console
when I paste the URL into the browser and go.

[WARN] 404 - GET /gmmaslocalordering/gmmaslocalordering.nocache.js
(127.0.0.1) 1434 bytes

   Request headers
  Host: localhost:
  User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
1.9.2.8) Gecko/20100722 Firefox/3.6.8
  Accept: */*
  Accept-Language: en-us,en;q=0.5
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 115
  Connection: keep-alive
  Referer: 
http://localhost:/GMMASLocalOrdering.html?gwt.codesvr=172.31.80.167:9997
   Response headers
  Content-Type: text/html; charset=iso-8859-1
  Content-Length: 1434

The file exists in the correct location under under the war directory
as specified by the path shown in the error message.  Post error, I
did the following in this order at each step hoping it would fix the
issue.

1) Removed the xml filters shown above form web.xml.
2) Performed a GWT compile.
3) Rebooted my computer.
4) Cleared the browser cache of both I.E. and Chrome.
5) Installed Firefox (never before installed on this computer)

None of these steps helped.  Helpful thoughts appreciated.

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



Service Location on Server Side

2010-08-11 Thread Bill
Hello,

This feels like a silly question.  Please forgive if so.

For my simple proof-of-concept application, I have two RPC services,
both of which may be accessible by the client.  However, for one of my
use cases, I need for one of the services to access the other
service.  Is there any mechanism by which this can happen?  I can't
find any hints of this in the documentation.

Let me put this a different way:

1.  Client invokes Create on service A.
2.  Service A invokes Create on Service B.
3.  Service B creates a resource and returns info to Service A.
4.  Service A creates a resource and returns info to the Client.

In order for this to happen, Service A needs to be able to find
Service B, on the server-side.  How can I accomplish this?

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



How to change a default property from a i18n .properties file

2010-08-11 Thread oyepez003
Hello!

I am using GWT 2.0.3, but the file NumberConstant_es_VE.properties has
an error

The error:

defCurrencyCode = VEB


and should be:

defCurrencyCode = VEF

Somebody know how to change only this property from my project?

Regards

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



Re: Service Location on Server Side

2010-08-11 Thread lineman78
This usually isn't the way something like this is done and there is
one major issue that can come up when doing this.  App servers will
have a maximum simultaneous connections and when you do this, one
request will actually take up 2 of these connections and if you start
chaining more and more together you can create a dead-lock.  The way
this is usually handled is that all of the business logic exists in an
EJB such as an SLSB and the services merely forward the requests to
the EJBs.  This way they can call within themselves.  This also will
allow you to maintain security.

On Aug 11, 8:01 am, Bill bill.milli...@gmail.com wrote:
 Hello,

 This feels like a silly question.  Please forgive if so.

 For my simple proof-of-concept application, I have two RPC services,
 both of which may be accessible by the client.  However, for one of my
 use cases, I need for one of the services to access the other
 service.  Is there any mechanism by which this can happen?  I can't
 find any hints of this in the documentation.

 Let me put this a different way:

 1.  Client invokes Create on service A.
 2.  Service A invokes Create on Service B.
 3.  Service B creates a resource and returns info to Service A.
 4.  Service A creates a resource and returns info to the Client.

 In order for this to happen, Service A needs to be able to find
 Service B, on the server-side.  How can I accomplish this?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: More woes with IE + Client(Image) Bundles

2010-08-11 Thread lineman78
This is actually a problem in the way they have implemented
ImageResource in IE.  It is not scalable as the Gecko and Webkit
implementations are.  In order to make it scalable you will have to
add the repeat both annotation on it, which will keep the generator
from bundling it with other images in the IE implementation.  This
also shouldn't effect performance in the Gecko and Webkit
implementations, but it will increase load time in the IE
implementation as a new image will be generated for every resource.

On Aug 11, 7:00 am, Sean slough...@gmail.com wrote:
 I have a widget that dynamically makes medals. What it does is takes
 the place they are in (1st,2nd...) and gets the right color background
 medal from a ClientBundle, then using the same Client Bundle it
 creates the number from the ClientBundle, which has the #'s 0-9 in it.
 If it's 10, it grabs 1 and 0, and scales them accordingly. It takes
 all these images and arranges them on an Absolute Panel to center
 everything and it works amazingly well.

 Except of course on IE. When on IE it looks like it takes the whole
 ImageBundle and smooshes it together with all transparency lost of
 course. I am SO sick of IE. I like to do lots of things with Images
 and Bundles and I find IE messes it up almost every-time.

 Is there anyway around this or should I check for the user using IE
 and warn them their browser sucks and my site won't always render
 correctly using 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: why we probably won't use GWT for a large UI project

2010-08-11 Thread lineman78
I completely disagree with Stefan, GWT-RPC is no more secure than
REST.  For both to be secure by the broad definition of the term you
simply need to make them run over SSL.  The only perceived security
you get via GWT-RPC is by obscurity, which is not security at all.

As far as SmartGWT goes, I will warn you that I think the problems and
performance hits you will run into are not worth the UI that you
gain.  Plus you must consider the licensing, which is required in
order to use their data binding.  GXT(ExtGWT) is actually nice, but
their layout is expensive as well as their licensing.

I commonly use REST and GWT in perfect harmony and it is very easy.
Assuming you have the ability to output JSON instead of XML you can
just use overlay types and get very efficient parsing.  If you must
use XML, it is like using any other DOM parser.  I agree that built-in
dnd support would be very nice, but GWT-DND isn't bad.  I personally
don't know what TileGrid is, but out of the box GWT isn't intended to
be a widget library, but there are plenty of them out there.  Google
is trying to add a lot more widget support which is evident by the
data presentation widgets, but their original intent was to create a
flexible and efficient cross compiler, not make a pretty UI library.

On Aug 11, 10:48 am, marius.andreiana marius.andrei...@gmail.com
wrote:
 From this point of view it makes sense. Will have a look at ExtGWT  
 Vaadin.

 On Aug 11, 12:14 pm, cokol eplisc...@googlemail.com wrote:

  hi,

  goods thoughts you had, but dont treat GWT as a framework, Google
  doesnt do it either :-) Its just a toolkit or better yet, a JS
  compiler with some tooling around. And being just a toolkit is more
  powerful than create yet another throw-away ajax framework! There're
  plenty wonderful ajax frameworks around so why should GWT be just
  another one?!

  so its best choice for you to get on fast productivity with GWT - but
  from the beginning consider using a real framework BASED on GWT,  i.e.
  SmartGWT or ExtGWT or I also would suggest to look at Vaadin...

  for me personally I would prefer ExtGWT rather than SmartGWT because
  smart is not written purely in Java but is just  a wrap on existing
  smartClient technology, which has some drawbacks.

  regards

  On 10 Aug., 10:27, marius.andreiana marius.andrei...@gmail.com
  wrote:

   Hi,

   We're working on a large project, which has the back-end is written in
   a non-Java technology, with REST APIs. We're looking for a framework
   to replace the current UI.

   I did a brief analysis of using 
   GWT:https://docs.google.com/document/edit?id=16rQknO-r3ZqfMbuIl0R52OnFcWB...

   I'm looking to get this group's feedback before I present my findings
   to the team. What do you think?

   Thanks,
   Marius

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



Images only show sometimes

2010-08-11 Thread GKotta
Hi,

I am using the gwt plugin for eclipse for the gae environment and when
I run my project on localhost, the images in my application appear
sometimes, but not all the time. Refreshing the page normally solves
this problem. Why is this? I'm fine with this while developing, but it
will be really annoying for my users once I launch my application.

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: Does Timer class only last one session + images as an attachment in an email

2010-08-11 Thread GKotta
Thanks everyone!

On Aug 9, 10:44 pm, Prakash prakash.masilam...@gmail.com wrote:
 @GKotta.
 If your use case is to delete images (irrespective of user) after two
 months, then cron Or timer job on server (Check Quartz) is the good
 way to go. Remember in this approach you wont have access to user
 session.

 If you need User Session to decide whether to delete or not , then you
 can use SessionListeners on Server side.
 Google for SessionListeners to know more about its use cases.

 For sending mails , use javax.mail as per @mike's reply.
 Hope this helps.

 Regards,
 Prakash M.

 On Aug 10, 3:09 am, André Moraes andr...@gmail.com wrote:

  Shaffer,

  This approach is a little overhead in the maintainability of the code (and
  in the methods too, since every server call will make a extra call to the
  database).

  GKotta

  To avoid access to images that is in the database but the 2 month time has
  expired, you can make the check only in the methods that access the images
  in the database (if using hibernate this can be an interceptor).

  This will introduce overhead, but only when images are needed.

  If you cannot add a cron job at your server, create an speciall url that
  requires a custom login/password and when that url is accessed you run the
  code that removes the images from the database. If possible use SSL in this
  part of the site and don't send the username/password in the query string,
  use the HTTP POST METHOD.

  Then you can make a cron job in your computer (home or job) and create a
  simple wget script that access that special url. This isn't the best
  solution, but works when you don't have admin access to cron jobs in the
  production server.

  --
  André Moraes
  Analista de Desenvolvimento de Sistemas
  andr...@gmail.comhttp://andredevchannel.blogspot.com/

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



Re: newbie - gweventservice vs eventbus

2010-08-11 Thread cokol
actually, EventBus is meant by GWT to be enganged with business events
across components reside on the client. What u're looking for is
rather a messaging service, so better focus on GWTEventService - its
better suited. In fact, the real implementation can indeed use
HandlerManager to propagate events once on the client but
GWTEventService offers more than just that, give it a try...


On 11 Aug., 16:53, Rajesh rkan...@gmail.com wrote:
 Hi,

 This is a newbie question. i am evaluating GWT to be used where i
 have  a need for the server to push events to 1 of the client. The
 solution will be hosted on Tomcat App server and we are looking for
 concurrent 5000 users using this
 i came across a project called 'GWTEventService' which says it can do
 such things. I also came across EventBus concept in GWT. I wanted to
 ask for some expert advice to see if these two things ( EventBus ,
 gwteventservice ) try to solve the same problem  also any
 recomendations on how i go about sending an event from my app server
 to the browser.

 Rajesh

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



Switching a class for precompile

2010-08-11 Thread Evan Ruff
Hello all,

I was wondering if anyone can point me in the right direction for what
I'm trying to do. Currently, I've got a huge legacy model used in a
number of systems currently in production. I'd like to include this
model in my GWT project, but three (out of, maybe 200 classes) use
refection. These classes are base classes and the reflection parts,
while nice to have, are not really necessary for my GWT
implementation.

So, currently the classes look like :

ClassA extends ClassB

All of the reflection nastiness is in ClassB. I have written ClassC
that has the same methods/variables as ClassB, but none of the
reflection. I'd like to tell the compiler to replace ClassB with
ClassC right before doing the GWTCompiler magic. Is there a way to do
that as currently implemented or am I on my own from a GWT Standpoint?

Thanks,

E

-- 
You received 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: Caching issue in host mode?

2010-08-11 Thread cokol
hi, u dont the server locally ,dont you I mean the param in the URL
gwt.codesvr should point to 127.0.0.1 ? ;)
otherwise I can only imagine that either the file is not in place (hit
F5 in eclipse on the package to refresh) or the server does not use
the default war folder as context root, this issue is not related to
the client, rather the server cannot read the file locally.

delete the whole gmmaslocalordering folder and recompile again

On 11 Aug., 17:21, markM mark.a.mccon...@pfizer.com wrote:
 I successfully integrated the GWT Server Library into my GWT 2.0 app
 and had a working example in hosted mode.  Due to a suggestion in the
 server library documentation I then added the following to my web.xml.

         filter
                 filter-nameNoCachingFilter/filter-name
                 
 filter-classorg.gwtwidgets.server.filters.ResponseHeaderFilter/
 filter-class
                 init-param
                         param-nameExpires/param-name
                         param-valueDi, 1 Jul 2008 12:00:00 GMT/param-value
                 /init-param
                 init-param
                         param-nameCache-Control/param-name
                         param-valueno-cache, must-revalidate/param-value
                 /init-param
                 init-param
                         param-namePragma/param-name
                         param-valueno-cache/param-value
                 /init-param
         /filter

         filter-mapping
                 filter-nameNoCachingFilter/filter-name
                 servlet-namestream/servlet-name
         /filter-mapping

 Shortly thereafter I was unable to load my GWT app in hosted mode.
 The html page loads but I get the error shown below in the console
 when I paste the URL into the browser and go.

 [WARN] 404 - GET /gmmaslocalordering/gmmaslocalordering.nocache.js
 (127.0.0.1) 1434 bytes

    Request headers
       Host: localhost:
       User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
 1.9.2.8) Gecko/20100722 Firefox/3.6.8
       Accept: */*
       Accept-Language: en-us,en;q=0.5
       Accept-Encoding: gzip,deflate
       Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
       Keep-Alive: 115
       Connection: keep-alive
       
 Referer:http://localhost:/GMMASLocalOrdering.html?gwt.codesvr=172.31.80.1...
    Response headers
       Content-Type: text/html; charset=iso-8859-1
       Content-Length: 1434

 The file exists in the correct location under under the war directory
 as specified by the path shown in the error message.  Post error, I
 did the following in this order at each step hoping it would fix the
 issue.

 1) Removed the xml filters shown above form web.xml.
 2) Performed a GWT compile.
 3) Rebooted my computer.
 4) Cleared the browser cache of both I.E. and Chrome.
 5) Installed Firefox (never before installed on this computer)

 None of these steps helped.  Helpful thoughts appreciated.

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



Re: why we probably won't use GWT for a large UI project

2010-08-11 Thread marius.andreiana
Hey,

On Aug 11, 11:00 pm, lineman78 linema...@gmail.com wrote:
 As far as SmartGWT goes, I will warn you that I think the problems and
 performance hits you will run into are not worth the UI that you
 gain.  
Thanks for the heads up. A hello world with data bound widgets seemed
straightforward.

 Plus you must consider the licensing, which is required in
 order to use their data binding.
Looks like we can use this 
http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/data/RestDataSource.html
under LGPL, and no Smart* server-side component.

 I commonly use REST and GWT in perfect harmony and it is very easy.
 Assuming you have the ability to output JSON instead of XML you can
 just use overlay types and get very efficient parsing.
We have control over server APIs, and we have both JSON and XML. Would
it be possible to share some sample code?

. I personally
 don't know what TileGrid is,
See http://www.smartclient.com/smartgwt/showcase/#tiling_filter_sort
d'n'd to sort. One should be able to change image captions, and have
the customized data source trigger appropriate PUT requests to update
the server items. I'd love to see this functionality from GWT.

 out of the box GWT isn't intended to
 be a widget library, but there are plenty of them out there.  Google
 is trying to add a lot more widget support which is evident by the
 data presentation widgets, but their original intent was to create a
 flexible and efficient cross compiler, not make a pretty UI library.
Point taken.

-- 
You received 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: Switching a class for precompile

2010-08-11 Thread cokol
hi, you can use the super-source/ element in the gwt module
descriptor, please refer to section Overriding one package
implementation with another in this faq
http://code.google.com/intl/de-DE/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html

there are also other ways, like you could also provide another
classpath settings to the compiler, but super-sourcing is actually
most elegant, yet remember: in hosted mode GWT will still use the real
java class from the classpath rather than your super-sourced
implementation.

On 11 Aug., 22:51, Evan Ruff evan.r...@gmail.com wrote:
 Hello all,

 I was wondering if anyone can point me in the right direction for what
 I'm trying to do. Currently, I've got a huge legacy model used in a
 number of systems currently in production. I'd like to include this
 model in my GWT project, but three (out of, maybe 200 classes) use
 refection. These classes are base classes and the reflection parts,
 while nice to have, are not really necessary for my GWT
 implementation.

 So, currently the classes look like :

 ClassA extends ClassB

 All of the reflection nastiness is in ClassB. I have written ClassC
 that has the same methods/variables as ClassB, but none of the
 reflection. I'd like to tell the compiler to replace ClassB with
 ClassC right before doing the GWTCompiler magic. Is there a way to do
 that as currently implemented or am I on my own from a GWT Standpoint?

 Thanks,

 E

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

2010-08-11 Thread Ladislav Gazo
This seems to me just a flame about what the word 'security' exactly
is :) acris-security is about bridging client and server, using
server's authentication and authorization methods to add another layer
for potencial attacker to skip (for common users what is not visible
or editable is also not going to be broken). If you don't secure
either you are opening another hole which could be used to break in.
In GWT there is currently no way known to me how to bridge it, if
there is we will welcome any constructive suggestions/contributions on
how to improve/integrate/provide better ways for end users to be
securely-comfortable with using GWT applications. It is clear to us
that there is no effort without mistakes/bugs so we are open to any
suggestions how to improve security as such both for developers and
users.

On 11. Aug, 16:33 h., Peter Simun si...@seges.sk wrote:
 Hi Stefan,

 of course, client side code could never be secured! AcrIS security
 fully depends also on securing the RPC services (on the server side,
 client side security is an complementary security - some kind of nice
 to have security)
 The goal is: if the user does not have rights to see some parts of the
 screens, it won't be displayed. If the user is not able to modify the
 data, he will see the readonly components.
 Anyway, server side security is also checking if the user is able to
 execute methods or if he is able to modify/see data he are reguesting.

 This coupled approached gives you completly secured solution for GWT
 applications.

 Peter

 On 11. Aug, 16:07 h., Stefan Bachert stefanbach...@yahoo.de wrote:

  Hi Peter,

  I had just a glance at acris.
  Acris is talking about a client side part.

  No mechanism which depends on client side code could be secure!

  So I would suspect acris to be a misconsception.
  At  the moment I do not spend time to exactly find out what is wrong
  with acris.

  Stefan Bacherthttp://gwtworld.de

  On 11 Aug., 15:47, Peter Simun si...@seges.sk wrote:

   Luis, why do you think that there is no security there?

   Please, read the article again and carefully, or go on the wiki 
   pages:http://code.google.com/p/acris/wiki/Security

   Peter

   On 11. Aug, 14:04 h., Luis Daniel Mesa Velasquez

   luisdanielm...@gmail.com wrote:
I don't see anything about the encryption used in the RPC call to the
userservice... so it's just a fancy 3rd party RPC call, no security
there...

On Aug 10, 3:20 am, Peter Simun si...@seges.sk wrote:

 Hi all,

 I just wanted to share with you the article about security in GWT
 application.http://java.dzone.com/articles/securing-gwt-client-acris

 Serious security implementation is something that was missing almost
 to each GWT developer. I saw many topics here in the forum about the
 security, so maybe it will helps you to implement security in a
 correct way.

 Peter

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



Reading a local file

2010-08-11 Thread Greg Dougherty
My users want my app to be able to read data from a local file.  So
far as I can tell, the only way to do this is to have a FileUpload
Widget in a form, send the contents of the file to the server, and
then get the contents from the server (i.e. send the form with a
unique ID attached, then make an RPC call asking for the contents of
the file with that unique ID).

Is there another way to do this?  Does there exist sample code on how
to do this?

TIA,

Greg

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

2010-08-11 Thread Greg Dougherty
Hi Peter.

Not to be rude, but who cares?

Who cares if the user can see a screen that says Client Data, when
the user can't actually download any of that client data?

IOW, what's the point?  If your sever is properly secured, then users
who aren't allowed to see the client data won't be sent it, and users
who aren't allowed to modify the data will have their modification
requests denied.  If it isn't properly secured, then what AcrIS does
is pointless. no?

Yes, it's nice from the UI perspective to let the user know why they
can't see / change the data, but what in the world does that have to
do with security?

Greg

On Aug 11, 9:33 am, Peter Simun si...@seges.sk wrote:
 Hi Stefan,

 of course, client side code could never be secured! AcrIS security
 fully depends also on securing the RPC services (on the server side,
 client side security is an complementary security - some kind of nice
 to have security)
 The goal is: if the user does not have rights to see some parts of the
 screens, it won't be displayed. If the user is not able to modify the
 data, he will see the readonly components.
 Anyway, server side security is also checking if the user is able to
 execute methods or if he is able to modify/see data he are reguesting.

 This coupled approached gives you completly secured solution for GWT
 applications.

 Peter

 On 11. Aug, 16:07 h., Stefan Bachert stefanbach...@yahoo.de wrote:

  Hi Peter,

  I had just a glance at acris.
  Acris is talking about a client side part.

  No mechanism which depends on client side code could be secure!

  So I would suspect acris to be a misconsception.
  At  the moment I do not spend time to exactly find out what is wrong
  with acris.

  Stefan Bacherthttp://gwtworld.de

  On 11 Aug., 15:47, Peter Simun si...@seges.sk wrote:

   Luis, why do you think that there is no security there?

   Please, read the article again and carefully, or go on the wiki 
   pages:http://code.google.com/p/acris/wiki/Security

   Peter

   On 11. Aug, 14:04 h., Luis Daniel Mesa Velasquez

   luisdanielm...@gmail.com wrote:
I don't see anything about the encryption used in the RPC call to the
userservice... so it's just a fancy 3rd party RPC call, no security
there...

On Aug 10, 3:20 am, Peter Simun si...@seges.sk wrote:

 Hi all,

 I just wanted to share with you the article about security in GWT
 application.http://java.dzone.com/articles/securing-gwt-client-acris

 Serious security implementation is something that was missing almost
 to each GWT developer. I saw many topics here in the forum about the
 security, so maybe it will helps you to implement security in a
 correct way.

 Peter

-- 
You received 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: Reading a local file

2010-08-11 Thread Thad
If your document is text, you can do what I did--return the text in
the addSubmitCompleteHandler:

form.addSubmitCompleteHandler(new FormPanel.SubmitCompleteHandler() {
public void onSubmitComplete(FormPanel.SubmitCompleteEvent 
event) {
// This event is fired when the form submission is 
successfully
completed.
String result = event.getResults();
GWT.log(result.substring(0, 40), null);
parseDocument(result);
}
});

I return the entire file, but you could strip out what you need and go
from there.

NOTE:  Because of IE you must, *must*, **MUST** set the content type
to text/html or IE will wrap it in all sorts of garbage.

In my upload servlet (using the Apache Commons FileUpload).

@SuppressWarnings(unchecked)
protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, 
IOException
{

response.setContentType(text/html;charset=UTF-8);
PrintWriter out = response.getWriter();

// Create a factory for disk-based file items
DiskFileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);

// Parse the request, and temporarily store file.
try {
ListFileItem items = upload.parseRequest(request);
IteratorFileItem iter = items.iterator();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();

if (item.isFormField()) {
//String name = item.getFieldName();
}
else {
// If no item name, no file has been selected.
if ( item.getName().length()  0  
item.getSize()  0 ) {
byte [] data = item.get();
String xml = new String(data);
out.write(xml);
}
}
} // end WHILE
} catch (FileUploadException e) {
e.printStackTrace();
out.println(e.getMessage());
return;
}
}


On Aug 11, 5:22 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote:
 My users want my app to be able to read data from a local file.  So
 far as I can tell, the only way to do this is to have a FileUpload
 Widget in a form, send the contents of the file to the server, and
 then get the contents from the server (i.e. send the form with a
 unique ID attached, then make an RPC call asking for the contents of
 the file with that unique ID).

 Is there another way to do this?  Does there exist sample code on how
 to do this?

 TIA,

 Greg

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

2010-08-11 Thread Peter Simun
Hi Greg,

thanks for the answer. Who casers? Users cares!

Let's imagine that you will modify all the data you are able to
modify (as an user of the application) and the the server will
response you, that you are not allowed to modify them! Are you
satisfied with that solution? Is that a common approach?

Isn't that solution that you have client state consistent with your
server implementation cool? Never wanted this kind of solution?
Second thing: what about the session handling in your GWT
applications? What if acris can handle this for you transparently?
And finally: properly secured server ... what is that? I can say,
this common approaches are coupled in the acris-security project and
well tested in the real environment.

Do you thing this is not enought?

Peter

On 11. Aug, 23:31 h., Greg Dougherty dougherty.greg...@mayo.edu
wrote:
 Hi Peter.

 Not to be rude, but who cares?

 Who cares if the user can see a screen that says Client Data, when
 the user can't actually download any of that client data?

 IOW, what's the point?  If your sever is properly secured, then users
 who aren't allowed to see the client data won't be sent it, and users
 who aren't allowed to modify the data will have their modification
 requests denied.  If it isn't properly secured, then what AcrIS does
 is pointless. no?

 Yes, it's nice from the UI perspective to let the user know why they
 can't see / change the data, but what in the world does that have to
 do with security?

 Greg

 On Aug 11, 9:33 am, Peter Simun si...@seges.sk wrote:

  Hi Stefan,

  of course, client side code could never be secured! AcrIS security
  fully depends also on securing the RPC services (on the server side,
  client side security is an complementary security - some kind of nice
  to have security)
  The goal is: if the user does not have rights to see some parts of the
  screens, it won't be displayed. If the user is not able to modify the
  data, he will see the readonly components.
  Anyway, server side security is also checking if the user is able to
  execute methods or if he is able to modify/see data he are reguesting.

  This coupled approached gives you completly secured solution for GWT
  applications.

  Peter

  On 11. Aug, 16:07 h., Stefan Bachert stefanbach...@yahoo.de wrote:

   Hi Peter,

   I had just a glance at acris.
   Acris is talking about a client side part.

   No mechanism which depends on client side code could be secure!

   So I would suspect acris to be a misconsception.
   At  the moment I do not spend time to exactly find out what is wrong
   with acris.

   Stefan Bacherthttp://gwtworld.de

   On 11 Aug., 15:47, Peter Simun si...@seges.sk wrote:

Luis, why do you think that there is no security there?

Please, read the article again and carefully, or go on the wiki 
pages:http://code.google.com/p/acris/wiki/Security

Peter

On 11. Aug, 14:04 h., Luis Daniel Mesa Velasquez

luisdanielm...@gmail.com wrote:
 I don't see anything about the encryption used in the RPC call to the
 userservice... so it's just a fancy 3rd party RPC call, no security
 there...

 On Aug 10, 3:20 am, Peter Simun si...@seges.sk wrote:

  Hi all,

  I just wanted to share with you the article about security in GWT
  application.http://java.dzone.com/articles/securing-gwt-client-acris

  Serious security implementation is something that was missing almost
  to each GWT developer. I saw many topics here in the forum about the
  security, so maybe it will helps you to implement security in a
  correct way.

  Peter

-- 
You received 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: Insertion cursor disappears on IE RichTextArea before I can grab it

2010-08-11 Thread Karthik

Hi Kozuru,

I have the simiar problem and I'm a newbie, could you please gimme the
NativePreviewHandler fix for this.  Thank You.

-Karthik

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

2010-08-11 Thread Ladislav Gazo
Personally I would like to know proper name for it, if you would be so
kind and give us some proposals we will consider it as your
contribution to the process of making acris-(currently named)-security
better :) We initially thought that 'security' also covers
transferring server-side security restrictions to the client so the
user is also satisfied (hiding components, ability to login, have some
basic components available in GWT,...) but we might be mistaken about
the name...

And also please consider that acris-security (if you haven't been able
to find it somewhere in the documentation I will fill it in) is/is
trying/and would also provide ways how to transparently switch the
server side security implementation. Maybe there (or somewhere else)
is a possibility where we could cooperate, what would you say?

On 11. Aug, 23:31 h., Greg Dougherty dougherty.greg...@mayo.edu
wrote:
 Hi Peter.

 Not to be rude, but who cares?

 Who cares if the user can see a screen that says Client Data, when
 the user can't actually download any of that client data?

 IOW, what's the point?  If your sever is properly secured, then users
 who aren't allowed to see the client data won't be sent it, and users
 who aren't allowed to modify the data will have their modification
 requests denied.  If it isn't properly secured, then what AcrIS does
 is pointless. no?

 Yes, it's nice from the UI perspective to let the user know why they
 can't see / change the data, but what in the world does that have to
 do with security?

 Greg

 On Aug 11, 9:33 am, Peter Simun si...@seges.sk wrote:

  Hi Stefan,

  of course, client side code could never be secured! AcrIS security
  fully depends also on securing the RPC services (on the server side,
  client side security is an complementary security - some kind of nice
  to have security)
  The goal is: if the user does not have rights to see some parts of the
  screens, it won't be displayed. If the user is not able to modify the
  data, he will see the readonly components.
  Anyway, server side security is also checking if the user is able to
  execute methods or if he is able to modify/see data he are reguesting.

  This coupled approached gives you completly secured solution for GWT
  applications.

  Peter

  On 11. Aug, 16:07 h., Stefan Bachert stefanbach...@yahoo.de wrote:

   Hi Peter,

   I had just a glance at acris.
   Acris is talking about a client side part.

   No mechanism which depends on client side code could be secure!

   So I would suspect acris to be a misconsception.
   At  the moment I do not spend time to exactly find out what is wrong
   with acris.

   Stefan Bacherthttp://gwtworld.de

   On 11 Aug., 15:47, Peter Simun si...@seges.sk wrote:

Luis, why do you think that there is no security there?

Please, read the article again and carefully, or go on the wiki 
pages:http://code.google.com/p/acris/wiki/Security

Peter

On 11. Aug, 14:04 h., Luis Daniel Mesa Velasquez

luisdanielm...@gmail.com wrote:
 I don't see anything about the encryption used in the RPC call to the
 userservice... so it's just a fancy 3rd party RPC call, no security
 there...

 On Aug 10, 3:20 am, Peter Simun si...@seges.sk wrote:

  Hi all,

  I just wanted to share with you the article about security in GWT
  application.http://java.dzone.com/articles/securing-gwt-client-acris

  Serious security implementation is something that was missing almost
  to each GWT developer. I saw many topics here in the forum about the
  security, so maybe it will helps you to implement security in a
  correct way.

  Peter

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



Re: Does Timer class only last one session + images as an attachment in an email

2010-08-11 Thread GKotta
I have one more question:

I am getting a file access denied when I try to send and image in the
datastore as an attachment. I there any way around this?
Code (result.get(i).getAssociatedImage is the url where it is stored
on the database. In this case, it is http:\127.0.0.1:\image?
title=t609i1) :
 // second part (the image)
messageBodyPart = new MimeBodyPart();
DataSource fds = new FileDataSource
  (result.get(i).getAssociatedImage());
messageBodyPart.setDataHandler(new DataHandler(fds));
messageBodyPart.setHeader(Content-ID,image);

// add it
multipart.addBodyPart(messageBodyPart);
Exception:
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract boolean com.***.emailAssociatedImages()' threw an
unexpected exception: java.security.AccessControlException: access
denied (java.io.FilePermission http:\127.0.0.1:\image?title=t609i1
read)

Thanks!

On Aug 11, 1:35 pm, GKotta guruko...@gmail.com wrote:
 Thanks everyone!

 On Aug 9, 10:44 pm, Prakash prakash.masilam...@gmail.com wrote:

  @GKotta.
  If your use case is to delete images (irrespective of user) after two
  months, then cron Or timer job on server (Check Quartz) is the good
  way to go. Remember in this approach you wont have access to user
  session.

  If you need User Session to decide whether to delete or not , then you
  can use SessionListeners on Server side.
  Google for SessionListeners to know more about its use cases.

  For sending mails , use javax.mail as per @mike's reply.
  Hope this helps.

  Regards,
  Prakash M.

  On Aug 10, 3:09 am, André Moraes andr...@gmail.com wrote:

   Shaffer,

   This approach is a little overhead in the maintainability of the code (and
   in the methods too, since every server call will make a extra call to the
   database).

   GKotta

   To avoid access to images that is in the database but the 2 month time has
   expired, you can make the check only in the methods that access the images
   in the database (if using hibernate this can be an interceptor).

   This will introduce overhead, but only when images are needed.

   If you cannot add a cron job at your server, create an speciall url that
   requires a custom login/password and when that url is accessed you run the
   code that removes the images from the database. If possible use SSL in 
   this
   part of the site and don't send the username/password in the query string,
   use the HTTP POST METHOD.

   Then you can make a cron job in your computer (home or job) and create a
   simple wget script that access that special url. This isn't the best
   solution, but works when you don't have admin access to cron jobs in the
   production server.

   --
   André Moraes
   Analista de Desenvolvimento de Sistemas
   andr...@gmail.comhttp://andredevchannel.blogspot.com/

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



Re: Who knows how to execute native code in server-side

2010-08-11 Thread Yingwei HU
uncheck the app engine option when creating the project...so simple

2010/8/6, Yingwei HU husi...@gmail.com:
 Hello, all.
 Who knows how to execute native code in server-side?
 There is  no Runtime class in gwt.
 I either can not use system.load(lib) to recall the outside dll due to
 security control.
 What can I do to solve this problem?
 Thank you.

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



Re: GWT 2.0, Maven, Google eclipse and TOMCAT, why didn't google build maven support?

2010-08-11 Thread Andrew Hughes
Déjà vu - this tread is nothing new.

If people would like to raise the GWT steering committee's awareness of
maven related issues, try using the tool setup for just this purpose :)
http://code.google.com/p/google-web-toolkit/issues/list
http://code.google.com/p/google-web-toolkit/issues/list?can=2q=mavencolspec=ID+Type+Status+Owner+Milestone+Summary+Starscells=tiles

Some statistic's for everyone...
The most voted for (open) Maven related issue is issue
#4484http://code.google.com/p/google-web-toolkit/issues/detail?id=4484colspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Starswith
27 votes. This is the currently ranked the 34th most voted for issue.
The top ten issues have votes that range from [70..228].
Take a look at the others, vote on what is affecting you and if you can't
find what you are looking for then you should raise a (sensible) issue :)

The SpringRoo work is closely tied in with Maven, and there are several
maven related issues you might find interesting...
https://jira.springframework.org/browse/ROO#selectedTab=com.atlassian.jira.plugin.system.project%3Aroadmap-panel

Also, and of course.. the gwt-maven guys - remember that these guys don't
control GWT.
http://jira.codehaus.org/browse/MGWT


On Thu, Aug 12, 2010 at 5:54 AM, Hilco Wijbenga hilco.wijbe...@gmail.comwrote:

 On 11 August 2010 11:37, dane.molotok dane.molo...@gmail.com wrote:
  The documentation is frustrating, so let's all document some stuff
  here so that other googlers will find help. Hilco, can you link to
  your pom or post some relevant snippets?

 If attachments work then you should find attached a complete project
 (11KB). It's essentially a Mavenized version of what webAppCreator
 spits out (slightly cleaned up).

 You can create a WAR file by issuing 'mvn clean package', running in
 dev mode is done by issuing 'mvn clean gwt:run -Dhosted-mode'. (I've
 added a profile to make sure that adding '-bindAddress 0.0.0.0'
 doesn't break 'mvn clean package'.)

 I've tried it with an empty local repository so there should be no
 surprises. :-) Good luck!

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.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.



[gwt-contrib] Re: Removed use of a global table (typeIdArray) for testing castability between types. This informa... (issue750801)

2010-08-11 Thread bobv


http://gwt-code-reviews.appspot.com/750801/diff/1/2
File dev/core/src/com/google/gwt/core/ext/linker/SymbolData.java
(right):

http://gwt-code-reviews.appspot.com/750801/diff/1/2#newcode86
dev/core/src/com/google/gwt/core/ext/linker/SymbolData.java:86: Object
getCastableTypeMap();
What's the return type?

Anything in an .ext package is at least semi-public API.

http://gwt-code-reviews.appspot.com/750801/diff/1/4
File dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java (right):

http://gwt-code-reviews.appspot.com/750801/diff/1/4#newcode1102
dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java:1102:
Extra whitespace.

http://gwt-code-reviews.appspot.com/750801/diff/1/6
File dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
(right):

http://gwt-code-reviews.appspot.com/750801/diff/1/6#newcode1496
dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java:1496:
private void generateCastableTypeIds(JClassType x, ListJsStatement
globalStmts) {
It's helpful to future maintainers if you add comments that more-or-less
correspond to the Java syntax that the AST represents.

http://gwt-code-reviews.appspot.com/750801/diff/1/7
File
dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Array.java
(right):

http://gwt-code-reviews.appspot.com/750801/diff/1/7#newcode137
dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Array.java:137:
Object castableTypeMap, int queryId, int length, int seedType) {
Why is the Object all over the place?

http://gwt-code-reviews.appspot.com/750801/diff/1/12
File user/src/com/google/gwt/rpc/server/ClientOracle.java (right):

http://gwt-code-reviews.appspot.com/750801/diff/1/12#newcode56
user/src/com/google/gwt/rpc/server/ClientOracle.java:56: public abstract
Object getCastableTypeMap(Class? clazz);
Tighten the return type.

http://gwt-code-reviews.appspot.com/750801/diff/1/12#newcode117
user/src/com/google/gwt/rpc/server/ClientOracle.java:117:
Extra whitespace.

http://gwt-code-reviews.appspot.com/750801/diff/1/17
File user/super/com/google/gwt/emul/java/lang/Object.java (right):

http://gwt-code-reviews.appspot.com/750801/diff/1/17#newcode46
user/super/com/google/gwt/emul/java/lang/Object.java:46: * lookup
castability between types
Describe the structure of this object.  Is it a JSO?

http://gwt-code-reviews.appspot.com/750801/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Add Mnemonics/Shortcuts for frequently used buttons on the Dev Shell (Swing UI) (issue708801)

2010-08-11 Thread loxal . net

What's about a commit to the main trunk? The patch still hasn't been
applied althout it's been accepted:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5150

http://gwt-code-reviews.appspot.com/708801/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


Re: [gwt-contrib] Why is JClassType#getAnnotations() not public?

2010-08-11 Thread BobV
 that would do exactly what I need, but they have default visibility
 and are indicated for testing purposes only. Is there any reason why
 these method couldn't be made public?

Because the public API requires the use of class literals, it forces
the .class file for the annotation to be on the classpath of the JVM
running the compiler.  If we had a general getAnnotations() method, it
would be possible for annotations to go missing, because the
compiler will ignore annotations for which there are no associated
class files.

-- 
Bob Vawter
Google Web Toolkit Team

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Annotate the SpeedTracer log data with some extra info. (issue753801)

2010-08-11 Thread conroy


http://gwt-code-reviews.appspot.com/753801/diff/1/3
File dev/core/src/com/google/gwt/dev/javac/CompilationState.java
(right):

http://gwt-code-reviews.appspot.com/753801/diff/1/3#newcode93
dev/core/src/com/google/gwt/dev/javac/CompilationState.java:93:
generatedUnitsAddEvent.addData(# new generated units,  +
generatedUnits.size());
On 2010/08/11 02:06:42, zundel wrote:

Is this a valid JSON property name? I've nver used a # or spaces in

one.

It's a valid object name given that we surround it with double quotes

data:{# icus:1550,phase:compile}

I can change it if you like, but this is valid JSON AFAIK.

http://gwt-code-reviews.appspot.com/753801/diff/1/9
File dev/core/src/com/google/gwt/dev/shell/ShellModuleSpaceHost.java
(right):

http://gwt-code-reviews.appspot.com/753801/diff/1/9#newcode94
dev/core/src/com/google/gwt/dev/shell/ShellModuleSpaceHost.java:94:
On 2010/08/11 02:06:42, zundel wrote:

whitespace


Some day, when there's a full eclipse of the sun and the planets are
aligned, Eclipse will stop putting random whitespace in my files...

(fixing locally for now)

http://gwt-code-reviews.appspot.com/753801/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Annotate the SpeedTracer log data with some extra info. (issue753801)

2010-08-11 Thread zundel

LGTM


http://gwt-code-reviews.appspot.com/753801/diff/1/3
File dev/core/src/com/google/gwt/dev/javac/CompilationState.java
(right):

http://gwt-code-reviews.appspot.com/753801/diff/1/3#newcode93
dev/core/src/com/google/gwt/dev/javac/CompilationState.java:93:
generatedUnitsAddEvent.addData(# new generated units,  +
generatedUnits.size());
On 2010/08/11 14:56:13, conroy wrote:

On 2010/08/11 02:06:42, zundel wrote:
 Is this a valid JSON property name? I've nver used a # or spaces in

one.


It's a valid object name given that we surround it with double quotes



data:{# icus:1550,phase:compile}



I can change it if you like, but this is valid JSON AFAIK.


OK

http://gwt-code-reviews.appspot.com/753801/diff/1/9
File dev/core/src/com/google/gwt/dev/shell/ShellModuleSpaceHost.java
(right):

http://gwt-code-reviews.appspot.com/753801/diff/1/9#newcode94
dev/core/src/com/google/gwt/dev/shell/ShellModuleSpaceHost.java:94:
On 2010/08/11 14:56:13, conroy wrote:

On 2010/08/11 02:06:42, zundel wrote:
 whitespace



Some day, when there's a full eclipse of the sun and the planets are

aligned,

Eclipse will stop putting random whitespace in my files...



(fixing locally for now)



You can try going to Window - Preferences - Java - Editor - Save
Actions
turn on additional actions to remove trailing whitespace.

http://gwt-code-reviews.appspot.com/753801/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


  1   2   >