Re: Transition problem in useing AutoBean

2011-09-13 Thread Mauro Bertapelle
add gwt-servlet-deps.jar to your classpath

On 13 Set, 12:31, jinker jiang jinkerji...@gmail.com wrote:
 I add this inherits name=com.google.web.bindery.autobean.AutoBean/ in my
 project gwt.xml

-- 
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: aaaarrrgh, them layout panels are driving me bonkers!!

2011-07-18 Thread Mauro Bertapelle
Don't forget to change RootPanel with RootLayoutPanel

On 18 Lug, 17:08, Elhanan Maayan elh.mailg...@gmail.com wrote:
 if there's one thing haven't figured out completely it's the layouts, i
 mean, i wanna use the DockLayoutPanel in the ui designer for example with
 only 3 panels inside it (one containing a tree, and other textbox and the
 last a table) , and yet i can't see the panels i've inserted.

 what's more if i try to create a class extending DockLayoutPanel the
 designer falls, with illigal argurment exception,
 so i guess i have to contain it, but in what? Compsoite?

 i need lots lots and lots of code samples for this one.

-- 
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 Editor with dynamic ListBox problem

2011-07-15 Thread Mauro Bertapelle
The subject of setValue is not a list of acceptable values but the
single item in the model data
Use a ValueListBox, and in presenter call setAcceptableValues to fill
list box before calling driver.edit

On Jul 15, 7:48 am, vinayak kulkarni bkvina...@gmail.com wrote:
 Hi,
 Problem: How to use dynamic listbox with editor framework
 I have the simple use case to display a ListString in the listbox.
 Then, the selected item in the listbox needs to be flushed from the
 UI.
 The values of the listbox are not static, they come from the DB during
 runtime.

 I wanted to implement it with editor mechanism.
 But, the problem is, the input is - ListString  to show all the
 values in the listbox
                               the output is just String -  to be
 flushed by the editor framework.

 Previously, i used LeafValueEditorString with getValue() and
 setValue().
 getValue() -- flushes the selected value to the editor driver
 setValue() -- unimplemented since it cannot accept the String
 I implemented one more method setAllValues() to show the dropdown
 values.

 How, to handle this situation? when the getValue() and setValue() are
 not of the same type?

 I could think of ValueListBox with setAcceptablevalues(). But, how
 does editor make a call to it?

 Here is the flow:
   Model
      -- ListString listValues
      .. other objects

 ModelView implements EditorModel
    .. Model attributes with direct mapping
       MyListBox listValues

 MyListBox implements LeafValueEditorString
 getValue()
 setValue()

 Presenter
   -- Get model
   -- editor driver.edit(model object)
   set to view
  = The view is updated with model object

 Let me know if there is any other way to make MyListBox widget to be
 editor compliant and accepts ListString but gives out String

-- 
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 Editor with dynamic ListBox problem

2011-07-15 Thread Mauro Bertapelle
In View define a:
HasConstrainedValue getMyListValueWidget();

in Presenter:
view.getMyListValueWidget().setAcceptableValue(values);
driver.edit();

On Jul 15, 11:16 am, vinayak kulkarni bkvina...@gmail.com wrote:
 I agree with you to call setAcceptableValue() before driver.edit

 But, i have a different problem.. I need to edit the subEditor, which is
 ValueListBox

 Presenter call driver.edit() on a widget ModelView.

 ModelView has inner widget(sub editor) ValueListBox ex:

 ModelView implements EditorModel
    .. Model attributes with direct mapping
       ValueListBox listValues;

 Now, presenter doesnt know the inner widget(subEditor) ValueListBox.
 Presenter directly edits the Model.. ie. driver.edit(Model).. which inturn
 should call the subeditor to flush the values.

 In this case, how to call the setAcceptableValues() from the presenter
 itself?  

 It is that, we need to make the abstraction between View and Presenter and
 also use the editor mechanism from presenter to edit the view.

 Let me know if there is any other way to do it.

-- 
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: Resizing display regions in a complex ui

2011-07-12 Thread Mauro Bertapelle
you may find this thread interesting:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/ba4b88d2d54b0cd/97157d8e649c716e

