Re: GWT 2.5 RC1 Is Here!

2012-08-22 Thread Jens

>
> hey all,
>
>   I am using GWT 2.5 RC and i am having 
>  java.lang.ClassNotFoundException: com.google.gwt.core.client.GWTBridge 
> can anyone help me .
>

If its a server side issue make sure you have gwt-servlet.jar in your 
WEB-INF/lib folder updated to GWT 2.5 RC.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/f3QcMwl7OR4J.
To post to this group, send email to google-web-toolkit@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 2.5 final release date??

2012-08-22 Thread deepak chauhan
Hi,

When can we expect the final release of GWT 2.5?

-- 
Deepak Chauhan

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



Re: GWT 2.5 final release date??

2012-08-22 Thread Jens
There might be a 2.5 RC 2, 
see: https://plus.google.com/110412141990454266397/posts/GQ3QVCgTiLo

With a possible RC2 release in mind I would expect the final release at the 
end of september. But its just a guess.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/O0m46tm5-F4J.
To post to this group, send email to google-web-toolkit@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: updating a single cell

2012-08-22 Thread Thomas Broyer


On Wednesday, August 22, 2012 1:45:47 AM UTC+2, Matthew Pocock wrote:
>
> Hum, I can't see redrawRow on DataGrid. I'm on 2.4 - perhaps it's in a 
> different release?


Ah, yes, it's new in 2.5.0-rc1)
 

> My data is exposed through AsyncDataProvider. I'm currently using this 
> monstrosity to update rows, but I'm not entirely confident that it's right 
> or particularly sane.
>
> int i = table.getVisibleItems().indexOf(instance);
> if(i >= 0) {
>   table.setRowData(table.getPageStart() + i, Arrays.asList(instance));
> }
>

