Re: How to disable menu items?

2010-08-03 Thread Magnus
Hi Rob,

I think you got me a little bit wrong: I don't want the menu to handle
the logic. I can handle the logic my self. But I need to tell the menu
that it should show (paint) a menu item as disabled.

Give me a method like this and I am happy:

MenuItem.setEnabled (boolean enabled);

Well, the recommendation for gwtlib from Alan shows that this must be
implemented already. Then it must also be possible for me to do this
"by hand", without using an additional library. But how?

It would be fine if someone could tell how this can be done.

Thanks
Magnus



On Aug 3, 4:42 pm, Rob Coops  wrote:
> So what you are saying is that you need a way for the menu to detect which
> user/user group is looking at the menu.
>
> As you are already saying you have user groups it should not be to hard to
> inform the menu about the user group that is trying to open it. Once the
> menu knows which group is trying to open it it can use internal hard
> coded or externally read logic to decide what fields to render and how to
> render them, what events to attach to the elements and so on.
>
> I would simply hand the menu a variable/object that identifies the user
> group accessing it. Then the menu logic can deal with the rest. I would
> though use an external location to store the logic for the menu so you can
> easily update it should you need to add a new group in the future.
>
> I hope that helps a bit...
>
> On Tue, Aug 3, 2010 at 4:28 PM, Magnus  wrote:
> > Thank you,
>
> > but shouldn't GWT itself provide a mechanism to disable menu items?
>
> > Using an additional library is not the problem for me, but using an
> > additional library because of such a small functionality that should
> > be present in any menu implementation is a problem for me. As a
> > consequence I would end up in about a dozent libs...
>
> > Isn't there another solution?
>
> > Why is this missing?
>
> > Thanks
> > Magnus
>
> > On Aug 1, 10:56 pm, Alan Hadsell  wrote:
> > > On Aug 1, 12:25 pm, Magnus  wrote:
>
> > > > Hi,
>
> > > > I have a MenuBar with MenuItems, which I would like to selectively
> > > > enable for defined user groups. But how can I enable/disable menu
> > > > items?
>
> > > Take a look at gwtlib:http://code.google.com/p/gwtlib/.  It has
> > > menubars
> > > and menu items that can be enabled and disabled.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email 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.



AE / GWT Newb: How to do RPC Call with my own return type?

2010-08-03 Thread spierce7
Hey guys, I've been mess making an app for a while now, and I've
finally got something that is able to save an entity on the server.
That entity (to keep it simple) is of type Event. It has 2 Date
objects: startDate and endDate. I understand how to do queries and
what not, but what I found my program encountering issues with is in
my method within the ServiceImpl, getEvents(), it's having a difficult
time distinguishing between my client side Event object and my server
side. This creates issues when I try to have my return type as
List. How should I be handling this? Does the client side Event
object need to be serializable? I've tried this, still without much
luck.

On the client side Service, and ServiceAsync classes, should I be
declaring the types through the server side object? Example:
public List getEvents();
or should I perhaps be doing the same thing, but with the client side
on the server? I've tried both of these, but can't seem to get it to
be happy with whatever I put. Any direction in this would be greatly
appreciated! Thanks!

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



Re: Problem with UTF-8

2010-08-03 Thread lineman78
One simple way to check if it is Java/GWT code or the browser is to
add some UTF-8 chars straight to the html file.  If that is working
correctly then it must be either the Java file isn't UTF-8 or
something else is wrong.  Eclipse allows you to change the encoding of
files through the properties menu.

On Aug 3, 12:28 pm, Kiarash  wrote:
> Thank you David,
>
> I just did what you wrote and deleted the Java file and paste the code
> in the new Java file again and the same with the HTML file. I checked
> the properties and both had UTF-8 already but without success. On
> the browser the Swedish letters still replaced with other
> characters... My browser settings is on UTF-8 too!
>
> Do you have any other suggestions?
>
> //Kiarash
>
> On 3 Aug, 09:02, "david.herv...@gmail.com" 
> wrote:
>
> > Hi,
>
> > Have you specified theUTF-8before creating file or just change it
> > while your files were created ?
> > I've just copy paste your Label in a project where .java file 
> > areUTF-8encoded and everything works fine.
> > Just check on one of your file the properties that is attributed to it
> > (contextual menu on one of the incriminated java file): here you must
> > haveUTF-8.
>
> > On Aug 2, 9:38 pm, Kiarash  wrote:
>
> > > I have a problem with Swedish letters coded in Java files as when I
> > > make a Label with Swedish letters,
> > > Label myLabel = new Label("här är något på Svenska");
> > > the Swedish letters changes to strange characters in the HTML file.
>
> > > I am using Eclipse.I made sure that:
> > > the html file has 
> > > the text file >properties areUTF-8
> > > the >project >properties areUTF-8
> > > the >edit >set encoding areUTF-8
>
> > > Anybody facing the same problem or have a solution... thanx!

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



Re: Error on execution

2010-08-03 Thread Diego Venuzka
Well, in the Netbeans, how i do that? because i'm compiling the project
direct on NB, and it open a internet window, to show the page.
The project is normally compiled, but show the error message on internet
window...
Wich files i can delete to solve this? Or how i compile it again ?
Thanks!!!

2010/8/3 Gal Dolber 

> mm, I have never used Netbeans..
> In general that problem happen when you run an app that isn't compiled.
> When you run development-mode it generated a folder in the war directory if
> it didn't exist. And if you try to run the app without development-mode
> before compiling you will get that alert.
>
> If your app works on development-mode there is something wrong with the
> compiling process.
> If you see the alert in development-mode (I don't know if that even
> possible).. I don't know what you can do :P
>
> Try to describe better the situation.
>
> 2010/8/3 Diego Venuzka 
>
> Hi Gal!
>> Well, i'm using Netbeans to build my project, and i don't found the war
>> directory. On Eclipse i saw that, but on Netbeans, not
>> On the main.xml, in the tab "Compiler", all the lines are emptythis is
>> correct?
>> Thanks!
>>
>> 2010/8/3 Gal Dolber 
>>
>> Jeje, porque contestas en español si pregunta en ingles?
>>>
>>> Try to remove the generated folder from the war directory and recompile
>>> or re-run.
>>>
>>> 2010/8/2 leonardo britez 
>>>
>>>  Fijate si le falta alguna libreria, ok?


 --- El *lun, 8/2/10, Diego Venuzka * escribió:


 De: Diego Venuzka 
 Asunto: Error on execution
 A: google-web-toolkit@googlegroups.com
 Fecha: lunes, 2 de agosto de 2010, 09:11 pm


 Hi!
 I'm still trying to build my project, and after several searches, i
 found a really nice project. After the adjustments, the system show a error
 message (attached). How i solve this?
 Thanks for all! :D

 --
 Diego Venuzka

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

>>>
>>>
>>>
>>> --
>>> http://ajax-development.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-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>
>>
>> --
>> Diego Venuzka
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>
>
> --
> http://ajax-development.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.
>



-- 
Diego Venuzka

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



Re: Error on execution

2010-08-03 Thread Gal Dolber
mm, I have never used Netbeans..
In general that problem happen when you run an app that isn't compiled.
When you run development-mode it generated a folder in the war directory if
it didn't exist. And if you try to run the app without development-mode
before compiling you will get that alert.

If your app works on development-mode there is something wrong with the
compiling process.
If you see the alert in development-mode (I don't know if that even
possible).. I don't know what you can do :P

Try to describe better the situation.

2010/8/3 Diego Venuzka 

> Hi Gal!
> Well, i'm using Netbeans to build my project, and i don't found the war
> directory. On Eclipse i saw that, but on Netbeans, not
> On the main.xml, in the tab "Compiler", all the lines are emptythis is
> correct?
> Thanks!
>
> 2010/8/3 Gal Dolber 
>
> Jeje, porque contestas en español si pregunta en ingles?
>>
>> Try to remove the generated folder from the war directory and recompile or
>> re-run.
>>
>> 2010/8/2 leonardo britez 
>>
>>  Fijate si le falta alguna libreria, ok?
>>>
>>>
>>> --- El *lun, 8/2/10, Diego Venuzka * escribió:
>>>
>>>
>>> De: Diego Venuzka 
>>> Asunto: Error on execution
>>> A: google-web-toolkit@googlegroups.com
>>> Fecha: lunes, 2 de agosto de 2010, 09:11 pm
>>>
>>>
>>> Hi!
>>> I'm still trying to build my project, and after several searches, i found
>>> a really nice project. After the adjustments, the system show a error
>>> message (attached). How i solve this?
>>> Thanks for all! :D
>>>
>>> --
>>> Diego Venuzka
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>
>>
>> --
>> http://ajax-development.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.
>>
>
>
>
> --
> Diego Venuzka
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
http://ajax-development.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.



[Help Needed] GwtCreateResource -- how do I get this working for me?

2010-08-03 Thread Xlorep DarkHelm
Ok, here's the example code:

---