On Jul 12, 4:07 pm, Anders dr.kr...@gmail.com wrote:
 Thanks for the quick reply! Sounds like the DockPanelLayout is the way
 to go. In my little proof-of-concept app I got lost in what you
 described as the 'non-trivial size computation' using just a
 LayoutPanel with manual resizing. Hence the question here!

 Keep up the good work with your blog!

 On Jul 12, 3:14 pm, Thomas Broyer t.bro...@gmail.com wrote:







  On Tuesday, July 12, 2011 11:52:27 AM UTC+2, Anders wrote:

   Hi,

   Reading Thomas Broyer's post 'GWT 2.1 Activities – nesting?
   YAGNI!' (check it out herehttp://tbroyer.posterous.com/archive/9/2010)

  Direct link:http://tbroyer.posterous.com/gwt-21-activities-nesting-yagni

   really cleared things up with regards on how to handle more complex ui
   designs. Abandoning the concept of nesting and going for a couple of
   activity mappers to show/hide display regions as needed. But, after
   some experimentation on my own I was left with one question that I
   couldn't find a good answer to.

   In the post Broyer mentions briefly that the display regions in the
   layout needs resizing to fill the empty spaces and says the following:
   'Now, here's how you could do it without nesting, just showing hiding
   display regions when needed (and resizing the others to always fill
   the same dimensions)'.

   My question is therefore where in the code you do the actual resizing
   of the display regions?

  It really depends how you're building your layout. If using divs and
  FlowPanel/SimplePanels and the like with CSS, and using fluid layout, you
  don't have to do anything. Same if you're using a DockLayoutPanel (I keep
  talking about LayoutPanel in the post, but was actually thinking about
  DockLayoutPanel).
  If using anything else that requires manual resizing, you'll have to do it
  in your layout view, and it can quickly get complicated (as soon as you
  have 2 regions that can be hidden/resized independently of each other,
  computing the size of the other regions becomes non-trivial). Using the same
  approach as DockLayoutPanel's internals is best IMO: use
  Scheduler#scheduleFinally to schedule a relayout whenever a region
  changes, and in the relayout code, you know nothing else will change so
  you can safely compute the sizes of the visible regions. DockLayoutPanel
  makes it really much easier if you can use it.

  If I understood the post correct the views

   themselves should not have any explicit knowledge of sizing, but
   rather just adapt to the size of the display region.

  Yes (note, though, that the should here is my own opinion, YMMV)

-- 
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: Removing ClickHandler from Button?

2011-07-05 Thread Mauro Bertapelle
use the HandlerRegistration returned from Button.addClickHandler

On 5 Lug, 02:03, Milan Cvejic liquidbra...@gmail.com wrote:
 Yes, removeClickListener() is depricated, and that is why I am trying
 to find solution on how to remove ClickHandler.

 Just to explain my use case. I am same view with editor framework, so
 I need different functionality when button is clicked.
 Since button is initialized only once (in view that is constructed
 only once) i need to handle event differently.

 So now on start of activity i attach Listener and on stop I remove
 Listener, and everything works as it should. If I don't remove
 Listener, I am having
 situation that event is triggered twice or more times.

 I can change code to create new instance of View each time, but that
 is more cpu intensive than adding and removing listeners.

 Cheers.

 On Jul 5, 1:14 am, Rob Coops rco...@gmail.com wrote:

  removeClickListner() is deprecated if I am not mistaken...

  Anyway the big question is why remove the clickHandler from your button in
  the first place a button that can not be clicked is nothing more then a
  label with a border...
  I would suggest disabling the button or simply have the clickHandler return
  instead of doing anything... in both cases for the user nothing will happen
  once they click the button.

  just my 2 cents.

  Regards,

  Rob

  On Tue, Jul 5, 2011 at 1:05 AM, Milan Cvejic liquidbra...@gmail.com wrote:
   Hi,
   I am trying to find a way how to remove ClickHandler from Button,
   there is no any method related to this. I see that we can remove
   ClickListener with removeClickListener(), but there is no way to
   remove ClickHandler.

   I am using following code:

   Button b = new Button(test);
   b.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
          Window.alert(test);
     }
   });

   Is there any way to remove ClickHandler?

   Thanks.

   --
   You received this message because you are subscribed to the Google Groups
   Google Web Toolkit group.
   To post to this group, send email to google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+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: Activities does not get de-registered..

