hi

2009-10-22 Thread e kaavya

http://www.123maza.com/electromagnetism
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: any way to return image through rpc?

2009-10-22 Thread alex.d

There was another really insane way where you actually decode your
image (bytes you've sended back) and produce a lot of 1px sized divs
with accordant colors which makes the image :))  But like i said -
it's kind of crazy.

On 22 Okt., 07:55, "Robert J. Carr"  wrote:
> Thanks Ian ... I had a feeling it was going to be complicated, I just
> wanted to make sure I wasn't missing something.
>
> Looks like I'm relegated to building complex queries or making two
> requests.  Thanks again for the time!
>
> On Wed, Oct 21, 2009 at 9:12 PM, Ian Petersen  wrote:
>
> > You can send bytes back to the client as an RPC response (it's just an
> > HTTP request, after all) but the problem is what to do with the bytes
> > once you have them.  If you're willing to restrict yourself to
> > browsers that support data:// URLs, you can send the image back as a
> > data:// URL and just drop the result into an img tag.  That approach
> > excludes many (all?) versions of IE.  As far as I know, the only IE
> > that _might_ support data:// URLs is IE8.  To be fully-compatible, you
> > need to forge ahead with your existing approach or, as you say,
> > generate a URL via RPC and make the generated URL resolve to the
> > desired image.
>
> > If you want to fool around with the RPC infrastructure, you could
> > possibly use a GWT-RPC request payload as the query parameter in a
> > standard request, if you think such a representation would be more
> > compact/useful than the representation you're currently using.  On the
> > server side, you could then use the RPC class (is that still in use?)
> > to deserialize the parameters and drive the image request.  Might be
> > more trouble than it's worth, though.
>
> > Ian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: any way to return image through rpc?

2009-10-22 Thread Robert J. Carr

I appreciate your imagination. :)

On Thu, Oct 22, 2009 at 1:22 AM, alex.d  wrote:
>
> There was another really insane way where you actually decode your
> image (bytes you've sended back) and produce a lot of 1px sized divs
> with accordant colors which makes the image :))  But like i said -
> it's kind of crazy.
>
> On 22 Okt., 07:55, "Robert J. Carr"  wrote:
>> Thanks Ian ... I had a feeling it was going to be complicated, I just
>> wanted to make sure I wasn't missing something.
>>
>> Looks like I'm relegated to building complex queries or making two
>> requests.  Thanks again for the time!
>>
>> On Wed, Oct 21, 2009 at 9:12 PM, Ian Petersen  wrote:
>>
>> > You can send bytes back to the client as an RPC response (it's just an
>> > HTTP request, after all) but the problem is what to do with the bytes
>> > once you have them.  If you're willing to restrict yourself to
>> > browsers that support data:// URLs, you can send the image back as a
>> > data:// URL and just drop the result into an img tag.  That approach
>> > excludes many (all?) versions of IE.  As far as I know, the only IE
>> > that _might_ support data:// URLs is IE8.  To be fully-compatible, you
>> > need to forge ahead with your existing approach or, as you say,
>> > generate a URL via RPC and make the generated URL resolve to the
>> > desired image.
>>
>> > If you want to fool around with the RPC infrastructure, you could
>> > possibly use a GWT-RPC request payload as the query parameter in a
>> > standard request, if you think such a representation would be more
>> > compact/useful than the representation you're currently using.  On the
>> > server side, you could then use the RPC class (is that still in use?)
>> > to deserialize the parameters and drive the image request.  Might be
>> > more trouble than it's worth, though.
>>
>> > Ian
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: any way to return image through rpc?

2009-10-22 Thread alex.d

Glad i could help ;)

On 22 Okt., 10:26, "Robert J. Carr"  wrote:
> I appreciate your imagination. :)
>
> On Thu, Oct 22, 2009 at 1:22 AM, alex.d  wrote:
>
> > There was another really insane way where you actually decode your
> > image (bytes you've sended back) and produce a lot of 1px sized divs
> > with accordant colors which makes the image :))  But like i said -
> > it's kind of crazy.
>
> > On 22 Okt., 07:55, "Robert J. Carr"  wrote:
> >> Thanks Ian ... I had a feeling it was going to be complicated, I just
> >> wanted to make sure I wasn't missing something.
>
> >> Looks like I'm relegated to building complex queries or making two
> >> requests.  Thanks again for the time!
>
> >> On Wed, Oct 21, 2009 at 9:12 PM, Ian Petersen  wrote:
>
> >> > You can send bytes back to the client as an RPC response (it's just an
> >> > HTTP request, after all) but the problem is what to do with the bytes
> >> > once you have them.  If you're willing to restrict yourself to
> >> > browsers that support data:// URLs, you can send the image back as a
> >> > data:// URL and just drop the result into an img tag.  That approach
> >> > excludes many (all?) versions of IE.  As far as I know, the only IE
> >> > that _might_ support data:// URLs is IE8.  To be fully-compatible, you
> >> > need to forge ahead with your existing approach or, as you say,
> >> > generate a URL via RPC and make the generated URL resolve to the
> >> > desired image.
>
> >> > If you want to fool around with the RPC infrastructure, you could
> >> > possibly use a GWT-RPC request payload as the query parameter in a
> >> > standard request, if you think such a representation would be more
> >> > compact/useful than the representation you're currently using.  On the
> >> > server side, you could then use the RPC class (is that still in use?)
> >> > to deserialize the parameters and drive the image request.  Might be
> >> > more trouble than it's worth, though.
>
> >> > Ian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: any way to return image through rpc?

2009-10-22 Thread Erik

You can make a servlet and point the url (with or without parameters)
of the image to that servlet,

in the doPost or doGet method:
final BufferedImage image = new BufferedImage(canvasWidth,
canvasHeight, BufferedImage.TYPE_INT_RGB);
final Graphics2D graphics2D = image.createGraphics();
// create the image... (you can use parameters from the url).
...
//at the end :
response.setContentType("image/jpg");
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
ImageIO.write(image, "jpg", baos);
final OutputStream out = response.getOutputStream();
baos.writeTo(out);
baos.flush();
out.close();

greets,
Erik

On Oct 22, 10:37 am, "alex.d"  wrote:
> Glad i could help ;)
>
> On 22 Okt., 10:26, "Robert J. Carr"  wrote:
>
> > I appreciate your imagination. :)
>
> > On Thu, Oct 22, 2009 at 1:22 AM, alex.d  
> > wrote:
>
> > > There was another really insane way where you actually decode your
> > > image (bytes you've sended back) and produce a lot of 1px sized divs
> > > with accordant colors which makes the image :))  But like i said -
> > > it's kind of crazy.
>
> > > On 22 Okt., 07:55, "Robert J. Carr"  wrote:
> > >> Thanks Ian ... I had a feeling it was going to be complicated, I just
> > >> wanted to make sure I wasn't missing something.
>
> > >> Looks like I'm relegated to building complex queries or making two
> > >> requests.  Thanks again for the time!
>
> > >> On Wed, Oct 21, 2009 at 9:12 PM, Ian Petersen  wrote:
>
> > >> > You can send bytes back to the client as an RPC response (it's just an
> > >> > HTTP request, after all) but the problem is what to do with the bytes
> > >> > once you have them.  If you're willing to restrict yourself to
> > >> > browsers that support data:// URLs, you can send the image back as a
> > >> > data:// URL and just drop the result into an img tag.  That approach
> > >> > excludes many (all?) versions of IE.  As far as I know, the only IE
> > >> > that _might_ support data:// URLs is IE8.  To be fully-compatible, you
> > >> > need to forge ahead with your existing approach or, as you say,
> > >> > generate a URL via RPC and make the generated URL resolve to the
> > >> > desired image.
>
> > >> > If you want to fool around with the RPC infrastructure, you could
> > >> > possibly use a GWT-RPC request payload as the query parameter in a
> > >> > standard request, if you think such a representation would be more
> > >> > compact/useful than the representation you're currently using.  On the
> > >> > server side, you could then use the RPC class (is that still in use?)
> > >> > to deserialize the parameters and drive the image request.  Might be
> > >> > more trouble than it's worth, though.
>
> > >> > Ian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Validation with Checkbox & TextArea in gwt1.5.3

2009-10-22 Thread Srihari.Ch

Hi all,

   I am new to gwt & i am using gwt1.5.3.
I have 7x3 (=21) checkboxes arranged in a FlexTable[say, instance-name
= myFlexTable]. I also have a TextArea widget[say, instance-name =
myTextarea] within the same Flextable.

  Now, I need to validate these widgets in such a way that,

If none of the CheckBox widgets is checked, then the TextArea widget
must and should be DISABLED.
If any one[atleast one] of the CheckBox widgets in the FlexTable is
checked, then TextArea widget must and should  be ENABLED

How to obtain this?
I am newbie here..


Please, can any post me the solution to my problem
Waiting for your replies...

Thanks in advance...

Srihari.Ch
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Validation with Checkbox & TextArea in gwt1.5.3

2009-10-22 Thread Venkatesh Babu
If you are having a scenario where in each cell of your flextable has the
checkbox + text input and you need to enable/disable the text input
depending on whether the checkbox in that cell is checked or not, then, you
can create a small widget containing checkbox+text input, and that widget
can handle the click events of checkbox to enable/disable the text input.
Your flex table can have different instances of that widget in each cell.

Hope this helps.

-Venkatesh


On Thu, Oct 22, 2009 at 3:05 PM, Srihari.Ch  wrote:

>
> Hi all,
>
>   I am new to gwt & i am using gwt1.5.3.
> I have 7x3 (=21) checkboxes arranged in a FlexTable[say, instance-name
> = myFlexTable]. I also have a TextArea widget[say, instance-name =
> myTextarea] within the same Flextable.
>
>  Now, I need to validate these widgets in such a way that,
>
> If none of the CheckBox widgets is checked, then the TextArea widget
> must and should be DISABLED.
> If any one[atleast one] of the CheckBox widgets in the FlexTable is
> checked, then TextArea widget must and should  be ENABLED
>
> How to obtain this?
> I am newbie here..
>
>
> Please, can any post me the solution to my problem
> Waiting for your replies...
>
> Thanks in advance...
>
> Srihari.Ch
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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
-~--~~~~--~~--~--~---



Timers

2009-10-22 Thread ben fenster

i was wondering how many timers can operate together and how would a
collisution between them effect performence

is it better to use one timer with a list of stuff that need to be
updated on timeout or is it better to make a timer for each 

another thing is if i use iframe to display other sites and those
sites has timers do they also run on my main thread and disturb my
timers and my my main gwt app performence???
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Validation with Checkbox & TextArea in gwt1.5.3

2009-10-22 Thread Srihari.Ch

sorry,
I have here 'n' number of checkboxes & only a single TextArea widget.
If any one of these checkboxes gets checked, TextAreaWidget must be
set enabled=true.
If none of these checkboxes gets checked[Also initially], then
TextAreaWidget must be set enabled=false[i.e., disabled]

Thanks for your reply.


On Oct 22, 3:15 pm, Venkatesh Babu  wrote:
> If you are having a scenario where in each cell of your flextable has the
> checkbox + text input and you need to enable/disable the text input
> depending on whether the checkbox in that cell is checked or not, then, you
> can create a small widget containing checkbox+text input, and that widget
> can handle the click events of checkbox to enable/disable the text input.
> Your flex table can have different instances of that widget in each cell.
>
> Hope this helps.
>
> -Venkatesh
>
> On Thu, Oct 22, 2009 at 3:05 PM, Srihari.Ch  wrote:
>
> > Hi all,
>
> >       I am new to gwt & i am using gwt1.5.3.
> > I have 7x3 (=21) checkboxes arranged in a FlexTable[say, instance-name
> > = myFlexTable]. I also have a TextArea widget[say, instance-name =
> > myTextarea] within the same Flextable.
>
> >      Now, I need to validate these widgets in such a way that,
>
> > If none of the CheckBox widgets is checked, then the TextArea widget
> > must and should be DISABLED.
> > If any one[atleast one] of the CheckBox widgets in the FlexTable is
> > checked, then TextArea widget must and should  be ENABLED
>
> > How to obtain this?
> > I am newbie here..
>
> > Please, can any post me the solution to my problem
> > Waiting for your replies...
>
> > Thanks in advance...
>
> > Srihari.Ch
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: need to execute commands on windows machine from remote server

2009-10-22 Thread Lazo Apostolovski

