Hover Text over HTML

2010-09-25 Thread GregD
I'd like to have some hover text appear over some HTML text being
displayed in a Grid table.  I have this vague memory saying that you
could call setName on a Widget, and that would create hover text for
the Widget.  But since I can't find a Widget "setName" routine,
clearly that memory is incorrect.

What is the best way to have hover text over an HTML string?

TIA,

Greg

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



GWT Custom Serialization

2010-09-25 Thread Lucas Charron
I am having a slight problem with a framework I am making. Here is an
example class:
public class Example implements IsSerializable
{
private final int a;

private final int b;

public Example(int a,int b)
{
this.a=a;
this.b=b;
}

// getters ...
}

A very simple class. However, there is no way to serialize it using
GWT. Although the simple work-around is to remove the "final"
attribute from the fields, that does not "jive" with, what I consider,
solid programming. The "final" attribute means that no where, in any
instance of the class or any instance of a descendant of this class,
will the values of "a" and "b" be modified in any way (exception:
using Java reflection). More than the optimization that many JVMs will
do, there is also a type of safety - the programmer cannot
accidentally put the reference on the left hand side of an assignment
operator.

The GWT compiler will emit a warning that the final fields will not be
serialized. Using the "_CustomFieldSerializer" is also impossible
because the deserialize method takes an instance of the class you are
deserializing as a parameter - instead it should have the return value
as an instance of the class.

So, other than removing the final attribute, has anyone had any luck
side-stepping this issue? Anyone know of any bug reports or
enhancement requests for this (I have searched, but have come up
empty).

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



Re: GWT Developer Plugin not working in Namoroka (Firefox) Linux x86_64

2010-09-25 Thread sheamus
I can confirm it's working in Namoroka on 32 bit linux, ubuntu 10.4.
Have been using it for the last few months with the plugin. What
happens with plain old firefox on 64 bit?

On Sep 24, 9:53 am, Juan Miguel Cejuela  wrote:
> I can't get the GWT Developer Plugin working in Namoroka Mozilla/5.0
> (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100724 Firefox/3.6.8
>
> I install successfully the plugin, or at least I see it in my list of
> add-ons, but the browser keeps me again to install it again and again.
>
> Somebody got the plugin work in Namoroka?

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



Re: Seam GWT Integration

2010-09-25 Thread sỹ phú
i want to know too !

I'm using GWT 2.04 with Seam 2.2 , but when i make a RPC call (using
this endpoint url :
String endpointURL = GWT.getModuleBaseURL() + "seam/resource/gwt") and
get a error : "resoucre not found".
If i dont use this url, and config sevlet-mapping in xml file, i can
connect to server, but cant use seam component (i think it ignore
@Remote annotation). How can i fix it ? Please help !!!


On Sep 13, 10:40 pm, Anand S  wrote:
> Hi,
>
> I am trying to integrateSeamwithGWT. I have looked at the example
> provided bySeam. I used ant and could get the example running. Now my
> question is:
>
> There is this piece of code
>
> String endpointURL =GWT.getModuleBaseURL() + "seam/resource/gwt";
>
> in AskQuestionWidget java class.
>
> What does this piece of code exactly mean ?
>
> What should this URL actually be ?

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



GWT Designer for GWT 2.0.4 - eclipse 3.6

2010-09-25 Thread José Miguel Bataller
I am trying for first time the GWT Designer and when I try to switch
to the "Design View" of a Composite, I get the following error, any
clue?

