Re: "How to change theme"

2008-11-30 Thread alex.d

For example with:


in YourProject.gwt.xml

On 1 Dez., 08:14, Kusum <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> I am making an application for my own interest.I want to change theme
> or we can say i want to swap CSS.
> Can someone please help me how to swap theme using GWT.
>
> -KG
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



"How to change theme"

2008-11-30 Thread Kusum

Hello All,

I am making an application for my own interest.I want to change theme
or we can say i want to swap CSS.
Can someone please help me how to swap theme using GWT.


-KG

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



Remember user information

2008-11-30 Thread ramesh_mantra

Hai all,

I am new to the GWT. My requirement like this.

I want to remember login information of the user,so that i can show
username and password onload to  the user.
how can i implement this functionality in GWT.

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



Re: How to pass a set parameter with iFrame/window which host GWT HTML from a javascript code

2008-11-30 Thread Manish Kumar

Hi,

Sorry for raising this issue again. But I am getting stuck up at this point 
as per my new approach.

I am now able to host GWT from my external HTML/website.
The way I have done is on click of a button in my html , I open a new window
which loads the GWT Host HTML which in turns calls a JSNI method.
I am facing some issue when i pass some parameter to GWT.

Please help me out to find a way if this is feasible.

Thanking you for much needed help & co-operation.

Regards
Manish


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



Re: GWT with non-Java backend

2008-11-30 Thread ajay jetti
This should help i think

http://angel.hurtado.googlepages.com/tutorialgwt2

yours

Ajay

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



Re: GWT with non-Java backend

2008-11-30 Thread Joshua Partogi

Thank you so much Martin for the hint. :-)
I am more confident now to use GWT with non-Java backend. Because I
thought people only use GWT with Java on the backend.

Cheers.

On Dec 1, 12:15 pm, "Martin Gorostegui" <[EMAIL PROTECTED]>
wrote:
> Yes,
>
> I´m working with GWT with a PHP backend and I know many people in this list
> also do that. It is an excellent approach if you can't have a Java backend
> but want to have all the benefits of GWT (except for the optimised GWT Java
> RPC).
> Basically what you should do is instead of using GWT Java RPC (extending
> RemoteService, RemoteServiceServlet and creating an AsyncInterface) is use
> the RequestBuilder class to make http calls. What you send and receive can
> be anything you want but JSON is what is most used. For dealing with JSON
> client-side you can use GWT own JSON classes and Javascript Overlay Types if
> you are with GWT 1.5, and for dealing with JSON serverside you can use any
> PHP, Ruby, etc library to encode\decode JSON.
>
> I recommend you search this list archives as there are tons of messages
> about what I'm telling you (even people who is using JSONP instead, or
> json.org JSONRequest or the ones who have created their own way of dealing
> with JSON client-side). Also this section of the official documentation
> should be useful for 
> you:http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...
>
> Hope this helps,
>
> Martin

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



Re: Problem with applaying z-index in firefox

2008-11-30 Thread quetzal

I took the menu and i made a menuBar with GWT for this, we replace the
css menu for the gwt menu bar
the menu is working here:

http://www.esteticas.unam.mx/

here is my code:
http://afmt.esteticas.unam.mx/~quetzal/code/src.tgz

it's inspired in the following discussion:

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/e8237ff44eb24b91?pli=1

and i add these technique to the gwt code to fix the problem for linux
http://www.isayjesusis.com/css/
http://blog.marcoos.com/2006/07/21/html-div-above-a-flash-animation-on-linux-its-possible/

and the problem

We haven't seen the problem with Firefox 3.0.3 for Mac osX version
10.5.5 with Intel procesor, and flashplayer 9.

But, the fact is that we saw our menu flickering over the flash using
the same versions of Firefox anf flasplayer and the Mac osX 10.5 or
Mac osX 10.4 but both PPC procesor.

So the conclusion was that the problem came from the flashplayer 9 for
Mac osX PPC, we install the latest flashplayer the flashplayer 10, and
now our menu works very well, for both firefox-versions Intel and PPC
Mac osx.
I think flashplayer 10 fix the problem for linux also.