public class Settings {

/**
 * The size of the blocks to draw on the client-side, in pixels.
 */
public static final int PIXEL_SIZE = 5;
/**
 * The length of the array to draw on the client-side.
 */
public static final int MAX = 100;
/**
 * The HTML ID for the canvas that is drawn.
 */
public static final String CANVAS_ID = "drawingCanvas";
public static final String APP_ID = "appPanel";
public static final String CLIENTID = "clientId";
public static final String FUNCNAME = "funcName";
public static final String CODE = "code";

public static final int LIST_SIZE = 200;

public int listSize() {
return LIST_SIZE;
}

public int mainSize() {
return canvasSize() + LIST_SIZE;
}

public int canvasSize() {
return PIXEL_SIZE * MAX;
}
}


public interface Resources extends ClientBundle {

@Source("ShowSort.css")
Style style();

GwtCreateResource settings();

public interface Style extends CssResource {

public String customFlowPanel();

public String algobutton();

public String notlive();
}
}










---

The problem I am having, is it is failing to provide access to the
methods in my Settings class, I have three defined, with zero-args. I
am trying to access the canvasSize() method within the above uibinder
XML file, and compilation is failing with the following:

---

   Scanning for additional dependencies: file:/E:/Documents/NetBeans/
ShowSort/src/java/org/darkhelm/showsort/client/display/Display.java
  Computing all possible rebind results for
'org.darkhelm.showsort.client.display.Display.DisplayUiBinder'
 Rebinding
org.darkhelm.showsort.client.display.Display.DisplayUiBinder
Invoking
com.google.gwt.dev.javac.standardgeneratorcont...@1ebd825
   validating {res.settings.canvasSize}
  [ERROR] Could not find no-arg method named
canvasSize in type com.google.gwt.resources.client.GwtCreateResource
   [ERROR] Errors in 'file:/E:/Documents/NetBeans/ShowSort/src/java/
org/darkhelm/showsort/client/display/Display.java'
  [ERROR] Line 49:  Failed to resolve
'org.darkhelm.showsort.client.display.Display.DisplayUiBinder' via
deferred binding
   Scanning for additional dependencies:
generated://51C155C0C4847D2F0E6091D0115F8667/org/darkhelm/showsort/client/org_darkhelm_showsort_client_Resources_default_StaticClientBundleGenerator.java
  [WARN] For the following type(s), generated source was never
committed (did you forget to call commit()?)
 [WARN]
org.darkhelm.showsort.client.display.Display_DisplayUiBinderImpl
   [ERROR] Cannot proceed due to previous errors

---

I'm at a loss, it says there is no "no-arg" method named canvasSize in
the GwtCreateResource type. I must be doing something wrong here.


What I am trying to do, is have the parameters I define in
Settings.java to be able to be accessed through the ClientBundle,
eventually so then I can use them within my own defined CssResource
(the ShowSort.css resource in Resources.java above), through the use
of the value() function in CSS, as defined here:
http://code.google.com/p/google-web-toolkit/wiki/CssResource#Value_function

I want to programattically be able to define/set some of the
parameters used in the CSS code, with the same Settings class I have
being used for my server & client code currently. But for me to be
able to make this work, I need to be able to have the Settings values
be available in the ClientBundle that contains the CssResource, from
my understanding. This doesn't seem to be working... I thought
GwtCreateResource<> was the correct thing to use, but it is failing.
Please help :)

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



Re: UTF-8 Encoding Problem

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

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


i don't know if it work or not ?

On Aug 3, 9:52 am, Kiarash  wrote:
> Hi Amed,
>
> I am facing the same problem with UTF-8. Did you find a solution?
>
> On Jul 20, 9:37 am, Ahmed Shoeib 
> wrote:
>
> > Welcome all  ,
>
> > now i face a problem withUTF-8Encoding Problem
>
> > how to support it in GWT project 

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



Re: Error on execution

2010-08-03 Thread Diego Venuzka
Hi Gal!
Well, i'm using Netbeans to build my project, and i don't found the war
directory. On Eclipse i saw that, but on Netbeans, not
On the main.xml, in the tab "Compiler", all the lines are emptythis is
correct?
Thanks!

2010/8/3 Gal Dolber 

> Jeje, porque contestas en español si pregunta en ingles?
>
> Try to remove the generated folder from the war directory and recompile or
> re-run.
>
> 2010/8/2 leonardo britez 
>
> Fijate si le falta alguna libreria, ok?
>>
>>
>> --- El *lun, 8/2/10, Diego Venuzka * escribió:
>>
>>
>> De: Diego Venuzka 
>> Asunto: Error on execution
>> A: google-web-toolkit@googlegroups.com
>> Fecha: lunes, 2 de agosto de 2010, 09:11 pm
>>
>>
>> Hi!
>> I'm still trying to build my project, and after several searches, i found
>> a really nice project. After the adjustments, the system show a error
>> message (attached). How i solve this?
>> Thanks for all! :D
>>
>> --
>> Diego Venuzka
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email 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.
>>
>
>
>
> --
> http://ajax-development.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.
>



-- 
Diego Venuzka

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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-03 Thread Hilco Wijbenga
On 3 August 2010 14:23, abby  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.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-03 Thread abby
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.

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

