Customized confirmation box widget

2012-05-30 Thread Manish Goyal
Hi ,

I want to make a customized confirmation dialog box in GWT, searched
google but not found any clue.

Any help would be much appreciate.

Thanks,
Manish

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



C2dma Problem

2011-10-20 Thread manish kumar
Hi folks ,
I am new in Android. I want to use C2dma Service of Android.
I have done everything , but whenever I am starting my App Engine
locally using this url
"http://127.0.0.1:/CloudTask.html?gwt.codesvr=127.0.0.1:9997";  in
mozilla.
It is telling missing Plugin. I have downloaded the suggested plugin
also but everytime it is asking same.

Please help me , I am new here.

Thank You

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



create Junit Test case for my Presentation

2011-08-29 Thread Manish
I am trying to create Junit Test case for my Presentation Layer ,
while creating Presentation instance in setup method of Junit it goes
througn GWT.Create at this point it fails saying

java.lang.ExceptionInInitializerError
.
.
Caused by: java.lang.UnsupportedOperationException: ERROR:
GWT.create() is only usable in client code! It cannot be called, for
example, from server code. If you are running a unit test, check that
your test case extends GWTTestCase and that GWT.create() is not called
from within an initializer or constructor.
at com.google.gwt.core.client.GWT.create(GWT.java:91)
at com.google.gwt.user.client.ui.UIObject.(UIObject.java:188)
... 24 more

and when I add following line to deal with GWT.Create case

@BeforeClass
public static void disarm() {
GWTMockUtilities.disarm();
}

@AfterClass
public static void rearm() {
GWTMockUtilities.restore();
}

it gives Null pointer exception .. will be thankful to any help.

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



Problem in Tabbing on a Button

2011-08-17 Thread Manish
I have a Flowpanel in which I inturn add Deckpanel and ButtonPanel Now
this Deckpanel have Dynamic GWT Companents added and ButtonPanel have
Buttons which are disabled and enabled Dynamically.My issue is when I
try to do tab movement then tab movement/shift-tab movement from
ButtonPanel to Deckpanel and viceversa is not smooth taabing order
breaks while moving from one component of one panel to other component
of other.

Regards
Manish

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



Urgent Need: Oracle Projects Tech Lead

2011-06-06 Thread Manish Savale
Hello,

I have an immediate need for a Sr. Oracle Project Tech Lead

Kindly contact me at 
mani...@tts-consulting.com<mailto:mani...@tts-consulting.com>

Location:  San Jose, CA
Duration:   6 months
Interview:  Telephonic, followed by in-person
Start:1 week from the date of selection

We just got a one liner from our client which says "Need Oracle Projects Tech 
Lead Consultant"

I will appreciate if you could email me your updated resume with contact 
details and I will call you back promptly

Thanks

Manish Savale
TTS Inc

(925) 952-6317 - direct
(925) 932-3743 - fax
mani...@tts-consulting.com<mailto:mani...@tts-consulting.com>
1255 Treat Blvd., Ste 140
Walnut Creek, CA 94597

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



REQ: Java/GWT Developer in SFO, CA

2011-05-31 Thread Manish Savale
 

Hello

This is a Direct Client requirement for a Sr. Java-J2EE/GWT developer. The 
client has interviewed quite a few candidates and rejected as none came with 
recent verifiable experience in GWT/GXT.

Kindly review the JD and email me your updated resume at 
mani...@tts-consulting.com

Role:Java-J2EE / GWT developer
Experience:   Total 8-9 yrs with atleast 2 years in GWT
KEY SKILL:   Recent GWT development experience of atleast 1-2 years
Location:  South San Francisco, CA
Duration:   8 months minimum – will go longer
Interviews: Telephonic, followed by in-person if the candidate is 
local
Start:Immediate

*Key SKILLS:*

- Development skills on GWT / GXT latest version
- Hibernate
- EJB 3.0 or atleast 2.0
- JPA
- JMS
- Excellent communication skills, written and oral

Kindly email your updated resume, with rate and contact information, to 
mani...@tts-consulting.com and I will call you back promptly. 

Thanks
 
*Manish Savale*

*TTS Inc*

 

(925) 952-6317 - direct

(925) 932-3743 - fax

mani...@tts-consulting.com

1255 Treat Blvd., Ste 140

Walnut Creek, CA 94597

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



Direct Client Need: Java/GWT Developer in SFO, CA

2011-05-31 Thread Manish Savale
Hello,

This is a Direct Client requirement for a Sr. Java-J2EE/GWT developer. The 
client has interviewed quite a few candidates and rejected as none came with 
recent verifiable experience in GWT/GXT.

Kindly review the JD and let me know if you'd be interested in this assignment.

Role:Java-J2EE / GWT developer
Experience:   Total 8-9 yrs with atleast 2 years in GWT
KEY SKILL:   Recent GWT development experience of atleast 1-2 years
Location:  South San Francisco, CA
Duration:   8 months minimum - will go longer
Interviews: Telephonic, followed by in-person if the candidate is local
Start:Immediate

Key SKILLS:

- Development skills on GWT / GXT latest version
- Hibernate
- EJB 3.0 or atleast 2.0
- JPA
- JMS
- Excellent communication skills, written and oral

Kindly email your updated resume, with rate and contact information, to 
mani...@tts-consulting.com<mailto:mani...@tts-consulting.com> and I will call 
you back promptly.

Thanks
Manish Savale
TTS Inc

(925) 952-6317 - direct
(925) 932-3743 - fax
mani...@tts-consulting.com<mailto:mani...@tts-consulting.com>
1255 Treat Blvd., Ste 140
Walnut Creek, CA 94597

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



Tree like widget in CellTable

2011-04-12 Thread Manish
Hi,

I am using GWT 2.2 and am very much happy with the data presentation
widgets. But now a requirement has come to have a tree like widget in
a celltable and so far I haven't found anything that works seamlessly.
So, I was evaluating celltree.

As most of my functionality is ready with celltable and as tree like
requirement has come very late into the development I want to
incorporate it somehow in the celltable itself rather than re-writing
the whole UI again.

Is it possible to do with celltable?

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



show loading message in GWT

2010-12-14 Thread manish kumar
Can anyone give very simple example to show a loading... message when
the process is going on in GWT.
Suppose i have a panel consist of a form and after submitting the
content it must show the loading.. message in that panel only during
the process. i want to use a .GIF image in place of loading ...
message.

-- 
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: Client side mapping between model objects

2010-07-13 Thread MANISH SINGLA
Thanks Andre


> Another option is to send all the associations with only the id of the
> object, and send an array with all objects used. This option is much more
> efficient but also much more complex. (both client and server).
>

For the above mentioned complexity, is there any framework to reduce
complexity ( or any other suggestions to reduce complexity at client side).
I do not know about Spring Roo but do ROO takes care of above complexity?

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



Million access to GWT Appl ??

2010-06-21 Thread manish kumar
Hi, i have gone through many articles on web and found that GWT is not
good for an application that has million users access simultaniouly.
Is that really true? If not then what should i do make it accessible
by million users?Is that really tough job in GWT?

-- 
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: Few Openings in UI

2010-03-29 Thread Manish Kumar
Hi Sri

 

Could I please know a bit more detailed information on the requirement and
about the  company?

 

Regards

Manish

 

From: google-web-toolkit@googlegroups.com
[mailto:google-web-tool...@googlegroups.com] On Behalf Of sridevi macherla
Sent: Monday, March 29, 2010 10:26 AM
To: undisclosed-recipients:
Subject: Few Openings in UI

 

Hi,

Few openings in User Interface on Java/J2EE in my organization, anyone
willing to relocate to bangalore and are interested.  Can send me their
resumes at the earliest.

Profile:
Exp 4+
UI: Java/J2EE/Servlets/JSP ( Core Java should be strong).
Location : Bangalore.

Thanks
Sri

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

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



RPC not working on linux deployment

2010-03-28 Thread Manish Mudgal
Hi,
I have an application which works fine on localhost in windows
environment. But when i deploy it on linux server at production, It
gives me error 404 ( Resource not found) .

My Service is :

@RemoteServiceRelativePath("exam")
public interface QuestionService extends RemoteService {
 String enterQuestion(QuestionUnit unit);
}

Corresponding web.xml entry is:

   questionServlet
   com.evita.exam.server.QuestionServ
 

 
   questionServlet
   /exammaster/exam
 
 
My gwt.xml file says:


 
 
 

All works fine in windows at localhost. while on linux tomcat at
production it says

404, Resource not found ( /exammaster/exam).

Please help.

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



RPC not working on linux deployment

2010-03-28 Thread Manish
Hi,
I have an application which works fine on localhost in windows
environment. But when i deploy it on linux server at production, It
gives me error 404 ( Resource not found) .

My Service is :

@RemoteServiceRelativePath("exam")
public interface QuestionService extends RemoteService {
  String enterQuestion(QuestionUnit unit);
}

Corresponding web.xml entry is:

questionServlet
com.evita.exam.server.QuestionServ
  

  
questionServlet
/exammaster/exam
  
  
My gwt.xml file says:


 
  
 

All works fine in windows at localhost. while on linux tomcat at
production it says

404, Resource not found ( /exammaster/exam).

Please help.










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



using suggestion box in gwt

2010-01-21 Thread manish
how can i implement  a simple live suggestion box in gwt.give a simple
example

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



getting data from server in GWT

2010-01-21 Thread manish
HI,
i am a new user of GWT. Can anyone give me a simple example of how can
i send back the response data back to the client from the server side
and how client will receive this 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-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.



Maven build error with GWT application (file not found)

2009-12-09 Thread manish panwar
I am building GWT application in Linux box, and getting following
error.
Please note my project gets build successfully in Windows.
Here AdminHome.gwt.xml is my GWT config file, and I am able to see
this file in my directory.

I am attaching my POM file and GWT config XML file.

[exec] [INFO] Copying 2 resources to
 [exec] [INFO]

 [exec] [ERROR] BUILD ERROR
 [exec] [INFO]

 [exec] [INFO] /com/ihg/apps/easymeetings/admin/gwt/
AdminHome.gwt.xml (No such file or directory)

 [exec] [INFO]

 [exec] [INFO] Trace
 [exec] org.apache.maven.lifecycle.LifecycleExecutionException: /
com/ihg/apps/easymeetings/admin/gwt/AdminHome.gwt.xml (No such
file or directory)
 [exec] at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecycleExecutor.java:584)
 [exec] at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:500)
 [exec] at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(DefaultLifecycleExecutor.java:479)
 [exec] at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:33
1)
 [exec] at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
(DefaultLifecycleExecutor.java:292)
 [exec] at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLifecycleExecutor.java:142)
 [exec] at org.apache.maven.DefaultMaven.doExecute
(DefaultMaven.java:336)
 [exec] at org.apache.maven.DefaultMaven.execute