We detect Firefox 3 for Mac osX PPC and the webpage gives the option
to install flashplayer 10 with the help of the adobe installer, (adobe
flash-player detection kit), but i read that you can do it also with
SWFObject.

I hope this help.

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



Re: "(InternalError): script too large" on FF

2008-11-30 Thread Kroc

I workaround this problem:

In fact my rpc call was too large (around 1Mo). So I simply reduce the
size of theses calls to 10Ko.

Vincent

On 13 nov, 09:08, Kroc <[EMAIL PROTECTED]> wrote:
> Does anyone had this error on firefox (windows):
>
> compiled in PRETTY mode (file size 1.2Mo):
> (InternalError): script too large 
> fileName:http://localhost:8080/nc.kroc.fmp.AppMain/F7CD321583D7FFF355626DFABFB...
> lineNumber: 4099 stack: $prepareToR
>
> same compiled in OBFUSCATED mode (file size 444Ko):
> (InternalError): script too large
>
>  fileName:http://localhost:8080/nc.kroc.fmp.AppMain/58FEAEBA24ED94C41276805F8F8...
>
>  lineNumber: 444
>
>  stack: vub()@:0
>
> eval(
>
> in hosted mode and IE script continue running for a while.
> And it's working with chrome.
>
> The only difference with my previous versions which was working, is a
> library replacement:
> h4gwt 1.1 -> gilead 1.2 (simply a version changed)
> I didn't notice any script file size changed between the two versions.
>
> I found this on mozilla.org (http://www.mozilla.org/js/spidermonkey/
> release-notes/JS_150_RC4.html) :
> Bug 80981
> "Need extended jump bytecode to avoid "script too large" errors, etc."
> We now ReportStatementTooLarge only if:
>  -  a jump offset overflows 32 bits, signed;
>  -  there are 2**32 or more span dependencies in a script;
>  -  a backpatch chain link is more than (2**30 - 1) bytecodes long;
>  -  a source note's distance from the last note, or from script main
> entry point, is > 0x7f bytes.
>
> So...
> Is this problem already reported ?
> Anyone's ideas ?
>
> Regards
> Vincent
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT with non-Java backend

2008-11-30 Thread [EMAIL PROTECTED]

I too have worked on GWT front with PHP in the backend, communicating
as Martin stated using RequestBuilder and exclusively JSON.  Quite
simple really.  I've also built a prototype Ruby backend to the same
frontend and it too was pretty easy, and I'm a bit of a Ruby noob.
Martin's guidance is dead on...search this area for many examples,
they are there!

Later,
Shaffer

On Nov 30, 6:15 pm, "Martin Gorostegui" <[EMAIL PROTECTED]>
wrote:
> Yes,
>
> I´m working with GWT with a PHP backend and I know many people in this list
> also do that. It is an excellent approach if you can't have a Java backend
> but want to have all the benefits of GWT (except for the optimised GWT Java
> RPC).
> Basically what you should do is instead of using GWT Java RPC (extending
> RemoteService, RemoteServiceServlet and creating an AsyncInterface) is use
> the RequestBuilder class to make http calls. What you send and receive can
> be anything you want but JSON is what is most used. For dealing with JSON
> client-side you can use GWT own JSON classes and Javascript Overlay Types if
> you are with GWT 1.5, and for dealing with JSON serverside you can use any
> PHP, Ruby, etc library to encode\decode JSON.
>
> I recommend you search this list archives as there are tons of messages
> about what I'm telling you (even people who is using JSONP instead, or
> json.org JSONRequest or the ones who have created their own way of dealing
> with JSON client-side). Also this section of the official documentation
> should be useful for 
> you:http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...
>
> Hope this helps,
>
> Martin
>
> On Sun, Nov 30, 2008 at 9:31 PM, Joshua Partogi <[EMAIL PROTECTED]>wrote:
>
>
>
> > Dear all,
>
> > Has anyone worked GWT with non-Java backend (like PHP or Rails) and
> > send it with AJAX Http request? Does it work good? I am wondering
> > whether this is a good approach. I would appreciate any experience
> > shared here.
>
> > Thank you in advance
>
> > --
> > Not by might nor by power, but by His Spirit.
>
> > Read my blog:http://joshuajava.wordpress.com/
> > Follow me on twitter:http://twitter.com/jpartogi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Is Run Time Annotation Possible?