On Aug 3, 4:20 pm, Dan Billings  wrote:
> The maven-gae-plugin mvp archetype generates a very informative
> pom.xml that might help you put it all together.
>
> I would encourage anyone who has it working to post their pom here!
>
> On Aug 3, 2:08 pm, Hilco Wijbenga  wrote:
>
>
>
> > On 3 August 2010 10:44, abby  wrote:
>
> > > Has anyone gotten these to work? I am surprised at the lack of support
> > > gwt has for maven. Looking at the mojo users group, it seems that gwt-
> > > maven developers are equally frustrated
>
> > [I don't know why anyone in 2010 still would want to reinvent the
> > wheel and expect everybody else to learn how to use their unusual
> > build system when Maven offers a reasonably well working alternative
> > that most people are already familiar with. Sadly, most people simply
> > do not appreciate the importance of the build step ("Do we really need
> > a separate build? Why can't we just build in Eclipse?"). :-) ]
>
> > > Can someone clarify if gwt-maven 1.3.1 fix by google magically makes
> > > maven play nicely? If so any documentation/howto's would be godsend.
>
> > I use Jetty instead of Tomcat but other than that: yes, it's possible.
> > It's not easy, though. Luckily, most of the hard work has been done
> > already by the good folk at Spring Framework's Roo. So what I did was:
> > install Roo, create a very basic GWT project (Hibernate, Hypersonic in
> > memory, one entity + GWT setup) and then remove any reference to Roo
> > and most of the Roo generated Java (use common sense and your own
> > judgement). That will leave you with an almost functional Maven
> > project (you should be able to take over from there).
>
> > This is not a perfect result but it will get you close enough for you
> > to fix the things that don't work. There are, however, still a few
> > caveats.
>
> > 1. You'll have to go out and find all the various repositories that
> > offer you the (GWT related) Maven artifacts that you need and put
> > those repositories in your settings.xml. This is especially true if
> > you want to use any of the GWT-* projects.
> > 2. Given the poor Maven support, the POMs Maven downloads will usually
> > not have any references to transitive dependencies. You'll have to add
> > required transitive dependencies to your project's pom.xml explicitly.
> > 3. Roo uses AspectJ. I left in AspectJ support because I thought it
> > might be useful later on but if you want to remove it, you'll have a
> > bit more work to do.
> > 4. Roo uses GWT 2.1.0-M2. I don't know if downgrading breaks anything.
>
> > The end result follows Maven directory rules (no silly 'war' directory
> > in the project root directory), it builds a proper WAR (although I
> > haven't tried running it), and if you leave "mvn gwt:run" running any
> > changes you make in Java or other files will be picked up
> > automagically.
>
> > P.S. Please note that the project built by Roo isn't bug free.
> > Strangely, if you create the same project but use Spring MVC (e.g.)
> > instead of GWT then it all works perfectly. This doesn't affect the
> > Maven setup, though.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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-03 Thread Dan Billings
The maven-gae-plugin mvp archetype generates a very informative
pom.xml that might help you put it all together.

I would encourage anyone who has it working to post their pom here!

On Aug 3, 2:08 pm, Hilco Wijbenga  wrote:
> On 3 August 2010 10:44, abby  wrote:
>
> > Has anyone gotten these to work? I am surprised at the lack of support
> > gwt has for maven. Looking at the mojo users group, it seems that gwt-
> > maven developers are equally frustrated
>
> [I don't know why anyone in 2010 still would want to reinvent the
> wheel and expect everybody else to learn how to use their unusual
> build system when Maven offers a reasonably well working alternative
> that most people are already familiar with. Sadly, most people simply
> do not appreciate the importance of the build step ("Do we really need
> a separate build? Why can't we just build in Eclipse?"). :-) ]
>
> > Can someone clarify if gwt-maven 1.3.1 fix by google magically makes
> > maven play nicely? If so any documentation/howto's would be godsend.
>
> I use Jetty instead of Tomcat but other than that: yes, it's possible.
> It's not easy, though. Luckily, most of the hard work has been done
> already by the good folk at Spring Framework's Roo. So what I did was:
> install Roo, create a very basic GWT project (Hibernate, Hypersonic in
> memory, one entity + GWT setup) and then remove any reference to Roo
> and most of the Roo generated Java (use common sense and your own
> judgement). That will leave you with an almost functional Maven
> project (you should be able to take over from there).
>
> This is not a perfect result but it will get you close enough for you
> to fix the things that don't work. There are, however, still a few
> caveats.
>
> 1. You'll have to go out and find all the various repositories that
> offer you the (GWT related) Maven artifacts that you need and put
> those repositories in your settings.xml. This is especially true if
> you want to use any of the GWT-* projects.
> 2. Given the poor Maven support, the POMs Maven downloads will usually
> not have any references to transitive dependencies. You'll have to add
> required transitive dependencies to your project's pom.xml explicitly.
> 3. Roo uses AspectJ. I left in AspectJ support because I thought it
> might be useful later on but if you want to remove it, you'll have a
> bit more work to do.
> 4. Roo uses GWT 2.1.0-M2. I don't know if downgrading breaks anything.
>
> The end result follows Maven directory rules (no silly 'war' directory
> in the project root directory), it builds a proper WAR (although I
> haven't tried running it), and if you leave "mvn gwt:run" running any
> changes you make in Java or other files will be picked up
> automagically.
>
> P.S. Please note that the project built by Roo isn't bug free.
> Strangely, if you create the same project but use Spring MVC (e.g.)
> instead of GWT then it all works perfectly. This doesn't affect the
> Maven setup, though.

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



Re: Error on execution

2010-08-03 Thread Gal Dolber
Jeje, porque contestas en español si pregunta en ingles?

Try to remove the generated folder from the war directory and recompile or
re-run.

2010/8/2 leonardo britez 

> Fijate si le falta alguna libreria, ok?
>
>
> --- El *lun, 8/2/10, Diego Venuzka * escribió:
>
>
> De: Diego Venuzka 
> Asunto: Error on execution
> A: google-web-toolkit@googlegroups.com
> Fecha: lunes, 2 de agosto de 2010, 09:11 pm
>
>
> Hi!
> I'm still trying to build my project, and after several searches, i found a
> really nice project. After the adjustments, the system show a error message
> (attached). How i solve this?
> Thanks for all! :D
>
> --
> Diego Venuzka
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email 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.
>



-- 
http://ajax-development.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: GWT 2.0, Maven, Google eclipse and TOMCAT, why didn't google build maven support?

2010-08-03 Thread Hilco Wijbenga
On 3 August 2010 10:44, abby  wrote:
> Has anyone gotten these to work? I am surprised at the lack of support
> gwt has for maven. Looking at the mojo users group, it seems that gwt-
> maven developers are equally frustrated

[I don't know why anyone in 2010 still would want to reinvent the
wheel and expect everybody else to learn how to use their unusual
build system when Maven offers a reasonably well working alternative
that most people are already familiar with. Sadly, most people simply
do not appreciate the importance of the build step ("Do we really need
a separate build? Why can't we just build in Eclipse?"). :-) ]

> Can someone clarify if gwt-maven 1.3.1 fix by google magically makes
> maven play nicely? If so any documentation/howto's would be godsend.

I use Jetty instead of Tomcat but other than that: yes, it's possible.
It's not easy, though. Luckily, most of the hard work has been done
already by the good folk at Spring Framework's Roo. So what I did was:
install Roo, create a very basic GWT project (Hibernate, Hypersonic in
memory, one entity + GWT setup) and then remove any reference to Roo
and most of the Roo generated Java (use common sense and your own
judgement). That will leave you with an almost functional Maven
project (you should be able to take over from there).

This is not a perfect result but it will get you close enough for you
to fix the things that don't work. There are, however, still a few
caveats.

1. You'll have to go out and find all the various repositories that
offer you the (GWT related) Maven artifacts that you need and put
those repositories in your settings.xml. This is especially true if
you want to use any of the GWT-* projects.
2. Given the poor Maven support, the POMs Maven downloads will usually
not have any references to transitive dependencies. You'll have to add
required transitive dependencies to your project's pom.xml explicitly.
3. Roo uses AspectJ. I left in AspectJ support because I thought it
might be useful later on but if you want to remove it, you'll have a
bit more work to do.
4. Roo uses GWT 2.1.0-M2. I don't know if downgrading breaks anything.

The end result follows Maven directory rules (no silly 'war' directory
in the project root directory), it builds a proper WAR (although I
haven't tried running it), and if you leave "mvn gwt:run" running any
changes you make in Java or other files will be picked up
automagically.

P.S. Please note that the project built by Roo isn't bug free.
Strangely, if you create the same project but use Spring MVC (e.g.)
instead of GWT then it all works perfectly. This doesn't affect the
Maven setup, though.

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



Re: Problem with UTF-8

2010-08-03 Thread Kiarash
Thank you David,

I just did what you wrote and deleted the Java file and paste the code
in the new Java file again and the same with the HTML file. I checked
the properties and both had UTF-8 already but without success. On
the browser the Swedish letters still replaced with other
characters... My browser settings is on UTF-8 too!

Do you have any other suggestions?

//Kiarash

On 3 Aug, 09:02, "david.herv...@gmail.com" 
wrote:
> Hi,
>
> Have you specified theUTF-8before creating file or just change it
> while your files were created ?
> I've just copy paste your Label in a project where .java file areUTF-8encoded 
> and everything works fine.
> Just check on one of your file the properties that is attributed to it
> (contextual menu on one of the incriminated java file): here you must
> haveUTF-8.
>
> On Aug 2, 9:38 pm, Kiarash  wrote:
>
> > I have a problem with Swedish letters coded in Java files as when I
> > make a Label with Swedish letters,
> > Label myLabel = new Label("här är något på Svenska");
> > the Swedish letters changes to strange characters in the HTML file.
>
> > I am using Eclipse.I made sure that:
> > the html file has 
> > the text file >properties areUTF-8
> > the >project >properties areUTF-8
> > the >edit >set encoding areUTF-8
>
> > Anybody facing the same problem or have a solution... thanx!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 2.0, Maven, Google eclipse and TOMCAT, why didn't google build maven support?

2010-08-03 Thread abby
Has anyone gotten these to work? I am surprised at the lack of support
gwt has for maven. Looking at the mojo users group, it seems that gwt-
maven developers are equally frustrated

http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users/browse_thread/thread/8ced89b3cb27cf3f

Can someone clarify if gwt-maven 1.3.1 fix by google magically makes
maven play nicely? If so any documentation/howto's would be godsend.

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: Client side code breakpoints stop to work after user was redirected to the guice servlet page, and the back to the GWT page.

2010-08-03 Thread Katharina Probst
Hi,

it looks indeed like this problem has to do with forwarding.  However, I'm
surprised that adding the gwt.codesvr parameter to the URL did not fix the
problem.

A couple of questions:
1. What browser are you using, and does this happen on multiple browsers?
(This could point to a browser-specific-plugin problem)
2. If you accept that GPE creates a new session, do you actually hit the
breakpoints?

Also, does the app work fine in compiled mode?  If you use something like
Firebug, do you see whether the whole GWT app is loaded again after the
redirect from the login?

kathrin

On Tue, Aug 3, 2010 at 7:58 AM, semirenko  wrote:

> Hi, guys!
>
> I am using GWT 2.0.4, Ubuntu 10.04, JDK 1.6.0_20.
> I am trying to implement Google OAuth in my GWT application. And it
> needs to specify callback URL, which will be used to store
> authorization params after user has logged in. In my case this
> callback url is a guice servlet, which retrieves needed auth key and
> redirects user back to my GWT application. In other words the whole
> process in hosted mode goes like this:
>
> 1. User opens my GWT application (breakpoints in server and client
> code both are triggered)
> 2. User tries to log in using his Google account. Application
> redirects him to the google authorization page.
> 3. After user has logged guice servlet retrieves auth key (breakpoints
> also are triggered)
> 4. Guice servlet redirects authorized user back to GWT applications
> page, where he clicked "Login" Starting from this moment only SERVER
> side breakpoints are triggered. Client side breakpoints  are still
> there, but nothing happens with them.
>
> In the last step I tried to redirect user to GWT page with  gwt
> codesvr parameter specified (?gwt.codesvr=127.0.0.1:9997), but it
> creates one more connection in Development Mode tab in Eclipse, which
> is not I really wanted.
>
> Any ideas?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email 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: Eclipse plugin - change text color in Development Mode View?

2010-08-03 Thread Katharina Probst
Hi Ross,

unfortunately, we don't currently have a way to do this.  I've created an
issue for it:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5184

kathrin

On Wed, Jul 28, 2010 at 10:47 PM, ross  wrote:

> Hi guys,
>
> This is a pretty lame question, but I cannot figure out if there is
> any way for me to customize the text color for the Development Mode
> View in the Eclipse plugin.  I am using Eclipse 3.5.2 with Google
> Plugin for Eclipse 1.3.3
>
> The reason that I care about this is that I use a High Contrast Dark
> theme on my Windows 7 box for development, and I am able
> (painstakingly) to get almost every editor and view in Eclipse to work
> with me.
>
> Note that an ERROR in the Debug View shows up as red (on my black
> background) and I can see it. However, INFO seems to be hardcoded to
> black and thus making me sad :(
>
> Is there any hope of getting a color settings page into the
> Preferences->Google settings?
>
> Thanks!
>
> Ross
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email 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: Firing native events in GWT?!

2010-08-03 Thread Fernando Barbat
I don't have the answer to your question but maybe this could help:
http://code.google.com/p/google-web-toolkit-incubator/wiki/GwtEventSystem

On 3 ago, 06:40, Blaze  wrote:
> Hi all,
>
> I have one question...how can we fire a native event in gwt...??
> by native event I think on let me say..keyboard key pressed...etc
>
> Tnx,

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: JSONP: Overlays with Optional Attributes (HostedModeException's), How?

2010-08-03 Thread lineman78
Reported in Feb, still listed as new, so make sure you vote:

http://code.google.com/p/google-web-toolkit/issues/detail?id=4646

On Aug 3, 1:07 am, Andrew Hughes  wrote:
> Fixed... but I think this stinks :)
>
>     public final Double getXMin(){
>         return isXMinNull() ? null : getXMinValue();
>     }
>
>     private final native boolean isXMinNull()/*-{
>         return this.xmin == null;
>     }-*/;
>
>     private final native double getXMinValue()/*-{
>         return this.xmin;
>     }-*/;
>
> On Tue, Aug 3, 2010 at 11:50 AM, Andrew Hughes  wrote:
> > Thank's again André :)
>
> > I've made some progress. you'r suggestion to use Integer and not
> > primitive int was bang on the mark! :) Unfornately autoboxing was masking
> > some of my problems - but now I have learnt the error's of my ways :)
>
> > Now I am happily using Integer with and without null values...
>
> >     public final native Integer getCode()/*-{
> >         return this.code;
> >     }-*/;
>
> > HOWEVER, Double && double won't work. Double works with null but not a
> > valid javascript Number... and vice-a-vera with double. I've looked at all
> > the documentation... going crazy to tell you the truth over such a small
> > simple issue.. but your helps been great THANK YOU! :)
>
> > --AH
>
> > 2010/8/3 André Moraes 
>
> >  1) This HostedModeException is very annoying. Null (or in JavaScript
> >>> terms 'undefined') is a valid value for my JavaScript/JSON attributes. I
> >>> want a way where if the darn thing is undefined return null... don't throw
> >>> a HostedModeException  - I also tried in jsni if(this.attribute){ return
> >>> this.attribute; } else { return undefined } but the exception is still
> >>> thrown.
>
> >> in your Jsni instead of
>
> >> if (this.attribute) { return this.attribute; } else { return undefined; }
>
> >> try
>
> >> if (this.attribute) { return this.attribute; } else { return null; }
>
> >> In javascript, null and undefined are two differente things. When
> >> something is null, this means that an variable is defined and its value is
> >> null; If something is undefined that means there is no variable with that
> >> name.
>
> >> the statment: "if (this.attribute)" works because when in a boolean
> >> context, undefined is evaluated to false. Just like C where 0 is false and
> >> everything else is true.
>
> >> To solve the int problem, try to change the return type to "Object" and
> >> then check if the returned value is null. There is no way to return "null"
> >> in java if the return type of a method is a "primitive int";
>
> >> I belive that since you are returning null from JSNI, the HostedMode will
> >> be smart enough to cast "javascript null" to "java null". :)
>
> >>> 2) There is no documentation about how this will behave in production?
> >>> Will it just return null? I don't know how I can ensure consistency 
> >>> between
> >>> dev and production modes :'(
>
> >> In production mode the javascript rules applies, so this probably will
> >> trigger an error in your browser. When using JSNI method is necessary to
> >> think in two different worlds (java and javascript). Check this link, maybe
> >> will help with the javascript type system:
> >>http://www.java2s.com/Tutorial/JavaScript/0100__Number-Data-Type/Prim...
>
> >> Hope it helps.
> >> --
> >> André Moraes
> >> Analista de Desenvolvimento de Sistemas
> >> andr...@gmail.com
> >>http://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.

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

2010-08-03 Thread lineman78
The purpose of clientbundle is to refer to files that are not deployed
on your server.  If you need to deploy the resource for other reasons
you will not want to use clientbundle.

On Aug 3, 9:37 am, Olivier  wrote:
> Hi,
>
> don't make a reference to something in the WAR folder, put your image
> at the same level as the clientbundle for example.
> Or create a resources folder, but you will have to reference your
> image like this
> @source(my/package/with/dot/img.gif)
>
> regards
>
> Olivier
>
> On Aug 3, 1:09 pm, "avi.yaf...@gmail.com" 
> wrote:
>
> > Hi
>
> > i need to find a way to point out the the @Source location outside the
> > package com. envvoirment.
> > i want to create 'images' directory in 'war' directory and write
> > {
> > @Source (/war/images/img.gif)
> > ImageResource img()
>
> > }
>
> > but when i write this i get an error "Resource 'img.gif' is missing
> > expected.. "
>
> > is it possible to this?
>
> > Thanks,Avi

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



What is the current equivalent of MenuBar.doItemAction

2010-08-03 Thread David Goodenough
I have some old GWT code (from abount 1.4) which invoked doItemAction
on a Menu entry with a submenu, in order to show the submenu 
programatically.  What is the up to date equivalent (i.e. 2.0.4)?

Thanks,

David

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

2010-08-03 Thread Olivier
Hi,

don't make a reference to something in the WAR folder, put your image
at the same level as the clientbundle for example.
Or create a resources folder, but you will have to reference your
image like this
@source(my/package/with/dot/img.gif)

regards

Olivier

On Aug 3, 1:09 pm, "avi.yaf...@gmail.com" 
wrote:
> Hi
>
> i need to find a way to point out the the @Source location outside the
> package com. envvoirment.
> i want to create 'images' directory in 'war' directory and write
> {
> @Source (/war/images/img.gif)
> ImageResource img()
>
> }
>
> but when i write this i get an error "Resource 'img.gif' is missing
> expected.. "
>
> is it possible to this?
>
> Thanks,Avi

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



setInnerHTML + Event-Handling

2010-08-03 Thread David
Hi everybody,

I have trouble building a custom widget/panel.

Custom Element: MyElement extends Anchor implements ClickListener
Custom Panel: MyPanel extends ComplexPanel

Now what I want is adding a mixture of plain text and custom elements
to my panel, in the end the structure should be the following:

(MyPanel)
...some text
... (MyElement)
...some text
... (MyElement)
...


I tried to build the content as a html string and apply it with
DOM.setInnerHTML(content). It looks pretty well but removes event
handling.

(MyPanel)
... (MyElement)
... (MyElement)
...


...works without problems.

Any suggestions? Thanks for you 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: How to disable menu items?

2010-08-03 Thread Alan Hadsell


On Aug 3, 10:28 am, Magnus  wrote:
> Thank you,
>
> but shouldn't GWT itself provide a mechanism to disable menu items?
>
> Using an additional library is not the problem for me, but using an
> additional library because of such a small functionality that should
> be present in any menu implementation is a problem for me. As a
> consequence I would end up in about a dozent libs...
>
> Isn't there another solution?
>
> Why is this missing?
>

See issue 1649: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=1649
.  As you can see, it's an "accepted" issue, but apparently not high-
enough priority to get fixed yet.  Star the issue if it's important to
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.



Jetty: Form too large in dev mode

2010-08-03 Thread francescoNemesi
Hello there,

I get the error below "Form too large280504>20" in dev mode. I
looked for this error on Google and found that this problem can be
fixed by setting the

org.mortbay.http.HttpRequest.maxFormContentSize

property to a value higher than the default (20).

How can I do this in the GWT dev mode Jetty instance?

Thanks for your help,
Francesco

java.lang.IllegalStateException: Form too large280504>20
at org.mortbay.jetty.Request.extractParameters(Request.java:1404)
at org.mortbay.jetty.Request.getParameter(Request.java:749)
at
com.fusioncharts.exporter.FusionChartsExportHelper.parseExportRequestStream(FusionChartsExportHelper.java:
182)
at org.apache.jsp.FCExporter_jsp._jspService(FCExporter_jsp.java:176)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
324)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
362)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
49)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
505)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
395)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:488)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Have one of the edge widget of a DockLayoutPanel overflow into the center

