Tuesday, November 30, 2010

Re: GWT and Gmail Drap File attachment??

Hello,
this is  done using simple JS so you could implement it yourself  for example through JSNI.
I think  i have the JS Script somewhere
let me know if you need it
Regards,
Alain

2010/12/1 Noor <bakenoor@gmail.com>
Hi, has someone been able to implement Gmail Drag File attachment and
Upload with 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

GWT and Gmail Drap File attachment??

Hi, has someone been able to implement Gmail Drag File attachment and
Upload with 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: MVP *without* UiBinder

Also about the java editor highlighting the uifields in the editor
indicating that they are not found in the associated ui.xml file. I
verified that it only happens to projects created with Spring Roo. It
is not a problem if the project is created thru Eclipse.

Joseph

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

Bug in GWT ?

I've set up a new GWT project in NetBeans 6.9 and created multiple GWT
modules I've tried adding them all in the gwt.properties file as
follows:

# The names of the modules to compile (separated by a space character)
gwt.module=com.company.MyModule1 com.company.MyModule2
com.company.MyModule3

I'm getting an error at compilation time saying that it doesn't find
the second module. Now, i can compile just fine only ONE module.
Doesn't matter which one. Is it something i'm doing wrong or it's a
bug in gwt/nbgwt ?

I also tried this:

# The names of the modules to compile (separated by a space character)
gwt.module=com.company.MyModule1
gwt.module=com.company.MyModule2
gwt.module=com.company.MyModule3*

In this case only the last module in the list gets compiled.

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

Re: MVP *without* UiBinder

hi Christian,

Thank you for the reply, here is some clarification to the questions I
have:

** no wyswug viewer & GWT Designer
I have tried the GWT Designer, and I was referring by calling it
Window Builder in my previous post. I know I can get the wyswug
viewer, but seems like it only work if the gui is created thru GWT
Designer. And by do so GWT Designer actually generate Java code
instead of generating the UiBinder files. And I have not been able to
see how to get it work on a set of UiBinder files. Please correct me
if I am doing it wrong.

** no event click navigation from the ui.xml file
This is a direct comparison between the UiBinder way and the GWT
Designer. In GWT Designer, I can view the gui and use the mouse the
navigate to associated event codes for any widgets. However, if I am
working on the ui.xml file, I can't seem to easily bring up a list of
event handler code thats associated with a particular field. I have to
actually take the uifield name, open the java view implementation
manually and look for the field there, and then do a text search to
look for the method that is marked with @UiHandler("fieldname").
Which is cumbersome compare to GWT Designer.

Please let me know if I am not utilizing the GWT eclipse plugin
correctly or there is some secret settings that I need to set to make
GWT Designer work with ui.xml files. I would love to easily bring the
editor up and assign & edit css styles with ease thru GWT Designer.

And thank you for the pointers to the other declarative technologies,
like everybody else in this field, I will look at them when I get the
time.

Thanks,
Joseph

On Nov 30, 8:54 pm, Christian Goudreau <goudreau.christ...@gmail.com>
wrote:
> > no code completion support
>
> If you're using Google plugin ecplise, you have it.
>
>  no event click navigation from the ui.xml file
>
> don't know what you mean.
>
>  no wyswug viewer
>
> Have you tried GWT designer ?
>
> assosociated java editor in eclipse all highlighting
>
> Shouldn't happen using GPE.
>
>  Using UIBinder to write what Stephen wrote:
> <g:FlowPanel>
>   <g:TextBox ui:Field="a" />
>   <g:TextBox ui:Field="b" />
> </g:FlowPanel>
>
> The the java file:
>
> @UiField
> TextBox a;
> @UiField
> TextBox b;
>
>   @Inject
>   public AdminGeneralView(final Binder uiBinder) {
>     initWidget(uiBinder.createAndBindUi(this));
>   }
>
> Well to me, it feels right. It feels web. Have you ever took a look into
> MXML ? XAML ? Well, declarative Ui style is the modern way to write Ui and
> with Gwt Designer getting better and better every day, there's no reason to
> back off from learning how to use UiBinder.
>
> Cheers,
>
>
>
>
>
>
>
>
>
> On Tue, Nov 30, 2010 at 7:36 PM, JosephLi <joseph.l...@gmail.com> wrote:
> > Hi Jeff,
>
> > Is there some special tools u are using to build utilize the UiBinder
> > way to easily build gui?
> > I tried it, but I also tried Google's latest offering on the Window's
> > Builder, which in gives me the impression that it is way more
> > efficient to build gui with. The tools directly support event click
> > code navigation right under eclipse, supports css styling directly
> > with code completion,it event supports reparsing the source to
> > regenerate the dev view in the tool in case the tool crashed and so
> > far it worked pretty good.
>
> > However when I go the UiBinder way, I got no code completion support,
> > no event click navigation from the ui.xml file, no wyswug viewer
> > without deploying the code to see what it looks like. And worst of
> > all, the assosociated java editor in eclipse all highlighting the
> > uibinder fields are not found in the ui.xml file. All these makes the
> > whole thing feel disconnected and not so well tooled compared to the
> > GWT Windows Builder. So I am wonder if I am missing something when u
> > say it helps u being productive?
>
> > Thanks
> > Joseph
>
> > On Nov 30, 5:18 pm, Jeff Larsen <larse...@gmail.com> wrote:
> > > UiBinder is at least 2-3x faster to develop with once you get the hang
> > > of it (it really isn't hard). Take the time to learn it, your code
> > > will be infinitely more readable, maintainable and manageable.
>
> > > On Nov 30, 3:52 pm, Christian Goudreau <goudreau.christ...@gmail.com>
> > > wrote:
>
> > > > Well... UiBinder is almost only made of HTML sementics, I don't see why
> > you
> > > > can't take 1 hours to learn it...
>
> > > > I made the switch 3 months after gwt 2.0 release and now, I can't live
> > > > without. It's easier, faster than it ever was before to build Ui.
>
> > > > Cheers,
>
> > > > On Tue, Nov 30, 2010 at 4:33 PM, cri <chuck.irvine...@gmail.com>
> > wrote:
> > > > > I'm in the process of trying to learn GWT 2.1 MVP. At this point we
> > > > > don't have very good knowledge of UiBinder and we're not sure that we
> > > > > want to learn and use it. I'm having trouble understanding the sample
> > > > > Hello/Goodbye application (at the GWT docs site) since it relies on
> > > > > UiBinder. More specifically, I don't know what alternate methods I
> > > > > need to use that will take the place of UiBinder functionality. Would
> > > > > someone that understands this stuff summarize what alternative
> > classes/
> > > > > methods/patterns need to be utilized that would take the place of
> > > > > UiBinder functionality used in the Hello/Goodbye sample application?
> > > > > (or in some other way clue me in?). 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
> > > > > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com><google-web-toolkit%2Bunsubs
> > cribe@googlegroups.com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > > --
> > > > Christian Goudreauwww.arcbees.com
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Christian Goudreauwww.arcbees.com

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

Re: How to prevent CSRF/XSRF when using RequestFactory

Hi Daniel,

I haven't tested it yet, but I believe you can extend
DefaultRequestTransport as discussed in this thread to set a request
header containing your session ID or other XSRF token:

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e835c3153bc62f4c/751df0dc6aa7eb40?lnk=gst&q=entitymanagerfactory#751df0dc6aa7eb40

HTH,
/dmc

On Tue, Nov 30, 2010 at 10:38 PM, Daniel Cowx <daniel.cowx@gmail.com> wrote:
> Hi guys,
>
> I've been using GWT-RPC up until this point, but would like to make
> the switch to RequestFactory shortly. I'm a bit confused as to how to
> prevent CSRF/XSRF with RequestFactory though.
>
> As per http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ,
> up to this point I've been sending the session ID within the *payload*
> of each RPC. Works great. Should I be doing something similar with
> RequestFactory? Any and all suggestions greatly welcome!
>
> Thanks,
> Daniel
>
> --
> You received 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+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

--
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT Designer UiBinder can not accept Arabic text.

1) Make sure that you are using the latest GWT Designer 8.1 build