(DefaultMaven.java:129)
 [exec] at org.apache.maven.cli.MavenCli.main(MavenCli.java:
301)
 [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 [exec] at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
 [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)

--

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.




Efficient way to access the database in gwt

2009-10-16 Thread manish

Hello Everybody,
I am a new user of GWT.Can anyone explain me how can i
insert,update,retrieve data from database in GWT with a simple
example.
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
-~--~~~~--~~--~--~---



Fw: (Error): Not implemented number: -2147467263 - Not implemented

2009-07-23 Thread Manish Kumar
Hi,

Looking forward to this problem : I just wanted to know all of with my latest 
find. I have observed that it's coming in IE8 and sometimes in Mozila. As I 
found the culprit for this is - 
dialogbox.show();

Could anybody help me out to get the reason behind or solution/work around 

Regards
Manish


- Original Message - 
From: Manish Kumar 
To: Google-Web-Toolkit@googlegroups.com 
Sent: Thursday, July 23, 2009 9:29 PM
Subject: (Error): Not implemented number: -2147467263


Hi Everybody,

After a long time, I have started working on GWT though I have been in touch 
all the time with this group.

Could anybody help me to get rid of this error : :--> (Error): Not implemented 
number: -2147467263 

As of I have checked it out in the code, I have found this method to be 
responsible.

private void showPMCommentUI() 

{

String compId = null;

String user = null;


String selectedComp = 
Document.get().getElementById("loadCommentUI").getInnerText();

Document.get().getElementById("loadCommentUI").setInnerText("");



if( selectedComp.indexOf(':') != -1 )

{

user = selectedComp.substring(0, selectedComp.indexOf(':')- 1);

}


compId = selectedComp.substring(selectedComp.indexOf(':') + 2); 


String compName = null;



if( compId != null && compId.trim().length() > 0 )

{

compName = 
Document.get().getElementById("c2").getFirstChildElement().getFirstChildElement().getFirstChild().getNodeValue();

}


dialogbox = new DialogBox();


Panel panel = new Panel();

panel.setStyleName("main-panel");

panel.setHeader(true); 

panel.setTitle(" Comment on -"+ model +"/"+ compName);


MessageBox.alert("Manish 111");

final RichTextArea rta = new RichTextArea();


panel.add(rta, new BorderLayoutData(RegionPosition.CENTER));


com.gwtext.client.widgets.Button saveCommentBut = new 
com.gwtext.client.widgets.Button("Save");


final String authenticatedUser = user;

final String selectedModelCompId = compId;

final String selectedModelCompName = compName;


MessageBox.alert("Manish 222");

Panel bttnPanel = new Panel();


saveCommentBut.addListener(new ButtonListenerAdapter()

{

public void onClick(com.gwtext.client.widgets.Button button, EventObject e) {


try

{

String commentText = rta.getText();


saveComment(authenticatedUser,model,selectedModelCompId,selectedModelCompName,commentText
 != null? commentText.trim():commentText , modelDir);

}

catch(RequestException re)

{

MessageBox.alert(re.getMessage());

}

}

});


bttnPanel.addButton(saveCommentBut);

MessageBox.alert("Manish 333");

com.gwtext.client.widgets.Button cancelCommentBut = new 
com.gwtext.client.widgets.Button("Cancel");

cancelCommentBut.addListener(new ButtonListenerAdapter()

{

public void onClick(com.gwtext.client.widgets.Button button, EventObject e) 

{

dialogbox.clear();

dialogbox.hide();

}

});


bttnPanel.addButton(cancelCommentBut); 

MessageBox.alert("Manish 444");

panel.add(bttnPanel,new BorderLayoutData(RegionPosition.EAST));

MessageBox.alert("Manish 555");

dialogbox.setAutoHideEnabled(false); 

dialogbox.setModal(true); 

dialogbox.setWidget( panel);

dialogbox.show();


MessageBox.alert("Manish 666");

}

Thanks in advance.

Regards
Manish



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



(Error): Not implemented number: -2147467263

2009-07-23 Thread Manish Kumar
Hi Everybody,

After a long time, I have started working on GWT though I have been in touch 
all the time with this group.

Could anybody help me to get rid of this error : :--> (Error): Not implemented 
number: -2147467263 

As of I have checked it out in the code, I have found this method to be 
responsible.

private void showPMCommentUI() 

{

String compId = null;

String user = null;


String selectedComp = 
Document.get().getElementById("loadCommentUI").getInnerText();

Document.get().getElementById("loadCommentUI").setInnerText("");



if( selectedComp.indexOf(':') != -1 )

{

user = selectedComp.substring(0, selectedComp.indexOf(':')- 1);

}


compId = selectedComp.substring(selectedComp.indexOf(':') + 2); 


String compName = null;



if( compId != null && compId.trim().length() > 0 )

{

compName = 
Document.get().getElementById("c2").getFirstChildElement().getFirstChildElement().getFirstChild().getNodeValue();

}


dialogbox = new DialogBox();


Panel panel = new Panel();

panel.setStyleName("main-panel");

panel.setHeader(true); 

panel.setTitle(" Comment on -"+ model +"/"+ compName);


MessageBox.alert("Manish 111");

final RichTextArea rta = new RichTextArea();


panel.add(rta, new BorderLayoutData(RegionPosition.CENTER));


com.gwtext.client.widgets.Button saveCommentBut = new 
com.gwtext.client.widgets.Button("Save");


final String authenticatedUser = user;

final String selectedModelCompId = compId;

final String selectedModelCompName = compName;


MessageBox.alert("Manish 222");

Panel bttnPanel = new Panel();


saveCommentBut.addListener(new ButtonListenerAdapter()

{

public void onClick(com.gwtext.client.widgets.Button button, EventObject e) {


try

{

String commentText = rta.getText();


saveComment(authenticatedUser,model,selectedModelCompId,selectedModelCompName,commentText
 != null? commentText.trim():commentText , modelDir);

}

catch(RequestException re)

{

MessageBox.alert(re.getMessage());

}

}

});


bttnPanel.addButton(saveCommentBut);

MessageBox.alert("Manish 333");

com.gwtext.client.widgets.Button cancelCommentBut = new 
com.gwtext.client.widgets.Button("Cancel");

cancelCommentBut.addListener(new ButtonListenerAdapter()

{

public void onClick(com.gwtext.client.widgets.Button button, EventObject e) 

{

dialogbox.clear();

dialogbox.hide();

}

});


bttnPanel.addButton(cancelCommentBut); 

MessageBox.alert("Manish 444");

panel.add(bttnPanel,new BorderLayoutData(RegionPosition.EAST));

MessageBox.alert("Manish 555");

dialogbox.setAutoHideEnabled(false); 

dialogbox.setModal(true); 

dialogbox.setWidget( panel);

dialogbox.show();


MessageBox.alert("Manish 666");

}

Thanks in advance.

Regards
Manish
--~--~-~--~~~---~--~~
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: working with % for gwt/gwtext widget(Panel) height

2009-02-19 Thread Manish Kumar
Hi,

Thanks for the answer. However I did not succeed to make this working by 
managing with the layout. I don't know what I am doing wrong. Could any one of 
you have a quick look on my attached file( .java. For your help,  css is not 
having any entry related to this ) and help me out to get rid of this issue.

I know everybody time is precious but I am doing this as of now I have no 
option. My code is simple , don't know why this is not giving the required 
behaviour.

Every single idea is precious for me at this time.

Regards,
Manish
 
  - Original Message - 
  From: Matías Costa 
  To: Google-Web-Toolkit@googlegroups.com 
  Sent: Thursday, February 19, 2009 3:38 PM
  Subject: Re: working with % for gwt/gwtext widget(Panel) height


  I had to think twice to understand you want to set height in percentage.

  The size of any widget is affected by the layout is contained in. You can do 
setHeight("50%"), add to the parent container setLayout(new FitLayout()), or 
just use any of the many layouts available and use panel.add(widget, 
layoutdata). ej: rowlayout / rowdata

  Have you tried setStyle, or a custom css?


  On Thu, Feb 19, 2009 at 5:31 AM, Manish Kumar  wrote:

Hi All,

Could I please expect any talk on this? Every single contribution will be 
appreciated well as I am now on dead-end where I need to say yes or no. 

    Regards,
Manish
  - Original Message - 
  From: Manish Kumar 
  To: Google-Web-Toolkit@googlegroups.com 
  Sent: Wednesday, February 18, 2009 2:19 PM
  Subject: working with % forgwt/gwtext widget(Panel) height


  Hi All,

  I am trying to use % with GWT/GWText widget(Panel). But this does not 
work.Could i know how to do or if any work around for this.

  Regards,
  Manish





  

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

package pm.gwt.hub.explorer.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.gwtext.client.widgets.Panel;
import com.google.gwt.http.client.RequestException;
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.http.client.URL;
import com.gwtext.client.widgets.layout.AnchorLayout;
import com.gwtext.client.widgets.layout.BorderLayout;
import com.gwtext.client.widgets.layout.BorderLayoutData;
import com.gwtext.client.widgets.tree.TreeNode;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.core.RegionPosition;
import com.gwtext.client.data.ArrayReader;
import com.gwtext.client.data.FieldDef;
import com.gwtext.client.data.MemoryProxy;
import com.gwtext.client.data.Record;
import com.gwtext.client.data.RecordDef;
import com.gwtext.client.data.Store;
import com.gwtext.client.data.StringFieldDef;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.Response;
import com.google.gwt.http.client.Request;
import com.gwtext.client.widgets.MessageBox;
import com.google.gwt.xml.client.XMLParser;
import com.google.gwt.xml.client.Node;
import com.google.gwt.xml.client.NamedNodeMap;
import com.google.gwt.xml.client.NodeList;
import com.google.gwt.xml.client.Document;
import com.gwtext.client.widgets.tree.TreePanel;
import com.gwtext.client.widgets.tree.event.TreePanelListenerAdapter;
import com.gwtext.client.widgets.layout.FitLayout;
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.ui.RootPanel;
import com.gwtext.client.core.XTemplate;
import com.gwtext.client.widgets.DataView;
import com.gwtext.client.widgets.event.DataViewListenerAdapter;
import java.util.*;

public class PMExplorer implements EntryPoint 
{
	Panel contentPanel;
	String PMServer;
	String rootName;
	TreePanel treePanel;
	Panel appContentPanel;	
	String treePnlWidth = "15%";
	private Object[][] data; 
	private HashMap treeNodeMap;
	private TreeNode currSelectedNode;	
	TreeNode root;
	
	private static RecordDef recordDef = new RecordDef(
 	new FieldDef[]{
 	
 	new StringFieldDef("object"),
 	new StringFieldDef("name"),
 	new StringFieldDef("type"),
new StringFieldDef("url"),
 }
	);
 
	private static ArrayReader reader = new ArrayReader( recordDef );
		
	public void onModuleLoad() 
	{
		try
{
			final Panel mainpanel = new Panel();
			mainpanel.setId("main-panel");
			mainpanel.setBorder(true);
			mainpanel.setTitle("Process Master Library");
	   	mainpanel.setAutoWidth( true

Re: working with % for gwt/gwtext widget(Panel) height

2009-02-18 Thread Manish Kumar
Hi All,

Could I please expect any talk on this? Every single contribution will be 
appreciated well as I am now on dead-end where I need to say yes or no. 

Regards,
Manish
  - Original Message - 
  From: Manish Kumar 
  To: Google-Web-Toolkit@googlegroups.com 
  Sent: Wednesday, February 18, 2009 2:19 PM
  Subject: working with % forgwt/gwtext widget(Panel) height


  Hi All,

  I am trying to use % with GWT/GWText widget(Panel). But this does not 
work.Could i know how to do or if any work around for this.

  Regards,
  Manish

  

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



working with % forgwt/gwtext widget(Panel) height

2009-02-18 Thread Manish Kumar
Hi All,

I am tiring to use % with GWT/GWText widget(Panel). But this does not 
work.Could i know how to do or if any work around for this.

Regards,
Manish
--~--~-~--~~~---~--~~
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: Apply CSS in editor area of RichTextArea

2009-02-17 Thread Manish Kumar
Hi All,

Could I please have any idea on this( in mail below ). 

Regards
Manish
  - Original Message - 
  From: Manish Kumar 
  To: Google-Web-Toolkit@googlegroups.com 
  Sent: Tuesday, February 17, 2009 10:46 AM
  Subject: Apply CSS in editor area of RichTextArea


  Hi Everybody,

  While working on adding RichTextArea with my project.I would like to apply 
css on editor area of Rich Text Area control so that I can set font behaviours 
( font-family, font-weight,font-size etc ) being displayed in the rich text 
area editing area a bit changeable.

  can anybody help me out to get rid of this issue.  

  Thanks
  Manish 

  

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



Fw: Apply CSS in editor area of RichTextArea

2009-02-17 Thread Manish Kumar
Hi All,

any idea on this?

Regards,
Manish

- Original Message - 
From: Manish Kumar 
To: Google-Web-Toolkit@googlegroups.com 
Sent: Tuesday, February 17, 2009 10:46 AM
Subject: Apply CSS in editor area of RichTextArea


Hi Everybody,

While working on adding RichTextArea with my project.I would like to apply css 
on editor area of Rich Text Area control so that I can set font behaviours ( 
font-family, font-weight,font-size etc ) being displayed in the rich text area 
editing area a bit changeable.

can anybody help me out to get rid of this issue.  

Thanks
Manish 



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



Apply CSS in editor area of RichTextArea

2009-02-16 Thread Manish Kumar
Hi Everybody,

While working on adding RichTextArea with my project.I would like to apply css 
on editor area of Rich Text Area control so that I can set font behaviours ( 
font-family, font-weight,font-size etc ) being displayed in the rich text area 
editing area a bit changeable.

can anybody help me out to get rid of this issue.  

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



Opening a new browser window in gwt

2009-02-04 Thread Manish Kumar
Hi everybody,

I am trying to open a new browser window on click. I am trying this line of 
code but this does work ( no action noticed ) though not getting error also ( I 
checked my listener, that is ok ). 

com.google.gwt.user.client.Window.open( location, fileTitle, 
"menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes" ); 

Could anybody help me out to get rid of this.

Regards,
Manish
--~--~-~--~~~---~--~~
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 add Listeners in flex table

2009-01-25 Thread manish

Hi All,
Is there a way to add Custom Listeners in a flex table. Basically
I am interested in the events like the Row added and row deleted.

Thanks
Manish
--~--~-~--~~~---~--~~
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: TreeNode Listener issues

2009-01-19 Thread Manish Kumar

Hi EveryBody,

Can anybody help me out to get rid of this issue. I know this is not the 
right forum to put up.
However, I make a kind request to share the reason behind this.

Thanx & Regard,
Manish

- Original Message - 
From: "Manish Kumar" 
To: 
Sent: Friday, January 16, 2009 6:41 PM
Subject: Fw: TreeNode Listener issues


>
> any idea on this. please help me out.
>
> Thanx
> - Original Message - 
> From: "Manish Kumar" 
> To: 
> Sent: Friday, January 16, 2009 12:48 PM
> Subject: TreeNode Listener issues
>
>
>>
>>
>> Hi Everybody,
>>
>> Can I get any help on this : I am calling a listener in this fashion. I 
>> am
>> not getting what i am doing wrong. I am using GWT 1.5.2 and GWText
>> component.
>>
>> Please have a look at my code and help me out to find where i am wrong.
>> Please excuse and let me know if anything is not concerned to this forum.
>>
>> import com.gwtext.client.widgets.tree.TreeNode;
>> final TreeNode rootChild = new TreeNode( itemName );
>>
>> if( itmType != null && itmType.equalsIgnoreCase("folder") )
>>
>> {
>>
>>rootChild.setExpandable(true);
>>
>>
>>rootChild.addListener(new TreeNodeListenerAdapter() {
>>
>>
>>public void onClick(Node node, EventObject e) {
>>
>>try
>>
>>{
>>
>>RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
>> URL.encode(tempUrl));
>>
>>
>>builder.setCallback(new RequestCallback()
>>
>>{
>>
>>public void onError(Request request, Throwable exception)
>>
>>  {
>>
>>MessageBox.alert( exception.getLocalizedMessage() );
>>
>>  }
>>
>>public void onResponseReceived(Request request, Response
>> response)
>>
>> {
>>
>>if (200 == response.getStatusCode())
>>
>>  {
>>
>>MessageBox.alert( response.getText() );
>>
>>buildTreeNode ( response.getText(), rootChild, root,
>> tempUrl );
>>
>>  }
>>
>>else
>>
>>  {
>>
>>   MessageBox.alert(response.getStatusCode() +" : "+
>> response.getStatusText() +":"+ response.getText() );
>>
>>  }
>>
>>   }
>>
>>});
>>
>>builder.send();
>>
>>}
>>
>>catch(RequestException ex)
>>
>>{
>>
>>System.out.println( "Exception occurred during sub tree node: "+
>> ex.getLocalizedMessage());
>>
>>}
>>
>> }
>>
>> });
>>
>> }
>>
>> else
>>
>> {
>>
>>rootChild.addListener(new TreeNodeListenerAdapter()
>>
>>{
>>
>>public void onDblClick( Node node, EventObject e ) {
>>
>>try
>>
>> {
>>
>>System.out.println("xxx :");
>>
>>
>>RequestBuilder builder = new 
>> RequestBuilder(RequestBuilder.GET,
>> URL.encode(tempUrl));
>>
>>
>>builder.setCallback(new RequestCallback()
>>
>>{
>>
>>public void onError( Request request, Throwable exception )
>>
>> {
>>
>>MessageBox.alert( exception.getLocalizedMessage() );
>>
>>}
>>
>>
>>  public void onResponseReceived( Request request, Response
>> response )
>>
>>   {
>>
>>if ( 200 == response.getStatusCode() )
>>
>> {
>>
>>TabPanel tabPanel = new TabPanel();
>>
>>tabPanel.setTabPosition(Position.BOTTOM);
>>
>>tabPanel.setResizeTabs(true);
>>
>>tabPanel.setMinTabWidth(115);
>>
>>tabPanel.setTabWidth(135);
>>
>>tabPanel.setActiveTab(0);
>>
>>
>>Frame google = new Frame(itmPath);
>>
>>
>>Panel filePanel = new Panel("Google");
>>
>>filePanel.setLayout(new FitLayout());
>>
>>filePanel.setIconCls("tab-icon");
>>
>>filePanel.add(google);
>>
>>}
>>
>>else
>>
>>{
>>
>>MessageBox.alert( response.getStatusCode() +" : "+
>> response.getStatusText() +":"+ response.getText() );
>>
>>}
>>
>> }
>>
>> });
>>
>> builder.send();
>>
>> }
>>
>> catch(RequestException ex)
>>
>> {
>>
>> System.out.println( "Exception occurred during sub tree node: "+
>> ex.getLocalizedMessage());
>>
>> }
>>
>> }
>>
>> });
>>
>> }
>>
>>
>> Regards,
>> Manish
>>
>>
>> >
>
>
> > 


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



Fw: TreeNode Listener issues

2009-01-16 Thread Manish Kumar

any idea on this. please help me out.

Thanx
- Original Message - 
From: "Manish Kumar" 
To: 
Sent: Friday, January 16, 2009 12:48 PM
Subject: TreeNode Listener issues


>
>
> Hi Everybody,
>
> Can I get any help on this : I am calling a listener in this fashion. I am
> not getting what i am doing wrong. I am using GWT 1.5.2 and GWText
> component.
>
> Please have a look at my code and help me out to find where i am wrong.
> Please excuse and let me know if anything is not concerned to this forum.
>
> import com.gwtext.client.widgets.tree.TreeNode;
> final TreeNode rootChild = new TreeNode( itemName );
>
> if( itmType != null && itmType.equalsIgnoreCase("folder") )
>
> {
>
>rootChild.setExpandable(true);
>
>
>rootChild.addListener(new TreeNodeListenerAdapter() {
>
>
>public void onClick(Node node, EventObject e) {
>
>try
>
>{
>
>RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
> URL.encode(tempUrl));
>
>
>builder.setCallback(new RequestCallback()
>
>{
>
>public void onError(Request request, Throwable exception)
>
>  {
>
>MessageBox.alert( exception.getLocalizedMessage() );
>
>  }
>
>public void onResponseReceived(Request request, Response
> response)
>
> {
>
>if (200 == response.getStatusCode())
>
>  {
>
>MessageBox.alert( response.getText() );
>
>buildTreeNode ( response.getText(), rootChild, root,
> tempUrl );
>
>  }
>
>else
>
>  {
>
>   MessageBox.alert(response.getStatusCode() +" : "+
> response.getStatusText() +":"+ response.getText() );
>
>  }
>
>   }
>
>});
>
>builder.send();
>
>}
>
>catch(RequestException ex)
>
>{
>
>System.out.println( "Exception occurred during sub tree node: "+
> ex.getLocalizedMessage());
>
>}
>
> }
>
> });
>
> }
>
> else
>
> {
>
>rootChild.addListener(new TreeNodeListenerAdapter()
>
>{
>
>public void onDblClick( Node node, EventObject e ) {
>
>try
>
> {
>
>System.out.println("xxx :");
>
>
>RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
> URL.encode(tempUrl));
>
>
>builder.setCallback(new RequestCallback()
>
>{
>
>public void onError( Request request, Throwable exception )
>
> {
>
>MessageBox.alert( exception.getLocalizedMessage() );
>
>}
>
>
>  public void onResponseReceived( Request request, Response
> response )
>
>   {
>
>if ( 200 == response.getStatusCode() )
>
> {
>
>TabPanel tabPanel = new TabPanel();
>
>tabPanel.setTabPosition(Position.BOTTOM);
>
>tabPanel.setResizeTabs(true);
>
>tabPanel.setMinTabWidth(115);
>
>tabPanel.setTabWidth(135);
>
>tabPanel.setActiveTab(0);
>
>
>Frame google = new Frame(itmPath);
>
>
>Panel filePanel = new Panel("Google");
>
>filePanel.setLayout(new FitLayout());
>
>filePanel.setIconCls("tab-icon");
>
>filePanel.add(google);
>
>}
>
>else
>
>{
>
>MessageBox.alert( response.getStatusCode() +" : "+
> response.getStatusText() +":"+ response.getText() );
>
>}
>
> }
>
> });
>
> builder.send();
>
> }
>
> catch(RequestException ex)
>
> {
>
> System.out.println( "Exception occurred during sub tree node: "+
> ex.getLocalizedMessage());
>
> }
>
> }
>
> });
>
> }
>
>
> Regards,
> Manish
>
>
> > 


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



TreeNode Listener issues

2009-01-15 Thread Manish Kumar


Hi Everybody,

Can I get any help on this : I am calling a listener in this fashion. I am 
not getting what i am doing wrong. I am using GWT 1.5.2 and GWText 
component.

Please have a look at my code and help me out to find where i am wrong. 
Please excuse and let me know if anything is not concerned to this forum.

import com.gwtext.client.widgets.tree.TreeNode;
final TreeNode rootChild = new TreeNode( itemName );

if( itmType != null && itmType.equalsIgnoreCase("folder") )

{

rootChild.setExpandable(true);


rootChild.addListener(new TreeNodeListenerAdapter() {


public void onClick(Node node, EventObject e) {

try

{

RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, 
URL.encode(tempUrl));


builder.setCallback(new RequestCallback()

{

public void onError(Request request, Throwable exception)

  {

MessageBox.alert( exception.getLocalizedMessage() );

  }

public void onResponseReceived(Request request, Response 
response)

 {

if (200 == response.getStatusCode())

  {

MessageBox.alert( response.getText() );

buildTreeNode ( response.getText(), rootChild, root, 
tempUrl );

  }

else

  {

   MessageBox.alert(response.getStatusCode() +" : "+ 
response.getStatusText() +":"+ response.getText() );

  }

   }

});

builder.send();

}

catch(RequestException ex)

{

System.out.println( "Exception occurred during sub tree node: "+ 
ex.getLocalizedMessage());

}

}

});

}

else

{

rootChild.addListener(new TreeNodeListenerAdapter()

{

public void onDblClick( Node node, EventObject e ) {

try

 {

System.out.println("xxx :");


RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, 
URL.encode(tempUrl));


builder.setCallback(new RequestCallback()

{

public void onError( Request request, Throwable exception )

 {

MessageBox.alert( exception.getLocalizedMessage() );

}


  public void onResponseReceived( Request request, Response 
response )

   {

if ( 200 == response.getStatusCode() )

 {

TabPanel tabPanel = new TabPanel();

tabPanel.setTabPosition(Position.BOTTOM);

tabPanel.setResizeTabs(true);

tabPanel.setMinTabWidth(115);

tabPanel.setTabWidth(135);

tabPanel.setActiveTab(0);


Frame google = new Frame(itmPath);


Panel filePanel = new Panel("Google");

filePanel.setLayout(new FitLayout());

filePanel.setIconCls("tab-icon");

filePanel.add(google);

}

else

{

MessageBox.alert( response.getStatusCode() +" : "+ 
response.getStatusText() +":"+ response.getText() );

}

}

});

builder.send();

}

catch(RequestException ex)

{

System.out.println( "Exception occurred during sub tree node: "+ 
ex.getLocalizedMessage());

}

}

});

}


