Clearing handlers added to elements created using wrap method

2010-08-31 Thread myapplicationquestions
Hi All,

I have an existing html and i am adding a simple GWT script to that
page which will show an alert when an existing link is clicked. I do
this by the following code

public class ABCMobile implements EntryPoint,ClickHandler
{

   public void onModuleLoad()
   {


  Anchor lo = Anchor.wrap(DOM.getElementById(AMSBrowse));
  lo.addClickHandler(this);



   }


   public void onClick(ClickEvent event)
   {
  // TODO Auto-generated method stub
  Window.alert(yeah yeah yeah2);

   }

}


Now the question is..

1) How do i make sure the handler is removed when the page unloads? I
could not find anyway to do that.

Let me know if anyone has any suggestions.

Thanks,
Parag

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



Calling methods from GWT script in existing HTML

2010-08-30 Thread myapplicationquestions
Hi All,

I have a huge HTML (existing project) and i am trying to incorporte
some GWT components. I have created a simple method called
navigateToPage which is written as

static native String navigateToPage() /*-{

   // ...implemented with JavaScript
   $wnd.alert(yeah yeah yeah);

 }-*/;

from existing html i am trying to call this as

tda href=javascript:navigateToPage();OK TEST IT/a/td

This gives me an error saying navigateToPage() is undefined. I assume
this is because of GWT script being compiled. Is there anyway to get
around this? I cannot modify the page to be wholly GWT.

Please let me know if anyone has faced this issue.

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



BlackBerry6 and GWT

2010-08-26 Thread myapplicationquestions
Hi All,

BlackBerry6 uses webkit so GWT webapp should work as it is but i
wanted to know if anyone has tried developing a web application
focused primarily for blackberry6?

Thanks,
Parag

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



Perfect caching not working in httpd.conf

2010-08-19 Thread myapplicationquestions
Hi All,

I am trying to do what GWT suggest in Perfect Caching section of
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html

I am trying to add the following in my httpd.conf

LoadModule expires_module modules/mod_expires.so

Files *.nocache.*
  ExpiresDefault access
/Files

This does not work... The following works but it caches all the
javascript files.

LoadModule expires_module modules/mod_expires.so
ExpiresActive On
ExpiresByType application/x-javascript access plus 104 weeks

As suggested by GWT i do not want to cache the nocache.js file. Please
let me know what i am doing wrong.

Thanks,
Parag

-- 
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: Perfect caching not working in httpd.conf

2010-08-19 Thread myapplicationquestions
Hi Thomas,

Thanks for the quick reply. The way i am testing is looking at the
HTTP status code. I would expect a status code of 200 once i have made
some changes and recompiled the project but i am always getting 304
( i am seeing the old screen). Am i doing something wrong?

Thanks
Parag

On Aug 19, 12:47 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 19 août, 15:50, myapplicationquestions parag.bhag...@cgi.com
 wrote:

  Hi All,

  I am trying to do what GWT suggest in Perfect Caching section 
  ofhttp://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebu...

  I am trying to add the following in my httpd.conf

  LoadModule expires_module modules/mod_expires.so

  Files *.nocache.*
    ExpiresDefault access
  /Files

  This does not work...

 How did you test?
 We've seen people on the group complaining about this conf not working
 but they were expecting a never cache behavior (i.e. will always
 download the file with its content) whereas it's even better, by
 negotiating with the server whether the file on the browser's cache is
 latest one (server will answer 304 with no content) or not (server
 will send the file with 200 status code).

-- 
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 useful for HTML Parsing? Is it fast enough

2010-04-18 Thread myapplicationquestions
Hi All,

I have a requirement where i get a huge html report from a third party
application (@50,000 records), i need to put a filter on it so i show
only some records matching a certain criteria.

I am thinking of using GWT for this, where i will go through DOM and
parse each row, if a particular record does not match my criteria i
delete the TR using GWT.