http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html

2) Check the ui.xml properties in Eclipse and make sure that the file
is set to use the UTF-8 charset.

On Nov 28, 6:31 am, "sab...@gmail.com" <sab...@gmail.com> wrote:
> When I use GWT Designer (UiBinder) and write Arabic in label or button
> text property the designer replace the text with things like this:
> &#1576;&#1587;&#1605; &#1575;&#1604;&#1604;&#1607;
>
> the GWT Designer (Java UI) work OK.
>
> Thank yo.

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

How to prevent CSRF/XSRF when using RequestFactory

Hi guys,

I've been using GWT-RPC up until this point, but would like to make
the switch to RequestFactory shortly. I'm a bit confused as to how to
prevent CSRF/XSRF with RequestFactory though.

As per http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ,
up to this point I've been sending the session ID within the *payload*
of each RPC. Works great. Should I be doing something similar with
RequestFactory? Any and all suggestions greatly welcome!

Thanks,
Daniel

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

debug sending email

Hi,

is it possible to send emails by running application in development
mode.

Every time a change some code in my mailing code section, I need to
upload to HOST and run from there.

This is a real pain, or I am I doing something wrong?

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

Re: CellTable with only div's?

You could extend CellTable and override the protected renderRowValues() method to render the Cells using divs.  You can also override CellList, but CellTable already has the API to add Columns, if you want to use them.  Alternatively, you could override AbstractHasData and just use CellList/CellTable as examples.

Thanks,
John LaBanca
jlabanca@google.com


On Tue, Nov 30, 2010 at 6:23 PM, Ed <post2edbras@gmail.com> wrote:
I want to make a CellTable but without the HTML table, so basically a
table that consists of only div's.

Any advice on how to do this?
(maybe extending the CellList class ?)

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

Re: Calling RPC

If you want server --> server communication using GWT RPC, gwt-
syncproxy is what you need.


On Nov 15, 6:50 pm, Raju <rajus...@gmail.com> wrote:
> Hi,
>
> I am new to GWT and had a requirement.
> I have two applications running on two different servers.
> And i need to make an asynchronous call from one application to the
> other.
> Is it possible to call the Remote Procedure of one application running
> on a different server from a different application running on a
> different server?
>
> If so please let me know.
>
> Thanks in advance.
>
> Raju

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

Re: MVP *without* UiBinder

no code completion support
If you're using Google plugin ecplise, you have it.

 no event click navigation from the ui.xml file
don't know what you mean.

 no wyswug viewer
Have you tried GWT designer ?

assosociated java editor in eclipse all highlighting
Shouldn't happen using GPE. 

 Using UIBinder to write what Stephen wrote:
<g:FlowPanel>
  <g:TextBox ui:Field="a" />
  <g:TextBox ui:Field="b" />
</g:FlowPanel>

The the java file:

@UiField
TextBox a;
@UiField
TextBox b;

  @Inject
  public AdminGeneralView(final Binder uiBinder) {
    initWidget(uiBinder.createAndBindUi(this));
  }

Well to me, it feels right. It feels web. Have you ever took a look into MXML ? XAML ? Well, declarative Ui style is the modern way to write Ui and with Gwt Designer getting better and better every day, there's no reason to back off from learning how to use UiBinder.

Cheers,

On Tue, Nov 30, 2010 at 7:36 PM, JosephLi <joseph.li22@gmail.com> wrote:
Hi Jeff,

Is there some special tools u are using to build utilize the UiBinder
way to easily build gui?
I tried it, but I also tried Google's latest offering on the Window's
Builder, which in gives me the impression that it is way more
efficient to build gui with. The tools directly support event click
code navigation right under eclipse, supports css styling directly
with code completion,it event supports reparsing the source to
regenerate the dev view in the tool in case the tool crashed and so
far it worked pretty good.

However when I go the UiBinder way, I got no code completion support,
no event click navigation from the ui.xml file, no wyswug viewer
without deploying the code to see what it looks like. And worst of
all, the assosociated java editor in eclipse all highlighting the
uibinder fields are not found in the ui.xml file. All these makes the
whole thing feel disconnected and not so well tooled compared to the
GWT Windows Builder. So I am wonder if I am missing something when u
say it helps u being productive?


Thanks
Joseph