2008-11-30 Thread Au Lai Seong

Do you want to configure anything in order to make class the following
code work?
Test.class.getAnnotation(Id.class);


On Fri, Nov 28, 2008 at 6:30 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Sorry, what do you mean? My English is not so good, but If you got any
> question, please welcome to ask me :D
> James
>
> On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> How do you make the com.gwtent.client.test.annotations.Id to be
>> understandable by GWT?
>>
>> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED]
>>
>> <[EMAIL PROTECTED]> wrote:
>>
>> > Hi, zujee,
>>
>> >  I have a reflection implement for GWT client code, and it support
>> > get Annotation's value at runtime.
>>
>> >  http://code.google.com/p/gwt-ent/
>> >  The test case:
>> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
>>
>> >  Hope that helps :)
>> > James
>>
>> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
>> >> Hi experts,
>> >> I have an interface which extends ImmutableResourceBundle
>>
>> >> and inside that
>> >> @Resource("com/MyPath/MyConstants.properties")
>> >> public abstract TextResource properties();
>>
>> >> and its working fine.
>> >> but I need to change the filename after reading the XML file .
>> >> eg:
>> >> 
>> >> MyConstants_C1.properties
>> >> 
>>
>> >> from that I need to set the reosuece path as
>> >> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
>> >> that possible?
>>
>> >> thanks and regards
>> >> Zujee
> >
>

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



Images, and 'public' locations?

2008-11-30 Thread Feltros

I have seen a vast many tutorials on using ImageBundles in GWT
applications, but what about when a user uploads a photo lets say?
Whereabouts do you go about saving that photo in the directory
structure, and where do you point to, to publish that photo onto the
client's screen?
I'm having problems at the moment because everytime I try to access
anything in my GWT project directory from the client that isn't
specified in the .xml it complains, but if a user uploads a photo I
can't possibly change the .xml everytime now can I?

My directory structure and main questions are:
src -
- gxtBTI
 - FileUploadController (Where do I point to from here
when saving the file?)
 - public
  - App.gwt.xml (Do I need something here
to say that whole folders are accessible for images/media?)
   - client
- App (Where do I point to when trying to show the
newly uploaded photo?)


I'm assuming I should save somewhere into the 'public' folder, and
that this will be accessible from the server by simply saving into /
public/ ?
And then can I put the picture on the client interface just using  ?

Thanks kindly

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



Re: prototype code for wrapping google.load

2008-11-30 Thread Eric Ayers

Hi Daniel,

Its coming back to me now:  a few months ago Miguel and I were tossing
around ideas about wrapping the AJAX loader.  Miguel was a proponent
of creating a separate API that only did AJAX loading that could be
shared by Maps,  Search, Visualization, or any other loader.

I think what you have will work.  Could you just write it into a
static utility class at the top level of the class path, say named:

com.google.gwt.visualization.client.AjaxLoader


On Thu, Nov 27, 2008 at 8:58 AM, Daniel Libicki <[EMAIL PROTECTED]> wrote:
>
>   public void onModuleLoad() {
> Visualization.loadAPI(new Runnable(){
>   public void run() {
> final VerticalPanel vp  = new VerticalPanel();
> vp.getElement().getStyle().setPropertyPx("margin", 15);
> vp.setWidth("100%");
> vp.setHeight(Window.getClientHeight() + "px");
> RootPanel.get().add(vp);
> vp.add(new Label("Google Visualization with GWT demo."));
> vp.add(tabPanel);
> tabPanel.setWidth("800");
> tabPanel.setHeight("600");
> tabPanel.add(createPieChart(), "Pie Chart");
> tabPanel.add(createTable(), "Table");
> tabPanel.add(createDataView(), "DataView");
> tabPanel.selectTab(0);
>   }}, PieChart.PACKAGE, Table.PACKAGE);
>   }
>
>   public static native void loadAPI(Runnable onLoad, JsArrayString packages)
> /*-{
>   var callback = function() {
>
> @com.google.gwt.visualization.client.ExceptionHelper::runProtected(Ljava/lang/Runnable;)(onLoad);
> };
>   google.load('visualization', '1',
>   {'packages' : packages, 'callback' : callback});
>   }-*/;
>
>   public static void loadAPI(Runnable onLoad, String... packages) {
> loadAPI(onLoad, AbstractDrawOptions.createJsArray(packages));
>   }
>
> let me know what you think.
>
> Daniel
>



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

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



