Enter Key Forces Call to onModuleLoad()

2010-04-14 Thread Daniel Simons
In my app I have a View which implements the KeyUpHandler.  Within the view
I have a TextBox for which I have added the key up event handler.  My view
summarized looks something like this:


public class View extends Composite  implements KeyUpHandler
{
public View()
{
textbox.addKeyUpHandler(this);
}

@Override
public void onKeyUp(KeyUpEvent event) {
if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
Window.alert(Enter was pressed);
keyPressButton.click();
}
}

}

My problem is that when I click the ENTER key while focus is on the textbox,
the onmodule method is called reinitializing everythingHow do I avoid
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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Enter Key Forces Call to onModuleLoad()

2010-04-14 Thread Daniel Simons
I'm now using a div rather than form tag to wrap the textbox and it seems to
have fixed the problem.  Thanks!

On Wed, Apr 14, 2010 at 8:28 PM, Sripathi Krishnan 
sripathikrish...@gmail.com wrote:

 Is the textbox a part of a form that has a submit button? When you press
 enter, the form may be submitting, causing the page to reload (and therefore
 calling onModuleLoad).


 --Sri


 On 15 April 2010 00:04, Daniel Simons daniel.simo...@gmail.com wrote:

 In my app I have a View which implements the KeyUpHandler.  Within the
 view I have a TextBox for which I have added the key up event handler.  My
 view summarized looks something like this:


 public class View extends Composite  implements KeyUpHandler
 {
 public View()
 {
 textbox.addKeyUpHandler(this);
 }

 @Override
 public void onKeyUp(KeyUpEvent event) {
  if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
 Window.alert(Enter was pressed);
  keyPressButton.click();
 }
 }

 }

 My problem is that when I click the ENTER key while focus is on the
 textbox, the onmodule method is called reinitializing everythingHow do I
 avoid 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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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.



How To Simulate KeyPress

2010-05-04 Thread Daniel Simons
I am creating a mobile web app with GWT and have discovered that the
TextBox.setFocus(true) method does not work in mobile Safari.  I also tried
using JSNI to directly call element.focus(), which also did not work.
 Looking at other potential work arounds, the textbox in my application that
I would like to focus on happens to be the input immediately following the
input for which the event is being triggered.  Therefore, if I could somehow
simulate the pressing of the TAB key inside that event, I could achieve a
similar result to setFocus(true).  Could anyone explain how I could go
about simulating the TAB Key press?

-- 
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 Retrieve the Service Method Name?

2010-05-18 Thread Daniel Simons
I am looking for a way to retrieve the Service Method name for a given RPC
Service Call.  I would prefer a solution that is more precise than parsing
through the request content via RPCServletUtils.readContentAsUtf8(request).
 Any suggestions?

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



Safari Mobile And The Use of History Tokens

2010-05-26 Thread Daniel Simons
I recently created a mobile application using gwt with the MVP pattern along
with a valueChangeHandler that invokes the onValueChange method when the
History Token changes.  There are 3 ways that my application updates the
history token.

1) Defining the token within the html like in the following example: a
href=#newTokenlink/a

2) Creating a clickHandler that generates an new token:

addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
History.newItem(newToken);
}
 });

3) Creating a clickHandler that directs to the previous token

addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
History.back();
}
 });

The problem I am having is that when a user clicks a link within mobile
safari which opens the iphone mail client (ie, a href=mailto:
usern...@gmail.com/a), then returns to the application by either sending
the email or clicking cancel, then the back button within my application
(ie, History.back() ) no longer invokes the onValueChange method.
 Interestingly, the history token appended to the end of the url does update
when the 'back' button is clicked, and both options 1 and 2 above still
invoke the onValueChangeMethod.  Has anyone dealt with a similar issue or
could someone explain why Safari Mobile seemingly ignores the History state
after returning from the mail client?

Thanks

Daniel

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



Compilation NullPointerException

2010-06-07 Thread Daniel Simons
 I'm getting the following error when compiling my project.  Any ideas why
this error would occur?

Compiling module module name
[ERROR] Unexpected
java.lang.NullPointerException
at com.google.gwt.dev.javac.CompiledClass.init(CompiledClass.java:83)
at
com.google.gwt.dev.javac.JdtCompiler$FindTypesInCud.visit(JdtCompiler.java:186)
at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1253)
at
org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression.traverse(QualifiedAllocationExpression.java:478)
at
org.eclipse.jdt.internal.compiler.ast.FieldDeclaration.traverse(FieldDeclaration.java:298)
at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1232)
at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:687)
at
com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:158)

-- 
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: Compilation NullPointerException

2010-06-08 Thread Daniel Simons
Yep changing to static solved the problem...thanks!

On Tue, Jun 8, 2010 at 12:06 PM, Stefan Bachert stefanbach...@yahoo.dewrote:

 Hi Daniel,

 we need much more information.
 Probably you have a uncommon complex type case.
 I run into such a problem when I used foreign code which has
 extensively used inner classes and generics.
 The solution was, to make some inner classes static which should be
 done anyway when possible

 Stefan Bachert
 http://gwtworld.de


 On 7 Jun., 17:06, Daniel Simons daniel.simo...@gmail.com wrote:
   I'm getting the following error when compiling my project.  Any ideas
 why
  this error would occur?
 
  Compiling module module name
  [ERROR] Unexpected
  java.lang.NullPointerException
  at com.google.gwt.dev.javac.CompiledClass.init(CompiledClass.java:83)
  at
 
 com.google.gwt.dev.javac.JdtCompiler$FindTypesInCud.visit(JdtCompiler.java:186)
  at
 
 org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1253)
  at
 
 org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression.traverse(QualifiedAllocationExpression.java:478)
  at
 
 org.eclipse.jdt.internal.compiler.ast.FieldDeclaration.traverse(FieldDeclaration.java:298)
  at
 
 org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1232)
  at
 
 org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:687)
  at
 
 com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:158)

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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.



Build file Corresponding to GWT Compilation From Eclipse

2010-06-15 Thread Daniel Simons
I'm curious about what occurs with regard to Ant when eclipse compiles my
gwt project.  I'm assuming there is a build.xml file that is generated and
ant runs some javac process declared within the build.xml to compile the
java into javascript.  If this is correct, is it possible to view the
contents of that file?  If not correct, could someone explain further what
is actually going on?


Thanks,
Daniel

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Document.get().getElementById(String) and $doc.getElementById(String) returning nulls

2010-07-01 Thread Daniel Simons
i) The problem here is that you are trying to reference an element that has
not yet been added to the dom.

Check where you are adding the element...most likely a you have a call to
RootPanel.get().add(elem).  Be sure that this happens before calling
getElementsById().

ii) I prefer to create my own Generic Widgets by extending ComplexPanel.
 This is helpful because you can pass in any tag name that you'd like:

public class ContainerTag extends ComplexPanel{
public ContainerTag(String tagName) {
setElement(DOM.createElement(tagName));
}
}

Then you can use: ContainerTag div = new ContainerTag(div);

Daniel


