Monday, January 31, 2011

Re: GPE + maven

It's no longer required. Since GPE 2.1, you can File | Import | Existing maven project, point it to your POM, and everything should just work.

/dmc

On Sat, Jan 29, 2011 at 3:27 PM, Thomas Broyer <t.broyer@gmail.com> wrote:
No, that's no longer required (since GPE 1.4 I believe), the GPE should no longer add the SDKs to your classpath but use the one from your Maven dependencies.

--
You received 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
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

--
You received 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: access gwt servlet via rpc ajax call

Accessing a GWT-RPC servlet from a non-GWT application is not supported. You'll end up re-implementing GWT-RPC on the client, in which case you might as well just use GWT.

For non-GWT clients, you will need to create additional servlets that produce XML or JSON instead of GWT-RPC.

/dmc

On Mon, Jan 31, 2011 at 2:21 AM, George H <george.dma@gmail.com> wrote:
bump :S


On Fri, Jan 28, 2011 at 1:41 PM, George.H <george.dma@gmail.com> wrote:
> Hi,
>
> I have a GWT application running and it contains several servlets. Our
> regular clients use a GWT client to access the servlets. We have some
> new clients that need to access the same servlets but via a very
> minimal client. Like plain javascript using ajax rpc call to retrieve
> the data.
>
> Problem I am getting is when creating the ajax rpc call using JQuery,
> I can't seem to do the following.
>
> 1. Get the "strong name" to add in the X-GWT-Permutation request
> header
> 2. The gwt-rpc data format to send to the servlet
>
> When I intercept an RPC call via firebug I see the data being sent
> back and forth looks somewhat like this
> '6|0|9|http://127.0.0.1:8888/company/|9C9DC9A25F67541F626CF723FEE3A6B2|
> com.company.mobile.client.login.service.LoginService|login|
> java.lang.String/2004016611|testUser|testPass|authcode|LOGINSRV|1|2|3|
> 4|4|5|5|5|5|6|7|8|9|'
>
> As 1 long string.
>
> So I have an ajax call like so (using the string) This actually works
> and invokes the servlet's Login method but for some reason the "error:
> function()" get executed after the callback.
>
> $(document).ready(function() {
>
>        $("a").click(function(e) {
>
>                e.preventDefault();
>
>                $.ajax({
>
>                        type: 'POST',
>
>                        url: 'http://127.0.0.1:8888/company/login',
>
>                        contentType: 'text/x-gwt-rpc; charset=utf-8',
>
>                        data: ('6|0|9|http://127.0.0.1:8888/company/|
> 9C9DC9A25F67541F626CF723FEE3A6B2|
> com.company.mobile.client.login.service.LoginService|login|
> java.lang.String/2004016611|testUser|testPass|authcode|LOGINSRV|1|2|3|
> 4|4|5|5|5|5|6|7|8|9|'),
>
>                        beforeSend: function(xhr) {
>
>                                xhr.setRequestHeader('X-GWT-Permutation', 'HostedMode');
>
>                                xhr.setRequestHeader('X-GWT-Module-Base','http://127.0.0.1:8888/
> company/');
>
>                        },
>
>                        dataType:
>
>                        success: function(data2){
>
>                                alert("Success");
>
>                                alert(data2);
>
>                        },
>
>
>
>                        error: function(data3) {
>
>                                alert("Error");
>
>                                alert(data3);
>
>                        }
>
>                });
>
>        });
>
> });
>
> Has anyone done something like this before? How can I prepare my data
> to be sent to the servlet via gwt-rpc and generate a proper X-GWT-
> Permutation string?
>
> thanks in advance to anyone who can help.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 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
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

--
You received 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: RequestFactory Example

Have a look at http://code.google.com/p/listwidget

UI isn't much to look at yet, but it illustrates use of RequestFactory with Objectify on App Engine.

/dmc

On Mon, Jan 31, 2011 at 11:36 AM, bindu <swingmicro@gmail.com> wrote:
 HI All,

Can anyone pls provide me a simple example App on Request Factory. I am newbie to this concept please help me in understanding it. I have gone through the documentation provided in code.google.com but i found it difficult to understand. it would be of great help if some one could explain with simple Example APP.

Thanks 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-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
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

--
You received 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.1 EditorFramework CellList editor using SimpleBeanEditorDriver and JSON help...

Hi, it is me again :)

Thanks Thomas for clearification. I managed to make my code properly
and to work :)

Here is method declaration in interface:

@Path("fields")
ListEditor<Fields, LeafValueEditor<Fields>> getFieldsEditor();

and here is implementation:

@Override
public ListEditor<Fields, LeafValueEditor<Fields>> getFieldsEditor()
{
return HasDataEditor.of(fields);
}

Of course, instead of returning new DataEditor every time, we should
move HasDataEditor.of(fields) to somewhere else in code, and in
getFieldsEditor() just return variable
that was assigned before.

Thanks again, hope that this will help to someone else.

