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 grsvarma...@gmail.com 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 svr...@gmail.comwrote:

 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.comgoogle-web-toolkit%2bunsubscr...@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 naveenkumarnl1...@gmail.com 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 e-mail%3asen...@abc.com

 Message:

  body



 sendbutton

 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.comgoogle-web-toolkit%2bunsubscr...@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 baken...@gmail.com 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.comgoogle-web-toolkit%2bunsubscr...@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 anapont...@gmail.com 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.comgoogle-web-toolkit%2bunsubscr...@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 vela.igna...@gmail.com 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 eplisc...@googlemail.com 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 linema...@gmail.com 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 vela.igna...@gmail.com 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.comgoogle-web-toolkit%2bunsubscr...@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 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(AsyncCallbackVoid 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 felip...@gmail.com 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 abhir...@gmail.com 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 felip...@gmail.com
 wrote:
   but what about the implementation of the RPC, you could help me?
   thanks
 
   On May 10, 2:06 am, abhiram wuntakal abhir...@gmail.com 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

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 felip...@gmail.com wrote:

 but what about the implementation of the RPC, you could help me?
 thanks

 On May 10, 2:06 am, abhiram wuntakal abhir...@gmail.com 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.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

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 felip...@gmail.com 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, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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 

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 new.ankitj...@gmail.com 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.comgoogle-web-toolkit%2bunsubscr...@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: 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 sudee...@gmail.com 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 thechris...@gmail.com 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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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: 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 amich...@gmail.comwrote:

 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.comgoogle-web-toolkit%2bunsubscr...@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 jimmy.verhee...@gmail.com 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 abhir...@gmail.com 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.comgoogle-web-toolkit%2bunsubscr...@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 pgtabo...@googlemail.comwrote:

 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 abhir...@gmail.com 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.comgoogle-web-toolkit%2bunsubscr...@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: 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 abhir...@gmail.com 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 bPrint.it()/b!). 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 id=__printingFrame style=width:0;height:0;border:0/
 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=.




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 demeus1...@gmail.com 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 jagadesh.manch...@gmail.comwrote:


 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 juz...@gmail.com 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 ianbamb...@gmail.com 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 juz...@gmail.com
 
 
 
 
 
   hello... please help
 
   On Oct 18, 12:31 am, YoeZ juz...@gmail.com 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 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 luys.e...@gmail.com 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 abhir...@gmail.com 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 abhir...@gmail.com 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-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 t.bro...@gmail.com wrote:




 On 30 sep, 11:50, abhiram wuntakal abhir...@gmail.com 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-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 abhir...@gmail.com 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: GWT Button style using HTML - Mozilla Compatibility

2009-09-25 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 zakn...@gmail.com wrote:


 The CSS for the background declaration is invalid. Also there's no
 need for tabs and carriage returns. Try this:

 button.setHTML(div style=\background:transparent url(home.gif) no-
 repeat; width:95px; height:23px;\ Home /div);

 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 abhir...@gmail.com 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 venkatbab...@gmail.com
 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 abhir...@gmail.com 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(div style=\background:url(home.gif) repeat no-
   repeat;\r\n\t\twidth:95px;\r\n\t\theight:23px;\ Home /div);
 
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 venkatbab...@gmail.comwrote:

 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 abhir...@gmail.com 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(div style=\background:url(home.gif) repeat no-
 repeat;\r\n\t\twidth:95px;\r\n\t\theight:23px;\ Home /div);

  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: 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 ukcue...@gmail.com 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
-~--~~~~--~~--~--~---



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 cuetum...@gmail.com 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
-~--~~~~--~~--~--~---



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 y.sowja...@gmail.com 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 sanjiv.ji...@gmail.comwrote:

 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 abhir...@gmail.com 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
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 bo...@hiapes.com 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 ianbamb...@gmail.com 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 abhir...@gmail.com

 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 bo...@hiapes.com 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
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 ianbamb...@gmail.com 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 abhir...@gmail.com

 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 ianbamb...@gmail.comwrote:

 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 abhir...@gmail.com

 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 bo...@hiapes.comwrote:

 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 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 ianbamb...@gmail.com wrote:

 x.getElement().getStyle().setProperty(backgroundImage, url(image.png));


 (or something like that)

 Ian

 http://examples.roughian.com


 2009/6/13 abhiram wuntakal abhir...@gmail.com

 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 ianbamb...@gmail.com 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 abhir...@gmail.com

 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 ianbamb...@gmail.comwrote:

 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 abhir...@gmail.com

 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 bo...@hiapes.comwrote:

 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: 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 itru...@gmail.com 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 abhir...@gmail.com 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
-~--~~~~--~~--~--~---



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 cfourn...@redzonesoftware.comwrote:


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



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 scott.duens...@gmail.com 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: Navigate to new page

2009-06-04 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 aashiqbab...@gmail.com 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-24 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 jim.p...@gmail.com 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 abhir...@gmail.com 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 jim.p...@gmail.com wrote:
 
   How about using embedded HSQLDB to handle images?
 
   Jim
 
   On May 22, 1:52 pm, abhiram wuntakal abhir...@gmail.com 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 ukcue...@gmail.com
   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 abhir...@gmail.com 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: 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 {
  place your styles here
 }

 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 {
  add your styles
 }

 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 {
  add you styles
 }

 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 abhir...@gmail.com 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
-~--~~~~--~~--~--~---



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 ukcue...@gmail.com 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 abhir...@gmail.com 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: 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 jim.p...@gmail.com wrote:


 How about using embedded HSQLDB to handle images?

 Jim

 On May 22, 1:52 pm, abhiram wuntakal abhir...@gmail.com 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 ukcue...@gmail.com
 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 abhir...@gmail.com 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: 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 poonam...@gmail.com 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
-~--~~~~--~~--~--~---



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 antonio.diaz@gmail.com 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 abhir...@gmail.com 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
-~--~~~~--~~--~--~---



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 rohitvad...@gmail.com 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 diaz.salva...@gmail.comwrote:


 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 abhir...@gmail.com 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
-~--~~~~--~~--~--~---



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 abhir...@gmail.com 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 vlov...@gmail.com 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 abhir...@gmail.com 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
-~--~~~~--~~--~--~---