You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by sommeralex <al...@gmail.com> on 2012/04/22 18:13:37 UTC

calling a java method with javascript

Hi!

I want to use the geolocation (html/javascript) api to get the current
position / after that, i want to call a java method, defined within a
tapestry page. 

I cant find any information about calling a java method from javascript.
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/javascript/JavaScriptSupport.html

so, how can i do this?

thx..

--
View this message in context: http://tapestry.1045711.n5.nabble.com/calling-a-java-method-with-javascript-tp5657594p5657594.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: calling a java method with javascript

Posted by sommeralex <al...@gmail.com>.
thx.

2012/4/22 lprimak [via Tapestry] <ml...@n5.nabble.com>

> ComponentResources.createEventLink and pass it into your JavaScript via
> JavaScriptSupport.addScript()
>
>
>
> On Apr 22, 2012, at 11:13 AM, sommeralex <[hidden email]<http://user/SendEmail.jtp?type=node&node=5657810&i=0>>
> wrote:
>
> > Hi!
> >
> > I want to use the geolocation (html/javascript) api to get the current
> > position / after that, i want to call a java method, defined within a
> > tapestry page.
> >
> > I cant find any information about calling a java method from javascript.
> >
> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/javascript/JavaScriptSupport.html
> >
> > so, how can i do this?
> >
> > thx..
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/calling-a-java-method-with-javascript-tp5657594p5657594.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5657810&i=1>
> > For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5657810&i=2>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5657810&i=3>
> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=5657810&i=4>
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/calling-a-java-method-with-javascript-tp5657594p5657810.html
>  To unsubscribe from calling a java method with javascript, click here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5657594&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTY1NzU5NHwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: http://tapestry.1045711.n5.nabble.com/calling-a-java-method-with-javascript-tp5657594p5657936.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: calling a java method with javascript

Posted by Lenny Primak <lp...@hope.nyc.ny.us>.
ComponentResources.createEventLink and pass it into your JavaScript via JavaScriptSupport.addScript()



On Apr 22, 2012, at 11:13 AM, sommeralex <al...@gmail.com> wrote:

> Hi!
> 
> I want to use the geolocation (html/javascript) api to get the current
> position / after that, i want to call a java method, defined within a
> tapestry page. 
> 
> I cant find any information about calling a java method from javascript.
> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/javascript/JavaScriptSupport.html
> 
> so, how can i do this?
> 
> thx..
> 
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/calling-a-java-method-with-javascript-tp5657594p5657594.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: calling a java method with javascript

Posted by François Facon <fr...@atos.net>.
Hi

Have a look at this jQuery Mobile Sample that use geolocalisation.
https://github.com/got5/techforum/blob/master/src/main/java/net/awl/od/techforum/pages/Map.java

François

Le 22 avril 2012 18:13, sommeralex <al...@gmail.com> a écrit :
> Hi!
>
> I want to use the geolocation (html/javascript) api to get the current
> position / after that, i want to call a java method, defined within a
> tapestry page.
>
> I cant find any information about calling a java method from javascript.
> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/javascript/JavaScriptSupport.html
>
> so, how can i do this?
>
> thx..
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/calling-a-java-method-with-javascript-tp5657594p5657594.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org