R: Specifying cell width in cellTable

2011-06-30 Thread icamts
Hi,
for columns width have a look at

http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideUiCellTable.html#columnWidths

For each input width you may need to provide your own version of the 
Inputcell: customize render method.

Cheers,
Luca

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5vs1gvm50h0J.
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: Shortcomings in Places

2011-06-06 Thread icamts
Hi all,
this is a quite interesting discussion. So far I've gone this way (and
any suggestion will be appreciated):

1) let user authenticate through an external login page;

2) retrieve user profile and store it in client;

3) write authorization code in views for what user can see and in
activities for what user can do.

Authorization can be done in check-points (like you do in places
mapping/filtering) or in a pervasive way. In other terms in places or
in views/activities.

Back to Jeff's original question I will reload the app when user gets
authenticated. It should be possible to forward unauthenticated user
status by mean of place parameters (passed back in return link by
login page) / cookies / server session. I'll think the app as a non-
profiled part and a profiled part. In non-profiled part there are
normal activities/views, in profiled part there are augmented
activities/view they can show different content, based on user
profile, and forward user to a login page.

Cheers,
Luca

On 5 Giu, 20:57, Jeff Schnitzer j...@infohazard.org wrote:
 On Sun, Jun 5, 2011 at 2:34 AM, Thomas Broyer t.bro...@gmail.com wrote:

  Or maybe you could have a single place and have the ActivityMappers (or
  whatever PlaceChangeHandler if you're not using Activities) react
  differently whether the user is authenticated or not.

 Originally I did have a single default Place, but the caching of
 places made this problematic.  Ie, when you log in, you go to the
 same place and nothing happens.  A. Stevko's suggestion of just firing
 the PlaceChangeEvent myself is the
 doh-I-can't-believe-I-didn't-think-of-that solution to this problem
 (thanks A!)

  Authentication is (should be) orthogonal to navigation. When the user
  authenticates, you should dispatch a LoginEvent (or similar) on the event
  bus and have the activities (or whatever) refresh their content (restart).

 This just doesn't work in my application.  When the user logs in, the
 *entire* app gets torn down and rebuilt using a different set of Gin
 singletons and a totally different navigation structure.  Basically,
 when I get a LoginEvent, I need to simulate the user having gone
 directly to the new URL in a fresh application.

 Reloading the browser page would be tempting but I have too much state
 that needs to carry across.  Also, it's ugly.

 I think the LoginEvent approach makes sense in an app that you can
 reasonably navigate in both auth and nonauth states.  In this kind of
 app, yeah, authenticating just makes some widgets redraw their
 content.  But I don't think I can get away with that.  I do have a
 LoginEvent, but it's essentially caught by my master module object,
 and has to do a warm restart of the app.  I'm guessing this is a
 common pattern, and Places makes it difficult.

 Jeff

-- 
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 CellList Drag and Drop

2011-05-31 Thread icamts
Hi,
add draggable-plugin-1.0.4, remove gquery-dnd-bundle-1.0.3. If you're
not using Maven move droppable-plugin-1.0.6 before gwt 2.3 library in
compilation order. Hope it helps.

Cheers,
Luca

On 31 Mag, 15:16, Jee sundarra...@gmail.com wrote:
 Below jars are being used.But facing the issue with WITH

 gquery-dnd-bundle-1.0.3
 gwtquery-1.0.0-2.3.0
 droppable-plugin-1.0.6
 gwt 2.3

  $(draggedCell).css(CSS.DISPLAY.with(Display.NONE));

 $(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));

 please let us know how to proceed.

 Thanks
 Jee

 On May 31, 5:24 pm, Julien Dramaix julien.dram...@gmail.com wrote:







  You are using an old version of gwtquery.

  Download the last stable version of GwtQuery compatible with the gwt
  version you are using :http://code.google.com/p/gwtquery/wiki/Downloads
  The last version of the draggable plugin 
  :http://code.google.com/p/gwtquery-plugins/downloads/detail?name=dragg...
  The last version of the droppable plugin compliant with the gwt
  version you are using :
       - for gwt 2.2 
  :http://code.google.com/p/gwtquery-plugins/downloads/detail?name=dropp...
       - for gwt 2.3 
  :http://code.google.com/p/gwtquery-plugins/downloads/detail?name=dropp...

  Put these 3 jars in your classpath and it's should work.

  Julien

  On May 31, 12:44 pm, Jee sundarra...@gmail.com wrote:

   Thanks.
   I tried to implement you given example in eclipse Helios.
   But i got errors in SortableCellDragAndDropHandler Class
   Please guide to solve problems

   1.$(draggedCell).css(CSS.DISPLAY.with(Display.NONE));  --- The method
   with(Style.Display) is undefined for the type DisplayProperty

   2.$(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));   The
   method with(Style.Display) is undefined for the type DisplayProperty

   3.allCells.isEmpty()  --- The method isEmpty() is undefined for the
   type GQuery

    public void onDragStart(DragStartEvent event) {
       Element draggedCell = event.getDraggable();
       $(draggedCell).css(CSS.DISPLAY.with(Display.NONE));
     }

     public void onDragStop(DragStopEvent event) {
         Element draggedCell = event.getDraggable();
         $(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));

     }

    if (allCells.isEmpty()) {
         // no cells, the placeholder should just be added in the begin
   of the cell
         // list
         return null;
       }

   Thanks
   Jee

   On May 30, 2:18 pm, Julien Dramaix julien.dram...@gmail.com wrote:

Yes you can...
I wrote an example on how to use gwtquery drag-and-drop plugin for
implementing re-ordering in CellList :

Example 
:http://julien-labs.googlecode.com/svn-history/r7/trunk/sortablecellwi...

Java code 
:http://code.google.com/p/julien-labs/source/browse/trunk/sortablecell...

The code is documented and easy to understand. If I found time, I will
write an article about how to implement reordering in CellWidget...

Julien

On Mon, May 30, 2011 at 8:38 AM, Jee sundarra...@gmail.com wrote:
 Can we re-order CellList .. using DND. If we have 5 items in the
 CellList, can we move 2nd item to 5th Item in the same CellList.

 Thanks
 Jee

 On May 29, 1:03 am, Julien Dramaix julien.dram...@gmail.com wrote:
 Could you explain more what you are looking for ? What do you mean by
 within CellList ?

 On May 28, 2:11 pm, Jee sundarra...@gmail.com wrote:

  Hi Julien,

  thanks.
  Its great to see your reply. CellList is supporting drag and drop.
  but i am looking within CellList whether drag and drop is 
  supporting
  or not.
  I tried to get about it, but i still failed.
  Please suggest on this.

  Thanks
  Jee

  On May 27, 6:47 pm, Julien Dramaix julien.dram...@gmail.com 
  wrote: You can use the drag-and-drop plugins of gqtquery to 
  enbale drag and
   drop on any CellWidget.

   Example 
   :http://gwtquery-plugins.googlecode.com/svn/trunk/droppable/demo/Conta...
   Documentation 
   :http://code.google.com/p/gwtquery-plugins/wiki/DragAndDropPluginForGW...

   Julien

   On May 27, 10:42 am, Jee sundarra...@gmail.com wrote:

Hi,

We would like to replace the old table inside Menu to use 
cellList.
However, we

don't know whether GWT cellList support drag and drop or not. 
Drag and
drop is

supported using old table inside Menu but we have to make sure 
this
feature

still works in cellList before we can replace it.

Thanks,
Jee

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

Re: SplitLayoutPanel Sizing?

2011-05-31 Thread icamts
May be you are missing to put SplitLayoutPanel in a RootLayoutPanel.
Alternatively you can provide explicit size, see Recipes here:

http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideUiPanels.html#Recipes

Cheers,
Luca