On Thu, Jul 1, 2010 at 12:13 PM, giacomo gia.ghid...@gmail.com wrote:

 Hi everyone!

 SUMMARY
 =

 I'm facing a problem with Document.get().getElementById(String) (in
 Java) and $doc.getElementById(String) (in JavaScript) returning nulls.

 My design goal is to define a div element in the Java code and add
 it to the document, so that I can then retrieve it in the JSNI method
 and use JavaScript libraries to draw stuff within it.

 DESCRIPTION
 

 To make problem description simpler, here is my GWT code:

 1   protected void draw() {
 2   String id = divId;
 3   HTML divElement = new HTML(div id=\' + id + \'Hello
 World/
 div);
 4   getChartPanel().add(divElement); //getChartPanel() returns
 a Panel
 5   Window.alert(The element ID is  + id);
 6   Element element = Document.get().getElementById(id);
 7   Window.alert(The GWT element ID is  + element.getId());
 8   drawJS(id);
 9   }
 10
 11  public static native void drawJS(String divID) /*-{
 12  $wnd.alert(The JS element ID is  + divID);
 13  var chartPanel1 = $doc.getElementById(divID);
 14  $wnd.alert(The chart panel is  + chartPanel1);
 15  var chartPanel2 = document.getElementById(divID);
 16  $wnd.alert(The chart panel is  + chartPanel2);
 17  chartPanel.innerHTML(Hello, World!);
 18  }-*/;

 When the draw() method is called I get the following:

 i)  Window on line 5 pops up with The element ID is divId;
 ii) Window on line 7 pops up with The GWT element ID is null;
 iii)Window on line 12 pops up with The JS element ID is divId;
 iv) Window on line 14 pops up with The chart panel is null;
 v)  Window on line 16 pops up with The chart panel is null; and
 vi) A JavaScriptException is raised in development mode at line 17:

 ---
 09:50:16.235 [ERROR] [sensor_network] Uncaught exception escaped
 com.google.gwt.core.client.JavaScriptException: (ReferenceError):
 chartPanel is not defined
  fileName: http://127.0.0.1:
  lineNumber: 7
  stack: (divId)@http://127.0.0.1::7
 @:0
 ---

 ANALYSIS
 

 I inspected the Web page with FireBug and the div element with id =
 divId DOES exist after it is added in the Java code. However,
 neither the Java nor the JavaScript methods are able to retrieve it.

 QUESTIONS
 ==

 i)  What am I doing wrong and how do I fix it?

 ii) Is there a better way to add a div element in Java and pass it
 to a JavaScript method, so that the latter can use it to add stuff
 (e.g., JavaScript-based charts) in it?

 Thank you.

 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.comgoogle-web-toolkit%2bunsubscr...@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.



Java 7 And Closures

2010-07-19 Thread Daniel Simons
Hey Guys,

I was wondering if there have been plans centered around including Java 7
features such as closures to future versions of GWT.

Thanks,
Daniel

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

2010-07-27 Thread Daniel Simons
I agree

On Tue, Jul 27, 2010 at 5:30 PM, nacho vela.igna...@gmail.com wrote:

 Hi, i just must say that i like GWT more and more every second!!!

 In argentinian 'GWT es una masa!!!'

 In spanish 'GWT está de puta madre!!!'

 Nothing more, i had to share my felling

 :D

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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.



eCommerce Shopping Cart With GWT

2010-08-17 Thread Daniel Simons
I'm am in the planning phase of developing a shopping cart application using
GWT for the front-end.  So far I have looked at integrating with a couple
eCommerce solutions (ie, konakart and softslate).  Does anyone have any
advice on eCommerce Solutions?  Are there any solutions out there that would
work better with GWT?

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



The Compiler is Compiling Only One Permutation

2010-09-09 Thread Daniel Simons
I am trying to compile all 5 permutation for my GWT App.  For some reason it
is only compiling 1.  I've tried with the following line in my .gwt.xml and
without the line.

set-property name=user.agent value=''ie6,gecko,gecko1_8,safari,opera /

I'm using Eclipse Galileo with Eclipse Plugin 3.5

Thanks,

Daniel

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



Styling the DecoratedPopupPanel

2009-12-24 Thread Daniel Simons
I am trying to make the DecoratedPopupPanel appear in a different color.  As
far as I can tell changing the DecoratedPopupPanel properties in my css file
does not affect the popup inside of the popup at all.

For example,  I tried introducing the following which had no effect:

 .gwt-DecoratedPopupPanel .popupMiddleCenter {
  padding: 3px;
  background: red;
}

I also tried, which resulted in the surrounding border of the popup
appearing in red:

.gwt-DecoratedPopupPanel{
  padding: 3px;
  background-color: red;
}

Is there a way to change the portion of the popup that, by default, appears
in light blue, to something different?

Thanks,
Daniel

--

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

2009-12-26 Thread Daniel Simons
Upon further investigation, it appears that in order to change the color of
the DecoratedPopupPanel, it would also be necessary to change the color of
the DecoratorPanel object being used inside of the DecoratedPopupPanel which
unfortunately is declared as private.  In addition, the hborder.png,
vborder.png and corner.png files which make up the edges of the
DecoratedPopupPanel would need to be modified.  Has anyone made an attempt
to do this?  If so, what suggestions do you have?

Thanks,
Daniel

On Thu, Dec 24, 2009 at 10:28 AM, Daniel Simons daniel.simo...@gmail.comwrote:

 I am trying to make the DecoratedPopupPanel appear in a different color.
  As far as I can tell changing the DecoratedPopupPanel properties in my css
 file does not affect the popup inside of the popup at all.  Unfortunately,
 the DecoratorPanel is declared as private, and there is no way of passing in
 the style for this object

 For example,  I tried introducing the following which had no effect:

  .gwt-DecoratedPopupPanel .popupMiddleCenter {
   padding: 3px;
   background: red;
 }

 I also tried, which resulted in the surrounding border of the popup
 appearing in red:

 .gwt-DecoratedPopupPanel{
   padding: 3px;
   background-color: red;
 }

 Is there a way to change the portion of the popup that, by default, appears
 in light blue, to something different?

 Thanks,
 Daniel


--

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

2009-12-31 Thread Daniel Simons
I would be interested to know, for those that have studied the Hupa Project,
and now the Contacts Project, what do you think is the more appropriate way
of handling the Back/Forward browser button actions.  Both methods seem to
have there own flaws, for instance, as a project gets larger, the method in
the Contacts Project of AppController handling value changes could quickly
grow to an unmanageable level.  On the other hand, the design used in the
Hupa Project where each presenter has an onPlaceRequest(PlaceRequest
request) method, limits the History token creation to the Presenter.bind()
method.

Thanks,
Daniel S

On Thu, Dec 31, 2009 at 4:28 PM, Sripathi Krishnan 
sripathi.krish...@gmail.com wrote:

 Chris,
 It would be great if you could put up something that deals with UiBinder *in
 context of* MVP. Specifically, whats the recommended way to use the
 @UiHandler tag?

 --Sri

 2009/12/31 Chris Ramsdale cramsd...@google.com

 While I see that someone has already found it, I just wanted to let
 everyone know that it's officially there.


 http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html

 We're looking to put together parts 2 and 3 shortly. So far I have UI
 Binder and Code Splitting integration as topics of interest. Let us know
 what else would be of help.

 - Chris

 On Tue, Dec 29, 2009 at 1:00 PM, jpnet jprichard...@gmail.com wrote:

 I really like this article:

 http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html

 However, it's almost useless without the entire source package. Are
 there any plans to post the source code?

 Thanks,

 JP

 --

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


--

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




Re: MVP Article... Source Code?

2010-01-03 Thread Daniel Simons
In my experience, the fewer components you have for a single view, the
easier it becomes to maintain code.  With that being said, there are some
cases where it makes more sense to combine a large number of UI components
into a single view, but you certainly can have many views and many
presenters on screen at one time.