If I understand correct. You want to use GWT to start program on the 
client side when you send some event from server side.
GWT Code is compiled to JavaScript. JavaScript is executed by the 
browser so browser security police don't give permition the code from 
javascript to be executed out of box (out of browser environment). So 
you can call even "cd c:\user" command on the client machine.

The answer on your question is NO.
sathya wrote:
> I need to execute command on client side.I have all clients username
> and passwords.So I need to login to client machine (windows) and
> execute commands
>
> On Oct 19, 1:00 pm, gwtfanb0y  wrote:
>   
>> I dont exactly understand what you want. Do you want to execute a
>> command
>> on the client-side (the browser) or on the server-side (input coming
>> from the client) ?
>>
>> On 19 Okt., 08:21, sathya  wrote:
>>
>>
>>
>> 
>>> I need to execute commands on windows machine (eg: c:\program files
>>> \outlook.exe) using java program. However java program will be running
>>> on remote server(tomcat server on other machine).
>>>   
>>> So my job is to connect to windows machine from server and execute
>>> commads on client.
>>>   
>>> Can you help in implementing this using java program?
>>>   
>>> I believe I can do this using SSh or using https connection from
>>> server to windows machine. However I am not sure which the best method
>>> to do this is. Also I would like to know if they are any other methods
>>> to implement this.
>>>   
>>> Thanks,
>>> Sathya.- 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: need to execute commands on windows machine from remote server

2009-10-22 Thread Lazo Apostolovski

Appendix:
Fix on my message before I mean You can't call even "cd c:\user" on the 
client computer. You cant use GWT to remote access files or remote call 
any dos or other command on the client computer.
:)

Greetings!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Possible to cancel an event dispatch loop?

2009-10-22 Thread shangxiao



On Aug 28, 9:50 pm, Thomas Broyer  wrote:
>
> > I have a button with three click handlers registered.  They are
> > chained so that the calling order is A, B, C.
>
> IMO you shouldn't depend on your handlers call order, you'd rather
> have a single handler that eventually defers to "subhandlers" (that'd
> probably wouldn't be ClickHandler's actually) to enforce the call
> order and what to do on each step.
>
> > Is it possible in handler B to "cancel" theeventso that further
> > handlers are not called?
>
> No.

Actually I think this would be useful as well.  If we were only
supposed to use one click handler then there'd be setClickHandler, not
addClickHandler.  Cancelling event propagation is possible (parent
handlers), so why shouldn't we apply this to sibling handlers as well?

If you're using MVP and you put the validation rules in the view, but
the processing in the presenter then you can't use a single click
handler with sub-handlers.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Timers

2009-10-22 Thread ben fenster

???

On Oct 22, 12:52 pm, ben fenster  wrote:
> i was wondering how many timers can operate together and how would a
> collisution between them effect performence
>
> is it better to use one timer with a list of stuff that need to be
> updated on timeout or is it better to make a timer for each 
>
> another thing is if i use iframe to display other sites and those
> sites has timers do they also run on my main thread and disturb my
> timers and my my main gwt app performence???
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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-22 Thread Lazo Apostolovski

Its probably a multipart message :S

Try googling for how to accept multipart message on the server side

here is some example but i don't know if you find usefull.

public HashMap parseMultipartMessage(
  HttpServletRequest request) {

mapWithStreams = new HashMap();

boolean isMultipart = ServletFileUpload.isMultipartContent(request);
try {
  if (isMultipart) {
FileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);

List items = upload.parseRequest(request);

for (FileItem item : items) {
  mapWithStreams.put(item.getFieldName(), item.getInputStream());
}
  } else {
mapWithStreams.put(DEFAULT_KEY, request.getInputStream());
  }
} catch (FileUploadException e) {
  e.printStackTrace();
} catch (IOException e) {
  e.printStackTrace();
}
return mapWithStreams;

In normal message (not multipart) data from the text fields come like 
the body of the message. If you try to transfer file in normal message 
then Stream is send like the body of the message. So you can transver 
only Parameters or only stream. If you want to transfer parameters and 
stream in same message you need to use multipart message. In multipart 
message InputStream come on server like a body of the message. If that 
input stream contain multipart message you need to parse that message. 
So in one part you will have values from input fields and in other part 
you will have Stream for uploaded file. Read about multipart messages on 
the wiki site. Code abowe will parse all input streams from multipart 
message and place them to the HasMap. The Key in HashMap is the File 
name. You can access to streams later when you need them. To the 
parameters you can access on the same way like you deed before:

request.getParameter("parameterName");

Good luck.

YoeZ wrote:
> Hey abhiram,
>
> I still have a problem in server side,, can you tell me how to catch
> variable from client.
>
> Let say I have a textbox in client.
>
> Textbox txtComment = new Textbox;
> txtComment.setName("txtComment");
> txtComment .setText("hello");
>
> in server side:
> I've tried:
> String varXXX = (String) request.getParameter("txtComment");
>
> but that's not working. :(
>
> and I've also tried like this :
>
> try {
> List items = upload.parseRequest(request);
> Iterator it = items.iterator();
> while (it.hasNext()) {
> FileItem item = (FileItem) it.next();
> if (item.isFormField()) {
>   String name = item.getFieldName();
>   if (name.equals("txtComment")) {
>   ret = item.getString();
>   }
> return ret;
> }
> }
> } catch (FileUploadException e) {
> return null;
> }
>
> but still null return.
>
> can you tell me how to catch it.
>
> regards
>
>
>
>
> On Oct 21, 12:32 am, abhiram wuntakal  wrote:
>   
>> Hey Yoez,
>>
>>   Not sure if it helps. But i have a workaround solution for this. Make it a
>> two-step process. First use a RemoteServiceServlet to pass across your
>> variables to the server side and then save these values into some variables
>> on the server side.
>>
>>  Then you can use a HTTPServlet to pass across your file contents to the
>> server side. Now you have the file as well as the variables.
>>
>>  HTH,
>> Cheers,
>> Abhiram
>>
>>
>>
>> On Mon, Oct 19, 2009 at 6:12 PM, YoeZ  wrote:
>>
>> 
>>> thanks ian,, but i'm using GWT and tried to uploadfile which is must
>>> using FormPanel.
>>> I have successfully upload my file to server with UploadFile widget,
>>> but I have another textboxes too. and dunno how to catch inside
>>> FormPanel.
>>>   
>>> On Oct 19, 7:15 pm, Ian Bambury  wrote:
>>>   
 You'll stand more chance of an answer if you ask that question in a Java
 forum. This is a GWT group.
 Ian
 
 http://examples.roughian.com
 
 2009/10/19 YoeZ 
 
> hello... please help
>   
> On Oct 18, 12:31 am, YoeZ  wrote:
>   
>> Hi.
>> 
>> I have 1 form panel with some textboxes and file upload.
>> the question is, how to get variables from client/form panel in
>> servlet?
>> i created DTO/Pojo object to hold variables in client, but i donk
>> 
>>> know
>>>   
>> how to catch in servlet..
>> 
>> please help
>> 
>> thanks
>> 
> >
>
>   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroup

inheritance not allowed???

2009-10-22 Thread Prashant
i tried doing something like :


public abstract class MyEntryPoint implements EntryPoint{

@Override
public abstract void onModuleLoad();

// My custome methods...

}


public class GWTTest extends MyEntryPoint {

@Override
public void onModuleLoad() {
// code goes here
}
}



Compiling module antshpra.gwt.GWTTest
   Refreshing module from source
  Validating newly compiled units
 Removing units with errors
[ERROR] Errors in
'file:/D:/Eclipse/Workspace/My%20Site%201.2/src/antshpra/gwt/client/GWTTest.java'
   [ERROR] Line 15: No source code is available for type
antshpra.mylib.gwt.client.MyEntryPoint; did you forget to inherit a required
module?
   Computing all possible rebind results for 'antshpra.gwt.client.GWTTest'
  Rebinding antshpra.gwt.client.GWTTest
 Checking rule 
[ERROR] Unable to find type 'antshpra.gwt.client.GWTTest'
   [ERROR] Hint: Previous compiler errors may have made this
type unavailable
   [ERROR] Hint: Check the inheritance chain from your module;
it may not be inheriting a required module or a module may not be adding its
source path entries properly



do i need to add something to .gwt.xml file to tell gwt about inheritance
hierarchy ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Validation with Checkbox & TextArea in gwt1.5.3

2009-10-22 Thread Venkatesh Babu
In that case, you can have a global function that keeps track of the number
of checkboxes checked/unchecked, and that function can increment/decrement
the count whenever a checkbox is selected/deselected, and enable/disable
your text area depending on whether the count is 0 or non-zero. Then, with
each checkbox you can register event handlers that call this global
function.

Hope this helps.

-Venkatesh


depending on that count, your function should Add event listener to each che

On Thu, Oct 22, 2009 at 5:16 PM, Srihari.Ch  wrote:

>
> sorry,
> I have here 'n' number of checkboxes & only a single TextArea widget.
> If any one of these checkboxes gets checked, TextAreaWidget must be
> set enabled=true.
> If none of these checkboxes gets checked[Also initially], then
> TextAreaWidget must be set enabled=false[i.e., disabled]
>
> Thanks for your reply.
>
>
> On Oct 22, 3:15 pm, Venkatesh Babu  wrote:
> > If you are having a scenario where in each cell of your flextable has the
> > checkbox + text input and you need to enable/disable the text input
> > depending on whether the checkbox in that cell is checked or not, then,
> you
> > can create a small widget containing checkbox+text input, and that widget
> > can handle the click events of checkbox to enable/disable the text input.
> > Your flex table can have different instances of that widget in each cell.
> >
> > Hope this helps.
> >
> > -Venkatesh
> >
> > On Thu, Oct 22, 2009 at 3:05 PM, Srihari.Ch 
> wrote:
> >
> > > Hi all,
> >
> > >   I am new to gwt & i am using gwt1.5.3.
> > > I have 7x3 (=21) checkboxes arranged in a FlexTable[say, instance-name
> > > = myFlexTable]. I also have a TextArea widget[say, instance-name =
> > > myTextarea] within the same Flextable.
> >
> > >  Now, I need to validate these widgets in such a way that,
> >
> > > If none of the CheckBox widgets is checked, then the TextArea widget
> > > must and should be DISABLED.
> > > If any one[atleast one] of the CheckBox widgets in the FlexTable is
> > > checked, then TextArea widget must and should  be ENABLED
> >
> > > How to obtain this?
> > > I am newbie here..
> >
> > > Please, can any post me the solution to my problem
> > > Waiting for your replies...
> >
> > > Thanks in advance...
> >
> > > Srihari.Ch
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: inheritance not allowed???

2009-10-22 Thread Prashant
basically, i want to write some custom methods common to all gwt modules, if
my approach (refer to previous post) is not correct/possible please suggest
me a workaround.

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



GWT and DragListener

2009-10-22 Thread sony

Hello,

Is DragListener part of GWT? because when i type in
com.google.gwt.user.client.dnd.DragListener it is not recognizing. i
saw this in an example. Is there anything i need to add to make it
work? any help would be appreciated.

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



Re: candle stick charts

2009-10-22 Thread nicola...@gmail.com

Try JFreeCharts a good library to create charts of all kind

On Oct 22, 4:58 am, sathya  wrote:
> Why dont you use gcharts
>
> http://code.google.com/p/gchart/
>
> On Oct 21, 8:10 pm, Bobby Richards  wrote:
>
> > Anyone have any experience with creating candlestickchartswith GWT?
>
> > Thanks,
> > Bobby
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: inheritance not allowed???

2009-10-22 Thread tskaife

Don't know if I'm thinking right here but why implement EntryPoint in
MyEntryPoint and just implement EntryPoint in GWTTest. Like so...

public class MyEntryPoint {
// My custome methods...
}

public class GWTTest extends MyEntryPoint implements EntryPoint {
@Override
public void onModuleLoad() {
// code goes here
}
}

On Oct 22, 8:29 am, Prashant  wrote:
> basically, i want to write some custom methods common to all gwt modules, if
> my approach (refer to previous post) is not correct/possible please suggest
> me a workaround.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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
-~--~~~~--~~--~--~---



Complete example using BeanModel

2009-10-22 Thread rernst

Is there a complete example somewhere which includes construction of
the BeanModel with the domain class that I could inspect? Not just
'that you pass a BeanModel' to the loader?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: inheritance not allowed???

2009-10-22 Thread Thomas Broyer


