Re: PopupPanel space on parent Panel

2011-01-05 Thread Nirmal Patel
Hi Thomas,
This way the popup panel always appears at the application level (its glass 
panel covers the entire browser window).

Can we localize the popup to specific regions?? For example, only cover the 
Center of a DockLayoutPanel (leaving the top and left/right regions 
clickable and uncovered by glass)

In the past; I have done this by writing up own custom popups and adding 
them absolutely to parent panels. Is there a GWT inbuilt way?

Regards,
Nirmal

-- 
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: deploy new server version - how to inform clients?

2011-01-04 Thread Nirmal Patel
You need to handle IncompatibleRemoteServiceException 
Read 
here: 
http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html#DevGuideHandlingExceptions

Regards,
Nirmal

-- 
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: please Help me GWT Listbox

2011-01-04 Thread Nirmal Patel
Not sure if I understand your requirement; but are you looking to allow the 
user select multiple options from a list??

If so, there is a GWT widget: ListBox (
http://gwt.google.com/samples/Showcase/Showcase.html#!CwListBox)

-- 
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: UIBinder component in multiple packages

2011-01-04 Thread Nirmal Patel
Your UiBinder files are used at compile time to generate actual widget 
classes.

You will need to add your common pkg as source for the GWT Compiler in your 
gwt.xml
source path='path_of_common'/ 

Regards,
Nirmal

-- 
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: TimeSpinner in GWT.

2010-12-30 Thread Nirmal Patel
Check this one in the incubator: 
http://code.google.com/p/google-web-toolkit-incubator/wiki/Spinner

-- 
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: Confused about Servlet mapping and Url Pattern, RPC not working when Deployed

2010-12-29 Thread Nirmal Patel
Hi Amarsat,

Couldn't quite understand what your server is doing? Are you saying your 
server reads a WORD file and returns data from it to be displayed in the GWT 
GUI running inside the client's browser?  If so; what are you using to 
access WORD?? For Java, one could use the Apache POI library.

Regards,
Nirmal

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

2010-12-29 Thread Nirmal Patel
The task to be scheduled:
   private final class MyScheduledCommand implements ScheduledCommand {
public void execute() {
 //Task to be scheduled
 ..
}
}
Usage:
  Scheduler.get().scheduleDeferred(new MyScheduledCommand());

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

2010-12-29 Thread Nirmal Patel
private final class MyRepeatedCommand implements RepeatingCommand {
public void execute() {}
}

Scheduler.get().scheduleFixedPeriod(new MyRepeatedCommand(), delayMs)

-- 
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: Can I generate a call to GWT.create(...) within generated code

2010-12-29 Thread Nirmal Patel
You can... note that for each GWT.create() call, all sources it refers to 
must exist when you make the call.
So you need to call commit() on your SourceWriter once you have the first 
class/intf ready to be used in subsequent GWT.create() calls.

Here's a sample code that I use to create an ImageBundle out of my 
annotations and use it in a subsequent GWT.create() call :

public class WorkflowDataGenerator extends Generator {

/* (non-Javadoc)
 * @see 
com.google.gwt.core.ext.Generator#generate(com.google.gwt.core.ext.TreeLogger, 
com.google.gwt.core.ext.GeneratorContext, java.lang.String)
 */
@Override
public String generate(TreeLogger logger, GeneratorContext context, String 
typeName) throws UnableToCompleteException {
TypeOracle typeOracle = context.getTypeOracle();
JClassType classType = typeOracle.findType(typeName);
String packageName = classType.getPackage().getName(); 

JMethod [] methodsInIntf = classType.getMethods();

/*
 * Generate code for an ImageBundle out of the images specified in 
annotation
 * This is then utilized when generating code for Image Array below
 */
String classNameWIImgBndl = classType.getName() + ImageBundle;
PrintWriter pwImgBndl = context.tryCreate(logger, packageName, 
classNameWIImgBndl);
if(pwImgBndl != null){
logger.log(TreeLogger.INFO, Generating 
+packageName+.+classNameWIImgBndl);
ClassSourceFileComposerFactory factoryImgBndl = new 
ClassSourceFileComposerFactory(packageName, classNameWIImgBndl);
factoryImgBndl.makeInterface();
factoryImgBndl.addImport(com.google.gwt.resources.client.ClientBundle);
factoryImgBndl.addImport(com.google.gwt.resources.client.ImageResource);
factoryImgBndl.addImplementedInterface(com.google.gwt.resources.client.ClientBundle);

SourceWriter sw = factoryImgBndl.createSourceWriter(context, pwImgBndl);
sw.indent();

for (JMethod method: methodsInIntf){
logger.log(TreeLogger.INFO, Preparing method +method.getName());
/* Several calls to sw.println() to emit 
source as per my need */
sw.println();
}

sw.commit(logger);
}
/* More code emitted as per my need*/


/*
 * Add code for generating the WorkInstruction Image Array
 */
sw.println(public ImageResource [] createImageArray () {);
sw.indent();
sw.println(ImageResource[] imgArr = new ImageResource 
[+(methodsInIntf.length+1)+];);
sw.println(packageName+.+classNameWIImgBndl + wiBundle = 
GWT.create(+packageName+.+classNameWIImgBndl+.class););

int counter=1;
for(JMethod method: methodsInIntf){
sw.println(imgArr[+(counter++)+] = wiBundle.+method.getName()+(););
}
sw.println(return imgArr;);
sw.outdent();
sw.println(});

sw.commit(logger);
return packageName+.+classNameWIData;
} else {
return packageName+.+classNameWIData;
}
}
}


