Monday, April 30, 2012

ScrollPanel not raising onScroll Event

I'm currently adapting the example on the showcase (it's still pretty
much equal) and i can't seem to make it raise a Scroll event. Is there
any known issue regarding this?

info: not using uibinder.

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

org.postgresql.util.PSQLException

Hi,

I am getting error when I am trying to connect to Postgresql database
from my program. The code I have written is on server side. And I have
added postgres.sql.jar in run configurations build path. I am not able
to figure out the solution. I have tried using other java classes like
BaseDatasource, etc but getting errors there too.

Program -

public Connection makeDatabaseConn(){
try{

Class.forName("org.postgresql.Driver");

String url = "jdbc:postgresql://
localhost:5432/my_db";
con = DriverManager.getConnection(url,
"postgres",
"password");
con.setAutoCommit(true);

}catch( Exception e )
{
e.printStackTrace();
}

return con;

}

Error -

org.postgresql.util.PSQLException: Your security policy has prevented
the connection from being attempted. You probably need to grant the
connect java.net.SocketPermission to the database server host and port
that you wish to connect to.
at org.postgresql.Driver.connect(Driver.java:282)

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: how to make a clickable image cell?

my method is similar to you, but I found one problem using these kind of method, the respond to click event is hard coded in
public void onBrowserEvent(Context context, Element parent, String value, NativeEvent event, ValueUpdater<String> valueUpdater)
for example,
if I create an instance of HeaderCell() headerCell1, and then I create another instance headerCell2, click on these two instances will have the same response hard code in the class HeaderCell().
// do something if it's indeed the image that was clicked
what should I do if I want click on each instance of HeaderCell() will have its custom logic?


On Wed, Apr 25, 2012 at 4:10 PM, Interbooker App <interbookerapp@gmail.com> wrote:

I'm not really sure if this is the best implementation, but it works for me. -- First, add this to your constructor:

  public HeaderCell() {

   
super("click", "keydown");
}

-- Then, override the onBrowserEvent:

  @Override
   
public void onBrowserEvent(Context context, Element parent, String value, NativeEvent event, ValueUpdater<String> valueUpdater) {
     
// Let AbstractCell handle the keydown event.

     
super.onBrowserEvent(context, parent, value, event, valueUpdater);
 
     
// Handle the click event.
     
if ("click".equals(event.getType())) {
       
EventTarget eventTarget = event.getEventTarget();
       
// in here we check whether the cell that was being clicked is an image, not the entire cell
       
if(eventTarget.toString().contains("img src") && !eventTarget.toString().contains("<div class")){
           
// do something if it's indeed the image that was clicked
       
}
     
}
   
}

Cheers, Lin


On Fri, Apr 20, 2012 at 10:38 AM, tong123123 <tong123123@gmail.com> wrote:
I found the answer finally, I wrongly import the
com.google.gwt.user.client.Element;
instead of
com.google.gwt.dom.client.Element;

On Friday, April 20, 2012 4:14:44 PM UTC+8, tong123123 wrote:
I got some insight but still not clear, it show that

public void onBrowserEvent(Context context, Element parent, String value,
        NativeEvent event, ValueUpdater<String> valueUpdater)

in ClickableImageCell2 is not override

public void onBrowserEvent(Context context, Element parent, C value,
      NativeEvent event, ValueUpdater<C> valueUpdater)
in AbstractCell,
but why in the api,
http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/cell/client/AbstractCell.html#onBrowserEvent%28com.google.gwt.cell.client.Cell.Context,%20com.google.gwt.dom.client.Element,%20C,%20com.google.gwt.dom.client.NativeEvent,%20com.google.gwt.cell.client.ValueUpdater%29

Class ContactCell,

@Override      public void onBrowserEvent(Context context, Element parent, Contact value,          NativeEvent event, ValueUpdater<Contact> valueUpdater) 

is override of AbstractCell?

--
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/-/nImJY4gKNjcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Tree and cell tree basic ques

Hi,

I am new to GWT and would like to know a very basic thing : 
What is the difference between tree ans cell tree , and in which case is each useful over other ?

--
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/-/mOlcq0rgmv4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT applications session management

Thanks for the reply.

On Apr 27, 7:10 pm, Joseph Lust <lifeofl...@gmail.com> wrote:
> See  https://www.google.com/search?q=google+web+toolit+overview
>
> 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT applications session management

Thanks for you reply .... i will do my best !

On Apr 27, 8:19 am, Gmane <xyb...@gmail.com> wrote:
> On 4/26/2012 8:18 PM, Adio wrote:
>
>
>
>
>
>
>
>
>
> > Hi guys, i am a new to GWT applications to AJAX applications in
> > general. i am making sample applications, to learn GWT applications. I
> > am creating a very simple bank system -ok, by very simple i mean very
> > very simple- and i reached the part the authentication and
> > authorization logic is needed.
>
> > Can someone explain the authentication logic in GWT apps ?
>
> > Anyone explain the entire authentication and authorization logic in
> > Ajax application ?
>
> > Session management in Ajax applications ?
>
> > If you don't want to bother yourselves with explaining and code
> > writing any useful links will be fine.
>
> > Thank you very mush.
>
> Hi, first I think you should read up about GWT-RPC topics and try some
> codes first. However as for your question it's very simple if you
> already understand RPC (although there are other ways than RPC to do this):
>
> - Create your Service and Async on the client side
> - Implement the service on the server side. If you are using GWT RPC,
> this class will inherit from RemoteServiceServlet and eventually inherit
> from Servlet.
> - Just put the authentication logic there (in that RPC servlet),
> verifying user credentials against a database and placing session
> objects on the Service implementation, its that simple

--
You received 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

JIT visualization + gwt

Hi,
I want to use the jit (javaScript InfoVis toolkit) visualization with GWT.
It would be very helpful if someone could provide some pointers or if someone has done something like this before....

Thanks in advance.

--
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/-/bmPoknvOwPsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.