On 22 oct, 15:23, Prashant  wrote:
>
> Compiling module antshpra.gwt.GWTTest
>    Refreshing module from source
>       Validating newly compiled units
>          Removing units with errors
>             [ERROR] Errors in
> 'file:/D:/Eclipse/Workspace/My%20Site%201.2/src/antshpra/gwt/client/GWTTest 
> .java'
>                [ERROR] Line 15: No source code is available for type
> antshpra.mylib.gwt.client.MyEntryPoint; did you forget to inherit a required
> module?
[...]
> do i need to add something to .gwt.xml file to tell gwt about inheritance
> hierarchy ?

Yes, you should have a gwt.xml in antshpra.mylib.gwt and add the
appropriate  in your antshpra/gwt/GWTTest.gwt.xml.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Timers

2009-10-22 Thread Thomas Broyer



On 22 oct, 12:52, ben fenster  wrote:
> i was wondering how many timers can operate together and how would a
> collisution between them effect performence

I don't think browsers set a limit, and they won't affect performance
AFAICT (unless you have really many many of them, of course)

> is it better to use one timer with a list of stuff that need to be
> updated on timeout or is it better to make a timer for each 

I don't think one way or the other is better (performance wise).

> another thing is if i use iframe to display other sites and those
> sites has timers do they also run on my main thread and disturb my
> timers and my my main gwt app performence???

Yes, timers from iframes run in the same event loop.

As you talk about "my main gwt app performance", keep in mind that
timers in JavaScript are intrinsically *not* accurate. See
http://ejohn.org/blog/how-javascript-timers-work/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: inheritance not allowed???

2009-10-22 Thread Prashant
thanks for you reply but it doesn't work.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: inheritance not allowed???

2009-10-22 Thread Prashant
i re-modified my code a little bit and now its working :-) . scroll down for
code snippet


public class MyEntryPoint implement EntryPoint{
   // My custome methods...
}

public class GWTTest extends MyEntryPoint{
   @Override
   public void onModuleLoad() {
   // code goes here
   }
}

... and added required .gwt.xml file and  as suggested by Thomas
in the previous post...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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
-~--~~~~--~~--~--~---



Access denied when uploading image

2009-10-22 Thread hou0175

Hi,

I'm new to GWT and am having problems writing a page to allow users to
upload an image to the server (onto DB using JDO).

I'm getting the following exception:

java.security.AccessControlException: access denied
(java.io.FilePermission C:\Users\hou0175\AppData\Local\Temp
\upload__4283d0d0_1247a39ab1c__8000_0002.tmp write)

---
The following is the code on my client side that I grabbed from the
web:

   // Create a TextBox, giving it a
name so that it will be submitted.
final TextBox tb = new TextBox();
tb.setName("textBoxFormElement");
panel.add(tb);

// Create a ListBox, giving it a name and some values to be
associated with
// its options.
ListBox lb = new ListBox();
lb.setName("listBoxFormElement");
lb.addItem("foo", "fooValue");
lb.addItem("bar", "barValue");
lb.addItem("baz", "bazValue");
panel.add(lb);

// Create a FileUpload widget.
FileUpload upload = new FileUpload();
upload.setName("uploadFormElement");
panel.add(upload);

// Add a 'submit' button.
panel.add(new Button("Submit", new ClickListener() {
  public void onClick(Widget sender) {
form.submit();
  }
}));

// Add an event handler to the form.
form.addFormHandler(new FormHandler() {
  public void onSubmit(FormSubmitEvent event) {
// This event is fired just before the form is 
submitted. We
can take
// this opportunity to perform validation.
if (tb.getText().length() == 0) {
  Window.alert("The text box must not be empty");
  event.setCancelled(true);
}
  }

  public void onSubmitComplete(FormSubmitCompleteEvent 
event) {
// When the form submission is successfully completed, 
this
event is
// fired. Assuming the service returned a response of 
type
text/html,
// we can get the result text here (see the FormPanel
documentation for
// further explanation).
Window.alert(event.getResults());
  }
});

  //}



m_MainDisplayPanel.add(form);
  RootPanel.get("blogPanel").add(decoratorPanel);


-
The following is the code on my server side (also from some samples
online):

boolean isMultipart = ServletFileUpload.isMultipartContent(request);
List items = null;
String text ="not loaded!";

if ( isMultipart ) {
  // Create a factory for disk-based file items
  FileItemFactory factory = new DiskFileItemFactory();

  // Create a new file upload handler
  ServletFileUpload upload = new ServletFileUpload(factory);

  // Parse the request
  try {
items = upload.parseRequest(request);
<===I get the exception here
  } catch (Exception e) {
text = e.getStackTrace().toString();
  }
}




I'm getting the exception on "items = upload.parseRequest(request); "


I'm running GWT in Hosted Mode.

I'm not sure if i can do this in Hosted Mode. If not, how can I test
my code before I deploy it?

I must be doing something trivial wrong. I'd appreciate if someone
could point me to the right direction.

I thank you in advance for your help.


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



Re: Google Eclipse Plugin issue w/ GWT 1.7.1 and hosted mode

2009-10-22 Thread Keith Platfoot
Hi Chad,

I tried to repro this with Eclipse 3.4.2 and GWT 1.7.1 using the latest
Eclipse plugin (1.1.2), but was not able to trigger a 404.  I tested on both
Windows and Ubuntu.

Just to verify that I followed the right sequence: I created two projects,
renamed the HTML page in each war directory to 'index.html' and then ran
each (one at a time, of course) by right-clicking each HTML file and
selecting Run As -> Web Application.  Each application started up in hosted
mode as expected.  If I then open the launch configurations dialog, I see 2
new launch configurations, each named after the HTML page I launched from:
'index.html' and 'index.html (1)'.

The first thing to check is your launch configurations dialog, to make sure
you also have 2 newly-generated configurations, each with the correct
project association and the right available modules (in the GWT tab).  If
not, try creating a second launch configuration by hand pointing to the
other project and retry your test by selecting the saved launch
configurations via the toolbar menu instead of using the Run As -> Web
Application menu item.

Let me know what you find,

Keith

On Wed, Oct 21, 2009 at 5:24 PM, cretz  wrote:

>
> I am posting here before I post an issue to the tracker to see if
> anyone has run across it. I am using Eclipse 3.4.2, but I doubt it's
> specific to an Eclipse version. Basically, if you have two unrelated
> Web Application projects in the same workspace that have the same HTML
> filename then running as a Web Application will use the previously run
> one instead of the project you right clicked on.
>
> To replicate:
>
> 1. Create a Web Application project named 'testapp1'
> 2. Create a Web Application project named 'testapp2'
> 3. Run each (one at a time of course) to make sure they run
> 4. Rename testapp1/war/testapp1.html to index.html, then run it as a
> Web Application
> 5. Rename testapp2/war/testapp2.html to index.html, then run it as a
> Web Application
>
> It will attempt to run w/ testapp1's classpath and server resources
> which cause a 404. Can anyone else replicate this issue before I open
> a bug? Has anyone seen or reported this issue before?
>
> 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: Access denied when uploading image

2009-10-22 Thread Marcos Kajita
Right after I posted this message I came accross another sample code that
allowed me pass the error and let me upload the my image.

Here is the code that let me do that.




ServletFileUpload upload = *new* ServletFileUpload();

response.setContentType("text/plain");

FileItemIterator iterator = upload.getItemIterator(request);

*while* (iterator.hasNext())

{

FileItemStream item = iterator.next();

InputStream stream = item.openStream();

*if* (*false* == item.isFormField())

{

*int* len;

*byte*[] buffer = *new* *byte*[8192];

*while* ((len = stream.read(buffer, 0, buffer.length)) != -1)

{

//your code build buffer
}

//your code here to persist to database... use Blob

}

}


I suspect that the error I was getting was due to the use of
'DiskFileItemFactory'










On Wed, Oct 21, 2009 at 10:19 PM, hou0175  wrote:

> Hi,
>
> I'm new to GWT and am having problems writing a page to allow users to
> upload an image to the server (onto DB using JDO).
>
> I'm getting the following exception:
>
> java.security.AccessControlException: access denied
> (java.io.FilePermission C:\Users\hou0175\AppData\Local\Temp
> \upload__4283d0d0_1247a39ab1c__8000_0002.tmp write)
>
>
> ---
> The following is the code on my client side that I grabbed from the
> web:
>
>   // Create a TextBox, giving it a
> name so that it will be submitted.
>final TextBox tb = new TextBox();
>tb.setName("textBoxFormElement");
>panel.add(tb);
>
>// Create a ListBox, giving it a name and some values to
> be
> associated with
>// its options.
>ListBox lb = new ListBox();
>lb.setName("listBoxFormElement");
>lb.addItem("foo", "fooValue");
>lb.addItem("bar", "barValue");
>lb.addItem("baz", "bazValue");
>panel.add(lb);
>
>// Create a FileUpload widget.
>FileUpload upload = new FileUpload();
>upload.setName("uploadFormElement");
>panel.add(upload);
>
>// Add a 'submit' button.
>panel.add(new Button("Submit", new ClickListener() {
>  public void onClick(Widget sender) {
>form.submit();
>  }
>}));
>
>// Add an event handler to the form.
>form.addFormHandler(new FormHandler() {
>  public void onSubmit(FormSubmitEvent event) {
>// This event is fired just before the form is
> submitted. We
> can take
>// this opportunity to perform validation.
>if (tb.getText().length() == 0) {
>  Window.alert("The text box must not be empty");
>  event.setCancelled(true);
>}
>  }
>
>  public void onSubmitComplete(FormSubmitCompleteEvent
> event) {
>// When the form submission is successfully
> completed, this
> event is
>// fired. Assuming the service returned a response
> of type
> text/html,
>// we can get the result text here (see the
> FormPanel
> documentation for
>// further explanation).
>Window.alert(event.getResults());
>  }
>});
>
>  //}
>
>
>
>m_MainDisplayPanel.add(form);
>  RootPanel.get("blogPanel").add(decoratorPanel);
>
>
> -
> The following is the code on my server side (also from some samples
> online):
>
> boolean isMultipart = ServletFileUpload.isMultipartContent(request);
>List items = null;
>String text ="not loaded!";
>
>if ( isMultipart ) {
>  // Create a factory for disk-based file items
>  FileItemFactory factory = new DiskFileItemFactory();
>
>  // Create a new file upload handler
>  ServletFileUpload upload = new ServletFileUpload(factory);
>
>  // Parse the request
>  try {
>items = upload.parseRequest(request);
> <===I get the exception here
>  } catch (Exception e) {
>text = e.getStackTrace().toString();
>  }
>}
>
>
>
>
> I'm getting the exception on "items = upload.parseRequest(request); "
>
>
> I'm running GWT in Hosted Mode.
>
> I'm not sure if i can do this in Hosted Mode. If not, how can I test
> my code before I deploy it?
>
> I must be doing something trivial wrong. I'd appreciate if someone
> could point me to the right direction.
>
> I thank you in advance for your help.
>
>

--~--~-~--~---

Re: Google Eclipse Plugin issue w/ GWT 1.7.1 and hosted mode

2009-10-22 Thread cretz

Thank you very much for the quick reply. Sorry, I should have added
one more step:

6. Now go back and run testapp1 again.

By the way, the 404 is not on the HTML, but rather the css and default
RPC service generated on new web app project (as visible in the GWT
log window). This occurs regardless of run configurations. I have even
manually created run configurations and it doesn't help. Running each
of the projects a couple of times will replicate this and once it
happens, only one of the projects won't work.

I also found that this issue spans workspaces. Therefore, if the
plugin has an idea of an html name that belongs to a project and you
switch workspaces this still occurs. I will manually execute the
hosted browser via ant scripts and see if I can determine whether it's
a plugin issue or a hosted mode issue.

If the source was available for the plugin, I'd find the issue
myself :-)

Thanks