Regards,
Nirmal

-- 
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: I18N - How to set locale per code?

2010-12-29 Thread Nirmal Patel
Look in I18N.gwt.xml

 if (locale == null) {
 *   // Look for the locale on the web page*
locale = __gwt_getMetaProperty(locale)
  }

  if (locale == null) {
// Look for an override computed by other means in the selection 
script
locale = $wnd['__gwt_Locale'];
  } else {
$wnd['__gwt_Locale'] = locale || defaultLocale;
  }

-- 
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: Click event for custom cell renderer (HyperlinkCell) for CellTable isn't firing.

2010-12-28 Thread Nirmal Patel
Here's how to configure what Subhro suggests...
In Eclipse; goto Project - Properties - Java Compiler - (Check)Enable 
Project Specific Settings -  Compiler Compliance Level (select 1.6)
Or if you want to do it at global level: Window - Preferences - Java - 
Compiler - Compiler Compliance Level (select 1.6)


Regards,
Nirmal

-- 
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: Confused about Servlet mapping and Url Pattern, RPC not working when Deployed

2010-12-28 Thread Nirmal Patel
Hi Amarsat,

As Thomas already pointed; it seems your GUI code is not making any RPC 
calls in the first place.
To establish that your GUI is actually making those RPC calls.. check for 
those URLs in Firebug Net panel... I am attaching a screenshot of same from 
my sample app.

Here's a guide of deploying 
RPC: 
http://code.google.com/webtoolkit/doc/trunk/DevGuideServerCommunication.html#DevGuideRPCDeployment..
 
(if you havent read it already)

Regards,
Nirmal

-- 
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: image sprite in uibinder not working

2010-12-27 Thread Nirmal Patel
You can disable inline data urls by following:
set-property name=ClientBundle.enableInlining value=false

Even I havent used it personally; think inlining best serves nby saving a 
http request to get your image.

Regards,
Nirmal

-- 
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 Classpath to add new libraries

2010-12-23 Thread Nirmal Patel
You can create a folder lib under your project's root and place the jar 
there.
If you are using eclipse, Project - Build Path - Configure Build Path.
Add the above lib under Libraries.

Regards,
Nirmal

-- 
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: Must recompile to see changes

2010-12-22 Thread Nirmal Patel
Hi Adrian,
I presume you have installed the GWT plugin in Eclipse.
You will also need to install the GWT dev mode browser plugins.

To start dev-mode; Run As - Web Application (it will prompt you to select 
your entry module when running first time)
A Devlopment Mode view will open and once loaded; you will get a Launch 
URL like: http://127.0.0.1:/YourHTMLFile.html?gwt.codesvr=127.0.0.1:9997

Launch this URL in a browser you want to test in. If you dont have the GWT 
browser plugin installed already; it will present you a link to download the 
same; download and install it.
Once the plugin is installed; you should be able to see your application 
running in the browser.

Any changes you make in code henceforth will be visible in dev-mode by 
refreshing the browser.

Regards,
Nirmal

-- 
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: Confused about Servlet mapping and Url Pattern, RPC not working when Deployed

2010-12-22 Thread Nirmal Patel
Hi AmaraSat,

The URL pattern is /module-name/RemoteServiceRelativePath.

And it seems you have that already.
As a starter; check in your gwt.xml if you are renaming your module to 
something else using rename-to??

If thats ok; can you post the error you are getting? You can use firebug for 
that.

Regards,
Nirmal

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