2011-06-30 Thread Mauro Bertapelle
Well, actually that is the cause of the problem. Just remove the click
handler in the onStop and onCancel otherwise disposed activities will
continue to receive click events

-- 
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: dynatablerf won't build

2011-06-27 Thread Mauro Bertapelle
Datagrid is not yet released, should be part of the upcoming 2.4
release AFAIK.
Meanwhile you can find it in the trunk: 
http://code.google.com/p/google-web-toolkit/source/checkout

-- 
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.1 MVP Multiple activities clarification help

2011-06-24 Thread Mauro Bertapelle
There are a couple of bugs in my example related to the filtering/
caching of horizontal/vertical master activities:

1) the order between caching and filtering activity in
CachingHorizontalMasterActivityMapper and
CachingVerticalActivityMapper is wrong:

public class CachingHorizontalMasterActivityMapper implements
ActivityMapper {
...
  public
CachingHorizontalMasterActivityMapper(HorizontalMasterActivityMapper
horizontalMasterActivityMapper) {
  ...
ActivityMapper filteredMapper = new FilteredActivityMapper(filter,
horizontalMasterActivityMapper);
cachingActivityMapper = new CachingActivityMapper(filteredMapper);
  }
...
}

This way, we are caching the activity associated with MailDetailPlace,
not with MailListPlace as intended.

The right filtering order is:
public class CachingHorizontalMasterActivityMapper implements
ActivityMapper {
...
  public
CachingHorizontalMasterActivityMapper(HorizontalMasterActivityMapper
horizontalMasterActivityMapper) {
  ...
CachingActivityMapper cachingActivityMapper = new
CachingActivityMapper(horizontalMasterActivityMapper);
filteredActivityMapper = new FilteredActivityMapper(filter,
cachingActivityMapper);
  }
...
}

2) moreover, to let CachingActivityMapper successfully detect
instances of the same Place type, we need to ovverride equals method
on our Places:

public class MailListPlace extends MailPlace {
  @Override
  public boolean equals(Object otherPlace) {
return this == otherPlace || (otherPlace != null  getClass() ==
otherPlace.getClass());
  }
  ...
}

I've uploaded fixed versions of both non-gin and gin version of the
example code at the usual url:
http://95.110.143.4/layoutmvp/layoutmvp.tar.gz
http://95.110.143.4/layoutmvp/layoutmvp-gin.tar.gz

-- 
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: Problems with filtering/ caching activities