On Jan 31, 5:42 pm, Thomas Broyer <t.bro...@gmail.com> wrote:
> On Monday, January 31, 2011 3:31:35 AM UTC+1, Milan Cvejic wrote:
>
> >           /* This is a part where i have problems */
> >  @Path("fields")
> >  IsEditor<ListEditor<Label, Editor<Label>>> getFieldsEditor();
>
> Keep in mind that the Editor framework is based on code generation, which
> means it depends on code inspection (kind of reflection, but at
> compile-time).
>
> Here, you tell the generator that you'll use an Editor<> of Label objects,
> but which editor exactly? is it a LeafValueEditor<Label> (and it'll generate
> the appropriate calls to setValue on edit and getValue on flush)? is it a
> ValueAwareEditor<Label> (and it'll generate the appropriate calls to
> setValue, setEditorDelegate, and flush)? is it an HasEditorDelegate (and
> it'll generate the appropriate calls to setEditorDelegate)? is it a
> HasEditorErrors (and it'll generate the appropriate calls to showErrors)?
> has it sub-editors (and which ones? so it can generate the appropriate code
> to populate and then flush them)?
>
> (note that his is also why people often don't get the Editor framework
> working with interfaces: they don't declare their sub-editors in the
> interface, and/or add more sub-editors, and/or implement a few other
> "special" interfaces on the implementation class; and they wonder why the
> Editor framework doesn't see them).
>
> In other words, you have to replace Editor<Label> with a more precise type;
> ideally the exact editor you'll use (e.g. MyLabelEditor) but a more general
> type (e.g. LeafValueEditor<Label>) can be used if you want more "loose
> coupling" (but then beware: if your "runtime" editor implements any other
> "special" interface –e.g. HasEditorErrors– that is not declared in the
> parent editor, they won't be "seen" by the Editor framework).
>
> Now as for the implementation of your method, for a CellList, use a
> HasDataEditor.of(myCellList) (but it's best to, generally lazily, only build
> one instance of HasDataEditor for your CellList and then always return it,
> rather than creating a new hasDataEditor instance each time getFieldsEditor
> is called)

--
You received 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: Found an inconsistent behaviour in GWT Expenses Roo application: Master-Detail Activities-Places becoming out of Sync !

On 1/31/2011 1:11 PM, Thomas Broyer wrote:


if we bookmark place employee/777
when navigating to place employee/777 for the first time from bookmark,
how can the master activity which contains a continuous scrolling table/list,
highlight employee with id 777 in the list, when in fact the continuous scrolling list
presents only an X number of items initially, and load the rest on demand ?



That's exactly why I said there would still be "issues". That one is a non-issue though if you ask me: in this case, just do not attempt at selecting/highlighting the employee if it's not in the list; I don't think users will even notice.

I was looking at this issue  because I have a very, very large data set to explore (maybe 10,000's of rows) and was considering that the initial fetch would be "around" the requested ID - eg in zixzigma's example employe/777 would fetch employees 750 - 800 (say). This means that the list must be capable of expanding both forwards and backwards (towards the 0th element) but I can't see any reason why thats not workable. Am I wrong?

Thanks


Alan



Re: Export CellTable's selected rows into a csv file

I'm assuming you're using a JAVA backend hence the RPC?
Which one are you using if I may ask?

You'll need to set the mimeType in the header you're sending, saw a topic on Stack Overflow some time ago, have a look at this: http://stackoverflow.com/questions/2244892/setting-content-type-in-java-for-file-download



--
Jan Vladimir Mostert
BEngSci

Mail: jan@mycee.com
MyCee Technologies


On Mon, Jan 31, 2011 at 5:22 PM, ido <iofzer@gmail.com> wrote:
Hi,

I'm about to implement a new feature in my web application, in which csv file is generated out of a selection module of a CellTable.
Use case:
my client selects rows in a CellTable --> clicks on an Export button --> download csv file. 

As I see it, these should be the actions once Export button is clicked:
1. Collect all selected objects from the selection module.
2. Send list to my server using RPC command.
3. Generate csv file out of the list.
3. "Send" the file to the client.

I've already implemented the first 3 actions , However, did not manage to find any solution for the 4th.
Just don't have any idea how can my server "send" the file to the user.

I've been looking over the net for any solution but couldn't find a thing.

Will appreciate any answer,
Thanks a lot,
Ido

--
You received 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: RequestBuilder response status code is 0?!

This is generally a sign of "Same-Origin Policy" violation, and given what your "url" variable looks like it most likely is.

--
You received 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: Found an inconsistent behaviour in GWT Expenses Roo application: Master-Detail Activities-Places becoming out of Sync !

THANK YOU !!
You have been extremely helpful,
you are truly an asset for GWT community.
Thank You !

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

I think you'll need to do something like RootPanel.get('div-name').add(myWidget)


--
Jan Vladimir Mostert
BEngSci

Mail: jan@mycee.com
MyCee Technologies


On Mon, Jan 31, 2011 at 11:12 PM, panda <vladvalica@yahoo.fr> wrote:
To be more precise, I would like to make my GWT application displaying
on a div pre-defined in my Joomla component.
How to tell GWt module to be part of a arbitrary div?

Best regards,

panda

On 31 jan, 15:07, panda <vladval...@yahoo.fr> wrote:
> Hello all,
>
> I've created a GWT module implementing the UI and some behavior based
> on events that rea easily handled in GWT. My web site is using Joomla
> 1.5. I created a Joomla component for may new functionality and I
> would like to link the view of that component to my GWT module.
>
> I've tried to copy / paste the HTML host of GWT into my Joomla
> component's view and the result is that the UI is displayed below my
> site instead of the in the place I've reserved for. The content of the
> host (HTML file from GWT module) is well present in the correct place
> if I'm doing right click -> Code source but the GWT UI is diaplyed
> below my site.
>
> How should I tell to my GWT mosule to load into a div that I may
> create with Joomla as place holder?
>
> Or, more generally, is a recommended way for integrating a GWT module
> in Joomla 1.5?
>
> Kind regards,
>
> panda

--
You received 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: GWT intégration with Joomla 1.5

To be more precise, I would like to make my GWT application displaying
on a div pre-defined in my Joomla component.
How to tell GWt module to be part of a arbitrary div?

Best regards,

panda

On 31 jan, 15:07, panda <vladval...@yahoo.fr> wrote:
> Hello all,
>
> I've created a GWT module implementing the UI and some behavior based
> on events that rea easily handled in GWT. My web site is using Joomla
> 1.5. I created a Joomla component for may new functionality and I
> would like to link the view of that component to my GWT module.
>
> I've tried to copy / paste the HTML host of GWT into my Joomla
> component's view and the result is that the UI is displayed below my
> site instead of the in the place I've reserved for. The content of the
> host (HTML file from GWT module) is well present in the correct place
> if I'm doing right click -> Code source but the GWT UI is diaplyed
> below my site.
>
> How should I tell to my GWT mosule to load into a div that I may
> create with Joomla as place holder?
>
> Or, more generally, is a recommended way for integrating a GWT module
> in Joomla 1.5?
>
> Kind regards,
>
> panda

--
You received 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: Found an inconsistent behaviour in GWT Expenses Roo application: Master-Detail Activities-Places becoming out of Sync !



On Monday, January 31, 2011 8:23:01 PM UTC+1, zixzigma wrote:
Thank You : )

your post gave me some comfort : )

Yes, the problem is related to paging, and not necessarily activity/places.
as for your opinion of master/detail,
I think it is a shame to not take advantage of the fact that we can
display master/detail side by side, without a full page reload,
something that was not possible with traditional webframework,
and is nearly possible now with AJAX/GWT, only if there comes a solution
to implement the paging correctly.

Neither GMail nor "new" Google Groups or Facebook (messages) display master/detail side by side. Yahoo! Mail only displays a preview and switches to a "full screen" view when you really "open" it (but Yahoo! Mail doesn't do "navigation" well wrt browser history).
#NewTwitter's master/detail is done in such a way that it has neither the look nor the feel of master/detail (so it doesn't integrate with the browser's history, that's part of the UX they wanted)
Hotmail defaults to no master/detail, and when you enable it, it looks like it's just a preview (like in Yahoo! Mail), but again, like Yahoo! Mail, Hotmail doesn't integrate with the browser's history (in this case, its not even AJAX, ASP.NET postbacks all along :-( )
 
regarding your suggestion on using "continuous scrolling",
I am going to investigate that now, and I believe it will work,
however my concern is this,
lets say we have a list of employees with continuous scrolling,
and next to it, we show detail of employee, when one employee is selected from the list.

if we bookmark place employee/777
when navigating to place employee/777 for the first time from bookmark,
how can the master activity which contains a continuous scrolling table/list,
highlight employee with id 777 in the list, when in fact the continuous scrolling list
presents only an X number of items initially, and load the rest on demand ?

That's exactly why I said there would still be "issues". That one is a non-issue though if you ask me: in this case, just do not attempt at selecting/highlighting the employee if it's not in the list; I don't think users will even notice.

--
You received 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: Spring ROO GWT with GIN injection on widgets created by ui:binder.

It feels like I'm working in circles, one module needs something from another module and that one needs stuff from another module etc etc etc
Here's my updated code using the container method:

RorPresenter.java

public class RorPresenter {

    private RorView view;
    public void setView(RorView view){
        this.view = view;
    }

    @Inject
    public RorPresenter(){
        bind();
    }


    public void doMyClickEvent(){
        Window.alert("FIT");
    }

    public void doYourClickEvent(){
        Window.alert("MEH");
    }

    public void bind(){}
}

RorView.java

public class RorView {

    interface Binder extends UiBinder<Widget, RorView> {}
    private static Binder BINDER = GWT.create(Binder.class);

    private RorPresenter presenter;

    @Inject
    public RorView(RorPresenter presenter){
        this.presenter = presenter;
        presenter.setView(this);
        presenter.bind();
    }

    @UiHandler("myButton")
    void onMyButtonClick(ClickEvent event){
        presenter.doMyClickEvent();
    }

    @UiHandler("yourButton")
    void onYourButtonClick(ClickEvent event){
        presenter.doYourClickEvent();
    }

}

RorContainer.java

public class RorViewContainer extends Composite {

    interface Binder extends UiBinder<Widget, RorViewContainer> {}
    private static Binder BINDER = GWT.create(Binder.class);

    @UiField(provided=true)
    RorView view;

    @Inject
    @UiConstructor
    public RorViewContainer(RorView view){
        this.view = view;
        initWidget(BINDER.createAndBindUi(this));
    }

    @UiFactory RorViewContainer makeRorViewContainer(){
        return new RorViewContainer(this.view);
    }
}

And now I use <ig:RorViewContainer  /> in the applicationscaffold's xml configu.

It doesn't like the paramaters in the constructor and the @UiFactory doesn't fix it
[ERROR] <ig:RorViewContainer> missing required attribute(s): view Element <ig:RorViewContainer> (:156)

Jeff, can I mail you my maven project sample code, it'll be easier to show the problem if you have the whole context under eyes, been struggling to bind the view and the presenter for literally weeks now, just need one working example.

Thanks
J


--
Jan Vladimir Mostert
BEngSci

Mail: jan@mycee.com
MyCee Technologies


On Mon, Jan 31, 2011 at 9:36 PM, Jeff Larsen <larsenje@gmail.com> wrote:
Sorry, I had forgotten you're using Roo. I don't have much experience with Roo/gwt but here is one way to get it done. This might not be the optimal way though since I haven't played around with the Roo/gwt framework for more than about an hour as I'm not able to use it in my current projects. 

Is the presenter generated for you by Roo or is that your own implementation? If it is your own, you could remove the Display from the constructor and add a setter for it instead. 

Here is what your uiBinder class could look like.

The only catch here is everywhere you use this, you'll have to do a


public class RorViewContainer extends Composite {

.. uibinder boilerplate...


UiField(provided=true)
RorView view;

@Inject
public RorViewContainer(RorView view){
   this.view = view;

        initWidget(uiBinder.createAndBindUi(this));
}



private RorPresenter presenter;

@Inject
RorView(RorPresenter presenter){
  this.presenter = presenter;
  presenter.setView(this);
  presenter.bind();
}

@UiHandler("myButton")
public void myButtonClick(ClickEvent event){
    presenter.doMyClickEvent();
}


@UiHandler("yourButton")

public void yourButtonClick(ClickEvent event){
  presenter.doYourClickEvent();
}

--
You received 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: RequestFactoryEditorDriver example?

When I call fire(), the object passed to the server side method (public static void persist(MyObject obj) is the original (before editing) object.

-g.

On Monday, January 31, 2011 9:42:08 PM UTC+2, Bálint Kriván wrote:
Sorry, I don't get it clearly, which returned proxy? Where do you use a returned one? Using flush() you get the Context, not the Proxy object.

On Mon, Jan 31, 2011 at 7:34 PM, George Moschovitis <george.mo...@gmail.com> wrote:
Another problem...

I tried your suggestion and it seems to work with one important problem:
the object/proxy returned is the original proxy passed to the editor and not the edited object...

any idea what might be wrong?

-g.

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



--
Üdv,
Kriván Bálint

--
You received 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: SEVERE: The Cell Widget is attempting to render itself within the render loop

CellTable renders itself in a rendering loop, which means that you can make multiple synchronous changes to the range and/or data but only render once at the end of the synchronous changes.  However, the table isn't designed to handle the case where user code actually modifies the table within the rendering loop.

The main things that can cause this are the following:
  • Modifying the CellTable from within Cell#render()
  • Overriding CellTable#renderRowValues() and modifying the CellTable from within it
  • Trying to access an Element in CellTable from either of those methods
Are you doing any of these?  The code is somewhat complicated because its optimized for performance and has some special cases.  Its certainly possible that there are subtle bugs.

Thanks,
John LaBanca
jlabanca@google.com


On Mon, Jan 31, 2011 at 1:50 PM, zixzigma <zixzigma@gmail.com> wrote:
I am getting this exception more and more now.
I am not using a Date type,
but I manipulate the "range" the table is showing using table.setVisibleRange.
My problem is that I don't understand what exactly is that I am doing wrong,
and how to change my code to avoid this exception.
in other words, what is this Exception "Really" saying ?
if it has to do with Range, under what circumstances this exception occur
so that I can guard against it.

Thank You


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

setAttribute gives exception

Hi All,

I have <input type="text" id="someId"/>

Then i am doing DOM.getElementById("someId").setAttribute("value", someValue);

Then i am getting exception

com.google.gwt.core.client.JavaScriptException:
(TypeError): this.setAttribute is not a function
fileName: http://127.0.0.1:8888
lineNumber: 38
stack: ("value","Rs. 500 to Rs. 9500")@http://127.0.0.1:8888:38
@:0
([object GWTJavaObject],5439490,[object XMLHttpRequest])@http://127.0.0.1:8888/faregugly/hosted.html?faregugly:56
([object Event])@http://127.0.0.1:8888:44
((function () {__gwt_makeJavaInvoke(1)(handler, 5439490, _this);}),[object XMLHttpRequest],[object Object])@http://127.0.0.1:8888:59
@:0

Any idea pls.

I just want to set the value of the textField dynamically present in my html. How can i do this.


Thanks

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

in my experience,
support has been fantastic.
if the question is complex that developers cannot answer,
google experts weigh in.

as for GWT being used for mission critical systems,
many of Google applications , are built using GWT. maybe others can name the specific app.
I know of Google Wave and Ad-words if I am not wrong.

and GWT is a client-side technology, taking care of User Interface and User Experience,
with GWT you can create a very highly interactive application which is pleasant for users to work with,
however the mission critical parts often happen on the server, and it is not related to GWT.

in terms of UI widgets, still there is work in progress by Google to develop enterprise-class widgets,
for example complex grids. you can look into Ext-GWT or SmartGWT for those widgets,
and Google own GWT widgets are catching up. there are Table, Tree widgets, but advanced features are expected
to come in future releases I believe.


--
You received 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: comprehension problem events

I might be wrong,
but please do remember that the Java code you write,
are compiled to JavaScript, therefore in your statement:
">>I do not understand how is it possible to get the value of the
"symbol" variable after the button has been created and sent to
client.??"

button is not sent to the client,
in other words, button is not created on the server
and passed to the client, it is how JavaScript works,
button is created on the client, within the browser,
and when user clicks the button, browser can respond with the event.
Button and the rest of the gwt widget, are wrappers around low level DOM.



--
You received 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: Firefox ONPASTE: Get the text to be pasted?

Thanks for posting this!  Very helpful!  I did variation on the theme. 

I created a class called XTextBox (and XTextArea) which catches the ONPASTE and then fires the ValueChangedEvent. This is useful because all I need to do is call the textBox.addValueChangeHandler(aHandler)  in my presenter class. 

public class XTextBox extends TextBox  {

    public XTextBox() {
        super();
       
        this.sinkEvents(Event.ONPASTE);
    }
   
   
    /**
     * Catch ONPASTE and re-throw it as a ValueChangeEvent
     *
     */
   
    @Override
    public void onBrowserEvent(Event event) {
        super.onBrowserEvent(event);
        switch (event.getTypeInt()) {
            case Event.ONPASTE: {
                String newValue = null;  // get the pasted value here!!!
                this.setValue(newValue, true);
                break;
            }
        }
    }

}

--
You received 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: Formatting data - best on the server, or client?

My Right Thing is as follows.

I will generally do some transformation work on the server side. Not
to HTML, mind you, since that, to me, is purely presentation layer
work. Rather, I will take the raw data and package it into lean
records objects, and send the collection of those to the client. This
work may mostly be done in SQL, or might mostly be done in code,
depending on how your DAO layer is set up, and how much crunching is
required.

The collection of record objects is then shipped off to the client,
where the display is taken care of. All of the values should already
be pre-calculated in the record objects, so it just has to go about
making them all pretty.

So in this wall all work related to the contents of the report (the
data itself, and its logical organization) are handled server side.
But the server stays out of the pretty display business - thats purely
client. The server generates no HTML, which is good, as I have found
that to be extremely painful on most occasions.

-Ben

On Jan 30, 6:42 pm, tachoknight <tachokni...@gmail.com> wrote:
> Hi all-
>
> I am writing a site that generates an HTML-based report that uses some
> pretty complex table formatting (think of it as a web page equivalent
> of the phone book). This is not a big site, and the result page is not
> interactive; it's a static report.
>
> I've mocked up the result page in an HTML page with CSS and the
> formatting is fine for all browsers, but now I'm at something of an
> impasse in how to implement it. In a JSP world I'd just be populating
> the jsp file on the server and displaying the results in the browser.
> As it is, I'm using GWT (obviously... :) ) and I'm at a loss as to how
> to "properly" do this.
>
> I looked into the UIBinder class, which would give me the HTML
> template, but that means that the result set would have to be
> transmitted to the client and all the work done in the browser. I
> could use something like FreeMarker to format the results on the
> server, and then send back the generated HTML, which is the method I'm
> leaning towards, but that too seems sub-optimal.
>
> Any assistance on the "right thing" would be appreciated.

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

No. there is nothing here mentioned as how to add focusHandler to any cell or celltable.

On Tue, Feb 1, 2011 at 12:39 AM, Zak <zakness@gmail.com> wrote:
These docs should help you:

http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html#selection

On Jan 31, 11:42 am, Deepak Singh <deepaksingh...@gmail.com> wrote:
>  Any suggestion pls...
>
> On Sun, Jan 30, 2011 at 4:00 PM, Deepak Singh <deepaksingh...@gmail.com>wrote:
>
> > Hi,
>
> > I am using GWT 2.1.1 and have one celltable working fine.
> > I want to provide better user experience so i need to implement the
> > following feature,
>
> > I want the rows to be selected with focus and then get the selected object
> > for further action.
> > when the table is created and appeared first time, the focus should
> > automatically go to first row and the row should automatically be selected
> > and as focus moves through rows by using arrow keys, corresponding rows
> > should be selected and i should be able to get the selected object with
> > focus moving on.
>
> > I tried to add FocusHandler to celltable but could not find any suitable
> > API for this.
>
> > Suggest some ways to acheive this.
>
> > Thanks

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

Thanks!
That is working for me! I was looking for it too.
I didn't called req.persist().using(proxy); on the newly created proxy.

--
You received 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: Announcing GWT-Platform 0.5

Travis' email reminded me that I did not mention how much of a
community effort GWTP is. I may be making the announcements, but the
framework wouldn't exist without the hard work of many GWT enthusiasts
bringing their strengths together.

Kudos to all contributors, and three cheers for open source!

Philippe

On Jan 31, 6:37 am, Travis Camechis <camec...@gmail.com> wrote:
> Awesome. This definitely has turned out to be a great release.  I will do my
> best to try and help support the spring side of things as well as any other
> things that I could potentially aid.
>
> On Mon, Jan 31, 2011 at 7:29 AM, PhilBeaudoin
> <philippe.beaud...@gmail.com>wrote:
>
>
>
>
>
>
>
> > We just released version 0.5 of the GWT-Platform framework:
> >  http://gwtplatform.com
>
> > GWTP is one of the most popular MVP framework for GWT and is being
> > used in many production applications. It sports a simple annotation-
> > based API that makes it very easy to design web apps with nested
> > views, tabbed presenters, history support, and many other features.
> > Native support for code splitting and lazy loading ensures your app
> > loads very quickly even if you have a large number of presenters.
>
> > GWTP also includes a command pattern, annotation processors to
> > generate tedious GWT boilerplate, as well as a component to simplify
> > localization.
>
> > Highlights of release 0.5 include:
> >  * Full support for Spring in the serveer-side dispatcher
> >  * Client-side queuing, caching and handling of commands
> >  * User-customizable tabs for tabbed presenters
> >  * Now using the GWT 2.1 event bus (More use of GWT 2.1 MVP classes
> > coming soon...)
>
> > I hope you enjoy this release! Don't hesitate to join us on the GWTP
> > forum:
> >  https://groups.google.com/group/gwt-platform
>
> > Cheers,
>
> >    Philippe
>
> > --
> > You received 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.

--
You received 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: RequestFactoryEditorDriver example?

Sorry, I don't get it clearly, which returned proxy? Where do you use a returned one? Using flush() you get the Context, not the Proxy object.

On Mon, Jan 31, 2011 at 7:34 PM, George Moschovitis <george.moschovitis@gmail.com> wrote:
Another problem...

I tried your suggestion and it seems to work with one important problem:
the object/proxy returned is the original proxy passed to the editor and not the edited object...

any idea what might be wrong?

-g.

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



--
Üdv,
Kriván Bálint

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

RequestBuilder response status code is 0?!

I have created servlet which returns just a string. It works typing in
browser servlet url.
But when I try to get it using RequestBulder i get response status
code 0! Please help!

url = http://localhost:8888/redirect.htm

public void requestProductsFromStock(String url){
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
url);

try {
builder.sendRequest(null, new RequestCallback() {
public void onError(Request request, Throwable exception) {
displayError("Couldn't retrieve JSON");
}

public void onResponseReceived(Request request, Response
response) {
if (200 == response.getStatusCode()) {
errorLabel.setText(response.getText());
// updateTable(asArrayOfProducts(response.getText()));
} else {
displayError("Couldn't retrieve JSON (" +
response.getStatusText()
+ ")");
}
}
});
} catch (RequestException e) {
displayError("Couldn't retrieve JSON");
}catch(Exception e){
displayError(e.getMessage());
}
}

servlet code is

PrintWriter out = res.getWriter();
out.println("Hello!");
out.close();

Why am I getting this stupid error code?! I tried in Chrome and
Mozilla..

--
You received 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: RequestFactoryEditorDriver example?

Well, I didn't try it myself, but I guess:

MyRequest req = requestFactory.myRequest();
MyProxy proxy = req.create(MyProxy.class);
req.persist().using(proxy);
driver.edit(proxy, req);

On Mon, Jan 31, 2011 at 7:14 PM, George Moschovitis <george.moschovitis@gmail.com> wrote:
One question,

how can I initialize the driver in a 'newObject' scenario, if I don't want to edit an existing object but create a new one instead.

-g.


--
Üdv,
Kriván Bálint

--
You received 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.1 EditorFramework CellList editor using SimpleBeanEditorDriver and JSON help...

Wow, thanks Thomas!

I've successfully refactored my code to work with View interface (so I don't need a seperate Editor<> widget), I'm not sure what I was doing wrong before, but using Milan's code and your advice, it works ;) Thanks!

--
Üdv,
Kriván Bálint

--
You received 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: Spring ROO GWT with GIN injection on widgets created by ui:binder.

Sorry, I had forgotten you're using Roo. I don't have much experience with Roo/gwt but here is one way to get it done. This might not be the optimal way though since I haven't played around with the Roo/gwt framework for more than about an hour as I'm not able to use it in my current projects. 

Is the presenter generated for you by Roo or is that your own implementation? If it is your own, you could remove the Display from the constructor and add a setter for it instead. 

Here is what your uiBinder class could look like.

The only catch here is everywhere you use this, you'll have to do a


public class RorViewContainer extends Composite {

.. uibinder boilerplate...


UiField(provided=true)
RorView view;

@Inject
public RorViewContainer(RorView view){
   this.view = view;

        initWidget(uiBinder.createAndBindUi(this));
}



private RorPresenter presenter;

@Inject
RorView(RorPresenter presenter){
  this.presenter = presenter;
  presenter.setView(this);
  presenter.bind();
}

@UiHandler("myButton")
public void myButtonClick(ClickEvent event){
    presenter.doMyClickEvent();
}


@UiHandler("yourButton")

public void yourButtonClick(ClickEvent event){
  presenter.doYourClickEvent();
}

--
You received 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: Found an inconsistent behaviour in GWT Expenses Roo application: Master-Detail Activities-Places becoming out of Sync !

Thank You : )

your post gave me some comfort : )

Yes, the problem is related to paging, and not necessarily activity/places.
as for your opinion of master/detail,
I think it is a shame to not take advantage of the fact that we can
display master/detail side by side, without a full page reload,
something that was not possible with traditional webframework,
and is nearly possible now with AJAX/GWT, only if there comes a solution
to implement the paging correctly.

regarding your suggestion on using "continuous scrolling",
I am going to investigate that now, and I believe it will work,
however my concern is this,
lets say we have a list of employees with continuous scrolling,
and next to it, we show detail of employee, when one employee is selected from the list.

if we bookmark place employee/777
when navigating to place employee/777 for the first time from bookmark,
how can the master activity which contains a continuous scrolling table/list,
highlight employee with id 777 in the list, when in fact the continuous scrolling list
presents only an X number of items initially, and load the rest on demand ?
do you think this is possible ?

Thank  You

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-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: Spring ROO GWT with GIN injection on widgets created by ui:binder.

I'm not sure which MVP framework I'm using, I'm basically using whatever framework is being generated by Spring ROO after using the "gwt setup" command and since this is my first time using GWT since pre version 1.5, I'm pretty lost.

That would probably work under normal gwt, but the component needs to be added via ui:binder, so can't do that fancy footwork of manually creating it and then adding it to RootPanel unless there is a way of doing it the ui:binder way?

In ScaffoldDesktopShell.ui.xml I'm inserting the component via xml:

[code]
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
             xmlns:g='urn:import:com.google.gwt.user.client.ui'
             xmlns:s='urn:import:com.ig.client.scaffold.ui'
             xmlns:ig='urn:import:com.ig.client.scaffold.ui.widget'>


    <ui:style>
        @def contentWidth 850px;
        ....
    </ui:style>

    <g:DockLayoutPanel unit='EM'>
        ...
        <ig:RorView  />
        ....
    </g:DockLayoutPanel>
</ui:UiBinder>
[/code]

The ScaffoldDesktopShell itself looks like this:

[code]
public class ScaffoldDesktopShell extends Composite {
    interface Binder extends UiBinder<Widget, ScaffoldDesktopShell> {
    }

    private static final Binder BINDER = GWT.create(Binder.class);

    @UiField SimplePanel details;
    @UiField DivElement error;
    @UiField LoginWidget loginWidget;
    @UiField SimplePanel master;
    @UiField NotificationMole mole;
    @UiField(provided = true)
    ValuePicker<ProxyListPlace> placesBox = new ValuePicker<ProxyListPlace>(new ApplicationListPlaceRenderer());

    public ScaffoldDesktopShell() {
        initWidget(BINDER.createAndBindUi(this));
    }
    public SimplePanel getDetailsPanel() {
        return details;
    }
    public LoginWidget getLoginWidget() {
        return loginWidget;
    }
    public SimplePanel getMasterPanel() {
        return master;
    }
    public NotificationMole getMole() {
        return mole;
    }
    public HasConstrainedValue<ProxyListPlace> getPlacesBox() {
        return placesBox;
    }
    public void setError(String string) {
        error.setInnerText(string);
    }
}
[/code]

PS, will attached code be displayed?


--
Jan Vladimir Mostert
BEngSci

Mail: jan@mycee.com
MyCee Technologies


On Mon, Jan 31, 2011 at 8:10 PM, Jeff Larsen <larsenje@gmail.com> wrote:
What framework are you using to do your MVP stuff? this looks a lot like gwt-presenter or gwtp.


Ignoring GIN for a second, because this is easier to illustrate without DI, 

add the method 

public Widget getView() {
 return display.asWidget();
}

RorPresenter presenter = new RorPresenter(new RorView(), eventBus);
presenter.bind();
RootPanel.get().add(presenter.getView());


This should get you your button clicks to give you your Window.alerts. 

--
You received 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: paging in trees

Note quite "paging" but still better than nothing: the "DefaultNodeSize".

And I guess you could otherwise create intermediate TreeNode-s (e.g. A-D, E-H, I-L, M-P, etc. instead of all nodes as direct children in alphabetical order; just an example)

--
You received 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 rows selection with focus

These docs should help you:

http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html#selection

On Jan 31, 11:42 am, Deepak Singh <deepaksingh...@gmail.com> wrote:
>  Any suggestion pls...
>
> On Sun, Jan 30, 2011 at 4:00 PM, Deepak Singh <deepaksingh...@gmail.com>wrote:
>
> > Hi,
>
> > I am using GWT 2.1.1 and have one celltable working fine.
> > I want to provide better user experience so i need to implement the
> > following feature,
>
> > I want the rows to be selected with focus and then get the selected object
> > for further action.
> > when the table is created and appeared first time, the focus should
> > automatically go to first row and the row should automatically be selected
> > and as focus moves through rows by using arrow keys, corresponding rows
> > should be selected and i should be able to get the selected object with
> > focus moving on.
>
> > I tried to add FocusHandler to celltable but could not find any suitable
> > API for this.
>
> > Suggest some ways to acheive this.
>
> > Thanks

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

Re: Generated Maven pom.xml does not add GWT project natures

Just curious ... can't you just right click on the pom.xml and then
select Run As and use gwt:run as the goal?

On Jan 17, 4:13 am, Luca Morettoni <l...@morettoni.net> wrote:
> 2011/1/2 Cheng Lee <cheng....@gmail.com>:
>
> > Hi GWT gurus,
>
> > I'm generating an Eclipse project using webAppCreator. The project is
> > created but thepom.xmldoes not contain the appropriate GWT project
> > nature, meaning the application can't be launched as Web Application
> > because the "Project does not use GWT or GAE". The usual sequence to
> > launch the app by right clicking the "project root -> Run As -> Web
> > Application" is not available since it's not a GWT project.
>
> you could check here:http://code.google.com/eclipse/docs/faq.html#gwt_with_maven
>
> and about the debugging phase you can read the generated README.TXT
> file under your project subdir...
>
> --
> Luca Morettoni <luca(AT)morettoni.net> |http://www.morettoni.net
> gtalk/msn: luca(AT)morettoni.net |http://twitter.com/morettoni
> jugUmbria founder:https://jugUmbria.dev.java.net/| skype: luca.morettoni

--
You received 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: Found an inconsistent behaviour in GWT Expenses Roo application: Master-Detail Activities-Places becoming out of Sync !



On Monday, January 31, 2011 7:43:19 PM UTC+1, zixzigma wrote:
1- so all the effort that goes into creating a Bookmarkable and Navigable Master/Detail Activity goes to waste ?

Er, why?
It's a) an implementation choice (dictated by "ease of implementation" here) and b) it would be no different using something else than activities.

(that being said, I doing quite like master/detail views when it comes to web apps)
 
2- what is the point of using Activity/Places to create this Master/Detail scenario, if it is not going to function properly ?

It depends on your definition of "properly", and is not tied to the use of Activity/Places AFAICT.

(the Expenses sample does it some way, there are alternatives, and probably one would fit your requirements, provided they are clearly defined and, to begin with, feasible)
 
3- can you think of a User Experience that says it is ok for Master/Detail activities to be out of sync ?

Well, actually, yes: as soon as you go to the "next page" while some item is displayed they are "out of sync", so why should we expect it to rollback to "some specific page" when going back to a previously seen item?

(but as I said, I don't quite like master/detail views, they don't work well with on the web IMO; and o course they don't work well with paging; at least something like "continuous scrolling", à la Google Reader, "new" Google Groups, or Twitter, would work much better)
 
4- do you think end-users, management, or non-gwt developers would consider this an acceptable implementation ?

Probably not, but if it wasn't part of their requirements then they are at fault, not you, so you can sleep in peace ;-)

can something be done to fix this ? some workable solution ? : (

As I was writing the above, it came to my mind that the issue is paging. Remove paging, replace it with "continuous scrolling" (which can be implemented with a Pager too,and I'm sure the GWT team provided some sample code somewhere) and it all goes much better !
(not necessarily without issue, but less issues at least, as you wouldn't "forget" about items when changing pages)

--
You received 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 Support Options and Quality

I'm investigating GWT to modernize application development stack for a
Fortune 200 company.

I wonder if anyone on here using GWT for mission-critical core
application? and how statisfied are you with this model of forum
support? What if there is a critical production issue with an
application?

I like the GWT technology, the architecture, and the MVP framework
with Event Bus etc... but I wonder what are the options out there to
receive Enterprise support and have a close relationship with a Google
GWT expert. Or how do you feel about revceving defenitive/expert
answers in a timely manner using this forum other ways of support?

--
You received 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: paging in trees

I would also like to know the answer to this.

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

could you please explain what is the rationale behind using multiple entry points ?
what is the benefit of using them ? and how it relates to code-splitting and gin-modules ?
Thank You

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



On Monday, January 31, 2011 7:33:11 PM UTC+1, Jozef Môstka wrote:
Hi all,
Pls help me with the following 2 problems.

I generating the objects with generator. inside generator I need save generated class name to global property. 
After last generator was finish, I need save all this classNames to custom file.

So, 
1) How can I use some global property to save classNames, or how I can get all generated classNames.

Add an artifact to the generator context; use your own Artifact subtype.
 
2) How can I detect when is last class generated, or how can I run some method after GWT compiling.

Use a linker. Linker's are run after a permutation is compiled, and after all permutations have been compiled. From the linker, you can find() your generated artifacts in the ArtifactSet using your Artifact subtype's 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: SEVERE: The Cell Widget is attempting to render itself within the render loop

I am getting this exception more and more now.
I am not using a Date type,
but I manipulate the "range" the table is showing using table.setVisibleRange.
My problem is that I don't understand what exactly is that I am doing wrong,
and how to change my code to avoid this exception.
in other words, what is this Exception "Really" saying ?
if it has to do with Range, under what circumstances this exception occur
so that I can guard against it.

Thank You

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