The way that I allow this is to have a MainPresenter and MainView.  The main
view has several components that remain bound (exist in visible form within
the UI) regardless of the state of the application, and the MainPresenter
initializes all other presenters in my application. It determines what view
is shown with a number onEvent methods.

Daniel S

On Sun, Jan 3, 2010 at 8:20 AM, Yaakov Chaikin yaakov.chai...@gmail.comwrote:

 Chris, or anyone else with experience on MVP in GWT...

 Practically, do you always have 1 view as the user sees it, i.e., the
 whole GUI, or if your GUI has many components (as most GUIs do), do
 you have multiple views, and most importantly, multiple presenters,
 presenting 1 coherent view to the user? In your example, this would be
 similar to splitting the GUI into a view that has the buttons and the
 GUI that has the list.

 How would that be handled in MVP?

 Thanks,
 Yaakov.

 On Wed, Dec 30, 2009 at 2:43 PM, Chris Ramsdale cramsd...@google.com
 wrote:
  While I see that someone has already found it, I just wanted to let
 everyone
  know that it's officially there.
 
 http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html
 
  We're looking to put together parts 2 and 3 shortly. So far I have UI
 Binder
  and Code Splitting integration as topics of interest. Let us know what
 else
  would be of help.
  - Chris
 
  On Tue, Dec 29, 2009 at 1:00 PM, jpnet jprichard...@gmail.com wrote:
 
  I really like this article:
 
 
 http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html
 
  However, it's almost useless without the entire source package. Are
  there any plans to post the source code?
 
  Thanks,
 
  JP
 
  --
 
  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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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.




Compiling GWT 2.0 Project Using Ant on Linux

2010-03-08 Thread Daniel Simons
Changes to the GWT-SDK between version 1.7.1 and 2.0 introduced an error at
compile time which seems to be the result of the
'define-configuration-property' element being unknown by the compiler.
 Below is the error:

 [java] Loading module 'my.uploader.File'
 [java]Loading inherited module 'com.google.gwt.user.User'
 [java]   Loading inherited module 'com.google.gwt.core.Core'
 [java]  Loading inherited module
'com.google.gwt.core.CompilerParameters'
 [java] [ERROR] Line 23: Unexpected element
'define-configuration-property'
 [java] [ERROR] Failure while parsing XML


Has anyone else had a similar problem compiling 2.0 Projects?

-- 
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: Running Apache Hupa sample of GWT MVP

2009-09-14 Thread Daniel Simons
Moving the JRE System Library to the bottom resolved the Access Restriction
errors, but now I receive a new problem.  When I right-click on the
hupa-parent project, then select run configuration, with
-Dhupa.config.file=${project_loc}/server/src/main/webapp/WEB-INF/conf/config.properties
included as a vm argument, I get the following ClassNotFoundException:

java.lang.NoClassDefFoundError: and
Caused by: java.lang.ClassNotFoundException: and
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Exception in thread main

On Mon, Sep 14, 2009 at 1:57 AM, Norman Maurer nor...@apache.org wrote:


 Hi Daniel,

 its me again ;) Could you try this to fix the restriction problem:

  * Change the order of the libraries puting 'JRE System Library' at the
 bottom.

 I'm waiting for your feedback :)

 Bye,
 Norman

 2009/9/14 Norman Maurer nor...@apache.org:
  Hi Daniel,
 
  I added a jira issue to keep track of this..
 
  https://issues.apache.org/jira/browse/LABS-449
 
  Thx for the feedback.
 
  Bye,
  Norman
 
  2009/9/13 Daniel daniel.simo...@gmail.com:
 
  Could you describe the steps necessary to create the Maven2 hupa
  project in Eclipse more explicitly?  I am unable to successfully build
  the project as a result of the javax.activation imports throwing the
  following error: Access restriction: The type DataSource is not
  accessible due to restriction on required library C:\Program Files\Java
  \jdk1.6.0_11\jre\lib\rt.jar
 
  I found a guide to installing third party jars with maven -
  http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html ,
  however, I am unsure about how this is done via eclipse.
 
  Thanks,
 
  daniel
  On Sep 5, 2:30 pm, Norman Maurer nor...@apache.org wrote:
  Hi Satish,
 
  I'm no aware of any special steps needed to runHupain eclipse. Just
  make sure you have m2eclipse installed and declareHupaas Maven2
  project with nested modules.
 
  That's all.
 
  Bye,
  Norman
 
  2009/9/5 Satish Puranam satish.pura...@gmail.com:
 
 
 
   Norman,
 
   I am having trouble running ApacheHupain eclipse. No matter what i
   do i am alway getting these errors:
 
   Resolving annotation '@GinModules({ClientDispatchModule.class,
   HupaClientModule.class})'
   [ERROR]
   java.lang.ClassNotFoundException:
   org.apache.hupa.client.gin.HupaClientModule
   [ERROR] Failure to load module 'hupa'
   java.lang.NullPointerException: null
 
   I was wondering if you could post the steps about how should one go
   about runningHupain eclipse.
 
   Thanks
 
   Satish
 
  
 
 

 


--~--~-~--~~~---~--~~
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: Running Apache Hupa sample of GWT MVP

2009-09-14 Thread Daniel Simons
Still haven't discovered the source of the classNotFoundExceptionWhen I
perform 'maven package' the build fails with the following error:

[INFO] hupa-parent ... SUCCESS
[0.672s]
[INFO] hupa-shared ... SUCCESS
[2.203s]
[INFO] hupa-server ... SUCCESS
[1.969s]
[INFO] hupa-widgets .. SUCCESS
[0.844s]
[INFO] hupa .. FAILED
[1.906s]
[INFO]

[ERROR]

The following mojo encountered an error while executing:
Group-Id: org.apache.maven.plugins
Artifact-Id: maven-war-plugin
Version: 2.1-alpha-1
Mojo: war
brought in via: packaging: war

While building project:
Group-Id: org.apache.hupa
Artifact-Id: hupa-client
Version: 0.0.1-SNAPSHOT
From file: C:\Documents and
Settings\dsimons\workspace\hupa\trunk\client\pom.xml
Reason: Failed to copy file for artifact[active project artifact:
artifact = org.apache.hupa:hupa-server:jar:0.0.1-SNAPSHOT:compile;
project: MavenProject: org.apache.hupa:hupa-server:0.0.1-SNAPSHOT @
C:\Documents and Settings\dsimons\workspace\hupa\trunk\server\pom.xml]

Could these issues be related?



