New blog post: Data Binding in GWT

2010-03-06 Thread Trung
I've written a new blog post regarding Data Binding in GWT.

http://www.gdevelop.com/w/blog/2010/03/06/data-binding-in-gwt/

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



Re: How to style HorizontalPanel

2010-03-06 Thread Chris Lercher
Hi,

I don't immediately know a solution, just an explanation:

I added cellspacing="0" and cellpadding="0" to your pure HTML layout's
table element, and I get the same effect.
The problem is, that the text input element gets a width of 100% + 3
pixels border (+ maybe additionally some padding). This results in
more than 100% of the table cell's width, both in the UiBinder
example, and in the pure HTML example.

I think you could try wrapping the text input in another div that has
some padding:

http://dl.google.com/gwt/DTD/xhtml.ent";>


.padding {
padding-right: 10px;
}




  








... but maybe there are better solutions...

hth
Chris

On Mar 6, 1:50 am, ailinykh  wrote:
> Hello, everybody!
> I've problem with HorizontalPanel layout.
> What I have is:
>
> 
>         
>                 
>         
>         
>                 
>         
>
> 
>
> I want to have a button on the right side and text input on the left
> which automatically expands ands occupies rest of space . In pure HTML
> this layout is:
>
> 
>   
>     
>           
>     
>     Invite
>   
> 
>
> But the picture I got is slightly different. For some reason text
> fields overlaps button.
> Any ideas what I do wrong?
>
> Thank you,
>   Andrey

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



Use of com.google.gwt.jsonp.client.JsonpRequestBuilde and compiler error message

2010-03-06 Thread a...@syd
Hi, all,

I have tried to use the said class in my GWT project.

When I tried to compile the code, I got this error message:

No source code is available for type
com.google.gwt.jsonp.client.JsonpRequestBuilder; did you forget to
inherit a required module?

It is not obvious from the doc if I need to add a inherit line in the
project xml file. (http://google-web-toolkit.googlecode.com/svn/
javadoc/2.0/com/google/gwt/jsonp/client/package-summary.html)

And if it's necessary, what is the right value for the attribute
'name'?

Cheers

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

2010-03-06 Thread Fran
It work!!

Thanks Chad!

On 5 mar, 01:46, Chad  wrote:
> Fran,
>
> Try putting an L after at least one of the numbers in parentheses:
>
> nowLong = nowLong + (1000L * 60 * 60 * 24 * 30); // 30 dias
>
> HTH,
> Chad
>
> On Mar 4, 4:25 pm, Fran  wrote:
>
> > I cant write a cookie in GWT.
>
> > This is the code:
>
> >                         String ckValue = Cookies.getCookie("nameCookie");
> >                         if(ckValue == null){
> >                                 Date now = new Date();
> >                                 long nowLong = now.getTime();
> >                                 nowLong = nowLong + (1000 * 60 * 60 * 24 * 
> > 30);// 30 dias
> >                                 now.setTime(nowLong);
>
> >                                 Cookies.setCookie("nameCookie", 
> > "valueCookie", now);
> >                         }
>
> > Always ckValue is null.
>
> > Anybody know this problem?
> > 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.



Need DialogBox with close icon in caption bar

2010-03-06 Thread dhoffer
Could someone send me a code example of how to add a close icon/button
to the GWT dialog box?  Or if there is a open source library that does
this that would be fine too.

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: Need DialogBox with close icon in caption bar

2010-03-06 Thread dhoffer
I should have mentioned that I need this for GWT 2.0, not sure if
that's any different.

(I notice this question posted on the web various places but most/all
have user comments saying it didn't work, etc.  Hopefully someone has
some code known to work with gwt 2.0.)

Thanks!

On Mar 6, 7:10 am, dhoffer  wrote:
> Could someone send me a code example of how to add a close icon/button
> to the GWT dialog box?  Or if there is a open source library that does
> this that would be fine too.
>
> 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: Inconsistant Debug-mode URL Causing Considerable Grief

2010-03-06 Thread Jeff Chimene
Hi:

If you want the initial URL to contain a hash mark, such a value will have
to be in the initial url. Yes, you have to type it in. Won't your users also
have to enter that query parameter?

Subsequent calls to the server from the client rely on the
GWT.getModuleBaseUrl() method; which returns a value that does not any query
parameters.

Maybe I'm missing something. I've never changed code when moving to a
production server while using CGI query parameters.

On Fri, Mar 5, 2010 at 1:17 PM, Allen Holub  wrote:

> For various reasons, my application has to generate URLs for pages/
> servlets/etc. in the same webapp (for things like images held in my
> database and served by a servlet). It's incredibly annoying that, when
> I'm debugging, I need to use a URL that looks like this:
>
> http://127.0.0.1:/Report.html?gwt.codesvr=127.0.0.1:9997#1
>
> and when I've deployed the application, the URL looks completely
> different:
>
> http://www.mysite.com/report/Report.html#1
>
> This difference makes it very difficult to debug my application
> without do a full deployment to the real server, and I *hate* to be
> forced to deploy code that cannot be tested locally, first. I actually
> don't mind that the server name/port is different, though even that is
> annoying. The real problems are the "?gwt.conesvr" argument and the
> lack of the the servlet-context name ("/report" in the above example)
> in the debug-mode URL.
>
> Because of these differences, generating URLs is an annoying, fragile,
> and error-prone process. First, I have to detect that I'm running
> under GWT (which isn't too bad --- I can just look for localhost or
> equivalent) and then create special URLs for that situation (which is
> hideously bad, since that code runs only when I'm testing, and
> different code entirely runs when I'm deployed, and that code can't be
> tested properly). The fragility comes from the fact that I had to
> change all my if-in-hosted-mode-do-X code when GWT 2 came out, because
> the URL structure had changed.
>
> Ideally, I'd like:
>
> 1) a way to add a servlet-context (e.g., http:/127.0.0.1:/
> myServletContext)  to a URL used in debug mode so that I can generate
> a structurally-similar URL for both debugging and deployment. This
> servlet-context part of the URL could simply be ignored by the debug-
> mode web server. I'd be perfectly happy for reasonable restrictions to
> be in place (e.g., you could use "/context" but not "/context/
> subcontext"), or I could specify the context name in the module file
> or some other reasonable place.
>
> 2) no extra garbage (such as "?gwt.codesvr..." added to the URLS.
> Surly, this information can be passed to the debug-mode web server in
> some other way.
>
> If there's some sort of workaround for these problems, I'd love to
> know about it. If there is no workaround, I consider this
> inconsistency to be a serious bug in GWT.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received 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: (Almost) Standards mode / Quirks mode

2010-03-06 Thread itsnotvalid
So which mode should we use?
In view of future standards, HTML 5 would definitely standards mode
(http://diveintohtml5.org/semantics.html)
I am guessing that they are going to be all standards mode, however it
seems that there is no way to detect which mode to use given just a
widget.
May be the dev team could introduce some warnings or even exceptions
when there is a mode mismatch.

On Feb 19, 9:56 pm, Chris Lercher  wrote:
> Thanks, I know, and I do (for GWT 2.0). The question is more targeted
> at the documentation, which says, we shouldn't use some of the old
> layout elements anymore (e.g. StackPanel), because they don't work
> well in standardsmode.
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
> (Section "Moving to StandardsMode")
>
> But if it's the case that most GWT 1.7 applications never 
> usedquirksmodeanyway (because WebAppCreator by default created a HTML file in
> "Almost Standards"mode), then I don't understand that, because the
> differences between "Almost Standards" and "Standards" aren't very
> big, or are they?
>
> In any case, the comment in the HTML file, that "HTML 4.01
> Transitional DOCTYPE" triggersquirksmodedoesn't seem to be 
> correct.Quirksmodeis quite different from (Almost) Standardsmode.
>
> On Feb 19, 2:46 pm, Alexander Arendar 
> wrote:
>
>
>
> > Hi Chris,
>
> > you better use the strictmode:
> > !DOCTYPE HTML PUBLIC
> > "-//W3C//DTD HTML 4.01//EN"
> > "http://www.w3.org/TR/html4/strict.dtd";>
>
> > That would benefit since new GWT layout panels are optimized for the strict
> >mode.
>
> > Sincerely,
> > Alex
>
> > On Fri, Feb 19, 2010 at 3:28 PM, Chris Lercher 
> > wrote:
>
> > > Hi,
>
> > > I just had a look at a html page generated by GWT 1.7, and was
> > > wondering about this:
>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
>
> > > GWT 1.7 was made forquirksmode, as far as I remember. But HTML 4.01
> > > Transitional isn'tquirksmode. For all I know, this is called "Almost
> > > Standardsmode", which is very close to "Standardsmode", except
> > > mainly for images.
>
> > > Seehttp://hsivonen.iki.fi/doctype/ (Section "Choosing a Doctype")
> > > andhttp://www.quirksmode.org/css/quirksmode.html
>
> > > So I wonder: Is this incorrect in the generated HTML page, or are the
> > > GWT docs actually always talking about "Almost Standardsmode", when
> > > they say, that certain things before GWT 2.0 were designed for "Quirks
> > >mode"? Or maybe the information in my links is wrong?
>
> > > Chris
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Clicking a GWT button from javascript?

2010-03-06 Thread ChristianP
Hi GWT'ers,

I have a website which uses both GWT and regular javascript.

In one case, I would like some javascript code to click a GWT button
on the same page. That works pretty well in Safari, but not in Chrome.
I'm using getElementById(...).click(); for clicking the button, but
nothing happens in Chrome.

How do I proceed?

Thanks
Christian

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

2010-03-06 Thread ailinykh
Thank you, Chris!
It makes sense. Honestly, I don't see any reason to use Gwt panels in
UiBinder xml file.
I put there regular html, added some padding to . Now everything
looks good.
By the way, what is "stylePrimaryName" how it differs from
"styleName"?

Andrey

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

2010-03-06 Thread Chris Lercher
On Mar 6, 6:07 pm, ailinykh  wrote:
> Thank you, Chris!
> It makes sense. Honestly, I don't see any reason to use Gwt panels in
> UiBinder xml file.
> I put there regular html, added some padding to . Now everything
> looks good.

Oh yeah, that works, too :-)


> By the way, what is "stylePrimaryName" how it differs from
> "styleName"?

I just copied this from one of my examples, so this isn't really a
recommendation. Probably it's better to user styleNames or
addStyleNames, as explained here:
http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Hello_Stylish_World

For differences between the methods, see the Javadoc of
com.google.gwt.user.client.ui.UIObject

-- 
You received 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: working with GWT and PHP in the development mode

2010-03-06 Thread mibtar
maybe you should just use firefox?

are you using eclipse or netbeans?

gwt php in eclipse:

suppose your apache's webroot is "c:\www"
and you created your project in "c:\www\apps\"
and your project name is "mytest"

so your project is gonna have these directories:
c:\www\apps\mytest\src
c:\www\apps\mytest\test
c:\www\apps\mytest\war

you place your php files in the war folder

test.php:



and in your java code, let's say you have this method to test:

public void testphp(){
try
{
RequestBuilder builder = new
RequestBuilder(RequestBuilder.POST, GWT.getHostPageBaseURL()
+"test.php");
builder.setHeader("Content-Type", "application/x-www-form-
urlencoded");
builder.sendRequest("", new RequestCallback()
{
@Override
public void onError(Request request, Throwable ex)
{
Window.alert(ex.toString());
}

@Override
public void onResponseReceived(Request request, Response
response)
{
Window.alert("PHP output: " +
response.getText());
}
});
}
catch (RequestException e)
{
Window.alert(e.toString());
}
}

in the project explorer of eclipse, right click your project and
choose properties.
click Run/Debug Settings.
choose your project and click edit.
remove the check in run built-in server and change the port to 80.

run the project. copy the link in the "development mode" window and
paste it in the browser's address bar.
when you open the link, it will display a page not found error.
because you really don't have a mytest.html in
the root of your www folder.

the link looks like this:
http://127.0.0.1/mytest.html?gwt.codesvr=127.0.0.1:9997

copy "?gwt.codesvr=127.0.0.1:9997" from the link

mytest.html is really in:
http://localhost/apps/mytest/war/mytest.html

paste the end of the previous link to the new link so it looks like
this:
http://localhost/apps/mytest/war/mytest.html?gwt.codesvr=127.0.0.1:9997

now you can simply refresh the page to view any changes made to your
java and php code.
no need to compile or run.

-- 
You received 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: Image getAltText() and setAltText()

2010-03-06 Thread PKolenic
I found it a bit of a hassle also not having those methods.  However I
do much of my work with UiBinding,
so I just used an  tag and on the code side an ImageElement and
was able to set the alt text.

On Mar 5, 1:54 pm, Thad  wrote:
> These methods were announced with v.2.0.1 (http://groups.google.com/
> group/google-web-toolkit/browse_thread/thread/e292666b63d182b3/
> e0c63a5767b81b3c).
> However as of 2.0.3, they are still not there.
>
> I see they are in the trunk, but I'd rather deal with a formal
> release.  When can I expect to see them?  2.0.4?  2.1?

-- 
You received 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! Using external Javascript file

2010-03-06 Thread Amey Sakhadeo
Hi,

Ive got a JS file (test.js) located on a remote server (which not the
same as the server where my app runs).

This test.js contains a variable 'foo' that I need to access through
GWT.

For this, I first made an entry into my gwt.xml file which is
something like this:
 

help required on MenuBar

2010-03-06 Thread zbr
hi,

I am trying to use a MenuBar with  images on the left for the
different menu Items.   I looked  at the doc concerning the use of
ClientBundle etc,  with no  success at all!

any help ?


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.



Creating jar for gwt-canvas trunk version

2010-03-06 Thread amich...@gmail.com
Hello,

I was wondering if you could tell me the procedure for creating a jar
for gwt-canvas trunk version.

Amir

-- 
You received 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: Reg:problem on reload

2010-03-06 Thread Isaac Truett
Raj,

Because you're sending a new HTTP request for the current URL and re-parsing
everything. What are you expecting to happen when you hit the refresh
button?

- Isaac


On Fri, Mar 5, 2010 at 4:17 AM, raj  wrote:

> hi
>
> Whenever i refresh the GWT application either in hosted more or in
> browser mode...it calls entrypoint class...why?
>
> Regards,
> Raj.
>
> --
> You received 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.



Best GWT canvas library for linear gradients?

2010-03-06 Thread amich...@gmail.com
Hello,

Which GWT canvas library is best for linear gradients across as many
browsers as possible?

Amir

-- 
You received 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 Compiler extension points?

2010-03-06 Thread cretz
Are there any extension points in the GWT compiler? I don't need a
custom code generator, but rather I want to add an extension point in
GenerateJavaASTor some form of custom visitor on the AST. I was just
curious if anyone knew if this was present before I use some AOP or
javassist to add my own.

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



JsonpRequestBuilder and inherits?

2010-03-06 Thread a...@syd
Hi, all,

When I tried to gwt compile my code, I got:

 Line 33: No source code is available for type
com.google.gwt.jsonp.client.JsonpRequestBuilder; did you forget to
inherit a required module?

Do I need to add a line to the gwt.xml file? If so, what would that
be?

Cheers

-- 
You received 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: help required on MenuBar

2010-03-06 Thread mibtar
create an interface:

public interface Resource extends ClientBundle{
@Source("theimage.png")
ImageResource theimage();
}

place the "theimage.png" file in the same package as the interface.

to use the interface:


Resource resource = GWT.create(Resource.class);

//make the file menu
MenuBar filemenu = new MenuBar(true);
filemenu.addItem("File",  true, new Command() {
public void execute() {
//what to do
}
});
filemenu.addItem("Open",  true, new Command() {
public void execute() {
//what to do
}
});
filemenu.addItem("Save",  true, new Command() {
public void execute() {
//what to do
}
});


//add the file menu to the menubar
MenuBar bar = new MenuBar();
bar.addItem("File", filemenu);

RootPanel.get().add(bar);


this is a pretty crude way to do it, but it works.

you can check MenuBar(boolean vertical, MenuBar.Resources resources)
in the documentation
i think that how you're supposed to use images, but i haven't tried it
yet.

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

2010-03-06 Thread Jrad
Howdy all,
Consider a scenario in which we have some GWT apps (each contain some
modules) on the same host.
We are going to develop a portal-like (= concept of a UI viewpoint to
our GWT modules NOT an Enterprise Portal) app on the same host that
can gather all our GWT apps under the same theme and UI. (GWT apps are
UI snippets or our logics each)
My question is:
Does GWT provide any library or framework code to do this in design
time? ( I mean we can see and access our GWT apps as widget objects in
development time?) With this we can send some generic control messages
to the apps/widgets that are pre-written in another project and hosted
in the same host.

I guess the answer is NO, since the only way to recognize and use a
GWT app in our portal is the .nocache.js bootstraper file which u can
embed in your portal at runtime!? huh? any patterns? workarounds?

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



FileUpload widget trouble

2010-03-06 Thread Victor Llorens
Hi all,

I have a FileUpload and a Button in a GridPanel.
Once Button is clicked I submit the form.

Analyzing HTTP Traffic, I can see that Post data is void... no file is
sent.

Does some body know what could be the reason?


I attach some info:

POST /TFC_Server_unstable/AppReceiver HTTP/1.1
Host: localhost:8080
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.89 Safari/532.5
Referer: http://localhost:8080/TFC_Server_unstable/?gwt.codesvr=127.0.0.1:9997
Content-Length: 44
Cache-Control: max-age=0
Origin: http://localhost:8080
Content-Type: multipart/form-data; boundary=
WebKitFormBoundary1I85m0l32DvdcUiI
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/
plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Cookie: JSESSIONID=E576D094A24EE9FEF71DA7EF0FDC7801
Accept-Language: es-ES,es;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

--WebKitFormBoundary1I85m0l32DvdcUiI--



Code:

Grid panel = new Grid(5,2);
final FormPanel form = new FormPanel();
form.setWidget(panel);


form.setEncoding(FormPanel.ENCODING_MULTIPART);
form.setMethod(FormPanel.METHOD_POST);
form.setAction("/TFC_Server_unstable/AppReceiver");


// Create a FileUpload widget.
FileUpload fuAppSrcZip = new FileUpload();
fuAppSrcZip.setName("uploadFile");
panel.setWidget(0,1,fuAppSrcZip);

btnPreviousStep = new Button("Previous Step");
btnNextStep = new Button("Upload and save everything");
btnNextStep.setEnabled(false);
panel.setWidget(1,0,btnPreviousStep);
panel.setWidget(1,1,btnNextStep);

add(panel);

// handlers

fuAppSrcZip.addChangeHandler(new ChangeHandler() {

@Override
public void onChange(ChangeEvent event) {
btnNextStep.setEnabled(true);
}
});

btnNextStep.addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
System.out.println(form.getAction());

form.submit();
}
});
btnPreviousStep.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
controller.previousStep();
}
});