Regards,
Manish 


--~--~-~--~~~---~--~~
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 make scrollable flex table with header row fixed

2009-01-09 Thread Manish Gupta

Anybody implemented scrollable Flex table. Please send your inputs
what will be the strategy to develop such a component
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Help needed for Scrollable Table with Header fixed

2009-01-09 Thread Manish Gupta

Hi,
Did anybody implemented Scrollable table with header fixed. we are
already having one GWT table developed for our application but now we
need to enhance this table in order to have scrolling functionality
with fixed header.

quick reply will be highly appreciated. Any example code will really
help us.

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



validation framework

2009-01-06 Thread manish

Is there any framework which can validate the user inputs at the
client side as well as server side?

--~--~-~--~~~---~--~~
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 and existing project

2008-12-14 Thread Manish Kumar

Hi,

As per my latest experience, same thing ihave done. what you need to do that 
u create a separate GWT project with your new stuffs and then compiled that 
with xs-linker.

Now, you deploy the compiled source to your server in a jar or war form.

then, load the GWT project , you can get the all neccesaary information for 
loading from this link i.e http://developerlife.com/tutorials/?p=231

Plz let us know if you have any difficulties.

Regards,
Manish
- Original Message - 
From: "Dmytro Mantula AKA DieZ" 
To: "Google Web Toolkit" 
Sent: Monday, December 15, 2008 11:19 AM
Subject: GWT and existing project


>
> Hi, guys! I need some help...
>
> I have existing application, client-side is based on HTML, CSS, JS.
> But I would use _SOME_ GWT features, do not making whole GUI based on
> GWT.
>
> For example, I have existing fields and buttons on pages.
> And I would like to make GWT-based fields validation and GWT-Ext
> popups How to do it?
>
> > 


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



RequestBuilder doesn't work when gwt app war loaded inside iframe at the client machine

2008-12-04 Thread Manish Kumar

Hi,

I am working on GWT from acouple of months. Now I am almost close to achieve 
my first assisgnment on GWT.
Thanx everyone to provide much needed idea on various occasion.

Right now I have a deployment issue which is stopping me to bind up my first 
set of work.

I have made an GWT application which uses RPC , RequestBuilder call and some 
widgets.
Everything runs fine in host mode even i am able to access an external 
server using rpc and RequestBuilder. But when I packed this GWT app up in 
war file and hosted on my external server and loaded GWT app using a iframe 
from a HTML on client machine.
then request made using RequestBuilder gets failed. This says status code : 
( 404 : /pm/comments/xxx.xml not found). The remarkable thing is that this 
even doesnot show complete url as my request Url was 
http://10.19.74.129:8000//pm/comments/xxx.xml

Can anybody help me out to get rid of .

Cheers
Manish

 


--~--~-~--~~~---~--~~
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: How to pass a set parameter with iFrame/window which host GWT HTML from a javascript code

2008-11-30 Thread Manish Kumar

Hi,

Sorry for raising this issue again. But I am getting stuck up at this point 
as per my new approach.

I am now able to host GWT from my external HTML/website.
The way I have done is on click of a button in my html , I open a new window
which loads the GWT Host HTML which in turns calls a JSNI method.
I am facing some issue when i pass some parameter to GWT.

Please help me out to find a way if this is feasible.

Thanking you for much needed help & co-operation.

Regards
Manish


--~--~-~--~~~---~--~~
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: How to do cross site implementation in GWT

2008-11-28 Thread Manish Kumar

Hi Guys,

Any idea on this.

Maniish
- Original Message - 
From: "Manish Kumar" <[EMAIL PROTECTED]>
To: 
Sent: Friday, November 28, 2008 1:05 PM
Subject: Re: How to do cross site implementation in GWT