Is this the correct approach? Is GWT fast enough for this?

Thanks,
Parag

-- 
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 get OnMouseOver Event on DIV Element

2010-04-12 Thread myapplicationquestions
I also have the same issue where the mouseover is not getting
reisgtered in a div added via an HTML widget. I am trying to listen to
mouseover using the native preview handler.

FYI: This works in GWT 1.7.1 but once i upgrade to GWT 2.0 it stops
working.. anyone has seen this happening?

On Apr 11, 11:34 pm, Subhrajyoti Moitra subhrajyo...@gmail.com
wrote:
 extends MouseOutHandler and MouseOverHandler in your widget.
 implement the necessary methods.

 Subhro.



 On Mon, Apr 12, 2010 at 8:53 AM, Chad cha...@sbcglobal.net wrote:
  I have a custom widget that extends SimplePanel. This widget consists
  of a few extra DIV tags and for one I would like to receive the
  onmouseover and onmouseout events. What is the proper method for
  getting these events for a specific DOM element within a custom
  Widget?

  Thanks,
  -- Chad

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

 - Show quoted text -

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



__listener tags getting added in IE8 using GWT 2.0

2010-04-12 Thread myapplicationquestions
Hi All,

I am having a very hard time understanding why each of my div when
viewed in IE8 ( using its crappy developer tools) show me __listener
tag which is incomplete..

div class=portlet-column style=height: 100%; __listener=
DIV style=HEIGHT: 100% class=portlet-columnDIV class=mss-
DockableWidget
DIV class=mss-PortletContainer __eventBits=1


Has anyone faced this issue with IE8 and GWT 2.0?

Thanks,

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



Debugging gwt scripts deployed on Websphere and IBMHttpserver

2010-03-07 Thread myapplicationquestions
Hi All,

Is it possible to debug GWT scripts deployed onto websphere?

Thanks,

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



Re: onbrowseevent and sinkevent relation

2010-01-13 Thread myapplicationquestions
Thanks

On Jan 13, 1:46 am, Fazeel Kazi fazzze...@gmail.com wrote:
 calling sinkevent() means telling gwt that you would like to watch
 that event. So whenever the event occurs, control will be passed on to
 onBrowserEvent().

 It's like sinkevent() is meant to register for events that you care.
 And when that happens, you can cathc that event in onBrowserEvent()

 Read more here:http://markmail.org/message/5t3swkltgadexbwj

 On 1/13/10, myapplicationquestions parag.bhag...@cgi.com wrote:



  HI All,

  I have a tempwidget which extends gwt widget class. I have some
  buttons on them button1,button2. There are 3 ways to listen to
  actions done on the button

  1) add clickhandlers for each button

  2) capture it on onbrowserevent

  3) capture it in NativePreviewHandler implementation somewhere.

  I am able to get it to work with option 1 and 3 but for option 2
  nothing seems to come in onbrowseevent

  public void onBrowserEvent(Event foEvent)
  {
     int liEventType = DOM.eventGetType(foEvent);

     Element loElement = Element.as(foEvent.getEventTarget());
       switch(liEventType)
     {
        case Event.ONCLICK :
        {
    ...

  unless i do a sinkEvents

  this.sinkEvents(Event.ONCLICK);

  i am struggling to understand why we always need to do a sinkEvent in
  order to capture the event in onbrowserevent?

  Thanks- Hide quoted text -

 - Show quoted text -
-- 
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.




Custom widgets and extended properties

2010-01-13 Thread myapplicationquestions
Hi All,

I am trying to develop a custom widget, the behaviour of which can be
controlled by external properties. For example this is what i want to
do

1) create a new project

2) develop a simple widget which has 2 buttons YES and NO. the custom
widgets have flags that say displayyes displayno by default both of
them atre set to true.

3) i compile this project into a jar file.

4) Include this project in a different project by calling inherit
tag.

Now the questions is in the new project (step4) i want to be able to
say