On Nov 30, 5:18 pm, Jeff Larsen <larse...@gmail.com> wrote:
> UiBinder is at least 2-3x faster to develop with once you get the hang
> of it (it really isn't hard). Take the time to learn it, your code
> will be infinitely more readable, maintainable and manageable.
>
> On Nov 30, 3:52 pm, Christian Goudreau <goudreau.christ...@gmail.com>
> wrote:
>
>
>
> > Well... UiBinder is almost only made of HTML sementics, I don't see why you
> > can't take 1 hours to learn it...
>
> > I made the switch 3 months after gwt 2.0 release and now, I can't live
> > without. It's easier, faster than it ever was before to build Ui.
>
> > Cheers,
>
> > On Tue, Nov 30, 2010 at 4:33 PM, cri <chuck.irvine...@gmail.com> wrote:
> > > I'm in the process of trying to learn GWT 2.1 MVP. At this point we
> > > don't have very good knowledge of UiBinder and we're not sure that we
> > > want to learn and use it. I'm having trouble understanding the sample
> > > Hello/Goodbye application (at the GWT docs site) since it relies on
> > > UiBinder. More specifically, I don't know what alternate methods I
> > > need to use that will take the place of UiBinder functionality. Would
> > > someone that understands this stuff summarize what alternative classes/
> > > methods/patterns need to be utilized that would take the place of
> > > UiBinder functionality used in the Hello/Goodbye sample application?
> > > (or in some other way clue me in?). 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
> > > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > Christian Goudreauwww.arcbees.com

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




--
Christian Goudreau

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

How to load data BEFORE showing view/presenter?

Hi.

If you poke around some of Google's GWT apps, you'll find that when
you click on anything which requires more data to be loaded, that a
'loading' sign is displayed at the top of the screen, and while
loading, it stays on the current view, and then when the data for the
next view has been downloaded, the loading sign is removed and the new
view is shown.

How can I implement this behavior?

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

Re: Get a PDF from the Server



On Tue, Nov 30, 2010 at 5:42 PM, Sean <sloughran@gmail.com> wrote:
Thank you both, I realized that I could do less parameters passed and
just fetch the data from the DB again. I'm very close, but I'm running
into an odd problem. In the Request Builder I pass two arguments like:
 RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,"/
servlets/celticlock/print?user=DrunkMc&weekNum=12");

When I get to the HttpServelet I am able to do:
String user = p_request.getParameter("user");
int weekNum = Integer.valueOf(p_request.getParameter("weekNum"));

However, the doGet method seems to be called twice and the second time
the request is missing those values. Have you guys run into that
problem?

No, but I don't do server-side Java. FWIW, this sounds like pilot error. A few judiciously placed break-points or logging statements will prove me wrong.

pudipudi,
jec

On Nov 30, 5:42 pm, Jeff Chimene <jchim...@gmail.com> wrote:
> On 11/30/2010 02:52 PM, Sean wrote:
>
> > Hi, I apologize in advance, I am extremely new to HttpServelet and
> > RequestBuilders, so if this is a dumb question, I apologize. I
> > typically just work with RPC's, but I don't think this will work in
> > this case.
>
> > I have the user select a bunch of options from the website, then I hit
> > publish, and it sends the data to the server (using serializable
> > objects, not Strings) and on the server a PDF is generated, and I want
> > to return the PDF. I can send the objects, make the PDF, but I can't
> > return it using RPC's.
>
> That's correct.
>
> If you search the list, this has been discussed many times. You'll
> probably want to post the raw data to the server, then enable a "get the
> results" button after generating the PDF. But, I don't know the user
> requirements.
>
> I've also done the following: establish an invisible frame with a NULL
> URL then on a certain state change in the main UI: 1) change that
> frame's url to the generated PDF, and 2) make the frame visible.
>
> > After googling a bunch, it seems I should be using a RequestBuilder
> > with an HttpServlet on the Server side. However, it seems you really
> > can't send much data with the request, just a single string. Am I
> > supposed to encode all the data into one string and then decode it on
> > the other side? That seems like a huge hassle, one I will have to re-
> > do for every Servlet, compared to RPC's.
>
> > For example, I am sending a bunch of SoftballGame objects. Each with
> > their home team, away Team, time and which team is selected to win. I
> > don't want to have to encode the team names, as well as the time and
> > selection into a string, and then do that for all the games.
>
> That's one solution. The other is to establish a server session,
> incrementally accumulate each team's info, then publish it on demand.
>
> > What's the proper way to attack this?
>
> There is no "proper way". You just have to be aware that you can't
> retrieve a PDF file like you would any other RPC response. If
> implementing solutions to that limitation is what you mean by "proper"
> (as opposed to accumulating the team data), then the "proper way" is to
> use a GET to a URL that returns data encoded as an "application/pdf"
> mime type. I prefer a GET to a POST, as my users might want to bookmark
> the URL, and I  will not send data that cannot be encoded in the 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Get a PDF from the Server

Thank you both, I realized that I could do less parameters passed and
just fetch the data from the DB again. I'm very close, but I'm running
into an odd problem. In the Request Builder I pass two arguments like:
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,"/
servlets/celticlock/print?user=DrunkMc&weekNum=12");

When I get to the HttpServelet I am able to do:
String user = p_request.getParameter("user");
int weekNum = Integer.valueOf(p_request.getParameter("weekNum"));

However, the doGet method seems to be called twice and the second time
the request is missing those values. Have you guys run into that
problem?

On Nov 30, 5:42 pm, Jeff Chimene <jchim...@gmail.com> wrote:
> On 11/30/2010 02:52 PM, Sean wrote:
>
> > Hi, I apologize in advance, I am extremely new to HttpServelet and
> > RequestBuilders, so if this is a dumb question, I apologize. I
> > typically just work with RPC's, but I don't think this will work in
> > this case.
>
> > I have the user select a bunch of options from the website, then I hit
> > publish, and it sends the data to the server (using serializable
> > objects, not Strings) and on the server a PDF is generated, and I want
> > to return the PDF. I can send the objects, make the PDF, but I can't
> > return it using RPC's.
>
> That's correct.
>
> If you search the list, this has been discussed many times. You'll
> probably want to post the raw data to the server, then enable a "get the
> results" button after generating the PDF. But, I don't know the user
> requirements.
>
> I've also done the following: establish an invisible frame with a NULL
> URL then on a certain state change in the main UI: 1) change that
> frame's url to the generated PDF, and 2) make the frame visible.
>
> > After googling a bunch, it seems I should be using a RequestBuilder
> > with an HttpServlet on the Server side. However, it seems you really
> > can't send much data with the request, just a single string. Am I
> > supposed to encode all the data into one string and then decode it on
> > the other side? That seems like a huge hassle, one I will have to re-
> > do for every Servlet, compared to RPC's.
>
> > For example, I am sending a bunch of SoftballGame objects. Each with
> > their home team, away Team, time and which team is selected to win. I
> > don't want to have to encode the team names, as well as the time and
> > selection into a string, and then do that for all the games.
>
> That's one solution. The other is to establish a server session,
> incrementally accumulate each team's info, then publish it on demand.
>
> > What's the proper way to attack this?
>
> There is no "proper way". You just have to be aware that you can't
> retrieve a PDF file like you would any other RPC response. If
> implementing solutions to that limitation is what you mean by "proper"
> (as opposed to accumulating the team data), then the "proper way" is to
> use a GET to a URL that returns data encoded as an "application/pdf"
> mime type. I prefer a GET to a POST, as my users might want to bookmark
> the URL, and I  will not send data that cannot be encoded in the 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: MVP *without* UiBinder