Re: GWT with non-Java backend

2008-11-30 Thread Martin Gorostegui
Yes,

I´m working with GWT with a PHP backend and I know many people in this list
also do that. It is an excellent approach if you can't have a Java backend
but want to have all the benefits of GWT (except for the optimised GWT Java
RPC).
Basically what you should do is instead of using GWT Java RPC (extending
RemoteService, RemoteServiceServlet and creating an AsyncInterface) is use
the RequestBuilder class to make http calls. What you send and receive can
be anything you want but JSON is what is most used. For dealing with JSON
client-side you can use GWT own JSON classes and Javascript Overlay Types if
you are with GWT 1.5, and for dealing with JSON serverside you can use any
PHP, Ruby, etc library to encode\decode JSON.

I recommend you search this list archives as there are tons of messages
about what I'm telling you (even people who is using JSONP instead, or
json.org JSONRequest or the ones who have created their own way of dealing
with JSON client-side). Also this section of the official documentation
should be useful for you:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideServerCalls

Hope this helps,

Martin

On Sun, Nov 30, 2008 at 9:31 PM, Joshua Partogi <[EMAIL PROTECTED]>wrote:

>
> Dear all,
>
> Has anyone worked GWT with non-Java backend (like PHP or Rails) and
> send it with AJAX Http request? Does it work good? I am wondering
> whether this is a good approach. I would appreciate any experience
> shared here.
>
> Thank you in advance
>
> --
> Not by might nor by power, but by His Spirit.
>
> Read my blog: http://joshuajava.wordpress.com/
> Follow me on twitter: http://twitter.com/jpartogi
>
> >
>

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



GWT with non-Java backend

2008-11-30 Thread Joshua Partogi

Dear all,

Has anyone worked GWT with non-Java backend (like PHP or Rails) and
send it with AJAX Http request? Does it work good? I am wondering
whether this is a good approach. I would appreciate any experience
shared here.

Thank you in advance

-- 
Not by might nor by power, but by His Spirit.

Read my blog: http://joshuajava.wordpress.com/
Follow me on twitter: http://twitter.com/jpartogi

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



GWT Shell on Netbeans 6.5 on 64bit Ubuntu

2008-11-30 Thread Paweł Stawicki

Hi,

Did anyone managed to run GWT in shell mode (to debug client side) in
Netbeans 6.5 on 64bit linux?

How to do it?

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



Re: Where is have PagingScrollTable's tourist

2008-11-30 Thread Mat Gessel

The demos are on the "GWT Incubator" project wiki:

http://code.google.com/p/google-web-toolkit-incubator/w/list

Here is the demo for PagingScrollTable.

http://google-web-toolkit-incubator.googlecode.com/svn/trunk/demo/PagingScrollTable/index.html

I don't know if this is for the current version or the
"PagingScrollTableOld" version.

Best Regards,

-= Mat

On Sat, Nov 29, 2008 at 9:44 PM, DANNY <[EMAIL PROTECTED]> wrote:
> Where is have PagingScrollTable's tourist ?

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



A very lightweight templating system - Introducting JAW's Very Simple GWT Html Template

2008-11-30 Thread JAWspeak

I had a need for a very simple html templating system. So I wrote
this, which I am just now letting loose on a google code project.

If I've duplicated other people's ideas, I'd like to hear that. (It
wouldn't suprise me, since I'm just using generators and creating code
with template variables, then auto-filling out the template slots). Or
if this helps anyone else, that's great.