I've been using a similar trick for a CellTree, and I must say I'm not 
comfortable with it either. But it works, with few reasons to break in a 
future release (unless some kind of optimization is added to avoid 
redrawing a row if the object is the same, but it would break a lot of 
people's code so it has little to no chance to happen in practice)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/KHXbj7syrHgJ.
To post to this group, send email to google-web-toolkit@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.



wishlist for 2.6

2012-08-22 Thread funkforce
I haven't seen were you can suggest new features for next version so i am 
posting it here. Please correct me if this assumption is wrong.

1. Java 7 support 
2. Faster compiler

Regards
FF

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/bxWAHtOQ7m0J.
To post to this group, send email to google-web-toolkit@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: CellTable - add Anchors to a cell

2012-08-22 Thread Magnus
Hi,

I know how to add anchors to a cell using SafeHtml, but the clickHandler of 
the anchors is not triggered.

Below is how I create the anchors. How can I do that with CellTable?

Thanks
Magnus



  Column col_Action = new Column(new 
SafeHtmlCell())
  {
   @Override
   public SafeHtml getValue (MyData obj)
   {
SafeHtmlBuilder sb = new SafeHtmlBuilder();
Panel p = createActionPanel (obj);
String t = p.toString ();
sb.appendHtmlConstant (t);
return sb.toSafeHtml();
   }
  };

 private Panel createActionPanel (MyData data)
 {
  HorizontalPanel p = new HorizontalPanel ();
  Anchor a;
  
  a = createAnchor ("Open","open",data.idx);
  p.add (a);

  a = createAnchor ("Edit","edit",data.idx);
  p.add (a);

  ...

  return (p);
 }
 
 private Anchor createAnchor (String label,String command,int idx)
 {
  Anchor a = new Anchor (label);
  
  a.addClickHandler(this);
  Element e = a.getElement();
  
  e.setAttribute("command",command);
  e.setAttribute("index",Integer.toString(idx));
  
  return (a);
 }

 @Override
 public void onClick(ClickEvent evt)
 {
  Window.alert("never called!");

  Object o = evt.getSource();
  
  if (o == null)
   return;
  
  if (!(o instanceof Anchor))
   return;

  Anchor a = (Anchor) o;
  
  int idx = Integer.parseInt(a.getElement().getAttribute("index"));
  String c = a.getElement().getAttribute("command");
  
  if (command.equals ("open"))
  {
   openMyData (idx);
  }
 }

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/NuD9scvbZqQJ.
To post to this group, send email to google-web-toolkit@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.



ValueListBox Editor decorator

2012-08-22 Thread Steve
Hi

I'm trying to figure out how to wrap a ValueListBox with a decorator for my 
editors. As ValueListBox is not a ValueBox then the standard 
ValueBoxEditorDecorator doesn't work. Has anyone managed to come up with a 
way of doing this?

Thanks

Steve

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/toIrm2phrDYJ.
To post to this group, send email to google-web-toolkit@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: CellTable - add Anchors to a cell

2012-08-22 Thread Juan Pablo Gardella
Hi, see
http://stackoverflow.com/questions/4691801/how-can-i-render-a-clickabletextcell-as-an-anchor-in-a-gwt-celltable

2012/8/22 Magnus 

> Hi,
>
> I know how to add anchors to a cell using SafeHtml, but the clickHandler
> of the anchors is not triggered.
>
> Below is how I create the anchors. How can I do that with CellTable?
>
> Thanks
> Magnus
>
>
>
>   Column col_Action = new Column(new
> SafeHtmlCell())
>   {
>@Override
>public SafeHtml getValue (MyData obj)
>{
> SafeHtmlBuilder sb = new SafeHtmlBuilder();
> Panel p = createActionPanel (obj);
> String t = p.toString ();
> sb.appendHtmlConstant (t);
> return sb.toSafeHtml();
>}
>   };
>
>  private Panel createActionPanel (MyData data)
>  {
>   HorizontalPanel p = new HorizontalPanel ();
>   Anchor a;
>
>   a = createAnchor ("Open","open",data.idx);
>   p.add (a);
>
>   a = createAnchor ("Edit","edit",data.idx);
>   p.add (a);
>
>   ...
>
>   return (p);
>  }
>
>  private Anchor createAnchor (String label,String command,int idx)
>  {
>   Anchor a = new Anchor (label);
>
>   a.addClickHandler(this);
>   Element e = a.getElement();
>
>   e.setAttribute("command",command);
>   e.setAttribute("index",Integer.toString(idx));
>
>   return (a);
>  }
>
>  @Override
>  public void onClick(ClickEvent evt)
>  {
>   Window.alert("never called!");
>
>   Object o = evt.getSource();
>
>   if (o == null)
>return;
>
>   if (!(o instanceof Anchor))
>return;
>
>   Anchor a = (Anchor) o;
>
>   int idx = Integer.parseInt(a.getElement().getAttribute("index"));
>   String c = a.getElement().getAttribute("command");
>
>   if (command.equals ("open"))
>   {
>openMyData (idx);
>   }
>  }
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/NuD9scvbZqQJ.
> To post to this group, send email to google-web-toolkit@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-toolkit@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 use DeckLayoutPanel?

2012-08-22 Thread AgitoM
Been trying to implement a iPhone like transition between widgets for a 
mobile project I'm working on
Basically I need transition from left to right, and from right to left.
Read online that this can be accomplished using a DeckLayoutPanel.

Been trying to get an example to work, but not matter what I try, I I can't 
get any of the DeckLayoutPanel contents to display.
Of the many things I have tried, this is a example:

public class AnimationMainView extends Composite {
private DeckLayoutPanel aPanel = new DeckLayoutPanel();
 public AnimationMainView() {
initWidget(this.aPanel);
this.setSize("100%", "100%");
 this.aPanel.setAnimationDuration(5000);
this.aPanel.setAnimationVertical(false);
 Widget1 w1 = new Widget1(this);
this.aPanel.add(w1);
 Widget2 w2 = new Widget2(this);
this.aPanel.add(w2);
 this.openWidget1();
}
 public void openWidget1() {
this.aPanel.showWidget(0);
}
 public void openWidget2() {
this.aPanel.showWidget(1);
}
}

Does anyone have a working example of a DeckLayoutPanel being used, or can 
someone explain what I am doing wrong?

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/4LWbIAtG_x0J.
To post to this group, send email to google-web-toolkit@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: CellTable - add Anchors to a cell

2012-08-22 Thread Magnus
Hi Juan,

thank you.

These solutions do not have multiple anchors in one cell. Instead, the 
whole cell is made clickable...

I would like to put various anchors in one cell, i. e. I want *one* column 
that represents the actions one can take with a row (e. g. "open", "edit", 
"delete", and so on). The actions may be different for different records, 
so I want them to be in one column (to avoid many empty cells for most 
rows).

Can the solutions you pointed me to be used/modified for this purpose?

Magnus

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



Re: How to use DeckLayoutPanel?

2012-08-22 Thread Jens
DeckLayoutPanel implements RequiresResize so you should use ResizeComposite 
to wrap the DeckLayoutPanel. If possible put your custom widget inside 
another layout panel (parent widget). If thats not possible you have to set 
the height of your widget to 100%. If you do so, you have to make sure that 
the parent widget/parent DOM element also has a height defined otherwise a 
height of 100% won't work for your widget.

Maybe you want to take a look at MGWT and GWT-PhoneGap if you are building 
a mobile app.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/TufMU1HlpHAJ.
To post to this group, send email to google-web-toolkit@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: CellTable - add Anchors to a cell

2012-08-22 Thread Juan Pablo Gardella
See 
CompositeCelland
you can add multiple buttons that can appear like links. I attach a
custom button that see like links. Add the files in the same package.

Juan

2012/8/22 Magnus 

> Hi Juan,
>
> thank you.
>
> These solutions do not have multiple anchors in one cell. Instead, the
> whole cell is made clickable...
>
> I would like to put various anchors in one cell, i. e. I want *one* column
> that represents the actions one can take with a row (e. g. "open", "edit",
> "delete", and so on). The actions may be different for different records,
> so I want them to be in one column (to avoid many empty cells for most
> rows).
>
> Can the solutions you pointed me to be used/modified for this purpose?
>
> Magnus
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/krkGraGE7ooJ.
> To post to this group, send email to google-web-toolkit@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-toolkit@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.

/*CSS for your link-button should look something like this: */
Button.buttonLink { 
  cursor: pointer; 
  cursor: hand; 
  border: none; 
  /* Disable the button-style */ 
  background-color: transparent; 
  padding: 0px; 
  color: #4784C3; 
  text-decoration: underline; 
}

Button.buttonLinkDisabled { 
  cursor: pointer; 
  cursor: hand; 
  border: none; 
  /* Disable the button-style */ 
  background-color: transparent; 
  padding: 0px; 
  color: gray; 
  text-decoration: underline; 
} 

ButtonLink.java
Description: Binary data


Re: ValueListBox Editor decorator

2012-08-22 Thread Alex opn
This is my approach:

https://gist.github.com/3425954

As you can see its basically a copy of the ValueBox decorator but with <
TakesValueEditor> as generic type (Had no time to clean it up yet so 
don't wonder about the wrong JavaDocs). Don't know if it's a good approach 
but it works for me so far.

HTH

Am Mittwoch, 22. August 2012 14:16:42 UTC+2 schrieb Steve:
>
> Hi
>
> I'm trying to figure out how to wrap a ValueListBox with a decorator for 
> my editors. As ValueListBox is not a ValueBox then the standard 
> ValueBoxEditorDecorator doesn't work. Has anyone managed to come up with a 
> way of doing this?
>
> Thanks
>
> Steve
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/W6zzgrcL6k8J.
To post to this group, send email to google-web-toolkit@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: CellTable - add Anchors to a cell

2012-08-22 Thread Magnus
Hi Juan,

thank you for the infos and the code. I am still struggeling with it...

It seems that the composition of a CompositeCell is static. The examples I 
found all create an ArrayListl and then create an instance of 
CompositeCell with this list. Then, this instance is used to initialize the 
whole CellTable/CellList, e. g. here: 
http://ggwt.wordpress.com/2010/12/14/tutorial-eigene-compositecells-erstellen/#more-4

This means that all cells have the same subcells? What I need is to have 
differet subcells for different rows. I need to fill the composite cell 
differently for different rows.

I also wonder why we have to "simulate" hyperlinks with buttons that are 
made to look like hyperlinks. Why can't we just use Anchors? Are Anchors 
bad within a CellTable?

Magnus

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/cWykLQw_xtoJ.
To post to this group, send email to google-web-toolkit@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: CellTable - add Anchors to a cell

2012-08-22 Thread Juan Pablo Gardella
Anchors affect History. If you want to execute actions use buttons, if you
want to use anchors for navigation, use it.

For dynamic cell table read
http://stackoverflow.com/questions/7172262/create-gwt-celltable-dynamically.

I use it to have dynamic columns. Check perhaps you can use it for your
requirements.

2012/8/22 Magnus 

> Hi Juan,
>
> thank you for the infos and the code. I am still struggeling with it...
>
> It seems that the composition of a CompositeCell is static. The examples I
> found all create an ArrayListl and then create an instance of
> CompositeCell with this list. Then, this instance is used to initialize the
> whole CellTable/CellList, e. g. here:
> http://ggwt.wordpress.com/2010/12/14/tutorial-eigene-compositecells-erstellen/#more-4
>
> This means that all cells have the same subcells? What I need is to have
> differet subcells for different rows. I need to fill the composite cell
> differently for different rows.
>
> I also wonder why we have to "simulate" hyperlinks with buttons that are
> made to look like hyperlinks. Why can't we just use Anchors? Are Anchors
> bad within a CellTable?
>
>
> Magnus
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/cWykLQw_xtoJ.
>
> To post to this group, send email to google-web-toolkit@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-toolkit@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: CellTable - add Anchors to a cell

2012-08-22 Thread Jens

>
>
> This means that all cells have the same subcells? What I need is to have 
> differet subcells for different rows. I need to fill the composite cell 
> differently for different rows.
>

I would just implement a custom cell that simply decides how to render 
itself based on the row value. If the row is editable add an edit 
link/button, if its not don't render it. Same with the other links/buttons 
you want to display. The cell would consume click events and in its event 
method you can figure out which link/button has been clicked and then start 
the action you need to start.
To render the cell differently the cell should know a SafeHtmlTemplate with 
methods that: a.) generate the basic cell structure and b.) generate your 
link/button.

This shouldn't be that hard to implement and it seems to be a lot cleaner 
than "misuse" CompositeCell somehow or extend GWT cells that don't really 
fit your needs and try to convince them to do what you want.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/WtEjcrw52hMJ.
To post to this group, send email to google-web-toolkit@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 2.5 final release date??

