Re: calling a java method with javascript

2012-04-22 Thread Lenny Primak
ComponentResources.createEventLink and pass it into your JavaScript via 
JavaScriptSupport.addScript()



On Apr 22, 2012, at 11:13 AM, sommeralex  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-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 

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



Re: calling a java method with javascript

2012-04-22 Thread François Facon
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  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-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>

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



calling a java method with javascript

2012-04-22 Thread sommeralex
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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Better Looking Input Form

2012-04-22 Thread trsvax
I wrote a module that changes Tapestry HTML to Bootstrap HTML. Here is the
code for BeanEditForm

https://github.com/trsvax/tapestry-bootstrap/blob/master/src/main/java/com/trsvax/bootstrap/services/bootstrapprovider/FormProvider.java

Basically you run a Visitor on the DOM after the component is rendered. At
that point you can covert it to whatever you want, then style that.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Better-Looking-Input-Form-tp5656603p5657494.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Better Looking Input Form

2012-04-22 Thread netdawg
This is somewhat less intrusive as well: 



Just happened on it at: 

http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Submit.html

To separately style, used embedded attributes: 







--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Better-Looking-Input-Form-tp5656603p5657113.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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