com.instantiations.designer.core.utils.exception.DesignerException:
4103 (GWT initialization timeout.).
at
com.instantiations.designer.gwt.model.widgets.support.GWTState.initialize(GWTState.java:
211)
at
com.instantiations.designer.gwt.model.widgets.support.GWTState.(GWTState.java:
175)
at
com.instantiations.designer.gwt.model.widgets.support.GWTState.(GWTState.java:
102)
at
com.instantiations.designer.gwt.parser.ParseFactory.getClassLoader(ParseFactory.java:
371)
at
com.instantiations.designer.core.parser.AbstractParseFactory.initializeClassLoader(AbstractParseFactory.java:
695)
at
com.instantiations.designer.gwt.parser.ParseFactory.getRootContext(ParseFactory.java:
89)
at
com.instantiations.designer.core.parser.JavaInfoParser.prepareParseContext(JavaInfoParser.java:
1091)
at
com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:
220)
at com.instantiations.designer.core.parser.JavaInfoParser.access
$9(JavaInfoParser.java:216)
at com.instantiations.designer.core.parser.JavaInfoParser
$1.runObject(JavaInfoParser.java:137)
at com.instantiations.designer.core.parser.JavaInfoParser
$1.runObject(JavaInfoParser.java:1)
at
com.instantiations.designer.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:
133)
at
com.instantiations.designer.core.parser.JavaInfoParser.parse(JavaInfoParser.java:
135)
at
com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:
408)
at com.instantiations.designer.core.editor.DesignPage.access
$10(DesignPage.java:400)
at com.instantiations.designer.core.editor.DesignPage
$7$1.run(DesignPage.java:337)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:
179)
at
org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:
150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4584)
at com.instantiations.designer.core.editor.DesignPage
$7.run(DesignPage.java:334)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:
464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:
372)
at
org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:
507)
at
com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:
355)
at
com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:
304)
at
com.instantiations.designer.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:
362)
at
com.instantiations.designer.core.editor.UndoManager.activate(UndoManager.java:
75)
at
com.instantiations.designer.core.editor.DesignPage.handleActiveState_True(DesignPage.java:
210)
at
com.instantiations.designer.core.editor.DesignPage.handleActiveState(DesignPage.java:
197)
at
com.instantiations.designer.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:
80)
at com.instantiations.designer.core.editor.multi.DefaultMultiMode
$1.widgetSelected(DefaultMultiMode.java:43)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:
2743)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1429)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:
257)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:
115)
 

Setting id for record @DataTransferObject

2010-09-25 Thread sheamus
Hello - is it possible to set the id for a @DataTransferObject instead
of the jpa generated one? I'm using 2.1M3

I've tried creating the id property but this fails because the
property 'id' is already set in the super class Record, and have tried
to add the setter setId() but this fails with
'The type UserRecordImpl must implement the inherited abstract method
UserRecord.setId(Long)'