2012-08-22 Thread deepak chauhan
Ohh..

Is it safe to use RC in production?

--Deepak


On Wed, Aug 22, 2012 at 1:19 PM, Jens  wrote:

> There might be a 2.5 RC 2, see:
> https://plus.google.com/110412141990454266397/posts/GQ3QVCgTiLo
>
> With a possible RC2 release in mind I would expect the final release at
> the end of september. But its just a guess.
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/O0m46tm5-F4J.
> To post to this group, send email to google-web-toolkit@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.
>



-- 
Deepak Chauhan

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



DART vs. GWT

2012-08-22 Thread deepak chauhan
One question is disturbing me from a long time. Why Google invented DART,
when GWT is already there?

One reason I can see is that Google is planning to port DART in chrome
browser and dreaming to support by all browser in future, which may not be
feasible in case of Java based GWT.

But, don't you think that it will decrease the popularity of GWT and active
activities on GWT?

I am asking this, because I have to decide between GWT and DART in a
project.

-- 
Deepak Chauhan

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



Request Factory polymorphic with locator

2012-08-22 Thread bond
Hi,
I'd like to use polymorphic type mapping with use of Locator.

I'm in this situation:

@Entity class MyBase {...}
@Entity class MyChild1 extends MyBase {...}
@Entity class MyChild2 extends MyBase {...}
...
@ProxyFor(MyBase.class) class MyBaseProxy extends EntityProxy {...}
@ProxyFor(MyChild1.class) class MyChild1Proxy extends MyBaseProxy {...}
@ProxyFor(MyChild2.class) class MyChild2Proxy extends MyBaseProxy {...}
...

@Service(value = MyBaseRequestDao.class, locator = DaoLocator.class)
@ExtraTypes({ MyChild1.class, MyChild2.class })
public interface MyBaseRequest extends RequestContext {
Request getStuff(); // MyChild1 here
}
...
Request getStuffRequest = request.getStuff();
getStuffRequest.fire(new Receiver() {
@Override
public void onSuccess(MyBaseProxy proxy) {
if(proxy instanceof  MyChild1Proxy)   
button.setText(((MyChild1Proxy)proxy).getQwerty()); // HERE!
}
});

I'm using Hibernate on the server and in the server (on my MyBaseRequestDao) I 
can see the correct type of objects. On the client instead the polymorphic 
mapping seems don't work.

Maybe the problem is the use of locator?

Thanks very much 


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/s2ioXxqMWz8J.
To post to this group, send email to google-web-toolkit@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: DART vs. GWT

2012-08-22 Thread Alan Chaney

On 8/22/2012 8:57 AM, deepak chauhan wrote:
One question is disturbing me from a long time. Why Google invented 
DART, when GWT is already there?


Google has invented (and discarded) all sorts of things which overlap 
and are otherwise competitive. If this disturbs you, I'm afraid you are 
in for a disturbing future, as I doubt that they are going to stop now.




One reason I can see is that Google is planning to port DART in chrome 
browser and dreaming to support by all browser in future, which may 
not be feasible in case of Java based GWT.
Yes, well "dreaming" is the correct term here. According to the Dart 
wiki, currently you have to build your own version of Chrome to even 
test Dart, and that only runs on Snow Leopard and Linux.


All browsers *ALREADY* support Java GWT, because GWT compiles the 
browser side to Javascript, an interpretive language supported by all 
mainstream browsers including IE6-IE10, Chrome, Firefox, Opera etc.




But, don't you think that it will decrease the popularity of GWT and 
active activities on GWT?
No. Well, not until thousands of developers are successfully deploying 
Dart projects on all the available commercial browsers, and that is 
years away, if ever.




I am asking this, because I have to decide between GWT and DART in a 
project.
Well, if you want your project to be unusable by most people, then, by 
all means, use Dart! However, if you want your project to be able to 
deliver high-quality results to all available browsers, and your 
development efforts to be supported by an extensive and very active 
development community, then GWT may just be a better choice.


Alan





--
Deepak Chauhan
--
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+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-toolkit@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: DART vs. GWT

2012-08-22 Thread Thomas Broyer


On Wednesday, August 22, 2012 6:15:42 PM UTC+2, Alan Chaney wrote:
>
> According to the Dart 
> wiki, currently you have to build your own version of Chrome to even 
> test Dart, and that only runs on Snow Leopard and Linux.
>

I don't know where you looked at but the docs are OK 
http://www.dartlang.org/dartium/, Dartium binaries are available for 
Windows, Linux and Mac: http://www.dartlang.org/downloads.html
 

> All browsers *ALREADY* support Java GWT, because GWT compiles the 
> browser side to Javascript, an interpretive language supported by all 
> mainstream browsers including IE6-IE10, Chrome, Firefox, Opera etc. 


All browsers *ALREADY*  support Dart, because Dart compiles to JS too! 
http://www.dartlang.org/docs/dart2js/

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ITRX1L6HQyYJ.
To post to this group, send email to google-web-toolkit@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: DART vs. GWT

2012-08-22 Thread Alan Chaney

On 8/22/2012 9:23 AM, Thomas Broyer wrote:



On Wednesday, August 22, 2012 6:15:42 PM UTC+2, Alan Chaney wrote:

According to the Dart
wiki, currently you have to build your own version of Chrome to even
test Dart, and that only runs on Snow Leopard and Linux.


I don't know where you looked at but the docs are OK 
http://www.dartlang.org/dartium/, Dartium binaries are available for 
Windows, Linux and Mac: http://www.dartlang.org/downloads.html


Yes, sorry, my mistake. I got the instructions from:

http://code.google.com/p/dart/wiki/BuildingDartium

"These are instructions to check out and build a modified version of 
Chromium that embeds the DartVM. We currently build on Mac OS X (Snow 
Leopard and XCode 3.2) and Linux."


However, my point is still valid. Support for Dart is in its infancy, 
and GWT is a mature and well-supported project.


Alan




All browsers *ALREADY* support Java GWT, because GWT compiles the
browser side to Javascript, an interpretive language supported by all
mainstream browsers including IE6-IE10, Chrome, Firefox, Opera etc. 



All browsers *ALREADY*  support Dart, because Dart compiles to JS too! 
http://www.dartlang.org/docs/dart2js/

--
You received this message because you are subscribed to the Google 
Groups "Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ITRX1L6HQyYJ.

To post to this group, send email to google-web-toolkit@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-toolkit@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: DART vs. GWT

2012-08-22 Thread Arash
I have no experience with DART but GWT is already in a very stable and 
usable state practically. Unfortunately, I can't help but share the same 
fear though since the community is getting less responsive or at least the 
experts in the group. I recently have posted the following two issues on 
GWT group and I have yet to receive a reply on any of them. This is where 
the group was very active and responsive in the past years and recently 
they just seem to be less involved. 

https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/d9gZMff7RlI
https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/_xYVPg1xVG4

Thanks,
Arash

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/6Ts0zg_4-3cJ.
To post to this group, send email to google-web-toolkit@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: DART vs. GWT

2012-08-22 Thread Thomas Broyer


On Wednesday, August 22, 2012 5:57:42 PM UTC+2, deepak chauhan wrote:
>
> One question is disturbing me from a long time. Why Google invented DART, 
> when GWT is already there?


See Alan's answer, and 
http://www.dartlang.org/slides/2012/06/io12/Dart-A-Modern-Web-Language.pdf
 