2011-06-24 Thread Mauro Bertapelle
regarding caching/filtering of activity, there are some errors in my
example that actually I realized just after posting the code back in
dicember, but forgot to upload the fixes.. sorry :(
take a look at:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/0ba4b88d2d54b0cd/bd964b9dfbf5c32f#bd964b9dfbf5c32f

-- 
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: Problems with filtering/ caching activities

2011-06-24 Thread Mauro Bertapelle
perhaps this picture helps: http://goo.gl/vB5YN

-- 
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: Question about new activities on place changes

2011-06-24 Thread Mauro Bertapelle


On Jun 24, 4:44 pm, tanteanni tantea...@hotmail.com wrote:
 thx thomas for your never ending endurance, i guess i came a little closer
 after reading the source.
 Sorry for that: But what is the value of lastPlace and lastActivity after
 construction time?


both null, of course..

 And i miss the connection with Mauro's current code: If His CachingMApper
 returns new MailListPlace() the cached activity is used. But if the same
 place is returned a new activity is created. But reading the source says
 some places have to be equal to get lastActivity. So what place should be
 equals to what place on calling the method Place filter(Place place), to get
 a cached activity?

new Places are instantiated every time a placeChangeEvent occurs. So
when comparing new place with cached place, even if the Places are of
the same type (say MailListPlace) the instances are not, and that's
why we need to override Place.equals to compare class type and not
instances to let CachingActivityMapper works.

-- 
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: Logging: Application doesn't get default log handlers

2011-05-06 Thread Mauro Bertapelle
http://code.google.com/p/google-web-toolkit/issues/detail?id=6171

-- 
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.1 MVP Multiple activities clarification help

2011-02-23 Thread Mauro Bertapelle
Ernesto,

CachingHorizontalMasterActivityMapper is just a wrapper for
CachingActivityMapper and FilterActivityMapper.

The layout of our example requires that both master and detail display
regions are simultaneously visible.
This means that when a user navigate to a detail place, even the
master display region must be advised to ensure that what's displayed
on the master region is in sync with what's on the detail region.
This is the task of FilterActivityMapper, which is used to map detail
place activity to a corresponding master activity:

FilteredActivityMapper.Filter filter = new
FilteredActivityMapper.Filter() {
  @Override
  public Place filter(Place place) {
return place instanceof MailDetailPlace ? new MailListPlace() :
place;
  }
};

CachingActivityMapper is useful when you don't want to instantiate a
new Activity every time a place change event occurs. Generally
speaking, Activity are meant to be light disposable object so
instantiating a new one on every place change event shouldn't be an
isssue. In our case, CachingActivityMapper is useful when a user
navigate from one detail to another and the master display region is
always the same and doesn't need to be reinstantiated.

-- 
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: Feedback Requested: Preview of new GWT Style Theme

2011-02-17 Thread Mauro Bertapelle
Tried on various browsers and I definitely like this new theme.
In my opinion:
TextBox height is a little bit too much.
TabLayoutPanel: I'm not convinced about new colors.
SplitLayoutPanel: would reduce the tickness of split layout panel
splittable bar and, only related to FF3 on Windows, would prefer a
smaller and ticker icon for the mouse pointer when above splittable
panels.

-- 
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: Feedback Requested: Preview of new GWT Style Theme

2011-02-17 Thread Mauro Bertapelle
-1 for me.
Consistency between browsers is an important value to me, though I can
understand your frustration with IE.

On 17 Feb, 17:08, John LaBanca jlaba...@google.com wrote:
 Chrome, Safari, and Firefox support rounded corners natively in CSS.  How do
 you guys feel about using CSS rules to create rounded corners on modern
 browser that support it, but not IE?  It would mean degraded styles in IE,
 but thats better than degraded styles across the board.

 Thanks,
 John LaBanca
 jlaba...@google.com


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



Re: GWT love of HTML tables

2011-02-14 Thread Mauro Bertapelle
Have you looked at TabLayoutPanel ?
http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideUiPanels.html

-- 
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.1 MVP Multiple activities clarification help

2011-01-07 Thread Mauro Bertapelle
karthik,

glad you find my example useful, but please consider it just a basic
demonstration of the concepts expressed by Thomas in his article, far
from being a complete implementation of an app based on the new
Activity/Place model.

As Thomas pointed out, MailListActivity need to be informed of
MailDetailPlace change events to have it syncronized with what's
displayed on the MailDetailActivity's display area.

To implement this, add a PlaceChangeEvent handler to MailListActivity:

public MailListActivity(ClientFactory clientFactory) {
  view = clientFactory.getMailListView();
  placeController = clientFactory.getPlaceController();

  EventBus eventBus = clientFactory.getEventBus();
  eventBus.addHandler(PlaceChangeEvent.TYPE, new
PlaceChangeEvent.Handler() {
@Override
public void onPlaceChange(PlaceChangeEvent event) {
  Place newPlace = event.getNewPlace();

  if (newPlace instanceof MailDetailPlace) {
String mailIdToken = ((MailDetailPlace) newPlace).getMailId();
Mail mail = MAILLIST.getMail(Integer.valueOf(mailIdToken));
view.setSelectedMail(mail);
  }
}
  });
}

and a new setSelectedMail method to MailListView:

@Override
public void setSelectedMail(Mail newSelectedMail) {
  SingleSelectionModelMail selectionModel =
(SingleSelectionModelMail) table.getSelectionModel();
  Mail selected = selectionModel.getSelectedObject();
  if (selected.getId() != newSelectedMail.getId()) {
selectionModel.setSelected(newSelectedMail, true);
  }
}


-- 
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: DateTimeFormat problem with parsing

2010-12-28 Thread Mauro Bertapelle
From DateTimeFormat javadoc:

*The time zone support for parsing is limited. Only standard GMT and RFC 
format are supported. Time zone specification using time zone id (like 
America/Los_Angeles), time zone names (like PST, Pacific Standard Time) are 
not supported*

This are the timezone string format that DateTimeFormat recognize:

GMT[+-]hours:minutes or
GMT[+-]hhmm or
GMT or
UTC[+-]hours:minutes or
UTC[+-]hhmm or
UTC or
[+-]hhmm

-- 
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: Logging problem, please Help !

2010-12-27 Thread Mauro Bertapelle
First you need to supply a custom formatter. Look at 
com.google.gwt.logging.client.TextLogFormatter for a simple example or, this 
is an example of a formatter that format log message in a single line:

public class CustomFormatter extends FormatterImpl {
  private boolean showStackTraces;
  private final DateTimeFormat dtFormat = 
DateTimeFormat.getFormat(-MM-dd HH:mm:ss);


  public CustomFormatter(boolean showStackTraces) {
this.showStackTraces = showStackTraces;
  }

  @Override
  public String format(LogRecord event) {
StringBuilder message = new StringBuilder();
message.append(getRecordInfo(event,  ));
message.append(event.getMessage());
if (showStackTraces) {
  message.append(getStackTraceAsString(event.getThrown(), \n, \t));
}
return message.toString();
  }

  @Override
  protected String getRecordInfo(LogRecord event, String newline) {
Date date = new Date(event.getMillis());
StringBuilder s = new StringBuilder();
s.append(dtFormat.format(date));
s.append( ); // comment this line to get rid of classpath name
s.append(event.getLoggerName()); // comment this line to get rid of 
classpath name
s.append(newline);
s.append(event.getLevel().getName());
s.append(: );
return s.toString();
  }
}


Then all you have to do is associate your custom formatter with log 
handlers:

public class MyGwtApp implements EntryPoint {
  private static final Logger log = 
Logger.getLogger(MyGwtApp.class.getName());

  // initialize logger with custom formatter
  static {
Handler handlers[] = Logger.getLogger().getHandlers();
for (Handler handler : handlers) {
  handler.setFormatter(new CustomFormatter(false));
}
  }
  

-- 
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 2.1 MVP Multiple activities clarification help

2010-12-23 Thread Mauro Bertapelle
As an exercise I've build a little POC based on the concepts expressed
by Thomas in his article.
If someone is interested, the sources are here: 
http://95.110.143.4/layoutmvp/layoutmvp.tar.gz
and here you can find a live demo: http://95.110.143.4/layoutmvp/layoutmvp.html

-- 
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: Is there a way to get have GWT not compile a method into JS?

2010-12-21 Thread Mauro Bertapelle
In the source tag of the module XML file you can specify the
subpackage associated with the classes you want GWT to compile.
You can even exclude some particular classes using a pattern based
filter:
http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuidePathFiltering

-- 
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: How to display an ampersand using UiBinder?

2010-12-15 Thread Mauro Bertapelle
Label is not meant to contain html, use an HTML class instead:
g:HTMLA amp; B/g:HTML

-- 
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 MVP How to change Page title upon Navigation (Place Change)

2010-12-03 Thread Mauro Bertapelle
use Document.setTitle()
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/dom/client/Document.html#setTitle(java.lang.String)

-- 
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: Sample App using DI/Gin, MVP, UiBinder, etc

2010-11-23 Thread Mauro Bertapelle
On 18 Nov, 16:38, Daghan dag...@gmail.com wrote:

 I am trying to figure out how to pass
 activityManager.setDisplay(composite)


Implement AcceptOneWidget in your Composite, and in the setWidget
method take care of inserting/removing the Activity's view in our
Composite's receiving area

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