It is very simple, and I think it's cool in two ways:
   1. Automatic data setting from your value object, into the $
{myObj.property} template slots.
   2. Ability to manually attach complex widgets (with GWT defined
event behavior), into the $${doubleDollarSignSlot} template slots.

I wrote a blog post here: 
http://jawspeak.com/2008/11/29/introducting-jaws-very-simple-gwt-html-template/

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



Re: Dictionary on demand

2008-11-30 Thread obesga

IMPORTANT, THE PREVIOUS NATIVE METHOD IS NOT CORRECT

The nativ method must be

private static native void getJsFile() /*-{
var fileref = $doc.createElement('script');
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src","operadores/operadores.js");
$doc.getElementsByTagName("head")[0].appendChild(fileref)
}-*/;

just to load correctly the file...

Excurse

On 30 nov, 17:45, obesga <[EMAIL PROTECTED]> wrote:
> I really don't assume this, it's the way I'm going to use it.
>
> In my application, the file is generated by a servlet that writes a
> POJO into the file, as shown
>
>             response.setContentType("text/javascript");
>             response.setHeader("Expires", "0");
>             response.setHeader("Cache-Control", "must-revalidate, post-
> check=0, pre-check=0");
>             response.setHeader("Pragma", "public");
>             StringBuilder sb = new StringBuilder();
>             sb.append("var mypojovar = {");
>             for (MyPojo myPojo : database.getMyPojoList())
>                 sb.append("\n\t").append(myPojo.getId()).append(":
> \"").append(myPojo.getName()).append("\",");
>             sb.deleteCharAt(sb.length() - 1);
>             sb.append("\n};");
>             response.getWriter().print(sb.toString());
>             response.getOutputStream().flush();
>             response.getOutputStream().close();
>
> BTW, the mehod is easyly modificable to accetp different file and
> variable/dictionary name
>
>     public DictionaryOnDemand(String url, String dname){
>         getJsFile(url);
>         dictionary =  Dictionary.getDictionary(dname);
>     }
>
>     private native void getJsFile(String url) /*- {
>         var fileref = $doc.createElement('script');
>         fileref.setAttribute("type","text/javascript");
>         fileref.setAttribute("src", url);
>     } -*/;
>
> The key in this behaviour is the 'text/javascript' content type of the
> file
>
> Oskar
>
> On 30 nov, 15:04, bennyb <[EMAIL PROTECTED]> wrote:
>
> > Why do you assume every javascript file would have a ".js" extension?
> > Some files could be dynamically generated depending on querystring
> > parameters so we might request ".php" or ".asp" files
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Masked Input

2008-11-30 Thread yunhui song
If you use gwt-ext, you can use Ext.mask or Ext.unmask. I have a open source
project which use that.
  http://code.google.com/p/ppl-kit

you can get the working code there.

Sammi

On Sun, Nov 30, 2008 at 2:29 AM, Riyaz Mansoor <[EMAIL PROTECTED]>wrote:

>
>
> I'm interested in this as well.
>
> On Nov 29, 12:15 am, jsantaelena <[EMAIL PROTECTED]> wrote:
> > Hi
> >
> > Someone knows libe withmaskedwidgets?
> >
> > 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Where is have PagingScrollTable's tourist

2008-11-30 Thread gregor

Danny,

I'm guessing that you don't mean "tourist" and that perhaps you are
using some translation utility that has got this wrong?

"Tourist" means someone on holiday in English!

regards
gregor

On Nov 30, 5:44 am, DANNY <[EMAIL PROTECTED]> wrote:
> Where is have PagingScrollTable's tourist ?
>
> i can't find it , thank
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Load Testing GWT Applications

2008-11-30 Thread gregor

I remember investigating this a bit a year ago (obviously the big
problem is the RPC calls) and at the time it looked to me that JMeter
was difficult to set up for GWT apps and didn't necessarily give
meaningful results even if you could get it to work (unfortunately I
can't remember why). However I made a note at the time that people
seemed to be having a lot more success with Grinder.

You've probably found this post yourself already, but in case you
haven't this post suggests that you definitely can get grinder to do
the job:

http://www.jroller.com/galina/entry/google_web_toolkit_performance_test

regards
gregor



On Nov 30, 10:36 am, mhm <[EMAIL PROTECTED]> wrote:
> I'm currently selecting a load Testing Tool from several candidates:
> JMETER, GRINDER, and Webload open source.
> I actually prefered using webload but faced some problems in
> customizing my data because of RPC calls..I'm still working on a work
> around.
>
> Please I need advice on which tool to use... I have searched
> extensively for a recomendation and for a tool that supports GWT, but
> did not find anything... should I keep trying with webload or forget
> it
>
> I would appreciate help on this...
>
> thanks,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Load Testing GWT Applications

2008-11-30 Thread mhm

I'm currently selecting a load Testing Tool from several candidates:
JMETER, GRINDER, and Webload open source.
I actually prefered using webload but faced some problems in
customizing my data because of RPC calls..I'm still working on a work
around.

Please I need advice on which tool to use... I have searched
extensively for a recomendation and for a tool that supports GWT, but
did not find anything... should I keep trying with webload or forget
it

I would appreciate help on this...

thanks,

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



Where is have PagingScrollTable's tourist

2008-11-30 Thread DANNY

Where is have PagingScrollTable's tourist ?

i can't find it , thank

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



Re: Dictionary on demand

2008-11-30 Thread obesga

I really don't assume this, it's the way I'm going to use it.

In my application, the file is generated by a servlet that writes a
POJO into the file, as shown

response.setContentType("text/javascript");
response.setHeader("Expires", "0");
response.setHeader("Cache-Control", "must-revalidate, post-
check=0, pre-check=0");
response.setHeader("Pragma", "public");
StringBuilder sb = new StringBuilder();
sb.append("var mypojovar = {");
for (MyPojo myPojo : database.getMyPojoList())
sb.append("\n\t").append(myPojo.getId()).append(":
\"").append(myPojo.getName()).append("\",");
sb.deleteCharAt(sb.length() - 1);
sb.append("\n};");
response.getWriter().print(sb.toString());
response.getOutputStream().flush();
response.getOutputStream().close();


BTW, the mehod is easyly modificable to accetp different file and
variable/dictionary name

public DictionaryOnDemand(String url, String dname){
getJsFile(url);
dictionary =  Dictionary.getDictionary(dname);
}

private native void getJsFile(String url) /*- {
var fileref = $doc.createElement('script');
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", url);
} -*/;


The key in this behaviour is the 'text/javascript' content type of the
file

Oskar

On 30 nov, 15:04, bennyb <[EMAIL PROTECTED]> wrote:
> Why do you assume every javascript file would have a ".js" extension?
> Some files could be dynamically generated depending on querystring
> parameters so we might request ".php" or ".asp" files
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: IE7 Error in cache.html's Javascript

2008-11-30 Thread jchimene



On Nov 30, 12:39 am, KevinF <[EMAIL PROTECTED]> wrote:
> Ok, I found the issue... seems it was a programming error on my part.
> Not waiting for all Lists to come back from the server before
> processing it in the client. I wish there was some easy way to handle
> this kind of thing. Is there some way to make some requests
> synchronous?

No.

> It seems the reason this occurred was due to asynchronous request/processing.

Pls. post a *small* code sample. Preferrably the code that handles the
request callback. If this is your initial attempt at GWT callback
design, perhaps there's an issue that the list will spot.

It's also likely that you'll want to only load an initial list, and
load other lists in the background. How likely is it that the user
will need to see all the contents of all the lists at once?
IncrementalCommand is helpful for cases like this. There are also
other list management widgets that will do this type of processing for
you. Search the list for "bulk"

FWIW, I've also seen this issue w/ IE 6 & 7. My particular case is an
app that retrieves several large images before setting up a Fisheye
widget. The widget works correctly under Firefox & Safari, but fails
miserably in IE. Turns out that the load order will have to change.

>
> On Nov 29, 2:45 am, KevinF <[EMAIL PROTECTED]> wrote:
>
> > Hi everyone,
>
> >   I'm running into a really weird problem with IE7 when I view my site
> > that was created using GWT. The client makes several calls to the
> > server to retrieve Lists of information. This problem does not occur
> > in Firefox 3 nor in Safari. The error I'm getting is
>
> > Line: 2818
> > Char: 3
> > Error: Exception thrown and not caught
> > Code: 0
> > URL: http:///997866B17568BBEABF330CD77D093CE1.cache.html
>
> >   From what I gather, it seems this file is the my application logic
> > tailored for IE. When I look into the file at line 2818, I find:
>
> > 2817: function java_util_AbstractList_indexOutOfBounds__II(index, size)
> > {
> > 2818:  throw java_lang_IndexOutOfBoundsException_
> > $IndexOutOfBoundsException__Ljava_lang_IndexOutOfBoundsException_2Ljava_lang_String_2
> > (new java_lang_IndexOutOfBoundsException(), $intern_130 + index +
> > $intern_131 + size);
> > 2819: }
>
> >   I tried to find where the callers of this method were and there were
> > 3 of them:
> > (1) function java_util_ArrayList_
> > $add__Ljava_util_ArrayList_2ILjava_lang_Object_2(this$static, index,
> > o)
> > (2) function java_util_LinkedList_
> > $listIterator__Ljava_util_LinkedList_2I(this$static, index)
> > (3) function java_util_AbstractList_checkIndex__II(index, size)
>
> >   I'm guessing this means somewhere my application is trying to access
> > an index in a List that's not within bounds of it. The puzzling thing
> > is, how come this only happens on SOME IE7 browsers and does not occur
> > at all in Firefox or Safari.
>
> >   Any ideas or fixes would be much appreciated.
>
> > Kevin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Dictionary on demand

2008-11-30 Thread bennyb

Why do you assume every javascript file would have a ".js" extension?
Some files could be dynamically generated depending on querystring
parameters so we might request ".php" or ".asp" files
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: PopupPanel closing

2008-11-30 Thread gregor

You need to have whatever widget needs notification of the popup close
implement the PopupListener interface and register it with the popup.
Then the method:

void onPopupClosed(PopupPanel sender, boolean autoClosed) {..};

will be called.

On Nov 30, 10:26 am, Riyaz Mansoor <[EMAIL PROTECTED]> wrote:
> Hi
>
> What's the easiest way to catch a popup panel close/hide event ? I
> can't find any handler to catch it.
>
> override the hide() method ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: ClickListener problem

2008-11-30 Thread gregor

Your toggle() methods should be being called. Check with debugger.
Problem is most likely with what you are doing in the togglexxx()
methods.

On Nov 30, 1:01 pm, tapan <[EMAIL PROTECTED]> wrote:
> here is the source
>
>   Button beg = new Button("Beginner");
>   Button inter = new Button("Intermediate");
>   Button pro =new Button("Expert");
>
>           RootPanel rootPanel = RootPanel.get("beginner");
>           rootPanel.add(beg);
>           rootPanel = RootPanel.get("intermediate");
>           rootPanel.add(inter);
>           rootPanel = RootPanel.get("pro");
>           rootPanel.add(pro);
>
>           beg.addClickListener(new ClickListener(){
>                 public void onClick(Widget sender) {
>                         togglebeg();
>                 }
>   });
>           inter.addClickListener(new ClickListener(){
>                public void onClick(Widget sender) {
>                                 toggleinter();
>                }
>   });
>           pro.addClickListener(new ClickListener(){
>                 public void onClick(Widget sender) {
>                         togglepro();
>                 }
>   });
>
> On Nov 29, 1:55 pm, Lothar Kimmeringer <[EMAIL PROTECTED]> wrote:
>
> > tapan schrieb:
>
> > > I have 3 buttons each having their own ClickListener . The problem is
> > > that after clicking once on a button the ClickListener does not work
> > > second time until the page has been refreshed. How can i correct this
> > > error without refreshing the page every time.
>
> > Some source showing the problem should help. The effect you describe
> > I never had, so I'm quite sure that you do something wrong. Most
> > likely there is an exception happening in the code being executed
> > inside the listener. This stops the "execution" of the application
> > and needs the reload of the page.
>
> > Regards, Lothar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Exceptions

2008-11-30 Thread obesga

java.sql.SQLException

is not part of emulated Java or GWT core classes.

GWT compiles Java code to Js/HTML; but only if
a) It's emulated by GWT compiler
b) It's part of standart GWT client libraries
c) Derived from a or b