> One reason I can see is that Google is planning to port DART in chrome 
> browser and dreaming to support by all browser in future, which may not be 
> feasible in case of Java based GWT.
>
> But, don't you think that it will decrease the popularity of GWT and 
> active activities on GWT?
>

No:

   - popularity: has CoffeeScript and/or Node.js had any impact in GWT's 
   popularity? I don't think so.
   - active activities: activities on GWT are no longer lead by Google 
   only, so even if Google's activities on GWT decreased (and I don't think 
   they will, quite the contrary actually; FYI, they're recruiting), it 
   wouldn't mean that "general activities" would. There's the steering 
   committee, there's the community.


I am asking this, because I have to decide between GWT and DART in a 
> project.
>

Dart is young and still not mature (only reached its first milestone) , 
things will continue to change under your feet and break your code.
AFAICT, Dart has no equivalent to widgets and tools like 
GWT-RPC/RequestFactory, UiBinder, etc. It's much more "to the metal".
Dart's generated JS also does not support IE: 
http://www.dartlang.org/docs/technical-overview/#howtouse (yes, I lied when 
replying to Alan), maybe it'll work in IE10 (maybe not).

I'm not preaching for GWT though, only trying to be objective here. Dart 
looks great and some people have already deployed web apps in production 
using Dart. It really depends on your project (your needs, your deadline, 
etc.), and of course your skills.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/WQG5m5v_eLEJ.
To post to this group, send email to google-web-toolkit@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: DART vs. GWT

2012-08-22 Thread Thomas Broyer


On Wednesday, August 22, 2012 6:36:53 PM UTC+2, Arash wrote:
>
> I have no experience with DART but GWT is already in a very stable and 
> usable state practically. Unfortunately, I can't help but share the same 
> fear though since the community is getting less responsive or at least the 
> experts in the group. I recently have posted the following two issues on 
> GWT group and I have yet to receive a reply on any of them. This is where 
> the group was very active and responsive in the past years and recently 
> they just seem to be less involved. 


You know, it's vacation time in many parts of the world ;-)
I'm just back from 3 weeks of vacations with limited connectivity 
(smartphone only)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/3y4RkvM5E6QJ.
To post to this group, send email to google-web-toolkit@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.



Using GWT with Hibernate - outdated documentation ?

2012-08-22 Thread kush
Hi,

I think 
https://developers.google.com/web-toolkit/articles/using_gwt_with_hibernate 
should be deprecated in favor of 
https://developers.google.com/web-toolkit/doc/latest/DevGuideRequestFactory 

Not sure the appropriate place to post this, wish i could have just left 
feedback on the possibly outdated link.

Thanks and keep up the great work, you guys are awesome!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/MJ857zeJ3EUJ.
To post to this group, send email to google-web-toolkit@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.



Using Java GUI for online and offline

2012-08-22 Thread xoidberg
Hey guys,

I'm new to GWT and just played a little bit with it.
My questions is, when I build a GUI in Java, can I use it for an offline 
desktop client in Java? The purpose of this would be, that you write the GUI 
once and use it in an online and offline version.

Regards,

xoidberg

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Fr0qOlBlOZ4J.
To post to this group, send email to google-web-toolkit@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: When will there be official GWT binding for Google Maps Javascript API v3?

2012-08-22 Thread syshex
Really interested in this aswell 

On Wednesday, August 17, 2011 9:13:52 PM UTC+1, zhong wrote:
>
> Would somebody know when there will be official GWT binding for Google 
> Maps Javascript API v3? 
>
> Thanks, 
> Zhong

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/anZRlNkOXuIJ.
To post to this group, send email to google-web-toolkit@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: Any recommend tutorial for integration of Liferay portal with GWT application

2012-08-22 Thread Sipra

Hi tong123123 ,

 Can You Please Share how you have integrated the GWT RPC in Liferay 
Portal, i have the requirement on this,
Please help me out,
   Thanks in Advance

On Tuesday, August 7, 2012 3:17:09 PM UTC+5:30, tong123123 wrote:
>
> as cationed, Liferay portal 6.0.6 CE, GWT 2.4 with using RPC to 
> communicate with server.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/eL0FCX3zxMMJ.
To post to this group, send email to google-web-toolkit@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.



Handling events via @UiHandler with CellTable

2012-08-22 Thread Kevin Buikema
I'm using a CellTable with EditTextCells and CheckboxCell columns in an MVP 
app, and I'm trying to set up a UiHandler for the updates instead of 
explicitly declaring field updaters for each column, to make it more 
abstracted so the handling can be done in the presenter. Is something like 
that possible, or am I stuck with the explicit field updater assignments?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/J5ZTx3KoA0oJ.
To post to this group, send email to google-web-toolkit@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.



RootLayoutPanel - added widget is zero height.

2012-08-22 Thread Kirill Kazoolin
I am trying to do very basic thing from the docs examples - add a 
SplitLayoutPanel to the main html.
I copied the code from online GWT examples, but the window thatopens is 
enpty.
Firebug shows that my widget is on the page, but has ) height and 
completely collapsed.
What is the magic word here?
Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5mTL-tqq6YIJ.
To post to this group, send email to google-web-toolkit@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 2.5.0-rc1 on IPad not firing click events

2012-08-22 Thread Casey Rodgers
In GWT 2.5.0-rc1 buttons (and anchors) will only fire the click event every 
few clicks.  Meaning you have to click on buttons multiple times to get 
them to fire.

Is anyone else having this issue?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/lwK4_xzgAFUJ.
To post to this group, send email to google-web-toolkit@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-minimize button in gwt

2012-08-22 Thread Vadivalagan Athi
Hi,
I need to use minimize button in window ,so i added it by using 
.setMinimize(true)...bt its nt working..kindly help me to fix this problem 
n its urgent.








Thanks
  Vadivalagan

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/dIjyMOB-ZlsJ.
To post to this group, send email to google-web-toolkit@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: Google Maps API v3 support in gwt-google-apis

2012-08-22 Thread syshex
Hi there ,

Is there any timeline for this now?
Here we have a V2 license, which will stop working in May next year and it 
would be nice to have a timeframe for the v3 release so we can plan 
migration.

I do appreciate there are other projects, and the one pointed out by you is 
also deprecated.
It would be really nice to work with the a final version or at least a 
release candidate that is documented in some way, about which we can submit 
bugs, and not some generated code that has no API documentation that makes 
sense on a gwt/java context. 

So, the overall question is : when will we have a release candidate version 
of the gwt maps api for v3 ? Its been more than a year since the last email 
of this thread and it would be really comforting to know that google is 
working on this  like if it was a real product with support and stuff 
for people that have licenses and actually pay to use it on their products.

Thanks
Rui


On Wednesday, February 23, 2011 9:10:28 PM UTC, zundel wrote:
>
> There is no timeline for supporting maps v3 with GWT bindings officially 
> in gwt-google-apis.  There are some other projects out there you can use 
> such as http://code.google.com/p/gwt-google-maps-v3/
>
> On Wed, Feb 23, 2011 at 11:51 AM, bmclean 
> > wrote:
>
>> Hello,
>>
>> I’m working with a client on an application I have written using gwt-
>> google-apis Maps. They’re interested in upgrading the application to
>> use new features available in Google Maps Javascript API v3. Does
>> anyone have an estimate as to when gwt-google-apis project will
>> support the Google Maps Javascript API v3?
>>
>> Thank you,
>> Brett
>>
>> --
>>
>
>
> -- 
> Eric Z. Ayers
> Google Web Toolkit, Atlanta, GA USA
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/BEHBlFPodRcJ.
To post to this group, send email to google-web-toolkit@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: Please help in Displaying SSRS Reports in GWT Application