// Add an event handler to the form.
form.addSubmitHandler(new SubmitHandler() {
@Override
public void onSubmit(SubmitEvent event) {
controller.aplicationSubmitStart();
}
});
form.addSubmitCompleteHandler(new
FormPanel.SubmitCompleteHandler() {
@Override
public void onSubmitComplete(SubmitCompleteEvent event) {
controller.applicationSubmitComplete();
}
});


Thnx in advance!

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



Creating nice forms using gwt

2010-03-06 Thread Vik
Hie

I want to create a form in gwt with exact look and feel as
http://www.sakshum.com/ui/page/DonorRegister.jsp

Is it possible?: If yes please guide.


Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.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: Creating nice forms using gwt

2010-03-06 Thread Gal Dolber
Take a look at this https://addons.mozilla.org/es-ES/firefox/addon/1843 and
this http://www.google.com.ar/search?sourceid=chrome&ie=UTF-8&q=css plus 20
minutes and its done

2010/3/7 Vik 

> Hie
>
> I want to create a form in gwt with exact look and feel as
> http://www.sakshum.com/ui/page/DonorRegister.jsp
>
> Is it possible?: If yes please guide.
>
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.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.



يريد/تريد خليل بولو الدردشة معك

2010-03-06 Thread خليل بولو
---
هناك رغبة من خليل بولو  في البقاء على اتصال بشكل أفضل باستخدام أبرع
منتجات Google الجديدة.