On Mon, Sep 14, 2009 at 11:45 AM, Daniel Simons daniel.simo...@gmail.comwrote:

 Moving the JRE System Library to the bottom resolved the Access Restriction
 errors, but now I receive a new problem.  When I right-click on the
 hupa-parent project, then select run configuration, with
 -Dhupa.config.file=${project_loc}/server/src/main/webapp/WEB-INF/conf/config.properties
 included as a vm argument, I get the following ClassNotFoundException:

 java.lang.NoClassDefFoundError: and
 Caused by: java.lang.ClassNotFoundException: and
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
 Exception in thread main

 On Mon, Sep 14, 2009 at 1:57 AM, Norman Maurer nor...@apache.org wrote:


 Hi Daniel,

 its me again ;) Could you try this to fix the restriction problem:

  * Change the order of the libraries puting 'JRE System Library' at the
 bottom.

 I'm waiting for your feedback :)

 Bye,
 Norman

 2009/9/14 Norman Maurer nor...@apache.org:
  Hi Daniel,
 
  I added a jira issue to keep track of this..
 
  https://issues.apache.org/jira/browse/LABS-449
 
  Thx for the feedback.
 
  Bye,
  Norman
 
  2009/9/13 Daniel daniel.simo...@gmail.com:
 
  Could you describe the steps necessary to create the Maven2 hupa
  project in Eclipse more explicitly?  I am unable to successfully build
  the project as a result of the javax.activation imports throwing the
  following error: Access restriction: The type DataSource is not
  accessible due to restriction on required library C:\Program Files\Java
  \jdk1.6.0_11\jre\lib\rt.jar
 
  I found a guide to installing third party jars with maven -
  http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html ,
  however, I am unsure about how this is done via eclipse.
 
  Thanks,
 
  daniel
  On Sep 5, 2:30 pm, Norman Maurer nor...@apache.org wrote:
  Hi Satish,
 
  I'm no aware of any special steps needed to runHupain eclipse. Just
  make sure you have m2eclipse installed and declareHupaas Maven2
  project with nested modules.
 
  That's all.
 
  Bye,
  Norman
 
  2009/9/5 Satish Puranam satish.pura...@gmail.com:
 
 
 
   Norman,
 
   I am having trouble running ApacheHupain eclipse. No matter what i
   do i am alway getting these errors:
 
   Resolving annotation '@GinModules({ClientDispatchModule.class,
   HupaClientModule.class})'
   [ERROR]
   java.lang.ClassNotFoundException:
   org.apache.hupa.client.gin.HupaClientModule
   [ERROR] Failure to load module 'hupa'
   java.lang.NullPointerException: null
 
   I was wondering if you could post the steps about how should one go
   about runningHupain eclipse.
 
   Thanks
 
   Satish
 
  
 
 

 



--~--~-~--~~~---~--~~
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: Running Apache Hupa sample of GWT MVP

2009-09-14 Thread Daniel Simons
I sincerely apologize for the newb issues...The ClassNotFoundException was
due to the fact that ${project_loc} was undefined.

On Mon, Sep 14, 2009 at 1:46 PM, Daniel Simons daniel.simo...@gmail.comwrote:

 Still haven't discovered the source of the classNotFoundExceptionWhen I
 perform 'maven package' the build fails with the following error:

 [INFO] hupa-parent ... SUCCESS
 [0.672s]
 [INFO] hupa-shared ... SUCCESS
 [2.203s]
 [INFO] hupa-server ... SUCCESS
 [1.969s]
 [INFO] hupa-widgets .. SUCCESS
 [0.844s]
 [INFO] hupa .. FAILED
 [1.906s]
 [INFO]
 
 [ERROR]

 The following mojo encountered an error while executing:
 Group-Id: org.apache.maven.plugins
 Artifact-Id: maven-war-plugin
 Version: 2.1-alpha-1
 Mojo: war
 brought in via: packaging: war

 While building project:
 Group-Id: org.apache.hupa
 Artifact-Id: hupa-client
 Version: 0.0.1-SNAPSHOT
 From file: C:\Documents and
 Settings\dsimons\workspace\hupa\trunk\client\pom.xml
 Reason: Failed to copy file for artifact[active project artifact:
 artifact = org.apache.hupa:hupa-server:jar:0.0.1-SNAPSHOT:compile;
 project: MavenProject: org.apache.hupa:hupa-server:0.0.1-SNAPSHOT @
 C:\Documents and Settings\dsimons\workspace\hupa\trunk\server\pom.xml]

 Could these issues be related?




 On Mon, Sep 14, 2009 at 11:45 AM, Daniel Simons 
 daniel.simo...@gmail.comwrote:

 Moving the JRE System Library to the bottom resolved the Access
 Restriction errors, but now I receive a new problem.  When I right-click on
 the hupa-parent project, then select run configuration, with
 -Dhupa.config.file=${project_loc}/server/src/main/webapp/WEB-INF/conf/config.properties
 included as a vm argument, I get the following ClassNotFoundException:

 java.lang.NoClassDefFoundError: and
 Caused by: java.lang.ClassNotFoundException: and
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
 Exception in thread main

 On Mon, Sep 14, 2009 at 1:57 AM, Norman Maurer nor...@apache.org wrote:


 Hi Daniel,

 its me again ;) Could you try this to fix the restriction problem:

  * Change the order of the libraries puting 'JRE System Library' at the
 bottom.

 I'm waiting for your feedback :)

 Bye,
 Norman

 2009/9/14 Norman Maurer nor...@apache.org:
  Hi Daniel,
 
  I added a jira issue to keep track of this..
 
  https://issues.apache.org/jira/browse/LABS-449
 
  Thx for the feedback.
 
  Bye,
  Norman
 
  2009/9/13 Daniel daniel.simo...@gmail.com:
 
  Could you describe the steps necessary to create the Maven2 hupa
  project in Eclipse more explicitly?  I am unable to successfully build
  the project as a result of the javax.activation imports throwing the
  following error: Access restriction: The type DataSource is not
  accessible due to restriction on required library C:\Program
 Files\Java
  \jdk1.6.0_11\jre\lib\rt.jar
 
  I found a guide to installing third party jars with maven -
  http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html ,
  however, I am unsure about how this is done via eclipse.
 
  Thanks,
 
  daniel
  On Sep 5, 2:30 pm, Norman Maurer nor...@apache.org wrote:
  Hi Satish,
 
  I'm no aware of any special steps needed to runHupain eclipse. Just
  make sure you have m2eclipse installed and declareHupaas Maven2
  project with nested modules.
 
  That's all.
 
  Bye,
  Norman
 
  2009/9/5 Satish Puranam satish.pura...@gmail.com:
 
 
 
   Norman,
 
   I am having trouble running ApacheHupain eclipse. No matter what i
   do i am alway getting these errors:
 
   Resolving annotation '@GinModules({ClientDispatchModule.class,
   HupaClientModule.class})'
   [ERROR]
   java.lang.ClassNotFoundException:
   org.apache.hupa.client.gin.HupaClientModule
   [ERROR] Failure to load module 'hupa'
   java.lang.NullPointerException: null
 
   I was wondering if you could post the steps about how should one go
   about runningHupain eclipse.
 
   Thanks
 
   Satish
 
  
 
 

 




--~--~-~--~~~---~--~~
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

Re: Running Hupa in Hosted Mode

2009-09-14 Thread Daniel Simons
Now the properties file is loading correctly, however, the following error
occurs when running in hosted mode:

[ERROR] Unable to load module entry point class org.apache.hupa.client.Hupa
(see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (Error): Invalid property
value.
 number: -2146827908
 description: Invalid property value.
at com.google.gwt.dom.client.Style$.setPropertyImpl$(Native Method)
at com.google.gwt.dom.client.Style$.setProperty$(Style.java:43)
at
org.apache.hupa.widgets.ui.EnableHyperlink.init(EnableHyperlink.java:57)
at
org.apache.hupa.widgets.ui.EnableHyperlink.init(EnableHyperlink.java:43)
at
org.apache.hupa.client.mvp.IMAPFolderView.init(IMAPFolderView.java:77)
at 
org.apache.hupa.client.gin.HupaGinjectorImpl.org$apache$hupa$client$mvp$IMAPFolderView_IMAPFolderView_methodInjection(transient
source for org.apache.hupa.client.gin.HupaGinjectorImpl:79)
at
org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org$apache$hupa$client$mvp$IMAPFolderView$_annotation$$none$$(transient
source for org.apache.hupa.client.gin.HupaGinjectorImpl:83)
at
org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org$apache$hupa$client$mvp$IMAPFolderView$_annotation$$none$$(transient
source for org.apache.hupa.client.gin.HupaGinjectorImpl:89)
at
org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org$apache$hupa$client$mvp$IMAPFolderPresenter$Display$_annotation$$none$$(transient
source for org.apache.hupa.client.gin.HupaGinjectorImpl:137)
at
org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org$apache$hupa$client$mvp$IMAPFolderPresenter$Display$_annotation$$none$$(transient
source for org.apache.hupa.client.gin.HupaGinjectorImpl:141)
at
org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org$apache$hupa$client$mvp$IMAPFolderPresenter$_annotation$$none$$(transient
source for org.apache.hupa.client.gin.HupaGinjectorImpl:480)
at
org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org$apache$hupa$client$mvp$IMAPFolderPresenter$_annotation$$none$$(transient
source for org.apache.hupa.client.gin.HupaGinjectorImpl:486)
at
org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org$apache$hupa$client$mvp$MainPresenter$_annotation$$none$$(transient
source for org.apache.hupa.client.gin.HupaGinjectorImpl:343)
at
org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org$apache$hupa$client$mvp$MainPresenter$_annotation$$none$$(transient
source for org.apache.hupa.client.gin.HupaGinjectorImpl:349)
at
org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org$apache$hupa$client$mvp$AppPresenter$_annotation$$none$$(transient
source for org.apache.hupa.client.gin.HupaGinjectorImpl:461)
at
org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org$apache$hupa$client$mvp$AppPresenter$_annotation$$none$$(transient
source for org.apache.hupa.client.gin.HupaGinjectorImpl:467)
at
org.apache.hupa.client.gin.HupaGinjectorImpl.getAppPresenter(transient
source for org.apache.hupa.client.gin.HupaGinjectorImpl:7)
at org.apache.hupa.client.Hupa.onModuleLoad(Hupa.java:34)


Any ideas?

On Mon, Sep 14, 2009 at 12:56 AM, Norman Maurer nor...@apache.org wrote:


 Hi Daniel,

 your prolly missed to adjust your run configuration. Check the
 README.txt file included in Hupa trunk. From the README.txt:

 - If you want to run hupa in hosted mode be sure to add the following
 line as vm argument in the Run configuration:

  
 -Dhupa.config.file=${project_loc}/server/src/main/webapp/WEB-INF/conf/config.properties

 Any feedback is welcome..

 Bye,
 Norman


 2009/9/14 Daniel daniel.simo...@gmail.com:
 
  In my attempt to run hupa in hosted mode I receive the following
  error.  Could anyone provide some direction as to what may be going on
  here?
 
 
  [WARN] Failed startup of context
  com.google.gwt.dev.shell.jetty.JettyLauncher
  $webappcontextwithrel...@dab19a{/,C:\Documents and Settings\dsimons
  \workspace\hupa\trunk\war}
  com.google.inject.CreationException: Guice creation errors:
 
 
 
  1) No implementation for java.lang.Boolean annotated with
  @com.google.inject.name.Named(value=IMAPS) was bound.
 
   while locating java.lang.Boolean annotated with
  @com.google.inject.name.Named(value=IMAPS)
 
 for parameter 3 at
  org.apache.hupa.server.InMemoryIMAPStoreCache.init
  (InMemoryIMAPStoreCache.java:50)
 
   while locating org.apache.hupa.server.InMemoryIMAPStoreCache
 
 for parameter 0 at
  org.apache.hupa.server.servlet.DownloadAttachmentServlet.init
  (DownloadAttachmentServlet.java:61)
 
   at org.apache.hupa.server.guice.ServerModul.configureHandlers
  (ServerModul.java:107)
 
 
 
  2) No implementation for java.lang.Boolean annotated with
  @com.google.inject.name.Named(value=IMAPS) was bound.
 
   while locating java.lang.Boolean annotated with
  @com.google.inject.name.Named(value=IMAPS)
 
 for parameter 3 at
  

Re: Running Hupa in Hosted Mode

2009-09-14 Thread Daniel Simons
Interestingly...I modified EnableHyperlink.java line 57 from:
html.getElement().getStyle().setProperty(color, grey); to
html.getElement().getStyle().setProperty(color, blue);

and the error did not occur

