Re: How get iFrame contents with different domains ?

2012-09-25 Thread Кирилл Карпенко
You cannot do this the way you want. It is simply does not allowed by the
most of browsers.

There is only possible way you can to choose is to build extension which
browser grant extended permissions set. But user must setup it explicitly.
 25.09.2012 18:58 пользователь Nabil chane.na...@gmail.com написал:

 Hi,

 i have created an iFrame in my project that calls an external service (for
 example whatismyip.com) that returns my public IP.
 the problem is i cant get iFrame content, because there is a completly
 different domains.
 the question is how can i get this iFrame contents ? its very urgent
 please !

 Thank you

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


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



Re: RF and REST

2012-07-06 Thread Кирилл Карпенко
MIqp
03.07.2012 13:25 пользователь chal...@gmail.com написал:

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



Re: GWT+JPA Persistence.Exception source code not found

2012-06-02 Thread Кирилл Карпенко
Why you include your server codesource into GWT module?

On Sat, Jun 2, 2012 at 10:52 AM, Akram Moncer akram.mon...@gmail.comwrote:

 try to remove the  source path='server'/  of the gwt.xml file and add
 the jars in the war/lib folder

 2012/6/2 jmbz84 jmb...@gmail.com

  [image: Boxbe] https://www.boxbe.com/overview
 google-web-toolkit@googlegroups.com is not on your Guest 
 Listhttps://www.boxbe.com/approved-list| Approve
 sender https://www.boxbe.com/anno?tc=11494804866_698207912 | Approve
 domain https://www.boxbe.com/anno?tc=11494804866_698207912dom

 I'm trying to create a simple DB connection using JPA. It works fine
 but when I try to Throw an Exception to the client I get the error:

 [ERROR] [browsereditor] - Line 210: No source code is available for
 type javax.persistence.EntityExistsException; did you forget to
 inherit a required module?
 [ERROR] [browsereditor] - Line 212: No source code is available for
 type javax.persistence.EntityNotFoundException; did you forget to
 inherit a required module?

 I get no error in development mode and it compiles fine, but when the
 app module is loaded there is where I get the error.

 I have the required imports in server/Composer and client/Presenter
 classes

 import javax.persistence.EntityExistsException;
 import javax.persistence.EntityNotFoundException;


 I also added the following jars to the classpath and build path:

 javax.persistence.jar
 jpa-annotations-source.jar (http://code.google.com/p/google-web-
 toolkit/issues/detail?id=1830#c14http://code.google.com/p/google-web-toolkit/issues/detail?id=1830#c14
 )


 I also tried adding to gwt.xml

 source path='client'/
 source path='shared'/
 source path='server'/

 Any ideas on how to tell eclipse where to find the source code??

 Thanks

 Here is the code:

 //Create composer from Composer.class in server

public static Composer createComposer(String name)
throws EntityExistsException {
Composer comp = new Composer();
comp.setName(name);
comp.setId(1);

EntityManager entityManager = entityManager();
entityManager.getTransaction().begin();
entityManager.persist(comp);
entityManager.getTransaction().commit();
entityManager.close();

return comp;
 }
 ///fire Request from createComposer(above) in Presenter.class

 req.fire(new ReceiverComposerProxy() {

public void onSuccess(ComposerProxy arg0) {

ComposerProxy comp;
comp = arg0;
}

public void onFailure(Throwable caught)
throws Throwable {
// Convenient way to find out which
 exception
// was thrown.
try {
throw caught;
} catch (EntityExistsException e) {

} catch (EntityNotFoundException e) {

}
}});
}});


 [ERROR] [browsereditor] - Line 210: No source code is available for
 type javax.persistence.EntityExistsException; did you forget to
 inherit a required module?
 [ERROR] [browsereditor] - Line 212: No source code is available for
 type javax.persistence.EntityNotFoundException; did you forget to
 inherit a required module?

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





 --
 Akram MONCER
 Etudiant à l' ENSI
 Tel: (+216)27753866
 CV: http://akram.moncer.netcv.com/

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


-- 
You received 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: Large Project Structure

2012-05-29 Thread Кирилл Карпенко
You can think about Maven as building toolkit for your project.

It's allow you to make a hierarchical and linear dependencies between
modules
which decrease project total complexity.

More details you can find here: http://maven.apache.org and here:
http://mojo.codehaus.org/gwt-maven-plugin/

This article also could be informative for you:
http://code.google.com/p/gwt-maven/wiki/BigProjectBestPractices

On Tue, May 29, 2012 at 3:26 PM, Niraj Salot salotni...@gmail.com wrote:

 Hi All,

 What should be consider as Best Practice for Large Project Structure ?

 We have multiple modules inside the projects. Also We would like to
 make sure that single change in one module does not require compile of
 all the files. It should be just that module only.

 How to achieve this in GWT Project Structure ?

 Regards,Niraj Salot/

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



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