On 31 Mag, 10:54, Nick Apperley napper...@gmail.com wrote:
 In the application (using GWT 2.3) there is a SplitLayoutPanel with a
 widget on the left (East) and one on the right (West). When viewing
 the application in both FF 3.6 and FF 4 the combo box in the left side
 of the SplitLayoutPanel has its end chopped off. No resizing of the
 SplitLayoutPanel with its divider will show the rest of it.

 Another issue with the SplitLayoutPanel is that the widget on the
 right side doesn't display in both FF 3.6 and FF4. Initially I thought
 it was because the widget was reporting the incorrect width however
 after fixing the width reporting the issue still occurs.

 What is the best way to size SplitLayoutPanel so that it will allocate
 half to one side and half to another anytime its contents changes?
 What might cause SplitLayoutPanel to not display a Widget on a
 particular side?

 Below is the contents of the UIBinder file which are relevant to
 SplitLayoutPanel:

 ---
 g:west size=1.0
     g:VerticalPanel ui:field=navLayout
         g:Label text=Image ui:field=imageLbl/
         g:ListBox ui:field=zonesCbo/
         g:HTMLPanel ui:field=imageLayout
             div id=imageDiv
             /div
             div id=imageMapDiv
             /div
         /g:HTMLPanel
     /g:VerticalPanel
 /g:west
 ---

 The right side of the SplitLayoutPanel has its contents dynamically
 added/removed. On the left side imageDiv/imageMapDiv have their
 contents dynamically change, depending on what has been selected at
 the time by the user. Since some custom HTML elements is used
 (ImageElement and MapElement) in the left side it could make sizing
 the SplitLayoutPanel very tricky.

-- 
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: Click Event out of the widget.

2011-05-19 Thread icamts
On widget blur? If your widget has focus.

And using NoSelectionModel, handling selection in on click event? Is
it suitable to your case?

Cheers,
Luca



On 18 Mag, 14:50, Manvel Saroyan saroy...@gmail.com wrote:
 Hi,
 I have a CellTable with SingleSelectionModel - I want to set the
 current selection to false when I click out of the CellTable. Please
 tell me is there a simple way..
 I was thinking to catch mouse out and in events and check is the mouse
 out or in on DomHandler's CLick event, but I think maybe there is a
 more simple way by using only one event ?
 Please tell me the sollution if someone already were faced with such
 problem.
 As I noticed I can't add clickHandler to Composite or Panel so I can't
 fire event when Table's parents click event are fired .
 Please give me a suggestion.

 Best Regards,
 Manvel Saroyan

-- 
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: Built in GWT Widgets that require Constructor Arguments

2011-05-18 Thread icamts
May be you are missing a couple of braces around res, like this:

g:Tree resources='{res}' ui:field='tree'

look a Thomas' example:

g:Tree resources={myResources} /

Cheers,
Luca

On 18 Mag, 14:27, Myth17 nitishupr...@gmail.com wrote:
 No luck. :(
 I get [ERROR] [zomato] - Failed to create an instance of
 'myth.social.zomato.client.Mainlist' via deferred binding  :(

-- 
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: RequestFactory not working when upgrade from 2.2 to 2.3

2011-05-16 Thread icamts
Add gwt-servlet-deps.jar to your project. It comes with gwt sdk
distribution.

Cheers,
Luca

On 15 Mag, 14:42, Joshua Kappon shuky.kap...@gmail.com wrote:
 Thank!

 I added the json-20090211.jar to my build path and it solved the
 problem!

 On May 14, 10:43 pm, Hilco Wijbenga hilco.wijbe...@gmail.com wrote:







  On 13 May 2011 16:26, Joshua Kappon shuky.kap...@gmail.com wrote:

   Hi All

   I'm trying to upgrade my project to use GWT 2.3
   I changed all the imports and xml project and web.xml to point to the
   new packages locations.

   butRequestFactorycalls still don't work.

   when running in dev mode I get the following exceptions on run time:

   java.lang.NoClassDefFoundError: org/json/JSONException
      at
   com.google.web.bindery.autobean.shared.impl.StringQuoter.createSplittable(S
tringQuoter.java:
   58)
      at
   com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.init(Abstrac
tAutoBean.java:
   71)

   this originates from:

   Caused by: java.lang.ClassNotFoundException: null
      at com.google.gwt.dev.shell.CompilingClassLoader
   $MultiParentClassLoader.findClass(CompilingClassLoader.java:365)
      at java.lang.ClassLoader.loadClass(Unknown Source)

   that is caused by a code call to a

   request.doSomething()
   or a
   request.create(someobject.class)

   Did someone else stumble upon something like this?
   I'm clueless.

  Yes, I ran into something similar. I fixed the complaint about not
  finding JSONException by 
  addinghttp://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar
  to my POM. I find it very strange this should be necessary. We're
  supposed to be on the client, in a JavaScript environment after all.
  :-) I have not researched this any further so I don't know whether you
  need that JSON JAR in the WAR as well or if it's just for dev mode.

  The error reporting in RF is not very helpful, unfortunately. The root
  cause for me just said something like Server error: null. It turned
  out that the hashCode() methods on two of my DTOs referenced each
  other. That obviously led to an infinite loop and apparently to
  Server error: null. :-) (I guess that's how the programming gods
  punish people who do not write unit tests. ;-) )

  Oh, and don't waste any time on getting GWT/RF's logging to run. It's
  completely useless. I had it set to FINEST but it basically only
  reported sent something and received something. No mention of what
  that something was. Not helpful at all.

  I suggest you start adding helpful GWT.log (client side) and
  System.out.println (server side) statements and start debugging. It
  took me several hours.

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