Hi Jeff,

Is there some special tools u are using to build utilize the UiBinder
way to easily build gui?
I tried it, but I also tried Google's latest offering on the Window's
Builder, which in gives me the impression that it is way more
efficient to build gui with. The tools directly support event click
code navigation right under eclipse, supports css styling directly
with code completion,it event supports reparsing the source to
regenerate the dev view in the tool in case the tool crashed and so
far it worked pretty good.

However when I go the UiBinder way, I got no code completion support,
no event click navigation from the ui.xml file, no wyswug viewer
without deploying the code to see what it looks like. And worst of
all, the assosociated java editor in eclipse all highlighting the
uibinder fields are not found in the ui.xml file. All these makes the
whole thing feel disconnected and not so well tooled compared to the
GWT Windows Builder. So I am wonder if I am missing something when u
say it helps u being productive?


Thanks
Joseph


On Nov 30, 5:18 pm, Jeff Larsen <larse...@gmail.com> wrote:
> UiBinder is at least 2-3x faster to develop with once you get the hang
> of it (it really isn't hard). Take the time to learn it, your code
> will be infinitely more readable, maintainable and manageable.
>
> On Nov 30, 3:52 pm, Christian Goudreau <goudreau.christ...@gmail.com>
> wrote:
>
>
>
> > Well... UiBinder is almost only made of HTML sementics, I don't see why you
> > can't take 1 hours to learn it...
>
> > I made the switch 3 months after gwt 2.0 release and now, I can't live
> > without. It's easier, faster than it ever was before to build Ui.
>
> > Cheers,
>
> > On Tue, Nov 30, 2010 at 4:33 PM, cri <chuck.irvine...@gmail.com> wrote:
> > > I'm in the process of trying to learn GWT 2.1 MVP. At this point we
> > > don't have very good knowledge of UiBinder and we're not sure that we
> > > want to learn and use it. I'm having trouble understanding the sample
> > > Hello/Goodbye application (at the GWT docs site) since it relies on
> > > UiBinder. More specifically, I don't know what alternate methods I
> > > need to use that will take the place of UiBinder functionality. Would
> > > someone that understands this stuff summarize what alternative classes/
> > > methods/patterns need to be utilized that would take the place of
> > > UiBinder functionality used in the Hello/Goodbye sample application?
> > > (or in some other way clue me in?). 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
> > > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > Christian Goudreauwww.arcbees.com

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

css & rendering difference on windows vs linux

We are developing application using GWT2.1 and application will be
deployed on Weblogic 10.3 server.
One of our screen uses DiscloserPanel. Content section has one
Horizontal panel which in turn has 3 flow panels that has borders.
When i run application in dev mode i see expected results. Then i gwt
compiled application and deployed war file to my local Weblogic
instance on windows, I get same results (as expected). But when i
deploy same war file to Linux weblogic server, I see some differences
in rendering (css differences). Flow panel borders should be collapsed
but ther has some spacing etc.. In all instances I am accessing
application from same browser.

What could there be css/rendering differences when same war file is
deployed on 2 diff OS .?
Any help would be greatly appriciated.


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

Re: MVP *without* UiBinder

> gain, if anyone can summarize the necessary alternatives to the
> UiBinder content in MVP it would be a huge help.

You do everything the same, your presenter doesn't change, your
view/display interface doesn't change, you just create and wire your
widgets together manually in your view implementation. E.g.:

class MyView implements MyDisplay {
private FlowPanel p = new FlowPanel();
private TextBox a = new TextBox();
private Textbox b = new TextBox();

public MyView() {
// do manual layout here
p.add(a);
p.add(b);
}

public IsWidget asWidget() { return p; }

public HasText a() { return a; }

public HasText b() { return b; }
}

Your presenter then gets the MyDisplay implementation however
it would otherwise with a uibinder impl, pokes at it with the
a() and b() display interface methods, and is none the wiser
that you did/did not use uibinder in the view.

- Stpehen

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

CellTable with only div's?

I want to make a CellTable but without the HTML table, so basically a
table that consists of only div's.

Any advice on how to do this?
(maybe extending the CellList class ?)

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

Re: MVP *without* UiBinder

Thanks for the advice and we probably will seriously consider using
UiBinder. However, that said, my problem at the moment is
understanding GWT 2.1 MVP. I'd really like to understand what it takes
to build a minimal application. Since the MVP docs are a little
sparse, the UiBinder stuff is getting in the way of understanding the
MVP. I do at this point understand well the material in the "Large
scale application development and MVP" tutorials. However, GWT MVP
appears to be very different, at least in regard to the specific
classes used. Again, if anyone can summarize the necessary
alternatives to the UiBinder content in MVP it would be a huge help.
Meanwhile I'll do my best to slog through it. Thanks

On Nov 30, 4:18 pm, Jeff Larsen <larse...@gmail.com> wrote:
> UiBinder is at least 2-3x faster to develop with once you get the hang
> of it (it really isn't hard). Take the time to learn it, your code
> will be infinitely more readable, maintainable and manageable.
>
> On Nov 30, 3:52 pm, Christian Goudreau <goudreau.christ...@gmail.com>
> wrote:
>
>
>
>
>
>
>
> > Well... UiBinder is almost only made of HTML sementics, I don't see why you
> > can't take 1 hours to learn it...
>
> > I made the switch 3 months after gwt 2.0 release and now, I can't live
> > without. It's easier, faster than it ever was before to build Ui.
>
> > Cheers,
>
> > On Tue, Nov 30, 2010 at 4:33 PM, cri <chuck.irvine...@gmail.com> wrote:
> > > I'm in the process of trying to learn GWT 2.1 MVP. At this point we
> > > don't have very good knowledge of UiBinder and we're not sure that we
> > > want to learn and use it. I'm having trouble understanding the sample
> > > Hello/Goodbye application (at the GWT docs site) since it relies on
> > > UiBinder. More specifically, I don't know what alternate methods I
> > > need to use that will take the place of UiBinder functionality. Would
> > > someone that understands this stuff summarize what alternative classes/
> > > methods/patterns need to be utilized that would take the place of
> > > UiBinder functionality used in the Hello/Goodbye sample application?
> > > (or in some other way clue me in?). 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
> > > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > Christian Goudreauwww.arcbees.com

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

Best practises in automatic test and deployment

Hi,

I am using GWT now for half a year now and the project is growing and
growing. Now I am looking for some good tools which help me with
deploying my application automaticly in a tomcat test server and later
on the production server. For now I am doing this with the build
artifacts function of IntelliJ which is good but not what i am looking
for.

I already found tools like maven and Hudson CI which could help me
with that.

What I am still missing is a automatic way of generating war files
which are deployed on the test server(with different properties like
db connection and user) and after the commitment from the test team it
will deployed on the production server automaticly. Is there something
or can this handled by maven as well? Furhter i am looking for an
automatic way of running our sql files when they changed on the db
server before deploying the gwt application.

I am not very familiar with these kind of tools so I thought it would
be a good idea to ask you guys as this should be a challenge for some
of you.

Thanks a lot,
Mark

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

Re: HorizontalPanel align in uibinder......

Why use HorizontalPanel instead of just using an HTML table?

On Nov 30, 4:36 pm, Craig <yavinm...@gmail.com> wrote:
> Change the width of the first cell from 80px to 100% to move all the
> buttons to the right.
>
> On Nov 29, 7:35 am, Baloe <nielsba...@gmail.com> wrote:
>
> > Hi all,
>
> > I want to display three buttons at the right of a horizontalpanel, and
> > then I'll add something on the left. But first, how do I get these
> > buttons at the right? I've read somewhere to put the in a cel, but it
> > doesn't matter.
> > Setting a stylename, setting the horizontalalignment on the cell (or
> > the button), setting the style on the cell, nothing is displayed in
> > the browser, as if I didn't type it. What's wrong?
>
> > <ui:style>
> >                 .subpanel { // the subpanel is completely ignored  (looking at
> > firebug)
> >                         text-align: right;
> >                         float: right;
> >                         align: right;
> >                 }
> > </ui:style>
> >         <g:HorizontalPanel width="100%">
> >                 <g:cell width="80px" horizontalAlignment="ALIGN_RIGHT" // the
> > horizontalAlignment is ignored
> >                         style="text-align:right;" // the style is ignored (looking at
> > firebug)
> >                         styleName="{style.subpanel}"> // the
> > stylename  is ignored (looking at firebug)
> >                         <g:Button ui:field="buttonAdd" text="{i18n.add}" />
> >                 </g:cell>
> >                 <g:cell width="80px" horizontalAlignment="ALIGN_RIGHT">
> >                         <g:Button ui:field="buttonDelete" text="{i18n.delete}" />
> >                 </g:cell>
> >                 <g:cell width="80px" horizontalAlignment="ALIGN_RIGHT">
> >                         <g:Button ui:field="buttonEdit" text="{i18n.edit}" />
> >                 </g:cell>
> >         </g:HorizontalPanel>
> > ......

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

