Re: PasswordTextBox: Making password character visible for a moment

2011-10-19 Thread abhiram wuntakal
Hi Raja,

  I think the way to achieve this is by making use of the keyboard listener
functionality. This might need some explicit code. First you define a normal
textbox, then when the user types something, set a keyboard listener, and
then a timer. Then you can temporarily store the that character of the
password in some string which keeps getting appended as and when the user
keeps typing. And with every keyboard key-in, call the keyboard listener,
then the timer say for 100 ms and then replace that with a * or #. That
should get your logic working.

  Just for your info, the only reason why this was introduced in cellphones
was because, in a cellphone, each button might correspond to multiple
characters. If you implement this algorithm in normal web-pages (which I
feel would not really be needed) then you might need to have a specific
logic to distinguish between a browser-access and cellphone-access and
enable this logic only for the browser version and have a normal password
textbox for the cellphone version. Just think over!!

Regards,
Abhiram

On Wed, Oct 19, 2011 at 3:58 PM, Raja Shekhar  wrote:

> Hi,
>
> I would like to make my PasswordTextBox shows typed character for a moment
> and then change to masking character.
> This behavior we generally see in Mobiles. Password Character will be shown
> for small amount of time.
> Is this possible in GWT ? if so, how can i do that? Can someone please
> provide me a piece of code to do that.
> Is there a way to change password masking char for passwordTextBox? For
> example, i would like to use '#' character as masking character for my
> PasswordTextBox
>
> --
> Thanks,
> Raja
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: How to avoid Double Submit in GWT?

2010-12-28 Thread abhiram wuntakal
One nice idea would be to bring a popup with a loading kinda image.. Since
the popup is there the user will not be able to click anything and the popup
would also server as a means to display loading.. The advantage here is, if
ur page has lot many buttons, rather than making each button disabled and
then enabling them back when the service call is completed, this will be a
simple mechanism to achieve what you need.

In case u dont need the "loading" displayed, u can just use a blank popup!!

Regards,
W

On Wed, Dec 29, 2010 at 1:54 AM, Srividhya Ramachandran wrote:

> How to avoid Double Submit in GWT? Is there a  token concept like in
> struts?
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
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: Help: Development of large App with GWT

2010-10-04 Thread abhiram wuntakal
Hey create a project which by itself acts as a GWT designer (Someone has
already done a similar thing actually!!, with the DND options and all), Then
u can have modules for server interaction which by itself can be automated
so that all u need to do is indicate the table name and u get the data
automatically!! This will be like a complete package for developing web
application and u can claim that people who use this project just need to do
some customizations rather than coding!! This will definitely turn out to be
a really interesting project!!

  (P.S. : Later u can share the code with the GWT community even so that it
can make the work of developers really really easy!! :-) )

Regards,
Abhiram


On Mon, Oct 4, 2010 at 2:09 PM, Noor  wrote:

> This is persuading but examiners can tell if even i didn't write ant
> javascript, i did write it in java
>
> --
> 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.



Re: Send e-mail in GWT

2010-10-04 Thread abhiram wuntakal
The simplest way to do this would be,

Create a front end page with the neccesary stuff like Recipient's id,
Subject Title, Mail Body and send all this data to the server side alone
with the sender username and password also as this is needed for the
authentication.

 Then, make use of *mail.jar *for sending the mail from the server side.
This has functionality to send the email and with all the necessary
parameters like Mail Body, Subject Title etc.. (Dont know the exact function
names, but there is a provision!!). This shud get ur email functionality
working!!

~ Abhiram Wuntakal

On Mon, Oct 4, 2010 at 12:07 PM, naveen  wrote:

> Hi team,
>
> My requirement is to send a mail from my website.
>
> i will elaborate the requirement. I have my own website, which is in
> simple html now. Am planning to develop my website using gwt. There is
> a contact us page in the website where a user can mail an enquiry to
> us. the form is like below.
>
> Name: Sender
> E-mail:sen...@abc.com 
>
> Message:
>
>  
>
>
>
> send
>
> As soon as user clicks on send button, the mails come to specified To
> address. To address is hard coded and hidden.
> I want the same functionality to be implemented in gwt. how can i do
> it? Please help.
>
>
> Thanks and regards
> Naveen
>
> --
> 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.



Re: How to integrate an open source web app into a GWT application

2010-08-09 Thread abhiram wuntakal
Hi,

  I am really not sure if this might be totally wrong. But u can take this
as a suggestion from where you can start the solution. Embed the JSP code in
html and make that part of a html widget. You can place this html widget in
one of the panels. Then u can build any other GWT sub application in the
other sub-panels.

  Not sure if this is exactly right, but I think this shud work..

HTH,
Abhiram


On Mon, Aug 9, 2010 at 12:51 PM, Anita  wrote:

> Please, could anyone help me??
> Thanks a lot!
>
> --
> 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.



Re: Upload folders and/or Upload Files already on the server

2010-08-02 Thread abhiram wuntakal
Hi Guru,

  The way web applications work I guess such an activity is not possible.
The only thing u can do from a client side is to allow him to upload a
particular file, u can control other activities like getting the list of
files if the user specifies the directory name.

  On the other hand you can plan a logic by which, the user is able to
select the files and drag and drop into a space from where you can upload
the files one by one from your code. This would be similar to the way you do
multiple file upload in Gmail. You can try to implement that functionality
which might solve your problem.

HTH

Regards,
Abhiram

On Sun, Aug 1, 2010 at 6:32 AM, GKotta  wrote:

> I need users to give me a bunch of images from their computer, which
> will then be displayed in my application. These images will all be in
> one folder. Rather than having users upload each image individually, I
> want to upload them all at once.
>
> One idea that I came up with is to have them upload a zip file with
> the folder and all the images to the blobstore. If I did this, how
> would I access each individual image? One possible solution that I
> thought of uploading each image to the blobstore after unzipping the
> folder. Is this possible?
>
> Another idea is to have them upload the entire folder. Again, how
> would I access each individual image?
>
> Any help would be appreciated. Thanks :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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: Mouse Over Image

2010-07-21 Thread abhiram wuntakal
Hi,

  I had implemented a very similar functionality, where I had to display a
label as soon as there is a mouse-over on the image and where there a
mouse-out, the label had to disappear. This is what I did.

  defined an image at a position fixed Rootpanel.
  defined a html(instead of a label) at the centre of the image (as per x,y
coordinates)
  initially made it setvisible(false) just the was u did
  for a mouse-over set the html visibility true
  for a mouse-out set the html visibility false.

This worked perfectly fine for me. i guess the trick is to use the HTML
widget instead of the label, although u will get all the properties of the
label with that. use this and it will work fine.

let me know if u need any other info

~ Abhiram

On Thu, Jul 22, 2010 at 9:41 AM, nacho  wrote:

> Hi, thanks both.
>
> The problem was that i was using this javascript library
> http://www.netzgesta.de/reflex/ with that image and the reflection
> script was modifing the image widget html generated by gwt.
>
> On the other hand i'm using a label because i'm building a gwt-apple-
> like-dock so the simple title of an image wasn't be usefull for me.
>
> On 21 jul, 18:11, cokol  wrote:
> > as lineman already written, you first have to add the label widget to
> > the DOM ,you could do it just after setting label to "hidden". Then
> > you also have to give the widget the property "position: absolute"
> > in your case you could also use tooltips over widgets, they are better
> > fitted since they know where to show if, i.e. the target widget (like
> > your bin) is near to the edge of the screen, then the tooltip would be
> > placed in a position that is readible.
> >
> > in its simplest way you could use the setTitle() on any control, which
> > would popup a simple text after a user holds with a mouse, a tooltip
> > (in GWT vanilla its called PopupPanel) can take any widget, like HTML
> > or image or whatsoever...
> >
> > br,
> >
> > On 21 Jul., 22:22, lineman78  wrote:
> >
> > > I believe you need to use the add(Widget, x, y) method on root panel
> > > when you add it in the first place so that it sets it as position
> > > absolute.  Why not just use the alt text on an image(setTitle)?  It is
> > > a lot less work and is accessable, meaning the alt text is what screen
> > > readers look to in order to describe an image for a blind person.
> >
> > > On Jul 21, 2:16 pm, nacho  wrote:
> >
> > > > Hi, i want to do the following, i want to display a label when the
> > > > user passes the mouse over the image and i want to hide the label
> when
> > > > the user takes out the mouse from the image. Just like a toolkit.
> >
> > > > What i did is the following, what am i missing?
> >
> > > > final Label lblRecyclerBin = new Label("Recycler Bin");
> > > > lblRecyclerBin.setVisible(false);
> >
> > > > RootPanel.get().add(lblRecyclerBin);
> >
> > > > final Image imgRecyclerBin = new
> Image("images/icons/trashcan.png");
> > > > imgRecyclerBin.setHeight("40px");
> > > > imgRecyclerBin.setWidth("40px");
> > > > imgRecyclerBin.setStylePrimaryName("reflex");
> >
> > > > imgRecyclerBin.addMouseOverHandler(new
> MouseOverHandler() {
> > > > public void onMouseOver(MouseOverEvent arg0)
> {
> > > > lblRecyclerBin.setVisible(true);
> >
> > > >
> RootPanel.get().setWidgetPosition(lblRecyclerBin,
> > > > imgRecyclerBin.getAbsoluteLeft(), imgRecyclerBin.getAbsoluteTop());
> > > > }
> > > > });
>
> --
> 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.



GWT Print

2010-06-15 Thread abhiram
Hi,

   I have been using the standard GWT printing methodology but I see
that the border lines and the grid lines get missed out in the print.
And the final printout only has the texts without any decorations. Can
someone suggest a nice GWT Print logic where the grids/scrollTables
appear with the borders and all ?

Thanks and Regards,
Abhiram

-- 
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: help for sending e-mail using rpc / gwt

2010-05-12 Thread abhiram wuntakal
Hey Felipe,

  Here is what you need to do:

 Client Side :

   SendEmail.java (Entrypoint or a Popup) - A very basic design would be of
a TextArea / RichTextArea where you can have the body of the email written.
Then you can provide a "Send" Button. On the click of the send button,
create an object of the Async class and call the SendEmail function with the
String parameter.

   SendEmailService.java - A simple method with a String parameter,
something like this.
public void SendEmail(String body) throws Exception.

   SendEmailServiceAsync.java - A simple method again with a String
parameter this way:
public void SendEmail(AsyncCallback callback).

Server Side:

   SendEmailServiceImpl.java - Implement the function I had sent earlier and
you shud be able to send the email with that successfully.

 Note : If you want to send other parameters like username etc from the
client side, then I would advise using a Vo rather than a String parameter
alone.

 Hope this helps..

Let me know if u need any other help. No matter how silly.. (I have asked
sillier doubts when I had started understanding GWT, he he)

Regards,
Abhi




On Tue, May 11, 2010 at 10:32 PM, Felipe Guarda  wrote:

> Abhi, you could best describe what must be put on every piece of code?
> You sent me a piece of code that must remain in the Class
> EmailServiceImpl server.side. My doubts are now, I need to create some
> kind of interface EmailService and EmailServiceAsync?
> In cliente.side.code how do I send the e-mail? Should I instantiate
> that class?
> Sorry for the stupid questions, I am now getting this world java /
> gwt.
>
> thanks,
>
> Felipe
>
> On May 11, 11:48 am, abhiram wuntakal  wrote:
> > Hi Felipe,
> >
> > RPC implementation would be simple. Just write an ordinary
> > RemoteServiceServlet and write a function to pass a String parameter (or
> a
> > Vo) with the emailBody to the ServiceImpl code. From ServiceImpl, you can
> > use the code below to send the email.
> >
> > Let me know if this answers your question.
> >
> > Regards,
> > Abhi
> >
> >
> >
> >
> >
> > On Tue, May 11, 2010 at 6:48 PM, Felipe Guarda 
> wrote:
> > > but what about the implementation of the RPC, you could help me?
> > > thanks
> >
> > > On May 10, 2:06 am, abhiram wuntakal  wrote:
> > > > Hi Felipe,
> >
> > > >   This block of code would help you send an email from the
> application.
> > > The
> > > > trick basically is to get the textual data from the client side and
> pass
> > > it
> > > > to the server side and then use this piece of code to send the email.
> > > This
> > > > is actually with the file attachment feature even.
> >
> > > >   Initially, you need to have a few variables declared for the
> username,
> > > > password, SMTP etc...
> >
> > > > private static String SMTP_HOST_NAME = "abc-abc.abc.com";
> > > > private static String SMTP_AUTH_USER = "a...@abc.com";
> > > > private static String SMTP_AUTH_PWD = "abcpassword";
> > > > private static final String emailMsgTxt = "Sample Message -
> Testing
> > > the
> > > > email application";
> > > > private static final String emailSubjectTxt = "Sample Mail";
> > > > private static String emailFromAddress = "ab...@abcde.com";
> > > > private static final String[] emailList = new String[100];
> > > > String fileAttachment = SRCFOLDER + "sample.pdf";
> >
> > > >   public void sendEmail(EmailDetailsVo emailVo) {
> > > > emailList[0] = emailVo.getEmailRecipient();
> > > > Writer output = null;
> > > > String text = "sample Text";
> > > > OutputStream file;
> > > > System.out.println("Inside send email2");
> >
> > > > fileAttachment = SRCFOLDER + "sample.pdf";
> >
> > > > try {
> > > > file = new FileOutputStream(
> > > > new File(
> > > > SRCFOLDER + "sample.pdf"));
> >
> > > > Document document = new Document();
> > > > try {
> > > > PdfWriter.getInstance(document, file);
> > > > document.open();
> > > > document.add(new
> Paragraph(String_Body_Of_The_Email));
> >
> > > >  

Re: help for sending e-mail using rpc / gwt

2010-05-11 Thread abhiram wuntakal
Hi Felipe,

RPC implementation would be simple. Just write an ordinary
RemoteServiceServlet and write a function to pass a String parameter (or a
Vo) with the emailBody to the ServiceImpl code. From ServiceImpl, you can
use the code below to send the email.

Let me know if this answers your question.

Regards,
Abhi

On Tue, May 11, 2010 at 6:48 PM, Felipe Guarda  wrote:

> but what about the implementation of the RPC, you could help me?
> thanks
>
> On May 10, 2:06 am, abhiram wuntakal  wrote:
> > Hi Felipe,
> >
> >   This block of code would help you send an email from the application.
> The
> > trick basically is to get the textual data from the client side and pass
> it
> > to the server side and then use this piece of code to send the email.
> This
> > is actually with the file attachment feature even.
> >
> >   Initially, you need to have a few variables declared for the username,
> > password, SMTP etc...
> >
> > private static String SMTP_HOST_NAME = "abc-abc.abc.com";
> > private static String SMTP_AUTH_USER = "a...@abc.com";
> > private static String SMTP_AUTH_PWD = "abcpassword";
> > private static final String emailMsgTxt = "Sample Message - Testing
> the
> > email application";
> > private static final String emailSubjectTxt = "Sample Mail";
> > private static String emailFromAddress = "ab...@abcde.com";
> > private static final String[] emailList = new String[100];
> > String fileAttachment = SRCFOLDER + "sample.pdf";
> >
> >   public void sendEmail(EmailDetailsVo emailVo) {
> > emailList[0] = emailVo.getEmailRecipient();
> > Writer output = null;
> > String text = "sample Text";
> > OutputStream file;
> > System.out.println("Inside send email2");
> >
> > fileAttachment = SRCFOLDER + "sample.pdf";
> >
> > try {
> > file = new FileOutputStream(
> > new File(
> > SRCFOLDER + "sample.pdf"));
> >
> > Document document = new Document();
> > try {
> > PdfWriter.getInstance(document, file);
> > document.open();
> > document.add(new Paragraph(String_Body_Of_The_Email));
> >
> > } catch (DocumentException e) {
> > // TODO Auto-generated catch block
> > e.printStackTrace();
> > }
> >
> > document.close();
> > try {
> > file.close();
> > } catch (IOException e) {
> > // TODO Auto-generated catch block
> > e.printStackTrace();
> > }
> >
> > } catch (FileNotFoundException e1) {
> > // TODO Auto-generated catch block
> > e1.printStackTrace();
> > }
> >
> > Properties props = new Properties();
> > props.put("mail.transport.protocol", "smtp");
> > props.put("mail.smtp.starttls.enable", "true");
> > props.put("mail.smtp.host", SMTP_HOST_NAME);
> > props.put("mail.smtp.auth", "true");
> >
> > Authenticator auth = new SMTPAuthenticator();
> > Session session = Session.getDefaultInstance(props, auth);
> > MimeMessage message1 = new MimeMessage(session);
> > try {
> > message1.setFrom(new InternetAddress(emailFromAddress));
> > message1.addRecipient(Message.RecipientType.TO,
> > new InternetAddress(emailList[0]));
> > message1.setSubject(emailVo.getEmailSubject());
> > message1.addRecipient(Message.RecipientType.CC,
> > new InternetAddress(emailVo.getCcEmailAddress()));
> > // create the message part
> > MimeBodyPart messageBodyPart = new MimeBodyPart();
> >
> > // fill message
> > messageBodyPart.setText(emailVo.getEmailBody());
> >
> > Multipart multipart = new MimeMultipart();
> > multipart.addBodyPart(messageBodyPart);
> > messageBodyPart = new MimeBodyPart();
> >
> > DataSource source = new FileDataSource(fileAttachment);
> > messageBodyPart.setDataHandler(new DataHandler(source));
> > messageBodyPart.setFi

Re: help for sending e-mail using rpc / gwt

2010-05-09 Thread abhiram wuntakal
Hi Felipe,

  This block of code would help you send an email from the application. The
trick basically is to get the textual data from the client side and pass it
to the server side and then use this piece of code to send the email. This
is actually with the file attachment feature even.

  Initially, you need to have a few variables declared for the username,
password, SMTP etc...

private static String SMTP_HOST_NAME = "abc-abc.abc.com";
private static String SMTP_AUTH_USER = "a...@abc.com";
private static String SMTP_AUTH_PWD = "abcpassword";
private static final String emailMsgTxt = "Sample Message - Testing the
email application";
private static final String emailSubjectTxt = "Sample Mail";
private static String emailFromAddress = "ab...@abcde.com";
private static final String[] emailList = new String[100];
String fileAttachment = SRCFOLDER + "sample.pdf";

  public void sendEmail(EmailDetailsVo emailVo) {
emailList[0] = emailVo.getEmailRecipient();
Writer output = null;
String text = "sample Text";
OutputStream file;
System.out.println("Inside send email2");

fileAttachment = SRCFOLDER + "sample.pdf";

try {
file = new FileOutputStream(
new File(
SRCFOLDER + "sample.pdf"));

Document document = new Document();
try {
PdfWriter.getInstance(document, file);
document.open();
document.add(new Paragraph(String_Body_Of_The_Email));

} catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

document.close();
try {
file.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

} catch (FileNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}

Properties props = new Properties();
props.put("mail.transport.protocol", "smtp");
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.host", SMTP_HOST_NAME);
props.put("mail.smtp.auth", "true");

Authenticator auth = new SMTPAuthenticator();
Session session = Session.getDefaultInstance(props, auth);
MimeMessage message1 = new MimeMessage(session);
try {
message1.setFrom(new InternetAddress(emailFromAddress));
message1.addRecipient(Message.RecipientType.TO,
new InternetAddress(emailList[0]));
message1.setSubject(emailVo.getEmailSubject());
message1.addRecipient(Message.RecipientType.CC,
new InternetAddress(emailVo.getCcEmailAddress()));
// create the message part
MimeBodyPart messageBodyPart = new MimeBodyPart();

// fill message
messageBodyPart.setText(emailVo.getEmailBody());

Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
messageBodyPart = new MimeBodyPart();

DataSource source = new FileDataSource(fileAttachment);
messageBodyPart.setDataHandler(new DataHandler(source));
messageBodyPart.setFileName("MainPdf.pdf");
multipart.addBodyPart(messageBodyPart);
// Put parts in message

message1.setContent(multipart);
// Send the message
Transport.send(message1);

} catch (AddressException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (MessagingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

// return null;

}

public class SMTPAuthenticator extends javax.mail.Authenticator {

public PasswordAuthentication getPasswordAuthentication() {
    String username = SMTP_AUTH_USER;
String password = SMTP_AUTH_PWD;
return new PasswordAuthentication(username, password);
}
}

HTH,

Thanks and Regards,
Abhiram

On Mon, May 10, 2010 at 3:59 AM, Felipe Guarda  wrote:

> I'm trying to learn how to send emails using gwt/rpc but I have
> difficulties.
> Someone could send me a simple example that shows the implementation
> of the code on the client and server?
>
> tks
>
> --
> 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, s

Re: How to prevent the big and specific file to be uploaded

2010-05-05 Thread abhiram wuntakal
Hey Ankit,

  AFAIK, you wont get to know the size of the file unless you transfer it to
the server. But from the client side you can restrict the file extension by
extracting the file name as follows :

final FileUpload upload = new FileUpload();
upload.setName("uploadFormElement");
absolutePanel.add(upload,8,37);
String fileNameVal = upload.getFilename();

  You can put appropriate check to ensure that certain kind of files alone
can be uploaded.

  HTH,

Regards,
Abhi


On Wed, May 5, 2010 at 2:04 PM, GWT Groups  wrote:

> Hello Friends
>
> I am back to ask a question, Friends I want some views from your side
> about that
> "How to prevent the big and specific file to be uploaded?"
>
> I want that prevent the pdf file to be uploaded.
>
> I don't know how to do it?
>
>
> Please help me
>
> Your friends
> Ankit
>
> --
> 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.



Quick question on GWT Print

2010-03-31 Thread abhiram
Hi all,

   I am trying to use Print class for printing the contents of a
particular Popup Panel.

I believe, i need to use the

  Print.it(DOM.getElementById("myId"));

  code for this functionality. But I am not able to set the Id for
the panel. Can someone please send me the code to set the id for a
particular element?

Thanks and regards,
Abhiram

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



Re: image help

2010-03-29 Thread abhiram wuntakal
Hey I have this not-so-technical work around for u.

 Apply a Mouse over handler for the image. on a mouse-over, just change the
image to some other image (probably a smaller one which says "Dude, U cant
download this!!!") and again on a Mouse-out bring back the original image.

 Guess that will solve your problem and people will not be able to download
it...

 But as Sripathi says, it would be better to show a smaller size, low
resolution image, as people can always do a ScreenPrint and extract exactly
that image alone!!

 Hope a combination of these two things would solve ur problem.

~ Abhi


On Tue, Mar 30, 2010 at 3:02 AM, Sripathi Krishnan <
sripathikrish...@gmail.com> wrote:

> but if they can just right click it and "Save Image As" there isn't any
>> point.
>>
>
> Disabling right click is no solution. Its trivial to figure out the link of
> the image and then download it directly. Div overlays also won't help. As
> long as the user can see it, there is always going to be a way for him to
> download it.
>
> You should -
>
>- Only show a smaller size, low resolution image before the user
>purchases it
>- Apply a watermark/logo on the free image, so that there isn't any
>merit in using the image directly.
>
> --Sri
>
>
>
>
> On 30 March 2010 02:42, Sudeep S  wrote:
>
>> i am not sure if this is a right approach...how about placing a
>> transparent div over the image.
>> would that work.
>>
>> On Tue, Mar 30, 2010 at 12:22 AM, Chris  wrote:
>>
>>> does anyone know if there is a way to disable someone from right
>>> clicking on an image and being able to save it?  i am trying to make
>>> an application where people can purchase images but if they can just
>>> right click it and "Save Image As" there isn't any point.  Any
>>> suggestions would be great.
>>>
>>> thanks
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>>
>>  --
>> 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.
>

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



Printing the contents of TextArea

2010-03-23 Thread abhiram
Hi All,

   I am trying to print the contents of a textArea. But i am able to
print only the part of the text which is visible and not the ones that
I see when i scroll down. Can someone one tell me the proper print
functionality that needs to be used to actually display the entire
content of the text area (same behaviour is seen in scrollpanel even).

  Right now I am using this functionality.


native void printx(String s) /*-{

var win1 = window.open('', 'reportwindow');

win1.document.open();
win1.document.write("Report");
win1.document.write(" body,td {font-family:sans-
serif;font-size:10pt;}");
win1.document.write(" \r\n")
win1.document.write("function Print(){window.print()}")
win1.document.write("");
win1.document.write(s);
win1.document.write("");
win1.document.close();
win1.close();
}-*/;

public void printIt(String html){



printx(html);
}

 Please let me know what is the approach to be followed.

Thanks and regards,
Abhiram

-- 
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: DropZap web demo built using GWT

2009-12-30 Thread abhiram wuntakal
Nice game dude... the features that u have designed are really awesome!!! I
was able to finish 3 levels and got a message saying, demo version has only
3 levels!! anyways great work!!

~ Abhiram

On Tue, Dec 29, 2009 at 6:05 AM, amich...@gmail.com wrote:

> Hello,
>
> Check it out:
>
> http://dropzap.appspot.com
>
> Amir
>
> --
>
> 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.




Re: GWT Chat applications

2009-12-10 Thread abhiram wuntakal
Hi jim,

Thanks for that hint.

  Well, are u getting the messages from the database? I mean there shud be a
place from where the messages intended for a client shud be picked up right?
So, have u kept the messages in the databse?

 And are u able to support multiple chat windows for a single user who is
chatting with many people?

  Regards,
Abhiram



On Wed, Dec 9, 2009 at 10:10 PM, Jim  wrote:

> hi, I've implemented a gwt Chat
>
> the link
> http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ
> helps me.
>
> From client, i do an rpc call
> --> server-side, i'm waiting for event (using a timer) for the
> client :
> -- if i got an event for the client, i return to the client, and i do
> again the rpc call.
> -- if no events after 40 sec, i return to the client and says to the
> client "No events!", and i do again the rpc call.
>
>
> On Dec 9, 1:13 pm, abhiram  wrote:
> > Hi All,
> >
> >Can someone tell me which is the best (and convenient) method to
> > implement a chat application for my web page using GWT?
> >
> >   I believed using the comet.jar would be neat but had lot of problem
> > implementin it. Can you please tell me which is the best possible
> > approach? with any working examples / links?
> >
> > ~ Abhiram
>
> --
>
> 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.




Re: GWT Chat applications

2009-12-09 Thread abhiram wuntakal
But, client side polling would make the system slow right? and how to do I
decide the frequency of polling?

Backend is pure Java with the database interaction thru hibernate.

~ Abhi

On Wed, Dec 9, 2009 at 7:18 PM, P.G.Taboada wrote:

> I personally would not push the messages from the server, but have the
> clients polling.
>
> The rest is server-side coding. What backend are you targeting?
> Don't forget that you will have to handle thread-safety issues on the
> server side.
>
> brgds,
>
> Papick G. Taboada
>
>
> On 9 Dez., 13:13, abhiram  wrote:
> > Hi All,
> >
> >Can someone tell me which is the best (and convenient) method to
> > implement a chat application for my web page using GWT?
> >
> >   I believed using the comet.jar would be neat but had lot of problem
> > implementin it. Can you please tell me which is the best possible
> > approach? with any working examples / links?
> >
> > ~ Abhiram
>
> --
>
> 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.




GWT Chat applications

2009-12-09 Thread abhiram
Hi All,

   Can someone tell me which is the best (and convenient) method to
implement a chat application for my web page using GWT?

  I believed using the comet.jar would be neat but had lot of problem
implementin it. Can you please tell me which is the best possible
approach? with any working examples / links?

~ Abhiram

--

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.




DefaultStyles of Button

2009-12-04 Thread abhiram
Can someone tell me where can i get the default CSS which is being
used for the button. I mean, i want the actual CSS of  ".gwt-Button"

Regards,
Abhiram

--

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: Query regarding printing a widget

2009-11-21 Thread abhiram wuntakal
Hi,

  Can someone please suggest a possible solution for this?

Regards,
Abhiram

On Fri, Nov 20, 2009 at 11:02 PM, abhiram  wrote:

> Hi All,
>
>  I just needed some help regarding a functionality where i need to
> print the contents of a widget.
>
>  I am using the Print.it() function. I am able to print the HTML
> string using the function Print.it("Just Print.it()!"). This
> happens successfully, but am not able to print the contents of a
> particular rootPanel. The rootPanel has a couple of buttons and a
> textBox with some text. I have been using the following command for
> this
>
>   Print.it(rootPanel.get("__printingFrame"));
>
>  I know I am missing something here. But am not sure how to proceed.
> When i fire this command I just get the text  " [object] " printed.
> Can someone help me out at this point? What else do i need to do to
> get the contents of the TextBox printed.
>
>  This was the entry that I made in html file.
>   iframe>
>
>  I saw some previous codes where I got some info, but am looking out
> for a very specific example where a textBox is passed as an argument
> and I get only the contents of it printed.
>
>  Can someone please suggest what do I need to do?
>
> regards,
> Abhiram

--

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




Query regarding printing a widget

2009-11-20 Thread abhiram
Hi All,

  I just needed some help regarding a functionality where i need to
print the contents of a widget.

  I am using the Print.it() function. I am able to print the HTML
string using the function Print.it("Just Print.it()!"). This
happens successfully, but am not able to print the contents of a
particular rootPanel. The rootPanel has a couple of buttons and a
textBox with some text. I have been using the following command for
this

   Print.it(rootPanel.get("__printingFrame"));

  I know I am missing something here. But am not sure how to proceed.
When i fire this command I just get the text  " [object] " printed.
Can someone help me out at this point? What else do i need to do to
get the contents of the TextBox printed.

  This was the entry that I made in html file.
 

  I saw some previous codes where I got some info, but am looking out
for a very specific example where a textBox is passed as an argument
and I get only the contents of it printed.

  Can someone please suggest what do I need to do?

regards,
Abhiram

--

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




Re: doubt about composite

2009-11-10 Thread abhiram wuntakal
Hi Jorge,

Once the composite panel is loaded at any point of time if u want to change
the image displayed by the image widget, just use the setUrl functionality
and the image gets changed automatically.

HTH,
Abhiram

On Tue, Nov 10, 2009 at 4:35 PM, jorge  wrote:

>
> Hi,
>
> I have a composite that has an image as main widget and I would like
> to change that image after the creation of the composite instance. Is
> this possible or do I have to create a new instance with the new image
> to replace the older one?
>
> Thanks and regards,
> Jorge
> >
>

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

2009-10-31 Thread abhiram wuntakal
Hi Jagadesh,

  The problem would be because of the place of definition of your widgets.
Guess right now you are defining the Age TextBox after FirstName TextBox.
Instead of the Age textBox define the Middlename TextBox first, i mean just
move the piece of code above. This will solve the Tab problem.

HTH,
Abhiram


On Sat, Oct 31, 2009 at 12:35 PM, jagadesh wrote:

>
> HI Every one ,
> i am trying for a keyboard listener .what my requirment is consider  i
> have the text box in this format
>
> firstNameAge
> middleName   Sex
> lastName
>
> no my requirment is when ever i click TAB in firstName text field , i
> should go to middleName textfield. but normally it would go to Age
> textfield.
>
> i have written the keuboardlistener .onKeyUp()  such that whenever tab
> key is released it check fr the field name , if it is firstName , then
> i will take that to the middleName using setFocus() , but it doesnot
> work .
>
> i modified the logic like i check for fieldName "age" when i click TAB
> in the firstName.it will take that to the Age field when we click on
> the firstName . so i check for field name "age" and now every thinig
> is working fine .
>
>
> Is there any alternate solutions ,
>
>
> Thank u
> jagadesh
> >
>

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



Re: how to send variables in form panel

2009-10-20 Thread abhiram wuntakal
Hey Yoez,

  Not sure if it helps. But i have a workaround solution for this. Make it a
two-step process. First use a RemoteServiceServlet to pass across your
variables to the server side and then save these values into some variables
on the server side.

 Then you can use a HTTPServlet to pass across your file contents to the
server side. Now you have the file as well as the variables.

 HTH,
Cheers,
Abhiram

On Mon, Oct 19, 2009 at 6:12 PM, YoeZ  wrote:

>
> thanks ian,, but i'm using GWT and tried to uploadfile which is must
> using FormPanel.
> I have successfully upload my file to server with UploadFile widget,
> but I have another textboxes too. and dunno how to catch inside
> FormPanel.
>
>
>
> On Oct 19, 7:15 pm, Ian Bambury  wrote:
> > You'll stand more chance of an answer if you ask that question in a Java
> > forum. This is a GWT group.
> > Ian
> >
> > http://examples.roughian.com
> >
> > 2009/10/19 YoeZ 
> >
> >
> >
> >
> >
> > > hello... please help
> >
> > > On Oct 18, 12:31 am, YoeZ  wrote:
> > > > Hi.
> >
> > > > I have 1 form panel with some textboxes and file upload.
> > > > the question is, how to get variables from client/form panel in
> > > > servlet?
> > > > i created DTO/Pojo object to hold variables in client, but i donk
> know
> > > > how to catch in servlet..
> >
> > > > please help
> >
> > > > thanks
> >
>

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



Re: File Upload not working after migrating to GWT1.7

2009-09-30 Thread abhiram wuntakal
Hi Thomas. Thanks a lot for that. It is working fine now...

regards,
Abhiram

On Wed, Sep 30, 2009 at 3:29 PM, Thomas Broyer  wrote:

>
>
>
> On 30 sep, 11:50, abhiram wuntakal  wrote:
> > Hi Eric,
> >
> >  Thanks for that. But I had a similar piece of code earlier, but I had
> > *form.setAction(GWT.getModuleBaseURL()
> > +"/UploadServlet"); *instead of *form.setAction(GWT.getHostPageBaseURL()
> +
> > "UploadServlet");
> >
> >   *I was getting the error "The requested resource
> > (/GWTFileUpload/UploadServlet) is not available." This is the same error
> > which I am getting when I replaced my setAction with the line of code
> which
> > you suggested. Not sure what is the problem. Everything seems to be fine.
> >
> >   You have any clue about this?
>
> Have you included the servlet and servlet-mapping in your war/WEB-INF/
> web.xml? if so, it is relative to getHostPageBaseURL() (well, depends
> if your host page is in a subfolder or not, but generally it's not the
> case)
> >
>

--~--~-~--~~~---~--~~
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: File Upload not working after migrating to GWT1.7

2009-09-30 Thread abhiram wuntakal
Hi Eric,

 Thanks for that. But I had a similar piece of code earlier, but I had
*form.setAction(GWT.getModuleBaseURL()
+"/UploadServlet"); *instead of *form.setAction(GWT.getHostPageBaseURL() +
"UploadServlet");

  *I was getting the error "The requested resource
(/GWTFileUpload/UploadServlet) is not available." This is the same error
which I am getting when I replaced my setAction with the line of code which
you suggested. Not sure what is the problem. Everything seems to be fine.

  You have any clue about this?

Regards,
Abhiram

On Wed, Sep 30, 2009 at 12:55 PM, Erik  wrote:

>
> My guess is that form.setAction("C:/apache-tomcat-6.0.16/webapps/
> GWTFileUpload/WEB-
> INF/classes/com/abc/pt06/uploadfile/server/UploadServlet"); can't be
> correct, this must be a valid URI .
> try this.form.setAction(GWT.getHostPageBaseURL() + "MyServlet");
>
> Do you get a 404 error?
>
> On Sep 30, 7:37 am, abhiram wuntakal  wrote:
> > Hi All,
> >
> >   Can someone please suggest something about this? Any possible approach
> to
> > get the fileUpload working?
> >
> > Thanks,
> > Abhiram
> >
> > On Tue, Sep 29, 2009 at 3:35 PM, abhiram  wrote:
> > > Hi All,
> >
> > >   I had my File Upload module working properly in 1.5.3. But it has
> > > not been working after I migrated to GWT 1.7.
> > > I realised that "addFormHandler" is deprecated in 1.7 and so I changed
> > > it to "addSubmitHandler". Earlier the setAction was set as
> >
> > >   form.setAction(GWT.getModuleBaseURL() +"/MyServlet");
> >
> > >  I changed it to
> > >  form.setAction("C:/apache-tomcat-6.0.16/webapps/GWTFileUpload/WEB-
> > > INF/classes/com/abc/pt06/uploadfile/server/UploadServlet");
> >
> > >  which is the real path of my servlet after starting the tomcat.
> >
> > >  But still it does not seem to be working. I just get an "Error on
> > > Page" alert in IE and in Firefox, i get an alert like "Firefox does'nt
> > > know how to open this address, because the protocol(c) isn't
> > > associated with any program."
> >
> > >  Can someone please suggest what I need to do to get this working. Or
> > > some sample code where FileUpload has been working properly in GWT
> > > 1.7.
> >
> > > Regards,
> > > Abhiram
> >
>

--~--~-~--~~~---~--~~
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: File Upload not working after migrating to GWT1.7

2009-09-29 Thread abhiram wuntakal
Hi All,

  Can someone please suggest something about this? Any possible approach to
get the fileUpload working?

Thanks,
Abhiram

On Tue, Sep 29, 2009 at 3:35 PM, abhiram  wrote:

> Hi All,
>
>   I had my File Upload module working properly in 1.5.3. But it has
> not been working after I migrated to GWT 1.7.
> I realised that "addFormHandler" is deprecated in 1.7 and so I changed
> it to "addSubmitHandler". Earlier the setAction was set as
>
>   form.setAction(GWT.getModuleBaseURL() +"/MyServlet");
>
>  I changed it to
>  form.setAction("C:/apache-tomcat-6.0.16/webapps/GWTFileUpload/WEB-
> INF/classes/com/abc/pt06/uploadfile/server/UploadServlet");
>
>  which is the real path of my servlet after starting the tomcat.
>
>  But still it does not seem to be working. I just get an "Error on
> Page" alert in IE and in Firefox, i get an alert like "Firefox does'nt
> know how to open this address, because the protocol(c) isn't
> associated with any program."
>
>  Can someone please suggest what I need to do to get this working. Or
> some sample code where FileUpload has been working properly in GWT
> 1.7.
>
> Regards,
> Abhiram

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



File Upload not working after migrating to GWT1.7

2009-09-29 Thread abhiram

Hi All,

   I had my File Upload module working properly in 1.5.3. But it has
not been working after I migrated to GWT 1.7.
I realised that "addFormHandler" is deprecated in 1.7 and so I changed
it to "addSubmitHandler". Earlier the setAction was set as

   form.setAction(GWT.getModuleBaseURL() +"/MyServlet");

  I changed it to
  form.setAction("C:/apache-tomcat-6.0.16/webapps/GWTFileUpload/WEB-
INF/classes/com/abc/pt06/uploadfile/server/UploadServlet");

 which is the real path of my servlet after starting the tomcat.

 But still it does not seem to be working. I just get an "Error on
Page" alert in IE and in Firefox, i get an alert like "Firefox does'nt
know how to open this address, because the protocol(c) isn't
associated with any program."

  Can someone please suggest what I need to do to get this working. Or
some sample code where FileUpload has been working properly in GWT
1.7.

Regards,
Abhiram
--~--~-~--~~~---~--~~
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 Button style using HTML - Mozilla Compatibility

2009-09-24 Thread abhiram wuntakal
Hi Zak,

  Thanks for that.

  But i was planning to have uniform style for all the buttons. I have some
15-20 different kinds of buttons. I dint want to write a separate CSS for
each of them. I just realized that using HTML would be a really convenient
way of implementing the icons for buttons. And I finally got the right piece
of HTML code which works perfect across all the browsers and my browser
compatibility issue got solved!!

 Thanks anyways..

regards,
Abhiram

On Fri, Sep 25, 2009 at 12:33 AM, Zak  wrote:

>
> The CSS for the background declaration is invalid. Also there's no
> need for tabs and carriage returns. Try this:
>
> button.setHTML(" repeat; width:95px; height:23px;\"> Home ");
>
> The best practices solution, however, is to have an external
> stylesheet with styling rules defined:
>
> .cool-button {
>  background: transparent url(home.gif) no-repeat;
>  width:95px;
>  height:23px;
> }
>
> And then add the stylename to the button:
>
> button.setStyleName("cool-button");
> button.setText("Home");
>
> This will keep a nice separation of presentation, structure, and
> content.
>
> Cheers!
>
> On Sep 24, 9:01 am, abhiram wuntakal  wrote:
> > I got some really cool styles with HTML tags and so thought of sticking
> on
> > to it. Any idea why the image which I set on the button using HTML did
> not
> > appear in Firefox?
> >
> > regards,
> > Abhiram
> >
> > On Thu, Sep 24, 2009 at 4:55 PM, Venkatesh Babu  >wrote:
> >
> > > Try setting the style using a css class rather than the "style"
> attribute,
> > > in the way specified in your code. If you don't have a css file, you
> can
> > > just create the css class within your html file.
> >
> > > Hope this helps.
> >
> > > -Venkatesh
> >
> > > On Thu, Sep 24, 2009 at 2:08 AM, abhiram  wrote:
> >
> > >> Hi all,
> >
> > >>   I used the setHTML property for the Button to get some really nice
> > >> styles for the buttons in my application. This works perfectly in IE
> > >> but does not seem to work in Mozilla and Chrome. In Mozilla and Chrome
> > >> I dont see the images on the button which are visible on IE.
> >
> > >>  My sample code is as below:
> >
> > >>  button.setHTML(" > >> repeat;\r\n\t\twidth:95px;\r\n\t\theight:23px;\"> Home ");
> >
> > >>  Can someone please let me know if I am missing something here?
> >
> > >> regards,
> > >> Abhiram
> >
>

--~--~-~--~~~---~--~~
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 Button style using HTML - Mozilla Compatibility

2009-09-24 Thread abhiram wuntakal
I got some really cool styles with HTML tags and so thought of sticking on
to it. Any idea why the image which I set on the button using HTML did not
appear in Firefox?

regards,
Abhiram

On Thu, Sep 24, 2009 at 4:55 PM, Venkatesh Babu wrote:

> Try setting the style using a css class rather than the "style" attribute,
> in the way specified in your code. If you don't have a css file, you can
> just create the css class within your html file.
>
> Hope this helps.
>
> -Venkatesh
>
>
>
> On Thu, Sep 24, 2009 at 2:08 AM, abhiram  wrote:
>
>>
>> Hi all,
>>
>>   I used the setHTML property for the Button to get some really nice
>> styles for the buttons in my application. This works perfectly in IE
>> but does not seem to work in Mozilla and Chrome. In Mozilla and Chrome
>> I dont see the images on the button which are visible on IE.
>>
>>  My sample code is as below:
>>
>>  button.setHTML("> repeat;\r\n\t\twidth:95px;\r\n\t\theight:23px;\"> Home ");
>>
>>  Can someone please let me know if I am missing something here?
>>
>> regards,
>> Abhiram
>>
>>
>
> >
>

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



GWT Button style using HTML - Mozilla Compatibility

2009-09-23 Thread abhiram

Hi all,

   I used the setHTML property for the Button to get some really nice
styles for the buttons in my application. This works perfectly in IE
but does not seem to work in Mozilla and Chrome. In Mozilla and Chrome
I dont see the images on the button which are visible on IE.

 My sample code is as below:

 button.setHTML(" Home ");

 Can someone please let me know if I am missing something here?

regards,
Abhiram
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Buttons with Round Edges

2009-09-06 Thread abhiram

Hi all,

  Which is the best method to implement a button with Round edges? I
was trying to implement a CSS code where I can set the corner images.
But i was just able to insert the image at only one corner. Can
someone send me a sample code where 4 different images are set for the
4 corners?

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



Re: Help using comet in tomcat

2009-09-02 Thread abhiram

Hi,

  Sorry that I am replying this late. But try to import the
catalina.jar file into your project. U can find that in the lib folder
within your tomcat folder. Once you
do that, this error would disappear.

HTH,
Abhiram

On Aug 1, 4:35 pm, Nathan Wells  wrote:
> When do you see this problem? when you are in hosted mode or when you
> deploy to tomcat? what version of tomcat are you using?
>
> On Jul 31, 5:51 am, BarefootSanders  wrote:
>
> > Sorry about the confusion.  Ive been to that page numerous times in my
> > search to fix my problem.
>
> > My problem specifically is that I dont have either of those classes
> > (CommetEvent and CometProcessor).  When i try to include them it says
> > they dont exist.  I thought exactly what you stated - I thought they
> > were internal to the Tomcat server and should have been included in my
> > install but apparently not.
>
> > Hope that clears up your confusion.
>
> > But that leave me where I was before.  Any suggestions?  Do I need to
> > configure/install anything in order to get access to those classes?
>
> > Thanks.
>
> > On Jul 31, 6:49 am, Nathan Wells  wrote:
>
> > > I don't fully know the answer to your question, but this might help:
>
> > >http://tomcat.apache.org/tomcat-6.0-doc/aio.html
>
> > > You probably already knew this, but catalina is an internal name for
> > > Apache's Tomcat server. It is likely that you may need to do some
> > > additional configuration before you can doComet-like stuff in hosted
> > > mode.
>
> > > HTH
> > > Nathan
>
> > > On Jul 30, 9:45 am, BarefootSanders  wrote:
>
> > > > Hi all.  I'm trying to reproduce the application here:
>
> > > >http://gwtapps.com/?page_id=31
>
> > > > Its a simple instant messenger which usescometfor events.  It
> > > > imports these two classes:
>
> > > > import org.apache.catalina.CometEvent;
> > > > import org.apache.catalina.CometProcessor;
>
> > > > But I guess I dont have them on my comp because it cant find them.
> > > > I'm new to usingcometso as a more general question, does anyone know
> > > > where I can get these two classes?  If not, is there an implementation
> > > > ofCometonGWTthat I can use instead of this?
>
> > > > Any other feedback would be much appreciated.
>
> > > > Thanks.- Hide quoted text -
>
> > > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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: Email from GWT appliction

2009-08-21 Thread abhiram wuntakal
Hi Paul,

  Thanks for the piece of information. But this is a personal home system
that I am using and there are no such blockings. So I am still wondering why
are my emails getting stuck!!

regards,
abhiram



On Fri, Aug 21, 2009 at 1:42 PM, Paul Robinson  wrote:

>
>
> Lothar Kimmeringer wrote:
> > abhiram schrieb:
> >
> >>   Can someone please tell me if I need to make any other changes to
> >> get this thing working or is there any method by which I can know what
> >> is the SMTP that I need to use.
> >>
> >
> > Do a telnet directly from that box to port 465 and 587. If you come
> > through (it's SSL so you will not see very much) set the port
> > explicitly instead of relying on the default-port. If you don't
> > come through try out tcptraceroute or traceroute to see where the
> > packets are filtered. Some companies/networks filter out outgoing
> > SMTP-traffic to prevent spam being sent from bot-"enhanced" computers
> >
> >
>
> Also, anybody blocking outgoing SMTP will probably have a specific smtp
> server on their LAN that you will need to use - and it may well apply
> controls about who can use it and what the "from" address on outgoing
> emails can be.
>
> Paul
>
> >
>

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



Email from GWT appliction

2009-08-20 Thread abhiram

Hi all,

  I am stuck up at a particular place where I need to send an email
from my GWT application. Although it is majorly a Java related query,
thought u guys might help me out with this one..

 I have an application to send an email and it works properly at my
end. I am using the Gmail SMTP server which is "smtp.gmail.com" and am
able to successully send an email. FYI, i tried this code from a
system in India.

  But i tried the same code at another system placed at US, but the
code did not work. It says could not connect to the SMTP host. I tried
a few other SMTP addresses namely "gmail-smtp-msa.l.google.com" and
"gmail-smtp.l.google.com" and all these work properly from India but
they dont work properly from the US system.

  Can someone please tell me if I need to make any other changes to
get this thing working or is there any method by which I can know what
is the SMTP that I need to use.

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



Session Timeout - Best Approach

2009-08-12 Thread abhiram

Hi all,

   I need to implement a Session Timeout functionality for my GWT
application. I have 2 options - either using a cookie methodology or
by using JavaScript code in HTML. WHich is the best approach for
implementing the session timeout? Also, can anyone please send me some
sample codes for implementing the same?

regards,
Abhiram
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Callin an URL from my application

2009-07-18 Thread abhiram

Hi Group,

 I have a requirement where I need to call an URL for sending emails
to some recipients. I will use a link something similar to this

http://www..com/messageapi.asp?username=&password=&sender=&recipient=&message=Hi.

 I have populated a list containing the recipients R1, R2, R3 and I
need to invoke this link from my applicaiton. Which is the best method
to do this?

PS : I necessarily need to use this link itself to send the mail.

Please let me know.

Regards,
Sam
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Integrating "Google Docs" into GWT

2009-07-17 Thread abhiram

Hi,

  Is there a way to integrate the 'Google Docs' with the GWT
application so that I can conveniently display the spreadsheets and
all in my web application. Just wanted to know if there is any jar
available for 'Google Docs'. And a sample application also would be of
great help.

Regards,
Abhiram
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Interdependent ScrollBars

2009-07-12 Thread abhiram

Hi,

  I need to create an application where the screen is split into 2
scroll bars, one beside the other. Just the way, it is seen in any
code comparison software!! How do I implement the interdependent
scroll bars in this case? i.e., if I scroll the left scroll panel, the
right side scroll panel should also scroll automatically.. How can I
implement this feature 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Dynamically Calling a Class

2009-07-09 Thread abhiram

hi,

  I need to call a new entry point by providing the name dynamically.
The Entrypoint class name is present as a String variable and I need
to call the constructor / create an object of that entrypoint class.
Can someone tell me how to do this dynamically?

Regards,
Abhiram
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



New Browser Window

2009-06-23 Thread abhiram

Hi,

  From my application, I want to open a new window with a url which is
passed from my application. Eg: If i click a button or something a new
window should open with the url "www.google.com" where this URL is
being passed from my application as a parameter. Which would be the
best method to implement this?

 Note: I do not want to use a Frame widget for this purpose.

regards,
Abhiram
--~--~-~--~~~---~--~~
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: MenuBar & MenuBarImages

2009-06-19 Thread abhiram wuntakal
Do you want to try SmartGWT? it has many advanced widgets.

U can have a look at the SmartGWT showcase here
http://www.smartclient.com/smartgwt/showcase/

This should help

Regards,
Abhiram

On Fri, Jun 19, 2009 at 12:53 PM, Cuetumayu  wrote:

>
> Hello,
>
> I am new comer to GWT so I would really appreciate some help from you.
> I already have a MenuBar working but using just plain text for
> identifying the menu options. Since this doesn't look too fancy, I
> would like now to replace this texts by some images. I had a look to
> the MenuBar.MenuBarImages interface but I don't really understand how
> to proceed to associate a menu option with a certain image.
>
> Can anybody paste me here an example?
>
> Thank you very much in advance!
>
> Carlos
> >
>

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



Is it safe to use the components for which the "deprecated" warning comes up!!

2009-06-18 Thread abhiram

Hi all,

   I just wanted to know if it is safe to use the components that have
a "deprecated" warning attached to them. Wanted to know if there are
any complications which might occur later (during migration to another
version or something!!). An example of such a thing that I have been
using is the Scrolltable widget. Please let me know if it is safe
enough to go ahead with these kind of widgets!!

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



Re: How do I run my GWT application on tomcat?

2009-06-17 Thread abhiram wuntakal
Hi,

 First of all ensure that the StockWatcher folder got created after you
started the tomcat. Then use this url

httl://localhost:/StockWatcher/StockWatcher.html..

it shud work...

On Wed, Jun 17, 2009 at 4:19 PM, Sow  wrote:

>
> Hi,
>
> I am totally new to GWT-EXT.
>
> I deployed the WAR file in the webapps folder. What url should I use
> to execute my html which is in the [mypackge]/public/ folder ?
>
> The hosted application uses
>
> http://localhost:/com.google.gwt.sample.stockwatcher.StockWatcher/StockWatcher.html
> url to run the app.
>
> Same thing if I need to try it on tomcat what should be the url ?
>
> Please let me know.
>
> >
>

--~--~-~--~~~---~--~~
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: Image not appearing for ImgButton in SmartGWT

2009-06-15 Thread abhiram wuntakal
Hi Sanjiv,

  Thanks for that link. I have posted that query at that forum. Please let
me know if u have a solution for that problem of mine.

thanks,
Abhiram

On Sat, Jun 13, 2009 at 9:58 PM, Sanjiv Jivan wrote:

> Hi Abhiram,Please post your question on the SmartGWT forum :
> http://forums.smartclient.com/forumdisplay.php?f=14 along with details /
> relevant code and we'll be happy to assist.
>
> Sanjiv
>
>
> On Sat, Jun 13, 2009 at 10:35 AM, abhiram  wrote:
>
>>
>> Hi all,
>>
>>  Just wanted to know if there is any image type restrictions for the
>> images that we use as Icons for Buttons in ImgButton in SmartGWT?
>>
>>  I am trying a sample project but am not seeing the image on the
>> button.
>>
>> regards,
>> Abhiram
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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: Image icons for Widgets

2009-06-13 Thread abhiram wuntakal
Hi Ian,

 Thanks a lot. This is what I needed. Was struggling to find such a piece of
code. This works perfect. Thanks again..

Regards,
Abhiram


On 6/13/09, Ian Bambury  wrote:
>
> x.getElement().getStyle().setProperty("backgroundImage", "url(image.png)");
>
>
> (or something like that)
>
> Ian
>
> http://examples.roughian.com
>
>
> 2009/6/13 abhiram wuntakal 
>
>> ya, but it is a background image and i think i need to set it from CSS
>> itself right? or, is there a way to set the background image from the
>> code... (Using DOM or something!!!)
>>
>>
>> On 6/13/09, Ian Bambury  wrote:
>>>
>>> I don't think you can do it if you have to have the image name in the css
>>> file.
>>>
>>> I was suggesting setting the image name directly in the GWT code.
>>>
>>> Ian
>>>
>>> http://examples.roughian.com
>>>
>>>
>>> 2009/6/13 abhiram wuntakal 
>>>
>>>> Hi Ian,
>>>>
>>>>   Thanks for the suggestion. But i am not sure, how to set the Imagename
>>>> (which is part of the CSS ) from my Java code.
>>>> Can i pass parameters to the CSS file?
>>>>
>>>> regards,
>>>> Abhiram
>>>>
>>>>
>>>> On Sat, Jun 13, 2009 at 4:54 PM, Ian Bambury wrote:
>>>>
>>>>> Why don't you just name the image after the widget (e.g.SaveButton has
>>>>> a background image of 'SaveButton.png') and have a routine to set the
>>>>> background image to the name of the widget plus '.png'?
>>>>> Ian
>>>>>
>>>>> http://examples.roughian.com
>>>>>
>>>>>
>>>>> 2009/6/13 abhiram wuntakal 
>>>>>
>>>>> ok, i will elaborate a bit...
>>>>>>
>>>>>> there are 2 buttons, save Button1 and Button2. Button1 needs an image
>>>>>> Image1 and Button2 needs Image2.
>>>>>>
>>>>>> The styles of both the buttons are same except for the images that
>>>>>> appear on them.
>>>>>>
>>>>>>  I am writing two styles Style1 with the background-image as Image1
>>>>>> for the Button1.
>>>>>> And the other Style2 with the background-image as Image2 for the
>>>>>> Button2.
>>>>>>
>>>>>> Cant I not write a single style for both the buttons and some code to
>>>>>> indicate which image would be used for the button (dynamically).
>>>>>>
>>>>>>  That would save me the task of creating multiple styles for all the
>>>>>> buttons that I have.
>>>>>>
>>>>>>  Please let me know if there is any such functionality available...
>>>>>>
>>>>>> regards,
>>>>>> Abhiram
>>>>>>
>>>>>>
>>>>>> On Sat, Jun 13, 2009 at 11:51 AM, Booth Martin wrote:
>>>>>>
>>>>>>> I do not understand why you cannot just .setStyleName(Style1) on each
>>>>>>> widget to have that image?  Why would they need to be different for each
>>>>>>> widget?
>>>>>>>
>>>>>>> abhiram wrote:
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>>   I have a requirement where in I need to add image icons for widgets
>>>>>>> like buttons and menu items. I am using a CSS style for this wherein I
>>>>>>> specify the background image this way.
>>>>>>>
>>>>>>>  .Style1 {
>>>>>>>background: url(Image1.gif) no-repeat;
>>>>>>>text-align: right;
>>>>>>> }
>>>>>>>
>>>>>>>  This works fine, but was wondering if there is a better way of doing
>>>>>>> it. Coz, in this approach I need to create a new Style for each and
>>>>>>> every widget. Although the background for all the widgets are same,
>>>>>>> there are multiple css styles created because of this approach. Can
>>>>>>> anyone tell me if there is a more optimal method of doing this.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Abhiram
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>>
>>>>>>> No virus found in this incoming message.
>>>>>>> Checked by AVG - www.avg.com
>>>>>>> Version: 8.5.339 / Virus Database: 270.12.66/2172 - Release Date: 
>>>>>>> 06/12/09 17:56:00
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> ===
>>>>>>> LoChief,
>>>>>>> ===
>>>>>>>
>>>>>>> _   _ __
>>>>>>>| | | (_)  / \   _ __   ___  ___   ___ ___  _ __ ___
>>>>>>>| |_| | | / _ \ | '_ \ / _ \/ __| / __/ _ \| '_ ` _ \
>>>>>>>|  _  | |/ ___ \| |_) |  __/\__ \| (_| (_) | | | | | |
>>>>>>>|_| |_|_/_/   \_\ .__/ \___||___(_)___\___/|_| |_| |_|
>>>>>>>|_|
>>>>>>> ==
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>
>
> >
>

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



Image not appearing for ImgButton in SmartGWT

2009-06-13 Thread abhiram

Hi all,

  Just wanted to know if there is any image type restrictions for the
images that we use as Icons for Buttons in ImgButton in SmartGWT?

 I am trying a sample project but am not seeing the image on the
button.

regards,
Abhiram
--~--~-~--~~~---~--~~
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: Image icons for Widgets

2009-06-13 Thread abhiram wuntakal
ya, but it is a background image and i think i need to set it from CSS
itself right? or, is there a way to set the background image from the
code... (Using DOM or something!!!)

On 6/13/09, Ian Bambury  wrote:
>
> I don't think you can do it if you have to have the image name in the css
> file.
>
> I was suggesting setting the image name directly in the GWT code.
>
> Ian
>
> http://examples.roughian.com
>
>
> 2009/6/13 abhiram wuntakal 
>
>> Hi Ian,
>>
>>   Thanks for the suggestion. But i am not sure, how to set the Imagename
>> (which is part of the CSS ) from my Java code.
>> Can i pass parameters to the CSS file?
>>
>> regards,
>> Abhiram
>>
>>
>> On Sat, Jun 13, 2009 at 4:54 PM, Ian Bambury wrote:
>>
>>> Why don't you just name the image after the widget (e.g.SaveButton has a
>>> background image of 'SaveButton.png') and have a routine to set the
>>> background image to the name of the widget plus '.png'?
>>> Ian
>>>
>>> http://examples.roughian.com
>>>
>>>
>>> 2009/6/13 abhiram wuntakal 
>>>
>>> ok, i will elaborate a bit...
>>>>
>>>> there are 2 buttons, save Button1 and Button2. Button1 needs an image
>>>> Image1 and Button2 needs Image2.
>>>>
>>>> The styles of both the buttons are same except for the images that
>>>> appear on them.
>>>>
>>>>  I am writing two styles Style1 with the background-image as Image1 for
>>>> the Button1.
>>>> And the other Style2 with the background-image as Image2 for the
>>>> Button2.
>>>>
>>>> Cant I not write a single style for both the buttons and some code to
>>>> indicate which image would be used for the button (dynamically).
>>>>
>>>>  That would save me the task of creating multiple styles for all the
>>>> buttons that I have.
>>>>
>>>>  Please let me know if there is any such functionality available...
>>>>
>>>> regards,
>>>> Abhiram
>>>>
>>>>
>>>> On Sat, Jun 13, 2009 at 11:51 AM, Booth Martin wrote:
>>>>
>>>>> I do not understand why you cannot just .setStyleName(Style1) on each
>>>>> widget to have that image?  Why would they need to be different for each
>>>>> widget?
>>>>>
>>>>> abhiram wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>>   I have a requirement where in I need to add image icons for widgets
>>>>> like buttons and menu items. I am using a CSS style for this wherein I
>>>>> specify the background image this way.
>>>>>
>>>>>  .Style1 {
>>>>>background: url(Image1.gif) no-repeat;
>>>>>text-align: right;
>>>>> }
>>>>>
>>>>>  This works fine, but was wondering if there is a better way of doing
>>>>> it. Coz, in this approach I need to create a new Style for each and
>>>>> every widget. Although the background for all the widgets are same,
>>>>> there are multiple css styles created because of this approach. Can
>>>>> anyone tell me if there is a more optimal method of doing this.
>>>>>
>>>>> Regards,
>>>>> Abhiram
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>>
>>>>> No virus found in this incoming message.
>>>>> Checked by AVG - www.avg.com
>>>>> Version: 8.5.339 / Virus Database: 270.12.66/2172 - Release Date: 
>>>>> 06/12/09 17:56:00
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> ===
>>>>> LoChief,
>>>>> ===
>>>>>
>>>>> _   _ __
>>>>>| | | (_)  / \   _ __   ___  ___   ___ ___  _ __ ___
>>>>>| |_| | | / _ \ | '_ \ / _ \/ __| / __/ _ \| '_ ` _ \
>>>>>|  _  | |/ ___ \| |_) |  __/\__ \| (_| (_) | | | | | |
>>>>>|_| |_|_/_/   \_\ .__/ \___||___(_)___\___/|_| |_| |_|
>>>>>|_|
>>>>> ==
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>
>
>
>
> >
>

--~--~-~--~~~---~--~~
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: Image icons for Widgets

2009-06-13 Thread abhiram wuntakal
Hi Ian,

  Thanks for the suggestion. But i am not sure, how to set the Imagename
(which is part of the CSS ) from my Java code.
Can i pass parameters to the CSS file?

regards,
Abhiram

On Sat, Jun 13, 2009 at 4:54 PM, Ian Bambury  wrote:

> Why don't you just name the image after the widget (e.g.SaveButton has a
> background image of 'SaveButton.png') and have a routine to set the
> background image to the name of the widget plus '.png'?
> Ian
>
> http://examples.roughian.com
>
>
> 2009/6/13 abhiram wuntakal 
>
> ok, i will elaborate a bit...
>>
>> there are 2 buttons, save Button1 and Button2. Button1 needs an image
>> Image1 and Button2 needs Image2.
>>
>> The styles of both the buttons are same except for the images that appear
>> on them.
>>
>>  I am writing two styles Style1 with the background-image as Image1 for
>> the Button1.
>> And the other Style2 with the background-image as Image2 for the Button2.
>>
>> Cant I not write a single style for both the buttons and some code to
>> indicate which image would be used for the button (dynamically).
>>
>>  That would save me the task of creating multiple styles for all the
>> buttons that I have.
>>
>>  Please let me know if there is any such functionality available...
>>
>> regards,
>> Abhiram
>>
>>
>> On Sat, Jun 13, 2009 at 11:51 AM, Booth Martin  wrote:
>>
>>>  I do not understand why you cannot just .setStyleName(Style1) on each
>>> widget to have that image?  Why would they need to be different for each
>>> widget?
>>>
>>> abhiram wrote:
>>>
>>> Hi,
>>>
>>>   I have a requirement where in I need to add image icons for widgets
>>> like buttons and menu items. I am using a CSS style for this wherein I
>>> specify the background image this way.
>>>
>>>  .Style1 {
>>>background: url(Image1.gif) no-repeat;
>>>text-align: right;
>>> }
>>>
>>>  This works fine, but was wondering if there is a better way of doing
>>> it. Coz, in this approach I need to create a new Style for each and
>>> every widget. Although the background for all the widgets are same,
>>> there are multiple css styles created because of this approach. Can
>>> anyone tell me if there is a more optimal method of doing this.
>>>
>>> Regards,
>>> Abhiram
>>>
>>>
>>> --
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - www.avg.com
>>> Version: 8.5.339 / Virus Database: 270.12.66/2172 - Release Date: 06/12/09 
>>> 17:56:00
>>>
>>>
>>>
>>>
>>> --
>>> ===
>>> LoChief,
>>> ===
>>>
>>> _   _ __
>>>| | | (_)  / \   _ __   ___  ___   ___ ___  _ __ ___
>>>| |_| | | / _ \ | '_ \ / _ \/ __| / __/ _ \| '_ ` _ \
>>>|  _  | |/ ___ \| |_) |  __/\__ \| (_| (_) | | | | | |
>>>|_| |_|_/_/   \_\ .__/ \___||___(_)___\___/|_| |_| |_|
>>>|_|
>>> ==
>>>
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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: Image icons for Widgets

2009-06-13 Thread abhiram wuntakal
ok, i will elaborate a bit...

there are 2 buttons, save Button1 and Button2. Button1 needs an image Image1
and Button2 needs Image2.

The styles of both the buttons are same except for the images that appear on
them.

 I am writing two styles Style1 with the background-image as Image1 for the
Button1.
And the other Style2 with the background-image as Image2 for the Button2.

Cant I not write a single style for both the buttons and some code to
indicate which image would be used for the button (dynamically).

 That would save me the task of creating multiple styles for all the buttons
that I have.

 Please let me know if there is any such functionality available...

regards,
Abhiram

On Sat, Jun 13, 2009 at 11:51 AM, Booth Martin  wrote:

>  I do not understand why you cannot just .setStyleName(Style1) on each
> widget to have that image?  Why would they need to be different for each
> widget?
>
> abhiram wrote:
>
> Hi,
>
>   I have a requirement where in I need to add image icons for widgets
> like buttons and menu items. I am using a CSS style for this wherein I
> specify the background image this way.
>
>  .Style1 {
>background: url(Image1.gif) no-repeat;
>text-align: right;
> }
>
>  This works fine, but was wondering if there is a better way of doing
> it. Coz, in this approach I need to create a new Style for each and
> every widget. Although the background for all the widgets are same,
> there are multiple css styles created because of this approach. Can
> anyone tell me if there is a more optimal method of doing this.
>
> Regards,
> Abhiram
>
>
> --
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.339 / Virus Database: 270.12.66/2172 - Release Date: 06/12/09 
> 17:56:00
>
>
>
>
> --
> ===
> LoChief,
> ===
>
> _   _ __
>| | | (_)  / \   _ __   ___  ___   ___ ___  _ __ ___
>| |_| | | / _ \ | '_ \ / _ \/ __| / __/ _ \| '_ ` _ \
>|  _  | |/ ___ \| |_) |  __/\__ \| (_| (_) | | | | | |
>|_| |_|_/_/   \_\ .__/ \___||___(_)___\___/|_| |_| |_|
>|_|
> ==
>
>
> >
>

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



Image icons for Widgets

2009-06-12 Thread abhiram

Hi,

  I have a requirement where in I need to add image icons for widgets
like buttons and menu items. I am using a CSS style for this wherein I
specify the background image this way.

 .Style1 {
   background: url(Image1.gif) no-repeat;
   text-align: right;
}

 This works fine, but was wondering if there is a better way of doing
it. Coz, in this approach I need to create a new Style for each and
every widget. Although the background for all the widgets are same,
there are multiple css styles created because of this approach. Can
anyone tell me if there is a more optimal method of doing this.

Regards,
Abhiram
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Dialog Box Move Listener kind of thing

2009-06-11 Thread abhiram

Hi,

  Is there any way by which I could know if my Dialog Box has moved? I
mean at run time thru some listener or something? I am trying to find
out the position of the Dialog Box when it has moved for which I need
to know when it moved!!!

regards,
abhiram
--~--~-~--~~~---~--~~
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 Incubator - ScrollTable with TextBox

2009-06-10 Thread abhiram wuntakal
Thanks Isaac,

 I found an other way to get the logic working. it was necessary so that i
could conviniently delete the row, save the row data and other such
activities!!!

  thanks again...

regards,
Abhiram


On 6/11/09, Isaac Truett  wrote:
>
>
> I think you want getWidget(), not getText(). Cast the result to
> TextBox (or perhaps HasText if you want something more generic) and
> get the text from that.
>
>
>
> On Sun, Jun 7, 2009 at 1:39 PM, abhiram  wrote:
> >
> > Hi all,
> >
> >   I wanted to know if Scrolltable is a panel good enough to hold
> > TextBox widgets.
> >
> >   I have created a ScrollTable (using gwt-incubator_1-5_Dec_28) with
> > TextBoxes in a particular column and labels in other columns.
> >  I can extract the label value using the function
> > "scrollTable.getDataTable().getText(row,col)".
> >
> >  But i am not able to get the value at the TextBox using this
> > function. It always returns null.
> >
> >  Am i missing something here? Is there any other way to get the value
> > of the text in the textBox present at a particular cell?
> >
> >  PS : I am not using the TextBox array logic to get the data at the
> > textBox because there are certain problems when i delete the row in
> > the scrollTable.
> >
> > Regards,
> > Abhiram
> > >
> >
>
> >
>

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



Session id and client side IP

2009-06-08 Thread abhiram

Hi,

  How do I get the IP address of the person who is logging in from the
client side?
  And is the session id something that is generated from the client
side or the server sends back to the client side after it is contacted
for the first time by the client?

 Regards,
Abhiram
--~--~-~--~~~---~--~~
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: Too Dumb to Fix Logging on the Server

2009-06-08 Thread abhiram wuntakal
Have u tried adding the log4j jar file? that helps u generate log file using
a command like

private static Logger logger_ = Logger.getLogger(SampleFacade.class);
logger_.info("ABC");

cheers,
Abhiram


On Tue, Jun 9, 2009 at 3:58 AM, Scott  wrote:

>
> I am using GWT 1.6.4 in Eclipse 3.4.2 on Mac OS X with the
> Instantiations GWT Designer 7.0.0.  For the life of me, I cannot get a
> server log to be generated when an exception is thrown in my RPC
> code.  The console in Eclipse tells me:
>
> com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
> the server; see server log for details
>
> I've written a test harness for my RPC code, and it runs fine.
> Something with the interaction with GWT is making it mad and without
> the log, it's an uphill battle figuring it out.
>
> Searching the web has suggested creating a "commons-
> logging.properties" file in my classpath or adding the commons logging
> JARs to my project.  Neither has helped.
>
> I didn't have this issue in GWT 1.5.x and haven't been able to find
> any information about what has changed.
>
> Someone help!  Please?  :-)  Thanks!
>
>
> Scott
>
> >
>

--~--~-~--~~~---~--~~
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: Passing a argument to GWT application

2009-06-08 Thread abhiram wuntakal
Not sure if this is the right thing to do. but u can try the history token
as a work around.

 Pass the rowid as a history token to ur application url...
 Then retrieve the history token in ur code and u can later query the
database accordingly..

 Dont u want to put a textBox in the initial screen which takes up the rowid
as the parameter and gets u the data accordingly? that i guess, would be the
most logical thing to do...

regards,
Abhiram

On Tue, Jun 9, 2009 at 4:19 AM, OffTheWall wrote:

>
> I want to pass my GWT application a recordID at the time I call the
> URL.  The application would then retrieve the record from the server
> and display the record on the screen.  What is the best way to do this
> and is it possible to pass command line arguments to a GWT application?
> >
>

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



GWT Incubator - ScrollTable with TextBox

2009-06-07 Thread abhiram

Hi all,

   I wanted to know if Scrolltable is a panel good enough to hold
TextBox widgets.

   I have created a ScrollTable (using gwt-incubator_1-5_Dec_28) with
TextBoxes in a particular column and labels in other columns.
  I can extract the label value using the function
"scrollTable.getDataTable().getText(row,col)".

  But i am not able to get the value at the TextBox using this
function. It always returns null.

  Am i missing something here? Is there any other way to get the value
of the text in the textBox present at a particular cell?

 PS : I am not using the TextBox array logic to get the data at the
textBox because there are certain problems when i delete the row in
the scrollTable.

Regards,
Abhiram
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Movable Widgets as seen in iGoogle

2009-06-05 Thread abhiram

This might sound like a really direct question.. But i just wanted to
know, if there are any specific widgets that i can get to display the
items the way i see in the iGoogle page.

Regards,
Abhiram
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Menu becomes slow after loading

2009-06-05 Thread abhiram

Hi all,

   I am facing a strange problem. After i load my menu items (its a
combination of horizontal and vertical menu bars), i see that the menu
becomes pretty slow. I tried a sample project where it was pretty
responsive. But in the actual project its very slow.

   Does the menu concept itself work this way or is there something
that can be done for this?

Regards,
Abhiram


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



GWT Incubator - Java heap space problem

2009-06-05 Thread abhiram

Hi all,

  Just wanted to know if there is any minimum memory specification for
GWT incubator. I have a 1 gig ram and when i try to compile an
application which has the incubator jar, i get the error like
"Exception in thread "main" java.lang.OutOfMemoryError: Java heap
space".

  Or is this because of some other problem??

regards,
Abhiram
--~--~-~--~~~---~--~~
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: Navigate to new page

2009-06-03 Thread abhiram wuntakal
Another way!!! You can have this loginpanel in an absolute panel which is
present in the root panel.
When u are navigating to the next page, just remove this absolute panel from
the root panel and call the next entry point.

U can follow the same process for navigating to all the pages that would
come up.

regards,
abhiram

On Wed, Jun 3, 2009 at 2:50 PM, ashik  wrote:

>
> Hi I am using GWT in my application. I want to navigate to next page.
> I have login page where user name and password are entered. After
> successfully entering user and password a button is pressed. After
> that it should move to a new page where i can have more option.
>
> Please help me how to do this using GWT
>
> Thanks & Regards
>
> Ashik
>
> >
>

--~--~-~--~~~---~--~~
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: Best approach for saving and displaying images

2009-05-23 Thread abhiram wuntakal
Hi all,

  Finally i got my code working using the database approach. Thanks a lot
for all your suggestions...

cheers,
Abhiram


On 5/23/09, Jim  wrote:
>
>
> Please see http://www.hsqldb.org/web/hsqlDocsFrame.html.
>
> Jim
> Jim
> http://www.gwtorm.com - GWT ORM
> http://code.google.com/p/dreamsource-orm
>
>
> On May 22, 3:53 pm, abhiram wuntakal  wrote:
> > i am sorry, i am not aware of it. can u please let me know the approach
> for
> > it? or any link that gives info about it...
> >
> > thanks,
> > abhiram
> >
> >
> >
> > On Sat, May 23, 2009 at 1:22 AM, Jim  wrote:
> >
> > > How about using embedded HSQLDB to handle images?
> >
> > > Jim
> >
> > > On May 22, 1:52 pm, abhiram wuntakal  wrote:
> > > > But, wont the database transactions take a lot of time?
> >
> > > > My images are of higher resolution and they are pretty huge...
> >
> > > > regards,
> > > > Abhiram
> >
> > > > On Fri, May 22, 2009 at 9:25 PM, Paul Robinson 
> > > wrote:
> >
> > > > > Apparently, Dreamsource ORM is the answer to everything.
> >
> > > > > Jim wrote:
> > > > > > I prefer BLOB in database not CLOB. It is easier to manage them
> when
> > > > > > they are in database than in file system. You may try Dreamsource
> > > ORM.
> > > > > > It supports BLOB mapping in one line of code in your application.
> >
> > > > > > Jim
> > > > > >http://www.gwtorm.com-GWT ORM
> > > > > >http://code.google.com/p/dreamsource-orm
> >
> > > > > > On May 22, 5:03 am, abhiram  wrote:
> >
> > > > > >> Hi,
> >
> > > > > >>   I am developing an application for displaying images which are
> > > > > >> stored on the server. Which would be the best approach to save
> the
> > > > > >> images on the server?
> >
> > > > > >>  1> Save the image as a CLOB data in the database or
> > > > > >>   2> Save the images in a folder in the server?
> > > > > >>   3> Or any other better technique... :-)
> >
> > > > > >>   Please suggest..
> >
> > > > > >> regards,
> > > > > >> Abhiram- Hide quoted text -
> >
> > > > - Show quoted text -- Hide quoted text -
> >
> > - Show quoted text -
> >
>

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



Re: Best approach for saving and displaying images

2009-05-22 Thread abhiram wuntakal
i am sorry, i am not aware of it. can u please let me know the approach for
it? or any link that gives info about it...

thanks,
abhiram

On Sat, May 23, 2009 at 1:22 AM, Jim  wrote:

>
> How about using embedded HSQLDB to handle images?
>
> Jim
>
> On May 22, 1:52 pm, abhiram wuntakal  wrote:
> > But, wont the database transactions take a lot of time?
> >
> > My images are of higher resolution and they are pretty huge...
> >
> > regards,
> > Abhiram
> >
> >
> >
> > On Fri, May 22, 2009 at 9:25 PM, Paul Robinson 
> wrote:
> >
> > > Apparently, Dreamsource ORM is the answer to everything.
> >
> > > Jim wrote:
> > > > I prefer BLOB in database not CLOB. It is easier to manage them when
> > > > they are in database than in file system. You may try Dreamsource
> ORM.
> > > > It supports BLOB mapping in one line of code in your application.
> >
> > > > Jim
> > > >http://www.gwtorm.com- GWT ORM
> > > >http://code.google.com/p/dreamsource-orm
> >
> > > > On May 22, 5:03 am, abhiram  wrote:
> >
> > > >> Hi,
> >
> > > >>   I am developing an application for displaying images which are
> > > >> stored on the server. Which would be the best approach to save the
> > > >> images on the server?
> >
> > > >>  1> Save the image as a CLOB data in the database or
> > > >>   2> Save the images in a folder in the server?
> > > >>   3> Or any other better technique... :-)
> >
> > > >>   Please suggest..
> >
> > > >> regards,
> > > >> Abhiram- Hide quoted text -
> >
> > - Show quoted text -
> >
>

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



Re: Best approach for saving and displaying images

2009-05-22 Thread abhiram wuntakal
But, wont the database transactions take a lot of time?

My images are of higher resolution and they are pretty huge...

regards,
Abhiram


On Fri, May 22, 2009 at 9:25 PM, Paul Robinson  wrote:

>
> Apparently, Dreamsource ORM is the answer to everything.
>
> Jim wrote:
> > I prefer BLOB in database not CLOB. It is easier to manage them when
> > they are in database than in file system. You may try Dreamsource ORM.
> > It supports BLOB mapping in one line of code in your application.
> >
> > Jim
> > http://www.gwtorm.com - GWT ORM
> > http://code.google.com/p/dreamsource-orm
> >
> >
> > On May 22, 5:03 am, abhiram  wrote:
> >
> >> Hi,
> >>
> >>   I am developing an application for displaying images which are
> >> stored on the server. Which would be the best approach to save the
> >> images on the server?
> >>
> >>  1> Save the image as a CLOB data in the database or
> >>   2> Save the images in a folder in the server?
> >>   3> Or any other better technique... :-)
> >>
> >>   Please suggest..
> >>
> >> regards,
> >> Abhiram
> >>
>
> >
>

--~--~-~--~~~---~--~~
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: Images for Push Buttons

2009-05-22 Thread abhiram wuntakal
Hi Donald,

  Thanks for your reply, but i am sorry, i guess u have misunderstood my
problem. My problem is...

  I have 3 buttons Button1, Button2 and Button3. All three have different
functionalities. So I have a different image to be displayed on each of the
buttons. If i use CSS then i need to have a different style for each of the
buttons. But all the buttons look similar except for the image that gets on
top of the button.

 My doubt is, is there a way to have the image displayed on the Button by
setting the image directly from the Code (Not from the css), so that when i
define the button i have the image defined for it as well.

 Hope my doubt is much clear now. Please let me know if you can suggest any
solution for this problem.
Best Regards,
Abhiram



On Fri, May 22, 2009 at 7:07 PM, Donald.W.Long <
donald.w.l...@thelongsfamily.com> wrote:

>
> If I understand you correctly you just wish to control each button in
> your application.
>
> If you wish to replace the complete default style that is used for
> button then use the following
>
>button.setStyleName("mystyle");
>
> CSS file would be
>
> .mystyle {
>  
> }
>
> Create a style for each button and you are done.  By doing this it
> allows you to change the program look without changing the code.
>
> You can also use the CSS cascading ability by appending a style to
> your button, I have found issues in this area from time to time, but
> works most of the time.
>
>button.addStyleName("myextstyle");
>
> CSS
>
> .myextsyle {
>  
> }
>
> From what I understand this should still use the normal style and add
> this to the list.  I have not used this
>
> or you can
>
>button.addStyleDependentName("myextstyle")'
>
> .gwt-Button-myextsyle {
>  
> }
>
> I hope I got the above correct if not some else please show the
> correct method.
>
> Hope this helps Donald W. Long
>
>
>
>
>
> On May 22, 3:32 am, abhiram  wrote:
> > Hi,
> >
> >   I wanted to know the procedure to add images to PushButtons.
> >   I have found a css style by which i can add it. But that would mean
> > that for every button with an image, i need to write a style rather
> > than having a single style. Is there any way to specify the image for
> > the face of the push button from the code itself?
> >
> > regards,
> > Abhiram
> >
>

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



Best approach for saving and displaying images

2009-05-22 Thread abhiram

Hi,

  I am developing an application for displaying images which are
stored on the server. Which would be the best approach to save the
images on the server?

 1> Save the image as a CLOB data in the database or
  2> Save the images in a folder in the server?
  3> Or any other better technique... :-)

  Please suggest..

regards,
Abhiram
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Images for Push Buttons

2009-05-22 Thread abhiram

Hi,

  I wanted to know the procedure to add images to PushButtons.
  I have found a css style by which i can add it. But that would mean
that for every button with an image, i need to write a style rather
than having a single style. Is there any way to specify the image for
the face of the push button from the code itself?

regards,
Abhiram
--~--~-~--~~~---~--~~
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: Please help

2009-05-21 Thread abhiram wuntakal
Hi,

 u can use a function like this...

public boolean isAlpha(String abc) {

  abc = abc.toUpperCase();

  for (int i = 0; i < abc.length(); i++) {
   int c = (int) abc.charAt(i);

   if (c < 65 || c > 90) {
Window.alert("enter a valid data");
   }
   return false;
  }
  return true;
 }

regards,
Abhiram

On Thu, May 21, 2009 at 4:29 PM, poonam  wrote:

>
> Hello all,
>  I am badly in need of your help,I am not getting how to do it using
> GWT?
> Actually I want to write a validation method  for checking whether the
> input in the textbox  is alphabetic or not?
> I have done it for numeric and also for the textbox should not be
> empty but not getting how to validate the textbox input for
> alphabets.Please help me.
> The format my method is :
> public boolean validate( )
> {
> 
> ..
> 
> return ... ;
> }
> Please help me
>
> >
>

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



Imports in the Client Side

2009-05-20 Thread abhiram

Hi all,

  I am developing a password hashing approach for my project. I first
convert my password string into a MD5 String and and send it across to
the server side where i compare it with the MD5 string saved in the
database.

  I used a code for doing the string conversion to MD5 at client side
but I am getting errors for the following import statements that I
used.

import java.io.FileInputStream;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

  And the error was something like "java.io.FileInputStream can not be
found in source packages. Check the inheritance chain from
 your module; it may not be inheriting a required module or a module
may not be adding its source
 path entries properly."

  Please let me know if i am missing out something as I am not sure
what i need to add in the .gwt.xml file for this.
  First of all, is it possible to put this code in the client 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: Password Encryption

2009-05-19 Thread abhiram wuntakal
Hi Magius,

  Thanks a lot for that info. My next question, how do i make my existing
connection a HTTPS connection?

regards,
Abhiram

On Tue, May 19, 2009 at 7:00 PM, Magius  wrote:

>
> If you encrypt the password at the client side, everybody can review
> the javascript algorithm and break it.
>
> If you establish an HTTPS connection, then the channel is secure and
> you can transfer the password in clear or with a simple
> transformation.
>
>
> On May 19, 6:50 am, abhiram  wrote:
> > Hi all,
> >
> >   I wanted to know if there are any jars readily available for
> > encryption. I need to encrypt the password and send it across to the
> > server side.
> >
> > Thanks and Regards,
> > Abhiram
> >
>

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



Password Encryption

2009-05-18 Thread abhiram

Hi all,

  I wanted to know if there are any jars readily available for
encryption. I need to encrypt the password and send it across to the
server side.

Thanks and Regards,
Abhiram
--~--~-~--~~~---~--~~
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: Reading XML on Client

2009-05-14 Thread abhiram wuntakal
I dont think so u can do any such operations on the client side. You can
rather use the file upload widget, transfer the code to the sever side and
make use of simple File Read opeartions to read the contents of the XML
file. Then you can bring back this data and display it on the client side.

hope this helps.

regards,
Abhiram

On Thu, May 14, 2009 at 3:50 PM, Pints  wrote:

>
> Hi,
>
> Can any share the ideas that how can i read XML on client in GWT?
>
> thanks,
> >
>

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



Re: Sending email from Server Side

2009-05-11 Thread abhiram wuntakal
Hi Salvador,

 Thanks a lot for that quick response. Well, i am not much familiar with the
protocols.

 I used the smtp.gmail.com instead of the ip string. Now i am getting stuck
at an other place and I am getting an error like "gwt
com.sun.mail.smtp.smtpsendfailedexception: 530 must issue a STARTTLS command
first."

 Please suggest if u know a way out of this issue.

Thanks,
Abhiram

On Mon, May 11, 2009 at 6:09 PM, Salvador Diaz wrote:

>
> I think you need to learn a bit more about how email works before
> trying to do that.
> For the record, gmail.com is an http server not a smtp one.
> If you don't want to bother learning about email protocols, I suggest
> you try smtp.gmail.com instead of 209.85.171.83
>
> Cheers,
>
> Salvador
>
>
>
> On May 11, 2:06 pm, abhiram  wrote:
> > Hi all,
> >
> >   I am writing an application to send an email from the server side. I
> > am using the mail.jar for this purpose. I have written a function for
> > this as below:
> >
> > protected void sendMessage(String smtpHost, String fromAddress, String
> > fromName, String to, String subject, String text) throws
> > UnsupportedEncodingException, MessagingException
> >  {
> > System.out.println("ABC");
> >   // Get system properties
> >   Properties props = System.getProperties();
> >   // Setup mail server
> >   props.put("mail.smtp.host", smtpHost);
> >   // Get session
> >   javax.mail.Session session =
> javax.mail.Session.getDefaultInstance
> > (props, null);
> >   // Define message
> >   MimeMessage message = new MimeMessage(session);
> >   // Set the from address
> >   message.setFrom(new InternetAddress(fromAddress, fromName));
> >   // Set the to address
> >   message.addRecipient(Message.RecipientType.TO, new
> InternetAddress
> > (to));
> >   // Set the subject
> >   message.setSubject(subject);
> >   // Set the content
> >       message.setContent(text, "text/html");
> >   // Send message
> >   Transport.send(message);
> >  }
> >
> > and i am invoking the function using this line of code.
> >
> > sendMessage("209.85.171.83", "abhir...@gmail.com", "abhiram",
> > "abhir...@gmail.com", "Hi", "Message-Body");
> >
> > Here, i found the ip address is of gmail.com which i got by pinging
> > for gmail.com. Please let me know if this approach is right as I am
> > getting an error like "Could not connect to SMTP host : 66.249.93.109,
> > port:25 ".
> >
> > Thanks and Regards,
> > Abhiram
> >
>

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



Sending email from Server Side

2009-05-11 Thread abhiram

Hi all,

  I am writing an application to send an email from the server side. I
am using the mail.jar for this purpose. I have written a function for
this as below:

protected void sendMessage(String smtpHost, String fromAddress, String
fromName, String to, String subject, String text) throws
UnsupportedEncodingException, MessagingException
 {
System.out.println("ABC");
  // Get system properties
  Properties props = System.getProperties();
  // Setup mail server
  props.put("mail.smtp.host", smtpHost);
  // Get session
  javax.mail.Session session = javax.mail.Session.getDefaultInstance
(props, null);
  // Define message
  MimeMessage message = new MimeMessage(session);
  // Set the from address
  message.setFrom(new InternetAddress(fromAddress, fromName));
  // Set the to address
  message.addRecipient(Message.RecipientType.TO, new InternetAddress
(to));
  // Set the subject
  message.setSubject(subject);
  // Set the content
  message.setContent(text, "text/html");
  // Send message
  Transport.send(message);
 }

and i am invoking the function using this line of code.

sendMessage("209.85.171.83", "abhir...@gmail.com", "abhiram",
"abhir...@gmail.com", "Hi", "Message-Body");

Here, i found the ip address is of gmail.com which i got by pinging
for gmail.com. Please let me know if this approach is right as I am
getting an error like "Could not connect to SMTP host : 66.249.93.109,
port:25 ".

Thanks and Regards,
Abhiram


--~--~-~--~~~---~--~~
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: Image Quality Affected during File Upload

2009-05-10 Thread abhiram wuntakal
Hi Vitali,

  I finally was able to solve the problem.

  Actually i had converted the bytestream to a string as an intermediate
step. Then was converting the string back to a bytestream before writing
this to a file. During this process, i used to lose some data i guess. I
changed the code so that the data gets into the file directly from the
original bytestream and it worked perfectly well.

 Thanks anyways, for your suggestions!!

regards,
Abhiram

On Sun, May 10, 2009 at 10:06 AM, abhiram  wrote:

>
> hi vitali,
>
>  i am sure there is no problem with my viewer. I believe the data is
> getting tampered when recieved by the servlet. Further, one more thing
> that i noticed was that, if the image is of low quality say a "16
> Color Bitmap" image, then the data is getting transferred almost
> perfectly and the image is being seen perfectly. So,i thought, higher
> the resolution, the data is getting tampered...
>
>  Please let me know if something needs to be done at the servlet side
> coding for capturing the data perfectly...
>
> On May 10, 9:16 am, Vitali Lovich  wrote:
> > do a binary diff.  if they are the same, then there's a problem with your
> > viewer.
> >
> >
> >
> > On Sat, May 9, 2009 at 6:20 AM, abhiram  wrote:
> >
> > > Hi all,
> >
> > >  I am trying an image upload application, where in I am
> > > transferring .jpg / .bmp images to a location on the server. But when
> > > i do that I see that the quality of the image is lost. When i compare
> > > the two images i see that both are of same size. Not sure, why this
> > > thing is happening. Can anyone please suggest what might be a possible
> > > solution?- Hide quoted text -
> >
> > - Show quoted text -
>  >
>

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



Re: Image Quality Affected during File Upload

2009-05-09 Thread abhiram

hi vitali,

  i am sure there is no problem with my viewer. I believe the data is
getting tampered when recieved by the servlet. Further, one more thing
that i noticed was that, if the image is of low quality say a "16
Color Bitmap" image, then the data is getting transferred almost
perfectly and the image is being seen perfectly. So,i thought, higher
the resolution, the data is getting tampered...

 Please let me know if something needs to be done at the servlet side
coding for capturing the data perfectly...

On May 10, 9:16 am, Vitali Lovich  wrote:
> do a binary diff.  if they are the same, then there's a problem with your
> viewer.
>
>
>
> On Sat, May 9, 2009 at 6:20 AM, abhiram  wrote:
>
> > Hi all,
>
> >  I am trying an image upload application, where in I am
> > transferring .jpg / .bmp images to a location on the server. But when
> > i do that I see that the quality of the image is lost. When i compare
> > the two images i see that both are of same size. Not sure, why this
> > thing is happening. Can anyone please suggest what might be a possible
> > solution?- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Image Quality Affected during File Upload

2009-05-09 Thread abhiram

Hi all,

  I am trying an image upload application, where in I am
transferring .jpg / .bmp images to a location on the server. But when
i do that I see that the quality of the image is lost. When i compare
the two images i see that both are of same size. Not sure, why this
thing is happening. Can anyone please suggest what might be a possible
solution?

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



Unknown Entity for Vo

2009-01-09 Thread abhiram

Hi all,

   When i try to save some data, i keep getting the
"BaseEmrException : Unknown entity : com.abc. .. .DetailsVo." I
make use of the saveOrUpdate(Vo) function to save the data into the
database. I ensured that the emr.hbm.xml file is proper. Can anyone
please let me know why this error keeps coming and what is the
possible solution for this? Thanks

Abhiram

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