On Mon, Sep 14, 2009 at 3:35 PM, Daniel Simons daniel.simo...@gmail.comwrote:

 Now the properties file is loading correctly, however, the following error
 occurs when running in hosted mode:

 [ERROR] Unable to load module entry point class org.apache.hupa.client.Hupa
 (see associated exception for details)
 com.google.gwt.core.client.JavaScriptException: (Error): Invalid property
 value.
  number: -2146827908
  description: Invalid property value.
 at com.google.gwt.dom.client.Style$.setPropertyImpl$(Native Method)
 at com.google.gwt.dom.client.Style$.setProperty$(Style.java:43)
 at
 org.apache.hupa.widgets.ui.EnableHyperlink.init(EnableHyperlink.java:57)
 at
 org.apache.hupa.widgets.ui.EnableHyperlink.init(EnableHyperlink.java:43)
 at
 org.apache.hupa.client.mvp.IMAPFolderView.init(IMAPFolderView.java:77)
 at 
 org.apache.hupa.client.gin.HupaGinjectorImpl.org$apache$hupa$client$mvp$IMAPFolderView_IMAPFolderView_methodInjection(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:79)
 at
 org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org$apache$hupa$client$mvp$IMAPFolderView$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:83)
 at
 org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org$apache$hupa$client$mvp$IMAPFolderView$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:89)
 at
 org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org$apache$hupa$client$mvp$IMAPFolderPresenter$Display$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:137)
 at
 org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org$apache$hupa$client$mvp$IMAPFolderPresenter$Display$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:141)
 at
 org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org$apache$hupa$client$mvp$IMAPFolderPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:480)
 at
 org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org$apache$hupa$client$mvp$IMAPFolderPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:486)
 at
 org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org$apache$hupa$client$mvp$MainPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:343)
 at
 org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org$apache$hupa$client$mvp$MainPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:349)
 at
 org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org$apache$hupa$client$mvp$AppPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:461)
 at
 org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org$apache$hupa$client$mvp$AppPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:467)
 at
 org.apache.hupa.client.gin.HupaGinjectorImpl.getAppPresenter(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:7)
 at org.apache.hupa.client.Hupa.onModuleLoad(Hupa.java:34)


 Any ideas?


 On Mon, Sep 14, 2009 at 12:56 AM, Norman Maurer nor...@apache.org wrote:


 Hi Daniel,

 your prolly missed to adjust your run configuration. Check the
 README.txt file included in Hupa trunk. From the README.txt:

 - If you want to run hupa in hosted mode be sure to add the following
 line as vm argument in the Run configuration:

  
 -Dhupa.config.file=${project_loc}/server/src/main/webapp/WEB-INF/conf/config.properties

 Any feedback is welcome..

 Bye,
 Norman


 2009/9/14 Daniel daniel.simo...@gmail.com:
 
  In my attempt to run hupa in hosted mode I receive the following
  error.  Could anyone provide some direction as to what may be going on
  here?
 
 
  [WARN] Failed startup of context
  com.google.gwt.dev.shell.jetty.JettyLauncher
  $webappcontextwithrel...@dab19a{/,C:\Documents and Settings\dsimons
  \workspace\hupa\trunk\war}
  com.google.inject.CreationException: Guice creation errors:
 
 
 
  1) No implementation for java.lang.Boolean annotated with
  @com.google.inject.name.Named(value=IMAPS) was bound.
 
   while locating java.lang.Boolean annotated with
  @com.google.inject.name.Named(value=IMAPS)
 
 for parameter 3 at
  org.apache.hupa.server.InMemoryIMAPStoreCache.init
  (InMemoryIMAPStoreCache.java:50)
 
   while locating org.apache.hupa.server.InMemoryIMAPStoreCache
 
 for parameter 0 at
  org.apache.hupa.server.servlet.DownloadAttachmentServlet.init
  (DownloadAttachmentServlet.java:61

Re: Running Apache Hupa sample of GWT MVP

2009-09-15 Thread Daniel Simons
Hi Norman,
After some minor frustration I did get it working...Thanks for your help.

One way that my setup is different from the instructions in the readme.txt
is that rather than creating a vm argument in the debug configuration, I
simply created a conf folder in WEB-INF and copied the config.properties
into it. So I have /war/WEB-INF/conf/config.properties.   This allows me to
use the GWT default debug configuration.

One other question...I am considering modifying the app in my own
environment to not use Maven but instead a structure that is more familiar
to me.  Are there any major pitfalls to altering the structure of Hupa that
you know of?
On Tue, Sep 15, 2009 at 5:21 AM, Norman Maurer nor...@apache.org wrote:


 Hi Daniel,

 so all is working now ? If you have any improvements for the
 README.txt just let me know..

 Thx,
 Norman

 2009/9/14 Daniel Simons daniel.simo...@gmail.com:
  I sincerely apologize for the newb issues...The ClassNotFoundException
 was
  due to the fact that ${project_loc} was undefined.
 
  On Mon, Sep 14, 2009 at 1:46 PM, Daniel Simons daniel.simo...@gmail.com
 
  wrote:
 
  Still haven't discovered the source of the
 classNotFoundExceptionWhen
  I perform 'maven package' the build fails with the following error:
 
  [INFO] hupa-parent ... SUCCESS
  [0.672s]
  [INFO] hupa-shared ... SUCCESS
  [2.203s]
  [INFO] hupa-server ... SUCCESS
  [1.969s]
  [INFO] hupa-widgets .. SUCCESS
  [0.844s]
  [INFO] hupa .. FAILED
  [1.906s]
  [INFO]
  
  [ERROR]
 
  The following mojo encountered an error while executing:
  Group-Id: org.apache.maven.plugins
  Artifact-Id: maven-war-plugin
  Version: 2.1-alpha-1
  Mojo: war
  brought in via: packaging: war
 
  While building project:
  Group-Id: org.apache.hupa
  Artifact-Id: hupa-client
  Version: 0.0.1-SNAPSHOT
  From file: C:\Documents and
  Settings\dsimons\workspace\hupa\trunk\client\pom.xml
  Reason: Failed to copy file for artifact[active project artifact:
  artifact = org.apache.hupa:hupa-server:jar:0.0.1-SNAPSHOT:compile;
  project: MavenProject: org.apache.hupa:hupa-server:0.0.1-SNAPSHOT @
  C:\Documents and Settings\dsimons\workspace\hupa\trunk\server\pom.xml]
 
  Could these issues be related?
 
 
 
  On Mon, Sep 14, 2009 at 11:45 AM, Daniel Simons 
 daniel.simo...@gmail.com
  wrote:
 
  Moving the JRE System Library to the bottom resolved the Access
  Restriction errors, but now I receive a new problem.  When I
 right-click on
  the hupa-parent project, then select run configuration, with
 
 -Dhupa.config.file=${project_loc}/server/src/main/webapp/WEB-INF/conf/config.properties
  included as a vm argument, I get the following ClassNotFoundException:
 
  java.lang.NoClassDefFoundError: and
  Caused by: java.lang.ClassNotFoundException: and
  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
  Exception in thread main
 
  On Mon, Sep 14, 2009 at 1:57 AM, Norman Maurer nor...@apache.org
 wrote:
 
  Hi Daniel,
 
  its me again ;) Could you try this to fix the restriction problem:
 
   * Change the order of the libraries puting 'JRE System Library' at
 the
  bottom.
 
  I'm waiting for your feedback :)
 
  Bye,
  Norman
 
  2009/9/14 Norman Maurer nor...@apache.org:
   Hi Daniel,
  
   I added a jira issue to keep track of this..
  
   https://issues.apache.org/jira/browse/LABS-449
  
   Thx for the feedback.
  
   Bye,
   Norman
  
   2009/9/13 Daniel daniel.simo...@gmail.com:
  
   Could you describe the steps necessary to create the Maven2 hupa
   project in Eclipse more explicitly?  I am unable to successfully
   build
   the project as a result of the javax.activation imports throwing
 the
   following error: Access restriction: The type DataSource is not
   accessible due to restriction on required library C:\Program
   Files\Java
   \jdk1.6.0_11\jre\lib\rt.jar
  
   I found a guide to installing third party jars with maven -
  
 http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html ,
   however, I am unsure about how this is done via eclipse.
  
   Thanks,
  
   daniel
   On Sep 5, 2:30 pm, Norman Maurer nor...@apache.org wrote:
   Hi Satish,
  
   I'm no aware of any special steps needed to runHupain eclipse.
 Just
   make sure you have m2eclipse installed and declareHupaas Maven2
   project with nested modules

Re: Running Apache Hupa sample of GWT MVP

2009-09-16 Thread Daniel Simons
Norman,
Thanks for your help.  Hupa is an excellent tool for learning MVP, GWT, and
GIN.  I was wondering if you could provide me with some direction in regards
to a GWT related issue I've encountered.

I currently have a gwt project of my own that is hooked up to a database.  I
would like to be able to easily change testing environments from Hosted Mode
to Server Side testing with a simple config setting.  Do you suggest
creating a set of classes to contain test data and using that when in hosted
mode?  Is there a faster or more robust solution?