Re: Get a PDF from the Server

On 11/30/2010 02:52 PM, Sean wrote:
> Hi, I apologize in advance, I am extremely new to HttpServelet and
> RequestBuilders, so if this is a dumb question, I apologize. I
> typically just work with RPC's, but I don't think this will work in
> this case.
>
> I have the user select a bunch of options from the website, then I hit
> publish, and it sends the data to the server (using serializable
> objects, not Strings) and on the server a PDF is generated, and I want
> to return the PDF. I can send the objects, make the PDF, but I can't
> return it using RPC's.

That's correct.

If you search the list, this has been discussed many times. You'll
probably want to post the raw data to the server, then enable a "get the
results" button after generating the PDF. But, I don't know the user
requirements.

I've also done the following: establish an invisible frame with a NULL
URL then on a certain state change in the main UI: 1) change that
frame's url to the generated PDF, and 2) make the frame visible.

> After googling a bunch, it seems I should be using a RequestBuilder
> with an HttpServlet on the Server side. However, it seems you really
> can't send much data with the request, just a single string. Am I
> supposed to encode all the data into one string and then decode it on
> the other side? That seems like a huge hassle, one I will have to re-
> do for every Servlet, compared to RPC's.
>
> For example, I am sending a bunch of SoftballGame objects. Each with
> their home team, away Team, time and which team is selected to win. I
> don't want to have to encode the team names, as well as the time and
> selection into a string, and then do that for all the games.

That's one solution. The other is to establish a server session,
incrementally accumulate each team's info, then publish it on demand.

> What's the proper way to attack this?

There is no "proper way". You just have to be aware that you can't
retrieve a PDF file like you would any other RPC response. If
implementing solutions to that limitation is what you mean by "proper"
(as opposed to accumulating the team data), then the "proper way" is to
use a GET to a URL that returns data encoded as an "application/pdf"
mime type. I prefer a GET to a POST, as my users might want to bookmark
the URL, and I will not send data that cannot be encoded in the 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: How can I declaratively I18N a g:Button title attribute?

Well that was easy...
This works;
<g:Button ui:field="emailButton"
addStyleNames="mailButton" title="Send a link to this topic">
<ui:attribute name='title'
description='toEmailTooltip' />
</g:Button>

On Nov 30, 4:45 pm, Blackberet <ramonjsanti...@gmail.com> wrote:
> Instead of
>
> <g:Button ui:field="myButton" addStyleNames="myButtonStyle"
> title="myButton Tooltip">
>     <ui:msg description='previous'>
>         Previous
>     </ui:msg>
>  </g:Button>
>
> is there a way to do something like this?
>
> <g:Button ui:field="myButton" addStyleNames="myButtonStyle">
>    <ui:attribute name="title>
>         <ui:msg description='previousTooltip'>
>             Previous Topic
>         </ui:msg>
>     </ui:attribute>
>
>     <ui:msg description='previous'>
>         Previous
>     </ui:msg>
>  </g:Button>

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

Re: HorizontalPanel align in uibinder......

Change the width of the first cell from 80px to 100% to move all the
buttons to the right.


On Nov 29, 7:35 am, Baloe <nielsba...@gmail.com> wrote:
> Hi all,
>
> I want to display three buttons at the right of a horizontalpanel, and
> then I'll add something on the left. But first, how do I get these
> buttons at the right? I've read somewhere to put the in a cel, but it
> doesn't matter.
> Setting a stylename, setting the horizontalalignment on the cell (or
> the button), setting the style on the cell, nothing is displayed in
> the browser, as if I didn't type it. What's wrong?
>
> <ui:style>
>                 .subpanel { // the subpanel is completely ignored  (looking at
> firebug)
>                         text-align: right;
>                         float: right;
>                         align: right;
>                 }
> </ui:style>
>         <g:HorizontalPanel width="100%">
>                 <g:cell width="80px" horizontalAlignment="ALIGN_RIGHT" // the
> horizontalAlignment is ignored
>                         style="text-align:right;" // the style is ignored (looking at
> firebug)
>                         styleName="{style.subpanel}"> // the
> stylename  is ignored (looking at firebug)
>                         <g:Button ui:field="buttonAdd" text="{i18n.add}" />
>                 </g:cell>
>                 <g:cell width="80px" horizontalAlignment="ALIGN_RIGHT">
>                         <g:Button ui:field="buttonDelete" text="{i18n.delete}" />
>                 </g:cell>
>                 <g:cell width="80px" horizontalAlignment="ALIGN_RIGHT">
>                         <g:Button ui:field="buttonEdit" text="{i18n.edit}" />
>                 </g:cell>
>         </g:HorizontalPanel>
> ......

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