set-property dispalayyes =false


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




onbrowseevent and sinkevent relation

2010-01-12 Thread myapplicationquestions
HI All,

I have a tempwidget which extends gwt widget class. I have some
buttons on them button1,button2. There are 3 ways to listen to
actions done on the button

1) add clickhandlers for each button

2) capture it on onbrowserevent

3) capture it in NativePreviewHandler implementation somewhere.

I am able to get it to work with option 1 and 3 but for option 2
nothing seems to come in onbrowseevent

public void onBrowserEvent(Event foEvent)
{
   int liEventType = DOM.eventGetType(foEvent);

   Element loElement = Element.as(foEvent.getEventTarget());
 switch(liEventType)
   {
  case Event.ONCLICK :
  {
  ...

unless i do a sinkEvents

this.sinkEvents(Event.ONCLICK);

i am struggling to understand why we always need to do a sinkEvent in
order to capture the event in onbrowserevent?

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




Making ScrollTable scrollable using keyboard (up/down arrows)

2009-11-14 Thread myapplicationquestions
Hi All,

How can we make gwt incubators scrollTable scrollable using keyboards?
I want the user to be able to use up down keys to scroll the rows.
Is that possible?

Thanks,
Parag

--

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




gwt-validation is this project being maintained?

2009-10-17 Thread myapplicationquestions

Hi All,

I have a requirement where i need to do input validation for a lot of
form fields through out the application, i was thinking of using

http://code.google.com/p/gwt-validation/

as it seems to be the best of what we have avaliable, is this a good
library? i did not see a future road map for this? I want to be sure
that this will be upgraded as GWT keeps on releasing new versions. Is
there a way to get that confirmation?

Thanks,

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



Anchor.wrap question

2009-09-21 Thread myapplicationquestions

Hi All,

This is my requirement  i have a grid with where i need to

1) show an approve anchor tag foir each row
2) clicking on which will open up a dialog box.

The way i am doing it is instead of using a Anchor widget i am doing
an inline html

dataTable.setHTML(liRows, liColumnIndex, a href='javascript:{}'
class='gwt-Anchor' id='approve_+liRows+'  gridtype
=+APPROVE_WORKLIST+ dataindex=+liRows+Approve1/A);

I have added a listener to this

Event.addNativePreviewHandler(new newHandler(this))

within this handler i will


  Element loAnchor = DOM.getElementById(approve_+fiDataIndex);
Anchor loAnchorWidget =Anchor.wrap(loAnchor);

The Anchor.wrap files with the following message  A widget that has
an an existing parent widget may not be added to the detach list.

which is coming from RootElements detachOnWindowClose method. The
question is

1) Am i doing anything wrtong here? I should be able to create a
widget by using Wrap method correct?


If i change this code and instead of setHtml do this

Anchor loAnchor =new Anchor(Approve);
loAnchor.setHref(javascript:{});


loAnchor.getElement().setAttribute(id,approve_+liRows);
loAnchor.getElement().setAttribute
(gridtype,+APPROVE_WORKLIST);

loAnchor.getElement().setAttribute(dataindex,+liRows);
dataTable.setWidget(liRows, 
liColumnIndex, loAnchor);

It works fine, meaning the .wrap does not give me any issues.

Please let me know if anyone has faced a similar issue
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



IGOOGLE Like actions using GWT?

2009-09-13 Thread myapplicationquestions

Hi All,

How can i

1) Maximize a portlet
2)Minimize a portlet?

All my portlets extend composite and i am passing a horizontal panel
in init method so all child widgets are added to the horizintal
panel.

i am trying to get the same behaviour as igoogle an am not sure which
method to use...


--~--~-~--~~~---~--~~
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: Chrome like tab behaviour possible using GWT?

2009-09-13 Thread myapplicationquestions

I am trying to get the cascading tabs with the overlay you can see...