2012-08-22 Thread Kyle White
I too am building a GWT project with a .NET back end. I got around the SOP 
issue by using CORS (http://www.w3.org/TR/cors/) which allows me to debug the 
GWT project and the .NET project at the same time. It works in IE, FF and 
Chrome which are the only browsers I've tested. So, if you can implement CORS, 
that may be one hurdle toward implementing SSRS in your GWT app. I don't know 
about the rest of it but I've thought about it a lot and am curious to hear 
other ideas.

My idea is to use a back-end process to render to HTML and deliver that to the 
GWT client for display in some sort of HTML panel. Hopefully that would be 
browser agnostic. If that doesn't work, then rendering to PDF and returning 
that to the browser would work. Another way to go might be to use an iframe to 
hit the SSRS service (which will get you the interactivity) but that will only 
work well in IE. If you find a better way, please let me know. Maybe I can help 
out with the CORS stuff (which really aids in debugging).

Kyle

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/v8qm-3qfWtgJ.
To post to this group, send email to google-web-toolkit@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 2.5 RC1 Is Here!

2012-08-22 Thread rajar

On Wednesday, June 27, 2012 1:39:07 PM UTC-7, Rajeev Dayal wrote:
>
> Hey all,
>
> We're excited to announce the GWT 2.5 Release Candidate! Read about it on 
> the GWT Blog , 
> and download it here  
> (bottom 
> of the page). The RC has been uploaded to Maven Central with the version 
> string of 2.5.0-rc1.
>
> Please give it a try and let us know your feedback! Also, many thanks to 
> all of you for your contributions. Without your help, we wouldn't have had 
> a GWT 2.5 release at all!
>
>
> -Rajeev, on behalf of the GWT team
>  
>
 
 
More of a question than reply. What is the future of GWT after 2.5 ? We are 
using GWT and wanted to decide whether to change all our GWT modules 
to javascript .
 
Thanks. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/EOJpz8NqbMIJ.
To post to this group, send email to google-web-toolkit@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: Color picker

2012-08-22 Thread jmich
Hi, this picker looks nice.
What are the license or terms for usage?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/O2wWGomNVFQJ.
To post to this group, send email to google-web-toolkit@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 2.5 final release date??

2012-08-22 Thread Thomas Broyer


On Wednesday, August 22, 2012 5:41:49 PM UTC+2, deepak chauhan wrote:
>
> Ohh..
>
> Is it safe to use RC in production?
>

Well, it's well-known that Google uses the trunk in production, so I guess 
we could say yes, it's safe to use the RC in production ;-)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/6gGTnva19tUJ.
To post to this group, send email to google-web-toolkit@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: Handling events via @UiHandler with CellTable

2012-08-22 Thread Juan Pablo Gardella
See
https://developers.google.com/web-toolkit/doc/latest/ReleaseNotes#uirenderer

2012/8/21 Kevin Buikema 

> I'm using a CellTable with EditTextCells and CheckboxCell columns in an
> MVP app, and I'm trying to set up a UiHandler for the updates instead of
> explicitly declaring field updaters for each column, to make it more
> abstracted so the handling can be done in the presenter. Is something like
> that possible, or am I stuck with the explicit field updater assignments?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/J5ZTx3KoA0oJ.
> To post to this group, send email to google-web-toolkit@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-toolkit@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: CellTable - add Anchors to a cell

2012-08-22 Thread Magnus
Hi Jens,

this sounds really good, but I am totally new to this cellview technique 
and I need more precise hints at the moment:

- "implement a custom cell":
  from which class should it be derived? AbstractCell?

- "that simply decides":
  where and how can I implement this decision?

- "if the row is editable add an edit link/button"
  I already tried exactly this by adding a Panel of Anchor objects as 
SafeHtml,
  but the click handler is not triggered.
  I assume that the connection to the click handler gets lost when putting 
Panel.toString() into the SafeHtml

- "in its event method you can figure out which link/button has been 
clicked"
  How this is to be done should depend on how the links are created.
  Adding Anchors with click handlers did not work for me.

A basic skeleton would be fine...

Magnus

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/RRG9X9bcYNcJ.
To post to this group, send email to google-web-toolkit@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.



Request Factory Editor Driver: How to add a nested field to the path

2012-08-22 Thread Arash
In the process of editing, Editor driver adds all the @UiField fields to 
the path as it traverses the view. I have the need to ask the request 
factory to fetch an inner entity that is not part of the @UiField. I 
basically need intercept the getPath() somehow to add a path to edit 
request without the need of adding the field to the ui. I thought of 
implementing the EditorDelegate interface but I'm not quite sure as of how 
to tackle this. What is the proper way to approach this?

Thanks,
Arash

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/7V9pT7UGWZ8J.
To post to this group, send email to google-web-toolkit@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: DART vs. GWT

2012-08-22 Thread deepak chauhan
Dart2js is same as the GWT compiler compiles the Java code into javascript.

Again, I am copying pasting few lines from my origination message to answer
the original problem.

*Why Google invented DART, when GWT is already there? *

On Wed, Aug 22, 2012 at 9:53 PM, Thomas Broyer  wrote:

>
>
> On Wednesday, August 22, 2012 6:15:42 PM UTC+2, Alan Chaney wrote:
>>
>> According to the Dart
>> wiki, currently you have to build your own version of Chrome to even
>> test Dart, and that only runs on Snow Leopard and Linux.
>>
>
> I don't know where you looked at but the docs are OK
> http://www.dartlang.org/dartium/, Dartium binaries are available for
> Windows, Linux and Mac: http://www.dartlang.org/downloads.html
>
>
>> All browsers *ALREADY* support Java GWT, because GWT compiles the
>> browser side to Javascript, an interpretive language supported by all
>> mainstream browsers including IE6-IE10, Chrome, Firefox, Opera etc.
>
>
> All browsers *ALREADY*  support Dart, because Dart compiles to JS too!
> http://www.dartlang.org/docs/dart2js/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/ITRX1L6HQyYJ.
>
> To post to this group, send email to google-web-toolkit@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.
>



-- 
Deepak Chauhan

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



Re: Request Factory Editor Driver: How to add a nested field to the path

2012-08-22 Thread Thomas Broyer


On Wednesday, August 22, 2012 6:50:30 PM UTC+2, Arash wrote:
>
> In the process of editing, Editor driver adds all the @UiField fields to 
> the path as it traverses the view. I have the need to ask the request 
> factory to fetch an inner entity that is not part of the @UiField. I 
> basically need intercept the getPath() somehow to add a path to edit 
> request without the need of adding the field to the ui. I thought of 
> implementing the EditorDelegate interface but I'm not quite sure as of how 
> to tackle this. What is the proper way to approach this?


For now, you have no other way than adding a SimpleEditor field.

See also http://code.google.com/p/google-web-toolkit/issues/detail?id=6227

(BTW, Editor does not look at @UiField, it looks at all non-private fields 
that are Editor-s or IsEditor-s, or zero-arg methods with such return type)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ffOjWEN8vZQJ.
To post to this group, send email to google-web-toolkit@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: DART vs. GWT

2012-08-22 Thread deepak chauhan
Thanks Thomas :)