Re: Starting GWT dev mode within Eclipse causes Maven-managed resources to disappear

On 30 nov, 16:42, Thomas Broyer <t.bro...@gmail.com> wrote:
> I just faced that very same issue, and a coworker too!

Forgot to precise: I'm on Win XP Pro SP3, my coworker is on Ubuntu
10.10; same configuration otherwise (Eclipse, m2eclipse, GPE)

> Eclipse 3.6 SR1
> GPE 1.4.0
> Maven projects using m2eclipse 0.10.2 with m2eclipse WTP integration.
> Launching DevMode in -noserver, with src/main/webapp as the "war"
> folder, it clears the whole src/main/webapp folder with the exception
> of the WEB-INF/ folder, and it creates a subfolder where it puts the
> *.nocache.js, hosted.html and clear.cache.gif.
> The exact project layout is:
>  - myapp-shared: declares our GWT-RPC interfaces, depends on:
>     - gwt-servlet(scope=provided) for the RemoteService interface
>  - myapp-client: client-only code, depends on:
>    - myapp-shared(scope=provided) for the GWT-RPC interfaces
>    - myapp-shared:sources(scope=provided) so it has access to the Java
> sources
>    - gwt-user(scope=provided)
>    This is a <packaging>war</packaging> project, the GWT app is
> compiled through gwt-maven-plugin at the prepare-package stage (note
> that because of the packaging and m2eclipse, it happens to be a WTP
> project, but is not deployed by itself to any server; also, its src/
> main/webapp is completely empty)
>  - myapp-server: server-only code, implements the GWT-RPC as
> RemoteServiceServlet-s, depends on:
>    - myapp-shared, for the GWT-RPC interfaces
>    - gwt-servlet
>    - (several other maven modules)
>    This is a <packaging>jar</packaging> project
>  - myapp: this is the webapp, with <package>war</packaging>, depends
> on
>    - myapp-client(type=war), will be used automatically as an overlay
> by maven-war-plugin
>    - myapp-server
>    - guice-servlet
>    - (several other maven modules)
>    This is the WTP app that's being deployed (to a Jetty 7.x instance,
> using the Jetty WTP plugin)
>
> I'm launching the myapp-client project "as Web Application" and
> selects myapp/src/main/webapp as the "war" folder (note, myapp, not
> myapp-client; so that the *.nocache.js is created there, I refresh the
> folder and WTP automatically publishes the files to the server)
>
> Result: the src/main/webapp/myapp is correctly created with the
> *.nocache.js file, but the rest of src/main/webapp is cleared out,
> with the exception of src/main/webapp/WEB-INF.
> it even messes up with SVN, as an "svn update" (outside Eclipse, I'm
> not using subclipse) doesn't recover the missing files!

It looks like this only happens if the server is started at the time I
launch the DevMode. If it's not, the src/main/webapp/myapp subfolder
is correctly created and nothing else is touched (i.e. my index.jsp,
myapp.css, etc. are still there in src/main/webapp).

I tried using myapp/target/myapp-0.0.1-SNAPSHOT as the "war" folder
for DevMode, but it doesn't work (m2eclipse WTP doesn't seem to
publish that folder directly, which is what I expected)

(some time passes)

...and now I try back with src/main/webapp as the "war" folder and it
works, with the server started !!! (tried using a full path, and then $
{resource_loc:myapp/src/main/webapp} in the launcher, both work,
without deleting anything).
And if I stop the server and launch the DevMode, I now have a
NullPointerException. I re-start the server, launch the DevMode:
exception still there!
Restarting Eclipse fixes it.

java.lang.RuntimeException:
com.google.gwt.dev.shell.remoteui.MessageTransport$RequestException:
java.lang.NullPointerException
at
com.google.gwt.dev.shell.remoteui.ViewerServiceClient.waitForResponseOrThrowUncheckedException(ViewerServiceClient.java:
351)
at
com.google.gwt.dev.shell.remoteui.ViewerServiceClient.initialize(ViewerServiceClient.java:
256)
at
com.google.gwt.dev.shell.remoteui.RemoteUI.moduleLoadComplete(RemoteUI.java:
133)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:798)
at com.google.gwt.dev.DevMode.main(DevMode.java:282)
Caused by: com.google.gwt.dev.shell.remoteui.MessageTransport
$RequestException: java.lang.NullPointerException
at
com.google.gwt.dev.shell.remoteui.MessageTransport.processFailure(MessageTransport.java:
376)
at
com.google.gwt.dev.shell.remoteui.MessageTransport.processMessage(MessageTransport.java:
401)
at com.google.gwt.dev.shell.remoteui.MessageTransport.access
$300(MessageTransport.java:44)
at com.google.gwt.dev.shell.remoteui.MessageTransport
$3.run(MessageTransport.java:314)
at java.lang.Thread.run(Thread.java:662)

I'm lost. I'm very new to Eclipse WTP (a couple of weeks) and not much
less to Maven (5 months), so maybe it's just me; but really, I don't
understand why it worked, then deleted everything, then now works
again...

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

Re: Drag-and-drop solution with GwtQuery

Looks good. I am curious why you made it a plugin for gwtquery?

On Nov 29, 8:36 pm, zixzigma <zixzi...@gmail.com> wrote:
> WOW
> this is Fantastic !!!
>
> just looked at the demo,
> CellTable and CellTree are beyond amazing !
>
> THANK YOU !!!
>
> i am super excited,
> going to experiment with the code very soon.
>
> Super Great, Thank You very much !

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

Re: Starting GWT dev mode within Eclipse causes Maven-managed resources to disappear

On 17 nov, 15:45, Chris <crehb...@gmail.com> wrote:
> On Nov 17, 6:03 am, Thomas Broyer <t.bro...@gmail.com> wrote:
>
> > Well, if your resources are to be shared with GWT apps only, then how
> > about making a GWT module and putting them in the "public" path, so
> > the GWT compiler copies them to the output folder?
>
> Because we have 5 GWT apps using the same web resources and the point
> was to avoid duplicating them 5 times in source control.