On Sep 9, 12:52 am, Isaac Truett itru...@gmail.com wrote:
 Perhaps you could describe what features of the tabs in Chrome you
 wish to reproduce.

 On Tue, Sep 8, 2009 at 3:19 PM,



 myapplicationquestionsparag.bhag...@cgi.com wrote:

  yes. but i could not get the chrome like tabs using tab or decorated
  tab panels..

  On Sep 8, 11:54 am, Isaac Truett itru...@gmail.com wrote:
  Are you aware of the TabPanel class?

 http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...

  On Tue, Sep 8, 2009 at 11:39 AM,

  myapplicationquestionsparag.bhag...@cgi.com wrote:

   Chrome like tab behaviour possible using GWT? I like chrome browser
   tabs and want tp have the same kind of tabs for my application, has
   anyone tried that using GWT or one of its extensions?- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Chrome like tab behaviour possible using GWT?

2009-09-08 Thread myapplicationquestions

Chrome like tab behaviour possible using GWT? I like chrome browser
tabs and want tp have the same kind of tabs for my application, has
anyone tried that using GWT or one of its extensions?
--~--~-~--~~~---~--~~
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: Chrome like tab behaviour possible using GWT?

2009-09-08 Thread myapplicationquestions

yes. but i could not get the chrome like tabs using tab or decorated
tab panels..

On Sep 8, 11:54 am, Isaac Truett itru...@gmail.com wrote:
 Are you aware of the TabPanel class?

 http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...

 On Tue, Sep 8, 2009 at 11:39 AM,

 myapplicationquestionsparag.bhag...@cgi.com wrote:

  Chrome like tab behaviour possible using GWT? I like chrome browser
  tabs and want tp have the same kind of tabs for my application, has
  anyone tried that using GWT or one of its extensions?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Has anyone used gwt-validation api? or is there a better one?

2009-08-29 Thread myapplicationquestions

Has anyone used gwt-validation api? or is there a better one? I need
mostly data type validations, and some basic constraints on UI side..
Let me know what you all think

http://code.google.com/p/gwt-validation/
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



dynamically deleting records from incubator scrolltable

2009-08-28 Thread myapplicationquestions

Hi All,

In one of my grids i have a requrirement that based on some action on
the grid the record in teh grid needs to be deleted and widget
refereshed.I could not find any delete method on scrolltable or grid
(core gwt). Do i always need to redraw the grid? or is there a better
option?

Thanks,

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



Re: com.google.gwt.dom.client.Element method getPropertyInt not working? Is it a bug?

2009-08-27 Thread myapplicationquestions

Thanks David. That worked.. basically it seems u cannot use
getproperty.. method unless u explicitly do a setProperty.. but
getAttribute works for my case.

Thanks,