So, you must think that GWT client code is constained by the browser
capabilities; you can do everything a standart browser can do; but no
more - and SQL querys are out of the dominion of the browser, you must
implement it in your server code

Oskar




On 26 nov, 23:54, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi, I am having some problems with my GWT. I am new to GWT so may be
> making some very obvious mistakes. Basically, I have written 2
> classes, one which deals with the GUI (which is the Entry Point class)
> and one which connects to an SQL database, called ItemConnector. It
> compiles fine in eclipse but when I run in the development shell I get
> the following errors:
>
> [ERROR] Line 73: No source code is available for type
> com.project.mysql.ItemsConnector; did you forget to inherit a required
> module?
>
> [ERROR] Line 76: No source code is available for type
> java.sql.SQLException; did you forget to inherit a required module?
>
> Here is my code from line 73:
>
>     private ItemsConnector itemConnector;
>
>     //Constructor
>     public MyApplication() throws SQLException{
>                 itemConnector = new ItemsConnector();
>         }
>
> Can someone see where I am going wrong? Im guessing its something to
> do with the SQL I am trying to run, but have no idea how to solve
> this. Please can someone point me in the right direction?
>
> Cheers,
> Jack
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: ClickListener problem

2008-11-30 Thread tapan

here is the source

  Button beg = new Button("Beginner");
  Button inter = new Button("Intermediate");
  Button pro =new Button("Expert");


  RootPanel rootPanel = RootPanel.get("beginner");
  rootPanel.add(beg);
  rootPanel = RootPanel.get("intermediate");
  rootPanel.add(inter);
  rootPanel = RootPanel.get("pro");
  rootPanel.add(pro);

  beg.addClickListener(new ClickListener(){
public void onClick(Widget sender) {
togglebeg();
}
  });
  inter.addClickListener(new ClickListener(){
   public void onClick(Widget sender) {
toggleinter();
   }
  });
  pro.addClickListener(new ClickListener(){
public void onClick(Widget sender) {
togglepro();
}
  });