Hence my proposal: use a GWT module with a "public" folder containing
the shared resources, and <inherits/> in all of your GWT apps. When
compiling a GWT app, everything from the public source will copied to
the app output folder (the subfolder in the "war" folder).
It might not be what you wanted though.

> > Or maybe those resources shouldn't be put into that folder to begin
> > with (it has always been the case that the <module-name> folder is
> > "GWT controlled" and always cleared by the GWT compiler before it
> > actually generates anything; it might have not always been the case
> > for DevMode but I don't see an issue with DevMode doing the same thing
> > as the compiler).
>
> This isn't a GWT compiler issue.  Nothing in this folder is generated
> by the compiler - all that goes to a subdirectory of target/<module
> name>.  Plus, this didn't happen with previous versions of GPE.  It
> started after upgrading to 1.4.0.

I just faced that very same issue, and a coworker too!
Eclipse 3.6 SR1
GPE 1.4.0
Maven projects using m2eclipse 0.10.2 with m2eclipse WTP integration.
Launching DevMode in -noserver, with src/main/webapp as the "war"
folder, it clears the whole src/main/webapp folder with the exception
of the WEB-INF/ folder, and it creates a subfolder where it puts the
*.nocache.js, hosted.html and clear.cache.gif.
The exact project layout is:
- myapp-shared: declares our GWT-RPC interfaces, depends on:
- gwt-servlet(scope=provided) for the RemoteService interface
- myapp-client: client-only code, depends on:
- myapp-shared(scope=provided) for the GWT-RPC interfaces
- myapp-shared:sources(scope=provided) so it has access to the Java
sources
- gwt-user(scope=provided)
This is a <packaging>war</packaging> project, the GWT app is
compiled through gwt-maven-plugin at the prepare-package stage (note
that because of the packaging and m2eclipse, it happens to be a WTP
project, but is not deployed by itself to any server; also, its src/
main/webapp is completely empty)
- myapp-server: server-only code, implements the GWT-RPC as
RemoteServiceServlet-s, depends on:
- myapp-shared, for the GWT-RPC interfaces
- gwt-servlet
- (several other maven modules)
This is a <packaging>jar</packaging> project
- myapp: this is the webapp, with <package>war</packaging>, depends
on
- myapp-client(type=war), will be used automatically as an overlay
by maven-war-plugin
- myapp-server
- guice-servlet
- (several other maven modules)
This is the WTP app that's being deployed (to a Jetty 7.x instance,
using the Jetty WTP plugin)

I'm launching the myapp-client project "as Web Application" and
selects myapp/src/main/webapp as the "war" folder (note, myapp, not
myapp-client; so that the *.nocache.js is created there, I refresh the
folder and WTP automatically publishes the files to the server)

Result: the src/main/webapp/myapp is correctly created with the
*.nocache.js file, but the rest of src/main/webapp is cleared out,
with the exception of src/main/webapp/WEB-INF.
it even messes up with SVN, as an "svn update" (outside Eclipse, I'm
not using subclipse) doesn't recover the missing files!

> > As a last resort, you can still use -noserver...
>
> As a last resort I can simply copy the resources back into the folder
> after GPE deletes them and before I load the app in my browser.  It
> just seems broken that GPE is deleting whatever it wants from the
> build output directory when starting Jetty.

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

Re: GWT 2.1 Activities – nesting? YAGNI ? - an example of where you NEED it !

In my opionion if you release a functionality and tell people "it's better if you use it", you have to be aware of impacts this new functionality can have on existing code.
In my opinion use of DockLayout or TabLayout / Panes is not a rare use case, think about a mail reader.
MVP approach is very good, and I think that GWT team did a great job about it, but, given implementation does not consider complex web gui.
What I find inacceptable is documentation, the last paragraph, where GWT team says:
 
"What about apps with multiple panels in the same window whose state should all be saved together in a single URL? GWT 2.1 does not attempt to provide a generic implementation of a composite Place; however, your app could create a CompositePlace, CompositeActivity, and CompositePlace.Tokenizer classes that delegate to the constituent members. In this case, only the composite objects would need to be registered with your app's ActivityMapper and PlaceHistoryMapper."
 
In my opinion if you speak about CompositePlace you should describe what you are talking about, too easy to say "yes, you could create a CompositeActivity, but do it by your own"
 
Anyway, I repeat, GWTeam did a great work about MVP and it's very useful having directly inside GWT an pattern implementation for organizing classes about guis, but in my opionion there are a lot of complex gui that difficultly can be migrated to this approach with actual solution

 

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

Child height in SplitLayoutPanel

Hello,

I've got a SplitLayoutPanel. In the North cell, I've got a ScrollPanel
with a tree on it.

I want this ScrollPanel height to be the same of the north cell, so
when the tree expand, a scroll appears. The size of this ScrollPanel
must changed when the north cell is resized.

I've tried with RequireResizes but parent does not send size
information...

I'm very confused. How to configure SplitLayoutPanel to have cell
children resized ?

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

Re: GWT 2.1 Activities – nesting? YAGNI ? - an example of where you NEED it !

I think in the case of the composite activity / composite place, you
need to define how closely realted each workspace will be. will there
be any overlap between sub/areas of one workspace and a different
workspace?

You can be careful about how you craft your composite place and how
you tokenize it into sections. one section for each area that holds
the state. then each sub area widget/activty can cache it's current
state and do a really quick check to see if the new section of the
composite place for it's area is different from its current state.

It would probably take a good deal of organizing a pattern and
wrapping your objects in the right way

On Nov 30, 6:57 am, Thomas Broyer <t.bro...@gmail.com> wrote:
> On 29 nov, 23:44, zixzigma <zixzi...@gmail.com> wrote:
>
>
>
> > the article also argued, that having the same size/fixed regions leads
> > to consistent layout.
>
> > in the case of Fixed "WIDTH", that is true.
>
> > but if your regions have sub-regions, the sizing is no longer the
> > Width, but rather the HEIGHT.
>
> > our WEST region, can have WEST_NORTH, WEST_MAIN, WEST_SOUTH,
> > and the "HEIGHT" of these sub-regions might required to be different
> > in different workspaces.
>
> > in one workspace, WEST_NORTH height could be 100px, while WEST_SOUTH
> > height is 300px, in another workspace, different Height size.
> > having different heights, while maintaining the same width, is STILL
> > CONSISTENT.
>
> > with the approach suggested in the article posted above,
> > one has to add additional West Regions, to accommodate for the use
> > case described above,
> > resulting in ActivityManagers/Mappers/Code size to grow
> > exponentially !
>
> Your "regions" are not required to have a fixed size, you're not
> required to use layout panels either. How about using SimplePanel
> widgets inside a FlowPanel, without specifying explicit sizes? That
> would work too.
>
> In your case though, I'd probably go with either:
>  - Ashton's proposal
>  - make each "workspace" it's own GWT app (if they're sufficiently
> different to deserve it)
>
> Or:
>  - do not use activities (you can still use places if you like)
>  - use activities but make your own activity manager (or whatever) to
> break the limitations and og beyond what's possible with the stock
> implementations; maybe try to use a main activitymanager to switch
> between workspaces, and then a set of activitymanager/mapper/regions
> within each workspace.
>
> There are many possibilities, and there are no one-size-fits-all.

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