2010-08-03 Thread Philippe Beaudoin
Yes, I found a solution which I posted on Stackoverflow. Forgot to
post it here, sorry. Here my SO post:

- - - - -

I found my answer. The key is to use a LayoutPanel instead of the
DockLayoutPanel. For example:










Would make the nav bar bleed 1 pixel into the central container. The
order is important here since it guarantees that the nav bar will
overwrite the content of the central container.

- - - - -

For reference:
http://stackoverflow.com/questions/3200108/how-can-you-make-a-region-of-a-gwt-docklayoutpanel-bleed-into-another

Cheers,

Philippe


On Tue, Aug 3, 2010 at 2:04 AM, Nikos Dimitrakopoulos
 wrote:
> Hey there Philippe,
>
> any solutions on this? Could you post the link to the SO question?
>
> On Jul 8, 6:46 am, PhilBeaudoin  wrote:
>> I use a DockLayoutPanel to split my screen in a left navigation column
>> and a center area. My problem is that the app skinning requires that a
>> selected tab in the navigation column "overwrite" a 1 pixel wide
>> column of the central area. Is there a way to setup my DockLayoutPanel
>> to do this?
>>
>> (Cross-posted to Stack Overflow.)
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: How to disable menu items?

2010-08-03 Thread Rob Coops
So what you are saying is that you need a way for the menu to detect which
user/user group is looking at the menu.

As you are already saying you have user groups it should not be to hard to
inform the menu about the user group that is trying to open it. Once the
menu knows which group is trying to open it it can use internal hard
coded or externally read logic to decide what fields to render and how to
render them, what events to attach to the elements and so on.

