On Mon, 03 Oct 2011 08:04:06 -0300, dvelopp <[email protected]> wrote:

Hello!

Hi!

I want to use Tapestry with ussual html components:

Please define "usual". :)

After click on /<input type="button"/ id="tb"> / js(jQuery) do this:
jQuery.noConflict();
jQuery(document).ready(function() {

    jQuery("#tb").click(function(){
        jQuery.post("Login.java", "type=post", function(data){
            alert(data);
        },"text");
    });

});
And Login.java have method service() where this data will use.
Its possible to do with Tapestry?

Yes, it is. ;) @Inject ComponentResources and create a Link using createEventLink(). Then pass that link (URL) to your JavaScript code through
JavaScriptSupport.addScript(). Then add a method that handles this event.

By the way, you should post your questions in the users mailing list. This, the dev one, is for the development of Tapestry itself, while the users one is for development with Tapestry. ;)

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to