Re: GWT-log 3.1.3 issues GWT 2.6.1 with

2016-01-11 Thread vaibhav bhalke
Error resolved with following combination

GWT 2.6.1 <http://www.gwtproject.org/versions.html> or newer
gwt-log-3.3.2.jar <https://gwt-log.storage.googleapis.com/gwt-log-3.3.2.jar>

On Mon, Jan 11, 2016 at 6:01 PM, Paul Robinson  wrote:

>
> On 11 Jan 2016 11:13 a.m., "vaibhav gwt"  wrote:
> > Just upgraded to 2.6.1 and ran into the following when trying to
> > build with gwt-log-3.1.3.jar.
>
> Your gwt-log is too old. See the compatibility information here:
>
> https://github.com/fredsa/gwt-log/wiki/GettingStarted
>
> Paul
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/m4OjkhSF16k/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Best Regards,
Vaibhav

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT-log 3.1.3 issues GWT 2.6.1 with

2016-01-11 Thread vaibhav gwt
Hi,



GWT 2.6.1


Just upgraded to 2.6.1 and ran into the following when trying to
build with gwt-log-3.1.3.jar. 

[java][ERROR] Errors in 
'com/allen_sauer/gwt/log/client/util/DOMUtil.java'
[java]   [ERROR] Line 33: Rebind result 
'com.allen_sauer.gwt.log.client.util.impl.DOMUtilImpl' cannot be abstract
[java]Computing all possible rebind results for 
'com.google.gwt.cell.client.ImageCell.Template'
[java]   Rebinding com.google.gwt.cell.client.ImageCell.Template
[java]  Invoking generator 
com.google.gwt.safehtml.rebind.SafeHtmlTemplatesGenerator
[java] Constructing interface 
com.google.gwt.cell.client.ImageCell.Template
[java]Generating method body for img()
[java]   Template with variable in URL attribute 
context: The template code generator will sanitize the URL.  Use SafeUri to 
specify arguments in a URL attribute context that should not be sanitized.

BUILD FAILED
D:\build\build.xml:3222: Java returned: 1

Please let me know solution for this.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT + MySQL

2015-08-15 Thread Vaibhav Shukla
Hi Greg,
Finally I found someone who has been working on MySQL in GWT. I am working 
on a project that involves both. But I am kind of stuck with the similar 
issue. Can send a sample example to better understanding of GWT and MySQL. 
I am using GWT-RPC.

On Tuesday, November 30, 2010 at 10:14:47 PM UTC+5:30, Greg Dougherty wrote:
>
> I've used MySQL in just about every GWT app I've written, so it's 
> quite possible to use it.  Including during development running Jetty. 
>
> 1: All JDBC calls MUST come from the server.  The client code can NOT 
> see any jar files, ever. 
>
> 2: You can NOT reference com.mysql.jdbc.Driver, or any other package 
> that comes from a jar file, in any class that will end up in the 
> client.  It doesn't matter if that code is only called from the 
> server.  Any class that imports anything from a jar file (or from any 
> of the classes that aren't on the client use whitelist) MUST be in the 
> server package. 
>
> My guess is that you have one or more classes in *.shared that are 
> importing com.mysql.jdbc.Driver.  Move those classes to *.server, or 
> move all the MySQL functionality out of them and into classes that are 
> in *.server. 
>
> Greg 
>
> On Nov 30, 2:54 am, mgm  wrote: 
> > I am having the same issue.. I am using MySQL on the server side 
> > (server source package only) and there is the run-time error of: 
> > 
> >   java.lang.ClassNotFoundException: com.mysql.jdbc.Driver 
> > 
> > I do have the mysql package (mysql-connector-java.jar) in the eclipse 
> > class path (in Project / Properties / Java Build Path) and still it 
> > does not work. 
> > 
> > Does anyone know how to configure correctly? perhaps there are other 
> > settings to make... 
> > 
> > thanks 
> > Gabor 
> > 
> > On Nov 5, 2:23 pm, Ross McKinnon  wrote: 
> > 
> > > Hi there, 
> > 
> > > I've spent numerous hours this week trying to get my existing GWT 
> > > application to connect with an existing MySQL database with no luck. 
> > 
> > > I've created my code to connect to the database using JDBC and is kept 
> > > in the server package to ensure it remains as java code.  Also i have 
> > > included the mySQL jar file in the build path for the project but 
> > > still get an error 
> > 
> > > java.lang.ClassNotFoundException:com.mysql.jdbc.Driver... 
> > 
> > > I have tried numerous ways of getting the database and have ran out of 
> > > ideas now so thought I would consult the experts to see if any kind 
> > > person can lend a hang.. 
> > 
> > > Thanks for any help, 
> > 
> > > Ross

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Abridged summary of google-web-toolkit@googlegroups.com - 27 updates in 13 topics

2014-06-16 Thread Vaibhav Patil
On Jun 13, 2014 6:33 PM,  wrote:

>   Today's topic summary
>
> Group: http://groups.google.com/group/google-web-toolkit/topics
>
>- you can only use Chrome extensions that you get from the Chrome Web
>Store <#1469553b871a6410_group_thread_0> [7 Updates]
>- Ignoring requestFactory responses on page reload
><#1469553b871a6410_group_thread_1> [2 Updates]
>- Dev mode throws MissingResourceException on
>SerializationStreamFactory.createStreamReader()
><#1469553b871a6410_group_thread_2> [1 Update]
>- GWT 2.5.1 DevMode - Unexpected module reload with Firefox
><#1469553b871a6410_group_thread_3> [1 Update]
>- Petition for a standalone Chome installer allowing DevMode
><#1469553b871a6410_group_thread_4> [1 Update]
>- GWT designer crash <#1469553b871a6410_group_thread_5> [2 Updates]
>- Supporting deprecated/unknown browsers
><#1469553b871a6410_group_thread_6> [2 Updates]
>- WARNING: Could not open/create prefs root node
>Software\JavaSoft\Prefs at root 0x8002. Windows RegCreateKeyEx(...)
>returned error code 5. <#1469553b871a6410_group_thread_7> [1 Update]
>- GWT view reloads when I display another view - how do I clear it?
><#1469553b871a6410_group_thread_8> [1 Update]
>- is there any way to trigger a method when users mouse over the Title
>of a column in GWT-CellTable? <#1469553b871a6410_group_thread_9> [4
>Updates]
>- JSNI Javascript promises <#1469553b871a6410_group_thread_10> [3
>Updates]
>- Debugging in production mode <#1469553b871a6410_group_thread_11> [1
>Update]
>- Stable .rpc files <#1469553b871a6410_group_thread_12> [1 Update]
>
>   you can only use Chrome extensions that you get from the Chrome Web
> Store
> 
>
>AJ  Jun 12 06:49AM -0700
>
>Win 7 with Chrome 35.0.1916.114
>I assume Google pulled the extension from the store as part of there
>efforts mentioned here ... ...more
>
>
>Back to top <#1469553b871a6410_digest_top>
>
>
>AJ  Jun 12 06:50AM -0700
>
>Win 7 with Chrome 35.0.1916.114
>I assume Google pulled the extension from the store as part of their
>efforts mentioned here ... ...more
>
>
>Back to top <#1469553b871a6410_digest_top>
>
>
>john wolfe  Jun 12 08:30PM -0700
>
>On Thursday, June 12, 2014 6:59:02 AM UTC-5, AJ wrote:
>> the Chrome Web Store
>
>> At the moment I find no way to enable it, not even with developer
>mode
>> enabled
>
>you can get around this by ...more
>
>
>Back to top <#1469553b871a6410_digest_top>
>
>
>Distal Twitch  Jun 12 09:44AM -0700
>
>This just happened to me too... at a very bad time. I have a critical
>deadline fast-approaching and my development setup just stopped
>working
>thanks to this update.
>
>I really like GWT and GAE, ...more
>
>
>Back to top <#1469553b871a6410_digest_top>
>
>
>Warren Baltz  Jun 12 08:41AM -0700
>
>The same thing happened to me.
>
>I am in the middle of a project nearing a deadline and this is NOT ok.
>I
>like a lot of the features offered by GAE/GWT. But if Google thinks
>it's ...more
>
>
>Back to top <#1469553b871a6410_digest_top>
>
>
>Peter Cliff  Jun 12 06:20AM -0700
>
>Sounds like this:
>
>
>
> http://chrome.blogspot.co.uk/2014/05/protecting-chrome-users-from-malicious.html
>
>Apparently it is possible to install extensions in "Developer Mode" -
>see:
>...more
>
>
>Back to top <#1469553b871a6410_digest_top>
>
>
>Jens  Jun 13 05:33AM -0700
>
>Alternatively you can download any Chrome version for Windows from
>portableapps.com. I am not sure if older versions are directly
>accessible
>through their website but you can find them on ...more
>
>
>Back to top <#1469553b871a6410_digest_top>
>
>   Ignoring requestFactory responses on page reload
> 
>
>Samin Pour  Jun 12 12:22AM -0700
>
>Hi Everyone
>
>My question might be very basic but couldn't find the answer anywhere.
>
>I'm working with requestFactory and send some requests to the server
>at
>almost the same time. ...more
>
>
>Back to top <#1469553b871a6410_digest_top>
>
>
>Alberto Mancini  Jun 13 02:30PM +0200
>
>Hi,
>may be not a 

How to add/remove dynamic column to/from celltable.

2013-04-24 Thread vaibhav bhalke
Hi,

I am gwt celltable.

My columns are configurable through other module.
used AsyncDataProvider to update row data.


Is there any way in celltable to updateColumnData only? so that newly added
data get inserted into celltable or to remove column from celltable.

Assume, 10 column in table.
User can configure celltable column

- user want to remove 2 selected column then server call is made and
related recordList object along with columninfo (8 columns) is coming, but
in this case old 10 columns  with data and 8 column without data is
populated into celltable

Actual: 18 columns displaying in celltable, 10 column with data + 8 column
without data
Expected: 8 column with record

Sample code is as follows

 asyncDataProvider.updateRowData(startRowIndexOfPage, result);
   if ("CONFIGURE".equals(eventType)) {
cellTable.redraw();
createCellTableColumns(latestColumnList);
}
 cellTable.redraw();

result : record list with record information
latestColumnList : List : Updated number of column with column
information

I want to show only new data(column+record data) in celltable which comes
from server

If you want more info then replay me

How to do this?




-- 
Best Regards,
Vaibhav

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




How to create dependent dropndown/selection cell In GWT celltable 2.3?

2013-01-29 Thread vaibhav bhalke
http://stackoverflow.com/q/14534616/297907

-- 
Best Regards,
Vaibhav

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




How to call gwt api from jquery/javascript ?

2013-01-29 Thread vaibhav bhalke
Hi All,
I want to know is there any way to call gwt's api from javascript/jquery.

-- 
Best Regards,
Vaibhav

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




GWT :: How to Commit & Cancel GWT's EditText cell using javascript/jquery?

2013-01-26 Thread vaibhav bhalke
I am using GWT2.3 celltable

GWT :: How to Commit & Cancel GWT's EditText cell using javascript/jquery ?

Following is cancel() of EdittextCell-GWT

Any alternative to do this in javascript ?

/**
   * Commit the current value.
   *
   * @param context the context of the cell
   * @param parent the parent Element
   * @param viewData the {@link ViewData} object
   * @param valueUpdater the {@link ValueUpdater}
   */
  private void commit(Context context, Element parent, ViewData viewData,
  ValueUpdater valueUpdater) {
String value = updateViewData(parent, viewData, false);
clearInput(getInputElement(parent));
setValue(context, parent, viewData.getOriginal());
if (valueUpdater != null) {
  valueUpdater.update(value);
}
  }

--

Following is cancel() of EdittextCell-GWT

Any alternative to do this in javascript

/**
   * Convert the cell to non-edit mode.
   *
   * @param context the context of the cell
   * @param parent the parent Element
   * @param value the value associated with the cell
   */
  private void cancel(Context context, Element parent, String value) {
clearInput(getInputElement(parent));
setValue(context, parent, value);
  }

Using javascript I want to update new value to selected cell & covert it to
non-edit mode How to this using javascript/jquery?

Please provide me solution or any pointer to this case

Thanks in advance.


-- 
Best Regards,
Vaibhav

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




BreadCrumb implemention in GWT2.4

2012-07-28 Thread vaibhav jain
Hi,

  Can any one help how to implement breadcrumb in GWT2.4?Is there any
widget to achieve this?
Best Regards,
Vaibhav

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



GWT CellTable : How to override OnBrowseEvent for Custom EditTextCell?

2012-05-17 Thread vaibhav bhalke
   I am using GWT CellTable 2.1.