I would simply hand the menu a variable/object that identifies the user
group accessing it. Then the menu logic can deal with the rest. I would
though use an external location to store the logic for the menu so you can
easily update it should you need to add a new group in the future.

I hope that helps a bit...



On Tue, Aug 3, 2010 at 4:28 PM, Magnus  wrote:

> Thank you,
>
> but shouldn't GWT itself provide a mechanism to disable menu items?
>
> Using an additional library is not the problem for me, but using an
> additional library because of such a small functionality that should
> be present in any menu implementation is a problem for me. As a
> consequence I would end up in about a dozent libs...
>
> Isn't there another solution?
>
> Why is this missing?
>
> Thanks
> Magnus
>
> On Aug 1, 10:56 pm, Alan Hadsell  wrote:
> > On Aug 1, 12:25 pm, Magnus  wrote:
> >
> > > Hi,
> >
> > > I have a MenuBar with MenuItems, which I would like to selectively
> > > enable for defined user groups. But how can I enable/disable menu
> > > items?
> >
> > Take a look at gwtlib:http://code.google.com/p/gwtlib/.  It has
> > menubars
> > and menu items that can be enabled and disabled.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: How to disable menu items?

2010-08-03 Thread Magnus
Thank you,

but shouldn't GWT itself provide a mechanism to disable menu items?

Using an additional library is not the problem for me, but using an
additional library because of such a small functionality that should
be present in any menu implementation is a problem for me. As a
consequence I would end up in about a dozent libs...

Isn't there another solution?

Why is this missing?

Thanks
Magnus

On Aug 1, 10:56 pm, Alan Hadsell  wrote:
> On Aug 1, 12:25 pm, Magnus  wrote:
>
> > Hi,
>
> > I have a MenuBar with MenuItems, which I would like to selectively
> > enable for defined user groups. But how can I enable/disable menu
> > items?
>
> Take a look at gwtlib:http://code.google.com/p/gwtlib/.  It has
> menubars
> and menu items that can be enabled and disabled.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: IncompatibleRemoteServiceException caused by different RPC Protocol Versions (server: 5, client 6)

2010-08-03 Thread Jason482
PEBKAC. Turns out there was a lingering gwt-servlet-2.0.3 jar on my
classpath. Hopefully it's just as simple if anyone else runs into an
issue like this.


On Aug 2, 12:23 pm, Jason482  wrote:
> I'm still struggling with this error. Can anyone provide any insight?
> I've looked at the code in ClientSerializationStreamReader and
> ServerSerializationStreamReader, and it looks like they should be in
> sync in regards to RPC version numbers. I'm at a loss as to what is
> causing the issue.
>
> On Jul 29, 12:42 pm, Jason482  wrote:
>
>
>
> > I'm getting pretty much the same error, except in reverse:
>
> > com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
> > This application is out of date, please click the refresh button on
> > your browser. ( Expecting version 6 from server, got 5. )
>
> > Have you been able to get around this using 2.1.0.M2?
>
> > On Jul 21, 6:54 am, macgyver  wrote:
>
> > > Hi folks,
>
> > > i just upgraded one of my projects from 2.0.4 to 2.1.0.M2.
> > > The whole reason was to use the new Data Presentation Widgets, which
> > > indeed are very cool and working.
> > > On the other hand I went into problems on my RPC calls. It seems like
> > > the protocol for this has changed: from version 5 up to 6.
> > > While debugging I got deeper into the GWT code and so found the
> > > corresponding lines.
> > > As you can see in the stack trace below, the exception text tells me
> > > to reload the browser, but this does'nt help.
> > > May anyone know why the server (on jetty) is still using version 5? Or
> > > is there another way to force the server/client to use a specific
> > > version?
> > > I would be very glad if anybody can tell.
>
> > > [WARN] dispatchService: An IncompatibleRemoteServiceException was
> > > thrown while processing this call.
> > > com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
> > > This application is out of date, please click the refresh button on
> > > your browser. ( Expecting version 5 from client, got 6. )
> > >         at
> > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepare
> > >  ­­ToRead(ServerSerializationStreamReader.java:
> > > 432)
> > >         at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:236)
> > >         at
> > > com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi
> > >  ­­ceServlet.java:
> > > 186)
> > >         at
> > > com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi
> > >  ­­ceServlet.java:
> > > 224)
> > >         at
> > > com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract
> > >  ­­RemoteServiceServlet.java:
> > > 62)
> > >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> > >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> > >         at 
> > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> > > 487)
> > >         at
> > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
> > > 362)
> > >         at
> > > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
> > > 216)
> > >         at
> > > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
> > > 181)
> > >         at
> > > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> > > 729)
> > >         at 
> > > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> > > 405)
> > >         at
> > > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> > > 152)
> > >         at
> > > org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
> > > 49)
> > >         at
> > > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> > > 152)
> > >         at org.mortbay.jetty.Server.handle(Server.java:324)
> > >         at 
> > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> > > 505)
> > >         at org.mortbay.jetty.HttpConnection
> > > $RequestHandler.content(HttpConnection.java:843)
> > >         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
> > >         at 
> > > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> > >         at 
> > > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> > >         at
> > > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
> > > 395)
> > >         at org.mortbay.thread.QueuedThreadPool
> > > $PoolThread.run(QueuedThreadPool.java:488)- Hide quoted text -
>
> > - Show quoted text -

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



Re: JSONP: Overlays with Optional Attributes (HostedModeException's), How?

2010-08-03 Thread André Moraes
At least this is private, so nobody will see the hack (except you)

:)

-- 
André Moraes
Analista de Desenvolvimento de Sistemas
andr...@gmail.com
http://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: Where can I put a File to be read/write from RPC Servlet ?

2010-08-03 Thread Jose Luis Estrella Campaña
Wow, Thomas...

That sounds amazing. But does it work inside another Container's
Context like JBoss for example ? But in general terms it does look
pretty much amazing.

Thanks for your comments and suggestions,

Sincerely,

Jose.