>
> Hi,
>
> There is a bit change in approach. Somehow i am now able to connect to GWT
> from my external HTML/website.
> The way I have done is on click of a button in my html , I open a new 
> window
> which loads the GWT Host HTML which in turns calls a JSNI method.
> The problem is now to pass some parameter from my website/HTML to GWT 
> native
> method.
>
> Please help me out to get some way.
>
> Thanking you for much needed help & co-operation.
>
> Regards
> Manish
>
> - Original Message - 
> From: "Manuel" <[EMAIL PROTECTED]>
> To: ; <[EMAIL PROTECTED]>
> Sent: Thursday, November 27, 2008 1:26 AM
> Subject: Re: How to do cross site implementation in GWT
>
>
>>
>> One thing I just noticed in your code is that you are  exporting java
>> methods to javascript. When I tryied that a few weeks ago I could not
>> figure out how the instance expression part worked, so I only have
>> tried this with static methods
>> e.g.
>>
>> public static int displayDialog(String companyId, String companyName) {
>> ResponseDialog.getInstance().doSplash(companyId, companyName);
>> return 0;
>> }
>> public static native void exportJavaMethod() /*-{
>> $wnd.sendEmail =
>> @com.fbg.client.Emailer::displayDialog(Ljava/lang/String;Ljava/lang/String;);
>> }-*/;
>> and then calling the function from any javascript code in the host as
>> sendEmail(id, name)
>>
>> Perhaps you can try changing PMGWTHtmlUtils::invokeGWT to be a static
>> function
>>
>>
>> On Wed, Nov 26, 2008 at 11:32 AM, Manuel <[EMAIL PROTECTED]> wrote:
>>> I pretty much followed the steps detailed in
>>>
>>> http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=FAQ_JSONFeedsFromOtherDomain
>>>
>>> Plus I am passing parameters via javascript variables in the host
>>> page. The code in the host page looks like:
>>>
>>> 
>>>var fbg_customerId = '238976';
>>>var fbg_type = 'vertical';
>>> 
>>> >> src="<a  rel="nofollow" href="http://www.gov-world.com/gwt/com.fbg.headlinesreader.HeadlinesReader.nocache.js"">http://www.gov-world.com/gwt/com.fbg.headlinesreader.HeadlinesReader.nocache.js"</a>;>
>>> 
>>> 
>>>
>>> in the onModuleLoad() function I call the following native function to
>>> read the javascript variables
>>>
>>>public native void getParameters() /*-{
>>>
>>> [EMAIL PROTECTED]::parameter_id =
>>> $wnd.fbg_customerId;
>>>
>>> [EMAIL PROTECTED]::parameter_format
>>> = $wnd.fbg_type;
>>> }-*/;
>>>
>>> and after that I call the makeJSONRequest() function which is declared
>>> as follows:
>>>
>>>
>>>public static native void makeJSONRequest(String url, JSONHandler
>>> handler) /*-{
>>>$wnd.jsonCallback = function(jsonObj) {
>>>
>>> @com.fbg.headlinesreader.client.HeadlinesReader::dispatchJSON(Lcom/google/gwt/core/client/JavaScriptObject;Lcom/fbg/headlinesreader/client/JSONHandler;)(jsonObj,
>>> handler);
>>>}
>>>
>>>// create SCRIPT tag, and set SRC attribute equal to JSON
>>> feed URL +
>>> callback function name
>>>var script = $wnd.document.createElement("script");
>>>script.setAttribute("src", url+"jsonCallback");
>>>script.setAttribute("type", "text/javascript");
>>>
>>> $wnd.document.getElementsByTagName("head")[0].appendChild(script);
>>>
>>>}-*/;
>>>
>>>public static void dispatchJSON(JavaScriptObject jsonObj,
>>> JSONHandler
>>> handler) {
>>>handler.handleJSON(jsonObj);
>>>}
>>>
>>>public void handleJSON(JavaScriptObject obj)  {
>>>// String s;
>>>if (obj == null) {
>>>// grr
>>>return;
>>>}
>>>
>>>JSONArray myarr;
>>>

Re: How to do cross site implementation in GWT

2008-11-28 Thread Manish Kumar

Hi,

There is a bit change in approach. Somehow i am now able to connect to GWT 
from my external HTML/website.
The way I have done is on click of a button in my html , I open a new window 
which loads the GWT Host HTML which in turns calls a JSNI method.
The problem is now to pass some parameter from my website/HTML to GWT native 
method.

Please help me out to get some way.

Thanking you for much needed help & co-operation.

Regards
Manish

- Original Message - 
From: "Manuel" <[EMAIL PROTECTED]>
To: ; <[EMAIL PROTECTED]>
Sent: Thursday, November 27, 2008 1:26 AM
Subject: Re: How to do cross site implementation in GWT


>
> One thing I just noticed in your code is that you are  exporting java
> methods to javascript. When I tryied that a few weeks ago I could not
> figure out how the instance expression part worked, so I only have
> tried this with static methods
> e.g.
>
> public static int displayDialog(String companyId, String companyName) {
> ResponseDialog.getInstance().doSplash(companyId, companyName);
> return 0;
> }
> public static native void exportJavaMethod() /*-{
> $wnd.sendEmail =
> @com.fbg.client.Emailer::displayDialog(Ljava/lang/String;Ljava/lang/String;);
> }-*/;
> and then calling the function from any javascript code in the host as
> sendEmail(id, name)
>
> Perhaps you can try changing PMGWTHtmlUtils::invokeGWT to be a static 
> function
>
>
> On Wed, Nov 26, 2008 at 11:32 AM, Manuel <[EMAIL PROTECTED]> wrote:
>> I pretty much followed the steps detailed in
>>
>> http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=FAQ_JSONFeedsFromOtherDomain
>>
>> Plus I am passing parameters via javascript variables in the host
>> page. The code in the host page looks like:
>>
>> 
>>var fbg_customerId = '238976';
>>var fbg_type = 'vertical';
>> 
>> > src="<a  rel="nofollow" href="http://www.gov-world.com/gwt/com.fbg.headlinesreader.HeadlinesReader.nocache.js"">http://www.gov-world.com/gwt/com.fbg.headlinesreader.HeadlinesReader.nocache.js"</a>;>
>> 
>> 
>>
>> in the onModuleLoad() function I call the following native function to
>> read the javascript variables
>>
>>public native void getParameters() /*-{
>> 
>> [EMAIL PROTECTED]::parameter_id =
>> $wnd.fbg_customerId;
>> 
>> [EMAIL PROTECTED]::parameter_format
>> = $wnd.fbg_type;
>> }-*/;
>>
>> and after that I call the makeJSONRequest() function which is declared
>> as follows:
>>
>>
>>public static native void makeJSONRequest(String url, JSONHandler 
>> handler) /*-{
>>$wnd.jsonCallback = function(jsonObj) {
>> 
>> @com.fbg.headlinesreader.client.HeadlinesReader::dispatchJSON(Lcom/google/gwt/core/client/JavaScriptObject;Lcom/fbg/headlinesreader/client/JSONHandler;)(jsonObj,
>> handler);
>>}
>>
>>// create SCRIPT tag, and set SRC attribute equal to JSON 
>> feed URL +
>> callback function name
>>var script = $wnd.document.createElement("script");
>>script.setAttribute("src", url+"jsonCallback");
>>script.setAttribute("type", "text/javascript");
>> 
>> $wnd.document.getElementsByTagName("head")[0].appendChild(script);
>>
>>}-*/;
>>
>>public static void dispatchJSON(JavaScriptObject jsonObj, 
>> JSONHandler
>> handler) {
>>handler.handleJSON(jsonObj);
>>}
>>
>>public void handleJSON(JavaScriptObject obj)  {
>>// String s;
>>if (obj == null) {
>>// grr
>>return;
>>}
>>
>>JSONArray myarr;
>>JSONObject myObj;
>>myarr = new JSONArray(obj);
>>for (int i=0; i>myObj = myarr.get(i).isObject();
>>headlines.add(  new Headline(
>> 
>> myObj.get("title").isString().stringValue().trim(),
>> 
>> myObj.get("link").isString().stringValue().trim(),
>> 
>> myObj.get("create_date").isString().stringValue().trim()
>>) );
>>}
>>showNews();  //and this finally adds widgets to the 
>> element
>> fbgPressReleases in the host page
>>  

Re: How to do cross site implementation in GWT

2008-11-26 Thread Manish Kumar

Hi Manuel,

Thanx for response.But I wanna know how do you passing the parameter from 
our website/HTML to gwt component.
is this by using JSNI.if yes , how do attached your compiled gwt app source 
to your website/html.This point is crucial for me
since i am not able to connect to gwt from our html in deployment mode( not 
hosted mode ).

please provide the detail about your approach.

Regards
Manish

- Original Message - 
From: "Manuel Aguilera" <[EMAIL PROTECTED]>
To: "Google Web Toolkit" 
Sent: Wednesday, November 26, 2008 1:13 AM
Subject: Re: How to do cross site implementation in GWT



I was having a similar Issue. I am working on an application that will
load a short list of headlines from our website via cross-site
json.The gwt files,  the json feed and the host HTML page reside on
different domains. On the Module XML format page in the developer
guide (http://code.google.com/docreader/#p=google-web-toolkit-
doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideModuleXml) the method
suggested was including something similar to:


  
  


however after uploading the output files I got a couple of permission
errors on Firefox, namely:

Permission denied to get property Window.document
http://192.168.1.145/com.fbg.headlinesreader.HeadlinesReader/6F72E8AB842459823620F4AC11938839.cache.html
Line 1

What I did was to remove the  element from the module xml file.
Mine looks as follows:














I am not sure why but it seems to be working ok now. I Hope this helps

Regards,
Manuel Aguilera



On Nov 25, 1:25 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>
> can anybody plz help me out to get the right path for cross site
> implementation.
>
> please go through the mail below and make me aware about my approach.
>
> Thanx & Regards
> Manish
>
> - Original Message -
> From: "Manish Kumar" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, November 24, 2008 11:12 AM
> Subject: How to do cross site implementation in GWT
>
> > Hi everybody,
>
> > I has working for 2 months on GWT( 1.5.3 ). I have been successful in
> > implementing various feature in GWT. Finally I am stuck at end for 
> > almost
> > 20
> > days in including my GWT project to a set of HTML files with passing a 
> > set
> > of values to GWT from HTML.
> > Previously also I put this issue in this forum as i was trying with JSNI
> > and
> > xs linker.Now i am running out of time. Time has come for 
> > decision.Thanks
> > for constant help and co-operation.
>
> > Now can anybody please confirm my approach? Since still I suspect my
> > approach.
>
> > I have a set of HTML files. I have made and GWT project including some
> > widgets , rpc and a external server( calling using request builder ). I
> > have
> > wriiten a JSNI method in GWT component which is called by a GWT method
> > called inside onModuleLoad.
> > I have wriiten a js method( on HTML side) which calls JSNI method.
>
> > I compiled the GWT component using xs linker and added nocache.js in my
> > HTML(in HEAD part). I am expecting that this will invoke GWT component 
> > as
> > js
> > method ( html side ) is called on click of a button displayed in HTML.
>
> > A couple of months back I had got this but I don't understand why this 
> > is
> > not working this time.There is a remarkable observation is that 
> > previously
> > I
> > had got xs-nocache.js and my JSNI method inside that.This I am not 
> > getting
> > now.
>
> > One more thing I would like to know that what is the role of cache.js?
>
> > Can anybody provide me what is mistake/is this workable or not.
>
> > Regards
> > Manish



--~--~-~--~~~---~--~~
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: How to do cross site implementation in GWT

2008-11-25 Thread Manish Kumar

Hi everybody,

can anybody plz help me out to get the right path for cross site 
implementation.

please go through the mail below and make me aware about my approach.

Thanx & Regards
Manish
- Original Message - 
From: "Manish Kumar" <[EMAIL PROTECTED]>
To: 
Sent: Monday, November 24, 2008 11:12 AM
Subject: How to do cross site implementation in GWT


>
> Hi everybody,
>
> I has working for 2 months on GWT( 1.5.3 ). I have been successful in
> implementing various feature in GWT. Finally I am stuck at end for almost 
> 20
> days in including my GWT project to a set of HTML files with passing a set
> of values to GWT from HTML.
> Previously also I put this issue in this forum as i was trying with JSNI 
> and
> xs linker.Now i am running out of time. Time has come for decision.Thanks
> for constant help and co-operation.
>
> Now can anybody please confirm my approach? Since still I suspect my
> approach.
>
> I have a set of  HTML files. I have made and GWT project including some
> widgets , rpc and a external server( calling using request builder ). I 
> have
> wriiten a JSNI method in GWT component which is called by a GWT method
> called inside onModuleLoad.
> I have wriiten a js method( on HTML side) which calls JSNI method.
>
> I compiled the GWT component using xs linker and added nocache.js in my
> HTML(in HEAD part). I am expecting that this will invoke GWT component as 
> js
> method ( html side ) is called on click of a button displayed in HTML.
>
> A couple of months back I had got this but I don't understand why this is
> not working this time.There is a remarkable observation is that previously 
> I
> had got xs-nocache.js and my JSNI method inside that.This I am not getting
> now.
>
> One more thing I would like to know that what is the role of cache.js?
>
> Can anybody provide me what is mistake/is this workable or not.
>
> Regards
> Manish
>
>
> > 


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



How to do cross site implementation in GWT

2008-11-23 Thread Manish Kumar

Hi everybody,

I has working for 2 months on GWT( 1.5.3 ). I have been successful in 
implementing various feature in GWT. Finally I am stuck at end for almost 20 
days in including my GWT project to a set of HTML files with passing a set 
of values to GWT from HTML.
Previously also I put this issue in this forum as i was trying with JSNI and 
xs linker.Now i am running out of time. Time has come for decision.Thanks 
for constant help and co-operation.

Now can anybody please confirm my approach? Since still I suspect my 
approach.

I have a set of  HTML files. I have made and GWT project including some 
widgets , rpc and a external server( calling using request builder ). I have 
wriiten a JSNI method in GWT component which is called by a GWT method 
called inside onModuleLoad.
I have wriiten a js method( on HTML side) which calls JSNI method.

I compiled the GWT component using xs linker and added nocache.js in my 
HTML(in HEAD part). I am expecting that this will invoke GWT component as js 
method ( html side ) is called on click of a button displayed in HTML.

A couple of months back I had got this but I don't understand why this is 
not working this time.There is a remarkable observation is that previously I 
had got xs-nocache.js and my JSNI method inside that.This I am not getting 
now.

One more thing I would like to know that what is the role of cache.js?

Can anybody provide me what is mistake/is this workable or not.

Regards
Manish 


--~--~-~--~~~---~--~~
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:how to work with xs-linker in gwt

2008-11-21 Thread Manish Kumar

Hi,

 My need is like cross-site implementation. Actually I have an HTML which
 display two buttons.Please make a note here that this HTML(external) could
 not be included in GET component.

 On click of buttons , I wanted to call GET component.

 My approach is to call a java native method with some parameter written in
 GET java file , where onModuleLoad is there on the click of Buttons.  My
 native method works well if we run GET separately.But when i go for
 integration with HTML
 this does not wrk. Now I compile the GET code using xs linker and included
 no-cache.js in my external HTML. I expect to make a call to GET java JSNI
 method. Months back I have tried , I succeeded. But currently this is not.
 I don't what I am missing.

 One markable point is that moths back I got my native method inside
 no-cache.js.

 Please let us know if anybody is having any alternative approach or can
 help me out.

 Manish
- Original Message - 
>> From: "Manuel Carrasco" <[EMAIL PROTECTED]>
>> To: "Google Web Toolkit" 
>> Sent: Thursday, November 20, 2008 10:49 PM
>> Subject: Re: Fw: how to work with xs-linker in gwt
>>
>>
>>
>> I dont understand what exactly you want.
>>
>> Any way, basically the only difference between the standard and the
>> cross-site compiler is:
>> - std compiler generates files 'xxx.cache.html' (javascript is inside
>> a  tag). This files are inserted in an iframe by the
>> xxx.no.cache.js. This doesnt work if the  xxx.cache.html cames from a
>> domain different of your application.html.
>> - xd compiler generates files 'xxx.cache.js' that 'xxx.no-cache.js'
>> inserts in your page creating a javascript link. This technique works
>> for cross-site.
>>
>> I think , the main reason for using the standard compiler is because
>> some browser versions (IE) dont work fine with gziped js.
>>
>>
>> Manolo
>>
>>
>>
>> On Nov 20, 3:08 pm, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
>>> Hi
>>>
>>> Thanks eggsy for a alternative.I ll take try on this.
>>>
>>> I have already added "xs" linker and then compile the GWT source.
>>>
>>> After that I am using compiled code in our HTML( including no-cache.js )
>>> for
>>> calling JNSI method call.
>>>
>>> Actually a couple of months back, I got succeeded in same way but this
>>> time
>>> i am not. The most crucial point for me is that time i was able to see 
>>> my
>>> JSNI java
>>> method in no-cache.js which this time it's not.
>>>
>>> Please let us know if i am wrong in approach or anybody having any
>>> alternative.
>>>
>>> Regards
>>> Manish
>>>
>>> - Original Message -
>>> From: "Manuel Carrasco" <[EMAIL PROTECTED]>
>>> To: "Google Web Toolkit" <Google-Web-Toolkit@googlegroups.com>
>>> Sent: Thursday, November 20, 2008 5:57 PM
>>> Subject: Re: Fw: how to work with xs-linker in gwt
>>>
>>> Include this line in your module.gwt.xml file
>>>
>>> <add-linker name="xs"/>
>>>
>>> On Nov 20, 11:22 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
>>> > Hi guys,
>>>
>>> > Please help me out if anybody having any idea on the issue mentioned
>>> > below
>>> > ??
>>>
>>> > Regards,
>>> > Manish
>>>
>>> > - Original Message -
>>> > From: Manish Kumar
>>> > To: Google-Web-Toolkit@googlegroups.com
>>> > Sent: Wednesday, November 19, 2008 6:17 PM
>>> > Subject: Re: how to work with xs-linker in gwt
>>>
>>> > Hi,
>>>
>>> > As asked , please have a look at my code :
>>>
>>> > GWT :
>>>
>>> > public void onModuleLoad(){
>>>
>>> > try
>>>
>>> > {
>>>
>>> > exportStaticMethod(this);
>>>
>>> > }
>>>
>>> > catch(Exception re)
>>>
>>> > {
>>>
>>> > MessageBox.alert(re.getMessage());
>>>
>>> > }
>>>
>>> > }
>>>
>>> > public native void exportStaticMethod(PMGWTHtmlUtils pmGWTHtmlUtils)
>>>
>>> > /*-{
>>>
>>> > $wnd.invokeGWT = function(bId,cId,mId,mName,cName)
>>>
>>> > {
>>>
>>> > [EMAIL 
>>> > PROTECTED]::

Re: Fw: how to work with xs-linker in gwt

2008-11-21 Thread Manish Kumar

 Hi,

 My need is like cross-site implementation. Actually I have an HTML which
 display two buttons.Please make a note here that this HTML(external) could
 not be included in GET component.

 On click of buttons , I wanted to call GET component.

 My approach is to call a java native method with some parameter written in
 GET java file , where onModuleLoad is there on the click of Buttons.  My
 native method works well if we run GET separately.But when i go for
 integration with HTML
 this does not wrk. Now I compile the GET code using xs linker and included
 no-cache.js in my external HTML. I expect to make a call to GET java JSNI
 method. Months back I have tried , I succeeded. But currently this is not. 
I
 don't what I am missing.

 One markable point is that moths back I got my native method inside
 no-cache.js.

 Please let us know if anybody is having any alternative approach or can 
help me out.

 Manish


> - Original Message - 
> From: "Manuel Carrasco" <[EMAIL PROTECTED]>
> To: "Google Web Toolkit" 
> Sent: Thursday, November 20, 2008 10:49 PM
> Subject: Re: Fw: how to work with xs-linker in gwt
>
>
>
> I dont understand what exactly you want.
>
> Any way, basically the only difference between the standard and the
> cross-site compiler is:
> - std compiler generates files 'xxx.cache.html' (javascript is inside
> a  tag). This files are inserted in an iframe by the
> xxx.no.cache.js. This doesnt work if the  xxx.cache.html cames from a
> domain different of your application.html.
> - xd compiler generates files 'xxx.cache.js' that 'xxx.no-cache.js'
> inserts in your page creating a javascript link. This technique works
> for cross-site.
>
> I think , the main reason for using the standard compiler is because
> some browser versions (IE) dont work fine with gziped js.
>
>
> Manolo
>
>
>
> On Nov 20, 3:08 pm, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
>> Hi
>>
>> Thanks eggsy for a alternative.I ll take try on this.
>>
>> I have already added "xs" linker and then compile the GWT source.
>>
>> After that I am using compiled code in our HTML( including no-cache.js )
>> for
>> calling JNSI method call.
>>
>> Actually a couple of months back, I got succeeded in same way but this
>> time
>> i am not. The most crucial point for me is that time i was able to see my
>> JSNI java
>> method in no-cache.js which this time it's not.
>>
>> Please let us know if i am wrong in approach or anybody having any
>> alternative.
>>
>> Regards
>> Manish
>>
>> - Original Message -
>> From: "Manuel Carrasco" <[EMAIL PROTECTED]>
>> To: "Google Web Toolkit" <Google-Web-Toolkit@googlegroups.com>
>> Sent: Thursday, November 20, 2008 5:57 PM
>> Subject: Re: Fw: how to work with xs-linker in gwt
>>
>> Include this line in your module.gwt.xml file
>>
>> <add-linker name="xs"/>
>>
>> On Nov 20, 11:22 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
>> > Hi guys,
>>
>> > Please help me out if anybody having any idea on the issue mentioned
>> > below
>> > ??
>>
>> > Regards,
>> > Manish
>>
>> > - Original Message -
>> > From: Manish Kumar
>> > To: Google-Web-Toolkit@googlegroups.com
>> > Sent: Wednesday, November 19, 2008 6:17 PM
>> > Subject: Re: how to work with xs-linker in gwt
>>
>> > Hi,
>>
>> > As asked , please have a look at my code :
>>
>> > GWT :
>>
>> > public void onModuleLoad(){
>>
>> > try
>>
>> > {
>>
>> > exportStaticMethod(this);
>>
>> > }
>>
>> > catch(Exception re)
>>
>> > {
>>
>> > MessageBox.alert(re.getMessage());
>>
>> > }
>>
>> > }
>>
>> > public native void exportStaticMethod(PMGWTHtmlUtils pmGWTHtmlUtils)
>>
>> > /*-{
>>
>> > $wnd.invokeGWT = function(bId,cId,mId,mName,cName)
>>
>> > {
>>
>> > [EMAIL 
>> > PROTECTED]::invokeGWT(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)(bId,cId,mId,mName,cName);
>>
>> > };
>>
>> > if($wnd.callGWTUtils){
>>
>> > $wnd.callGWTUtils();
>>
>> > }
>>
>> > }-*/;
>>
>> > public void invokeGWT( String bId,String cId,String mId,String
>> > mName,String cName ) throws RequestException {
>

Re: Fw: how to work with xs-linker in gwt

2008-11-20 Thread Manish Kumar

Hi,

My need is like cross-site implementation. Actually I have an HTML which 
display two buttons.Please make a note here that this HTML(external) could 
not be included in GET component.
On click of buttons , I wanted to call GET component.

My approach is to call a java native method with some parameter written in 
GET java file , where onModuleLoad is there on the click of Buttons.  My 
native method works well if we run GET separately.But when i go for 
integration with HTML
this does not wrk. Now I compile the GET code using xs linker and included 
no-cache.js in my external HTML. I expect to make a call to GET java JSNI 
method. Months back I have tried , I succeeded. But currently this is not. I 
don't what I am missing.

One markable point is that moths back I got my native method inside 
no-cache.js.

Please let us know if anybody is having any alternative approach or can help 
me out.

Manish
- Original Message - 
From: "Manuel Carrasco" <[EMAIL PROTECTED]>
To: "Google Web Toolkit" 
Sent: Thursday, November 20, 2008 10:49 PM
Subject: Re: Fw: how to work with xs-linker in gwt



I dont understand what exactly you want.

Any way, basically the only difference between the standard and the
cross-site compiler is:
- std compiler generates files 'xxx.cache.html' (javascript is inside
a  tag). This files are inserted in an iframe by the
xxx.no.cache.js. This doesnt work if the  xxx.cache.html cames from a
domain different of your application.html.
- xd compiler generates files 'xxx.cache.js' that 'xxx.no-cache.js'
inserts in your page creating a javascript link. This technique works
for cross-site.

I think , the main reason for using the standard compiler is because
some browser versions (IE) dont work fine with gziped js.


Manolo



On Nov 20, 3:08 pm, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
> Hi
>
> Thanks eggsy for a alternative.I ll take try on this.
>
> I have already added "xs" linker and then compile the GWT source.
>
> After that I am using compiled code in our HTML( including no-cache.js ) 
> for
> calling JNSI method call.
>
> Actually a couple of months back, I got succeeded in same way but this 
> time
> i am not. The most crucial point for me is that time i was able to see my
> JSNI java
> method in no-cache.js which this time it's not.
>
> Please let us know if i am wrong in approach or anybody having any
> alternative.
>
> Regards
> Manish
>
> - Original Message -
> From: "Manuel Carrasco" <[EMAIL PROTECTED]>
> To: "Google Web Toolkit" <Google-Web-Toolkit@googlegroups.com>
> Sent: Thursday, November 20, 2008 5:57 PM
> Subject: Re: Fw: how to work with xs-linker in gwt
>
> Include this line in your module.gwt.xml file
>
> <add-linker name="xs"/>
>
> On Nov 20, 11:22 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
> > Hi guys,
>
> > Please help me out if anybody having any idea on the issue mentioned 
> > below
> > ??
>
> > Regards,
> > Manish
>
> > - Original Message -
> > From: Manish Kumar
> > To: Google-Web-Toolkit@googlegroups.com
> > Sent: Wednesday, November 19, 2008 6:17 PM
> > Subject: Re: how to work with xs-linker in gwt
>
> > Hi,
>
> > As asked , please have a look at my code :
>
> > GWT :
>
> > public void onModuleLoad(){
>
> > try
>
> > {
>
> > exportStaticMethod(this);
>
> > }
>
> > catch(Exception re)
>
> > {
>
> > MessageBox.alert(re.getMessage());
>
> > }
>
> > }
>
> > public native void exportStaticMethod(PMGWTHtmlUtils pmGWTHtmlUtils)
>
> > /*-{
>
> > $wnd.invokeGWT = function(bId,cId,mId,mName,cName)
>
> > {
>
> > [EMAIL 
> > PROTECTED]::invokeGWT(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)(bId,cId,mId,mName,cName);
>
> > };
>
> > if($wnd.callGWTUtils){
>
> > $wnd.callGWTUtils();
>
> > }
>
> > }-*/;
>
> > public void invokeGWT( String bId,String cId,String mId,String
> > mName,String cName ) throws RequestException {
>
> > System.out.println( "  :"+ bId);
>
> > if(bId.equalsIgnoreCase("new"))
>
> > {
>
> > window = new Window();
>
> > BorderLayoutData centerData = new 
> > BorderLayoutData(RegionPosition.CENTER);
>
> > window.setTitle("Layout Window");
>
> > //window.setClosable(true);
>
> > window.setWidth(600);
>
> > window.setHeight(500);
>
> > window.setPlain(true);
>
> > wind

Re: Fw: how to work with xs-linker in gwt

2008-11-20 Thread Manish Kumar

Hi

Thanks eggsy for a alternative.I ll take try on this.

I have already added "xs" linker and then compile the GWT source.

After that I am using compiled code in our HTML( including no-cache.js ) for 
calling JNSI method call.

Actually a couple of months back, I got succeeded in same way but this time 
i am not. The most crucial point for me is that time i was able to see my 
JSNI java
method in no-cache.js which this time it's not.

Please let us know if i am wrong in approach or anybody having any 
alternative.

Regards
Manish
- Original Message - 
From: "Manuel Carrasco" <[EMAIL PROTECTED]>
To: "Google Web Toolkit" 
Sent: Thursday, November 20, 2008 5:57 PM
Subject: Re: Fw: how to work with xs-linker in gwt



Include this line in your module.gwt.xml file




On Nov 20, 11:22 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> Please help me out if anybody having any idea on the issue mentioned below 
> ??
>
> Regards,
> Manish
>
> - Original Message -
> From: Manish Kumar
> To: Google-Web-Toolkit@googlegroups.com
> Sent: Wednesday, November 19, 2008 6:17 PM
> Subject: Re: how to work with xs-linker in gwt
>
> Hi,
>
> As asked , please have a look at my code :
>
> GWT :
>
> public void onModuleLoad(){
>
> try
>
> {
>
> exportStaticMethod(this);
>
> }
>
> catch(Exception re)
>
> {
>
> MessageBox.alert(re.getMessage());
>
> }
>
> }
>
> public native void exportStaticMethod(PMGWTHtmlUtils pmGWTHtmlUtils)
>
> /*-{
>
> $wnd.invokeGWT = function(bId,cId,mId,mName,cName)
>
> {
>
> [EMAIL 
> PROTECTED]::invokeGWT(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)(bId,cId,mId,mName,cName);
>
> };
>
> if($wnd.callGWTUtils){
>
> $wnd.callGWTUtils();
>
> }
>
> }-*/;
>
> public void invokeGWT( String bId,String cId,String mId,String 
> mName,String cName ) throws RequestException {
>
> System.out.println( "  :"+ bId);
>
> if(bId.equalsIgnoreCase("new"))
>
> {
>
> window = new Window();
>
> BorderLayoutData centerData = new BorderLayoutData(RegionPosition.CENTER);
>
> window.setTitle("Layout Window");
>
> //window.setClosable(true);
>
> window.setWidth(600);
>
> window.setHeight(500);
>
> window.setPlain(true);
>
> window.setLayout(new BorderLayout());
>
> window.add(createAddCommentForm( "c0","c7","Test Process Model","process 
> overview") ,centerData);
>
> //window.setCloseAction(Window.HIDE);
>
> window.show();
>
> }
>
> else if(bId.equalsIgnoreCase("view"))
>
> {
>
> String destUrl = PMServerUrl + "processmaster/comments/"+mName+".xml";
>
> doViewCommentRequest(destUrl);
>
> }
>
> }
>
> After compiling the gwt component using xs linker , I am trying to use 
> this in HTML stuffs :
>
> 
>
>  src="com.pm.output.html.gwt.model.comment.PMGWTHtmlUtils.nocache.js">
>
> // pmxslutils.js
>
> function callGWTUtils( bttnId ) // This method id called on button click 
> on HTML.
> {
> if( currDispId != null )
> {
> invokeGWT( 
> bttnId,this.currDispId,this.mId,this.mName,this.currDispName );// This is 
> the vative method.
> }
>
> }
>
> Please let us know if this does not make sense.
>
> Regards,
> Manish
> - Original Message -
> From: "eggsy84" <[EMAIL PROTECTED]>
> To: "Google Web Toolkit" 
> Sent: Wednesday, November 19, 2008 4:50 PM
> Subject: Re: how to work with xs-linker in gwt
>
> Can you share any code? I'm not too clear on what you're trying to do?
>
> On Nov 19, 9:53 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
> > Hi,
>
> > I am trying the same, But unfortunately this does not work.
> > Please have a check on my approach , Though I am not suspected.
>
> > I have put my compiled code in my required directory and
> > included nocache.js to html stuffs then i am calling a native
> > function defined in GWT component.This does not make a call to
> > respective function.
>
> > Please correct me if i am wrong in my approach.
> > Regards,
> > Manish
>
> > - Original Message -
> > From: "eggsy84" <[EMAIL PROTECTED]>
> > To: "Google Web Toolkit" 
> > Sent: Wednesday, November 19, 2008 2:36 PM
> > Subject: Re: how to work with xs-linker in gwt
>
> > Hi there
>
> > No thats fine you can compile your GWT into Java using the GW

Fw: how to work with xs-linker in gwt

2008-11-20 Thread Manish Kumar
Hi guys,

Please help me out if anybody having any idea on the issue mentioned below ??

Regards,
Manish

- Original Message - 
From: Manish Kumar 
To: Google-Web-Toolkit@googlegroups.com 
Sent: Wednesday, November 19, 2008 6:17 PM
Subject: Re: how to work with xs-linker in gwt


Hi, 

As asked , please have a look at my code :

GWT : 

public void onModuleLoad(){

try

{

exportStaticMethod(this);



}

catch(Exception re)

{

MessageBox.alert(re.getMessage());

}

}


public native void exportStaticMethod(PMGWTHtmlUtils pmGWTHtmlUtils) 

/*-{


$wnd.invokeGWT = function(bId,cId,mId,mName,cName)

{ 

[EMAIL 
PROTECTED]::invokeGWT(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)(bId,cId,mId,mName,cName);

};


if($wnd.callGWTUtils){

$wnd.callGWTUtils();

}


}-*/;


public void invokeGWT( String bId,String cId,String mId,String mName,String 
cName ) throws RequestException {

System.out.println( "  :"+ bId); 


if(bId.equalsIgnoreCase("new"))

{

window = new Window(); 

BorderLayoutData centerData = new BorderLayoutData(RegionPosition.CENTER);

window.setTitle("Layout Window");

//window.setClosable(true);

window.setWidth(600);

window.setHeight(500);

window.setPlain(true);

window.setLayout(new BorderLayout());

window.add(createAddCommentForm( "c0","c7","Test Process Model","process 
overview") ,centerData);

//window.setCloseAction(Window.HIDE);

window.show(); 

}

else if(bId.equalsIgnoreCase("view"))

{

String destUrl = PMServerUrl + "processmaster/comments/"+mName+".xml";

doViewCommentRequest(destUrl);

}

}

After compiling the gwt component using xs linker , I am trying to use this in 
HTML stuffs :





// pmxslutils.js 

function callGWTUtils( bttnId ) // This method id called on button click on 
HTML.
{
  if( currDispId != null )
  {
   invokeGWT( bttnId,this.currDispId,this.mId,this.mName,this.currDispName );// 
This is the vative method.
}

}



Please let us know if this does not make sense.

Regards,
Manish
- Original Message - 
From: "eggsy84" <[EMAIL PROTECTED]>
To: "Google Web Toolkit" 
Sent: Wednesday, November 19, 2008 4:50 PM
Subject: Re: how to work with xs-linker in gwt



Can you share any code? I'm not too clear on what you're trying to do?

On Nov 19, 9:53 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying the same, But unfortunately this does not work.
> Please have a check on my approach , Though I am not suspected.
>
> I have put my compiled code in my required directory and
> included nocache.js to html stuffs then i am calling a native
> function defined in GWT component.This does not make a call to
> respective function.
>
> Please correct me if i am wrong in my approach.
> Regards,
> Manish
>
> - Original Message -
> From: "eggsy84" <[EMAIL PROTECTED]>
> To: "Google Web Toolkit" 
> Sent: Wednesday, November 19, 2008 2:36 PM
> Subject: Re: how to work with xs-linker in gwt
>
> Hi there
>
> No thats fine you can compile your GWT into Java using the GWT Hosted
> browser and providing you have the linker this will compile Cross Site
> compatible Javascript and then you can include the compiled up
> Javascript on any HTML page.
>
> EG: You may compile your GWT application up on machine A then make a
> web page on machine B and include the compiled up javascript file from
> Machine A on the web page on machine B.
>
> What doesn't work is when you try to communicate with a foreign server
> within hosted mode so basically when you're testing before you compile
> your Java to javascript you have to communicate with a server on the
> local machine.
>
> Regards,
>
> Eggsy
>
> On Nov 19, 5:50 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
> > Hi,
>
> > I have just taken a look on the link content, this seems quite useful.I
> > will
> > go through in details now.
>
> > Thanks for much needed stuffs floated on the web.
> > Do you mean that we can not do xs-compile in hosted mode.We understand
> > that
> > we would have to test on different browser.
> > The way i want to do is that we want to include nocache.js to our HTML
> > stuffs and call a JNSI method to invoke GWT utilities.
>
> > Please correct me if i am wrong in my understanding.
>
> > Regards
> > Manish
>
> > - Original Message -
> > From: "eggsy84" <[EMAIL PROTECTED]>
> > To: "Google Web Toolkit" 
> > Sent: Tuesday, November 18, 2008 3:09 PM
> > Subject: Re: how to work with xs-linker in gwt
>
> > Also I don'

Re: how to work with xs-linker in gwt

2008-11-19 Thread Manish Kumar
Hi 

As asked , please have a look at my code :

GWT : 

public void onModuleLoad(){

try

{

exportStaticMethod(this);



}

catch(Exception re)

{

MessageBox.alert(re.getMessage());

}

}


public native void exportStaticMethod(PMGWTHtmlUtils pmGWTHtmlUtils) 

/*-{


$wnd.invokeGWT = function(bId,cId,mId,mName,cName)

{ 

[EMAIL 
PROTECTED]::invokeGWT(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)(bId,cId,mId,mName,cName);

};


if($wnd.callGWTUtils){

$wnd.callGWTUtils();

}


}-*/;


public void invokeGWT( String bId,String cId,String mId,String mName,String 
cName ) throws RequestException {

System.out.println( "  :"+ bId); 


if(bId.equalsIgnoreCase("new"))

{

window = new Window(); 

BorderLayoutData centerData = new BorderLayoutData(RegionPosition.CENTER);

window.setTitle("Layout Window");

//window.setClosable(true);

window.setWidth(600);

window.setHeight(500);

window.setPlain(true);

window.setLayout(new BorderLayout());

window.add(createAddCommentForm( "c0","c7","Test Process Model","process 
overview") ,centerData);

//window.setCloseAction(Window.HIDE);

window.show(); 

}

else if(bId.equalsIgnoreCase("view"))

{

String destUrl = PMServerUrl + "processmaster/comments/"+mName+".xml";

doViewCommentRequest(destUrl);

}

}

After compiling the gwt component , I am trying to use this in HTML stuffs :





// pmxslutils.js 

function callGWTUtils( bttnId ) // This method id called on button click on 
HTML.
{
  if( currDispId != null )
  {
   invokeGWT( bttnId,this.currDispId,this.mId,this.mName,this.currDispName );// 
This is the vative method.
}

}



Please let us know if this does not make sense.

Regards,
Manish
- Original Message - 
From: "eggsy84" <[EMAIL PROTECTED]>
To: "Google Web Toolkit" 
Sent: Wednesday, November 19, 2008 4:50 PM
Subject: Re: how to work with xs-linker in gwt



Can you share any code? I'm not too clear on what you're trying to do?

On Nov 19, 9:53 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying the same, But unfortunately this does not work.
> Please have a check on my approach , Though I am not suspected.
>
> I have put my compiled code in my required directory and
> included nocache.js to html stuffs then i am calling a native
> function defined in GWT component.This does not make a call to
> respective function.
>
> Please correct me if i am wrong in my approach.
> Regards,
> Manish
>
> - Original Message -
> From: "eggsy84" <[EMAIL PROTECTED]>
> To: "Google Web Toolkit" 
> Sent: Wednesday, November 19, 2008 2:36 PM
> Subject: Re: how to work with xs-linker in gwt
>
> Hi there
>
> No thats fine you can compile your GWT into Java using the GWT Hosted
> browser and providing you have the linker this will compile Cross Site
> compatible Javascript and then you can include the compiled up
> Javascript on any HTML page.
>
> EG: You may compile your GWT application up on machine A then make a
> web page on machine B and include the compiled up javascript file from
> Machine A on the web page on machine B.
>
> What doesn't work is when you try to communicate with a foreign server
> within hosted mode so basically when you're testing before you compile
> your Java to javascript you have to communicate with a server on the
> local machine.
>
> Regards,
>
> Eggsy
>
> On Nov 19, 5:50 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
> > Hi,
>
> > I have just taken a look on the link content, this seems quite useful.I
> > will
> > go through in details now.
>
> > Thanks for much needed stuffs floated on the web.
> > Do you mean that we can not do xs-compile in hosted mode.We understand
> > that
> > we would have to test on different browser.
> > The way i want to do is that we want to include nocache.js to our HTML
> > stuffs and call a JNSI method to invoke GWT utilities.
>
> > Please correct me if i am wrong in my understanding.
>
> > Regards
> > Manish
>
> > - Original Message -
> > From: "eggsy84" <[EMAIL PROTECTED]>
> > To: "Google Web Toolkit" 
> > Sent: Tuesday, November 18, 2008 3:09 PM
> > Subject: Re: how to work with xs-linker in gwt
>
> > Also I don't think (at the time of writing) that GWT hosted mode
> > browser has Cross Site mode functionality so you may have to keep
> > compiling your widget and testing within a browser. Or simply set up a
> > test environment (tomcat locally or something) on your local machine.
>
> > Eggsy
&

Re: how to work with xs-linker in gwt

2008-11-19 Thread Manish Kumar

Hi,

I am trying the same, But unfortunately this does not work.
Please have a check on my approach , Though I am not suspected.

I have put my compiled code in my required directory and
included nocache.js to html stuffs then i am calling a native
function defined in GWT component.This does not make a call to
respective function.

Please correct me if  i am wrong in my approach.
Regards,
Manish

- Original Message - 
From: "eggsy84" <[EMAIL PROTECTED]>
To: "Google Web Toolkit" 
Sent: Wednesday, November 19, 2008 2:36 PM
Subject: Re: how to work with xs-linker in gwt



Hi there

No thats fine you can compile your GWT into Java using the GWT Hosted
browser and providing you have the linker this will compile Cross Site
compatible Javascript and then you can include the compiled up
Javascript on any HTML page.

EG: You may compile your GWT application up on machine A then make a
web page on machine B and include the compiled up javascript file from
Machine A on the web page on machine B.

What doesn't work is when you try to communicate with a foreign server
within hosted mode so basically when you're testing before you compile
your Java to javascript you have to communicate with a server on the
local machine.

Regards,

Eggsy



On Nov 19, 5:50 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have just taken a look on the link content, this seems quite useful.I 
> will
> go through in details now.
>
> Thanks for much needed stuffs floated on the web.
> Do you mean that we can not do xs-compile in hosted mode.We understand 
> that
> we would have to test on different browser.
> The way i want to do is that we want to include nocache.js to our HTML
> stuffs and call a JNSI method to invoke GWT utilities.
>
> Please correct me if i am wrong in my understanding.
>
> Regards
> Manish
>
> - Original Message -
> From: "eggsy84" <[EMAIL PROTECTED]>
> To: "Google Web Toolkit" 
> Sent: Tuesday, November 18, 2008 3:09 PM
> Subject: Re: how to work with xs-linker in gwt
>
> Also I don't think (at the time of writing) that GWT hosted mode
> browser has Cross Site mode functionality so you may have to keep
> compiling your widget and testing within a browser. Or simply set up a
> test environment (tomcat locally or something) on your local machine.
>
> Eggsy
>
> On Nov 18, 9:25 am, eggsy84 <[EMAIL PROTECTED]> wrote:
> > Hi there
>
> > To compile the application for Cross site you simply add  > name="xs" />
> > to your gwt.xml file.
>
> > In GWT 1.5 this now doesn't create xs-nocache.js it simply creates the
> > javascript as normal but it will be the xs version. (Took me a while
> > to realise this as well)
>
> > I had to do the same thing for a client and make a widget that could
> > be deployed on various machines - I wrote a quick tutorial with links
> > here
>
> >http://eggsylife.blogspot.com/2008/10/gwt-and-cross-site-jsonp-in-j2e...
>
> > Hope this helps
>
> > eggsy
>
> > On Nov 18, 8:49 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > While working to make a call to GWT from a eternal HTML using JSNI
> > > method , I am trying to compile our code using xs-linker.
>
> > > I don't understand why this does not work. I made an entry in for
> > > xs-linker in -gwt.xml then compile the our code in hosted browser.
> > > Can anybody please hint me what I am missing?
>
> > > One more thing I would like to confirm with all of you about my
> > > approach.
> > > My sole purpose is to add our compiled javascript code to HTML(
> > > external ) at any location. The way I expected is that my JSNI method
> > > will be available in xs-nocache.js (included in HTML).
>
> > > Can anybody please confirm on this?
>
> > > Regards,
>
> > > Manish


--~--~-~--~~~---~--~~
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: how to work with xs-linker in gwt

2008-11-18 Thread Manish Kumar

Hi,

I have just taken a look on the link content, this seems quite useful.I will 
go through in details now.

Thanks for much needed stuffs floated on the web.
Do you mean that we can not do xs-compile in hosted mode.We understand that 
we would have to test on different browser.
The way i want to do is that we want to include nocache.js to our HTML 
stuffs and call a JNSI method to invoke GWT utilities.

Please correct me if i am wrong in my understanding.

Regards
Manish

- Original Message - 
From: "eggsy84" <[EMAIL PROTECTED]>
To: "Google Web Toolkit" 
Sent: Tuesday, November 18, 2008 3:09 PM
Subject: Re: how to work with xs-linker in gwt



Also I don't think (at the time of writing) that GWT hosted mode
browser has Cross Site mode functionality so you may have to keep
compiling your widget and testing within a browser. Or simply set up a
test environment (tomcat locally or something) on your local machine.



Eggsy




On Nov 18, 9:25 am, eggsy84 <[EMAIL PROTECTED]> wrote:
> Hi there
>
> To compile the application for Cross site you simply add  name="xs" />
> to your gwt.xml file.
>
> In GWT 1.5 this now doesn't create xs-nocache.js it simply creates the
> javascript as normal but it will be the xs version. (Took me a while
> to realise this as well)
>
> I had to do the same thing for a client and make a widget that could
> be deployed on various machines - I wrote a quick tutorial with links
> here
>
> http://eggsylife.blogspot.com/2008/10/gwt-and-cross-site-jsonp-in-j2e...
>
> Hope this helps
>
> eggsy
>
> On Nov 18, 8:49 am, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > While working to make a call to GWT from a eternal HTML using JSNI 
> > method , I am trying to compile our code using xs-linker.
>
> > I don't understand why this does not work. I made an entry in for 
> > xs-linker in -gwt.xml then compile the our code in hosted browser.
> > Can anybody please hint me what I am missing?
>
> > One more thing I would like to confirm with all of you about my 
> > approach.
> > My sole purpose is to add our compiled javascript code to HTML( 
> > external ) at any location. The way I expected is that my JSNI method 
> > will be available in xs-nocache.js (included in HTML).
>
> > Can anybody please confirm on this?
>
> > Regards,
>
> > Manish


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



how to work with xs-linker in gwt

2008-11-18 Thread Manish Kumar
Hi,

While working to make a call to GWT from a eternal HTML using JSNI method , I 
am trying to compile our code using xs-linker.

I don't understand why this does not work. I made an entry in for xs-linker in 
-gwt.xml then compile the our code in hosted browser.
Can anybody please hint me what I am missing?
  
One more thing I would like to confirm with all of you about my approach.
My sole purpose is to add our compiled javascript code to HTML( external ) at 
any location. The way I expected is that my JSNI method will be available in 
xs-nocache.js (included in HTML).

Can anybody please confirm on this?  
  
Regards,
 
Manish

--~--~-~--~~~---~--~~
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: Problem with JSNI call to java method from javascript

2008-11-15 Thread Manish Kumar

Hi ,

Yes, you are correct. But how can we stop this.And also I may need to use 
the  "callGWTUtils" javascript api with parameter html tag id.

Thanks again for quick reply.

Regards
Manish

- Original Message - 
From: "olivier nouguier" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, November 15, 2008 4:44 PM
Subject: Re: Problem with JSNI call to java method from javascript


>
> Seem logic that the callback is called twice ...
> - HTML: onload of your frame with a parameter
> - GWT: onModuleLoad *without* parameter
>
> On Sat, Nov 15, 2008 at 11:40 AM, Manish Kumar <[EMAIL PROTECTED]> 
> wrote:
>>
>>
>> Hi olivier,
>>
>> The code i have written as follows :
>> public void onModuleLoad()
>>
>> {
>>
>>try{exportStaticMethod(this); }catch(Exception re){
>>
>>MessageBox.alert(re.getMessage());
>>
>>}
>>
>>}
>>
>>
>>public native void exportStaticMethod(PMGWTHtmlUtils 
>> pmGWTHtmlUtils)
>>
>>/*-{
>>
>>
>>$wnd.invokeGWT = function(bId,cId,mId,mName,cName)
>>
>>{
>>
>> 
>> [EMAIL 
>> PROTECTED]::invokeGWT(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)(bId,cId,mId,mName,cName);
>>
>>};
>>
>>
>>if($wnd.callGWTUtils){
>>
>>$wnd.callGWTUtils();
>>
>>}
>>
>>
>>}-*/;
>>
>> public void invokeGWT( String bId,String cId,String mId,String 
>> mName,String
>> cName ) throws RequestException {
>>
>> System.out.println( "  :"+ bId);
>>
>> }
>>
>> in javascript :
>>
>> function callGWTUtils( bttnId )
>>
>> {
>>
>>alert('xxx'+ bttnId);
>>
>>invokeGWT(
>> bttnId,"","","",""
>>  );
>>
>>/*if( currDispId != null ){
>>
>>invokeGWT( bttnId,currDispId );
>>
>>}*/
>>
>> }
>>
>> Html stuffs:
>>
>> 
>>
>> 
>>
>>
>> 
>>
>> 
>>
>> 
>>
>> PM HTML-GWT Wrapper
>>
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> > content='com.pm.output.html.gwt.model.comment.PMGWTHtmlUtils'>
>>
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>>
>> > href="js/ext/resources/css/ext-all.css">
>>
>>
>> > href="js/ext/resources/css/xtheme-aero.css"/>
>>
>>
>> > src="js/ext/adapter/yui/yui-utilities.js">
>>
>>
>> > src="js/ext/adapter/yui/ext-yui-adapter.js">
>>
>>
>> 
>>
>>
>> 
>>
>>
>> 
>>
>> * {
>>
>> font-family:Courier New,monospace;
>>
>> padding: 0;
>>
>> margin: 0;
>>
>> white-space: nowrap;
>>
>> font-size: 11px;
>>
>> }
>>
>>
>> .dp-highlighter
>>
>> {
>>
>> white-space: nowrap;
>>
>> overflow: visible;
>>
>> width: 600px;
>>
>> font-size: 11px;
>>
>> font-family:Courier New,monospace;
>>
>> }
>>
>> 
>>
>> 
>>
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> > src="com.pm.output.html.gwt.model.comment.PMGWTHtmlUtils.nocache.js">
>>
>> 
>>
>> 
>>
>>
>> 
>>
>> 
>>
>> Please let us know where i am wrong.
>> Regards
>>
>> Manish
>>
>>
>> - Original Message -
>> From: "olivier nouguier" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Saturday, November 15, 2008 3:43 PM
>> Subject: Re: Problem with JSNI call to java method from javascript
>>
>>
>>>
>>> On Sat, Nov 15, 2008 at 8:31 AM, Manish Kumar <[EMAIL PROTECTED]>
>>> wrote:
>>>>
>>>> Hi,
>>>>
>>

getValuesAString() of HTMLEditor returns text containing HTML tags and HTML character

2008-11-15 Thread Manish Kumar
Hi,

I am using HTMLEditor to enter some text.When I get the entered text using 
getValuesAString() , this returns text including 
HTML tags() and HTML character ( ) which causes problem while being 
parsed in the xml including these text.

Can anybody let us know how to avoid this except using CDATA.

Regards

Manish

--~--~-~--~~~---~--~~
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: Problem with JSNI call to java method from javascript

2008-11-15 Thread Manish Kumar


Hi olivier,

The code i have written as follows :
public void onModuleLoad()

{

try{exportStaticMethod(this); }catch(Exception re){

MessageBox.alert(re.getMessage());

}

}


public native void exportStaticMethod(PMGWTHtmlUtils pmGWTHtmlUtils)

/*-{


$wnd.invokeGWT = function(bId,cId,mId,mName,cName)

{

[EMAIL 
PROTECTED]::invokeGWT(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)(bId,cId,mId,mName,cName);

};


if($wnd.callGWTUtils){

$wnd.callGWTUtils();

}


}-*/;

public void invokeGWT( String bId,String cId,String mId,String mName,String 
cName ) throws RequestException {

System.out.println( "  :"+ bId);

}

in javascript :

function callGWTUtils( bttnId )

{

alert('xxx'+ bttnId);

invokeGWT( 
bttnId,"","","",""
 
 );

/*if( currDispId != null ){

invokeGWT( bttnId,currDispId );

}*/

}

Html stuffs:












PM HTML-GWT Wrapper










































* {

font-family:Courier New,monospace;

padding: 0;

margin: 0;

white-space: nowrap;

font-size: 11px;

}


.dp-highlighter

{

white-space: nowrap;

overflow: visible;

width: 600px;

font-size: 11px;

font-family:Courier New,monospace;

}












































Please let us know where i am wrong.
Regards

Manish


- Original Message - 
From: "olivier nouguier" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, November 15, 2008 3:43 PM
Subject: Re: Problem with JSNI call to java method from javascript


>
> On Sat, Nov 15, 2008 at 8:31 AM, Manish Kumar <[EMAIL PROTECTED]> 
> wrote:
>>
>> Hi,
>>
>> Thanks for your much needed help.
> U welcome :)
>> This seems working but it calls the same method twice so my original 
>> value
>> is lost.
> Strange could you send me your code ?
>> Any idea about this.
>>
>> Regards
>> Manish
>>
>> - Original Message -
>> From: "olivier nouguier" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Friday, November 14, 2008 10:07 PM
>> Subject: Re: Problem with JSNI call to java method from javascript
>>
>>
>>>
>>> hum it should works ... (you don't give the "this" reference" ...
>>>
>>> Here a full sample that work :)
>>>
>>> ### GWT module
>>> package test.client;
>>>
>>> import com.google.gwt.core.client.EntryPoint;
>>> import com.google.gwt.user.client.Window;
>>>
>>> public class MyModule implements EntryPoint {
>>>
>>> public void onModuleLoad() {
>>>
>>> init(this);
>>>
>>> }
>>>
>>> public void gwtFunction(String message) {
>>> Window.alert(message);
>>> }
>>>
>>> private native void init(MyModule zis) /*-{
>>>
>>>  $wnd.injectedFunction = function(message){
>>>
>>> [EMAIL PROTECTED]::gwtFunction(Ljava/lang/String;)(message)
>>>  }
>>>
>>>   if($wnd.jsOnload){
>>>  $wnd.jsOnload();
>>>   }
>>>
>>> }-*/;
>>>
>>> }
>>>
>>> ###
>>>
>>> ### HTML hosted page ###
>>> 
>>> 
>>>
>>> 
>>> 
>>> 
>>> Wrapper HTML for MyModule
>>>
>>> 
>>> 
>>> 
>>> 
>>> body,td,a,div,.p{font-family:arial,sans-serif}
>>> div,td{color:#00}
>>> a:link,.w,.w a:link{color:#cc}
>>> a:visited{color:#551a8b}
>>> a:active{color:#ff}
>>> 
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>> 
>>> >> style="width:0;height:0;border:0">
>>>
>>>   >> src="test.MyModule.nocache.js">
>>>   
>>>   function jsOnload(){
>>>   injectedFunction("Helo");
>>>   }
>>>   
>>>
>>> 
>>> 
>>> ###
>>>
>>> On Fri, Nov 14, 2008 at 3:37 PM, Manish Kumar <[EMAIL PROTECTED]>
>>> wrote:
>>>>
>>>> Hi olivier,

Re: Problem with JSNI call to java method from javascript

2008-11-14 Thread Manish Kumar

Hi,

Thanks for your much needed help.
This seems working but it calls the same method twice so my original value 
is lost.
Any idea about this.

Regards
Manish

- Original Message - 
From: "olivier nouguier" <[EMAIL PROTECTED]>
To: 
Sent: Friday, November 14, 2008 10:07 PM
Subject: Re: Problem with JSNI call to java method from javascript


>
> hum it should works ... (you don't give the "this" reference" ...
>
> Here a full sample that work :)
>
> ### GWT module
> package test.client;
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.user.client.Window;
>
> public class MyModule implements EntryPoint {
>
> public void onModuleLoad() {
>
> init(this);
>
> }
>
> public void gwtFunction(String message) {
> Window.alert(message);
> }
>
> private native void init(MyModule zis) /*-{
>
>  $wnd.injectedFunction = function(message){
> 
> [EMAIL PROTECTED]::gwtFunction(Ljava/lang/String;)(message)
>  }
>
>   if($wnd.jsOnload){
>  $wnd.jsOnload();
>   }
>
> }-*/;
>
> }
>
> ###
>
> ### HTML hosted page ###
> 
> 
>
> 
> 
> 
> Wrapper HTML for MyModule
>
> 
> 
> 
> 
> body,td,a,div,.p{font-family:arial,sans-serif}
> div,td{color:#00}
> a:link,.w,.w a:link{color:#cc}
> a:visited{color:#551a8b}
> a:active{color:#ff}
> 
>
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
>
>
> 
>  style="width:0;height:0;border:0">
>
>src="test.MyModule.nocache.js">
>   
>   function jsOnload(){
>   injectedFunction("Helo");
>   }
>   
>
> 
> 
> ###
>
> On Fri, Nov 14, 2008 at 3:37 PM, Manish Kumar <[EMAIL PROTECTED]> 
> wrote:
>>
>> Hi olivier,
>>
>> Thanks for your kind help.
>>
>> I tried this , this does not work with the exception
>> Could not find a native method with the signature
>> '@com.pm.output.html.gwt.model.comment.client.PMGWTHtmlUtils::exportStaticMethod()'
>>
>> which was not coming before.
>>
>> Please let us know where am I conceptually wrong.If anybody have 
>> alternative
>> idea , plz pass it.
>>
>> Regards
>> Manish
>>
>>
>> - Original Message -
>> From: "olivier nouguier" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Friday, November 14, 2008 7:36 PM
>> Subject: Re: Problem with JSNI call to java method from javascript
>>
>>
>>>
>>> Hi,
>>> I suspect (?) that your js code is call to soon ...
>>> The GWT is not yet initialized
>>>
>>> Please try this:
>>> ### GWT patch ###
>>> static
>>> native void exportStaticMethod()
>>> /*-{
>>> $wnd.invokeGWT = function(bId,cId,mId,mName,cName){
>>> [EMAIL 
>>> PROTECTED]::invokeGWT(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)
>>> (bId,cId,mId,mName,cName);
>>> };
>>> // Lazy call to onLoad
>>> if($wnd.my_onload){
>>>  $wnd.my_onload();
>>> }
>>> }-*/
>>> ;
>>> ### JS Patch in HTML page 
>>> // This function will be called by GWT module.
>>> function my_onload(){
>>> invokeGWT(
>>> "","","","",""
>>> );
>>> }
>>>
>>> By doing this the invokeGWT is call after the module initialise.
>>>
>>> HIH
>>>
>>> --
>>> Si l'ignorance peut servir de consolation, elle n'en est pas moins
>>> illusoire.
>>>
>>> >
>>
>>
>> >
>>
>
>
>
> -- 
> Si l'ignorance peut servir de consolation, elle n'en est pas moins 
> illusoire.
>
> > 


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



getValuesAString() of HTMLEditor returns text containing HTML tags and HTML character

2008-11-14 Thread Manish Kumar
Hi,

I am using HTMLEditor to enter some text.When I get the entered text using 
getValuesAString() , this returns text including 
HTML tags() and HTML character ( ) which causes problem while being 
parsed in the xml including these text.

Can anybody let us know how to avoid this except using CDATA.

Regards

Manish



 

--~--~-~--~~~---~--~~
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: Problem with JSNI call to java method from javascript

2008-11-14 Thread Manish Kumar

Hi olivier,

Thanks for your kind help.

I tried this , this does not work with the exception
Could not find a native method with the signature 
'@com.pm.output.html.gwt.model.comment.client.PMGWTHtmlUtils::exportStaticMethod()'

which was not coming before.

Please let us know where am I conceptually wrong.If anybody have alternative 
idea , plz pass it.

Regards
Manish


- Original Message - 
From: "olivier nouguier" <[EMAIL PROTECTED]>
To: 
Sent: Friday, November 14, 2008 7:36 PM
Subject: Re: Problem with JSNI call to java method from javascript


>
> Hi,
> I suspect (?) that your js code is call to soon ...
> The GWT is not yet initialized
>
> Please try this:
> ### GWT patch ###
> static
> native void exportStaticMethod()
> /*-{
> $wnd.invokeGWT = function(bId,cId,mId,mName,cName){
> [EMAIL 
> PROTECTED]::invokeGWT(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)
> (bId,cId,mId,mName,cName);
> };
> // Lazy call to onLoad
> if($wnd.my_onload){
>  $wnd.my_onload();
> }
> }-*/
> ;
> ### JS Patch in HTML page 
> // This function will be called by GWT module.
> function my_onload(){
> invokeGWT( 
> "","","","",""
> );
> }
>
> By doing this the invokeGWT is call after the module initialise.
>
> HIH
>
> -- 
> Si l'ignorance peut servir de consolation, elle n'en est pas moins 
> illusoire.
>
> > 


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



Problem with JSNI call to java method from javascript

2008-11-14 Thread Manish Kumar


Hi
 
Please help me out for a making a call java method from javascript using JSNI . 
My code follows :

** Java code

// exportStaticMethod is called on onModuleLoad
public static native void exportStaticMethod() 

/*-{


$wnd.invokeGWT = function(bId,cId,mId,mName,cName){

 [EMAIL 
PROTECTED]::invokeGWT(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)
 (bId,cId,mId,mName,cName);


};

}-*/;



public void invokeGWT( String bId,String cId,String mId,String mName,String 
cName ) throws RequestException {

System.out.println( "  :" ); 


}

 Javascript code :

// callGWTUtils is called from HTML (external , my idea is to include 
noCache.js in this HTML  to passed the call to GWT, please free to give any 
thought on this  )

 though I testing this using internal GWT html  

function callGWTUtils( bttnId )

{  alert('xxx'); // this appears .



invokeGWT( 
"","","","",""
 );

// This is not called as expected

}

Can anybody please correct me if I am wrong at any place. 

Regards,
 
Manish

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



Fw: Problem with JSNI call

2008-11-14 Thread Manish Kumar
Hi,

Sorry for the typo in mail below.
Thanks for reply. The point you have made I am aware of. I am testing in hosted 
mode only.
This doesn't work.

If any idea, please help me out.
  
Regards,
 
Manish
- Original Message - 
From: Manish Kumar 
To: Google-Web-Toolkit@googlegroups.com 
Sent: Friday, November 14, 2008 1:08 PM
Subject: Re: Problem with JSNI call


Hi,

Thanks for reply. The you hjave made I am aware of. I am testing in hosted mode 
only.
This doesn't work.

If any idea, please help me out.
  
Regards,
 
Manish
  - Original Message - 
  From: yunhui song 
  To: Google-Web-Toolkit@googlegroups.com 
  Sent: Friday, November 14, 2008 1:07 PM
  Subject: Re: Problem with JSNI call


  System.out work only on host mode.  
  When you use JSNI, it can be tested on web mode. 
  System.out has no affect on web mod. 
  So Use Window.alert() to output the message, it should work.


  Sammi


  On Thu, Nov 13, 2008 at 10:32 PM, Manish Kumar <[EMAIL PROTECTED]> wrote:

Hi
 
Thank all of you for providing continuos help and advice by this
group.
 
I am trying a call java method from javascript using JSNI. My code follows :

** Java code

// exportStaticMethod is called on onModul;eLoad
public static native void exportStaticMethod() /*-{

$wnd.invokeGWT = function(idparameter){ 
@com.pm.output.html.gwt.model.comment.client.PMGWTHtmlUtils::invokeGWT(Ljava/lang/String;)(idparameter);

};

}-*/;


public static void invokeGWT( String idparameter ) {

System.out.println( "  :"+ idparameter ); 

}

 Javascript code :

// callGWTUtils is called from HTML (external , my idea is to include 
noCache.js in this HTML  to passed the call to GWT, please free to give any 
thought on this  )

 though I testing this using internal GWT html  

function callGWTUtils( bttnId )

{  alert('xxx'); // this appears .

 invokeGWT( "" ); // This is not called as expected

}

Can anybody please correct me where I am doing wrong. 

Regards,
 
Manish








  

--~--~-~--~~~---~--~~
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: Problem with JSNI call

2008-11-13 Thread Manish Kumar
Hi,

Thanks for reply. The you hjave made I am aware of. I am testing in hosted mode 
only.
This doesn't work.

If any idea, please help me out.
  
Regards,
 
Manish
  - Original Message - 
  From: yunhui song 
  To: Google-Web-Toolkit@googlegroups.com 
  Sent: Friday, November 14, 2008 1:07 PM
  Subject: Re: Problem with JSNI call


  System.out work only on host mode. 
  When you use JSNI, it can be tested on web mode. 
  System.out has no affect on web mod. 
  So Use Window.alert() to output the message, it should work.


  Sammi


  On Thu, Nov 13, 2008 at 10:32 PM, Manish Kumar <[EMAIL PROTECTED]> wrote:

Hi
 
Thank all of you for providing continuos help and advice by this
group.
 
I am trying a call java method from javascript using JSNI. My code follows :

** Java code

// exportStaticMethod is called on onModul;eLoad
public static native void exportStaticMethod() /*-{

$wnd.invokeGWT = function(idparameter){ 
@com.pm.output.html.gwt.model.comment.client.PMGWTHtmlUtils::invokeGWT(Ljava/lang/String;)(idparameter);

};

}-*/;


public static void invokeGWT( String idparameter ) {

System.out.println( "  :"+ idparameter ); 

}

 Javascript code :

// callGWTUtils is called from HTML (external , my idea is to include 
noCache.js in this HTML  to passed the call to GWT, please free to give any 
thought on this  )

 though I testing this using internal GWT html  

function callGWTUtils( bttnId )

{  alert('xxx'); // this appears .

 invokeGWT( "" ); // This is not called as expected

}

Can anybody please correct me where I am doing wrong. 

Regards,
 
Manish









  

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



Problem with JSNI call

2008-11-13 Thread Manish Kumar
Hi
 
 Thank all of you for providing continuos help and advice by this
group.
 
I am trying a call java method from javascript using JSNI. My code follows :

** Java code

// exportStaticMethod is called on onModul;eLoad
public static native void exportStaticMethod() /*-{

$wnd.invokeGWT = function(idparameter){ 
@com.pm.output.html.gwt.model.comment.client.PMGWTHtmlUtils::invokeGWT(Ljava/lang/String;)(idparameter);

};

}-*/;


public static void invokeGWT( String idparameter ) {

System.out.println( "  :"+ idparameter ); 

}

 Javascript code :

// callGWTUtils is called from HTML (external , my idea is to include 
noCache.js in this HTML  to passed the call to GWT, please free to give any 
thought on this  )

 though I testing this using internal GWT html  

function callGWTUtils( bttnId )

{  alert('xxx'); // this appears .

 invokeGWT( "" ); // This is not called as expected

}

Can anybody please correct me where I am doing wrong. 

Regards,
 
 Manish


--~--~-~--~~~---~--~~
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: Request Builder doesn't invoke the server (external)

2008-11-11 Thread Manish Kumar

Hi,

Can anybody guide me anything simple to proxy the request at server,since we 
have only this solution to follow.
please provide if anybody is having script for this.

Regards,
Manish

- Original Message - 
From: "Thomas Broyer" <[EMAIL PROTECTED]>
To: "Google Web Toolkit" 
Sent: Monday, November 10, 2008 9:42 PM
Subject: Re: Request Builder doesn't invoke the server (external)





On 10 nov, 16:20, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
>
> PMRequestBuilder builder = new PMRequestBuilder
> ("PUT","http://10.19.74.129:8000/pm/pubmodel.jsp?path=comments";);
[...]
> Can anybody please help me to find out the mistake.

http://en.wikipedia.org/wiki/Same_origin_policy

You just cannot contact another "origin" from the one the script/page
originates from; you'll have to proxy the request at your own server.


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



Request Builder doesn't invoke the server (external)

2008-11-10 Thread Manish Kumar

Hi Everybody,

As I have used request builder to make an request to server, this does not 
even connect to server.

Here is my code :
public class CommentProviderServlet extends RemoteServiceServlet implements 
AddCommentService

{

private class PMRequestBuilder extends RequestBuilder

{

public PMRequestBuilder(String httpMethods,String url)

{

super(httpMethods,url);

 }

}


public String makeFiles( String destination, String commentText )

{

try

{

PMRequestBuilder builder = new PMRequestBuilder 
("PUT","http://10.19.74.129:8000/pm/pubmodel.jsp?path=comments";);


Request request = builder.sendRequest(null, new 
RequestCallback()

{

public void onError(Request request, Throwable exception)

{


System.out.println( exception.getMessage() );

}

public void onResponseReceived(Request request, Response 
response)

{


if (200 == response.getStatusCode())

{

System.out.println( response.getStatusCode() );

}

else

{

System.out.println( response.getStatusCode());

}

}

});


builder.setRequestData(commentText);

builder.send();

}

catch (RequestException e)

{

// Couldn't connect to server

e.printStackTrace();

 }


 return "File Saved.";

}

}

Can anybody  please help me to find out the mistake.

Thanx in advance

Manish



--~--~-~--~~~---~--~~
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: com.google.gwt.core.client.JavaScriptException: (TypeError): '$wnd.Ext.StatusBar' is null or not an object

2008-10-31 Thread Manish Kumar

Hi all,

I got the mistake(wrong path was given for ext-all.js) and resolved.Thanks 
Lother for
much needed help.

Thanks & Regards
Manish

- Original Message - 
From: "Manish Kumar" <[EMAIL PROTECTED]>
To: 
Sent: Friday, October 31, 2008 2:11 PM
Subject: Re: com.google.gwt.core.client.JavaScriptException: (TypeError): 
'$wnd.Ext.StatusBar' is null or not an object


>
> Hi all,
>
> I got the mistake(was given for ext-all.js) and resolved.Thanks Lother for
> much needed help.
>
> Thanks & Regards
> Manish
> - Original Message - 
> From: "Manish Kumar" <[EMAIL PROTECTED]>
> To: 
> Sent: Friday, October 31, 2008 10:24 AM
> Subject: Re: com.google.gwt.core.client.JavaScriptException: (TypeError):
> '$wnd.Ext.StatusBar' is null or not an object
>
>
>>
>> Hi Lother,
>>
>> Can you please elaborate this "You have only installed the 
>> Wrapper-Classes
>> around ext, but not ext itself.
>> Since I have put everything in classpath including ext jar. Though, I 
>> have
>> not done anyting with ext2.0.2.Can you please let me know to put this in
>> path.
>>
>> Thanks & Regards
>> Manish
>>
>> - Original Message - 
>> From: "Lothar Kimmeringer" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Thursday, October 30, 2008 9:31 PM
>> Subject: Re: com.google.gwt.core.client.JavaScriptException: (TypeError):
>> '$wnd.Ext.StatusBar' is null or not an object
>>
>>
>>>
>>> Manish Kumar schrieb:
>>>
>>>> com.google.gwt.core.client.JavaScriptException: (TypeError):
>>>> '$wnd.Ext.StatusBar' is null or not an object
>>>
>>> You have only installed the Wrapper-Classes around ext, but
>>> not ext itself.
>>>
>>>
>>> Regards, Lothar
>>>
>>> >
>>
>>
>> >
>
>
> > 


--~--~-~--~~~---~--~~
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: com.google.gwt.core.client.JavaScriptException: (TypeError): '$wnd.Ext.StatusBar' is null or not an object

2008-10-31 Thread Manish Kumar

Hi all,

I got the mistake(was given for ext-all.js) and resolved.Thanks Lother for 
much needed help.

Thanks & Regards
Manish
- Original Message - 
From: "Manish Kumar" <[EMAIL PROTECTED]>
To: 
Sent: Friday, October 31, 2008 10:24 AM
Subject: Re: com.google.gwt.core.client.JavaScriptException: (TypeError): 
'$wnd.Ext.StatusBar' is null or not an object


>
> Hi Lother,
>
> Can you please elaborate this "You have only installed the Wrapper-Classes
> around ext, but not ext itself.
> Since I have put everything in classpath including ext jar. Though, I have
> not done anyting with ext2.0.2.Can you please let me know to put this in
> path.
>
> Thanks & Regards
> Manish
>
> - Original Message - 
> From: "Lothar Kimmeringer" <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, October 30, 2008 9:31 PM
> Subject: Re: com.google.gwt.core.client.JavaScriptException: (TypeError):
> '$wnd.Ext.StatusBar' is null or not an object
>
>
>>
>> Manish Kumar schrieb:
>>
>>> com.google.gwt.core.client.JavaScriptException: (TypeError):
>>> '$wnd.Ext.StatusBar' is null or not an object
>>
>> You have only installed the Wrapper-Classes around ext, but
>> not ext itself.
>>
>>
>> Regards, Lothar
>>
>> >
>
>
> > 


--~--~-~--~~~---~--~~
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: com.google.gwt.core.client.JavaScriptException: (TypeError): '$wnd.Ext.StatusBar' is null or not an object

2008-10-30 Thread Manish Kumar

Hi Lother,

Can you please elaborate this "You have only installed the Wrapper-Classes 
around ext, but not ext itself.
Since I have put everything in classpath including ext jar. Though, I have 
not done anyting with ext2.0.2.Can you please let me know to put this in 
path.

Thanks & Regards
Manish

- Original Message - 
From: "Lothar Kimmeringer" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, October 30, 2008 9:31 PM
Subject: Re: com.google.gwt.core.client.JavaScriptException: (TypeError): 
'$wnd.Ext.StatusBar' is null or not an object


>
> Manish Kumar schrieb:
>
>> com.google.gwt.core.client.JavaScriptException: (TypeError):
>> '$wnd.Ext.StatusBar' is null or not an object
>
> You have only installed the Wrapper-Classes around ext, but
> not ext itself.
>
>
> Regards, Lothar
>
> > 


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



com.google.gwt.core.client.JavaScriptException: (TypeError): '$wnd.Ext.StatusBar' is null or not an object

2008-10-30 Thread Manish Kumar

Hi,

Can anybody please have clue about this error :

[ERROR] Unable to load module entry point class 
com.pm.output.html.gwt.model.comment.client.ExGwtExt (see associated 
exception for details)

com.google.gwt.core.client.JavaScriptException: (TypeError): 
'$wnd.Ext.StatusBar' is null or not an object
 number: -2146823281
 description: '$wnd.Ext.StatusBar' is null or not an object
 at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
 at com.gwtext.client.widgets.Component.(Component.java:108)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)

This seems the issue with the version of ext or any others.

My GWT is 1.5.2

GWText is 2.0.5

ext 2.0.2

If any body having any clue please let me know.

Thanks in advance
Regards
Manish



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



Drawing MultiColumnFormPanel with HTML Editor or RichTextArea

2008-10-30 Thread Manish Kumar
Hi EveryBody,

Sorry for a basic problem. I tried to do this myself but I have no way to 
proceed.

My problem is that I am try a get a MulticolumnFormPanel including HTML editor 
or RichTextArea Which is displayed on a PopUpPanel.
Please make a note that I don't want to use any external html though we have no 
problem to include css or javascript which as of I know we can do by GWT API.

My codes are as follows :

PopupPanel popup = new PopupPanel();

popup.center();

popup.add(createAddCommentForm());

popup.show();



private Panel createAddCommentForm() 

{


Panel panel = new Panel();


FormPanel formPanel = new FormPanel();

formPanel.setFrame(true);

formPanel.setTitle("Model Component Comments - "+ new Date() );

formPanel.setPaddings(5, 5, 5, 0);

formPanel.setWidth(600);

formPanel.setLabelAlign(Position.TOP);


Panel topPanel = new Panel();

topPanel.setLayout(new ColumnLayout());


Panel columnOnePanel = new Panel();

columnOnePanel.setLayout(new FormLayout());


TextField loginName = new TextField("Login Name : ", "user");

columnOnePanel.add(loginName, new AnchorLayoutData("45%"));


TextField loginPasswd = new TextField("Login Password : ", "passwd");

columnOnePanel.add(loginPasswd, new AnchorLayoutData("45%"));


topPanel.add(columnOnePanel, new ColumnLayoutData(.5));


formPanel.add(topPanel);


HtmlEditor htmlEditor = new HtmlEditor("Comments", "comments");

htmlEditor.setHeight(200);

formPanel.add(htmlEditor, new AnchorLayoutData("90%"));


formPanel.addButton(new Button("Save"));

formPanel.addButton(new Button("Cancel"));

panel.add(formPanel);

return panel;


}

Using the above mentioned code I am able to get the form but not in good look. 
Major issues are 

titles, labels do not come with grey background. 

HTML editor toolbar buttons do not come up correctly.This shows 
only grey background mark without pic.

As far as I understand  , I need to apply css or java script.   But how I am 
not able to get?

Can anybody please help me out. Is this possible without using any external 
HTML.

Thanks in advance,

Regards,

Manish

 

 

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



Http Request Method PUT in GWT Request Builder

2008-10-22 Thread Manish Kumar

Hi Everybody,

Thanks all of you for continuous help and support.

I have been working on gwt for 1 months back. I have learnt a lot from this 
Forum.

Right now, I am completely stuck off at on point. I have a web server which 
uploads the file using PUT method only. We have to put the file from GWT 
(using RequestBuilder) client to webserver.

At this point of time, this is quite problematic to change the server 
functionalities.

As the GWT doesn't suppport PUT method,We are completely stuck off

Can anybody please help me out to get the idea for providing the 
implementation of PUT method in GWT by any means.

Thanks
Manish
---
 Hi experts,
> When i tried to load image form another folder
> in public say images, its not loading and showing error like Resource
> images/myimage.jpg not
> found.
> I have given like
> ResourcesInterface extends ImmutableResourceBundle
> {
>
> /** @gwt.resource images/myjpg.jpg */
> public DataResource background();
>
>
>
> }
>
> its working fine when i put that image where source code lies.
>
> Could you please direct me where I'm wrong
>
> Thanks in advance
> Zujee
> > 


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



Fw: Invoke GWT Entry point from extrenal java script included in separate/external HTML

2008-09-30 Thread Manish Kumar

Hi Everybody,

Can I please expect any idea on the issue mention below?
Is this a workable the way I am trying to do?

Please provide if this is possible in some other ways.

Regards
Manish


- Original Message - 
From: "Manish Kumar" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, September 30, 2008 12:15 PM
Subject: Invoke GWT Entry point from extrenal java script included in 
separate/external HTML


>
> Hi everybody,
>
> Thanks all for great co-operation and support.
>
> I am a bit new to GWT Though i have learnt a lot from this mailing-list in
> last couple of weeks
>
> I am stuck up with How to call GWT component ( mean to say ,give the the
> control to GWT entry point class for excuting onModuleLoad  )
> from extrenal HTML document.
>
> While working on integartion of GWT with external component, I am bit
> confused.
> My requirement is like this : I have a html displayed in the browser which
> is having mutiple buttons.
> This HTML is not part of GWT .This is being displayed in browser by some
> other component(currently .Net).
> On click of HTML Button in the browser I want to call gwt component that
> makes a call either to external tomcat server
> or displayes GWT widgets (widget button click , it also makes a call to
> external tomcat).
>
> One more thing is that can I have mutiple HTML for a single entry point so 
> I
> can display various widget on requirement.I want to handle mutiple 
> condition
> in a single own entrypoint class( inside the method onModuleLoad ) .
>
> Can anybody please provide ideas to get rid of this.
>
> Regards
> Manish
>


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



Invoke GWT Entry point from extrenal java script included in separate/external HTML

2008-09-29 Thread Manish Kumar

Hi everybody,

Thanks all for great co-operation and support.

I am a bit new to GWT Though i have learnt a lot from this mailing-list in 
last couple of weeks

I am stuck up with How to call GWT component ( mean to say ,give the the 
control to GWT entry point class for excuting onModuleLoad  )
from extrenal HTML document.

While working on integartion of GWT with external component, I am bit 
confused.
My requirement is like this : I have a html displayed in the browser which 
is having mutiple buttons.
This HTML is not part of GWT .This is being displayed in browser by some 
other component(currently .Net).
On click of HTML Button in the browser I want to call gwt component that 
makes a call either to external tomcat server
or displayes GWT widgets (widget button click , it also makes a call to 
external tomcat).

One more thing is that can I have mutiple HTML for a single entry point so I 
can display various widget on requirement.I want to handle mutiple condition
in a single own entrypoint class( inside the method onModuleLoad ) .

Can anybody please provide ideas to get rid of this.

Regards
Manish


- Original Message - 
From: "Lothar Kimmeringer" <[EMAIL PROTECTED]>
To: 
Sent: Monday, September 29, 2008 5:16 PM
Subject: Re: * No source code is available for type java.io.BufferedWriter; 
did you forget to inherit a required module?*


>
> Manish Kumar schrieb:
>
>> The main issue is that jsp existed on external webserver accepts only 
>> file
>> path to save the comments content.
>
> I think you confuse PATH_INFO with file path. The path-info of a URL is
> everything in the URL after the actual resource, so given a JSP-page
> that is accessed
> via http://www.example.com/servletpath/process.jsp/my/path/info/hello.txt
> the PATH_INFO in that case would be /my/path/info/hello.txt (I write
> PATH_INFO that way because this is the variable being used when using
> the CGI-gateway.
>
> In servlets (i.e. in JSP-pages as well) you can access the path-info-
> value with getPathInfo() provided by the HttpServletRequest (that
> can be accessed with the variable request inside JSP-pages).
>
>> So I am force to create file having comments for each clicked item on the
>> browser.
>
> I still don't see a need for the creation of files but it is looking
> more like a special URL to be constructed. Again RequestBuilder would
> be the class of choice in that case. On the other hand, if your JSP-
> page expects a previous file-upload, you're screwed. In that case,
> before starting a Signed Applet Project, you should consider extending
> your JSP-page/servlet to accept the "file" as content of a POST-request.
>
>> Sorry to ask Once more about (2) as I am bit confused , does RPC 
>> mechanisnm
>> work on production environment also.   If yes ,Can I process as mention 
>> in
>
> RPC works on production systems as well. gwt-servlet.jar and your server-
> classes must be in the classpath of your web-application/server. As well,
> your web.xml must contain a servlet-entry for your servlet. If you want
> to use the PATH_INFO-functionality, you might need two entries, one
> with the URL-pattern /MyServletPattern and /MyServletPattern/*
>
>
> Regards, Lothar
>
> > 


--~--~-~--~~~---~--~~
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: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*

2008-09-29 Thread Manish Kumar

Hi Lothar and all,

Thank all of you very much for much needed stuffs and great support.
Atlast, I  implemented by writing a separate servlet in our web 
container(external) which accepts the request URL (contains all file 
information and comment text )and write the file inside the server.

Regards
Manish


- Original Message - 
From: "Lothar Kimmeringer" <[EMAIL PROTECTED]>
To: 
Sent: Monday, September 29, 2008 5:16 PM
Subject: Re: * No source code is available for type java.io.BufferedWriter; 
did you forget to inherit a required module?*


>
> Manish Kumar schrieb:
>
>> The main issue is that jsp existed on external webserver accepts only 
>> file
>> path to save the comments content.
>
> I think you confuse PATH_INFO with file path. The path-info of a URL is
> everything in the URL after the actual resource, so given a JSP-page
> that is accessed
> via http://www.example.com/servletpath/process.jsp/my/path/info/hello.txt
> the PATH_INFO in that case would be /my/path/info/hello.txt (I write
> PATH_INFO that way because this is the variable being used when using
> the CGI-gateway.
>
> In servlets (i.e. in JSP-pages as well) you can access the path-info-
> value with getPathInfo() provided by the HttpServletRequest (that
> can be accessed with the variable request inside JSP-pages).
>
>> So I am force to create file having comments for each clicked item on the
>> browser.
>
> I still don't see a need for the creation of files but it is looking
> more like a special URL to be constructed. Again RequestBuilder would
> be the class of choice in that case. On the other hand, if your JSP-
> page expects a previous file-upload, you're screwed. In that case,
> before starting a Signed Applet Project, you should consider extending
> your JSP-page/servlet to accept the "file" as content of a POST-request.
>
>> Sorry to ask Once more about (2) as I am bit confused , does RPC 
>> mechanisnm
>> work on production environment also.   If yes ,Can I process as mention 
>> in
>
> RPC works on production systems as well. gwt-servlet.jar and your server-
> classes must be in the classpath of your web-application/server. As well,
> your web.xml must contain a servlet-entry for your servlet. If you want
> to use the PATH_INFO-functionality, you might need two entries, one
> with the URL-pattern /MyServletPattern and /MyServletPattern/*
>
>
> Regards, Lothar
>
> > 


--~--~-~--~~~---~--~~
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: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*

2008-09-29 Thread Manish Kumar

Hi Lothar,

Thank you for providing such great help.
The Actual requirements is to add the comments for each item appeared on the 
browser.
I have created  a richtextArea with the buttons for entering the comments 
for each clicked item shown on the browser.
Now, once click over the buttons, It should be submitted to web server( 
tomcat ) already running for the whole product to save in the  server 
filesystem.This is external webserver
not gwt tomcat web server.

The main issue is that jsp existed on external webserver accepts only file 
path to save the comments content.
So I am force to create file having comments for each clicked item on the 
browser.For avoiding the creating files on client, I had suggested no (1) 
mentioned below.
Is this right fit? .

Sorry to ask Once more about (2) as I am bit confused , does RPC mechanisnm 
work on production environment also.   If yes ,Can I process as mention in 
(2).

Please provide your views for the same.

Regards,
Manish


- Original Message - 
From: "Lothar Kimmeringer" <[EMAIL PROTECTED]>
To: 
Sent: Monday, September 29, 2008 3:00 PM
Subject: Re: * No source code is available for type java.io.BufferedWriter; 
did you forget to inherit a required module?*


>
> Manish Kumar schrieb:
>
>> Actually,I wanted to send the request parameters for file information to
>> Tomcat webserver( already implemented for whole application. ). But The 
>> main
>> problem is that
>> I have to use already existing jsp which takes only file path.So,
>
> If you have to call an existing servlet/JSP-page, you can use
> RequestBuilder where you can construct your own HTTP-requests
> and interpret the result as you like.
>
>> 1) Would this be good if I write a servlet on webserver which would write
>> the file and use sendredirect to jsp?
>
> Not really. The only exception I see here is if you have to
> perform WebService-requests or if you have to contact a
> different server than the one your GWT-application has been
> loaded from (by default this is restricted).
>
>> 2)  Can I make a call rpc call to my own servlet in gwt tomcat server 
>> which
>> will write a file and sendredirect to my jsp on application web server.?
>> But , As per my study , rpc call is only for debugging so, it 
>> wouldn't
>> valid for production server.is this correct.?
>
> No, RPC is the way of choice communicating with the server
> from a GWT-application.
>
>> 3) or, as one of u suggested , write a applet with extended signature and
>> use some magic of JSNI.( for this, can anybody provide some more 
>> detail. )
>
> What exactly do you need the local file-access? If it's for
> a file-upload, there is a HTML-tag for that, i.e. you can
> use that inside GWT as well (using the FileUpload-widget).
> So if it's a file-upload we're talking about, use that,
> otherwise you will have to go the Applet-way or try to think
> over your concept and find a solution that doesn't need a
> local file-system.
>
>
> Regards, Lothar
>
> > 


--~--~-~--~~~---~--~~
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: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*

2008-09-29 Thread Manish Kumar

Hi Everybody,

Thank you all of providing much needed support.
Though I have implemented this by calling external java script using JSNI , 
I would like to change the way if it doesn't last long.
Actually,I wanted to send the request parameters for file information to 
Tomcat webserver( already implemented for whole application. ). But The main 
problem is that
I have to use already existing jsp which takes only file path.So,

1) Would this be good if I write a servlet on webserver which would write 
the file and use sendredirect to jsp?
2)  Can I make a call rpc call to my own servlet in gwt tomcat server which 
will write a file and sendredirect to my jsp on application web server.?
But , As per my study , rpc call is only for debugging so, it wouldn't 
valid for production server.is this correct.?
3) or, as one of u suggested , write a applet with extended signature and 
use some magic of JSNI.( for this, can anybody provide some more detail. )

please provide the suggestions and ideas if any others.

Regards
Manish

- Original Message - 
From: "Lothar Kimmeringer" <[EMAIL PROTECTED]>
To: 
Sent: Monday, September 29, 2008 12:57 PM
Subject: Re: * No source code is available for type java.io.BufferedWriter; 
did you forget to inherit a required module?*


>
> Hi Manish,
>
> I corrected your quoting to make it easier to read.
>
> Manish Kumar schrieb:
>> Arthur Kalmenson wrote:
>>> That link is for Java classes that can be used on the client side, not
>>> the server side. On the server side you can use any Java classes you
>>> want.
>>
>> This seems a bit confusive statement.As per my knowledge ,Packages 
>> mention
>> in JRE Emulation for GWT
>> on this location
>> (http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=RefJreEmulation
>>  )are applied to Both server as well as client.
>
> The JRE Emulation is valid for the client-part. Because it's a subset
> of the Java Runtime Library, it's of course valid for the server-side
> as well. But the server-side isn't limited to that because it's
> running inside a Java Virtual Machine, e.g. a Tomcat-server etc.
>
>> And also,for the same functionalitiy, I came to knew that we can call  a
>> external java script function
>> (resposible for creating and writing files) inside a GWT Code (client 
>> side)
>> using JSNI .Is this a good solution?
>
> There is no Javascript-function that allows you to write to the
> local filesystem. There are only hacks taking advantages of bugs
> in browsers to achieve that but this kind of thing don't last
> very long and is nothing I would expect inside a widget-library.
>
>> Please correct if I am wrong at any point.
>
> The link was correct ;-)
>
>
> Regards, Lothar
>
> > 


--~--~-~--~~~---~--~~
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: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*

2008-09-28 Thread Manish Kumar

Hi everybody,

* That link is for Java classes that can be used on the client side, not
the server side. On the server side you can use any Java classes you
want.
 *
This seems a bit confusive statement.As per my knowledge ,Packages mention 
in JRE Emulation for GWT
on this location 
(http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=RefJreEmulation
 
 )are applied to Both server as well as client.

And also,for the same functionalitiy, I came to knew that we can call  a 
external java script function
(resposible for creating and writing files) inside a GWT Code (client side) 
using JSNI .Is this a good solution?

Please correct if I am wrong at any point.

Regards,
Manish




- Original Message - 
From: "Arthur Kalmenson" <[EMAIL PROTECTED]>
To: "Google Web Toolkit" 
Sent: Monday, September 29, 2008 4:41 AM
Subject: Re: * No source code is available for type java.io.BufferedWriter; 
did you forget to inherit a required module?*



That link is for Java classes that can be used on the client side, not
the server side. On the server side you can use any Java classes you
want.

Regards,
Arthur Kalmenson

On Sep 28, 11:21 am, Adam T <[EMAIL PROTECTED]> wrote:
> Too add to Lothar's comment, you can find which Java classes you can
> use on server side by referring 
> here:http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...
>
> BufferedWriter and FileWriter are not included for the reasons already
> stated.
>
> //A
>
> On 27 Sep, 11:53, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
>
> > Hi everybody,
>
> > Thanks all of you for providing continuos support to each other.
>
> > I am trying to write a file on GWT Client ( inside the method
> > onModuleLoad )using BufferedWriter and FileWriter.
>
> > The problem is that It is compiled successfuly but on the run time it 
> > gives
> > :
>
> > * No source code is available for type java.io.BufferedWriter; did you
> > forget to inherit a required module?*
> > * No source code is available for type java.io.FileWriter; did you 
> > forget to
> > inherit a required module?*
> > * No source code is available for type java.io.IOException; did you 
> > forget
> > to inherit a required module?*
>
> > These seem a bit sily errors as I might not have included some required
> > module or jar file,But troubling me a lot.
>
> > I am using eclipse IDE and added all the jars to avoid any compilation
> > error.
>
> > And also is there any certian way to add module/lib/classpath for the 
> > same.
>
> > Usually I use *configure Build Path* and manual edit of gwt.xml.
>
> > Does this make any difference?
>
> > Can anybody please help me out to simulate which is the required for the
> > same?
>
> > Thanking in advance.
>
> > Regards
> > Manish


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



How to use any external java API in GWT application

2008-09-28 Thread Manish Kumar

Hi,
i am new to this GWT, i searched the net also for my problem but didnt
got any solution.

In my gwt application there is a textbox. i m calling weblogic APIs to
get some value from weblogic server, and i want to put that value in
that gwt textbox. But it seems like it is not possible in gwt..is
it.. !!!
i have put weblogic.jar file in the gwt application classpath.

please help me to do this.


Thanx,
Manish Kumar

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



* No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*

2008-09-27 Thread Manish Kumar

Hi everybody,

Thanks all of you for providing continuos support to each other.

I am trying to write a file on GWT Client ( inside the method 
onModuleLoad )using BufferedWriter and FileWriter.

The problem is that It is compiled successfuly but on the run time it gives 
:

* No source code is available for type java.io.BufferedWriter; did you 
forget to inherit a required module?*
* No source code is available for type java.io.FileWriter; did you forget to 
inherit a required module?*
* No source code is available for type java.io.IOException; did you forget 
to inherit a required module?*

These seem a bit sily errors as I might not have included some required 
module or jar file,But troubling me a lot.

I am using eclipse IDE and added all the jars to avoid any compilation 
error.

And also is there any certian way to add module/lib/classpath for the same.

Usually I use *configure Build Path* and manual edit of  gwt.xml.

Does this make any difference?

Can anybody please help me out to simulate which is the required for the 
same?

Thanking in advance.

Regards
Manish 


--~--~-~--~~~---~--~~
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: Regarding JNSI/make a call to GWT Widgets on click of HTML Buttons.

2008-09-26 Thread Manish Kumar

Hi Thomos,

Thanx for providing such a much needed stuffs. It's working and is more 
useful than JSNI.

Regards
Manish
- Original Message - 
From: "Thomas Broyer" <[EMAIL PROTECTED]>
To: "Google Web Toolkit" 
Sent: Friday, September 26, 2008 2:17 PM
Subject: Re: Regarding JNSI/make a call to GWT Widgets on click of HTML 
Buttons.


>
>
> On 25 sep, 16:19, Manish <[EMAIL PROTECTED]> wrote:
>> Hi
>>
>> Thank all of you for providing continuos help and advice by this
>> group.
>>
>> I am new to this group.I have just put my hands on integration of my
>> existing HTML with GWT.
>>
>> My very initail requirement is to show a GWT pop-up message box on
>> click of HTML Button element( This HTML Button component is pre-exist
>> and made using HTML Tags ).
>>
>> As I had some idea about JNSI , I tried with it But I don't succeed
>> due to not having much exposure.
>>
>> Can anybody please provide pseudo code for JNSI ( if applicable )or
>> any other way of implementation.
>
> With GWT 1.5, you no longer need JSNI thanks to Button.wrap:
> ...
> ...
> Button myBtn = Button.wrap(Document.get().getElementById("myBtn"));
> myBtn.addClickListener(new ClickListener() { ... });
>
>
> > 


--~--~-~--~~~---~--~~
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: Calling a Java Function with String Array parameter from JSNI

2008-09-25 Thread Manish Kumar

Hi Mat,

have you got the solution for this exception as mentioned below?
I am doing the same and getting same problem.
I tried some link which says to wrap java string array into 
jsArrayString.But How I am not sure.
Can you please help me out if this is actual root cause of thiz exception.
I would appreciate very much if u can provide some other alternatives.

Regards
Manish

- Original Message - 
From: "mat" <[EMAIL PROTECTED]>
To: "Google Web Toolkit" 
Sent: Thursday, September 25, 2008 3:54 PM
Subject: Help: Calling a Java Function with String Array parameter from JSNI


>
> Hi,
>
> I am having trouble calling a static function written in Java with a
> String array as the paramter:
>
> In my Java code I have the following:
>
>  public static String[] AppendIndex(String[] names) {
>String[] namesWithIndex = new String[names.length];
>for(int i = 0; i < names.length; i++) {
>  namesWithIndex[i] = Integer.toString(i) + ". " + names[i];
>}
>return namesWithIndex;
>  }
>
> I have exported this static function so its accessible via JSNI using
> the following code.
>
> public static native void exportStaticMethod() /*-{
>  $wnd.AppendIndex= @Utilities::AppendIndex([Ljava/lang/String;);
> }-*/;
>
> In my Javascript I have:
>
>  var names = ["Fat","Cat","Bat"];
>  var namesWithIndex = AppendIndex(names);
>
> However, I get the following error:
>  java.lang.ClassCastException
> at java.lang.Class.cast(Unknown Source)
> at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:128)
> at
> com.google.gwt.dev.shell.ie.SwtOleGlue.convertVariantsToObjects(SwtOleGlue.java:
> 57)
> at
> com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:
> 119)
> at
> com.google.gwt.dev.shell.ie.MethodDispatch.invoke(MethodDispatch.java:
> 97)
> at
> com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
> 294)
> at
> com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
> 194)
> at
> org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
> 117)
> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
> at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
> at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
> at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
>
> Does anyone know what I am doing wrong?
>
> Thanks in advance,
>
> Mat
>
> > 


--~--~-~--~~~---~--~~
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: No source code is available for type java.lang.ClassNotFoundException; did you forget to inherit a required module?

2008-09-25 Thread Manish Kumar

Hi Dhanraj,

Can you confirm us whether you have JRE 1.4 or above  insatlled in your 
system or not.Please also check the Java PATH  is set or not.

Regards,
Manish
- Original Message - 
From: "dhanraj" <[EMAIL PROTECTED]>
To: "Google Web Toolkit" 
Sent: Thursday, September 25, 2008 3:53 PM
Subject: No source code is available for type 
java.lang.ClassNotFoundException; did you forget to inherit a required 
module?


>
> Hi All,
>
> I am a newbie to GWT.
>
> When I try run the GWTShell, the following error occurs
>
> No source code is available for type java.lang.ClassNotFoundException;
> did you forget to inherit a required module?
>
> Please note : my module inherits the User module and I am working on
> GWT v1.5.2
>
> Please help me find what is going wrong, as  ClassNotFoundException is
> part of java.lang package.
>
> Thanks in advance...
>
> Dhanraj
>
> > 


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



Regarding JNSI/make a call to GWT Widgets on click of HTML Buttons.

2008-09-25 Thread Manish

Hi

Thank all of you for providing continuos help and advice by this
group.

I am new to this group.I have just put my hands on integration of my
existing HTML with GWT.

My very initail requirement is to show a GWT pop-up message box on
click of HTML Button element( This HTML Button component is pre-exist
and made using HTML Tags ).

As I had some idea about JNSI , I tried with it But I don't succeed
due to not having much exposure.

Can anybody please provide pseudo code for JNSI ( if applicable )or
any other way of implementation.

Thank you in advance.

Regards,

Manish

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