Re: GWT 2.1 Activities – nesting? YAGNI ? - an example of where you NEED it !

Another option would be to look at a 3rd party framework. As Thomas pointed out, the GWT team isn't trying to address every use case, and that's where pulling in other frameworks can help. There's no shame in recognizing that you have a complex use case and using any tools available to help. I haven't tried them, but people often speak favorably about gwt-platform (http://code.google.com/p/gwt-platform/).

Finally, I want to point out that you may not want to affect the history for every interaction in sub-views. It's nice for bookmarking, but would make use of the browser history buttons very frustrating. You may only want to change the history token when the main subject of the activity (the thing typically in the center display) changes. You could always provide a feature to create a reliable link from the current view (like the Google maps "Link" feature). That might have the same complexity in terms of implementing your view state management, but it's still something to consider for usability.

-Brian

On Tue, Nov 30, 2010 at 6:57 AM, Thomas Broyer <t.broyer@gmail.com> wrote:


On 29 nov, 23:44, zixzigma <zixzi...@gmail.com> wrote:
> the article also argued, that having the same size/fixed regions leads
> to consistent layout.
>
> in the case of Fixed "WIDTH", that is true.
>
> but if your regions have sub-regions, the sizing is no longer the
> Width, but rather the HEIGHT.
>
> our WEST region, can have WEST_NORTH, WEST_MAIN, WEST_SOUTH,
> and the "HEIGHT" of these sub-regions might required to be different
> in different workspaces.
>
> in one workspace, WEST_NORTH height could be 100px, while WEST_SOUTH
> height is 300px, in another workspace, different Height size.
> having different heights, while maintaining the same width, is STILL
> CONSISTENT.
>
> with the approach suggested in the article posted above,
> one has to add additional West Regions, to accommodate for the use
> case described above,
> resulting in ActivityManagers/Mappers/Code size to grow
> exponentially !

Your "regions" are not required to have a fixed size, you're not
required to use layout panels either. How about using SimplePanel
widgets inside a FlowPanel, without specifying explicit sizes? That
would work too.

In your case though, I'd probably go with either:
 - Ashton's proposal
 - make each "workspace" it's own GWT app (if they're sufficiently
different to deserve it)

Or:
 - do not use activities (you can still use places if you like)
 - use activities but make your own activity manager (or whatever) to
break the limitations and og beyond what's possible with the stock
implementations; maybe try to use a main activitymanager to switch
between workspaces, and then a set of activitymanager/mapper/regions
within each workspace.

There are many possibilities, and there are no one-size-fits-all.

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

Re: "Large scale application development and MVP" tutorial / no Places or Activities

They introduce the basic concept of MVP approach, but they don't reflect GWT implementation of MVP pattern

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

Re: Using unchanged CSS class names (no obfuscation or prefixing at all)

I'm probably missing something, but how is this different than using
the "CssResource.style" property in your module's XML and setting the
value to "pretty"? Doing that results in disabling the class name
obfuscation.

You can also use the @External annotation on individual css classes to
do the same if you don't want everything in a CssResource being
unobfuscated.


On Nov 28, 5:06 am, sinelaw <jones.noa...@gmail.com> wrote:
> I've created a patch for CssResources to not change CSS class names at
> all.
>
> Details + motivation are given in the issue here:http://code.google.com/p/google-web-toolkit/issues/detail?id=5659
>
> Also, see at least one case where a developer (other than me) needed
> such a feature:
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=5659&can...
>
> Comments welcome,
> Noam Lewis
> EntireOne Inc.

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

Re: .cache.html file size got double after upgrading to GWT 2.1 from 1.7

There's probably something that's not getting pruned by the compiler
(dead code eliminated) that was before as a result of modifications
you had to make to use 2.1 or perhaps a difference in the compiler in
2.1.

I'd use the Story of Your Compile (SOYC) output to check and see
what's getting included and see if there's something that's getting
sucked in that shouldn't be.

On Nov 29, 2:45 pm, Jewel <toje...@gmail.com> wrote:
> Hi,
>
> We are developing a small application using gwt 1.7.1. The GWT
> compiler is generating .chache.html file for 6 permutation each one
> having size around 1 mega bytes. Wen we upgraded the gwt version to
> 2.1 suddenly we observed that the size of the .cache.html file got
> increased to 2.8 mega bytes for all the permutations.
>
> We are using following libraries,
>
> gxt,
> GwtFacebook,
> gwt-dnd,
> gwt-voices,
>
> I have searched over this groups but haven't got anyone with same
> problem. Does anyone have any idea, what the problem can be? We are
> not getting any clue.
>
> 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 google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Deprecated HandlerManager and svn 2.1 branch question

On 29 nov, 17:09, Andy <pula...@gmail.com> wrote:
> I'm updating my little gwt-traction library and noticed that it's
> giving compile warnings when I compile with the 2.1 jar downloaded
> fromhttp://code.google.com/webtoolkit/download.html
>
> I often build from source and looking at the 2.1 branch, it doesn't
> look deprecated:
>
> http://code.google.com/p/google-web-toolkit/source/browse/branches/2....

This is the pre-I/O branch.
GWT 2.1 is in releases/2.1 (and yes, it's misleading!)

> Question 1: What svn branch should I build to create the equivalent of
> the released jars?

GWT 2.1.0 is in tags/2.1.0

> I understand that HandlerManager is being replaced with SimpleEventBus
> but there was some discussion in September that it's still OK within
> Widgets. See herehttp://groups.google.com/group/google-web-toolkit/browse_frm/thread/4...
>
> Question 2: Should I just suppress warnings or actually change the
> HandlerManager in the Viewport code below?
>
> http://code.google.com/p/gwt-traction/source/browse/src/com/tractions...

If HandlerManager works, you can keep it (as it's still used inside
Widget, it's still fully functional). I'd however switch to a
SimpleEventBus and see what happens (FYI HandlerManager wraps a
SimpleEventBus and adds some behavior specific to handling DOM events,
and I think also some things for backwards compatibility)

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