On Aug 2, 2:11 pm, Thomas Dvornik  wrote:
> You are using appengine? Have your tried using the Blobstore?
>
> http://www.google.com/url?sa=D&q=http://code.google.com/appengine/doc...
>
> Tom
>
> On Aug 2, 11:20 am, Jose Luis Estrella Campaña 
> wrote:
>
>
>
> > H, Well that indeed seems to be the problem, however I've solved
> > my problem by embedding SQLite inside my ear file. had to go in a
> > different direction because I was wasting a lot of time. SO, I haven't
> > looked any further as of why I wasn't able to read the file.
>
> > Thanks anyways, and let me know If you find the answer. Oh, and yeah,
> > it seems that the framework won't allow that kind of read.
>
> > Best Regards,
>
> > Jose.
>
> > On Aug 2, 12:17 am, Sripathi Krishnan 
> > wrote:
>
> > > Do you have google app engine enabled? It is a setting in Eclipse.
>
> > > Google App Engine doesn't allow you to read from the file system - and
> > > perhaps that may be your issue.
>
> > > --Sri
>
> > > 2010/7/28 Jose Luis Estrella Campaña 
>
> > > > Katharina,
>
> > > > Hi, and... No, I have not solved it. apparently the file and/or
> > > > directory restrictions are ok, at least according to what I have seen,
> > > > I wonder If there's a problem with the permissions a non-administrator
> > > > user has in Windows vista, but otherwise the file seems to be ok.
> > > > Frankly I don't know what else to do.
>
> > > > Help me Katharina,
>
> > > > Sincerely,
>
> > > > Jose
>
> > > > On Jul 28, 7:47 am, Katharina Probst  wrote:
> > > > > Did you get this solved? It doesn't look to me like it has anything 
> > > > > to do
> > > > > with GWT, but it's purely a file permission thing.  Have you set the 
> > > > > file
> > > > > permissions on your file properly?  Is your server-side directory 
> > > > > somehow
> > > > > read-restricted?
>
> > > > > On Tue, Jul 27, 2010 at 4:25 PM, Jose Luis Estrella Campaña <
>
> > > > > jlecamp...@gmail.com> wrote:
> > > > > > Hello sir !
>
> > > > > > I have already tried all the ways I mentioned previously, including
> > > > > > the ones you suggested, but the problem remains. It is obviously
> > > > > > according to the stack trace launched by the Exception some sort of
> > > > > > File permission error. I would like to know what can I do about it ?
> > > > > > can you help me a little further, I'm lost.
>
> > > > > > Good luck,
>
> > > > > > Jose.
>
> > > > > > On Jul 27, 3:02 pm, skippy  wrote:
> > > > > > > I would have tried your last example.
> > > > > > > It look like a access problem to the file.  follow the access 
> > > > > > > denied
> > > > > > > message.  See what that get you.
> > > > > > > Sorry, I know how it does.
>
> > > > > > > On Jul 27, 2:36 pm, Jose Luis Estrella Campaña 
> > > > > > > 
> > > > > > > wrote:
>
> > > > > > > > Hi skippy !
>
> > > > > > > > I have tried your suggestion but unfortunately it did not work 
> > > > > > > > :(
>
> > > > > > > > I changed the java APIs I used this time but the result is the
> > > > same:
> > > > > > > > ...
> > > > > > > >               try {
> > > > > > > >                         File f = new File("xml/users.xml");
> > > > > > > >                         FileReader reader = new FileReader(f);
> > > > > > > >                         BufferedReader buffer = new
> > > > > > BufferedReader(reader);
> > > > > > > >                         buffer.readLine();
> > > > > > > >                         // Read a line of text
> > > > > > > >                         System.out.println(buffer.readLine());
> > > > > > > >                 }
> > > > > > > > 
>
> > > > > > > > The generated exception is:
>
> > > > > > > > Caused by: java.security.AccessControlException: access denied
> > > > > > > > (java.io.FilePermission \users.xml read)
>
> > > > > > > > also, If I try it like this: /xml/users.xml with the forward 
> > > > > > > > slash
> > > > a
> > > > > > > > the beginning it goes for the root of the system which is C:/ 
> > > > > > > > and
> > > > it
> > > > > > > > still does not work, which I find weird because that's outside 
> > > > > > > > the
> > > > > > > > application's context, right ?
>
> > > > > > > > Anyways, please help me Skippy.
>
> > > > > > > > Sincerely,
>
> > > > > > > > Jose.
>
> > > > > > > > On Jul 27, 2:13 pm, skippy  wrote:
>
> > > > > > > > > If that does not work, ping me again and I will provide a code
> > > > > > sample.
>
> > > > > > > > > On Jul 27, 2:09 pm, skippy  wrote:
>
> > > > > > > > > > I would put the file in the WEB-INF/XML/
> > > > > > > > > > change the path to the file to xml/users.xml or 
> > > > > > > > > > /xml/user.xml
>
> > > > > > > > > > On Jul 27, 1:57 pm, Jose Luis Estrella Campaña <
> > > > > > jlecamp...@gmail.com>
> > > > > > > > > > wrote:
>
> > > > > > > > > > > Hello dan

Re: Error on execution

2010-08-03 Thread leonardo britez
Fijate si le falta alguna libreria, ok?


--- El lun, 8/2/10, Diego Venuzka  escribió:

De: Diego Venuzka 
Asunto: Error on execution
A: google-web-toolkit@googlegroups.com
Fecha: lunes, 2 de agosto de 2010, 09:11 pm

Hi!
I'm still trying to build my project, and after several searches, i found a 
really nice project. After the adjustments, the system show a error message 
(attached). How i solve this?
Thanks for all! :D


-- 
Diego Venuzka




-- 

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.

To post to this group, send email to google-web-tool...@googlegroups.com.

To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.


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






  

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



Re: Browser Event Propagation

2010-08-03 Thread magat
Thanks for your answers, I'll be testing this on IE and report my
conclusions here.

On 3 août, 00:01, lineman78  wrote:
> event.preventDefault works in both firefox and IE if you use the
> modern GWT event handling(handler registration method) instead of the
> DOM event handling (pre 1.6).
>
> On Aug 2, 3:04 pm, Falcon  wrote:
>
>
>
> > (You can also use event.returnValue = false, at least for IE.)
>
> > On Aug 2, 3:50 pm, Falcon  wrote:
>
> > > In browsers that don't support the W3C event model, you'll need to
> > > return false instead.
>
> > > (Also, to be clear, event.preventDefault() prevents the default
> > > browser action from happening, e.g. following a link that was clicked.
> > > event.stopPropagation() is what stops the event from bubbling through
> > > the DOM tree.)
>
> > > On Aug 2, 9:43 am, magat  wrote:
>
> > > > Hi,
>
> > > > I'm currently trying to set up a contextual menu on my gwt app, that
> > > > is open a MenuBar in a PopupPanel on right-click. Using
> > > > event.preventDefault() seems to stop the event propagation in my
> > > > browser (Firefox 3.6) : my menu is displayed, not the browser one.
>
> > > > I'm wondering if this behaviour was browser-specific ?  I can't help
> > > > but thinking that the event propagation may be different on another
> > > > browser. I couldn't find a clear answer in the doc, but maybe I missed
> > > > something.
>
> > > > Thanks for reading this post !
>
> > > > Mathieu AGAR

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



SplitLayoutPanel.animate()

2010-08-03 Thread Ahmed Ashour
Hi all,

I am trying to have an animated effect that simulates 'maximization'
with SplitLayoutPanel, in which clicking on the 'north' widget will
maximizes it at the expense of 'center' and 'south'

.animate() works only for the first time of showing the widgets, but
is ignored afterwords.

Even overriding animate(int, AnimationCallback) with a hardcoded value
does not have an effect.

Can .animate() be used for that scenario?

Thanks a lot for your help.

public void onModuleLoad() {
final SplitLayoutPanel panel = new SplitLayoutPanel() {
@Override
public void animate(int duration, AnimationCallback 
callback) {
super.animate(5000, callback);
}
};
final HTML center = new HTML("Center");
final HTML south = new HTML("South");
final Button button = new Button("Hello");

button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
panel.remove(south);
panel.remove(center);
panel.remove(button);
panel.add(button);
panel.animate(5000);
}
});
panel.addNorth(button, 50);
panel.addSouth(south, 50);
panel.add(center);
RootLayoutPanel.get().add(panel);
}

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



JSONP callback with unique callback names?

2010-08-03 Thread toxic iguana
Hello forum!

A couple o' questions:

Q1) How to cancel JS Timer?

Given that I have very basic expertise in JS, I am not sure on how to
cancel a scheduled timer in Javascript? I ask this because, I am
creating an application which is based on the 'Stockwatcher' example
using JSONP async call back mechanism. i.e you start a timer to wait
for response from a remote server right before you attach the script
tag, and then fetch/execute the URL and hope to get response from the
server asynchronously.  I understand that there are two possible
outcomes now:

- The server responds in time and hence the callback function is
invoked correctly with some information through HTTP to client to
handle and parse.

or

- The server fails to respond in time and hence timer expires.

Seconds case is easy to handle since flow of control is pretty
straightforward. Now what about case one's timer? What if I don't want
to bother handling timer expiration in case when valid data is
returned? Is there a way I can preempt the timer from expiring and
kill it every time I get a valid response instead of letting it die of
natural causes? I tried cleartimeout(t); but doesn't seem to work :(

Q2) Why use unique function callback names for JSONP?

On a similar note, I've noticed that every manual and tutorial on
JSONP or GWT/JSONP talks about using unique callback names for
fetching data back-to-back. Consider a simple example:

d1, d2 and d3 are 3 daemons that poll for certain type of data
repeatedly from a server. Let's say d1 polls for temperature, d2 polls
for voltage and d3 polls for current. On the server side, JSON objects
can be fetched appropriately by wrapping callback function names
dynamically and returning it to client.

My very first implementation of my GWT application did exactly this -
I used a ever incrementing integer counter starting at 0 appended with
daemon name as 'unique' callback function name for every data server
call. eg: I poll for temperature data every 10 seconds by using return
callback function names 0d1, 1d1, 2d1 etc, voltage data is retrieved
by using 0d2, 1d2, 2d2 etc and current as 0d3, 1d3, 2d3 etc. This
works perfectly fine. However, I then thought as to why it is
necessary to have unique callback names for data polled by the 'same'
daemon over and over again. That is why not I just use d0 for
temperature, d1 for voltage and d3 for current all the way through my
polling cycles instead of appending counter value to make multiple
unique callbacks within every daemon? Especially because I am not
expecting parallel results back from same daemon at any given time. My
cycle is pretty much: ask for data, start timer, get data (either
valid data before timer expires, or, NULL if timer expires). Once I
handle the return data, I call my function to go fetch info. again,
hence making it a sequential access loop. This is true for every
daemon. Are unique callback function names in this case necessary?

Extra information:

My motivation to use same callback function names within every daemon
arises due to the fact that I have a set of processes running on my
server side which already output JSON objects padded with callback
names as in-memory (cache) files that look like -
callback123([JSON]);
And since the format is ready-to-eat by the GWT client (if there is a
corresponding callback123 JS callback function defined that is), I
would hate to do any cgi-bin processing on the server side to take
JSON objects every time and pad them with different callback function
names every single time for the same purpose (temperature, voltage or
current polling). Also since cgi scripts are expensive on resources, I
opt not to do any processing on the JSON files. I cannot have
additional servlets or other containers installed on my 'embedded'
server and hence I am limited to what it has to offer - a basic web
server with a web-root and cgi-bin. I am able to create a symbolic
link to /tmp (tmpfs) in my WEB-ROOT. /tmp is where all the JSON files
are populated periodically. These are then read like regular text over
HTTP from my client browser code. To my surprise it worked
beautifully, however I can't seem to get past the first callback! I
ruled out a browser caching issue too. Help!

Thanks!
Iggy

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



Uncaught exception escaped

2010-08-03 Thread Santosh kumar
Hi,

This is the error which i am getting frequently when i click on the button
widget but second time when i click this button its working.
please give me some idea to fix this error.

Uncaught exception escaped
java.lang.AssertionError: A widget that has an existing parent widget may
not be added to the detach list


-- 
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 + Hibernate + MySQL + Tomcat + Ant + Log4j + SVN; is this possible all together?