ListBox doesn't open when inside gwtquery drag and drop plugin's DragPanel in Chrome browser

2011-05-13 Thread icamts
I opened a Chromium Issue (http://code.google.com/p/chromium/issues/
detail?id=82540) because problem faces only in Chrome browser. I'm not
sure if there's something going wrong with Chromium, with some GWT
*Impl for Chrome, with some gwtquery drag and drop plugin's event
closing my select, or if i misused all these things (this may not be
the last option!).

Please help on this.

An Eclipse/GWT 2.2 project demonstrating this issue is attached to
Chromium bug 82540 and can be downloaded here:

http://chromium.googlecode.com/issues/attachment?aid=8254name=SelectInDnD.ziptoken=671518992001daf4a42c965be4574a3e

Can drag and drop the html select component (created by ListBox) but
it doesn't open in Chrome. Works in Mozilla 4 and IE 8.

Thanks in advance for any hint on this,
Luca

-- 
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: new browser window without menu toolbars?

2011-05-11 Thread icamts
Hi,

1) if content comes from client may be you'll want to show it in a
div...

2) if content comes from server-side pass the url and serve it through
a servlet

3) if you really need a new window (and document) to fill by your own
may be it can be done writing some native js

open method returns the new window

var otherWin = $win.open(,_blank,
location=0,menubar=0,toolbar=0)

document or body are accessible through

   otherWin.document.body ...

Cheers,
Luca

On 4 Mag, 18:42, Magnus alpineblas...@googlemail.com wrote:
 Hi!

  Window.open(url, _blank, location=0,menubar=0,toolbar=0);

 The problem is the value for *url*. There is no URL that I want to
 open. I want to open an empty window and fill it with HTML code by
 code.

 Assume there is some HTML in a String:

 String content;
 ...

 So I want to open a window and fill it with this string.

 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-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: new browser window without menu toolbars?

2011-05-04 Thread icamts
Hi Magnus,
try

import com.google.gwt.user.client.Window;

[...]

Window.open(url, _blank, location=0,menubar=0,toolbar=0);

argumets are the same of javascript window.open() function

Cheers,
Luca

On 3 Mag, 19:12, Magnus alpineblas...@googlemail.com wrote:
 Hi,

 how can I open a new browser window without any menu or toolbars and
 fill it with HTML?

 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-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: Simple dragdrop

2011-04-28 Thread icamts
Gwtquery (http://code.google.com/p/gwtquery/) offers a dnd plugin.
A cell table sample is here

http://gwtquery-plugins.googlecode.com/svn/trunk/droppable/demo/CellTableSample/CellTableSample.html

and Portlet sample contains a SortableDragAndDropHandler.

Not sure about touch events integration for mobile.

Cheers,
Luca


On 28 Apr, 14:48, Ice13ill andrei.fifi...@gmail.com wrote:
 Hello, i want to create a minor dragdrop functionality to a my table
 (or just use a simple library): rearranging the rows in a table with
 dragdrop, with the effect of location interchanging (for ex: in
 mobile apps).
 What widgets/library would you recommend ? Any advice would be
 welcomed :)

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