Here is the DTO:
@DataTransferObject(com.eventismo.server.domain.User.class)
public interface UserRecord extends Record {

// next line causes exception, ambiguous field as declared in
the Record super type
//Property id = new Property("id", "User Id",
Long.class);
Property userName = new Property("userName", "User
Name", String.class);
...
String getUserName();

void setUserName(String userName);
// fails
void setId(Long department);


// And here is the calling code
RequestObject requestObject;
userRecord = (UserRecord)
requestFactory.create(UserRecord.class);
requestObject = requestFactory.userRequest().persist(userRecord);
UserRecord editableUser = requestObject.edit(userRecord);
editableUser.setUserName(name);
editableUser.setDisplayName(first_name);
editableUser.setId(Long.parseLong(id));
// persist user
requestObject.fire(new Receiver() {
..

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



Re: GWT Hosted on another domain

2010-09-25 Thread Артём
Also the Development mode won't work with xs linker turned on (it is a
known issue and should be fixed in the next release, AFAIK). Just
comment it out temporarily while developing.

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



Re: PasswordTextBox Security

2010-09-25 Thread ebrahem abohosyu
ارسال عربي

2010/9/1, Gerhard Davids :
> Well said Chris,
>
> And as Chris mentioned : XSS is a big problem.
>
> Make sure to spend time to create XSS safe methods for UI objects
> especially those that are bound to data from user input.
> Pure java problem like the one you mentioned don't hold water on the
> web client.
> Just for the sake of completeness GWT is compiled to JS only and makes
> use of HTML. No java is run on the client.
>
> On Sep 1, 6:30 am, Chris Conroy  wrote:
>> The PasswordTextBox results in an  element on the
>> page which is handled by the browser in the same way all other such
>> password
>> boxes.
>>
>> And, to be a bit pedantic..If you assume an attacker has access to the
>> address space of your program, then what would stop him from reading said
>> characters at the time of password entry? The security issues you should
>> be
>> worried about are things like cross-site scripting attacks.
>>
>>
>>
>>
>>
>> On Tue, Aug 31, 2010 at 4:24 PM, drtman  wrote:
>> > According to at least one source, passwords should not be stored as
>> > strings in Java since they are immutable and could be readable from
>> > memory later even if the reference is nulled.  So I was wondering how
>> > PasswordTextBox maintains its value under the hood?  I know that
>> > getText() returns a string but is it coming from an instance variable
>> > maintained on the class?  If so I was thinking of writing my own class
>> > that uses a keypress event handler to maintain a char array which is
>> > more secure since it can be nulled out.
>>
>> > Just curious what anyone else's thoughts are on 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-tool...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > google-web-toolkit+unsubscr...@googlegroups.com> > cr...@googlegroups.com>
>> > .
>> > For more options, visit this group at
>> >http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>> --
>> Chris Conroy
>> Software Engineer
>> Google, Atlanta
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



GWT panel for HTML UL/LI lists

2010-09-25 Thread Markus Kramer
Hi, for my current GWT project I wanted to make more use of HTML UL/LI
elements than the table based layouts that you normally use in GWT
applications.
Biggest advantages for me is that other people can make changes to the
layout/design of the page without having to touch the code itself.

I couldn't find a class in GWT or anywhere else that helps with that,
so I wrote my own. I can now create HTML like this:


  Widget A
  Widget B


with this code:

UlListPanel ulList = new UlListPanel();
ulList.addStyleName("sampleList");
ulList.add(widgetA);
ulList.add(widgetB);

For the code go here:
http://markusbraindump.blogspot.com/2010/09/gwt-panel-for-html-ulli-lists.html

Or did I reinvent the wheel?

Markus

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



GWT Widget List/Documentation

2010-09-25 Thread Al
I am starting to learn GWT, and I am having trouble finding a list of
widgets and how they work. I am looking for a comprehensive list of
widgets, preferably including an overview of how they work.

I see that there are widgets listed at
http://code.google.com/webtoolkit/doc/latest/DevGuideUiWidgets.html,
but even that set seems only be a handful of examples. The examples
seem to contain additional widgets that I cannot find a good listing
of. For instance, the DynaTable example uses the DynaTableWidget and
the DynaTableDataProvider, but searching for 'DynaTableWidget' or
similar terms retrieves the example code or the source code from
docjar.com, but not a more general overview.

Can someone give me a pointer to appropriate documentation?

Thanks,
Al

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



Re: Using C / CGI for server-side programming still a reasonable thing to do?

2010-09-25 Thread Артём
On 22 сен, 05:24, Michael  wrote:
> Given PHP, and all the other alternatives is C / CGI still a
> reasonable way to go?

C is still faster than PHP and lighter than Java (although you might
come up with better system-level languages, like Google Go, Rust, or
D). If that is your concern, then "Given all the other alternatives" I
would have preferred SCGI (http://en.wikipedia.org/wiki/SCGI) or
FastCGI to CGI.

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



How to slow down JavaScript execution (in Firefox)?

2010-09-25 Thread Hilco Wijbenga
Hi all,

I'm trying to run integration tests and one of the things I'm trying
to test is that various status messages are displayed in the right
order. The problem is that everything runs so fast that certain
messages are not displayed long enough for Selenium to pick up. :-)
That makes the test fail because it thinks steps were skipped. Another
example is disabling a button after clicking on it and enabling it
after some action has been executed. Again, JavaScript runs so fast
that the disabling of the button is never noticed by Selenium.

Does anyone know of a way to slow down JavaScript execution? I'm using
Firefox for the integration tests so feel free to list Firefox
specific solutions.

Cheers,
Hilco

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



FlowPanel - Children are added from right to left #-)

2010-09-25 Thread Magnus
Hi,

I have realized a "button bar", i. e. a horizontal bar that contains
buttons, as a FlowPanel (not a HorizontalPanel, to be with standards
mode). The buttons are aligned to the right (float right).

However, when I add buttons, they are added from right to left, i. e.
the first one is at the right and the last one is at the left. I
expected that new widgets are appendet at the right?

I have tried a lot, but nothing changes the behavior.

Any ideas?

Magnus

--

package myproject.commandbar;

import java.util.Iterator;

import com.google.gwt.dom.client.Style;
import com.google.gwt.event.dom.client.*;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.*;

public class CommandBar extends FlowPanel
{
 private final FlowPanel pnl = new FlowPanel ();
 private final HTML txt = new HTML ();
 private ClickHandler hdl = null;

 public CommandBar ()
 {
  super ();
  init ();
 }

 private void init ()
 {
  this.add (txt);
  this.add (pnl);

  Style s = txt.getElement().getStyle ();
  s.setFloat (Style.Float.LEFT);

  s = pnl.getElement().getStyle ();
  s.setFloat (Style.Float.RIGHT);

  txt.setHTML(" ");
 }

 public void add (String lbl,int cmd)
 {
  Command c = new Command(prc,cmd);
  add (lbl,c);
 }

 public void add (String lbl,Command cmd)
 {
  PushButton btn = new CommandPushButton (lbl,cmd);

  btn.getElement().getStyle().setFloat (Style.Float.RIGHT);

  pnl.add(btn);
 }

 public void setText (String txt)
 {
  this.txt.setText (txt);
 }

}

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



Re: Spring Roo & 2.1 M3, not recommended if you haven't tried.

2010-09-25 Thread lalit
I just finished a project on Roo but we were using Spring also for
front end. What we figured out is that Roo is very good to generate
that initial structure and than better be on your own. We still used
roo to manage the domain entities (generating getters and setters) but
not more than that.

Now I am in a project with GWT and Spring. From my earlier experience
we generated the initial code structure using roo and than we are on
our own.

Also I would second Daniel about UIBinder. It's an easier way of doing
things. and the same goes for annotations also.

On Sep 25, 6:48 pm, Supercobra Thatbytes  wrote:
> Kevin,
>
> My experience with Roo is not much better than yours. I was able to
> get it running after an hour or so. It is an early stage product that
> shows potential. Not ready for prime time yet.
>
> Regarding UiBinder: If it turned you off 'immediately' as you said,
> you have not created enough widgets in GWT yet, because once you'll
> have done that, you'll see that creating widget UI in XML with
> UiBinder is the simpler and more efficient way.
>
> 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Designer crash with eclipse 3.6

2010-09-25 Thread fabiorecife
My Eclipse crash too with WindowBuilder Pro Swing Desiner (and Gwt
Designer) , Eclipse -galileo-sr2-jee, OS: Ubuntu 10.04:


fa...@~$ /home/fabio/bin/eclipse-galileo-SR2/eclipse
Parsing...done: 11637
eclipse: ../../src/xcb_io.c:249: process_responses: Assertion
`(((long) (dpy->last_request_read) - (long) (dpy->request)) <= 0)'
failed.
Aborted





On Sep 23, 12:30 pm, Noor  wrote:
> After lots of problem, I have been able to install the GWT designer,
> now I am stucked, as soon as I go on the design of GWT  and place
> something on the page, eclipse crash and exit with the following
> message
>
> The error message is:
>
> Process:         eclipse [138]
> Path:            /Applications/eclipse/Eclipse.app/Contents/MacOS/
> eclipse
> Identifier:      org.eclipse.eclipse
> Version:         3.6 (3.6)
> Code Type:       X86 (Native)

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



Re: Reverse proxy problem once again

2010-09-25 Thread pete
Thanks Sebastian,

actually that is what I already did meanwhile :-) I thought I was
supposed to keep the contextpath (it's a project for my work), but now
they are fine with redirecting from / to /bla on the proxy, where bla
matches the contextpath on the tomcat, so now it works without any
other adjustment.
I also had a workaround, where I overrode RemoteServiceServlet and
modified the transmitted URL accordingly, that worked as well... But
I'm much more content with a configuration solution like keeping the
contextpath.
Anyway, thanks for your reply :-)

Greetings!

On Sep 25, 12:56 pm, Sebastian Rothbucher
 wrote:
> Hi pete,
>
> I got along quite well with mapping localhost:80/bla/ to localhost:
> 8080/bla in the httpd.conf - i.e. keeping the context path as it is.
> No more action is necessary then. (you could set up a redirect rewrite
> rule for path / so the user gets forwarded). This is the most simple
> solution I know. Maybe (I'm not sure now), you could rewrite the
> context path as well with mod_rewrite but that's no more than a vague
> guess. Otherwise, you'd indeed have to overwrite
> doGetSerializationPolicy on the servlet which is just what you don't
> want.
>
> So, I'd try the redirect rewrite rule (check 
> outhttp://httpd.apache.org/docs/2.0/mod/mod_rewrite.htmland search for
> "force redirect" on the page)...
>
> Hope this helps - best regards
>     Sebastian Rothbucher
>
> On 17 Sep., 20:46, pete  wrote:
>
> > Hallo,
>
> > I've looked around several hours to solve this problem, but I just
> > can't figure it out (even though I find many similar posts and tips
> > about it). The set up is quite simple, I have my GWT-Module running 
> > athttp://localhost:8080/blaandif I address it like this, everything
> > runs fine.
> > I furthermore have an Apache2 set up, with the following rule
>
> > 
> >         ServerAdmin webmas...@localhost
> >         ServerName localhost:80
> >         ProxyPass /http://localhost:8080/bla/
> >         ProxyPassReverse /http://localhost:8080/bla/
> > 
>
> > (mod_proxy, etc. is loaded,  is configured in httpd.conf)
> > So I just want to forward from localhost:80 to localhost:8080/bla,
> > which shouldn't be such a pain in the a** as one should thing. But the
> > SOP prevents the RPC mapping, failing to retrieve the
> > SerializationPolicy. I can load the page, but the first RPC fails with
> > the usual exception so often explained in various posts.
>
> > My question is just, isn't there a way, to fix this simple case
> > without overriding RemoteServiceServlet? I would really wanna avoid
> > messing with that, and prefer some other way, maybe via proxy
> > configuration? Or web.xml? Or module.gwt.xml?
> > I also found 
> > this:http://code.google.com/p/acris/wiki/SeparateClientAndServer
> > Would it be worth it to adapt my project with acris to achieve what I
> > want?
> > The paths basically need to be as in my setup above...
>
> > About any help I would be glad :-)

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



Re: Spring Roo & 2.1 M3, not recommended if you haven't tried.

2010-09-25 Thread Supercobra Thatbytes
Kevin,

My experience with Roo is not much better than yours. I was able to
get it running after an hour or so. It is an early stage product that
shows potential. Not ready for prime time yet.

Regarding UiBinder: If it turned you off 'immediately' as you said,
you have not created enough widgets in GWT yet, because once you'll
have done that, you'll see that creating widget UI in XML with
UiBinder is the simpler and more efficient way.

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



Re: Reverse proxy problem once again

2010-09-25 Thread Sebastian Rothbucher
Hi pete,

I got along quite well with mapping localhost:80/bla/ to localhost:
8080/bla in the httpd.conf - i.e. keeping the context path as it is.
No more action is necessary then. (you could set up a redirect rewrite
rule for path / so the user gets forwarded). This is the most simple
solution I know. Maybe (I'm not sure now), you could rewrite the
context path as well with mod_rewrite but that's no more than a vague
guess. Otherwise, you'd indeed have to overwrite
doGetSerializationPolicy on the servlet which is just what you don't
want.

So, I'd try the redirect rewrite rule (check out
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html and search for
"force redirect" on the page)...

Hope this helps - best regards
Sebastian Rothbucher


On 17 Sep., 20:46, pete  wrote:
> Hallo,
>
> I've looked around several hours to solve this problem, but I just
> can't figure it out (even though I find many similar posts and tips
> about it). The set up is quite simple, I have my GWT-Module running 
> athttp://localhost:8080/blaand if I address it like this, everything
> runs fine.
> I furthermore have an Apache2 set up, with the following rule
>
> 
>         ServerAdmin webmas...@localhost
>         ServerName localhost:80
>         ProxyPass /http://localhost:8080/bla/
>         ProxyPassReverse /http://localhost:8080/bla/
> 
>
> (mod_proxy, etc. is loaded,  is configured in httpd.conf)
> So I just want to forward from localhost:80 to localhost:8080/bla,
> which shouldn't be such a pain in the a** as one should thing. But the
> SOP prevents the RPC mapping, failing to retrieve the
> SerializationPolicy. I can load the page, but the first RPC fails with
> the usual exception so often explained in various posts.
>
> My question is just, isn't there a way, to fix this simple case
> without overriding RemoteServiceServlet? I would really wanna avoid
> messing with that, and prefer some other way, maybe via proxy
> configuration? Or web.xml? Or module.gwt.xml?
> I also found this:http://code.google.com/p/acris/wiki/SeparateClientAndServer
> Would it be worth it to adapt my project with acris to achieve what I
> want?
> The paths basically need to be as in my setup above...
>
> About any help I would be glad :-)

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



Spring Roo & 2.1 M3, not recommended if you haven't tried.

2010-09-25 Thread Kevin (Yau) Leung
I think most gwt developer who watched the demo of Spring Roo in
Google IO video would be interested in giving "the expense-tracking
GWT project under 200 keystrokes" a try.  However, that 200 keystrokes
took me almost a day to put into debug mode.  (if you also got stuck
and would like too know how to get through, give me a shout)

Anyhow, I got it running.  But there are so many drawbacks that I
encounter.  Maybe there are some other way round, but there are
virtually no documentations.  Isn't spring roo supposed to accelerate
code formation?  But it seems that it's trying to waste as much time
as they can to slow you down.

I have to admit that I don't know much about spring / roo / maven (nor
i'm a java expert).  So please point it out if I made the wrong
claims.

1. Roo generated everything into UIBinder.  i think why most people
invest their time into GWT because it's Java.  We are more familiar
with Swing type of development rather than HTML.  And Uibinder just
turns me off immediately.  I bought a license of GWT Designer before
Google bought the company.  I believe this acquisition implies that
GWT will stick onto Swing type of UI development.  But on Roo project,
GWT Designer is rendered totally useless and what you can see are
window internal errors.

2. I think others have also complained that whenever you made changes
to the domain objects, all your custom changes on the UI will be lost.
 Maybe there are some other ways to get around with it, but there is
no documentation telling me how to do it!!

3. In Ruby On Rails, all the codes you see after scaffolding or raking
are just what you need to see.  But Roo will generate a hell lot of
codes which you don't know where you should touch and where you
shouldn't.  I spent hours watching videos from Google IO trying to
understand what does all those new factories / activities / renderer
mean.  But sorry, i just can't follow all those fancy flowchart.  But
why don't you put them into some documentation so that I can follow
them at my own pace?

4. Seems that the code generator or gwt plugins on STS are still
having some bugs.  Some of the viewbinder doesn't have the
corresponding ui.xml generated.  (maybe there are omitted for good
reasons).  And @UIField are shown missing even they are actually
there.  I think another important reasons of choosing GWT instead of
other framework is because of the error detection mechanism.  You can
root out most silly errors with the IDE because all errors are
underlined in red.  Now you got those red lines in almost all files in
the scaffold.generated source folder.  So you just turn a blind eye to
those?

5. Maybe it's just me.  Annotation is just not my cup of tea.  I don't
know how many of them, their usages or even how to spell them.  And
there are just too many of them with uibinder and roo.

Those scaffolding and data binding in 2.1. looks intriguing. , but
gonna go back to do some real work with GWT 2.0.   I just hope the
release of 2.1 will turn out to be much better documented.

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



Re: GetOffsetWidth and css

2010-09-25 Thread suersh babu
Hi,

I have faced same problem so the solution is use HorizontalPanel or
VerticalPanel to display .

Regards
Suresh Babu G

On Thu, Sep 23, 2010 at 8:49 PM, Paul Stockley  wrote:

> You need to get the computed style property. GWT doesn't support this.
> I wrote a function to get the value
>
> static public native String getComputedStyleProperty(Element el,
> String property) /*-{
>if (window['getComputedStyle']) { // W3C DOM method
>if (property === 'float')
>property = 'cssFloat';
>
>var value = el.style[property], computed;
>
>if (!value) {
>computed = el['ownerDocument']['defaultView']
> ['getComputedStyle'](el, null);
>if (computed) { // test computed before touching for
> safari
>value = computed[property];
>}
>}
>return value;
>
>} else if (el['currentStyle']) {
>var value;
>
>switch(property) {
>case 'opacity' :// IE opacity uses filter
>value = 100;
>try { // will error if no DXImageTransform
>value =
> el.filters['DXImageTransform.Microsoft.Alpha'].opacity;
>
>} catch(e) {
>try { // make sure its in the document
>value = el.filters('alpha').opacity;
>} catch(err) {
>}
>}
>return value / 100;
>case 'float': // fix reserved word
>property = 'styleFloat'; // fall through
>default:
>value = el['currentStyle'] ? el['currentStyle']
> [property] : null;
>return ( el.style[property] || value );
>}
>}
>return "";
> }-*/;
>
> With some more time it could be written in a more GWT friendly manor
> but it works currently. Ideally GWT should implement this.
>
>
> On Sep 23, 9:13 am, Christophe  wrote:
> > (I'm using GWT 2.1.0M3)
> >
> > I'm putting an element in an AbsolutePanel, which has some css classes
> > (injected classes). One of the things these classes change is the
> > width and height of the element.
> >
> > The code needs to know the element's width and height, and so it tries
> > to get them with the getOffsetWidth and getOffsetHeight methods.
> > However these give the width and height of the element before the css
> > adjustments, not the real on-screen ones, and as a result all sorts of
> > things get misplaced.
> >
> > Is there a way to get the "real" width and height of an element,
> > whether or not these have been adjusted with css ?
> >
> > Cheers,
> >
> > Christophe
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Regards

Suresh Babu 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Datastore

2010-09-25 Thread Didier DURAND
Hi Trevor,

I would suggest giving also a try to Objectify which a layer on top of
raw Datastore: it makes access to data much easier and has a lower
learning curve than JDO.

See http://code.google.com/p/objectify-appengine/ (have a special look
at wiki pages)

I moved away from JDO for Objectify and I am very satisfied with it.

didier

On Sep 24, 5:17 pm, David Chandler  wrote:
> You can use any of GWT's client / server protocols to connect to a
> servlet running on App Engine that in turn calls the Datastore. See
> the App Engine docs and forum for Datastore questions. The following
> links may help on the GWT side:
>
> http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html
>
> http://code.google.com/p/gwt-dispatch/
>
> http://turbomanage.wordpress.com/2009/10/07/calling-appengine-securel...
>
> HTH,
> /dmc
>
> On Sep 24, 5:30 am, trevor  wrote:
>
> > Having trouble in finding how to use Datastore or BigTable in GWT.
>
> > I have developed using Python and usd datastore.
>
> > Where should I look

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



making resources at server side available as webservice

2010-09-25 Thread dadada
hi all,

if i want to open the resource as a webservices so that other
component like mobile app can communicate with it.

How should i go about doing that?

thanks!
bryan

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