On Nov 29, 1:55 pm, Lothar Kimmeringer <[EMAIL PROTECTED]> wrote:
> tapan schrieb:
>
> > I have 3 buttons each having their own ClickListener . The problem is
> > that after clicking once on a button the ClickListener does not work
> > second time until the page has been refreshed. How can i correct this
> > error without refreshing the page every time.
>
> Some source showing the problem should help. The effect you describe
> I never had, so I'm quite sure that you do something wrong. Most
> likely there is an exception happening in the code being executed
> inside the listener. This stops the "execution" of the application
> and needs the reload of the page.
>
> Regards, Lothar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Masked Input

2008-11-30 Thread Au Lai Seong

You can have a look at gwtiger.

Regards,
Jimmy6

On Sun, Nov 30, 2008 at 6:29 PM, Riyaz Mansoor <[EMAIL PROTECTED]> wrote:
>
>
> I'm interested in this as well.
>
> On Nov 29, 12:15 am, jsantaelena <[EMAIL PROTECTED]> wrote:
>> Hi
>>
>> Someone knows libe withmaskedwidgets?
>>
>> 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Masked Input

2008-11-30 Thread Riyaz Mansoor


I'm interested in this as well.

On Nov 29, 12:15 am, jsantaelena <[EMAIL PROTECTED]> wrote:
> Hi
>
> Someone knows libe withmaskedwidgets?
>
> 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



PopupPanel closing

2008-11-30 Thread Riyaz Mansoor


Hi

What's the easiest way to catch a popup panel close/hide event ? I
can't find any handler to catch it.

override the hide() method ?



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