فإذا كان لديك Gmail أو برنامج Google Talk من قبل، فانتقل إلى الرابط:
http://mail.google.com/mail/b-cb010344a9-ecffe9fc29-9be8e426d454e351
يجب النقر على هذا الرابط كي تتمكن من الدردشة مع خليل بولو .

للحصول على Gmail - وهو حساب مجاني للبريد الإلكتروني من Google بسعة
تخزينية تزيد عن 2800 ميغابايت - والدردشة مع خليل بولو ، فانتقل إلى
الرابط:
http://mail.google.com/mail/a-cb010344a9-ecffe9fc29-9be8e426d454e351

يقدم Gmail:
- المراسلة الفورية مباشرةً من داخل التطبيق Gmail
- حماية قوية ضد الرسائل غير المرغوب فيها
- بحث مدمج للعثور على الرسائل وطريقة للمساعدة في تنظيم
  الرسائل الإلكترونية إلى "محادثات"
- لا ظهور لإعلانات النوافذ المنبثقة أو إعلانات بانر غير المستهدفة -
فقط ستظهر الإعلانات النصية والمعلومات ذات الصلة
  المتعلقة بمحتوى رسائلك

مع كل هذه الميزات، يتم تقديم هذا المنتج لك مجانًا. ولكن انتظر، فهناك
المزيد! إذا فتحت حسابًا في Gmail
، فستتمكن كذلك من الدخول إلى برنامج Google Talk، وإلى خدمة المراسلة
الفورية من Google:

http://www.google.com/talk/

يقدم Google Talk:
- دردشة عبر الويب يمكنك إجراؤها من أي مكان، بدون أية عملية تنزيل
- قائمة جهات اتصال تتم مزامنتها مع حساب Gmail
- مكالمات هاتفية من كمبيوتر إلى كمبيوتر بالمجان تتسم بجودتها العالية
أثناء تنزيلك برنامج
  Google Talk

نحن نعمل بجد لإضافة ميزات جديدة وإجراء تحسينات، لذلك قد نطلب الحصول
على عن تعليقاتك واقتراحاتك بشكل دوري أيضًا. ونحن نقدر مساعدتك في تحسين
أداء منتجاتنا!

شكرًا,
فريق Google

لمعرفة المزيد عن Gmail وGoogle Talk، انتقل إلى:
http://mail.google.com/mail/help/intl/ar/about.html
http://www.google.com/talk/about.html

(إذا لم ينجح النقر على عناوين URL في هذه الرسالة، فانسخها والصقها في
شريط العناوين بمتصفحك).

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

2010-03-06 Thread Vik
Hie

I know about using css and i have firebug with me.
But how to create a equivalent layout in gwt using its components?


Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Sun, Mar 7, 2010 at 11:49 AM, Gal Dolber  wrote:

> Take a look at this https://addons.mozilla.org/es-ES/firefox/addon/1843 and
> this http://www.google.com.ar/search?sourceid=chrome&ie=UTF-8&q=css plus
> 20 minutes and its done
>
> 2010/3/7 Vik 
>
>>  Hie
>>
>> I want to create a form in gwt with exact look and feel as
>> http://www.sakshum.com/ui/page/DonorRegister.jsp
>>
>> Is it possible?: If yes please guide.
>>
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> www.sakshum.com
>> www.sakshum.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.
>

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