How to override OnBrowseEvent for Custom EditTextCell
(NumberCell,CustomStringCell etc..)?

In my CustomStringCell, I want to avoid space only at Initial position(1st
index) How to do?

I tried following way

@Override
public void onBrowserEvent(Context context, Element parent,
String value, NativeEvent event,
ValueUpdater valueUpdater) {
super.onBrowserEvent(context, parent, value, event, valueUpdater);
boolean isEditing = isEditing(context, parent, value);

if(isEditing){
if(event!=null){
info(" event.getKeyCode() = "+event.getKeyCode()+"
:: value ="+value);
if(event.getKeyCode()==32){
event.preventDefault();
return;
}
}
}
}

Current behavior using above code : User cant edit space at all *
--
*

*In Case of CustomStringCell:*

*Expected* : @User should not edit space at 1st index of textString. *
_myString* is not allowed in CustomStringCell.

@User should use space between string like *Record_ID* or *
Google_Search_Engine* (Consider _ as space)

*How can I achieve this in OnBrowseEvent of CustomStringCell?*

*

*

*In Case of CustomNumberCell :*

Suppose my data type is Decimal.

OnBrowseEvent of CustomNumberCell I allowed only keycode of numbers[0-9],
backspace and dot ('*.*')

I want to allow only one dot ('*.*') in decimal

*Not allowed :* *_234* , *.123* , *13.223.23* , *123...23.23*

*How can I achieve in OnBrowseEvent of CustomNumberCell?*

*How to get new value from cell after each keypress ?*

*Any help or guidance in this matter would be appreciated.*

-- 
Best Regards,
VaibhaV

-- 
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 CellTree : DataBinding, Sorting & filtering

2012-04-06 Thread vaibhav gwt

How to build TreeViewModel using following sample xml ?

Sample xml :
 

111
1
Thomas


222
111
Vaibhav




public class MyTreeViewModel implements TreeViewModel {
@Override
public  NodeInfo getNodeInfo(T value) {
   // 
return null;
}

@Override
public boolean isLeaf(Object value) {
   /// 
return false;
}
}

How to perform sorting & filtering based on MyTreeViewModel ?


On Apr 5, 3:25 pm, Thomas Broyer  wrote:
> On Thursday, April 5, 2012 12:10:42 PM UTC+2, vaibhav gwt wrote:
>
> > @ Data_Binding : From server side we are passing xml to client side.
> > Is there any way to bind that xml data to CellTree so that all data
> > populated/render in CellTree (In Tree format)
> > like.. In smartGwt
> >http://www.smartclient.com/smartgwt/showcase/#featured_tree_grid
> > ==> Source code ==>see EmployeeXmlDS.java # Created data source set to
> > TreeGrid
> > #1 Create dataSource : specify dataUrl (data in xml format) &
> > setRecordXPath etc.. and set created DataSource in TreeGrid
>
> > BUT I dont want to use SmartGwt ( :( Its not free) . I want to use
> > GWT.
>
> > In GWT,:  How to populate a CellTree with xml data which is coming
> > from server side
> > From server side we are passing xml to client side. Is there any way
> > to bind that xml data to CellTree so that all data populated/render in
> > CellTree (In Tree format)
>
> You have to build a TreeViewModel around your XML data.

-- 
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 CellTree : DataBinding, Sorting & filtering

2012-04-05 Thread vaibhav gwt
@ Data_Binding : From server side we are passing xml to client side.
Is there any way to bind that xml data to CellTree so that all data
populated/render in CellTree (In Tree format)
like.. In smartGwt 
http://www.smartclient.com/smartgwt/showcase/#featured_tree_grid
==> Source code ==>see EmployeeXmlDS.java # Created data source set to
TreeGrid
#1 Create dataSource : specify dataUrl (data in xml format) &
setRecordXPath etc.. and set created DataSource in TreeGrid

BUT I dont want to use SmartGwt ( :( Its not free) . I want to use
GWT.

In GWT,:  How to populate a CellTree with xml data which is coming
from server side
>From server side we are passing xml to client side. Is there any way
to bind that xml data to CellTree so that all data populated/render in
CellTree (In Tree format)

@ Sorting ?

Or Is there any Tree widgets (from Open source) which provides
Sorting, Filtering, DataBinding

On Apr 5, 1:13 pm, Thomas Broyer  wrote:
> On Thursday, April 5, 2012 8:54:03 AM UTC+2, vaibhav gwt wrote:
>
> > I want to  render large tree dynamically so I selected CellTree widget.
> > I also want  to know How CellTree widget supports DataBinding,
>
> CellTree, like all Cell widgets, is *based* on databinding (unless you
> don't have the same definition for databinding as me)
>
> > Sorting & filtering etc.. ?
>
> It doesn't support those features, but your model (TreeViewModel) can (most
> likely using a *decorator* pattern around you *real* TreeViewModel). The
> hardest part is to fire the appropriate events so that the CellTree
> re-renders your tree with the updated model.
> I've implemented a live outline of a rich-text editor (as soon as you
> add/remove a heading, the outline tree updates; same if you change the
> heading level; and if you type in the heading, the corresponding tree item
> updates with the new heading text). In my case, I used ListDataProviders
> within DefaultTreeNodes, and to update the tree I simply replace the whole
> list (ListDataProvider#setList). When an element has changed –but not the
> structure of the list– (e.g. when a heading's text changes), then I get the
> parent node's children list and call setList with the same value, it'll
> redraw the children of the parent node, so will redraw our updated node
> (along with all its sibling; it could probably be optimized, but nobody
> reported any performance issue yet; we also do that because our list is
> unmodifiable, so we cannot simply set() the item on the list to update that
> one heading).

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



GWT CellTree : DataBinding, Sorting & filtering

2012-04-04 Thread vaibhav bhalke
Hi,

I want to  render large tree dynamically so I selected CellTree widget.
I also want  to know How CellTree widget supports DataBinding, Sorting &
filtering etc.. ?


-- 
Best Regards,
Vaibhav

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



Any widget in GWT to filter node in Tree widget

2012-04-03 Thread vaibhav bhalke
Hi,

Is there any widget in GWT to filter node in Tree widget?

-- 
Best Regards,
Vaibhav


<http://about.me/vaibhavbhalke>

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



Fwd: help me please

2012-03-29 Thread Vaibhav Kale
i am student of m tech. i want do my project in gwt, GWT is new for me. so
i want your valuable guidance.
i am not understanding how can i start, i don't know anything about that, i
am beginner in GWT,
please suggest me some books or pdf to read, by reading these material i
can start development on my project.
my mobile no-  +91-8087712078

thank you in advance.

-- 
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 Celltable : How to avoid entering particular value in editTextCell- column- Celltable?

2012-03-28 Thread vaibhav gwt
Thanks for reply. How to cancel key events for spaces when in edit
mode?

On Mar 27, 8:52 pm, Thomas Broyer  wrote:
> Answered on
> SO:http://stackoverflow.com/questions/9891671/gwt-celltable-how-to-avoid...
>
>
>
>
>
>
>
> On Tuesday, March 27, 2012 3:55:38 PM UTC+2, vaibhav gwt wrote:
>
> > Hi,
>
> > I am using GWT2.3.
>
> > How to avoid entering particular value in editTextCell- column- Celltable?
>
> > Is there any event  in editTextCell?
>
> > Validation while entering values in cells of celltable
> > In case of
> > String :Dont enter spaces in cell
> > Integer : Dont use characters
>
> > + avoiding spaces in cell i.e if cell is type of string then user can't
> > use spaces
> > although user presses "space bar"  button multiple times then that spaces
> > should not be enter in cell a
> > How to achieve this ?
>
> > final EditTextCell editTextCell = new EditTextCell();
>
> >     final Column stringColumn = new Column > String>(
> >                 editTextCell) {
> >             @Override
> >             public String getValue(RecordVO object) {
>
> >             }
>
> > @Override
> >             public void render(Context context, RecordVO
> > object,SafeHtmlBuilder sb) {
> >                 // Any code?
>
> >             }
>
> > column.setFieldUpdater(new FieldUpdater() {
> >             public void update(int index, RecordVO object, String value) {
> >                // This will return updated value
> >             }
>
> > Any help or guidance in this matter would be appreciated.
> > --
> > Best Regards,
> > V
>
> > <http://about.me/vaibhavbhalke>

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



GWT Celltable : How to avoid entering particular value in editTextCell- column- Celltable?

2012-03-27 Thread vaibhav bhalke
Hi,

I am using GWT2.3.

How to avoid entering particular value in editTextCell- column- Celltable?

Is there any event  in editTextCell?

Validation while entering values in cells of celltable
In case of
String :Dont enter spaces in cell
Integer : Dont use characters

+ avoiding spaces in cell i.e if cell is type of string then user can't use
spaces
although user presses "space bar"  button multiple times then that spaces
should not be enter in cell a
How to achieve this ?


final EditTextCell editTextCell = new EditTextCell();

final Column stringColumn = new Column(
editTextCell) {
@Override
public String getValue(RecordVO object) {

}

@Override
public void render(Context context, RecordVO
object,SafeHtmlBuilder sb) {
// Any code?

}

column.setFieldUpdater(new FieldUpdater() {
public void update(int index, RecordVO object, String value) {
   // This will return updated value
}

Any help or guidance in this matter would be appreciated.
-- 
Best Regards,
V






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



GWT SimplePager LastButton issue

2012-03-22 Thread vaibhav bhalke
Hi,

I am facing problem with lastButton of SimplePager. I have 3 pages in
celltable, Page size=11 (1 empty record + 10 records(with value)), Total
record=26.

I used CustomerPager by extending SimplePager.

In 1st attempt 1+10 records display in celltable : Next & Last page button
is enabled (First & Prev button disabled) which is correct. But LastPage
button not working... :( Dont know whats the issue...

Unexpected behavior:

@1 Last page button is working only when I visit to last page(3 page in my
case).

@2 Assume I am on 1st page n I moved to 2nd page(Total 3 pages in
celltable). that time all buttons are enabled which is correct. In this
case Last button is working but behave like Next Button

My GWT application integrated into one of our product so cant debug it from
client side.

May be index value is improper in setPage(int index) method from
AbstractPager

Code flow is as follows for Last button

*//From SimplePager

lastPage.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
  lastPage();
}
  });


   @Override
  public void lastPage() {
super.lastPage();
  }

 // From AbstractPager
  /**
   * Go to the last page.
   */
  protected void lastPage() {
setPage(getPageCount() - 1);
  }
 protected void setPage(int index) {
if (display != null && (!isRangeLimited ||
!display.isRowCountExact() || hasPage(index))) {
  // We don't use the local version of setPageStart because it would
  // constrain the index, but the user probably wants to use absolute page
  // indexes.
  int pageSize = getPageSize();
  display.setVisibleRange(pageSize * index, pageSize);
}
  }*

or may be some conditions false from above code(from setPage())

actual record = 26 and 3 Empty record (1st Empty record/page)

May b problem with dataSize :|

How I can check number of pages based on the data size? ?

How can I solve this problem?


-- 
Best Regards,
Vaibhav


<http://about.me/vaibhavbhalke>

-- 
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 auto set the width of a widget in VerticalPanel

2012-02-16 Thread vaibhav jain
Hi All,

 how to auto set the width of a widget in VerticalPanel??

I used:

setCellWidth(Mywidget,"100%");

but its not working,i also tried below:

setCellWidth(Mywidget, Window.getClientWidth()+"");
but its not giving proper result.


Regards,
VJ

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



is it necessary to use DataGrid.Resources for changing the datagrid look and feel

2012-02-13 Thread vaibhav jain
HI all,
  How can we change look and feel of data grid in gwt2.4.

I am using like:

dataGrid.addStyleName("tableWidget");

and in CSS i have defined :
.tableWidget {
 background: brown;
 color: black;
 font-weight: bold;
 font-size: 14px;

}
it changes the color of text as black and changing only the background of
header and footer,not the row background..and also if i change the even/odd
number of rows color to be chaned,how can i do this??


Regards,
VJ

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



GWT 2.4 ,how can we change display of SelectionCell at run time.

2012-02-10 Thread vaibhav jain
Hello All,

here i m finding the column of datagrid
Column col = (Column) dataGrid.getColumn(j);

if (col.getCell().getClass().toString().equals("class
com.google.gwt.cell.client.SelectionCell"))
{
Window.alert("SelectionCell");
   String value ="Dummy";

 col.getCell().setValue(context, parent, value);

}

how can i put the  "Dummy" in selection cell displayI dont know how to
use setValue,or is there any other method??

Regards,
vai.

-- 
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: Getting name of Column in overrided method onColumnSort of ColumnSortEvent.Handler in GWT2.4

2012-02-09 Thread vaibhav jain
thanks for your suggestion

i am using like below:

Column col = (Column) event.getColumn();
int index = dataGrid.getColumnIndex(col);
//contains the column name list
 columnList = VO.getColumns();
String columnName =columnList.get(index).getName();

Regards,
vaibhav


On Thu, Feb 9, 2012 at 5:38 PM, divStar  wrote:

> Hi,
>
> the event-argument you get contains a getColumn()-method, which in
> turn returns a Column-object. You can use this to find the column
> the user has clicked.
> I use a custom Column-class, that itself keeps a name. This way I can
> cast the column-object into the class I have created, that has a name
> (and is constructed with a name) and simply use
> event.getColumn().getName() if I need the name.
>
> Example:
>
>public HidableColumn(Cell cell, String name) {
>super(cell);
>this.setName(name);
>}
>
> then when constructing, I go about it like this:
>HidableColumn column = new
> HidableColumn String>(new TextCell(), "Column") {...
>
> and now you could use ((HidableColumn)
> event.getColumn()).getName() to get the name of the column.
>
> Note though: I'm using CellTable and thus it might be different if
> using a datagrid as its methods might differ (I don't know since I
> haven't used them).
>
> Igor.
>
> --
> 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.
>
>


-- 
vaibhav jain.

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



Getting name of Column in overrided method onColumnSort of ColumnSortEvent.Handler in GWT2.4

2012-02-08 Thread vaibhav jain
Hello All,
  I am implementing ColumnSortEvent.Handler in my class in
which i am making a datagrid ,am overriding its onColumnSort method.

public void onColumnSort(ColumnSortEvent event) {


}

here in this method ,how can i find the name of my column who has been
clicked.


Regards,
vaibhav

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



Facing exception: java.lang.RuntimeException: Deferred binding failed for 'com.google.test.client.CustomDataGridResources' (did you forget to inherit a required module

2012-01-31 Thread vaibhav jain
Hello All,

I have created the interface

import com.google.gwt.user.cellview.client.DataGrid;
import com.google.gwt.user.cellview.client.DataGrid.Resources;
import com.google.gwt.user.cellview.client.DataGrid.Style;


public interface CustomDataGridResources extends Resources {


   @Source("../public/css/necComponent.css")
Style dataGridStyle();

}

}

In my other class in the same package i have used like this:

DataGrid.Resources resources = GWT.create(CustomDataGridResources.class);
dataGrid = new DataGrid(40, resources);

In my xml file i have written like this:





but i am facing the  exception

java.lang.RuntimeException: Deferred binding failed for
'com.google.test.client.CustomDataGridResources' (did you forget to inherit
a required module)



Regards,
vaibhav

-- 
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: Apllying CSS in DataGid in GWT2.4

2012-01-30 Thread vaibhav jain
exact exception is
java.lang.RuntimeException: Deferred binding failed for
'com.google.test.client.CustomDataGridResources' (did you forget to inherit
a required module


On Tue, Jan 31, 2012 at 12:18 PM, vaibhav jain wrote:

> Hi kiran,
>  I tried as you told me but it is not working.
>
> i am also trying
>
> import com.google.gwt.user.cellview.client.DataGrid;
> import com.google.gwt.user.cellview.client.DataGrid.Resources;
>
>
> public interface CustomDataGridResources extends Resources {
>
> @Source({DataGrid.Style.DEFAULT_CSS, "../public/css/MyComponent.css"})
> CustomStyle dataGridStyle();
>
> interface CustomStyle extends DataGrid.Style {
>
> }
>
> }
>
>
> and in my other class i am using
>
> DataGrid.Resources resources = GWT.create(CustomDataGridResources.class);
> dataGrid = new DataGrid(pageSize,resources );
>
> but an exception occurs while running the module,that in
> "CustomDataGridResources you forgot to inherit a module".
>
> didnt find why?????
> :(:(
>
>
>
>
>
> Regards,
> Vaibhav
>
>
>
>
>
> On Mon, Jan 30, 2012 at 4:13 PM, kiran reddy wrote:
>
>> Hi Vaibhav,
>>
>> try the following code to specify class name:
>>
>>
>> dataGrid.getElement().setClassName("dataGridEvenRow");
>>
>>
>> Best Regards,
>> Kiran
>>
>> On Mon, Jan 30, 2012 at 3:57 PM, vaibhav jain wrote:
>>
>>>
>>> Hello Experts,
>>>  How can i change my DataGrid look and feel in
>>> gwt2.4,I tried to simply define the property in my CSS to change the
>>> background color of even rows,
>>>
>>> .dataGridEvenRow {
>>> background: #FF3030 !important;
>>> }
>>>
>>> and in code i used
>>> dataGrid.setStyleName("dataGridEvenRow");
>>>
>>>
>>> but its not reflecting the color change.
>>>
>>> Thanks,
>>> Vaibhav
>>>
>>> --
>>> 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.
>>
>
>
>
> --
> vaibhav jain.
>



-- 
vaibhav jain.

-- 
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: Apllying CSS in DataGid in GWT2.4

2012-01-30 Thread vaibhav jain
Hi kiran,
 I tried as you told me but it is not working.

i am also trying

import com.google.gwt.user.cellview.client.DataGrid;
import com.google.gwt.user.cellview.client.DataGrid.Resources;


public interface CustomDataGridResources extends Resources {

@Source({DataGrid.Style.DEFAULT_CSS, "../public/css/MyComponent.css"})
CustomStyle dataGridStyle();

interface CustomStyle extends DataGrid.Style {

}

}


and in my other class i am using

DataGrid.Resources resources = GWT.create(CustomDataGridResources.class);
dataGrid = new DataGrid(pageSize,resources );

but an exception occurs while running the module,that in
"CustomDataGridResources you forgot to inherit a module".

didnt find why?
:(:(





Regards,
Vaibhav




On Mon, Jan 30, 2012 at 4:13 PM, kiran reddy  wrote:

> Hi Vaibhav,
>
> try the following code to specify class name:
>
>
> dataGrid.getElement().setClassName("dataGridEvenRow");
>
>
> Best Regards,
> Kiran
>
> On Mon, Jan 30, 2012 at 3:57 PM, vaibhav jain wrote:
>
>>
>> Hello Experts,
>>  How can i change my DataGrid look and feel in
>> gwt2.4,I tried to simply define the property in my CSS to change the
>> background color of even rows,
>>
>> .dataGridEvenRow {
>> background: #FF3030 !important;
>> }
>>
>> and in code i used
>> dataGrid.setStyleName("dataGridEvenRow");
>>
>>
>> but its not reflecting the color change.
>>
>> Thanks,
>> Vaibhav
>>
>> --
>> 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.
>



-- 
vaibhav jain.

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



Apllying CSS in DataGid in GWT2.4

2012-01-30 Thread vaibhav jain
Hello Experts,
 How can i change my DataGrid look and feel in gwt2.4,I
tried to simply define the property in my CSS to change the background
color of even rows,

.dataGridEvenRow {
background: #FF3030 !important;
}

and in code i used
dataGrid.setStyleName("dataGridEvenRow");


but its not reflecting the color change.

Thanks,
Vaibhav

-- 
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: Can we add RootLayoutPanel into other panel in GWT 2.4??

2012-01-25 Thread vaibhav jain
Thank you very much,It works now.

On Wed, Jan 25, 2012 at 7:22 PM, Thomas Broyer  wrote:

> No, just like you cannot add RootPanel to any other panel; that doesn't
> mean you cannot add SplitLayoutPanel to a SimplePanel though.
>
> See “Using a LayoutPanel without RootLayoutPanel” at
> http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#Recipes
>
> --
> 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/-/XIwu2GT4l64J.
> 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.
>



-- 
vaibhav jain.

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



Can we add RootLayoutPanel into other panel in GWT 2.4??

2012-01-25 Thread vaibhav jain
Hello Experts,
I am using a SplitLayoutPanel and adding it to a RootLayoutPanel as i have
heard that SplitLayoutPanel can be added into the RootLayoutPanel only,now
Can i add this RootLayoutPanel into some other Simple Panel?Because
basically i wanted to add the SplitLayoutPanel in SimplePanel or
Vertical/HorizontalPnael.

Regards,
Vaibhav Jain.

-- 
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: Example of code using Data Grid of GWT2.4

2012-01-24 Thread vaibhav jain
Any one can also look at the code given at:
http://rvsoni.wordpress.com/2011/10/25/gwt-datagrid-with-pagination-using-simple-pager/#comment-37


On Tue, Jan 24, 2012 at 9:50 PM, vaibhav jain wrote:

> Thanks a lot .I tried the same and it worked.
>
>
> On Tue, Jan 24, 2012 at 9:21 PM, Drew Spencer wrote:
>
>> It would seem from the Javadocs that DataGrid is almost analogous to
>> CellTable, just that it implements one extra interface: 
>> RequiresResize<http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/RequiresResize.html>
>> .
>>
>> Try swapping out your CellTable for DataGrid and see if it works?
>>
>> --
>> 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/-/L1f84H5cxrwJ.
>> 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.
>>
>
>
>
> --
> vaibhav jain.
>



-- 
vaibhav jain.

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



GWT 2.4 List Box with Scroll Bar

2012-01-24 Thread vaibhav jain
Hi All,

   How can i implement List box in GWT 2.4,which shows scroll bar in
displayed items in it.Suppose i have 100 items in list box,when i select
drop down menu i don't want to keep such a long list ,i just want to keep
some limited number of items there and want scroll bar to see other
remaining elements.


Regards,
Vaibhav Jain.

-- 
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: HELP.. ADDING IMAGE TO PushButton.

2012-01-24 Thread vaibhav jain
Hi,
Is there any other way to put image on a button if we don't want to use
push button.
Regards,
Vaibhav

On Tue, Jan 24, 2012 at 9:34 PM, Thomas Broyer  wrote:

> Try that: put the image in img/pdficon_large.png at the root of your WAR,
> then use 'new Image(GWT.getHostPageBaseURL() + "img/pdficon_large.png")'
> (provided your HTML host page is also at the root of your war, alongside
> the "img" folder).
>
> See my reply on the issue tracker about why WEB-INF doesn't work.
>
> --
> 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/-/dlkBDEGRX9wJ.
>
> 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.
>



-- 
vaibhav jain.

-- 
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: HELP.. ADDING IMAGE TO PushButton.

2012-01-24 Thread vaibhav jain
I m also using the same as told by Thomas,It works fine,

On Tue, Jan 24, 2012 at 9:34 PM, Thomas Broyer  wrote:

> Try that: put the image in img/pdficon_large.png at the root of your WAR,
> then use 'new Image(GWT.getHostPageBaseURL() + "img/pdficon_large.png")'
> (provided your HTML host page is also at the root of your war, alongside
> the "img" folder).
>
> See my reply on the issue tracker about why WEB-INF doesn't work.
>
> --
> 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/-/dlkBDEGRX9wJ.
>
> 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.
>



-- 
vaibhav jain.

-- 
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: Example of code using Data Grid of GWT2.4

2012-01-24 Thread vaibhav jain
Thanks a lot .I tried the same and it worked.

On Tue, Jan 24, 2012 at 9:21 PM, Drew Spencer  wrote:

> It would seem from the Javadocs that DataGrid is almost analogous to
> CellTable, just that it implements one extra interface: 
> RequiresResize<http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/RequiresResize.html>
> .
>
> Try swapping out your CellTable for DataGrid and see if it works?
>
> --
> 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/-/L1f84H5cxrwJ.
> 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.
>



-- 
vaibhav jain.

-- 
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: Deleting the contents of a GWT DataGrid Widget

2012-01-23 Thread vaibhav jain
Hi,
   Can you please mail me some example of data grid having
sorting ,paging and editable columns features,I am new to GWT and
haven't found any example in java doc.

Thanks in advance.

Regards,
Vaibhav
On Jan 6, 2:08 pm, Thomas Broyer  wrote:
> dataProvider.getList().clear() ?

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



Example of code using Data Grid of GWT2.4

2012-01-23 Thread vaibhav jain
Hello Experts,
  I need to implement the DataGrid of GWT 2.4,Can you
please share with me any running example of Data Grid,I looked into the
code given at java doc for Data Grid,they have used cell table by mistake
in example code of Data Grid.




Thanks,
Vaibhav

-- 
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: Collapsible Component in GWT2.4

2012-01-19 Thread vaibhav jain
Hi,,
 Thanks for your reply,Can you explain little more how to resize layout
panel dynamically to achieve the task as i m very new to GWT.I need to
collapse the left panel towards left.

On Thu, Jan 19, 2012 at 10:03 PM, Thomas Broyer  wrote:

> I think the "recommended" way to do this in GWT 2.0+ is to use a
> DockLayoutPanel or a LayoutPanel and use setWidgetSize (or
> setWidgetLeftWidth in a LayoutPanel) to resize it dynamically (and benefit
> from a smooth animation).
>
> (oh, just noticed this is what's suggested on the GWT-Incubator home page:
> http://code.google.com/p/google-web-toolkit-incubator/ )
>
> --
> 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/-/AWuBKFhUgTQJ.
> 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.
>



-- 
vaibhav jain.

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



Collapsible Component in GWT2.4

2012-01-19 Thread vaibhav jain
Hello Experts,


Actually i want to use a Panel in GWT 2.4 ,which can be collapsed towards
left.

I am making a Menutree on the left of the screen and will display the item
on the right side of the screen which is selected by MenuTree,I want to put
this MenuTree in a Panel which can be collapsed towards left when clicking
some thing so that item in right panel can take full space of screen.

Can any one tell me to use Collapsible Component available at:

http://code.google.com/p/google-web-toolkit-incubator/source/browse/trunk/src/com/google/gwt/widgetideas/client/CollapsiblePanel.java?r=1723
I have made the classes as given in above link,i just want to do  the task
by these classes.


-- 
vaibhav jain.

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



GWT- Quirks mode :Is there any way to force Document mode to "Quirks" in GWT ?

2012-01-19 Thread vaibhav bhalke
How to force Document mode to Quirks mode ?

I am using GWT application
My Iframe is not completely appear in IE8. But works in IE7 and Mozila FF.

I tried  to
solve this isssue  bt no suceess :(

IE8 wrks only when I am setting document mode to "Quirks"  using developer
tools

Is there any way to force Document mode to "Quirks" in GWT ?

-- 
Best Regards,
Vaibhav Bhalke


<http://about.me/vaibhavbhalke>

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



Documentation of GWT

2011-12-26 Thread vaibhav jain
Hi,
I am new to GWT.I have seen documentation of GWT available on
links like http://code.google.com.I want to know if there is any way
to download this documentation as a PDF because i have limited access
to internet.

Thanks and Regards,
Vaibhav

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



Gwt SimplePager : How to change pager buttons images?

2011-12-13 Thread vaibhav bhalke
Hi,
How to replace pager buttons images like first:last_PageEnabled/disabled ,
next:prev_PageEnabled/disabled?

I am using GWT2.3 n simplePager.
How to override existing images of pager buttons with our images?

Thanks in advance.

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



GWT SimplePager : How to provide GoTo Functionality in pager?

2011-12-11 Thread vaibhav bhalke
Hi,

I am usign GWT2.3.
We developed CustomPager by overriding SimplePager.

We override createText() method such a way that we are showing string like
"Page 1 of 4" using following code

> public String createText() {
> if(searchRecordCount%pageSizeForText == 0){
> totalPages = searchRecordCount/pageSizeForText;
> }else{
> totalPages = (searchRecordCount/pageSizeForText) + 1;
> }
> NumberFormat formatter = NumberFormat.getFormat("#,###");
> return "Page "+formatter.format(this.getPage()+1) + " of " +
> formatter.format(totalPages);
>   }
>

[image: pager.PNG]

Now I want to use TextBox for CurrentPage so that user can enter page
Number in textBox. (Functionality GoTo entered pageNumber)

createText() returns string so I cant user textBox ;) + Can't provide css

How can I do this ? Is there any way to solve this problem? Workaround if
any or Sample code



-- 
Best Regards,
Vaibhav


<http://about.me/vaibhavbhalke>

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

<>

GWT EditTextCell : How to increase editable TextBox width in EditTextCell?

2011-12-11 Thread vaibhav bhalke
Hi,

I am using GWT2.3 in my project.
I want to increase editableTextBox width when user click on
editableTextCell.
Problem is My Column width is 200 Px. when user clicks on editableTextCell
then that TextBox is width(around 125px) in EditableTextCell is less as
compare to column width.

I added EditTextCell in Celltable's column

 Column stringColumn = new Column(new
EditTextCell()) {
// My Code
}

cellTable.addColumn(stringColumn, "MyColumn");
cellTable.setColumnWidth(checkBoxColumn, 200, Unit.PX);


I tried following way to increase TextBox width but problem is I cannot
edit in textbox + focus not losses

@Override
> public void onBrowserEvent(Context context, Element
> elem,Record object, NativeEvent event) {
> String type = event.getType();
>
>   int editedTexBoxSize =
> (cellTable.getOffsetWidth()-100)/cellTable.getColumnCount();
>
>   if(elem.getInnerHTML().startsWith("   String test = elem.getInnerHTML();
>  // test =  __eventBits="2048">
>
>  test= test.replace("value", "
> size="+editedTexBoxSize+" value");
>

// test = 

>
>   elem.setInnerHTML(test);
>   }
> super.onBrowserEvent(context, elem, object, event);
> }
>

I want to set TextBox width appear in EditTextCell is equal to column Width.

Any Solution ?



-- 
Best Regards,
Vaibhav


<http://about.me/vaibhavbhalke>

-- 
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 access javabean in gwt module( client + server) from outside gwt module?

2011-12-07 Thread vaibhav bhalke
I want to access javabean(VO) in gwt module(client & server ) from outside
module ( non-gwt module).

class that we want to re-use, is general business class and not belonging
to any GWT module

How to access, used that javabean in gwt module?

Any solution for this case ?

Thanks in advance.


-- 
Best Regards,
Vaibhav


<http://about.me/vaibhavbhalke>

-- 
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 celltable : Unexpected behavior : when record deleted from page then other record repeated in page.

2011-11-27 Thread vaibhav gwt
Any Idea How to resolve this issue ?

On Nov 15, 10:11 pm, vaibhav gwt  wrote:
> I also called
> updateRowData(startIndexOfPage, recordList);
> updateRowCount(updatedRecordCount, true);
>
> Still same issue :-|
>
> On Nov 15, 6:01 pm, vaibhav bhalke  wrote:
>
>
>
>
>
>
>
> > Hi,
> > I am using celltable -- gwt2.3.
> > I found strange behavior in celltable.
> > My celltable's pagesize is 10. Total 13 records.
> > When Page contains 3 records
> > A 1 11
> > B 2 22
> > C 3 33
>
> > When I deleted any one record e.g. A record then that record is deleted
> > from page but other record repeated / sets in page.
> > i.e.
> > B 2 22
> > C 3 33
> > C 3 33
> > Page is trying to set 3 recods some how.
> > Expected 2 records in page after deleting 1 record
>
> > Whats wrong ? How to resolve this issue?
>
> > Thanks in advance

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



GWT CELLTABLE : How to unchecked header check-box on pagination ?

2011-11-16 Thread vaibhav bhalke
Hi

How to uncheck header checkbox from Grid(Celltable) ?

I used following  CustomHeaderCheckBox and passed checkboxcell to it.

Whenever I am checked/unchecked headerCheckbox then all checkbox present in
that columns are checked/unchecked accordingly

public class CustomHeaderCheckBox extends Header implements
> HasText{
> private boolean value;
> private ChangeValue changeValue;
> private String text = "";
>
> public CustomHeaderCheckBox(CheckboxCell cell) {
> super(cell);
> }// end constructor
>
> @Override
> public Boolean getValue() {
> return value;
> }// end getValue
>
> @Override
> public void setText(String text) {
> if (text == null)
> text = "";
> this.text = text;
> }
>
> @Override
> public String getText() {
> return text;
> }
>
> public void setChangeValue(ChangeValue changeValue) {
> this.changeValue = changeValue;
> }
>
> @Override
> public void onBrowserEvent(Context context, Element elem,
> NativeEvent event) {
> Event evt = Event.as(event);
> int eventType = evt.getTypeInt();
> switch (eventType) {
> case Event.ONCHANGE:
> value = !value;
> if (changeValue != null)
> changeValue.changedValue(context.getColumn(), value);
> break;
> }// end switch
> super.onBrowserEvent(context, elem, event);
> }// end onBrowserEvent
>
> @Override
> public void render(Context context, SafeHtmlBuilder sb) {
> super.render(context, sb.appendEscaped(text));
> }// end render
>
> // Checkbox changed Handler
>
> public interface ChangeValue {
> void changedValue(int columnIndex, Boolean value);
> }
> }
>


Column checkBoxColumn = new Column(new
> CheckboxCell(true, false)) {
> @Override
> public Boolean getValue(Record object) {
> // Did some operation here
> }
>

CheckboxCell cell = new CheckboxCell();
>
 CustomHeaderCheckBox customHeaderCheckBox = new CustomHeaderCheckBox(cell);
>  customHeaderCheckBox.setChangeValue(new HeaderCheckBoxValueChange()); //
> handler
>
> cellTable.addColumn(checkBoxColumn, customHeaderCheckBox);
>

I want to uncheck header checkbox on pagination.

Is there any way to do it? How to ?

-- 
Best Regards,
Vaibhav Bhalke


<http://about.me/vaibhavbhalke>

-- 
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 celltable : Unexpected behavior : when record deleted from page then other record repeated in page.

2011-11-15 Thread vaibhav gwt

I also called
updateRowData(startIndexOfPage, recordList);
updateRowCount(updatedRecordCount, true);

Still same issue :-|

On Nov 15, 6:01 pm, vaibhav bhalke  wrote:
> Hi,
> I am using celltable -- gwt2.3.
> I found strange behavior in celltable.
> My celltable's pagesize is 10. Total 13 records.
> When Page contains 3 records
> A 1 11
> B 2 22
> C 3 33
>
> When I deleted any one record e.g. A record then that record is deleted
> from page but other record repeated / sets in page.
> i.e.
> B 2 22
> C 3 33
> C 3 33
> Page is trying to set 3 recods some how.
> Expected 2 records in page after deleting 1 record
>
> Whats wrong ? How to resolve this issue?
>
> Thanks in advance

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



Gwt celltable : Unexpected behavior : when record deleted from page then other record repeated in page.

2011-11-15 Thread vaibhav bhalke
Hi,
I am using celltable -- gwt2.3.
I found strange behavior in celltable.
My celltable's pagesize is 10. Total 13 records.
When Page contains 3 records
A 1 11
B 2 22
C 3 33

When I deleted any one record e.g. A record then that record is deleted
from page but other record repeated / sets in page.
i.e.
B 2 22
C 3 33
C 3 33
Page is trying to set 3 recods some how.
Expected 2 records in page after deleting 1 record

Whats wrong ? How to resolve this issue?

Thanks in advance

-- 
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: Last Page too big in SimplePager

2011-11-09 Thread vaibhav gwt
Hi
I am using GWT2.3 Celltable

I'm using SimplePager and I want to show 11 items(users) per page.
1 empty records + 10 actual records = 11 records per page so
PageSize=11

 All my data is 36 items. I want to show text in Simple pager such way
that
Pager should display following values in my pager when PageSize=11 (I
am setting 1 empty record in grid)
i.e 1-10 of 36 11-20 of 36 21-30 of 36 31-36 of 36

Currently I am getting lots of issue like last  page showing
unexpected records. (expected 7 = 1 empty + 6 actual records)
pager showing unexpected startIndex ,lastIndex and
dataSize(totalRecordCount)

I am stuck in this pager  issue.

Any help or guidance in this matter would be appreciated


Does anyone know what's going wrong?

On Apr 27, 8:03 pm, "bstockiph...@googlemail.com"
 wrote:
> I fixed the bug with the invalid enabled "nextpage" button while
> setting setRangeLimited(false) by overwriting the hasNextPage()
> method:
>
> /* (non-Javadoc)
>                          * @see
> com.google.gwt.user.cellview.client.SimplePager#hasNextPage()
>                          */
>                         @Override
>                         public boolean hasNextPage() {
>
>                                 if(this.getPage()<(this.getPageCount()-1)) {
>                                         return true;
>                                 }
>                                 return false;
>                         }
>
> On Apr 6, 8:32 pm, Patrick Tucker 
> wrote:
>
>
>
>
>
>
>
> >  It seems my original reply didn't get recorded properly, so I will try
> > again with less detail...
>
> > I noticed that if you call setRangeLimited(false), you get the behavior that
> > you expect, but the forward buttons do not get grayed out.
>
> > If you look at setPageStart(int) is uses isRangeLimited and display's
> > isRowCountExact() values to determine whether or not pageSize records should
> > be shown.  If both are true you will get yourpageof pageSize.  It seems to
> > me that if isRangeLimited, meaning "whether or not thepagerange should be
> > limited to the actual data", is true you would want to only see the 5
> > remaining records instead of a fullpageof pageSize records.
>
> > So what I did was copy AbstractPager into my project and change
> > isRangeLimited to !isRangeLimited in setPageStart(int).  See code below:
> >   protected void setPageStart(int index) {
> >     if (display != null) {
> >       Range range = display.getVisibleRange();
> >       int pageSize = range.getLength();
> >       if (!isRangeLimited && display.isRowCountExact()) {
> >         index = Math.min(index, display.getRowCount() - pageSize);
> >       }
> >       index = Math.max(0, index);
> >       if (index != range.getStart()) {
> >         display.setVisibleRange(index, pageSize);
> >       }
> >     }
> >   }
>
> > You could also extend SimplePager and accomplish the same thing...
>
> > Can someone from the GWT team comment on this?
>
> > Thanks,
> > Pat

-- 
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: how do i add a tooltip to a column header in a celltable ?

2011-11-07 Thread vaibhav gwt
Hi,
Following e.g works only for Name of column header i.e. when we move
mouse on name of column header then only tool tip appear.

CellTable ct;
ct.addColumn(col, SafeHtmlUtils.fromSafeConstant("---header text---"));

We want too tip on entire column header not on name of column header.

Any solution ?

On Jun 11, 1:40 pm, emir  wrote:
> If a plain tooltip suffices, you can create the column with a SafeHtml
> which specifies the tooltip
> text using the title property.
>
> e.g.
>
> CellTable ct;
> ct.addColumn(col, SafeHtmlUtils.fromSafeConstant("---header text---"));
>
> On May 30, 9:45 pm, Celinio  wrote:
>
>
>
>
>
>
>
> > hello,
> > i just have a simple question :
> > how do i add a tooltip to a column header in a celltable ?
>
> > Thanks for helping.

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



GWT Celltable : Custom DatePickerCell

2011-11-05 Thread vaibhav bhalke
Hi,

I want to use customize datepicker cell

Current GWT2.3 Datepicker cell is as follows
[image: gwt_datepicker_cell.PNG]

I am using GWT 2.3.  DatePicker cell showing Navigation only for month not
for year
also there is no seprate navigation for month and Year.

Is there any way to create CustomDatePickercell as follows or close to this
[image: customDatePicker.PNG]

1. Separate navigation for year and month
2. Sequence of days like S M T W T F S

Any one developed such datepicker cell. if yes then share sample code else
provide hint for the same.

Any help or guidance in this matter would be appreciated


-- 
Best Regards,
Vaibhav


<http://about.me/vaibhavbhalke>

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

<><>

GWT celltable How to create selectioncell in edittextcell ?

2011-11-04 Thread vaibhav bhalke
Hi,

I want to create editable cell with datatype boolean.

I don't want to use selectioncell for boolean data type

My testBooleanColumn column's cell contains string with value
true,false..

when I will click on cell present in testBooleanColumn then that cell
should be editable and In that editable cell  I want to show selection cell
with value(true,false).
when user changes value from selectioncell either true or false that value
set to editable cell in testBooleanColumn

How to do this? any hint ? or sample code for this use case ?

-- 
Best Regards,
Vaibhav

-- 
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 Celltable How to make Non-Editable cell in Editable column

2011-11-01 Thread vaibhav gwt
Thanks Ozgur.

public void render(com.google.gwt.cell.client.Cell.Context context,
String value, SafeHtmlBuilder sb) {

if(context.getColumn()==2 &&context.getIndex()==0 ){

sb.appendHtmlConstant(""); // This non-editable cell
// This will work in mozila firefox ?   
}else{
super.render(context, value, sb);
 }

}
It works fine as per my use case. :)

Now problem is when I am performing pagination then next N-1 page's
2nd_column of 1st cell is editable :|
How can I do it as non-editable on pagination ?

On Nov 1, 2:04 pm, ozgur aydinli  wrote:
> Hi,
>
> You can create your own cell, in the render method:
>
> public class MyCustomeCell extends EditTextCell {
>
> ...
>
>   public void render(Context context, String data, SafeHtmlBuilder sb)
> {
>     if(context.getIndex()==0)
>       // render your own cell, a div or something... ex: data div>
>     else
>       super.render(context,data, sb);
>   }
>
> ...
>
> }
>
> On Oct 31, 12:38 pm, vaibhav bhalke  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I added EditTextCell(stringTestEditTextCell) to Column(testColumn).
>
> >  EditTextCell editTextCell = new EditTextCell();
> >        Column stringColumn = new Column(
> >                 editTextCell) {
> >             @Override
> >             public String getValue(Record object) {
>
> >                 return object.getValue();
> >             }
> >         };
>
> > All cells in testColumn are editable.
>
> >  I want 1st cell of column such way that  1st cell of column should be
> > Non-Editable.
>
> > --
> > Best Regards,
> > Vaibhav
>
> > <http://about.me/vaibhavbhalke>

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



GWT CELLTABLE: How to set column's cell value depending on changes in other column ?

2011-10-31 Thread vaibhav bhalke
Hi,

I have 3 column + 10 rows in celltable.
value1Column, value2Column, RecordState
 1 | 2 | *
 2 | 4 | -
:
:
3 | 5 | -
6 | 5 | *

Whenever user changes values either value1 or value2 then immediately cell
related to that record set to * in RecordState column.

How to set * in RecordState column on  value changes?

How to use setFieldUpdater to update values in column ?

value1Column.setFieldUpdater(new FieldUpdater() {
public void update(int index,
RecordVO object, integer value) {
//How to set * in RecordState column ?
}



-- 
Best Regards,
Vaibhav


 <http://about.me/vaibhavbhalke>

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



GWT Celltable How to make Non-Editable cell in Editable column

2011-10-31 Thread vaibhav bhalke
Hi,

I added EditTextCell(stringTestEditTextCell) to Column(testColumn).

 EditTextCell editTextCell = new EditTextCell();
   Column stringColumn = new Column(
editTextCell) {
@Override
public String getValue(Record object) {

return object.getValue();
}
};

All cells in testColumn are editable.

 I want 1st cell of column such way that  1st cell of column should be
Non-Editable.

-- 
Best Regards,
Vaibhav

<http://about.me/vaibhavbhalke>

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



GWT Celltable: How to apply mouse enter event in celltable's cell

2011-10-31 Thread vaibhav bhalke
Hi,
How to apply mouse enter event in celltables cell.

If Mouse enter in cell for record edition then I want to set string to
Record State column that record is edited "Record modify"
On Mouse enter I will check cellvalaue is not equal old value then I will
set "Record modify" value to related record for State column other wise
empty.

Is it possible to apply Mouse enter event in setFieldUpdater() of column?
Or How to apply OnBrowseEvent on cell ?

regards,
Vaibhav

<http://about.me/vaibhavbhalke>

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



GWT Dialogbox Draggable icon not comes when mouse over to caption of dialogbox

2011-10-19 Thread vaibhav bhalke
GWT Dialogbox not showing draggable icon when mouse over to caption of
dialogbox.

I follow http://examples.roughian.com/index.htm#Widgets~DialogBox
Example provided in above link. works fine + draggable icon comes when mouse
over to caption of dialog-box


dialog box's Drag gable property is working fine.default draggable icon not
comes when mouse over to caption of dialog-box

-- 
Best Regards,
Vaibhav

<http://about.me/vaibhavbhalke>

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



GWT CELLTABLE : How to add column in celltable which is combination of non-editable text + hyperlink

2011-10-13 Thread vaibhav bhalke
Hi all,

I want to add link in my celltable's column i.e"validationStatus"
some values are "valid" as well as "invalid"
when value is invalid then I want to make invalid as link (How to ?)
& when value is valid then I want to make it as text

I want to add Column which is combination of non-editable text(valid) +
hyperlink (invalid)if any.



-- 
Best Regards,
Vaibhav Bhalke


<http://about.me/vaibhavbhalke>

-- 
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 CELLTABLE : How to set descending icon to column on celltable header ?

2011-10-05 Thread vaibhav gwt
Thanks for replay
My problem is that I want to show sorted order of column after
celltable loading. eg. I have xml. I am getting only one column
information i.e column(columnname, sortedOrder[false/true],dataTypeOf)
as per column information I want to set ASC/DESC icon close to Column
as per sorted value

On Oct 4, 4:03 pm, Sudhakar Abraham 
wrote:
> Edit  cellTableHeader property in cellTableStyle.css file.   Implement
> the CellTable.Resources interface.  Add your header icon at background-
> image("your_background_icon") tag  in CellTableStyle.css file.
>
> //client side code.
>
> interface TableResources extends CellTable.Resources
>   {
>     @Source(value = { CellTable.Style.DEFAULT_CSS,
> "CellTableStyle.css" })
>     CellTable.Style cellTableStyle();
>   }
>
> //Add your CellTableStyle.css in your cellTable
>
> CellTable result = new
> CellTable(15, GWT.
> create(TableResources.class));
>
> //CellTableStyle.css
>
> .cellTableHeader
>  {
>     height: 20px;
>     border-bottom: 2px solid #60a6bf;
>     padding: 3px 25px;
>     text-align: left;
>     color: blue;
>     text-shadow: #ddf 1px 1px 0;
>     overflow: hidden;
>     cursor:pointer;
>     background-image: url(your_icon.gif);
>     background-repeat:no-repeat;
>     background-position:80% 50%;
>
> }
>
>  S. Abrahamwww.DataStoreGwt.com
> Persist objects directly in GAE

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



GWT CELLTABLE : How to set descending icon to column on celltable header ?

2011-10-04 Thread vaibhav bhalke
Hi all,

How to set column in descending i.e DESC icon on top header  ?

On celltable loading.. I want to set sorting order to column i.e. previously
sorted column/sorting order by user (In last login , before logout)

I tried following way
table.getColumnSortList().push(testColumn); i.e setting column ascending to
true with ASC Icon on top of header.

Some times I want to set column in descending i.e DESC icon on top header ?
How to do it ?

-- 
Best Regards,
Vaibhav


<http://about.me/vaibhavbhalke>

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



GWT CELLTABLE CELL event

2011-09-29 Thread vaibhav bhalke
Hello all,

   -   How to implement KeyPress event for a cell within a Celltable?
   - After editing cell i.e  "" --> "text_added"   How to clear edited value
   "text_added" from that cell on any event ?

  I tried stringColumn.getFieldUpdater().update(index, object, "");
Not working :|





-- 
Best Regards,
Vaibhav

-- 
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 CELLTABLE SimplePager : Event handling on first,last,next,prev button present in SimplePager?

2011-09-15 Thread vaibhav gwt
How to determine which button is clicked by user ?
Is there any way to find out NEXT,PREV,LAST & FIRST button clicked ?

On Aug 6, 7:49 pm, Patrick Tucker  wrote:
> Look at range change.
>
> On Aug 5, 6:31 am, vaibhav bhalke  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > How to handle event on SimplePager? Event handling on first,last,next,prev
> > button present in SimplePager? I am using CellTable gwt 2.3.0
>
> > Right now I am parsing xml in which 100 records are present. xml coming from
> > server.
>
> > @ time I am showing 100 reocrd per table_page i.e pageSize(100);
>
> > Whenever I will click next button then I will made server request for
> > getting next 1OO records same way for every button..
>
> > How to Handle event on buttons present on  SimplePager ?
>
> > Any help or guidance in this matter would be appreciated
>
> > --
> > Best Regards,
> > Vaibhav Bhalke
>
> > <http://about.me/vaibhavbhalke>

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



GWT CELLTABLE column's cell value updation

2011-09-05 Thread vaibhav bhalke
I am using gwt2.3

My celltable contains 10 rows, 5 columns.

All cells in 1st row is empty,editable.

Whenever user clicks on column cell lets say 1st row X 3rd column then user
will edit that cell say "xyz". after that when user click on button: "update
column cell" then xyz value set to all cell present in that column.

I am using different celltype in celltable.

How to set/update all cell value in that particular column/page whose 1st
cell is edited

Any help or guidance in this matter would be appreciated


-- 
Best Regards,
Vaibhav

<http://about.me/vaibhavbhalke>

-- 
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 : How to call SERVLET FROM GWT_SERVLET and How to return value from target servlet to source servlet?

2011-09-02 Thread vaibhav gwt
Thanks for reply
In your provided code , you are calling TargetServlet from client.
I  want to call targetServlet from BasicServiceImpl(GWT Servlet).



On Sep 1, 6:41 am, Abduxkur Ablimit  wrote:
> you can call a servlet from client side like this (may be you want put these 
> code into AsyncCallback method body, from gwt servlet):
>
>         btn.addClickHandler(new ClickHandler(){
>             public void onClick(ClickEvent event) {
>                final String link = GWT.getModuleBaseURL() +
> "someServlet?year="+year.getValue(year.getSelectedIndex())+"&month="+month.getValue(month.getSelectedIndex());
>                 RequestBuilder builder = new 
> RequestBuilder(RequestBuilder.GET,link);
>                 try {
>                
>  builder.sendRequest(null, new RequestCallback() {
>                         @Override
>                         public void onResponseReceived(Request request,
>                                 Response response) {
>                             if (response.getStatusCode() == 200) {
>                                // response.getText();
>                          } else if (response.getStatusCode() == 404) {
>                                 Window.alert("Service not available.");
>                             }
>                        
>  }
>                         @Override
>                         public void onError(Request request, Throwable 
> exception) {
>                             Window.alert("Service not available.");
>                         }
>                     });
>        
>      } catch (RequestException re) {
>                     GWT.log("Error", re);
>                 }
>             }
>         });
>
> 
> From: vaibhav bhalke 
> To: google-web-toolkit@googlegroups.com
> Sent: Wednesday, August 31, 2011 4:30 PM
> Subject: GWT : How to call SERVLET FROM GWT_SERVLET and How to return value 
> from target servlet to source servlet?
>
> I have 2 servlets.
> One In GWT module i.e BasicServiceImpl extends RemoteServiceServlet 
> implements BasicMassUpdateService
> and other servlet TargetServlet extends HttpServlet in TargetServlet in diff 
> module/package com.comp.server.servlets
> I am using GWT-RPC in my gwt module. I want to write one method
> getRecordList() in BasicServiceImpl which returns list of record on
> client side.(right now I am sending dummy data in record list)
> In other servlet i.e TargetServlet RecordList formed from database value.
> Use case:
> When we call getRecordList() method using rpc then I want to call
> SERVLET : TargetServlet to get recordlist, TargetServlet will return
> recordlist to getRecordList of Gwt_servlet and finally getRecordList()
> returns recordlist on client side
> 1: How to call other servlet(TargetServlet) from GWT_SERVLET i.e 
> BasicServiceImpl
> 2: How to send recordlist from TargetServlet to getRecordList() of 
> BasicServiceImpl(GWT SERVLET)
> Any help or guidance in this matter would be appreciated
>
> --
> Best Regards,
> Vaibhav
>
> --
> 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 
> athttp://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.



GWT : How to call SERVLET FROM GWT_SERVLET and How to return value from target servlet to source servlet?

2011-08-31 Thread vaibhav bhalke
I have 2 servlets.

One In GWT module i.e *BasicServiceImpl* extends RemoteServiceServlet
implements BasicMassUpdateService

and other servlet *TargetServlet* extends HttpServlet in TargetServlet in
diff module/package com.comp.server.servlets

I am using GWT-RPC in my gwt module. I want to write one method
getRecordList() in BasicServiceImpl which returns list of record on client
side.(right now I am sending dummy data in record list)

In other servlet i.e TargetServlet RecordList formed from database value.

Use case: When we call getRecordList() method using rpc then I want to call
SERVLET : TargetServlet to get recordlist, TargetServlet will return
recordlist to getRecordList of Gwt_servlet and finally getRecordList()
returns recordlist on client side

1: How to call other servlet(TargetServlet) from GWT_SERVLET i.e *
BasicServiceImpl*

2: How to send recordlist from TargetServlet to getRecordList() of
BasicServiceImpl(GWT SERVLET)

Any help or guidance in this matter would be appreciated


-- 
Best Regards,
Vaibhav

<http://about.me/vaibhavbhalke>

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



GWT-RPC Unable to access servlet in web application

2011-08-26 Thread vaibhav bhalke
Hi,

I integrated my gwt module in to existing web application and deployed on
jboss.

when I trying to hit gwt_servlet then I am getting error message on failure
method of asynccallback

i.e. *The requested resource
(/warFileName/GWTAPPS/myGwtModuleName/GWTServletName) is not available.*

*
*

My war contain is as follows

*GWTAPPS* :

*myGwtModuleName*(folder) : (folder contains -->)advanced,css,gwt,images
folder and some *.cache.png files myGwtModule.html, myGwtModule.css

*WEB-INF* -> *deploy* - *myGwtModuleName*

I copied compiled gwt_servlet file into
/warFileName/GWTAPPS/myGwtModuleName/ still getting same error i.e resource
not available.

Is it necessary to crate WEB-INF/classes(copied *.class file) folder into
myGwtModuleName ?. like warfilename\GWTAPPS\mygwtmodule\WEB-INF\classes

Also getting sometime exception in deployment
java.lang.NoClassDefFoundError: com/google/gwt/user/client/rpc/RemoteService

*gwt_servlet entry made in web.xml*

*This web.xml is not present in GWTmodule.*

*
*

< servlet> < servlet-name>GWTServletName< /servlet-name> <
servlet-class>ui.mygwtmodule.server.BasicUpdateServiceImpl < /servlet-class>
< /servlet> < servlet-mapping >

< servlet-name>GWTServletName< /servlet-name>
< url-pattern>/GWTServletName< /url-pattern>
< /servlet-mapping>

 also used url pattern like myGwtModuleName/GWTServletName

*RemoteServiceRelativePath added in BasicUpdateService*

@RemoteServiceRelativePath("GWTServletName")

public interface BasicUpdateService extends RemoteService

*Created a remote service proxy to talk to the server-side GWTMassUpdate
service.*

private final BasicUpdateServiceAsync basicUpdateService = GWT
.create(BasicUpdateService.class);

*Server call*

basicMassUpdateService.makeServreCall("vaibhav", new AsyncCallback() {

@Override
public void onSuccess(String result) {
  Window.alert("Result = "+result);
}

@Override
public void onFailure(Throwable caught) {
 Window.alert("On Failure  :"+caught);
//  No resource available :-|
        }
});

Any help or guidance in this matter would be appreciated


-- 
Best Regards,
Vaibhav Bhalke

<http://about.me/vaibhavbhalke>

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



GWT CELLTABLE :How to avoid RPC call in AsycDataProvider when I click on prev button.

2011-08-16 Thread vaibhav bhalke
Hi,

GWT CELLTABLE :How to avoid RPC call in AsycDataProvider when I click on
prev button.

I am using AsyncDataProvider to fetch data from server to celltable page.

 Each time when i click next button i am getting next 100 records from the
server. And it is displaying the data fine. No issues with next button.

When i click prev button, i am assuming that cellTable had stored the
previously displayed data, and just want to display that existing data.

How to handle this case without making RPC ?

ListDataProvider storing previously displayed data(previously added data in
dataProviderList )

Same way How we can handle in AsyncDataProvider ?


-- 
Best Regards,
Vaibhav Bhalke


<http://about.me/vaibhavbhalke>

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



GWT CELLTABLE : How to add empty row in celltable with different celltype

2011-08-11 Thread vaibhav bhalke
Hi,

How to add empty row in celltable with different celltype ?

4 columns present in my celltable i.e
DatePickerCell,EditTextCell,NumberCell,SelectionCell

I can able to set record values in cell with different celltype.

I want to add empty row with different cell type in celltable also want few
of them editable and rest are non-editable.

I want to do MassUpdate in Celltable.So I required 1st row as empty because
whenever I will change value in particular cell which editable then all
values in that column should be updated immediately

Suppose I edited value in edittextcell of 1st empty row then all values in
same column should be edited immediately.

Any help or guidance in this matter would be appreciated


-- 
Best Regards,
Vaibhav Bhalke


<http://about.me/vaibhavbhalke>

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



GWT : Best practice to send huge amount of data from server to client

2011-08-09 Thread vaibhav bhalke
Hi folks,

Which are the Best practices to send huge amount of data from  server to
client in GWT?

Right now we are facing performance issue in GWT code.

Our server side is sending huge xml (Size in MB/GB) to client side, our
client side parses that xml and using parsed data, beans are formed for
populating data in Celltable grid.
We are filling 1k + / 10k+ records in CellTable grid.

Is there any effective way/ Best practices followed while dealing with such
a huge data?
If we parse the data at server side and formed the beans at server side, Is
this good? or any alternative way..

Any help or guidance in this matter would be appreciated.


-- 
Best Regards,
Vaibhav Bhalke


<http://about.me/vaibhavbhalke>

-- 
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 CELLTABLE:How to get Updated DataProviderList after changes in any cell value ?

2011-08-09 Thread vaibhav gwt
Thanks for your reply.

I set fieldUpdaters for each of cell so any changed in cell reflected
to dataProviderList :)

**.getDataProvider().getList() returns updated List

On Aug 8, 10:52 am, Ashwin Desikan  wrote:
> you have to define fieldUpdaters for each of your cell. You can do this
> as part of initializing the CellTable. So as an when you update a cell,
> it would automatically update the corresponding record in the backinglist
>
> ~Ashwin
>
> On Monday 08 August 2011 11:18 AM, vaibhav bhalke wrote:
>
>
>
>
>
>
>
> >   Hi,
>
> > GWT CELLTABLE:How to get Updated DataProviderList after changes in any
> > cell value ?
>
> > Class RecordInfo{
> > boolean isCellUpdated;
> > String oldValue;
> > String newValue;
>
> > // getters and setters ...
>
> > }
>
> > /**
> >        * The provider that holds the list of RecordInfo .
> >        */
> >       private ListDataProvider dataProvider = new
> > ListDataProvider();
>
> > private void generateRecords( ) {
> >  List recordList = dataProvider.getList();
> >      recordList =  XmlDemo.parseXML(originalRecordList);
> >      }
>
> > After generation of recordList / DataProviderList. I am putting my  
> > recordList in celltable.
>
> > If I changes any value in cell then How to get my updated _RecordList
> > / DataProviderList_ .
> > I want updated RecordList / DataProviderList  because I want to
> > generate xml from updated List.
>
> > --
> > Best Regards,
> > Vaibhav Bhalke
> > About me :http://about.me/vaibhavbhalke
>
> > --
> > 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: GWT CELLTABLE How to restore old value in cell if validation fails

2011-08-09 Thread vaibhav gwt
Hi Loan,

Thanks for your solution. It works but  Performance is too bad.
i.e clearing incorrect values for the whole row (say 5) takes too much
time(clearViewData+ redraw table)

Reverting N records will take too much time :(

Is there any fast way to update old row/object in celltable ?




 // when setting up table columns add the edit cells to this list
 List editCells = new ArrayList();
 

 // clear incorrect values for the whole row
 for (EditTextCell editCell : editCells)
 {
  editCell.clearViewData(KEY_PROVIDER.getKey(object));

 }
cellTable.redraw();
On Aug 3, 5:44 pm, Ioan Agopian  wrote:
> No, I don't think that's possible.
>
> But you can store all your edit cells in a list and clear them all at
> once, like this:
>
> // when setting up table columns add the edit cells to this list
> List editCells = new ArrayList();
> 
>
> // clear incorrect values for the whole row
> for (EditTextCell editCell : editCells)
> {
>      editCell.clearViewData(KEY_PROVIDER.getKey(object));
>
> }
>
> cellTable.redraw();
>
> Regards,
> Ioan
>
> On Aug 3, 12:25 pm, vaibhav gwt  wrote:
>
>
>
>
>
>
>
> > Thanks Loan :)
> > Icanrestoreoldvalueinspecificcellifvalidationfails.
>
> > Is it possible that all column values from particular rowrestoretooldvalue?
> > || ID || Dept || Code || RNO || RCode
> > || .||ZCode ||
> > || 1  ||  CS   || 001  ||  3      ||  030
> > || .||Q1||
> > || 2 ||  DS   || 001  ||  5      ||   040
> > || .||S1 ||
>
> > Suppose In above editable grid I changed 1st record i.e
> > || 1  ||  CS   || 001  ||  3      ||  030
> > || .||Q1||
> > changed to
> > || 1  ||  BP   || 010  ||  3      ||  003
> > ||.||Q1||
>
> > Is there any way torestoreoldobject(row) values instead to clearingcellview 
> > data for each column and redraw editable grid.
>
> > In Short revert record tooldvaluewhich is selected by our checkbox
> > (All or selected chkbox only i.e selectionModel.isSelected(object) )
>
> > My Grid contain (2-N) column so I am asking this question ?
>
> > On Aug 2, 5:42 pm, Ioan Agopian  wrote:
>
> > > Hi Vaibhav,
>
> > > Youcando it like this:
> > > // clear incorrect data
> > >cell.clearViewData(KEY_PROVIDER.getKey(object));
> > > cellTable.redraw();
>
> > > Wherecellis the TextEditCell that you're using for that column.
>
> > > Regards,
> > > Ioan
>
> > > On Aug 2, 12:59 pm, vaibhav bhalke  wrote:
>
> > > > Hi all,
>
> > > > PFA WebEx recording for Issue.
>
> > > > I want to used editableNumbercell like intger,decimal etc.. But there 
> > > > is no
> > > > such gwt widget present so I am using editable textcelland using
> > > >validationfor numbers when user updatevalueincell.
>
> > > > How to avoidcellediting whenvalidationfails.
>
> > > >ifvalidationfail then editable-textcellvaluerestored tooldvalue.How
> > > > to do that?
>
> > > > intgerColumn.setFieldUpdater(new FieldUpdater() {
> > > >         public void update(int index, RecordInfo object, Stringvalue) {
> > > >             // Called when the user changes thevalue.
> > > >            if(value.matches("(-)?(\\d){1,8}")){
> > > >                 object.setColumnInRecordEdited(true);
> > > >                 object.setValue(value);
> > > >                 RecordData.get().refreshDisplays();
> > > >             }else{
> > > >                 Window.alert("Specify valid integervaluefor parameter");
> > > >                 // How to restoldvaluehere? currently updatevalue
> > > > set tocell
>
> > > >             }
>
> > > >         }
> > > >     });
>
> > > > Any help or guidance in this matter would be appreciated.
>
> > > > --
> > > > Best Regards,
> > > > Vaibhav Bhalke
> > > > About me :http://about.me/vaibhavbhalke
>
> > > > <http://about.me/vaibhavbhalke>
>
> > > >  Issue1-How torestoreoldvalueincell(ifvalidationfails).wrf
> > > > 203KViewDownload

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



GWT CELLTABLE :How to handle event on checkbox header like gmail Inbox?.

2011-08-07 Thread vaibhav bhalke
Hi,

How to  handling event on checkbox header ? i.e After selection of
headerCheckBox only records present in page should be selected. like Gmail
we select headerCheckBox to do certain action.

Column checkColumn = new Column(
new CheckboxCell(true, false)) {
@Override
public Boolean getValue(RecordInfo object) {
// Get the value from the selection model.
return selectionModel.isSelected(object);
}
};
final CheckboxCell checkbox = new CheckboxCell(true, false);
final Header hdr = new Header(checkbox ) {
@Override
public Boolean getValue() {

return false;// return true to see a checked checkbox.
// How to get hdr checkbox values i.e checked and unchecked here
?
}
};

cellTable.addColumn(checkColumn, hdr);



// Added a selection model
final SelectionModel selectionModel = new
MultiSelectionModel(
RecordData.RecordInfo.KEY_PROVIDER);
cellTable.setSelectionModel(selectionModel,
DefaultSelectionEventManager
. createCheckboxManager());



-- 
Best Regards,
Vaibhav Bhalke
About me : http://about.me/vaibhavbhalke

<http://about.me/vaibhavbhalke>

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



GWT CELLTABLE:How to get Updated DataProviderList after changes in any cell value ?

2011-08-07 Thread vaibhav bhalke
  Hi,

GWT CELLTABLE:How to get Updated DataProviderList after changes in any cell
value ?


Class RecordInfo{
boolean isCellUpdated;
String oldValue;
String newValue;

// getters and setters ...

}

/**
   * The provider that holds the list of RecordInfo .
   */
  private ListDataProvider dataProvider = new
ListDataProvider();

private void generateRecords( ) {
 List recordList = dataProvider.getList();
 recordList =  XmlDemo.parseXML(originalRecordList);
 }

After generation of recordList / DataProviderList. I am putting my
recordList in celltable.

If I changes any value in cell then How to get my updated *RecordList /
DataProviderList* .
I want updated RecordList / DataProviderList  because I want to generate xml
from updated List.

-- 
Best Regards,
Vaibhav Bhalke
About me : http://about.me/vaibhavbhalke

<http://about.me/vaibhavbhalke>

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



GWT CELLTABLE SimplePager : Event handling on first,last,next,prev button present in SimplePager?

2011-08-05 Thread vaibhav bhalke
Hi,

How to handle event on SimplePager? Event handling on first,last,next,prev
button present in SimplePager? I am using CellTable gwt 2.3.0

Right now I am parsing xml in which 100 records are present. xml coming from
server.

@ time I am showing 100 reocrd per table_page i.e pageSize(100);

Whenever I will click next button then I will made server request for
getting next 1OO records same way for every button..

How to Handle event on buttons present on  SimplePager ?

Any help or guidance in this matter would be appreciated


-- 
Best Regards,
Vaibhav Bhalke

<http://about.me/vaibhavbhalke>

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



GWT CELLTABLE : How to handle event on pager button

2011-08-04 Thread vaibhav bhalke
Hi

How to handle event on pager button. first,last,next,prev page ?

Right now I want to handle event on last page i.e when user click last page
button then next 100 record need to added in data provider (update/refresh )

-- 
Best Regards,
Vaibhav Bhalke


<http://about.me/vaibhavbhalke>

-- 
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 CELLTABLE Editable value not persisted when user clicked cell twice or thrice

2011-08-03 Thread vaibhav gwt

How to update the value stored in your dataprovider to the new
value. ?

On Aug 2, 5:27 pm, Ioan Agopian  wrote:
> Hi,
>
> You have to update the value stored in your dataprovider to the new
> value.
> If not, when user clicks repeatedly the cell, it will revert to the
> old value.
>
> Regards,
> Ioan
>
> On Aug 2, 1:01 pm, vaibhav bhalke  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > Editable value not persisted when user clicked cell twice or thrice. Is it
> > celltable issue ?
>
> > --
> > Best Regards,
> > Vaibhav Bhalke
> > About me :http://about.me/vaibhavbhalke
>
> > <http://about.me/vaibhavbhalke>
>
> >  Issue-2 Editable value not persisted when user clicked cell twice or 
> > thrice.wrf
> > 82KViewDownload

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



GWT CELLTABLE : How to add empty row in celltable with different celltype

2011-08-03 Thread vaibhav bhalke
Hi

How to add empty row in celltable with different celltype ?

3 columns present in my celltable i.e
DatePickerCell,EditTextCell,NumberCell,SelectionCell

I can able to set record values in cell with different celltype.

I want to add empty row with different cell type in celltable also want few
of them editable and rest are non-editable.

I want 1st row as empty because whenever I will change value in particular
cell which editable then all values in that column should be updated
immediately

Suppose I edited value in edittextcell of 1st empty row then all values in
same column should be edited immediately.

Any help or guidance in this matter would be appreciated


-- 
Best Regards,
Vaibhav Bhalke


<http://about.me/vaibhavbhalke>

-- 
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 CELLTABLE How to restore old value in cell if validation fails

2011-08-03 Thread vaibhav gwt
Thanks Loan :)
I can restore old value in specific cell if validation fails.

Is it possible that all column values from particular row restore to
old value ?
|| ID || Dept || Code || RNO || RCode
|| .||ZCode ||
|| 1  ||  CS   || 001  ||  3  ||  030
|| .||Q1||
|| 2 ||  DS   || 001  ||  5  ||   040
|| .||S1 ||

Suppose In above editable grid I changed 1st record i.e
|| 1  ||  CS   || 001  ||  3  ||  030
|| .||Q1||
changed to
|| 1  ||  BP   || 010  ||  3  ||  003
||.||Q1||

Is there any way to restore old object(row) values instead to clearing
cell view data for each column and redraw editable grid.

In Short revert record to old value which is selected by our checkbox
(All or selected chkbox only i.e selectionModel.isSelected(object) )

My Grid contain (2-N) column so I am asking this question ?

On Aug 2, 5:42 pm, Ioan Agopian  wrote:
> Hi Vaibhav,
>
> You can do it like this:
> // clear incorrect data
> cell.clearViewData(KEY_PROVIDER.getKey(object));
> cellTable.redraw();
>
> Where cell is the TextEditCell that you're using for that column.
>
> Regards,
> Ioan
>
> On Aug 2, 12:59 pm, vaibhav bhalke  wrote:
>
>
>
>
>
>
>
> > Hi all,
>
> > PFA WebEx recording for Issue.
>
> > I want to used editableNumbercell like intger,decimal etc.. But there is no
> > such gwt widget present so I am using editable text cell and using
> > validation for numbers when user update value in cell.
>
> > How to avoid cell editing when validation fails.
>
> > if validation fail then editable-text cell value restored to old value.How
> > to do that?
>
> > intgerColumn.setFieldUpdater(new FieldUpdater() {
> >         public void update(int index, RecordInfo object, String value) {
> >             // Called when the user changes the value.
> >             if(value.matches("(-)?(\\d){1,8}")){
> >                 object.setColumnInRecordEdited(true);
> >                 object.setValue(value);
> >                 RecordData.get().refreshDisplays();
> >             }else{
> >                 Window.alert("Specify valid integer value for parameter");
> >                 // How to rest old value here? currently update value
> > set to cell
>
> >             }
>
> >         }
> >     });
>
> > Any help or guidance in this matter would be appreciated.
>
> > --
> > Best Regards,
> > Vaibhav Bhalke
> > About me :http://about.me/vaibhavbhalke
>
> > <http://about.me/vaibhavbhalke>
>
> >  Issue1-How to restore old value in cell (if validation fails).wrf
> > 203KViewDownload

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



GWT CELLTABLE How to restore old value in EditableTextCell?

2011-08-01 Thread vaibhav bhalke
Hi,

I want to used editableNumbercell like intger,decimal etc.. But there
is no such gwt widget present so I am using editable text cell and
using validation for numbers when user update value in cell.

Problem is that if validation fail then editabletext cell value
restored to old value.

intgerColumn.setFieldUpdater(new FieldUpdater() {
public void update(int index, RecordInfo object, String value) {
// Called when the user changes the value.
if(value.matches("(-)?(\\d){1,8}")){
object.setColumnInRecordEdited(true);
object.setValue(value);
RecordData.get().refreshDisplays();
}else{
Window.alert("Specify valid integer value for parameter");
// How to reset old value here? currently updated
value immediately set to cell

}

}
});

Any help or guidance in this matter would be appreciated.

-- 
Best Regards,
Vaibhav

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



Script (nocache.js) not loads GWT compiled module in IE8

2011-06-08 Thread vaibhav bhalke
Hello all,

Script (nocache.js) loads into Mozila FF but not loads into IE8. I cleared
cache for IE8 still no loading of script. Any solution ?

gwt.nocache.js is generated in gwt folder gwt/gwt.nocache.js

src path is correctly added.
Browser shows just GWT heading in html page. and message on toolbar
waiting for javascript:".. then Done

Whats wrong ?


My gwt.html page is as follows:






  
  

   GWT

  

GWT getting started giving Missing required argument 'module[s]'

2011-05-24 Thread vaibhav mishra
I installed  google plugin for eclipse from eclipse 3.6 marketplace, and 
following this tutorial 
http://code.google.com/webtoolkit/doc/latest/tutorial/create.html, when I 
click on Run as web application I am getting this 
Missing required argument 'module[s]'


-- 
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 Sprite adds height attribute in the style class

2010-05-17 Thread Vaibhav
Thanks much Tobias and all,

height:auto; worked.

Vaibhav.

On May 17, 4:40 am, Tobias Herrmann  wrote:
> Hi there,
>
> I have to disagree with Thomas. You only need to be aware that the
> @sprite will set these dimensions. You can override this by setting the
> height or width yourself in the CSS rule where the @sprite is used.
>
> Like this:
> @sprite div.imageClass{
>     gwt-image: yourImage;
>     height: auto;
>     width: 10px;
>
> }
>
> In this case, no other height and width properties will be set by gwt.
>
> Doing it this way, you can still take advantage of the improved
> performance the gwt sprite mechanism provides.
>
> Greetings, Tobias
>
> Zak schrieb:
>
>
>
> > Thanks, that clears things up for me (and I hope Vaibhav as well). I
> > havent made the UiBinder/ClientBundle jump yet, but in reading the
> > documentation I thought that might be an issue. Good to know
> > DataResource can fill that need.
>
> > On May 16, 5:31 pm, Thomas Broyer  wrote:
>
> >> On 16 mai, 21:42, Zak  wrote:
>
> >>> Thomas, does this mean that @sprite should only be used when it's okay
> >>> for the element to be constrained to the same dimensions (or just
> >>> height or width in the case of repeated backgrounds) as the image? For
>
> >> Yes, just as if you used an Image (withou setUrl or an ImageBundle)
>
> >>> example, if we went with Stefan's proposal of overriding the height
> >>> rule (let's say height: auto), would the other images in the image
> >>> strip become visible?
>
> >> They could (in IE6/7, and/or depending on ClientBundle configuration/
> >> deferred-binding properties)
>
> >> --
> >> 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 
> >> athttp://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 
> athttp://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 Sprite adds height attribute in the style class

2010-05-14 Thread Vaibhav
Hi,

  I have implemented ClientBundle in my application and so far it
is working fine until I came across this issue. I have a css class
which has a background image so I defined it as a sprite in my css. I
am using this css class on Button and it looks okay. But I lost
vertical text alignment inside Button. I did little research and I
found height attribute is added by GWT compiler for the height of the
image and that has disturbed vertical alignment of the text inside
button. When I removed height in firebug it looks all right. Is there
any way to workaround this issue?

Please note this happens in Firefox only. IE7 is fine. Help is
appriciated.

I defined my css class as below

@sprite .MarkitButton {
gwt-image : "MarkitButtonBG_sm";
color: white;
font-family: Arial, sans-serif;
font-size: 11px;
font-weight: bold;
cursor: pointer !important;
cursor: hand !important;
margin: 1px;
padding: 0px 4px;
text-decoration: none;
border: 0px;
overflow: visible;
};

and after compilation it becomes like below.

.G1wmgmpeN {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent url(data:image/
png;base64,iVBORw0KGgoNSUhEUgERCAYcw8YSJklEQVR42mMIqlz6n8Epc85/
BsXYnv8MAqFkEi1AwrcaSHgW/wcAqEchmT6lbh0ASUVORK5CYII=) repeat-x
scroll 0 0;
border:0 none;
color:white;
cursor:pointer !important;
font-family:Arial,sans-serif;
font-size:11px;
font-weight:bold;
height:17px;
margin:1px;
overflow:hidden;
padding:0 4px;
text-decoration:none;
}

Thanks in Advance

-- 
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 can I override gwt standard stylesheet with ClientBundle

2010-04-21 Thread Vaibhav
If I want to change DatePicker object look and feel with ClientBundle
how can I do this? How can I override gwt standard stylesheet of other
gwt objects using ClientBundle?

-- 
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 override pseudo gwt standars styles using ClientBundle

2010-04-21 Thread Vaibhav
Were you able to figure out workaround for this issue?

On Feb 24, 5:47 am, shahid  wrote:
> Is there a way to override gwt standard styles for build-in widgets.
> For example if I wanted to override .gwt-ToggleButton-down-hovering
> and .gwt-ToggleButton-down styles, how do I do it using theClientBundle?

-- 
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: MouseOverHandler not called for text of Checkbox

2009-11-19 Thread vaibhav saxena
Hi,
Why do you not create a composite which will act as the wrapper for the
check box and add the mouse handler to the composite. This will solve your
problem and you can use that composite anywhere where you need check box in
your app.

On Fri, Nov 20, 2009 at 6:31 AM, dave  wrote:

> First and only time I'll bump this, but I've yet to find a solution.
>
> Adding a MouseOverHandler to the GWT CheckBox widget only fires when
> mousing over the checkbox itself from the top, left, or bottom.  It
> does not fire when mousing over the text label or  when moving from
> the text over the actual checkbox.
>
> How can I add a MouseOverHandler that will fire when over the label of
> a CheckBox?
>
>
> On Nov 5, 9:34 am, dave  wrote:
> > I've got a GWTCheckbox(created with text label) to which I add a
> > MouseOverHandler and MouseOutHandler with the goal of doing some
> > action on hover (and closing when leaving).
> >
> > The problem is that the OverHandler is only called when hovering over
> > the actualcheckboxsquare from the top, left, or right.  It does not
> > fire when hovering over the text (or entering the actualcheckboxfrom
> > the left, when already over the text label).
> >
> > The MouseOutHandler handles the text label correctly, as it is not
> > called when moving the mouse from over the textbox to over the text.
> > It is only fired (correctly) when leaving the text.
> >
> > What am I missing?  There's nothing fancy to my example: just aCheckboxin
> a FlowPanel that adds the mouse handlers.
> >
> > Thanks for any tips!
> > dave
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-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=.
>
>
>

--

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




How to sing events on the mark up element

2009-04-08 Thread vaibhav
Hi,
I want to access the text box written in HTML from GWT on the basis of
element ID. I am able to get this elemt in GWT and also show that. Even I am
able to change the text of the text box but I am not able to add the events
to the element. How to add the event. I have written some bit of code but
not able to sink the event.

I have extended the text box to add the element

-

Public class MarkupTextBox extends TextBox{

 Public MarkupTextBox(String markupTextboxID) {
  
  This(DOM.getElementById(markupTextboxID));
 }

 Protected MarkupTextBox(Element element) {
  
  Super(element);
 }
}
-


And then adding listener to it

-
--
Final MarkupTextBox box = new MarkupTextBox("poctext");
Box.setText("Hi how are you");
Box.addClickListener(new ClickListener(){
Public void onClick(Widget sender) {
}});
Box.addChangeListener(new ChangeListener(){
Public void onChange(Widget sender) {
Box.setText("Hi how are you");
}});
-

May be I making some mistake. Please suggest me without the suggestion of
using the 
Third party lib like GWTTiger.

Warm Regards,
Vaibhav Saxena
--~--~-~--~~~---~--~~
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: Open a local file with GWT

2009-04-07 Thread vaibhav
Hi,
I am facing some king of this problem too. What I want to show the preview
of a image which is reside in the local file system of the remote server.
The path of this image is residing in the database like c:\images\sunset.png
 How I will show the preview on the GWT panel. If the PipedReader can help
in this this will be great as I do not know about piped reader.

Regards,
Vaibhav 
 
---Original Message---
 
From: ffs1985
Date: 04/08/09 10:09:44
To: Google Web Toolkit
Subject: Re: Open a local file with GWT
 
I don't know what is a PipedReader if you could send me more
information i will appreciate very much
Thanks,
Federico
 
On Apr 7, 11:21 am, "@vi"  wrote:
> Did you try using a PipedReader?
>
> On Apr 7, 4:04 pm,ffs1985 wrote:
>
> > Hi I'm trying to make a function that let the user download a file
> > from my application and see it. I could copy the file from server to a
> > local root but when I've tried to open it, does it work on hosted mode
> > but in web mode fails always, no matter what browser I try(IE 7,
> > Firefox and Chrome).
> > My code is the next one:
>
> > private void openDocument(String documentName) {
> > final ManagerExportAsync manejador = ManagerExport.Util
getInstance
> > ();
> > AsyncCallback callback = new AsyncCallback(){
> > String link;
> > public void onSuccess(final Object result) {
> >   link = (String)result;
> >   Window.open(pdfLink,"_blank","");
> > }
> > public void onFailure(Throwable caught){}
> > };
>
> > manejador.openDocument("User",userId, documentName
callback);
> > }
>
> > The String link result is something like this "file///:C:/test.jpg"
> > I don't know what it's wrong. I read somewhere that the problem could
> > be that I'm calling the Window.open inside the callback but I really
> > don't know what is wrong coul someone give me a hand?
>
> > Any suggestions?
> > Thanks!
> > Federico.
 
--~--~-~--~~~---~--~~
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: hi

2009-02-22 Thread vaibhav
 
Hi,
I think there is one more option for that as provided by GWT itself

Window.Location.getParameter("ProjID");
Hope this should work in you case. Window is the class provided by the GWT.
Location is the internal class of the Window which provides the methods to
play with the current window location.

Try this and also do answer me the in case of the success as I have not
tried this as well but logically it should work

---Original Message---
 
From: Vishesh
Date: 02/23/09 06:38:29
To: Google-Web-Toolkit@googlegroups.com
Subject: Re: hi
 
You will have to assign the values to a var variable and then retrive
it from the gwt function using the native jsni within a function.
for instance using query in the html page declare and assign the value
to a variable:
For html page: http://localhost:/./myApp.html?ProjID=12345
 
var projectID = query['ProjID'];
 
And retrieve it in the gwt code by a function:
 
native String getProjectID() /*-{
if($wnd.projectID) {
  return $wnd.projectID;
}
}-*/
 
 
Hope this helps
Vishesh.
 
On Fri, Feb 20, 2009 at 11:25 AM, andres  wrote:
>
> how to pass jsp values to gwt
> >
>
 
 
 
--
Vishesh Sahu
 
 
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---

<><>

compile external project source file

2008-11-23 Thread vaibhav
 

Hi,

How can I add another project source file into my GWT project. Actually I
have divided our project into two project which is server project and GWT
project. For the RPC we are making same DTO on both side. Now to prevent us
from code duplicacy I want to add dto to another project and share between
two. My gwt is not able to compile those DTO as this is outside of client
package.

 

I also tried  tag in gwt.xml file but how to add external
project module path in that I don't know. Please help me in achiving this.

 

 

Thanks

WARM Regards,

Vaibhav Saxena

Srishti TechNet Pvt. Ltd.

B1/168, Paschim Vihar,

New Delhi - 110063

--- 
( Tel: +91 9953058839

Skype: vaibhav_saxena1407

Any comments or statements made in this email are not necessarily those of
Srishti TechNet Pvt. Ltd. The information transmitted is intended only for
the person or entity to which it is addressed and may contain confidential
and/or privileged material. If you have received this in error, please
contact the sender and delete the material from any computer. All e-mails
sent from or to Srishti TechNet Pvt. Ltd. may be subject to our monitoring
procedures


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



gif problem in FF

2008-11-04 Thread vaibhav

Hi all,
I am using a loading gif image in may web application. My application is in
pure gwt. I am adding image to a label using css. It is working fine in IE
but not appearing in FF. Please help me out. Underlying code is..

Css

.gwt-loading{
background-image: url(../images/loading.gif);
background-repeat:no-repeat;
}

GWT Code

Label loading = new Label();
loading.setStyleName("gwt-loading");
loading.setSize(110, 110);

panel.add(loading);

Thanks in advance

Regards 
Vaibhav


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Resolution problem

2008-10-31 Thread vaibhav
Hi Group,

I am working on a huge calendaring application. My web client is on GWT. I
am facing the problems of resolution. My GUI is not resolution independent
and I know that it is a common problem all around. Can any body help me out
with some strategy which should be adopt or some kind of frameworks or api
which can help me to make my GUI resolution independent.

 

Thanks in advance

 

Regards

Vaibhav Saxena


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: rpc with external servlet

2008-10-24 Thread vaibhav saxena
Hi Jason Essington

You are right that rpc will connect to server from which the host page is
generating but in my project approach is little bit different. Let me
understand you whole context.

My project was in dojo toolkit some months before. My whole team was working
on that in which we have the server side codes and in web content the js
files of dojo toolkit. Now my whole team decided to shift to GWT for some
incompatability issues in dojo. We are working on the rest architecture to
be compatable for other applications who understand the atom.

In GWT we tried with json and atom data and began to use the GWT-EXT as our
widgets library. We did the whole setup for the gwt client and as the data
was coming on the basis of rest architecture we didnt include the server in
it. Rather the server was in some workspace and GWT client was in some
workspace.

We used to test our gwt code using the external server code by just placing
the compiled files over there. The host page generating from the same server
and the the compiled js files is also on the same server but our client
developement workspace is different.

Now we need the rpc for some user preference. We need to use the same server
code may be with some changes on the servlet for rpc. Still the host page
will be generate from the same server side and the compiled js will be
placed over there too. The servlet will be in web inf directory.

i am confused in the client server directory structure of gwt. May be it is
enought to understand my problem. please help me out.

Thanks

Regards
Vaibhav Saxena


On Fri, Oct 24, 2008 at 11:54 PM, Jason Essington <[EMAIL PROTECTED]
> wrote:

>
> RPC uses XHR internally and as such is bound by the browsers Same
> Origin Policy. Simply ... No, RPC will not connect to a server that is
> different than the one the host page was loaded from.
>
> -jason
>
>
> On Oct 24, 2008, at 3:34 AM, vaibhav saxena wrote:
>
> > HI groups,
> > i am doing the pocs over rpc and succeded to run the rpc. But i want
> > more than that. I want to run rpc with my existing servlet that i
> > have configured in another servlet container. Is there any way to
> > run rpc with another servlet .
> >
> > regards
> > Vaibhav saxena
> >
> > >
>
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



rpc with external servlet

2008-10-24 Thread vaibhav saxena
HI groups,
i am doing the pocs over rpc and succeded to run the rpc. But i want more
than that. I want to run rpc with my existing servlet that i have configured
in another servlet container. Is there any way to run rpc with another
servlet .

regards
Vaibhav saxena

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---