2010-08-03 Thread Sanky
Hello,
I am learning GWT for a while. I tried tutorials of GWT. I learnt
Hibernate as well. Now I am going to work on a real application. It is
divided into 2 parts: Standalone Desktop mode(without internet
connection) and web mode(with internet connection, front end will
remain same as for Desktop mode, with an added button nd some message
boxes).
This project is connected to other project so i have to use the same
configuration (if possible to use this all) used for that main
project, the configuration includes:
GWT - for front end and business logic
Hibernate - Database connectivity
MySQL - as a database
Ant - war built tool
Tomcat - Application server
log4j - for logging
SVN - repository

My query is ' can I use this configuration for this project?
Desktop mode has no Database connectivity, but use xml to store data.
Do i need to use Tomcat for desktop mode?
What other things I need to be careful with?

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



Client side code breakpoints stop to work after user was redirected to the guice servlet page, and the back to the GWT page.

2010-08-03 Thread semirenko
Hi, guys!

I am using GWT 2.0.4, Ubuntu 10.04, JDK 1.6.0_20.
I am trying to implement Google OAuth in my GWT application. And it
needs to specify callback URL, which will be used to store
authorization params after user has logged in. In my case this
callback url is a guice servlet, which retrieves needed auth key and
redirects user back to my GWT application. In other words the whole
process in hosted mode goes like this:

1. User opens my GWT application (breakpoints in server and client
code both are triggered)
2. User tries to log in using his Google account. Application
redirects him to the google authorization page.
3. After user has logged guice servlet retrieves auth key (breakpoints
also are triggered)
4. Guice servlet redirects authorized user back to GWT applications
page, where he clicked "Login" Starting from this moment only SERVER
side breakpoints are triggered. Client side breakpoints  are still
there, but nothing happens with them.

In the last step I tried to redirect user to GWT page with  gwt
codesvr parameter specified (?gwt.codesvr=127.0.0.1:9997), but it
creates one more connection in Development Mode tab in Eclipse, which
is not I really wanted.

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Have one of the edge widget of a DockLayoutPanel overflow into the center

2010-08-03 Thread Nikos Dimitrakopoulos
Hey there Philippe,

any solutions on this? Could you post the link to the SO question?

On Jul 8, 6:46 am, PhilBeaudoin  wrote:
> I use a DockLayoutPanel to split my screen in a left navigation column
> and a center area. My problem is that the app skinning requires that a
> selected tab in the navigation column "overwrite" a 1 pixel wide
> column of the central area. Is there a way to setup my DockLayoutPanel
> to do this?
>
> (Cross-posted to Stack Overflow.)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 build a rules-based form controller for a dyn. form in GWT

2010-08-03 Thread A.Augustini
Currently learning GWT, and I still cannot imagine how to build a
*rule-based* controller for a dynamically composed form -- preferably
a multipage one, and -- due to GWT concepts -- obviously running on
the client side in JavaScript.

The idea is to have a multi-sections/multi-tabs registration form
that:
(a) shows its questions according to "question specs" from a
 backend database,
(b) gives the users instant input validation feedback via locally
 centralized validation rules base,
(c) controls the "questionary behaviour" after some locally
 centralized "fill out" rules, e.g.,

  * "When user fills out InputField A, hide section/tab C".
  * "When user checks CheckBox B, also check boxes Y
 and Z automatically".
 * "When user selects D,E and F then show {widget} G".
 * ...

(d) finally submits all the collected data (from each form page/tab)
 to a server-side service (i.e. 'submit' button triggers RPC).

The main point is to optimally have all the validation, filter,
action/
behaviour, etc. rules centralized at one place -- hence the rule-based
approach.

The main issues are:
1. Which way to go for realizing such a "JavaScript Rule Engine"
solution in GWT?

2. Does there already exist a GWT framework or Composite targeting
*rule-based* form controllers for the client side?

Hope some more experienced GWT programmers can help me further on
this topic.

Kindly regards,
  Alessandro

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 build a rules-based form controller for a dyn. form in GWT

2010-08-03 Thread A.Augustini
Currently learning GWT, and I still cannot imagine how to build a
*rule-based* controller for a dynamically composed form -- preferably
a multipage one, and -- due to GWT concepts -- obviously running on
the client side in JavaScript.

The idea is to have a multi-sections/multi-tabs registration form
that
(a) shows its questions according to "question specs" from a backend
database,
(b) gives the users instant input validation feedback via local-
centralized validation
 rules base,
(c) controls the "questionary behaviour" after some local-centralized
"fill out" rules,
e.g.,
 * "When user fills out InputField A, hide section/tab C".
 * "When user checks CheckBox B, also check boxes Y,Z
automatically".
 * "When user selects D,E and F then show {widget} G".
 * etc.

(d) finally submits all the collected data (from each form page/tab)
to a server-side
 service (i.e. 'submit' button on last form page/section triggers
RPC).

The main point is to optimally have all the validation, filter, action/
behaviour, etc. rules centralized at one place -- hence the rule-based
approach.

The main issues are:
1. Which way to go for realizing such a "JavaScript Rule Engine"
solution in GWT?

2. Does there already exist a GWT framework or Composite targeting
*rule-based*
   form controllers for the client side?

Hope some more experienced GWT programmers can help me further on this
topic.

Kindly regards,
  Alessandro

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



using ClientBundle

2010-08-03 Thread avi.yaf...@gmail.com
Hi

i need to find a way to point out the the @Source location outside the
package com. envvoirment.
i want to create 'images' directory in 'war' directory and write
{
@Source (/war/images/img.gif)
ImageResource img()
}

but when i write this i get an error "Resource 'img.gif' is missing
expected.. "

is it possible to this?

Thanks,Avi

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Firing native events in GWT?!

2010-08-03 Thread Blagoja Chavkoski
Hmm..this I didnt think about:).. it might work...
tnx..have to try it..:)

On Tue, Aug 3, 2010 at 11:58 AM, Rob Coops  wrote:

> Ah, ok fair enough apperantly (google search helps a lot :) you should be
> able to use:
>
> DomEvent.fireEvent(Document.get().createXXXEvent, handlerSource);
>
>
>
> On Tue, Aug 3, 2010 at 11:52 AM, Blagoja Chavkoski wrote:
>
>> Hi,
>> first tnx for the rpl..
>>
>> yes thats ok...also would be ok to fire onNativeEvent in widget
>> method...but I have more components(widgets) related to that event..and i
>> dont like to keep instance of all of them and fire the event one by
>> one...for each...
>> In gwt 1.6 there ware metods in Document.firexxxnativeEvent...but after
>> 2.0 there not inside...and i dont no how can be done...
>>
>> On Tue, Aug 3, 2010 at 11:45 AM, Rob Coops  wrote:
>>
>>> No idea if it is the right thing to do but you could just call the
>>> onKeyPressed method of the widget in quesion can't you?
>>>
>>> On Tue, Aug 3, 2010 at 11:40 AM, Blaze  wrote:
>>>
 Hi all,

 I have one question...how can we fire a native event in gwt...??
 by native event I think on let me say..keyboard key pressed...etc

 Tnx,

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


>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email 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: Firing native events in GWT?!

2010-08-03 Thread Rob Coops
Ah, ok fair enough apperantly (google search helps a lot :) you should be
able to use:

DomEvent.fireEvent(Document.get().createXXXEvent, handlerSource);



On Tue, Aug 3, 2010 at 11:52 AM, Blagoja Chavkoski wrote:

> Hi,
> first tnx for the rpl..
>
> yes thats ok...also would be ok to fire onNativeEvent in widget
> method...but I have more components(widgets) related to that event..and i
> dont like to keep instance of all of them and fire the event one by
> one...for each...
> In gwt 1.6 there ware metods in Document.firexxxnativeEvent...but after 2.0
> there not inside...and i dont no how can be done...
>
> On Tue, Aug 3, 2010 at 11:45 AM, Rob Coops  wrote:
>
>> No idea if it is the right thing to do but you could just call the
>> onKeyPressed method of the widget in quesion can't you?
>>
>> On Tue, Aug 3, 2010 at 11:40 AM, Blaze  wrote:
>>
>>> Hi all,
>>>
>>> I have one question...how can we fire a native event in gwt...??
>>> by native event I think on let me say..keyboard key pressed...etc
>>>
>>> Tnx,
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email 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: Firing native events in GWT?!

2010-08-03 Thread Blagoja Chavkoski
Hi,
first tnx for the rpl..

yes thats ok...also would be ok to fire onNativeEvent in widget method...but
I have more components(widgets) related to that event..and i dont like to
keep instance of all of them and fire the event one by one...for each...
In gwt 1.6 there ware metods in Document.firexxxnativeEvent...but after 2.0
there not inside...and i dont no how can be done...

On Tue, Aug 3, 2010 at 11:45 AM, Rob Coops  wrote:

> No idea if it is the right thing to do but you could just call the
> onKeyPressed method of the widget in quesion can't you?
>
> On Tue, Aug 3, 2010 at 11:40 AM, Blaze  wrote:
>
>> Hi all,
>>
>> I have one question...how can we fire a native event in gwt...??
>> by native event I think on let me say..keyboard key pressed...etc
>>
>> Tnx,
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email 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: Firing native events in GWT?!

2010-08-03 Thread Rob Coops
No idea if it is the right thing to do but you could just call the
onKeyPressed method of the widget in quesion can't you?

On Tue, Aug 3, 2010 at 11:40 AM, Blaze  wrote:

> Hi all,
>
> I have one question...how can we fire a native event in gwt...??
> by native event I think on let me say..keyboard key pressed...etc
>
> Tnx,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email 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.



Firing native events in GWT?!

2010-08-03 Thread Blaze
Hi all,

I have one question...how can we fire a native event in gwt...??
by native event I think on let me say..keyboard key pressed...etc

Tnx,

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 evaluation: How to realize this specific app scenario? (v.2)

2010-08-03 Thread A.Augustini
Hi Thomas,

thank you very much for your explanations.
That's exactly what I was looking for.

Best regards, Alessandro


On 2 Aug., 20:52, Thomas Dvornik  wrote:
> Hey Alessandro,
>
> I'm not a GWT expert, but hopefully this will help.
>
> Your right about the look of the URL, and that would be one way to do
> it. Your GWT entry-point (http:///) would process the token,
> which is everything after the #. So if you had #comp1;comp2;comp3;
> then your entry-point class would instantiate whatever it needs to and
> display the correct components.
>
> That should answer your second question as well, if I understood it
> correctly. The entry-point class "listens" on the base URL, and can
> call different servlets. Technically, you can have however many
> servlets you want to process the Ajax request.
>
> There are some other options too.
>
> 1. A GWT app can have multiple entry points. So http:///comp1/
> and http:///comp2/ can be completely different entry points
> in the same project.
>
> 2. You could have multiple GWT instances running. In other words, you
> can have separate GWT projects for different components or apps.
>
> Tom
>
> On Aug 2, 3:02 am, "A.Augustini" 
> wrote:
>
> > Really no brief suggestions to these basic topics here???
>
> > I'd really appreciate any helping hints.
>
> > Best regards,
> >   Alessandro
>
> > On 30 Jul., 19:54, "A.Augustini" 
> > wrote:
>
> > > @Sebastian: Thank you very much for the quick response.
>
> > > The link to the "Gears binding for GWT" was very helpful and just
> > > what I was looking for.
>
> > > Concerning the issue with the bookmarkable URLs (traditional vs.
> > > Ajax-ified URLs), I'm still not quite sure if I totally understood
> > > the "History" mechanism for my scenario:
>
> > > Suppose the AdminConsole's main screen is a 'HorizontalSplitPanel"
> > > showing a 'VerticalPanel" with multiple "available web sites" links
> > > to the left and a corresp. "web site details" subpanel to the right.
> > > Clicking one such 'Hyperlink' should kick off the download of the
> > > corresp. site details and display them on the right subpanel.
>
> > > My intention is to have workable URLs as close as possible to
>
> > > * http://{base-url}/{site-name}/index.html (index.html suppressible)
> > > * http://{base-url}/{site-name}/{page-name}.html   (.html suppress.)
> > > * http://{base-url}/{site-name}/{comp1}/{comp2}/.../{compN}.html
>
> > > where only {base-url} is a priori known (i.e. static).
>
> > > 1. Having N dynamically specified site names, what would the
> > >    Ajax-ified bookmarkable URLs of these 'Hyperlinks' look like?
>
> > >    Perhaps something comparable to
> > >    "http://{base-url}.html#{site-name};{comp1};...;{compN};{sid}"; ??
>
> > > 2. And, what Servlets would be listening to which URL(s) in this
> > >    scenario?
>
> > >    Is it a 2-sevlets scenario: an "AppControllerServlet" listening
> > >    to "http://{base-url}"; and serving traditional requests, and a
> > >    "GWT-RPC-Servlet" for the Ajax-based requests, listening to
> > >    another (?) url pattern?
> > >    -- Or would just one servlet suffice?
>
> > > Thank you all very much for any constructive help in advance.
>
> > > Best regards,
> > >   Alessandro
>
> > > Following the examples, I guess sth. similar to:
>
> > >  http://app-base-url/mysite-001.html#state1
>
> > > On 30 Jul., 15:54, Sebastian Rothbucher
>
> > >  wrote:
> > > > Hi Alessandro,
>
> > > > GWT features a history mechanism which could solve the first 
> > > > question:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...
> > > > orhttp://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCodin...
> > > > provide info on that: rather than using a file path, you'd use #
> > > > (an identifier after a hash). Many AJAX apps work that way to prevent
> > > > reloads
>
> > > > GWT is quite powerful concerning internationalization using property
> > > > files (you delcare an interface and provide a property file and bind
> > > > it together using the GWT class)
>
> > > > Concerning in-place editing, there is surely a way; Google wave is
> > > > implemented in GWT and also features rich editing features.
>
> > > > Finally, there is a gears binding for GWT (http://code.google.com/p/
> > > > gwt-google-apis/) which you can use for offline storage (modern
> > > > browser or plugin required).
>
> > > > Hope this helps...
> > > >    Sebastian
>
> > > > On 30 Jul., 13:41, "A.Augustini" 
> > > > wrote:
>
> > > > > [**Republished to get rid of ugly line-break cluttering**]
>
> > > > > Dear GWT Community members:
>
> > > > > As GWT newbie I'm currently evaluating GWT for some potential future
> > > > > projects. After reading available introductory materials, I'm now
> > > > > wondering if GWT is the appropriate candidate for my specific app
> > > > > scenario.
>
> > > > > Obviously there are 2 basic GWT app dev styles:
> > > > > (1) "desktop-app setup":
> > > > >        one GWT module on one almost empty "car

Re: JSONP: Overlays with Optional Attributes (HostedModeException's), How?

2010-08-03 Thread Andrew Hughes
Fixed... but I think this stinks :)

public final Double getXMin(){
return isXMinNull() ? null : getXMinValue();
}

private final native boolean isXMinNull()/*-{
return this.xmin == null;
}-*/;

private final native double getXMinValue()/*-{
return this.xmin;
}-*/;



On Tue, Aug 3, 2010 at 11:50 AM, Andrew Hughes  wrote:

> Thank's again André :)
>
> I've made some progress. you'r suggestion to use Integer and not
> primitive int was bang on the mark! :) Unfornately autoboxing was masking
> some of my problems - but now I have learnt the error's of my ways :)
>
> Now I am happily using Integer with and without null values...
>
> public final native Integer getCode()/*-{
> return this.code;
> }-*/;
>
>
> HOWEVER, Double && double won't work. Double works with null but not a
> valid javascript Number... and vice-a-vera with double. I've looked at all
> the documentation... going crazy to tell you the truth over such a small
> simple issue.. but your helps been great THANK YOU! :)
>
> --AH
>
>
>
> 2010/8/3 André Moraes 
>
>  1) This HostedModeException is very annoying. Null (or in JavaScript
>>> terms 'undefined') is a valid value for my JavaScript/JSON attributes. I
>>> want a way where if the darn thing is undefined return null... don't throw
>>> a HostedModeException  - I also tried in jsni if(this.attribute){ return
>>> this.attribute; } else { return undefined } but the exception is still
>>> thrown.
>>>
>>
>> in your Jsni instead of
>>
>> if (this.attribute) { return this.attribute; } else { return undefined; }
>>
>> try
>>
>> if (this.attribute) { return this.attribute; } else { return null; }
>>
>> In javascript, null and undefined are two differente things. When
>> something is null, this means that an variable is defined and its value is
>> null; If something is undefined that means there is no variable with that
>> name.
>>
>> the statment: "if (this.attribute)" works because when in a boolean
>> context, undefined is evaluated to false. Just like C where 0 is false and
>> everything else is true.
>>
>> To solve the int problem, try to change the return type to "Object" and
>> then check if the returned value is null. There is no way to return "null"
>> in java if the return type of a method is a "primitive int";
>>
>> I belive that since you are returning null from JSNI, the HostedMode will
>> be smart enough to cast "javascript null" to "java null". :)
>>
>>
>>> 2) There is no documentation about how this will behave in production?
>>> Will it just return null? I don't know how I can ensure consistency between
>>> dev and production modes :'(
>>>
>>
>> In production mode the javascript rules applies, so this probably will
>> trigger an error in your browser. When using JSNI method is necessary to
>> think in two different worlds (java and javascript). Check this link, maybe
>> will help with the javascript type system:
>> http://www.java2s.com/Tutorial/JavaScript/0100__Number-Data-Type/PrimitiveTypes.htm
>>
>>
>> Hope it helps.
>> --
>> André Moraes
>> Analista de Desenvolvimento de Sistemas
>> andr...@gmail.com
>> http://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.
>>
>
>

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



Re: Problem with UTF-8

2010-08-03 Thread david.herv...@gmail.com
Hi,

Have you specified the UTF-8 before creating file or just change it
while your files were created ?
I've just copy paste your Label in a project where .java file are
UTF-8 encoded and everything works fine.
Just check on one of your file the properties that is attributed to it
(contextual menu on one of the incriminated java file): here you must
have UTF-8.


On Aug 2, 9:38 pm, Kiarash  wrote:
> I have a problem with Swedish letters coded in Java files as when I
> make a Label with Swedish letters,
> Label myLabel = new Label("här är något på Svenska");
> the Swedish letters changes to strange characters in the HTML file.
>
> I am using Eclipse.I made sure that:
> the html file has 
> the text file >properties are UTF-8
> the >project >properties are UTF-8
> the >edit >set encoding are UTF-8
>
> Anybody facing the same problem or have a solution... thanx!

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