On Aug 26, 10:57 am, David david.no...@gmail.com wrote:
 Hi,

 You might want to try getAttribute instead of getPropertyInt.

 David

 On Tue, Aug 25, 2009 at 7:45 PM,



 myapplicationquestionsparag.bhag...@cgi.com wrote:

  Hi All,

  I am developing a widget which has an hyperlink as given below

  a id=SSO_1 rownum=20 mode=READONLY href=javascript:{}TEST1 /
  a

  In onPreviewNativeEvent i have the following code snippet

    if (event.getTypeInt() == Event.ONCLICK)

    {
       Element loElement = Element.as(loTarget);
       if(loElement.getTagName().equalsIgnoreCase(A))
       {
         // Window.alert( in here1 );
          String lsId = loElement.getId();
          int liRowNumber = loElement.getPropertyInt(rownum);

          Window.alert( in here1 +liRowNumber+--+loElement.getId()
  +--+lsId+--+loElement.getString());

  The alert is always giving me liRowNumber as 0 even though its 20...
  the loeElement.getString shows the cirrect anchor tag where rownum is
  20...does any one know what i am doing wrong or if it is a bug?

  Thanks,
  Parag- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: Load external html files inside a popup

2009-08-27 Thread myapplicationquestions

Hi Zujee,

Are the help files deployed on the webserver? meaning can u access
them using http://help1.html? If yes u can give taht url in the
iframe.

Thanks

On Aug 27, 6:57 am, zujee sujeesh...@gmail.com wrote:
 Hi experts,
 I have some help files for my application. when user clicks on help
 page, I want to show it  inside the Frame. Inside my help folder i
 have 1 toc (table of content) and when user clicks , i need to
 navigate to that page.
 Can some body help me how i can do it.

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



com.google.gwt.dom.client.Element method getPropertyInt not working? Is it a bug?

2009-08-25 Thread myapplicationquestions

Hi All,

I am developing a widget which has an hyperlink as given below

a id=SSO_1 rownum=20 mode=READONLY href=javascript:{}TEST1 /
a

In onPreviewNativeEvent i have the following code snippet


   if (event.getTypeInt() == Event.ONCLICK)

   {
  Element loElement = Element.as(loTarget);
  if(loElement.getTagName().equalsIgnoreCase(A))
  {
// Window.alert( in here1 );
 String lsId = loElement.getId();
 int liRowNumber = loElement.getPropertyInt(rownum);

 Window.alert( in here1 +liRowNumber+--+loElement.getId()
+--+lsId+--+loElement.getString());




The alert is always giving me liRowNumber as 0 even though its 20...
the loeElement.getString shows the cirrect anchor tag where rownum is
20...does any one know what i am doing wrong or if it is a bug?

Thanks,
Parag
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



THEAD WITH GRID class?

2009-08-11 Thread myapplicationquestions

Hi All,

I am trying to create a grid which should have header columns and some
rows. I tried to use the grid class but it does not look like it has a
way to add a header row? Is that correct or am i missing something?

Thanks,

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



Re: JNSI Problem Challenge

2009-08-06 Thread myapplicationquestions

How did you solve it?

On Aug 6, 3:51 am, Luciano Broussal luciano.brous...@gmail.com
wrote:
 Thank you Jeff and Bigous for your great help!

 It is solved.

 Regards.

 Luciano

 Luciano

 On 5 août, 16:43, Bigous big...@gmail.com wrote:



  Hi Luciano,

  Jeff is correct. The script that runs inside the HTML runs before the
  script inside your EntryPoint class.
  You can check this setting up a timeOut to call a function inside the
  html... I changed your code to see how it works...

  ... After the including GWT script...
      script
              var count = 0;
              function doStuff() {
                      count++;
                      try {
                                          alert('Entered ' + count);
                          alert(myJavaStaticMethod(1,2));
                      } catch(err) {}
                    }
      /script
    /head

    !--                                           --
    !-- The body can have arbitrary html, or      --
    !-- you can leave the body empty if you want  --
    !-- to create a completely dynamic UI.        --
    !--                                           --
    body onload=javascript:doStuff();

      !-- OPTIONAL: include this if you want history support --
      iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1'
  style=position:absolute;width:0;height:0;border:0/iframe

      script type=text/javascript language=javascript
        setTimeout(doStuff(), 1000);
        doStuff();
      /script
    /body
  /html

  We can see 'Entered 1' without the result. This occurs while the
  browser is loading the HTML.
  We can see 'Entered 2' without the result. This occurs in the bodys
  event onload.
  We can see 'Entered 3' with the result 3. This occurs in the timeout
  event.

  So, you're calling the function before it has been defined.

  Best regards,
  Richard Natal

  On Aug 4, 6:06 pm, Jeff Chimene jchim...@gmail.com wrote:

   On 08/04/2009 01:24 PM, Luciano Broussal wrote:

Line 49: Object expected
Char : 9
Code: 0
URL : url of myjsni.html  test file

   My guess is that the entire environment has not been created, hence the
   object expected error. What I'm saying is that the GWT-generated code
   that loads the $wnd.myJavaStaticMethod runs after the scripts in the
   body tag.
   You can try something like if (window.sum) sum(3,3); to prove this.

   You won't usually use GWT in the style of putting scripts in the body
   tag. You'll usually load the scripts via the head tag. Even when
   retrofitting existing systems, this is the common technique.

HTH Help

On Aug 4, 9:33 pm, Jeff Chimene jchim...@gmail.com wrote:
On 08/04/2009 12:23 PM, Luciano Broussal wrote:

Hi Jeff,

I got a blank page and the myJavaStaticMethod is never called  or on
IE i got the javascript error icon on left bottom corner.

What's the text associated with this error?

I don't really now what is going wrong. Can you make it work on your
side ? ...

Thanks

Luciano

On Aug 4, 8:31 pm, Jeff Chimene jchim...@gmail.com wrote:
On 08/04/2009 10:41 AM, Luciano Broussal wrote:

Hi all,

I'm fighting withJSNIfor a time without success trying to call a
java method from my javascript stuff.

I did as explained online but without success :(

   http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(goog...)

He is my class and html.

This makes me crazy. If someone could help me to display 1+ 2  = 3
please.

What symptoms does this derangement exhibit?

Thanks

Luciano

CLASS
**

package com.st.jsni.client;

import com.google.gwt.core.client.EntryPoint;

/**
 * Entry point classes define codeonModuleLoad()/code.
 */
public classJsniimplements EntryPoint {
  �...@override
   public void onModuleLoad() {
           exportStaticMethod();
   }

   public static native void exportStaticMethod() /*-{
           $wnd.myJavaStaticMethod =
              @com.st.jsni.client.Jsni::sum(II);
   }-*/;

   public static int sum(int a, int b) {
           return a + b;
   }
}

HTML
*

html
  head
    meta http-equiv=content-type content=text/html;
charset=UTF-8
    link type=text/css rel=stylesheet href=Jsni.css
    titleWeb Application Starter Project/title
    script type=text/javascript language=javascript src=jsni/
   jsni.nocache.js/script
  /head

  !--                                           --
  !-- The body can have arbitrary html, or      --
  !-- you can leave the body empty if you want  --
  !-- to create a completely dynamic UI.        --
  !--                                           --
  body

    !-- OPTIONAL: include this if you want history support --
    iframe src=javascript:'' id=__gwt_historyFrame 
tabIndex='-1'

Re: ImageBundle question

2009-07-29 Thread myapplicationquestions

Sorry let me rephrase the question

The images are not actually stored in a folder but we store them as
binary data in database. In that case i am assuming image bundle will
not work right?

Thanks,

On Jul 22, 5:28 am, David david.no...@gmail.com wrote:
 Hi Parag,

 An com.google.gwt.user.client.ui.ImageBundlewould be the best
 solution for your problem - as your own title suggests.
 The GWT docs contain a good explanation on how to use them

 David

 On Wed, Jul 22, 2009 at 4:47 AM,



 myapplicationquestionsparag.bhag...@cgi.com wrote:

  Hi All,

  I am creating an Org tree which will consist of @500 nodes, for each
  node i want to show an image as well. What is the best way to get all
  these images loaded? I was thinking of adding an http request in the
  src tag of the image but wanted tio know if GWT provides anyway so
  that i can combine all the images as 1 send it to the orgtree and have
  GWT parse teh image to show individual thumbnails?

  any help is appreciated.

  Thanks,
  Parag- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



ImageBundle question

2009-07-21 Thread myapplicationquestions

Hi All,

I am creating an Org tree which will consist of @500 nodes, for each
node i want to show an image as well. What is the best way to get all
these images loaded? I was thinking of adding an http request in the
src tag of the image but wanted tio know if GWT provides anyway so
that i can combine all the images as 1 send it to the orgtree and have
GWT parse teh image to show individual thumbnails?

any help is appreciated.

Thanks,
Parag
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Adding maximize,collapse,settings option to each widget

2009-04-18 Thread myapplicationquestions

Hi,

I need to add maximize,collapse,settings option to each widget that i
will create (similar to IGOOGLE) where the title bar has those
options. How do i do that? Can it be done by base GWT or do i have to
use any extension?

Thanks,

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



Re: loading GWT applications on the fly

2009-04-07 Thread myapplicationquestions

anybody has any suggestions?

On Apr 6, 6:11 pm, myapplicationquestions bhagwat.pa...@gmail.com
wrote:
 Hi All,

 I have an application which has 3 tabs.,.. the first tab is called
 user desktop while the other 2 are based on functional areas like
 general, payroll. Combined these 2 general and payroll have 17
 widgets total. The user desktop is something where user can select 10
 widgets to be shown.. its all configured and stored in database.. Now
 i am trying to read that and send JSON data with the module names to
 the user desktop now question is how do i load those on the fly? I
 have a complexPanel and planning to load them in that.. how do i load
 and refresh widgets on the fly?

 any help is appreciated...
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



loading GWT applications on the fly

2009-04-06 Thread myapplicationquestions

Hi All,

I have an application which has 3 tabs.,.. the first tab is called
user desktop while the other 2 are based on functional areas like
general, payroll. Combined these 2 general and payroll have 17
widgets total. The user desktop is something where user can select 10
widgets to be shown.. its all configured and stored in database.. Now
i am trying to read that and send JSON data with the module names to
the user desktop now question is how do i load those on the fly? I
have a complexPanel and planning to load them in that.. how do i load
and refresh widgets on the fly?

any help is appreciated...
--~--~-~--~~~---~--~~
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 inlineHTML be used to load static HTML pages?

2009-04-03 Thread myapplicationquestions

Thanks.. sorry to bug everyone again.. but to what extent can i
customize the page created by GWT as i need and just include  2
modules one on the left and center everything else my own html,flash?

Thanks,
Parag

On Apr 3, 6:58 am, alex.d alex.dukhov...@googlemail.com wrote:
 Well, you can always take an iframe to load a complete gwt-app. But
 that's probably not exactly what you need.

 On 3 Apr., 03:28, myapplicationquestions bhagwat.pa...@gmail.com
 wrote:



  Thanks a lot. But isn't this a major limitation that we cannot harness
  the power of page designers? Can GWT module be embedded in any
  existing page? Basically we are trying to build a new enterprise
  application which is pretty UI savy but now it looks more difficult to
  use GWT as a full fledge option as a framework for a whole enterprise
  application.. so was thinking if we can embedded GWT modules in
  existing application?

  On Apr 2, 5:32 pm, Thomas Broyer t.bro...@gmail.com wrote:

   On 1 avr, 23:23, myapplicationquestions bhagwat.pa...@gmail.com
   wrote:

can inlineHTML be used to load static HTML pages?

   Not really:
   1. loading probably requires an HTTP request (have a look at
   RequestBuilder).
   2. I wouldn't recommend inserting a full HTML page (with head,
   title, style etc.) with innerHTML as it might have unexpected side
   effects (page title replaced with the one from the injected page,
   same for base href=, etc.) it's better to inject HTML *fragments*
   3. be aware (and warned) that scripts injected using innerHTML won't
   get run.

I want to harness
the power of HTML designing tools to generate static HTML but use GWT
to load the widget. Please note that there may be some actions defined
in static html.

Basically my application has number of widgets some of which are coded
through GWT but some of them are really snippets of static html but
they too have to be interactive.

Also can i embed some GWT elements within the inlineHTML if i want to?
For example i can have an HTMl like

div
 some statis text and a logo
markerforgwt
 some statis text and a logo

/div

once i load the static html i need to be able to change markerforgwt
with any gwt element. Is that possible in GWT?

   Have a look at the HTMLPanel widget. The markerforgwt will be an
   element with a given (known) id= attribute within which you can add a
   child widget (you can of course have more than one such
   placeholder).
   If you go for the HTMLPanel, have a look 
   athttp://code.google.com/p/google-web-toolkit/issues/detail?id=1937#c18
   and following comments about duplicate IDs and/or same HTML fragment
   used with several HTMLPanels.- Hide quoted text -

   - Show quoted text -- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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 inlineHTML be used to load static HTML pages?

2009-04-02 Thread myapplicationquestions

hello? any answer?

On Apr 1, 5:23 pm, myapplicationquestions bhagwat.pa...@gmail.com
wrote:
 caninlineHTMLbe used to load static HTML pages? I want to harness
 the power of HTML designing tools to generate static HTML but use GWT
 to load the widget. Please note that there may be some actions defined
 in static html.

 Basically my application has number of widgets some of which are coded
 through GWT but some of them are really snippets of static html but
 they too have to be interactive.

 Also can i embed some GWT elements within theinlineHTMLif i want to?
 For example i can have an HTMl like

 div
  some statis text and a logo
 markerforgwt
  some statis text and a logo

 /div

 once i load the static html i need to be able to change markerforgwt
 with any gwt element. Is that possible in GWT?

 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: can inlineHTML be used to load static HTML pages?

2009-04-02 Thread myapplicationquestions

Thanks a lot. But isn't this a major limitation that we cannot harness
the power of page designers? Can GWT module be embedded in any
existing page? Basically we are trying to build a new enterprise
application which is pretty UI savy but now it looks more difficult to
use GWT as a full fledge option as a framework for a whole enterprise
application.. so was thinking if we can embedded GWT modules in
existing application?

On Apr 2, 5:32 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 1 avr, 23:23, myapplicationquestions bhagwat.pa...@gmail.com
 wrote:

  can inlineHTML be used to load static HTML pages?

 Not really:
 1. loading probably requires an HTTP request (have a look at
 RequestBuilder).
 2. I wouldn't recommend inserting a full HTML page (with head,
 title, style etc.) with innerHTML as it might have unexpected side
 effects (page title replaced with the one from the injected page,
 same for base href=, etc.) it's better to inject HTML *fragments*
 3. be aware (and warned) that scripts injected using innerHTML won't
 get run.





  I want to harness
  the power of HTML designing tools to generate static HTML but use GWT
  to load the widget. Please note that there may be some actions defined
  in static html.

  Basically my application has number of widgets some of which are coded
  through GWT but some of them are really snippets of static html but
  they too have to be interactive.

  Also can i embed some GWT elements within the inlineHTML if i want to?
  For example i can have an HTMl like

  div
   some statis text and a logo
  markerforgwt
   some statis text and a logo

  /div

  once i load the static html i need to be able to change markerforgwt
  with any gwt element. Is that possible in GWT?

 Have a look at the HTMLPanel widget. The markerforgwt will be an
 element with a given (known) id= attribute within which you can add a
 child widget (you can of course have more than one such
 placeholder).
 If you go for the HTMLPanel, have a look 
 athttp://code.google.com/p/google-web-toolkit/issues/detail?id=1937#c18
 and following comments about duplicate IDs and/or same HTML fragment
 used with several HTMLPanels.- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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 inlineHTML be used to load static HTML pages?

2009-04-01 Thread myapplicationquestions

can inlineHTML be used to load static HTML pages? I want to harness
the power of HTML designing tools to generate static HTML but use GWT
to load the widget. Please note that there may be some actions defined
in static html.

Basically my application has number of widgets some of which are coded
through GWT but some of them are really snippets of static html but
they too have to be interactive.

Also can i embed some GWT elements within the inlineHTML if i want to?
For example i can have an HTMl like

div
 some statis text and a logo
markerforgwt
 some statis text and a logo

/div

once i load the static html i need to be able to change markerforgwt
with any gwt element. Is that possible in GWT?

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