On Tue, Sep 15, 2009 at 10:03 AM, Norman Maurer nor...@apache.org wrote:


 Hi Daniel,

 you should not add the vm arguemtn in the debug configuration, change
 it in the webconfiguration.

 Well I can't say anything about what will be the affect of restructure
 the app. Hupa uses the default maven2 multi-module layout.

 Bye,
 Norman

 2009/9/15 Daniel Simons daniel.simo...@gmail.com:
  Hi Norman,
  After some minor frustration I did get it working...Thanks for your help.
  One way that my setup is different from the instructions in the
 readme.txt
  is that rather than creating a vm argument in the debug configuration, I
  simply created a conf folder in WEB-INF and copied the config.properties
  into it. So I have /war/WEB-INF/conf/config.properties.   This allows me
 to
  use the GWT default debug configuration.
 
  One other question...I am considering modifying the app in my own
  environment to not use Maven but instead a structure that is more
 familiar
  to me.  Are there any major pitfalls to altering the structure of Hupa
 that
  you know of?
  On Tue, Sep 15, 2009 at 5:21 AM, Norman Maurer nor...@apache.org
 wrote:
 
  Hi Daniel,
 
  so all is working now ? If you have any improvements for the
  README.txt just let me know..
 
  Thx,
  Norman
 
  2009/9/14 Daniel Simons daniel.simo...@gmail.com:
   I sincerely apologize for the newb issues...The ClassNotFoundException
   was
   due to the fact that ${project_loc} was undefined.
  
   On Mon, Sep 14, 2009 at 1:46 PM, Daniel Simons
   daniel.simo...@gmail.com
   wrote:
  
   Still haven't discovered the source of the
   classNotFoundExceptionWhen
   I perform 'maven package' the build fails with the following error:
  
   [INFO] hupa-parent ...
 SUCCESS
   [0.672s]
   [INFO] hupa-shared ...
 SUCCESS
   [2.203s]
   [INFO] hupa-server ...
 SUCCESS
   [1.969s]
   [INFO] hupa-widgets ..
 SUCCESS
   [0.844s]
   [INFO] hupa .. FAILED
   [1.906s]
   [INFO]
  
  
 
   [ERROR]
  
   The following mojo encountered an error while executing:
   Group-Id: org.apache.maven.plugins
   Artifact-Id: maven-war-plugin
   Version: 2.1-alpha-1
   Mojo: war
   brought in via: packaging: war
  
   While building project:
   Group-Id: org.apache.hupa
   Artifact-Id: hupa-client
   Version: 0.0.1-SNAPSHOT
   From file: C:\Documents and
   Settings\dsimons\workspace\hupa\trunk\client\pom.xml
   Reason: Failed to copy file for artifact[active project artifact:
   artifact =
 org.apache.hupa:hupa-server:jar:0.0.1-SNAPSHOT:compile;
   project: MavenProject: org.apache.hupa:hupa-server:0.0.1-SNAPSHOT
 @
   C:\Documents and
 Settings\dsimons\workspace\hupa\trunk\server\pom.xml]
  
   Could these issues be related?
  
  
  
   On Mon, Sep 14, 2009 at 11:45 AM, Daniel Simons
   daniel.simo...@gmail.com
   wrote:
  
   Moving the JRE System Library to the bottom resolved the Access
   Restriction errors, but now I receive a new problem.  When I
   right-click on
   the hupa-parent project, then select run configuration, with
  
  
 -Dhupa.config.file=${project_loc}/server/src/main/webapp/WEB-INF/conf/config.properties
   included as a vm argument, I get the following
 ClassNotFoundException:
  
   java.lang.NoClassDefFoundError: and
   Caused by: java.lang.ClassNotFoundException: and
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
   Exception in thread main
  
   On Mon, Sep 14, 2009 at 1:57 AM, Norman Maurer nor...@apache.org
   wrote:
  
   Hi Daniel,
  
   its me again ;) Could you try this to fix the restriction problem:
  
* Change the order of the libraries puting 'JRE System Library' at
   the
   bottom.
  
   I'm waiting for your feedback :)
  
   Bye,
   Norman
  
   2009/9/14 Norman Maurer nor...@apache.org:
Hi

Re: Running Apache Hupa sample of GWT MVP

2009-09-22 Thread Daniel Simons
Actually what is most likely happening is that when you changed the color
property value it kicked off a fresh buildtry changing the color value
back to grey to see if that was the case.

Regards,
daniel

On Tue, Sep 22, 2009 at 9:32 AM, purplehaze roman.i...@gmail.com wrote:


 Hi *,

 I have jdk 1.6 only installed.
 So I set
 plugin
groupIdorg.apache.maven.plugins/
 groupId
artifactIdmaven-compiler-plugin/
 artifactId
configuration
 source1.6/source
target1.6/target
/configuration
/plugin
 and told to eclipse-maven plugin to update project configuration.
 It helps. No restricted thing more...

 But I have got one exception in GWT Log console:

 [ERROR] Unable to load module entry point class
 org.apache.hupa.client.Hupa (see associated exception for details)
 com.google.gwt.core.client.JavaScriptException: (Error): Ungültiger
 Eigenschaftswert.
  number: -2146827908
  description: Ungültiger Eigenschaftswert.
at com.google.gwt.dom.client.Style$.setPropertyImpl$(Native Method)
at com.google.gwt.dom.client.Style$.setProperty$(Style.java:43)
at org.apache.hupa.widgets.ui.EnableHyperlink.init
 (EnableHyperlink.java:57)
at org.apache.hupa.widgets.ui.EnableHyperlink.init
 (EnableHyperlink.java:43)
at org.apache.hupa.client.mvp.IMAPFolderView.init
 (IMAPFolderView.java:77)
at org.apache.hupa.client.gin.HupaGinjectorImpl.org
 $apache$hupa$client
 $mvp$IMAPFolderView_IMAPFolderView_methodInjection(transient source
 for org.apache.hupa.client.gin.HupaGinjectorImpl:66)
at org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderView$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:70)
at org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderView$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:76)
at org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderPresenter$Display$_annotation$$none$$
 (transient source for org.apache.hupa.client.gin.HupaGinjectorImpl:
 237)
at org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderPresenter$Display$_annotation$$none$$
 (transient source for org.apache.hupa.client.gin.HupaGinjectorImpl:
 241)
at org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderPresenter$_annotation$$none$$
 (transient source for org.apache.hupa.client.gin.HupaGinjectorImpl:
 433)
at org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderPresenter$_annotation$$none$$
 (transient source for org.apache.hupa.client.gin.HupaGinjectorImpl:
 439)
at org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org
 $apache$hupa$client$mvp$MainPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:305)
at org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org
 $apache$hupa$client$mvp$MainPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:311)
at org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org
 $apache$hupa$client$mvp$AppPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:263)
at org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org
 $apache$hupa$client$mvp$AppPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:269)
at org.apache.hupa.client.gin.HupaGinjectorImpl.getAppPresenter
 (transient source for org.apache.hupa.client.gin.HupaGinjectorImpl:7)
at org.apache.hupa.client.Hupa.onModuleLoad(Hupa.java:34)


 I found out that if I change
 org.apache.hupa.widgets.ui.EnableHyperlinkline 57
 from html.getElement().getStyle().setProperty(color, grey);
 tohtml.getElement().getStyle().setProperty(color, #8d8d8d);

 Hupa works as expected.

 Regards

 Roman
 


--~--~-~--~~~---~--~~
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 Extend Entities For Use In RequestFactory

2010-12-08 Thread Daniel Simons
I have several entities which are automatically generated using hibernate
tools.  I would like to make use of RequestFactory by extending these
entities, but am running into a number of issues in doing so.  It seems that
the current design of RequestFactory requires that all DAO methods be
defined in the Entity itself.  Are there any simple ways around this?

Thanks,
Daniel

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



Nested Activities

2010-12-13 Thread Daniel Simons
I have solution for nesting activities that appears to work for all general
cases.  I would like to share my solution and find out how others are
solving this problem.  Here is my process:

1) for each panel of my site I have a unique Activity Manager/Mapper
2) the mapper maps to one or more activities via the 'getActivity' method
3) when a place change occurs getActivity is called for each mapper and has
3 possible outcomes
  a) returns a new Activity so that it can update its associated panel
  b) returns the current Activity so that the panel does not change
(stays the same as from previous state)
  c) returns null so that the panel is removed from the ui

Note the above solution requires keeping a copy of the current Activity
inside each Activity Mapper.  Does anyone see flaws in this solution?  If so
could you provide a more appropriate way to solve this?

Thanks,
Daniel

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: RequestFactory without creating proxies? Anyone else reminded of J2EE early days?