On Wed, Aug 22, 2012 at 10:24 PM, deepak chauhan wrote:

> Dart2js is same as the GWT compiler compiles the Java code into
> javascript.
>
> Again, I am copying pasting few lines from my origination message to
> answer the original problem.
>
> *Why Google invented DART, when GWT is already there? *
>
> On Wed, Aug 22, 2012 at 9:53 PM, Thomas Broyer  wrote:
>
>>
>>
>> On Wednesday, August 22, 2012 6:15:42 PM UTC+2, Alan Chaney wrote:
>>>
>>> According to the Dart
>>> wiki, currently you have to build your own version of Chrome to even
>>> test Dart, and that only runs on Snow Leopard and Linux.
>>>
>>
>> I don't know where you looked at but the docs are OK
>> http://www.dartlang.org/dartium/, Dartium binaries are available for
>> Windows, Linux and Mac: http://www.dartlang.org/downloads.html
>>
>>
>>> All browsers *ALREADY* support Java GWT, because GWT compiles the
>>> browser side to Javascript, an interpretive language supported by all
>>> mainstream browsers including IE6-IE10, Chrome, Firefox, Opera etc.
>>
>>
>> All browsers *ALREADY*  support Dart, because Dart compiles to JS too!
>> http://www.dartlang.org/docs/dart2js/
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/google-web-toolkit/-/ITRX1L6HQyYJ.
>>
>> To post to this group, send email to google-web-toolkit@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.
>>
>
>
>
> --
> Deepak Chauhan
>



-- 
Deepak Chauhan

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



Re: DART vs. GWT

2012-08-22 Thread deepak chauhan
Thanks Thomas for your very satisfactory answers.Do you know the expected
final release date of GWT 2.5?

On Wed, Aug 22, 2012 at 10:26 PM, deepak chauhan wrote:

> Thanks Thomas :)
>
>
> On Wed, Aug 22, 2012 at 10:24 PM, deepak chauhan 
> wrote:
>
>> Dart2js is same as the GWT compiler compiles the Java code into
>> javascript.
>>
>> Again, I am copying pasting few lines from my origination message to
>> answer the original problem.
>>
>> *Why Google invented DART, when GWT is already there? *
>>
>> On Wed, Aug 22, 2012 at 9:53 PM, Thomas Broyer wrote:
>>
>>>
>>>
>>> On Wednesday, August 22, 2012 6:15:42 PM UTC+2, Alan Chaney wrote:

 According to the Dart
 wiki, currently you have to build your own version of Chrome to even
 test Dart, and that only runs on Snow Leopard and Linux.

>>>
>>> I don't know where you looked at but the docs are OK
>>> http://www.dartlang.org/dartium/, Dartium binaries are available for
>>> Windows, Linux and Mac: http://www.dartlang.org/downloads.html
>>>
>>>
 All browsers *ALREADY* support Java GWT, because GWT compiles the
 browser side to Javascript, an interpretive language supported by all
 mainstream browsers including IE6-IE10, Chrome, Firefox, Opera etc.
>>>
>>>
>>> All browsers *ALREADY*  support Dart, because Dart compiles to JS too!
>>> http://www.dartlang.org/docs/dart2js/
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Web Toolkit" group.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/google-web-toolkit/-/ITRX1L6HQyYJ.
>>>
>>> To post to this group, send email to google-web-toolkit@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.
>>>
>>
>>
>>
>> --
>> Deepak Chauhan
>>
>
>
>
> --
> Deepak Chauhan
>



-- 
Deepak Chauhan

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



formpanel.submit does not submit the file on GWT server

2012-08-22 Thread learning coding
i want to send a file from client to server.

My code: Client side:

private FormPanel getFormPanel() {
if (formPanel == null) {
formPanel = new FormPanel();
formPanel.setMethod(FormPanel.METHOD_POST);
formPanel.setEncoding(FormPanel.ENCODING_MULTIPART);
formPanel.setAction(GWT.getHostPageBaseURL() +"UploadFileServlet");
formPanel.setWidget(getFlexTable_1());

System.out.println(GWT.getHostPageBaseURL()
+"UploadFileServlet");
}
return formPanel;
}

In getFlexTable_1()

flexTable.setWidget(1, 1, getFileUpload());

in getFileUpload()

private FileUpload getFileUpload() {
if (fileUpload == null) {
fileUpload = new FileUpload();
fileUpload.setName("upload");
}
return fileUpload;
}

private Button getAddButton() {
if (addButton == null) {
addButton = new Button("ADD");
addButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
   formPanel.submit();
}
});
}
return addButton;

}

On server side

public class CmisFileUpload extends HttpServlet implements Servlet{

protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
doPost(request, response);
}

protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {

byte[] buffer = new byte[115200];//
String fileName = null;
String mimetype = null;
String majorVersion = null;
InputStream stream = null;
System.out.println("ServletWorking Fine");
}

*Now when i Choose a file and click on ADD button i cant see the output on
server side for this code System.out.println("ServletWorking Fine");*

The outPut of System.out.println(GWT.getHostPageBaseURL()
+"UploadFileServlet"); on client side is