On Oct 22, 10:55 am, Keith Platfoot  wrote:
> Hi Chad,
>
> I tried to repro this with Eclipse 3.4.2 and GWT 1.7.1 using the latest
> Eclipse plugin (1.1.2), but was not able to trigger a 404.  I tested on both
> Windows and Ubuntu.
>
> Just to verify that I followed the right sequence: I created two projects,
> renamed the HTML page in each war directory to 'index.html' and then ran
> each (one at a time, of course) by right-clicking each HTML file and
> selecting Run As -> Web Application.  Each application started up in hosted
> mode as expected.  If I then open the launch configurations dialog, I see 2
> new launch configurations, each named after the HTML page I launched from:
> 'index.html' and 'index.html (1)'.
>
> The first thing to check is your launch configurations dialog, to make sure
> you also have 2 newly-generated configurations, each with the correct
> project association and the right available modules (in the GWT tab).  If
> not, try creating a second launch configuration by hand pointing to the
> other project and retry your test by selecting the saved launch
> configurations via the toolbar menu instead of using the Run As -> Web
> Application menu item.
>
> Let me know what you find,
>
> Keith
>
> On Wed, Oct 21, 2009 at 5:24 PM, cretz  wrote:
>
> > I am posting here before I post an issue to the tracker to see if
> > anyone has run across it. I am using Eclipse 3.4.2, but I doubt it's
> > specific to an Eclipse version. Basically, if you have two unrelated
> > Web Application projects in the same workspace that have the same HTML
> > filename then running as a Web Application will use the previously run
> > one instead of the project you right clicked on.
>
> > To replicate:
>
> > 1. Create a Web Application project named 'testapp1'
> > 2. Create a Web Application project named 'testapp2'
> > 3. Run each (one at a time of course) to make sure they run
> > 4. Rename testapp1/war/testapp1.html to index.html, then run it as a
> > Web Application
> > 5. Rename testapp2/war/testapp2.html to index.html, then run it as a
> > Web Application
>
> > It will attempt to run w/ testapp1's classpath and server resources
> > which cause a 404. Can anyone else replicate this issue before I open
> > a bug? Has anyone seen or reported this issue before?
>
> > 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: Does GWT work in Snow Leopard?

2009-10-22 Thread Joe

Is there no update on this sorry issue?  I keep expecting Google to do
The Right Thing - i.e., I click "update" in Eclipse and then
everything works - but after all this time with no solution my
paranoia gene has me thinking this may have more to do with Apple v.
Google issues than  64bit v. 32bit.

Joe

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Google Eclipse Plugin issue w/ GWT 1.7.1 and hosted mode

2009-10-22 Thread cretz

Duh! Appears to be an IE cache issue on the HTML itself which was
looking for the wrong resources. Clearing IE's cache solves the
problem.

On Oct 22, 11:25 am, cretz  wrote:
> Thank you very much for the quick reply. Sorry, I should have added
> one more step:
>
> 6. Now go back and run testapp1 again.
>
> By the way, the 404 is not on the HTML, but rather the css and default
> RPC service generated on new web app project (as visible in the GWT
> log window). This occurs regardless of run configurations. I have even
> manually created run configurations and it doesn't help. Running each
> of the projects a couple of times will replicate this and once it
> happens, only one of the projects won't work.
>
> I also found that this issue spans workspaces. Therefore, if the
> plugin has an idea of an html name that belongs to a project and you
> switch workspaces this still occurs. I will manually execute the
> hosted browser via ant scripts and see if I can determine whether it's
> a plugin issue or a hosted mode issue.
>
> If the source was available for the plugin, I'd find the issue
> myself :-)
>
> Thanks
>
> On Oct 22, 10:55 am, Keith Platfoot  wrote:
>
> > Hi Chad,
>
> > I tried to repro this with Eclipse 3.4.2 and GWT 1.7.1 using the latest
> > Eclipse plugin (1.1.2), but was not able to trigger a 404.  I tested on both
> > Windows and Ubuntu.
>
> > Just to verify that I followed the right sequence: I created two projects,
> > renamed the HTML page in each war directory to 'index.html' and then ran
> > each (one at a time, of course) by right-clicking each HTML file and
> > selecting Run As -> Web Application.  Each application started up in hosted
> > mode as expected.  If I then open the launch configurations dialog, I see 2
> > new launch configurations, each named after the HTML page I launched from:
> > 'index.html' and 'index.html (1)'.
>
> > The first thing to check is your launch configurations dialog, to make sure
> > you also have 2 newly-generated configurations, each with the correct
> > project association and the right available modules (in the GWT tab).  If
> > not, try creating a second launch configuration by hand pointing to the
> > other project and retry your test by selecting the saved launch
> > configurations via the toolbar menu instead of using the Run As -> Web
> > Application menu item.
>
> > Let me know what you find,
>
> > Keith
>
> > On Wed, Oct 21, 2009 at 5:24 PM, cretz  wrote:
>
> > > I am posting here before I post an issue to the tracker to see if
> > > anyone has run across it. I am using Eclipse 3.4.2, but I doubt it's
> > > specific to an Eclipse version. Basically, if you have two unrelated
> > > Web Application projects in the same workspace that have the same HTML
> > > filename then running as a Web Application will use the previously run
> > > one instead of the project you right clicked on.
>
> > > To replicate:
>
> > > 1. Create a Web Application project named 'testapp1'
> > > 2. Create a Web Application project named 'testapp2'
> > > 3. Run each (one at a time of course) to make sure they run
> > > 4. Rename testapp1/war/testapp1.html to index.html, then run it as a
> > > Web Application
> > > 5. Rename testapp2/war/testapp2.html to index.html, then run it as a
> > > Web Application
>
> > > It will attempt to run w/ testapp1's classpath and server resources
> > > which cause a 404. Can anyone else replicate this issue before I open
> > > a bug? Has anyone seen or reported this issue before?
>
> > > 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: Google Eclipse Plugin issue w/ GWT 1.7.1 and hosted mode

2009-10-22 Thread cretz

Duh! IE cache issue. Clearing cache resolves issue.

On Oct 22, 11:25 am, cretz  wrote:
> Thank you very much for the quick reply. Sorry, I should have added
> one more step:
>
> 6. Now go back and run testapp1 again.
>
> By the way, the 404 is not on the HTML, but rather the css and default
> RPC service generated on new web app project (as visible in the GWT
> log window). This occurs regardless of run configurations. I have even
> manually created run configurations and it doesn't help. Running each
> of the projects a couple of times will replicate this and once it
> happens, only one of the projects won't work.
>
> I also found that this issue spans workspaces. Therefore, if the
> plugin has an idea of an html name that belongs to a project and you
> switch workspaces this still occurs. I will manually execute the
> hosted browser via ant scripts and see if I can determine whether it's
> a plugin issue or a hosted mode issue.
>
> If the source was available for the plugin, I'd find the issue
> myself :-)
>
> Thanks
>
> On Oct 22, 10:55 am, Keith Platfoot  wrote:
>
> > Hi Chad,
>
> > I tried to repro this with Eclipse 3.4.2 and GWT 1.7.1 using the latest
> > Eclipse plugin (1.1.2), but was not able to trigger a 404.  I tested on both
> > Windows and Ubuntu.
>
> > Just to verify that I followed the right sequence: I created two projects,
> > renamed the HTML page in each war directory to 'index.html' and then ran
> > each (one at a time, of course) by right-clicking each HTML file and
> > selecting Run As -> Web Application.  Each application started up in hosted
> > mode as expected.  If I then open the launch configurations dialog, I see 2
> > new launch configurations, each named after the HTML page I launched from:
> > 'index.html' and 'index.html (1)'.
>
> > The first thing to check is your launch configurations dialog, to make sure
> > you also have 2 newly-generated configurations, each with the correct
> > project association and the right available modules (in the GWT tab).  If
> > not, try creating a second launch configuration by hand pointing to the
> > other project and retry your test by selecting the saved launch
> > configurations via the toolbar menu instead of using the Run As -> Web
> > Application menu item.
>
> > Let me know what you find,
>
> > Keith
>
> > On Wed, Oct 21, 2009 at 5:24 PM, cretz  wrote:
>
> > > I am posting here before I post an issue to the tracker to see if
> > > anyone has run across it. I am using Eclipse 3.4.2, but I doubt it's
> > > specific to an Eclipse version. Basically, if you have two unrelated
> > > Web Application projects in the same workspace that have the same HTML
> > > filename then running as a Web Application will use the previously run
> > > one instead of the project you right clicked on.
>
> > > To replicate:
>
> > > 1. Create a Web Application project named 'testapp1'
> > > 2. Create a Web Application project named 'testapp2'
> > > 3. Run each (one at a time of course) to make sure they run
> > > 4. Rename testapp1/war/testapp1.html to index.html, then run it as a
> > > Web Application
> > > 5. Rename testapp2/war/testapp2.html to index.html, then run it as a
> > > Web Application
>
> > > It will attempt to run w/ testapp1's classpath and server resources
> > > which cause a 404. Can anyone else replicate this issue before I open
> > > a bug? Has anyone seen or reported this issue before?
>
> > > 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: any way to return image through rpc?

2009-10-22 Thread Robert J. Carr

Thanks Erik, but I don't think you read my post closely enough.  I'm
currently using generic servlets to do what you describe.  However, I
need to make some really complex image requests and I don't want to be
bothered with building and parsing the request.  This is why I'd like
to use gwt's object serialization to make it easier.

Thanks anyway.

On Thu, Oct 22, 2009 at 2:11 AM, Erik  wrote:
>
> You can make a servlet and point the url (with or without parameters)
> of the image to that servlet,
>
> in the doPost or doGet method:
> final BufferedImage image = new BufferedImage(canvasWidth,
> canvasHeight, BufferedImage.TYPE_INT_RGB);
> final Graphics2D graphics2D = image.createGraphics();
> // create the image... (you can use parameters from the url).
> ...
> //at the end :
> response.setContentType("image/jpg");
> final ByteArrayOutputStream baos = new ByteArrayOutputStream();
> ImageIO.write(image, "jpg", baos);
> final OutputStream out = response.getOutputStream();
> baos.writeTo(out);
> baos.flush();
> out.close();
>
> greets,
> Erik
>
> On Oct 22, 10:37 am, "alex.d"  wrote:
>> Glad i could help ;)
>>
>> On 22 Okt., 10:26, "Robert J. Carr"  wrote:
>>
>> > I appreciate your imagination. :)
>>
>> > On Thu, Oct 22, 2009 at 1:22 AM, alex.d  
>> > wrote:
>>
>> > > There was another really insane way where you actually decode your
>> > > image (bytes you've sended back) and produce a lot of 1px sized divs
>> > > with accordant colors which makes the image :))  But like i said -
>> > > it's kind of crazy.
>>
>> > > On 22 Okt., 07:55, "Robert J. Carr"  wrote:
>> > >> Thanks Ian ... I had a feeling it was going to be complicated, I just
>> > >> wanted to make sure I wasn't missing something.
>>
>> > >> Looks like I'm relegated to building complex queries or making two
>> > >> requests.  Thanks again for the time!
>>
>> > >> On Wed, Oct 21, 2009 at 9:12 PM, Ian Petersen  
>> > >> wrote:
>>
>> > >> > You can send bytes back to the client as an RPC response (it's just an
>> > >> > HTTP request, after all) but the problem is what to do with the bytes
>> > >> > once you have them.  If you're willing to restrict yourself to
>> > >> > browsers that support data:// URLs, you can send the image back as a
>> > >> > data:// URL and just drop the result into an img tag.  That approach
>> > >> > excludes many (all?) versions of IE.  As far as I know, the only IE
>> > >> > that _might_ support data:// URLs is IE8.  To be fully-compatible, you
>> > >> > need to forge ahead with your existing approach or, as you say,
>> > >> > generate a URL via RPC and make the generated URL resolve to the
>> > >> > desired image.
>>
>> > >> > If you want to fool around with the RPC infrastructure, you could
>> > >> > possibly use a GWT-RPC request payload as the query parameter in a
>> > >> > standard request, if you think such a representation would be more
>> > >> > compact/useful than the representation you're currently using.  On the
>> > >> > server side, you could then use the RPC class (is that still in use?)
>> > >> > to deserialize the parameters and drive the image request.  Might be
>> > >> > more trouble than it's worth, though.
>>
>> > >> > Ian
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Creating a sample application of 3 different pages

2009-10-22 Thread Romeo Sanchez
Thanks everyone. After this discussion, I went ahead and read some
documentation, and implemented some small cases. It is kind of clear to me
know. Thanks everyone for your comments and time you took to respond our
questions.

One final question:
- Is it possible to load entrypoint modules with arguments?

Thanks for your help

Romeo


On Tue, Oct 20, 2009 at 1:26 PM, Ian Bambury  wrote:

> That's not quite how I understood your original question which asked about
> a single project with multiple modules and entry points.
> Both are possible in so far as the above case will work (just inherit the
> modules) and in your second post (use -noserver, different ports for each
> project, and have a number of web servers running on your development
> machine.
>
> Whether you can transmit data between them, I have no idea. Sorry.
>
> Ian
>
> http://examples.roughian.com
>
>
> 2009/10/20 Romeo Sanchez 
>
> Basically, each Module will be deployed in a different Web Server. Each web
>> server will communicate to a Central module through HTTP requests or
>> something alike (whatever GWT framework permits). They will transmit data
>> each other only.
>>
>> However, during development, I would like to simulate such an environment
>> in hosted mode. That is, load all different modules inside Eclipse, have
>> them in separate hosted-mode browser windows, and transmit the data between
>> them. I was just wondering if this is possible, since I believe simulating
>> my environment will speed testing and debugging of my application.
>>
>> Any ideas, I am new into the GWT framework, so I really do not know if
>> something like this is possible
>>
>> Thanks in advance
>>
>> Romeo
>>
>>
>>
>>
>> On Sat, Oct 17, 2009 at 11:02 AM, Ian Bambury wrote:
>>
>>> Hi Romeo,
>>> Why would you want to do this?
>>>
>>> Ian
>>>
>>> http://examples.roughian.com
>>>
>>>
>>> 2009/10/17 Mariano 
>>>
>>>
 Hi Romeo,

 You can inherit from different modules which contains different entry
 points.
 Take a look at
 http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideBootstrap
 At the bottom of the page you'll see a section called: 'A Note on
 Multiple GWT Modules and EntryPoints' that will exactly explain what
 you're asking for:

 "If you have multiple EntryPoints (the interface that defines
 onModuleLoad()) within a module, they will all be called in sequence
 as soon as that module (and the outer document) is ready.

 If you are loading multiple GWT modules within the same page, each
 module's EntryPoint will be called as soon as both that module and the
 outer document is ready. Two modules' EntryPoints are not guaranteed
 to fire at the same time, or in the same order in which their
 selection scripts were specified in the host page."

 regards,
 Mariano

 On Oct 16, 3:13 pm, Romeo Sanchez  wrote:
 > Hi,
 >
 > Does somebody know if you can run an application/project
 having/inheriting
 > multiple modules having each one an entrypoint in hosted mode?
 >
 > I have searched a lot about a tutorial, and I have not found anything.
 Could
 > you please send the link to your tutorial page?, I am going to
 translate it
 > somehow.
 >
 > Thanks
 >
 > RSN
 >
 > On Fri, Oct 16, 2009 at 4:06 AM, Alex  wrote:
 >
 > > I've searched a lot, but unfortunately I couldn't find a tutorial or
 > > so, so I wrote one myself for my students (I'm a teacher) .
 > > The tutorial however is in written in Dutch and not meant to be
 spread
 > > around; at least not in the form that it's now.
 >
 > > But here are the steps you have to take to work with multiple HTML
 > > pages.
 > > I assume that you already have a GWT project with a single HTML
 file,
 > > and that HTML file contains a link toward another HTML file which
 also
 > > should make use of the GWT.
 > > Let's assume that the HTML file you are linking to is called
 > > info.html, and that the page doesn't exists yet.
 > > To add the page follow the following steps:
 >
 > > - Start by adding the packages info and info.client into the src
 tree.
 > > - Add into the package info a new google webtoolkit module called
 info
 > > - Add into the package info.client a new Entry Point Class that uses
 > > the module info.info
 > > - Finally add in the war directory a new HTML page info.html that
 uses
 > > only the module info.info
 >
 > > I suggest to use the Google Plugin for Eclipse, to do this; because
 > > lots of stuff will then be generated for you if you add the module,
 > > class & html page using the plugin.
 >
 > > Good luck,
 >
 > > Alex
 >
 > > On Oct 16, 9:21 am, neerou  wrote:
 > > > Thank you for your reply Alex.
 >
 > > > Regarding the 3rd item you enumerated, 

Compiling module Error using Eclipse GWT Compiler

2009-10-22 Thread Ram kumar
I added new jar in the lib directory mvc4g-1.0.0.jar. I am using Controller
class form that jar. When i try to compile the module, i am getting the
below compile time error. Can any body help on this issue.

Compiling module com.manning.gwtip.calculator.Calculator
   Refreshing module from source
  Validating newly compiled units
 Removing units with errors
[ERROR] Errors in
'file:/D:/GWT/Calculator/src/com/manning/gwtip/calculator/client/Calculator.java'
   [ERROR] Line 6: The import com.mvc4g cannot be resolved
   [ERROR] Line 17: Controller cannot be resolved to a type
   [ERROR] Line 17: Controller cannot be resolved to a type
   Computing all possible rebind results for
'com.manning.gwtip.calculator.client.Calculator'
  Rebinding com.manning.gwtip.calculator.client.Calculator
 Checking rule 
[ERROR] Unable to find type
'com.manning.gwtip.calculator.client.Calculator'
   [ERROR] Hint: Previous compiler errors may have made this
type unavailable
   [ERROR] Hint: Check the inheritance chain from your module;
it may not be inheriting a required module or a module may not be adding
its source path entries properly

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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
-~--~~~~--~~--~--~---



Cross-side hosted mode not yet implemented

2009-10-22 Thread alx

Hi,

After upgrading from gwt 1.5 to 1.6.4, the following message appear
when running the app:
  cross-side hosted mode not yet implemented.See issue
  http://code.google.com/p/google-web-toolkit/issues/detail?id=2079

What kind of problem could be?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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
-~--~~~~--~~--~--~---



Announcing GWT 2.0 Milestone 2

2009-10-22 Thread John LaBanca

Hi everyone,

We are excited to release the second milestone build for GWT 2.0
today. This milestone is essentially feature complete, and provides
somewhat more stability in the various bits of core functionality that
will be coming in GWT 2.0.

Please download the distribution from:
http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=2.0+Milestone+2

Milestone 2 contains a couple new features and changes from MS1:
* Layout Panels: Layout panels have been refined since MS1. In
particular, the TabLayoutPanel has been introduced, and UiBinder has
been extended to support it and StackLayoutPanel. Layout panels use
native css, so they resize with the window smoothly (IE6 uses active
layout to achieve the same effect, but it is still fast in most
cases). When paired with UIBinder, users can create applications
faster than ever. (Read more about UiBinder under Declarative User
Interface, below.)

Breaking changes in MS2:
* The way arguments are passed to the GWT testing infrastructure has
been revamped (and changed slightly from MS1). There is now a
consistent syntax to support arbitrary "runstyles", including user-
written with no changes to GWT. Though this does not affect common
launch configs, some of the less common ones will need to be updated.
For example:
* '-selenium localhost:/*firefox' has become
  '-runStyle Selenium:localhost:/*firefox'
* '-remoteweb rmi://localhost/ff3' has become
  '-runStyle RemoteWeb:rmi://localhost/ff3'
* '-manual 5' has become '-runStyle Manual:5'
Note: run style names must be capitalized (ex. Selenium).

Known Issues in MS2:
* LayoutPanels only work in strict mode, but new GWT applications are
created in quirks mode by default. You must manually switch your
application to strict mode by changing the DOCTYPE at the top of your
application's html file. Existing widgets that do not work correctly
in strict mode (ex. StackPanel) now have a LayoutPanel counterpart
that does work in strict mode (ex. StackLayoutPanel).
* Connecting multiple browsers at the same time in development mode
can cause the development mode server to crash. You can avoid this by
waiting for each browser to start your app before connecting another
browser.
* If you are planning to run the webAppCreator, i18nCreator, or the
junitCreator scripts on Mac or Linux, please set the executable bits
by doing a 'chmod +x *Creator'
* Our HtmlUnit integration is still not complete. Additionally,
HtmlUnit does not do layout. So tests can fail either because they
exercise layout or they hit bugs due to incomplete integration. If you
want such tests to be ignored on HtmlUnit, please annotate the test
methods with @DoNotRunWith({Platform.Htmlunit})


To reiterate, here are a few key notes from the Milestone 1
announcement...
* Terminology changes: We're going to start using the term
"development mode" rather than the old term "hosted mode." The term
"hosted mode" was sometimes confusing to people, so we'll be using the
more descriptive term from now on. For similar reasons, we'll be using
the term "production mode" rather than "web mode" when referring to
compiled script.

* Changes to the distribution: Note that there's only one download,
and it's no longer platform-specific. You download the same zip file
for every development platform. This is made possible by the new
plugin approach used to implement development mode (see below). The
distribution file does not include the browser plugins themselves;
those are downloaded separately the first time you use development
mode in a browser that doesn't have the plugin installed.

* In-Browser Development Mode: Prior to 2.0, GWT hosted mode provided
a special-purpose "embedded browser" to debug your GWT code. In 2.0,
the web page being debugged is viewed within a standard browser.
Development mode is supported through the use of a native-code plugin
for each browser. In other words, you can use development mode
directly from Safari, Firefox, IE, and Chrome.

* Code Splitting: Developer-guided code splitting allows you to chunk
your GWT code into multiple fragments for faster startup. With code
splitting, you can arrange to load just the minimum script needed to
get the application running and the user interacting, while the rest
of the app is downloaded as needed.

* Declarative User Interface: GWT's UiBinder now allows you to create
user interfaces mostly declaratively. Previously, widgets had to be
created and assembled programmatically, requiring lots of code. Now,
you can use XML to declare your UI, making the code more readable,
easier to maintain, and faster to develop. The Mail sample has been
updated to use the new declarative UI.

* Bundling of resources (ClientBundle): GWT has shipped with
ImageBundles since GWT v1.4, giving developers automatic spriting of
images. ClientBundle generalizes this technique, bringing the power of
combining and optimizing resources into one download to things like
text files, CSS, and XML. This 

Re: onModuleLoad not called when serving files from Rails

2009-10-22 Thread Jae

Anybody?

On Oct 16, 9:24 pm, Jae  wrote:
> I have been struggling with this problem all day long and I am about
> to pull my hair out.
>
> I generated a simple GWT module. Since I have JRuby onRails, I
> configured the hosted mode for -noserver and I pointed it myRailsapp
> - localhost:3000. I set thefilesto point to the generated
> javascript, css, html, etc.
>
> When I access the file via the webmode, I can see tha my GWT module is
> getting initialized (making JSON calls toRails, etc)
>
> So I tried to load a HTML file directly from the file system from the
> hosted mode. Then it did work with the following log.
>
> 1. Initializing module 'contactmanager' for hosted mode
> 2. Loading an instance of  module 'contact manager'
> 3.onModuleLoadcalled
>
> However, when I try the hosted mode from theRails, it doesn't get
> initialized. I don't see any error entries. What's weird is that web
> mode works file. The log looks like:
>
> 1. Initializing module 'contactmanager' for hosted mode
>
> The entries 2 and 3 arenotgettingcalled. I clearly must be missing
> something. I don't want to develop without debugging.
>
> Any help would be really appreciated.
>
> Jae
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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
-~--~~~~--~~--~--~---



RPC communication between client and server running different GWT versions

2009-10-22 Thread Gwencalon

Greetings!

I'm trying to develop my first web application that uses GWT.

I'm using GWT 1.7.1 to develop the client, since I'd like to use
SmartGWT and it requires at least GWT 1.5.3.
However, my server is running JRE 1.4.2. Therefore, I can only use GWT
1.4.x.

To achieve this, I'm generating the client-side stuff with java 6 and
GWT 1.7.1. Then, I create my servlet with java 1.4 and GWT 1.4.62.
Unfortunately, this does not seem to be working. It works fine when I
have the server using the same GWT/Java version... but when I switch
to an older version it's not communicating.

I tried to check the release notes to see if something changed in RPC
communication,  but apart from generics I couldn't find anything
relevant. Eitherway, I think I'll check version 1.5.3 for the client..
the closest version to the server's that fits my needs.

It may be some other issue, but if some one could tell me for sure
that it is/it is not possible to get/send data via RPC under such
conditions I'd be very grateful!

Thanks in advance!

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



Looking for feedback

2009-10-22 Thread Bart Guijt

Dear all,

I'd like some feedback over an HTML5 Database API for GWT. I already  
have the 1:1 API of the W3 spec in GWT, but would like to add a  
simpler API on top of that.

Please take a look at 
http://code.google.com/p/gwt-mobile-webkit/issues/detail?id=8 
  and let me know what you think. Please participate!

The big picture is to create a larger local storage solution using  
W3's Database and Storage API's, Google Gears and maybe something else  
(flash/applet).


Hope to hear from you,


Bart Guijt
E: bgu...@gmail.com
T: +31 6 30408987


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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
-~--~~~~--~~--~--~---



I'm a web developer - where do i fit in?

2009-10-22 Thread mattkime

My company is examining front end technologies and we're a java shop
so everyone is interested in GWT. As a web developer (the html/css/
javascript type - and i _like_ javascript) I'm curious where I fit in.
I've paged through a number of books and watched a number of online
videos and it seems that one argument for using GWT is to remove me
from the process. That can't be entirely true.

Yes, there is CSS development. However, its not unusual to need to
edit html in order to get the required appearance. Further, there is
the development of new widgets. Yes, I've read the FAQ but I still
don't see where my html lives. Is there complete documentation on this
somewhere?

Finally, does GWT really free you from browser incompatibility
concerns? I've seen examples in books that would indicate otherwise
which is disappointing. Very rarely do I see reason for platform
specific code in css or js, i would certainly never want it to creep
into the java which i think all java devs will agree with.

Oh, and how do java developers feel about taking over responsibility
for something that would have been a web developer task? While it may
sound good in theory, its my guess that many java developers would
prefer to avoid the front end all together.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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
-~--~~~~--~~--~--~---



Button labels get line breaks in Opera

2009-10-22 Thread Tarjei Knapstad

Just tried out our prototype Gwt app on a multitude of browsers, and
there's a really weird problem with Opera. All the Gwt Button's are
linewrapped where ever there is a space in the label. Button labels
look like this in FF, Chrome, IE and Safari:

"Please click here"

In Opera (9.64, 10.0 and 10.10beta) they look like this:

"Please
click
here"

Any ideas why? I'll try to produce a minimal testcase in the
meantime...

Cheers,
Tarjei

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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-22 Thread Sudeep S
multipart requests have to be sent via a FORM panel

On Thu, Oct 22, 2009 at 6:53 PM, Lazo Apostolovski wrote:

>
> Its probably a multipart message :S
>
> Try googling for how to accept multipart message on the server side
>
> here is some example but i don't know if you find usefull.
>
> public HashMap parseMultipartMessage(
>  HttpServletRequest request) {
>
>mapWithStreams = new HashMap();
>
>boolean isMultipart = ServletFileUpload.isMultipartContent(request);
>try {
>  if (isMultipart) {
>FileItemFactory factory = new DiskFileItemFactory();
>ServletFileUpload upload = new ServletFileUpload(factory);
>
>List items = upload.parseRequest(request);
>
>for (FileItem item : items) {
>  mapWithStreams.put(item.getFieldName(), item.getInputStream());
>}
>  } else {
>mapWithStreams.put(DEFAULT_KEY, request.getInputStream());
>  }
>} catch (FileUploadException e) {
>  e.printStackTrace();
>} catch (IOException e) {
>  e.printStackTrace();
>}
>return mapWithStreams;
>
> In normal message (not multipart) data from the text fields come like
> the body of the message. If you try to transfer file in normal message
> then Stream is send like the body of the message. So you can transver
> only Parameters or only stream. If you want to transfer parameters and
> stream in same message you need to use multipart message. In multipart
> message InputStream come on server like a body of the message. If that
> input stream contain multipart message you need to parse that message.
> So in one part you will have values from input fields and in other part
> you will have Stream for uploaded file. Read about multipart messages on
> the wiki site. Code abowe will parse all input streams from multipart
> message and place them to the HasMap. The Key in HashMap is the File
> name. You can access to streams later when you need them. To the
> parameters you can access on the same way like you deed before:
>
>request.getParameter("parameterName");
>
> Good luck.
>
> YoeZ wrote:
> > Hey abhiram,
> >
> > I still have a problem in server side,, can you tell me how to catch
> > variable from client.
> >
> > Let say I have a textbox in client.
> >
> > Textbox txtComment = new Textbox;
> > txtComment.setName("txtComment");
> > txtComment .setText("hello");
> >
> > in server side:
> > I've tried:
> > String varXXX = (String) request.getParameter("txtComment");
> >
> > but that's not working. :(
> >
> > and I've also tried like this :
> >
> > try {
> > List items = upload.parseRequest(request);
> > Iterator it = items.iterator();
> > while (it.hasNext()) {
> > FileItem item = (FileItem) it.next();
> > if (item.isFormField()) {
> >   String name = item.getFieldName();
> >   if (name.equals("txtComment")) {
> >   ret = item.getString();
> >   }
> > return ret;
> > }
> > }
> > } catch (FileUploadException e) {
> > return null;
> > }
> >
> > but still null return.
> >
> > can you tell me how to catch it.
> >
> > regards
> >
> >
> >
> >
> > On Oct 21, 12:32 am, abhiram wuntakal  wrote:
> >
> >> Hey Yoez,
> >>
> >>   Not sure if it helps. But i have a workaround solution for this. Make
> it a
> >> two-step process. First use a RemoteServiceServlet to pass across your
> >> variables to the server side and then save these values into some
> variables
> >> on the server side.
> >>
> >>  Then you can use a HTTPServlet to pass across your file contents to the
> >> server side. Now you have the file as well as the variables.
> >>
> >>  HTH,
> >> Cheers,
> >> Abhiram
> >>
> >>
> >>
> >> On Mon, Oct 19, 2009 at 6:12 PM, YoeZ  wrote:
> >>
> >>
> >>> thanks ian,, but i'm using GWT and tried to uploadfile which is must
> >>> using FormPanel.
> >>> I have successfully upload my file to server with UploadFile widget,
> >>> but I have another textboxes too. and dunno how to catch inside
> >>> FormPanel.
> >>>
> >>> On Oct 19, 7:15 pm, Ian Bambury  wrote:
> >>>
>  You'll stand more chance of an answer if you ask that question in a
> Java
>  forum. This is a GWT group.
>  Ian
> 
>  http://examples.roughian.com
> 
>  2009/10/19 YoeZ 
> 
> > hello... please help
> >
> > On Oct 18, 12:31 am, YoeZ  wrote:
> >
> >> Hi.
> >>
> >> I have 1 form panel with some textboxes and file upload.
> >> the question is, how to get variables from client/form panel in
> >> servlet?
> >> i created DTO/Pojo object to hold variables in client, but i donk
> >>
> >>> know
> >>>
> >> how to catch in servlet..
> >>
> >> please help
> >>
> >> thanks
> >>
> > >
> >
> >
>
>
> >
>

--~--~-~--~~~---~--~~
You received this

GWT In Eclipse: file not found for:

2009-10-22 Thread Anh Phuong Tran

Hello!
Im starting a new GWT project (ModelViewer) and in one of the class, I
try to acces a xml file locally. The message that I get when I started
the apps in hosted mode is:
WARNING: No file found for: /modelviewer/RENO_L2_EXPERT.sdm

My question is, if I have a folder with xml files or txt files, where
should I put it so when I compile, the folder and its files will also
be included in the war folder and are accessible.

Thank you

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



Re: I'm a web developer - where do i fit in?

2009-10-22 Thread charlie

Honestly, removing the HTML designer is largely why I chose GWT, only
because I'm not very good with HTML design and this allows me to work
on projects i would have otherwise needed a designer for.

I disagree about the platform specific JS / CSS, I work at a fortune
500 web site and there are tons of horrible work arounds ( almost all
of them IE ) that are simply required to get your site to display
across all browsers.

But all in all I would say that having an HTML developer on the
project is extremely useful, there are lots of little things that have
been creeping up in my project where I still need HTML skills.

On Thu, Oct 22, 2009 at 7:55 AM, mattkime  wrote:
>
> My company is examining front end technologies and we're a java shop
> so everyone is interested in GWT. As a web developer (the html/css/
> javascript type - and i _like_ javascript) I'm curious where I fit in.
> I've paged through a number of books and watched a number of online
> videos and it seems that one argument for using GWT is to remove me
> from the process. That can't be entirely true.
>
> Yes, there is CSS development. However, its not unusual to need to
> edit html in order to get the required appearance. Further, there is
> the development of new widgets. Yes, I've read the FAQ but I still
> don't see where my html lives. Is there complete documentation on this
> somewhere?
>
> Finally, does GWT really free you from browser incompatibility
> concerns? I've seen examples in books that would indicate otherwise
> which is disappointing. Very rarely do I see reason for platform
> specific code in css or js, i would certainly never want it to creep
> into the java which i think all java devs will agree with.
>
> Oh, and how do java developers feel about taking over responsibility
> for something that would have been a web developer task? While it may
> sound good in theory, its my guess that many java developers would
> prefer to avoid the front end all together.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: I'm a web developer - where do i fit in?

2009-10-22 Thread Ian Bambury
2009/10/22 mattkime 

>
> My company is examining front end technologies and we're a java shop
> so everyone is interested in GWT. As a web developer (the html/css/
> javascript type - and i _like_ javascript) I'm curious where I fit in.
> I've paged through a number of books and watched a number of online
> videos and it seems that one argument for using GWT is to remove me
> from the process. That can't be entirely true.
>

You become a web developer who used GWT to develop web applications

>
> Yes, there is CSS development. However, its not unusual to need to
> edit html in order to get the required appearance. Further, there is
> the development of new widgets. Yes, I've read the FAQ but I still
> don't see where my html lives. Is there complete documentation on this
> somewhere?
>

There isn't a necessity for a lot of HTML. You can add widgets to existing
HTML, or you can still create HTML pages and add widgets to them, but
basically, since there is only one HTML page per application, there isn't a
lot you heed to do with it

>
> Finally, does GWT really free you from browser incompatibility
> concerns? I've seen examples in books that would indicate otherwise
> which is disappointing. Very rarely do I see reason for platform
> specific code in css or js, i would certainly never want it to creep
> into the java which i think all java devs will agree with.
>

GWT frees you from a lot of them, but not the CSS ones if you are using CSS
files. There should never be any need to write browser-specific Java-syntax
code

>
> Oh, and how do java developers feel about taking over responsibility
> for something that would have been a web developer task? While it may
> sound good in theory, its my guess that many java developers would
> prefer to avoid the front end all together.
>

It's not a matter of Java developers taking over from web developers - it's
either or both using Java syntax code which gets compiled into JavaScript.

My impression is that desktop Java coders have a harder time adjusting to
using Java syntax (it *isn't* Java) to create web apps because they have
problems with basic ideas like 'asynchronous' whereas web developers just
have to learn another curly-bracket language, they don't have to think in a
different way.


Ian

http://examples.roughian.com

P.S. You *like* JavaScript?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: I'm a web developer - where do i fit in?

2009-10-22 Thread mariyan nenchev
Why don't you try learining new stuff(like gwt) and try to fit everywhere?
It is not any rocket science

On Thu, Oct 22, 2009 at 3:55 PM, mattkime  wrote:

>
> My company is examining front end technologies and we're a java shop
> so everyone is interested in GWT. As a web developer (the html/css/
> javascript type - and i _like_ javascript) I'm curious where I fit in.
> I've paged through a number of books and watched a number of online
> videos and it seems that one argument for using GWT is to remove me
> from the process. That can't be entirely true.
>
> Yes, there is CSS development. However, its not unusual to need to
> edit html in order to get the required appearance. Further, there is
> the development of new widgets. Yes, I've read the FAQ but I still
> don't see where my html lives. Is there complete documentation on this
> somewhere?
>
> Finally, does GWT really free you from browser incompatibility
> concerns? I've seen examples in books that would indicate otherwise
> which is disappointing. Very rarely do I see reason for platform
> specific code in css or js, i would certainly never want it to creep
> into the java which i think all java devs will agree with.
>
> Oh, and how do java developers feel about taking over responsibility
> for something that would have been a web developer task? While it may
> sound good in theory, its my guess that many java developers would
> prefer to avoid the front end all together.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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
-~--~~~~--~~--~--~---



Date Picker not found in GWT 1.7.1

2009-10-22 Thread Rafael DL

Hi,

I'm trying to use the datebox after GWT upgraded to version 1.7.1, and
noticed that the screens that have this component does not work.

I have tried chrome, firefox and ie8, match any of them worked.
Anybody else has this problem? Does the problem is my browser or is
the GWT 1.7.1? Please check the showcase, the datepicker does not
work.

http://gwt.google.com/samples/Showcase/Showcase.html#CwDatePicker

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



Deploying to Apache HTTPD only

2009-10-22 Thread Charbel

Hi,
I just finished my first GWT application and I wanted to know if it is
possible to deploy a GWT application on Apache HTTD, this GWT app only
uses compiled Javascipt to access a Tomcat application hosting all the
functionality via servlets.

Thanks,
Charbel

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: I'm a web developer - where do i fit in?

2009-10-22 Thread charlie

@Ian:  I'm a Java web developer and it took some adjusting at first.
It's NOT like any other web framework, I think you have to approach it
as writing a desktop application, not a web app.  This idea of Events,
MPC, layouts etc are all desktop app idioms.

On Thu, Oct 22, 2009 at 1:05 PM, mariyan nenchev
 wrote:
> Why don't you try learining new stuff(like gwt) and try to fit everywhere?
> It is not any rocket science
>
> On Thu, Oct 22, 2009 at 3:55 PM, mattkime  wrote:
>>
>> My company is examining front end technologies and we're a java shop
>> so everyone is interested in GWT. As a web developer (the html/css/
>> javascript type - and i _like_ javascript) I'm curious where I fit in.
>> I've paged through a number of books and watched a number of online
>> videos and it seems that one argument for using GWT is to remove me
>> from the process. That can't be entirely true.
>>
>> Yes, there is CSS development. However, its not unusual to need to
>> edit html in order to get the required appearance. Further, there is
>> the development of new widgets. Yes, I've read the FAQ but I still
>> don't see where my html lives. Is there complete documentation on this
>> somewhere?
>>
>> Finally, does GWT really free you from browser incompatibility
>> concerns? I've seen examples in books that would indicate otherwise
>> which is disappointing. Very rarely do I see reason for platform
>> specific code in css or js, i would certainly never want it to creep
>> into the java which i think all java devs will agree with.
>>
>> Oh, and how do java developers feel about taking over responsibility
>> for something that would have been a web developer task? While it may
>> sound good in theory, its my guess that many java developers would
>> prefer to avoid the front end all together.
>>
>>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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
-~--~~~~--~~--~--~---



A decorated menubar by extending menubar?

2009-10-22 Thread TomJanssens

Hello,

I wish to create a decorated menubar version by extending the menubar
class (in the same way as decoratedstackpanel extends stackpanel).
Would something like this be possible? The decorated menubar would
need to wrap a decoratorpanel around the menubar.

I know it would be easier to just create a decorator panel with a
menubar inside, but I have some other methods that take a menubar as
an argument and would like that these also work with the decorated
menubar.

I am trying to do this, but the parent.replaceChild(...) line crashes:

Element parent = DOM.getParent(instance.getElement());

DecoratorPanel dp = new DecoratorPanel();
dp.add( instance );

parent.replaceChild(dp.getElement(), instance.getElement());

Any ideas, suggestions, ... welcome.

Cheers
Tom
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Date Picker not found in GWT 1.7.1

2009-10-22 Thread Isaac Truett

Works fine for me in Chrome.


On Thu, Oct 22, 2009 at 11:58 AM, Rafael DL  wrote:
>
> Hi,
>
> I'm trying to use the datebox after GWT upgraded to version 1.7.1, and
> noticed that the screens that have this component does not work.
>
> I have tried chrome, firefox and ie8, match any of them worked.
> Anybody else has this problem? Does the problem is my browser or is
> the GWT 1.7.1? Please check the showcase, the datepicker does not
> work.
>
> http://gwt.google.com/samples/Showcase/Showcase.html#CwDatePicker
>
> 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: GWT and DragListener

2009-10-22 Thread Adam T

Hi Sony,

It's not part of GWT out of the box, you need to add it.  See the
project page, which has instructions and a getting started guide,
here: http://code.google.com/p/gwt-dnd/

//Adam

On 22 Okt, 15:31, sony  wrote:
> Hello,
>
> Is DragListener part of GWT? because when i type in
> com.google.gwt.user.client.dnd.DragListener it is not recognizing. i
> saw this in an example. Is there anything i need to add to make it
> work? any help would be appreciated.
>
> Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: I'm a web developer - where do i fit in?

2009-10-22 Thread Ian Bambury
Like I said, it's just my impression. I was doing both desktop and web
development before I came to GWT. I've been on this list over 3 years, I
don't know how long you have, so I've seen a lot of newbies (as well as
having been one, of course) -  web developers learning Java (there are
plenty of resources for that out there) just have to learn a new language
with a very similar syntax to what they are used to. The chances of them
never having come across a C-style language is extremely slim.
Java desktop app developers know the language but sometimes have trouble
working out how the web works which is why this list keeps getting questions
from desktoppers wondering why, when the fire off an Ajax request, the data
is missing when they try to use it in the next line, and then, when they
have it explained to them, ask 'how do I block the thread until it comes
back, then?'

Web developers ask for a good Java resource, or ask how something they do in
JavaScript can be done in GWT. They tend to know a lot of what the web can
do (for obvious reasons) whereas pure desktoppers don't (for equally obvious
reasons).

Events are not new to web applications. Click events have always been a
fairly essential part of moving about the web.

As a desktop developer, you would probably approach it as if you were
writing a desktop app. As a website developer, you would probably approach
it like a web site.

A web application is something else again that neither of those types of
programmer probably have much knowledge of.

I have no idea what you mean my MPC. Sorry.

Ian

http://examples.roughian.com


2009/10/22 charlie 

>
> @Ian:  I'm a Java web developer and it took some adjusting at first.
> It's NOT like any other web framework, I think you have to approach it
> as writing a desktop application, not a web app.  This idea of Events,
> MPC, layouts etc are all desktop app idioms.
>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Does GWT work in Snow Leopard?

2009-10-22 Thread Bart Guijt

GWT (1.7.1 and up!) *do* work in Snow Leopard. At the command  
executing the HostedMode environment, add the -d32 option to tell the  
VM to use the 32-bit version.

Bart Guijt

On 22 okt 2009, at 22 okt, 18:35, Joe wrote:

>
> Is there no update on this sorry issue?  I keep expecting Google to do
> The Right Thing - i.e., I click "update" in Eclipse and then
> everything works - but after all this time with no solution my
> paranoia gene has me thinking this may have more to do with Apple v.
> Google issues than  64bit v. 32bit.
>
> Joe


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: url question, hosted/web mode

2009-10-22 Thread mwaschkowski

Yes, thats what I ended up doing (using GWT.getHostPageBaseURL()),
thanks for the help.

On Oct 14, 6:35 am, Thomas Broyer  wrote:
> On 13 oct, 21:02,mwaschkowski wrote:
>
>
>
>
>
> > Hi,
>
> > In hosted mode, my url looks like:
>
> >  http://localhost:8090/xyz.html
>
> > but when deployed looks like:
>
> >  http://localhost:8090/zzz/xyz.html
>
> > Because of this slight difference, I'm having a mapping issue. In my
> > web.xml, I have a servlet mapping for a regular, ordinary servlet (not
> > GWT-RPC):
>
> > /servletRequest
>
> > and when I try:
>
> >   Window.open(url, "_blank", "status=0");
>
> > when the app is deployed, everything is ok, and url looks like:
>
> >  http://localhost:8090/zzz/servletRequest
>
> > but when I try to access in hosted mode, the zzz causes problems
> > (because in hosted mode there isn't a contextpath, which I find a bit
> > weird and don't know exactly how to handle). What is best/easiest way
> > to deal with this with gwt 1.7?
>
> Have a look at GWT.getHostPageBaseURL() instead of hard-coding the /
> zzz path segment.
>
> Or you could just use a relative path in 'url'.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Does GWT work in Snow Leopard?

2009-10-22 Thread miller

I am using GWT2.0 in snow leopard and eclipse and it's working great.



On Oct 22, 2:42 pm, Bart Guijt  wrote:
> GWT (1.7.1 and up!) *do* work in Snow Leopard. At the command  
> executing the HostedMode environment, add the -d32 option to tell the  
> VM to use the 32-bit version.
>
> Bart Guijt
>
> On 22 okt 2009, at 22 okt, 18:35, Joe wrote:
>
>
>
>
>
> > Is there no update on this sorry issue?  I keep expecting Google to do
> > The Right Thing - i.e., I click "update" in Eclipse and then
> > everything works - but after all this time with no solution my
> > paranoia gene has me thinking this may have more to do with Apple v.
> > Google issues than  64bit v. 32bit.
>
> > Joe
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Complete example using BeanModel

2009-10-22 Thread charlie

This is a GXT question. But you can find it here
http://www.extjs.com/blog/2008/07/14/preview-java-bean-support-with-ext-gwt/
.

On Thu, Oct 22, 2009 at 9:23 AM, rernst  wrote:
>
> Is there a complete example somewhere which includes construction of
> the BeanModel with the domain class that I could inspect? Not just
> 'that you pass a BeanModel' to the loader?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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
-~--~~~~--~~--~--~---



blackberry support

2009-10-22 Thread mwaschkowski

Hi,

Do we have any gwt devs that own blackberry's? Does blackberry's built
in browser do gwt if the javascript/css/ie emulation is turned on?
Asking because I asked a buddy of mine to turn on the above and he
wasn't able to see my simple gwt site...

Thanks!

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



How to make public resources in submodules visible to main module

2009-10-22 Thread Allen Holub

My program is broken into several submodules (the main program, a
widgets library, a login module, etc.). Each of these is it's own GWT
module, which runs standalone for testing purposes. (Each of the
submodules has two version of the ...gwt.xml Module-definition file,
one with an entry point for standalone testing, and one without an
entry point, which is inherited from the main-application module
file.)  I do not want to package the submodules into separate jars for
several reasons, including the annoyance of remaking the jar every
time I make a change to the submodule code.

In Eclipse:  I've both added the projects for the submodules to the
main-program eclipse project, and also linked the submodule sources to
the main project so that the GWT compiler can find them.

All this works perfectly, EXCEPT for one problem: The contents of the
subproject's .../war directory  (.css files, for example) are not
visible to the main project when I try to run it. I don't want to make
physical copies of these subproject resources in the main project war
directory --- I just want them to be imported from the subproject war
directory into the main project war directory automatically as part of
the compile process. If I jar up the submodules, the resources are
visible, but if I run things directly from Eclipse, they aren't.

So, my question is:  without making jars of the submodules, is it
possible to make submodule resources available to the main project?
I've tried adding  elements to the main-project gwt.xml
file, but that doesn't seem to work (or I've used the wrong syntax for
the path).  Help is appreciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Announcing GWT 2.0 Milestone 2

2009-10-22 Thread Devraj Mukherjee

Hi John,

Is there any documentation that goes with the milstone releases so we
can read up on howto use some of these news features?

I am particularly interested in the XML UI descriptors.

Thanks again.

On Fri, Oct 23, 2009 at 4:43 AM, John LaBanca  wrote:
>
> Hi everyone,
>
> We are excited to release the second milestone build for GWT 2.0
> today. This milestone is essentially feature complete, and provides
> somewhat more stability in the various bits of core functionality that
> will be coming in GWT 2.0.
>
> Please download the distribution from:
> http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=2.0+Milestone+2
>
> Milestone 2 contains a couple new features and changes from MS1:
> * Layout Panels: Layout panels have been refined since MS1. In
> particular, the TabLayoutPanel has been introduced, and UiBinder has
> been extended to support it and StackLayoutPanel. Layout panels use
> native css, so they resize with the window smoothly (IE6 uses active
> layout to achieve the same effect, but it is still fast in most
> cases). When paired with UIBinder, users can create applications
> faster than ever. (Read more about UiBinder under Declarative User
> Interface, below.)
>
> Breaking changes in MS2:
> * The way arguments are passed to the GWT testing infrastructure has
> been revamped (and changed slightly from MS1). There is now a
> consistent syntax to support arbitrary "runstyles", including user-
> written with no changes to GWT. Though this does not affect common
> launch configs, some of the less common ones will need to be updated.
> For example:
>    * '-selenium localhost:/*firefox' has become
>      '-runStyle Selenium:localhost:/*firefox'
>    * '-remoteweb rmi://localhost/ff3' has become
>      '-runStyle RemoteWeb:rmi://localhost/ff3'
>    * '-manual 5' has become '-runStyle Manual:5'
> Note: run style names must be capitalized (ex. Selenium).
>
> Known Issues in MS2:
> * LayoutPanels only work in strict mode, but new GWT applications are
> created in quirks mode by default. You must manually switch your
> application to strict mode by changing the DOCTYPE at the top of your
> application's html file. Existing widgets that do not work correctly
> in strict mode (ex. StackPanel) now have a LayoutPanel counterpart
> that does work in strict mode (ex. StackLayoutPanel).
> * Connecting multiple browsers at the same time in development mode
> can cause the development mode server to crash. You can avoid this by
> waiting for each browser to start your app before connecting another
> browser.
> * If you are planning to run the webAppCreator, i18nCreator, or the
> junitCreator scripts on Mac or Linux, please set the executable bits
> by doing a 'chmod +x *Creator'
> * Our HtmlUnit integration is still not complete. Additionally,
> HtmlUnit does not do layout. So tests can fail either because they
> exercise layout or they hit bugs due to incomplete integration. If you
> want such tests to be ignored on HtmlUnit, please annotate the test
> methods with @DoNotRunWith({Platform.Htmlunit})
>
>
> To reiterate, here are a few key notes from the Milestone 1
> announcement...
> * Terminology changes: We're going to start using the term
> "development mode" rather than the old term "hosted mode." The term
> "hosted mode" was sometimes confusing to people, so we'll be using the
> more descriptive term from now on. For similar reasons, we'll be using
> the term "production mode" rather than "web mode" when referring to
> compiled script.
>
> * Changes to the distribution: Note that there's only one download,
> and it's no longer platform-specific. You download the same zip file
> for every development platform. This is made possible by the new
> plugin approach used to implement development mode (see below). The
> distribution file does not include the browser plugins themselves;
> those are downloaded separately the first time you use development
> mode in a browser that doesn't have the plugin installed.
>
> * In-Browser Development Mode: Prior to 2.0, GWT hosted mode provided
> a special-purpose "embedded browser" to debug your GWT code. In 2.0,
> the web page being debugged is viewed within a standard browser.
> Development mode is supported through the use of a native-code plugin
> for each browser. In other words, you can use development mode
> directly from Safari, Firefox, IE, and Chrome.
>
> * Code Splitting: Developer-guided code splitting allows you to chunk
> your GWT code into multiple fragments for faster startup. With code
> splitting, you can arrange to load just the minimum script needed to
> get the application running and the user interacting, while the rest
> of the app is downloaded as needed.
>
> * Declarative User Interface: GWT's UiBinder now allows you to create
> user interfaces mostly declaratively. Previously, widgets had to be
> created and assembled programmatically, requiring lots of code. Now,
> you can use XML to declare your UI, making the cod

Re: I'm a web developer - where do i fit in?

2009-10-22 Thread David Sanders
>
> My company is examining front end technologies and we're a java shop
>> so everyone is interested in GWT. As a web developer (the html/css/
>> javascript type - and i _like_ javascript) I'm curious where I fit in.
>> I've paged through a number of books and watched a number of online
>> videos and it seems that one argument for using GWT is to remove me
>> from the process. That can't be entirely true.
>>
>
>
> You become a web developer who used GWT to develop web applications
>

Yeah you become a technology-agnostic devleoper.  I'm a dev with PHP &
JavaScript background but started re-learning Java just so I can use GWT.  I
like JavaScript as well, but writing a large app in JavaScript just isn't
feasible.  Btw, there still is a need for HTML, CSS and even JavaScript
using the JSNI.

Dave

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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
-~--~~~~--~~--~--~---



TabLayoutPanel in GWT 2 m2

2009-10-22 Thread BryanDavid

fyi -

If you want TabLayoutPanel to lay out its tabs correctly, then you
will need a CSS rule like:

span.gwt-Tab div.gwt-Label{
display:inline;
}

The inner DIV was laying out as block and causing the tabs to stack
vertically.

The above rule only works for TabPanel.add(Widget child,
java.lang.String text);

If you add HTML or a widget to the tab, you will need to alter the
rule accordingly
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Jasperreports with GWT

2009-10-22 Thread mdwarne

Hi Haydar,


One way I have done this is to create a report Servlet on my server.

Then I am using  something like in my Button, or Hyperlink Click
Handler:

   Window.open("http://urlToMyServlet?
reportName=MyReport,param1=somedata¶m2=moredata");

The Pdf Report Servlet generates the jasper report pdf, and I set the
http headers to match the content-type for pdf etc.

This is one way to do it, I'm sure other have found different ways.

Hope this helps,
Mike.


On Oct 21, 4:32 am, Haydar  wrote:
> Hi friends,
>
> I am new to GWT and I have a problem with Jasperreports usage in my
> GWT application.
> I have some fields and a button and I want to get a report when i
> click the button.
> I was doing it with JSF easily but I couldn't manage to do it with
> GWT. Can anyone suggest me something? A very simple sample application
> or a website about this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: I'm a web developer - where do i fit in?

2009-10-22 Thread mattkime

I think its correct that I'd become a java developer, even if I'd
slide in slowly. I enjoy learning new tech but I don't want to spread
myself too thin.

I've been examining various front end technologies lately and cringe
whenever someone claims a particular framework "fixes" something in
javascript. Its almost never a javascript problem but a dom problem or
its just a variation from how java works. Additionally, there is no
inherent barrier to writing large apps in js any more than there is in
java.

The determining factor as to whether we'll use GWT will be how we want
to build our dev team. As it is, our java developers are quite busy so
i couldn't understand why we'd saddle them with more responsibility.
That said, its a decision for the people above me.

I'm not sure if its an inherent part of the approach but I fault GWT
for largely ignoring page based content loading and navigation. It
would be preferable if the content was loaded into an html page before
any js was attached. GWT v3?

And one more outstanding question - how GWT would relate to our
existing codebase which is a mix of spring/jsp and xslt - yes, its a
mess. Other front end technologies seems like they'd merge a bit
easier.

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



Re: GWT and DragListener

2009-10-22 Thread SUHASINI PRASAD
HI,

 I have that part added to my project, still it is not recognizing the
DragListener. What i am trying to do is to create a pop-up menu the moment
widget is dropped. i am already extending one class so i cannot extend click
listener. Is there a way i can do that. are there any examples. Thank you so
much for help.

On Thu, Oct 22, 2009 at 2:51 PM, Adam T  wrote:

>
> Hi Sony,
>
> It's not part of GWT out of the box, you need to add it.  See the
> project page, which has instructions and a getting started guide,
> here: http://code.google.com/p/gwt-dnd/
>
> //Adam
>
> On 22 Okt, 15:31, sony  wrote:
> > Hello,
> >
> > Is DragListener part of GWT? because when i type in
> > com.google.gwt.user.client.dnd.DragListener it is not recognizing. i
> > saw this in an example. Is there anything i need to add to make it
> > work? any help would be appreciated.
> >
> > Thank you.
> >
>

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



Re: I'm a web developer - where do i fit in?

2009-10-22 Thread hazy1

There is no 'spreading thin'.  All these languages, design patterns,
idioms, hacks all start to look the same, regardless of language,
after you get enough experience and then it is just picking the right
tool for the job.

On Oct 22, 11:05 pm, mattkime  wrote:
> I think its correct that I'd become a java developer, even if I'd
> slide in slowly. I enjoy learning new tech but I don't want to spread
> myself too thin.
>
> I've been examining various front end technologies lately and cringe
> whenever someone claims a particular framework "fixes" something in
> javascript. Its almost never a javascript problem but a dom problem or
> its just a variation from how java works. Additionally, there is no
> inherent barrier to writing large apps in js any more than there is in
> java.
>
> The determining factor as to whether we'll use GWT will be how we want
> to build our dev team. As it is, our java developers are quite busy so
> i couldn't understand why we'd saddle them with more responsibility.
> That said, its a decision for the people above me.
>
> I'm not sure if its an inherent part of the approach but I fault GWT
> for largely ignoring page based content loading and navigation. It
> would be preferable if the content was loaded into an html page before
> any js was attached. GWT v3?
>
> And one more outstanding question - how GWT would relate to our
> existing codebase which is a mix of spring/jsp and xslt - yes, its a
> mess. Other front end technologies seems like they'd merge a bit
> easier.
>
> thanks for the advice!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Announcing GWT 2.0 Milestone 2

2009-10-22 Thread jscheller

Is there a corresponding build of the GWT Incubator library in sync
with MS2? 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: I'm a web developer - where do i fit in?

2009-10-22 Thread David Sanders
> I've been examining various front end technologies lately and cringe
> whenever someone claims a particular framework "fixes" something in
> javascript. Its almost never a javascript problem but a dom problem or
> its just a variation from how java works. Additionally, there is no
> inherent barrier to writing large apps in js any more than there is in
> java.
>

I reckon there's a barrier - dispersion of application logic between client
and server.  Java doesn't fix this, GWT does.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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-22 Thread QBox
So
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/FormPanel.html

Class FormPanel

A panel that wraps its contents in an HTML  element.

YoeZ say that he use This panel so it will be multipart ;)


On Thu, Oct 22, 2009 at 8:57 PM, Sudeep S  wrote:

> multipart requests have to be sent via a FORM panel
>
>
> On Thu, Oct 22, 2009 at 6:53 PM, Lazo Apostolovski wrote:
>
>>
>> Its probably a multipart message :S
>>
>> Try googling for how to accept multipart message on the server side
>>
>> here is some example but i don't know if you find usefull.
>>
>> public HashMap parseMultipartMessage(
>>  HttpServletRequest request) {
>>
>>mapWithStreams = new HashMap();
>>
>>boolean isMultipart = ServletFileUpload.isMultipartContent(request);
>>try {
>>  if (isMultipart) {
>>FileItemFactory factory = new DiskFileItemFactory();
>>ServletFileUpload upload = new ServletFileUpload(factory);
>>
>>List items = upload.parseRequest(request);
>>
>>for (FileItem item : items) {
>>  mapWithStreams.put(item.getFieldName(), item.getInputStream());
>>}
>>  } else {
>>mapWithStreams.put(DEFAULT_KEY, request.getInputStream());
>>  }
>>} catch (FileUploadException e) {
>>  e.printStackTrace();
>>} catch (IOException e) {
>>  e.printStackTrace();
>>}
>>return mapWithStreams;
>>
>> In normal message (not multipart) data from the text fields come like
>> the body of the message. If you try to transfer file in normal message
>> then Stream is send like the body of the message. So you can transver
>> only Parameters or only stream. If you want to transfer parameters and
>> stream in same message you need to use multipart message. In multipart
>> message InputStream come on server like a body of the message. If that
>> input stream contain multipart message you need to parse that message.
>> So in one part you will have values from input fields and in other part
>> you will have Stream for uploaded file. Read about multipart messages on
>> the wiki site. Code abowe will parse all input streams from multipart
>> message and place them to the HasMap. The Key in HashMap is the File
>> name. You can access to streams later when you need them. To the
>> parameters you can access on the same way like you deed before:
>>
>>request.getParameter("parameterName");
>>
>> Good luck.
>>
>> YoeZ wrote:
>> > Hey abhiram,
>> >
>> > I still have a problem in server side,, can you tell me how to catch
>> > variable from client.
>> >
>> > Let say I have a textbox in client.
>> >
>> > Textbox txtComment = new Textbox;
>> > txtComment.setName("txtComment");
>> > txtComment .setText("hello");
>> >
>> > in server side:
>> > I've tried:
>> > String varXXX = (String) request.getParameter("txtComment");
>> >
>> > but that's not working. :(
>> >
>> > and I've also tried like this :
>> >
>> > try {
>> > List items = upload.parseRequest(request);
>> > Iterator it = items.iterator();
>> > while (it.hasNext()) {
>> > FileItem item = (FileItem) it.next();
>> > if (item.isFormField()) {
>> >   String name = item.getFieldName();
>> >   if (name.equals("txtComment")) {
>> >   ret = item.getString();
>> >   }
>> > return ret;
>> > }
>> > }
>> > } catch (FileUploadException e) {
>> > return null;
>> > }
>> >
>> > but still null return.
>> >
>> > can you tell me how to catch it.
>> >
>> > regards
>> >
>> >
>> >
>> >
>> > On Oct 21, 12:32 am, abhiram wuntakal  wrote:
>> >
>> >> Hey Yoez,
>> >>
>> >>   Not sure if it helps. But i have a workaround solution for this. Make
>> it a
>> >> two-step process. First use a RemoteServiceServlet to pass across your
>> >> variables to the server side and then save these values into some
>> variables
>> >> on the server side.
>> >>
>> >>  Then you can use a HTTPServlet to pass across your file contents to
>> the
>> >> server side. Now you have the file as well as the variables.
>> >>
>> >>  HTH,
>> >> Cheers,
>> >> Abhiram
>> >>
>> >>
>> >>
>> >> On Mon, Oct 19, 2009 at 6:12 PM, YoeZ  wrote:
>> >>
>> >>
>> >>> thanks ian,, but i'm using GWT and tried to uploadfile which is must
>> >>> using FormPanel.
>> >>> I have successfully upload my file to server with UploadFile widget,
>> >>> but I have another textboxes too. and dunno how to catch inside
>> >>> FormPanel.
>> >>>
>> >>> On Oct 19, 7:15 pm, Ian Bambury  wrote:
>> >>>
>>  You'll stand more chance of an answer if you ask that question in a
>> Java
>>  forum. This is a GWT group.
>>  Ian
>> 
>>  http://examples.roughian.com
>> 
>>  2009/10/19 YoeZ 
>> 
>> > hello... plea