2010-12-14 Thread Daniel Simons
I have a project that utilizes RequestFactory and works in 2.1 but not in
2.1.1.  Is there an example out there making use of the 2.1.1 RequestFactory
improvements?

On Tue, Dec 14, 2010 at 8:05 AM, Thomas Broyer t.bro...@gmail.com wrote:



 On Tuesday, December 14, 2010 1:14:30 PM UTC+1, kabram wrote:

 We have a significant sized app built using GWT 2.0 and we have simple
 Command pattern based abstraction for sending entities back and forth
 between the server and client. The new RequestFactory while
 interesting seems to require too much scaffolding interfaces and
 classes.

 - Why should I create duplicate proxy interfaces? Can't I just reuse the
 entity?

 No.
 One of the goal of RF is to completely separate server code from client
 code, so that a) you can use whatever you want on the server side (including
 directly in your entities) and b) the client-side can be optimized at will
 because it's enterily generated by GWT.
 See https://wave.google.com/wave/waveref/googlewave.com/w+WU4iAICkI

 - The requirement that the service implement the RequestContext
 interface but not really - leads to poor code maintainability as one
 cannot simply rename methods taking advantage of IDE features.

 See
 http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/requestfactory/server/RequestFactoryInterfaceValidator.html
 You can use it as a command-line tool to validate your client-side
 interface against your server-side implementations.
 I believe the next version of the Google Plugin for Eclipse (or at least a
 future version) will integrate it, just like it validates the sync and async
 interfaces of GWT-RPC (which suffer from the exact same issue).


 - The 2.1 idea of have DAO methods in entities?

 Not necessarily. But then methods *have* to be static.

 What was the thinking here?

 AFAIK, Spring Roo generating static methods on entities, similar to Rails'
 ActiveRecord and the like (but Ruby allows monkey patching which makes
 testing and mocks possible, something that a statically typed language like
 Java cannot do)

 Seems 2.1.1 is addressing it.


 Yes!


 - The requirement to have findEntity() on the entity itself - leads to
 very poor separation of concerns.


 See above, but 2.1.1 addresses that one too.


 - The requirement to have getVersion() - well, what if I don't want my
 entity to be versionable? Why am I being forced here? This is another
 example of forcing the framework user to write code to make the
 framework do its work.


 Versions are necessary for the update mechanism. The constraint was
 initially relaxed in 2.1.1 but re-added last week:
 http://code.google.com/p/google-web-toolkit/source/detail?r=9381


 - The requirement to explicitly edit() an entity (again, just so the
 framework can figure out changes) is burdensome.

 It makes you intents clear. Your proxies are there so you can communicate
 with the server, so edit()ing a proxy is kind of like creating a request
 builder. You then add an invocation (service method call) and fire() the
 request. And everything is magically replayed on the server.


 My concern now is that other libraries (e.g. Ext GWT) will adopt this
 forcing theRequestFactory upon everyone. How far does 2.1.1 go in
 alleviating the above? I think I'm going to stick with the simple
 GWT-RPC. Hopefully that is not going away anytime soon.

 The new Google Groups is using GWT-RPC, so I believe it's there to stay!


 --
 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.comgoogle-web-toolkit%2bunsubscr...@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 2.1.1 RequestFactory Problem

2010-12-20 Thread Daniel Simons
I am running into an issue with conversion from domain object to client
object in RequestFactory whereby the domain class being returned is invalid.
 I have a domain Entity called Connection and under the certain conditions
the return type is mypackage.server.domain.Connection_$$_javassist_1 instead
of mypackage.server.domain.Connection.  The error I receive is: The domain
type mypackage.server.domain.Connection_$$_javassist_1 cannot be sent to the
client.  Should I implement ServiceLayer to solve this?  Or could this be a
different problem?

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.



FileUpload Cell

2010-12-20 Thread Daniel Simons
Any suggestions for creating a FileUpload cell?  It looks like it should be
as simple as extending AbstractSafeHtmlCellString, then overriding the
render method to contain an html constant input type=file/.  Wanted to
make sure I'm not leaving out anything.

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: putting two Anchor objects one below the other without BR tag

2010-12-22 Thread Daniel Simons
I think the css property you are looking for is display:block. You can assign 
this to your image or wrap your image in a div (divs have block display by 
default).

Daniel Simons

On Dec 22, 2010, at 9:57 AM, Ben Imp benlee...@gmail.com wrote:

 That is kind of a tricky question to answer, as it kind of depends on
 how you want to do your whole page.
 
 The URL I posted above has interactive demos to show you how each of
 them work, so you should be able to get a good idea of which one fits
 your situation best.  Just play with them until you get a good feel
 for how they should work.
 
 Also, you needn't only use a VerticalPanel.  Any table based panel
 would work.  VerticalPanel is just the simplest, since it only allows
 a single column.
 
 -Ben
 
 On Dec 22, 9:37 am, Magnus alpineblas...@googlemail.com wrote:
 Hi,
 
 I migrated my app to strict mode, i. e. not using quirks mode panels
 like VerticalPanel.
 
 Thank you for the second recommendation. I am not used to work with
 CSS in detail. Which property should I use to position my anchors?
 
 Thanks
 Magnus
 
 On Dec 22, 4:12 pm, Ben Imp benlee...@gmail.com wrote:
 
 There are many ways of laying out a web page.  The simplest in your
 case might be to add both widgets to a VerticalPanel that then lives
 inside of that FlowPanel you mention.  You could then use CSS and make
 the VerticalPanel have little to no space between its cells.
 
 Another, and perhaps a more correct, way would be to give both of
 those elements ids or distinct CSS classes and then use CSS
 positioning.
 
 http://www.w3schools.com/css/css_positioning.asp
 
 -Ben
 
 On Dec 22, 8:25 am, Magnus alpineblas...@googlemail.com wrote:
 
 Hi,
 
 I have two Anchor objects, an image and a label, and I would like to
 put the label below the image.
 
 The only way I know is to put a BR tag between them:
 
  add (new HTML (br));
 
 But this results in to much vertical space, which I do not want.
 I also tried p.
 
 How can I put a newline without vertical space?
 
 The two Anchor objects live in a FlowPanel.
 
 Thanks
 Magnus
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 

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



Re: HTML5 placeholder

2010-12-23 Thread Daniel Simons
You could call setAttribute on the UiField.  This would look like the
following:

yourField.getElement().setAttribute(placeHolder,content of
placeholder);

Daniel


On Thu, Dec 23, 2010 at 8:41 AM, alexh alexanderhar...@gmail.com wrote:

 Hi,

 I was wondering there is a way to add an HTML5 attribute like
 placeholder to a text input tag within UIBinder or doing so otherwise
 in normal Java code.

 Thanks

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



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



Re: HTML5 placeholder

2010-12-23 Thread Daniel Simons
I tried a test using setPropertyString, and cannot get it to work.  Am I
wrong in thinking that 'this[name] = value;' is not useful in this case b/c
placeHolder should be an actual element attribute rather than a property
that is referenced in js?

Daniel

On Thu, Dec 23, 2010 at 9:12 AM, Thomas Broyer t.bro...@gmail.com wrote:

 I'd rather use setPropertyString though, given that there's a property
 reflecting the attribute:
 yourField.getElement().setPropertyString(placeholder, content of
 placeholder);

 (i.e. in JS, you'll more likely write myInputText.placeholder=content of
 placeholder than myInputText.setAttribute(placeholder, content of
 placeholder))

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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.