*http://127.0.0.1:/UploadFileServlet*
and when i use this url directly on browser i get server side output
for System.out.println("ServletWorking
Fine");**

Plz tell me why formpanel.submit is not working.

Regards

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



Re: CellTable - add Anchors to a cell

2012-08-22 Thread Jens


> this sounds really good, but I am totally new to this cellview technique


A simple tutorial for custom cells can be found 
at: https://developers.google.com/web-toolkit/doc/latest/DevGuideUiCustomCells
 

> and I need more precise hints at the moment:
>
> - "implement a custom cell":
>   from which class should it be derived? AbstractCell?
>

As you cell does no editing, AbstractCell is the way to go.
 

> - "that simply decides":
>   where and how can I implement this decision?
>

Its implemented in the cell's render method. Inside the cell you have 
access to the row value and your row value will probably have methods like 
isEditable(), isDeletable(), etc. If it don't, you could provide a class to 
the cell that knows this information. With that information you can build 
up the HTML render string using SafeHtmlTemplates/SafeHtmlUtils.


> - "if the row is editable add an edit link/button"
>   I already tried exactly this by adding a Panel of Anchor objects as 
> SafeHtml,
>   but the click handler is not triggered.
>   I assume that the connection to the click handler gets lost when putting 
> Panel.toString() into the SafeHtml
>

Yes. You have only appended the HTML code of your widgets but events will 
be lost that way. Widget events only work inside a Widget hierarchy or when 
the widget provides a wrap(Element e) method like 
Button.wrap(buttonElement). 
Cell widget events work a bit different. For example if you have a cell 
that needs click events, the whole CellTable will consume native browser 
click events. Once a click happens the CellTable figures out which 
column/row is clicked and then calls the onBrowserEvent() method of the 
cell with that information. There is only one cell instance per column that 
is responsible to render all possible rows and to handle all events in that 
column for all rows. So it needs that context information to do its job.
 

>
> - "in its event method you can figure out which link/button has been 
> clicked"
>   How this is to be done should depend on how the links are created.
>

While rendering your cell you would add custom attributes to your 
buttons/links that you can later identify when an event has occured. 
Something like Edit or Delete. You can then read the custom attribute to 
figure out which action to execute and you also know the column and row 
value. Should be everything you need.

Hope this helps. If you still need a skeleton implementation let me know.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/jQfVxu6mIgEJ.
To post to this group, send email to google-web-toolkit@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: formpanel.submit does not submit the file on GWT server

2012-08-22 Thread Juan Pablo Gardella
Try add the fileUpload component to the form.

2012/8/22 learning coding 

> i want to send a file from client to server.
>
> My code: Client side:
>
> private FormPanel getFormPanel() {
> if (formPanel == null) {
> formPanel = new FormPanel();
> formPanel.setMethod(FormPanel.METHOD_POST);
> formPanel.setEncoding(FormPanel.ENCODING_MULTIPART);
> formPanel.setAction(GWT.getHostPageBaseURL() +"UploadFileServlet");
> formPanel.setWidget(getFlexTable_1());
>
> System.out.println(GWT.getHostPageBaseURL() 
> +"UploadFileServlet");
> }
> return formPanel;
> }
>
> In getFlexTable_1()
>
> flexTable.setWidget(1, 1, getFileUpload());
>
> in getFileUpload()
>
> private FileUpload getFileUpload() {
> if (fileUpload == null) {
> fileUpload = new FileUpload();
> fileUpload.setName("upload");
> }
> return fileUpload;
> }
>
> private Button getAddButton() {
> if (addButton == null) {
> addButton = new Button("ADD");
> addButton.addClickHandler(new ClickHandler() {
> public void onClick(ClickEvent event) {
>formPanel.submit();
> }
> });
> }
> return addButton;
>
> }
>
> On server side
>
> public class CmisFileUpload extends HttpServlet implements Servlet{
>
> protected void doGet(HttpServletRequest request,
> HttpServletResponse response) throws ServletException, 
> IOException {
> doPost(request, response);
> }
>
> protected void doPost(HttpServletRequest request,
> HttpServletResponse response) throws ServletException, 
> IOException {
>
> byte[] buffer = new byte[115200];//
> String fileName = null;
> String mimetype = null;
> String majorVersion = null;
> InputStream stream = null;
> System.out.println("ServletWorking Fine");
> }
>
> *Now when i Choose a file and click on ADD button i cant see the output
> on server side for this code System.out.println("ServletWorking Fine");*
>
> The outPut of System.out.println(GWT.getHostPageBaseURL()
> +"UploadFileServlet"); on client side is
>
> *http://127.0.0.1:/UploadFileServlet*
> and when i use this url directly on browser i get server side output for 
> System.out.println("ServletWorking
> Fine");**
>
> Plz tell me why formpanel.submit is not working.
>
> Regards
>
> --
> 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+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-toolkit@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.



JSNI troubles (TypeError)

2012-08-22 Thread dhoffer
I'm trying to write a little JNSI but am having trouble, I get an
exception with this this message (TypeError): Object expected

When I run this code:

public static native void init(String id) /*-{

var elem = $doc.getElementById(id);
addEvent(elem, 'drop', droppedHandler);
addEvent(elem, 'dragover', allowDrop);

function allowDrop(event) {
if (event.stopPropagation)event.stopPropagation();
if (event.preventDefault)event.preventDefault();
return false;
}

function droppedHandler(event) {
if (event.preventDefault)event.preventDefault();
return false;
}

var addEvent = (function () {
if (document.addEventListener) {
return function (el, type, fn) {
if (el && el.nodeName || el === window) {
el.addEventListener(type, fn, false);
} else if (el && el.length) {
for (var i = 0; i < el.length; i++) {
addEvent(el[i], type, fn);
}
}
};
} else {
return function (el, type, fn) {
if (el && el.nodeName || el === window) {
el.attachEvent('on' + type, function () {
return fn.call(el, window.event);
});
} else if (el && el.length) {
for (var i = 0; i < el.length; i++) {
addEvent(el[i], type, fn);
}
}
};
}
})();
}-*/;

Where in my extended RichTextArea I set a unique ID on its element
via:

private final String id = UUID.uuid();
getElement().setId(id);

I don't think the problem is in the body of the method...i think there
is something wrong with getting a valid Element to the addEvent()
method.  Also is there a way to debug this somehow so I can see what
is really happening?

Thanks,
-Dave

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



Re: JSNI troubles (TypeError)

2012-08-22 Thread Joseph Lust
Generally it is an antipattern to reference by id in GWT due to how 
UiBinder works behind the scenes with Id's. Can you pass an element into 
the JSNI method on which to operate?


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/bfJjU8tJsxIJ.
To post to this group, send email to google-web-toolkit@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: DART vs. GWT

2012-08-22 Thread Joseph Lust
Frankly the only issue GWT has, which Dart likely does not, is that it 
requires intelligent Java developers. You know, that language that is all 
strict and requires you to really understand what you're doing. Generics, 
oh my!

Script kiddies don't much care for XML, unit testing frameworks, Aria, 
UiBinder, i18n, hyper optmized JS and the like. To them these are hoops. I 
would not expect frameworks that really are best in class at making RIA's 
to be the 'most popular' for this reason. And it's not just the kiddies. To 
others like seasoned JSP developers, many of the concepts are still new in 
GWT, and why would they want to change?

So I'd never expect GWT to become super popular or to surpass PHP/jQuery 
mashups. But I can say from experience that in the enterprise space, where 
these features are sought afters, it is continuing to gain popularity. 
We've got 70 GWT devs in my office alone.



Sincerely,
Joseph 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/64cu4UHa5OQJ.
To post to this group, send email to google-web-toolkit@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 Java GUI for online and offline

2012-08-22 Thread alexkrishnan
The only way I would really see doing this is if you ran a local webserver 
(tomcat/jetty) and pointed your webbrowser to localhost..

On Wednesday, August 22, 2012 2:18:13 AM UTC-7, xoidberg wrote:
>
> Hey guys,
>
> I'm new to GWT and just played a little bit with it.
> My questions is, when I build a GUI in Java, can I use it for an offline 
> desktop client in Java? The purpose of this would be, that you write the 
> GUI once and use it in an online and offline version.
>
> Regards,
>
> xoidberg
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/T2OMEPF63tgJ.
To post to this group, send email to google-web-toolkit@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 Java GUI for online and offline

2012-08-22 Thread Alain Ekambi
Theere a several way to take you GWT apps offline

HTML5 Localstorage
Adobe AIR
Titanium Deskotop

We have been using the 2 latest quiet successfully.



2012/8/23 alexkrishnan 

> The only way I would really see doing this is if you ran a local webserver
> (tomcat/jetty) and pointed your webbrowser to localhost..
>
>
> On Wednesday, August 22, 2012 2:18:13 AM UTC-7, xoidberg wrote:
>>
>> Hey guys,
>>
>> I'm new to GWT and just played a little bit with it.
>> My questions is, when I build a GUI in Java, can I use it for an offline
>> desktop client in Java? The purpose of this would be, that you write the
>> GUI once and use it in an online and offline version.
>>
>> Regards,
>>
>> xoidberg
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/T2OMEPF63tgJ.
>
> To post to this group, send email to google-web-toolkit@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-toolkit@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: JSNI troubles (TypeError)

2012-08-22 Thread dhoffer
I tried that too and got the same error.

I was given the javascript code that started like this (where dropBox
was the id of the div)

var dropBox = document.getElementById("dropBox");
addEvent(dropBox, 'drop', droppedHandler);
addEvent(dropBox, 'dragover', allowDrop);

And I was asked to add this to our GWT app where the widget is now a
RichTextArea.  Initially I used getElement() and passed that directly
into the init method so the JSNI method used the passed elem
directly...but that gave the same exception.  I just don't understand
why.

Thanks,
-Dave



On Aug 22, 3:44 pm, Joseph Lust  wrote:
> Generally it is an antipattern to reference by id in GWT due to how
> UiBinder works behind the scenes with Id's. Can you pass an element into
> the JSNI method on which to operate?
>
> Sincerely,
> Joseph

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



Re: Any recommend tutorial for integration of Liferay portal with GWT application

2012-08-22 Thread tong123123
I do not know how to do also. And post in Liferay portal forum also no help.
I try to follow this website
http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/How+to+build+a+GWT+Portlet+in+Liferay
but no help, the nocache.js even included in the view.jsp, but the gwt 
layout cannot be shown.

there is also one website mention integration of gwt and portlet (very old) 
but I cannot understand what he said, if you can follow and success, hope 
you can share the experience here.
http://xantorohara.blogspot.hk/2007/07/portlets-and-gwt.html

the worse is there is no much material in the web to taught about 
integration of GWT into protal, so I know I am in trouble :(


On Tuesday, August 21, 2012 5:08:33 PM UTC+8, Sipra wrote:
>
>
> Hi tong123123 ,
>
>  Can You Please Share how you have integrated the GWT RPC in Liferay 
> Portal, i have the requirement on this,
> Please help me out,
>Thanks in Advance
>
> On Tuesday, August 7, 2012 3:17:09 PM UTC+5:30, tong123123 wrote:
>>
>> as cationed, Liferay portal 6.0.6 CE, GWT 2.4 with using RPC to 
>> communicate with server.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ZCBrjkqGHP8J.
To post to this group, send email to google-web-toolkit@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: JSNI troubles (TypeError)

2012-08-22 Thread Alfredo Quiroga-Villamil
Decorate your JSNI with some "console.log(" statements. Open up in
your browser your Dev Tools (depends on the browser you are using),
look at the console and narrow down the issue there.

If you provide a simple concise example that allows the issue to be
easily duplicated, I'll be happy to take a look at it here as well.

Best regards,

Alfredo

On Wed, Aug 22, 2012 at 4:36 PM, dhoffer  wrote:
> I'm trying to write a little JNSI but am having trouble, I get an
> exception with this this message (TypeError): Object expected
>
> When I run this code:
>
> public static native void init(String id) /*-{
>
> var elem = $doc.getElementById(id);
> addEvent(elem, 'drop', droppedHandler);
> addEvent(elem, 'dragover', allowDrop);
>
> function allowDrop(event) {
> if (event.stopPropagation)event.stopPropagation();
> if (event.preventDefault)event.preventDefault();
> return false;
> }
>
> function droppedHandler(event) {
> if (event.preventDefault)event.preventDefault();
> return false;
> }
>
> var addEvent = (function () {
> if (document.addEventListener) {
> return function (el, type, fn) {
> if (el && el.nodeName || el === window) {
> el.addEventListener(type, fn, false);
> } else if (el && el.length) {
> for (var i = 0; i < el.length; i++) {
> addEvent(el[i], type, fn);
> }
> }
> };
> } else {
> return function (el, type, fn) {
> if (el && el.nodeName || el === window) {
> el.attachEvent('on' + type, function () {
> return fn.call(el, window.event);
> });
> } else if (el && el.length) {
> for (var i = 0; i < el.length; i++) {
> addEvent(el[i], type, fn);
> }
> }
> };
> }
> })();
> }-*/;
>
> Where in my extended RichTextArea I set a unique ID on its element
> via:
>
> private final String id = UUID.uuid();
> getElement().setId(id);
>
> I don't think the problem is in the body of the method...i think there
> is something wrong with getting a valid Element to the addEvent()
> method.  Also is there a way to debug this somehow so I can see what
> is really happening?
>
> Thanks,
> -Dave
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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



Not able to install GWT plugin in eclipse

2012-08-22 Thread Sanjay Jain
Hello all,
I am using eclipse 3.7 version on windows xp platform.
I want to install GWT plugin for it so I tries below url for the installing 
plugin.
http://dl.google.com/eclipse/plugin/3.6 

I checked three box in suggested list.
1. Google plugin for eclipse
2. Google App Engine Java SDK 1.7
3. Google Web Tool kit 2.4

I also checked the contact all update sites during installation problem.
But it is not installing the GWT plugin and giving me below error.

An error occurred while collecting items to be installed
session context was:(profile=SDKProfile, 
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, 
action=).
Problems downloading artifact: 
osgi.bundle,com.google.gwt.eclipse.sdkbundle,2.4.0.v201208080120-rel-r37.
MD5 hash is not as expected. Expected: 4377ba085a0089b1641d9c989f4bd0cc and 
found 4cacae71d159d6c14fe5b09f04b2ec16.
Problems downloading artifact: 
osgi.bundle,com.google.appengine.eclipse.sdkbundle,1.7.0.
MD5 hash is not as expected. Expected: 1ba46f6b6c57b36904abecef6ae99cba and 
found f142767a855d57c150e2383afd1c342e.

I am not getting the where the problem is.I also tried eclipse 3.6 but the 
same problem is also occurring in that version.
Please help me out.
Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Z4TiHZ5KcKIJ.
To post to this group, send email to google-web-toolkit@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: DART vs. GWT

2012-08-22 Thread Brian Slesinsky
We don't have any date yet due to distractions and other priorities, but we 
hope to do it soon.

On Wednesday, August 22, 2012 10:05:29 AM UTC-7, deepak chauhan wrote:
>
> Thanks Thomas for your very satisfactory answers.Do you know the expected 
> final release date of GWT 2.5?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/1c58FcxgK-sJ.
To post to this group, send email to google-web-toolkit@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: SuperDevMode Compiler Options

2012-08-22 Thread Brian Slesinsky


On Tuesday, August 21, 2012 1:25:43 AM UTC-7, Thomas Broyer wrote:
>
>
>
> On Monday, August 20, 2012 3:35:06 PM UTC+2, Oliver Krylow wrote:
>>
>> Hi!
>>
>> Is there a way to pass arguments to the compiler the CodeServer uses?
>>
> No.
>

Well, actually you could provided that you're willing to edit some source 
code and rebuild gwt-codeserver.jar from source. Here is the relevant file:

http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/codeserver/java/com/google/gwt/dev/codeserver/CompilerOptionsImpl.java

It shouldn't be too hard to write a patch to expose some flags. I started 
out with a minimal set of flags, not knowing which flags people would want 
and wanting to keep things simple.
 

>  
>
>> I am interested in passing the "-strict" flag for example.
>>
> Please file an issue. There could also be a -logLevel argument (and a 
> better UI, possibly integrated with the GPE, among other improvements)
>

I'm unlikely to get to it soon, but I think it would be nice to expose the 
ability to change compiler options from within the browser before doing a 
recompile.

- Brian
 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/LUuVUce3lCoJ.
To post to this group, send email to google-web-toolkit@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.