You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by membersound <me...@web.de> on 2012/11/06 16:22:15 UTC

jQuery bind example does not work?

Hi,

did anyone ever try the http://tapestry5-jquery.com/mixins/docsbind example?
Especially, how do I use bind.event and bind.eventType?

The example is very bad, maybe someone has experience in this?

Thanks



--
View this message in context: http://tapestry.1045711.n5.nabble.com/jQuery-bind-example-does-not-work-tp5717712.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: jQuery bind example does not work?

Posted by membersound <me...@web.de>.
OK thanks, at least I'm glad that I now have a working example for jquery
bind.



--
View this message in context: http://tapestry.1045711.n5.nabble.com/jQuery-bind-example-does-not-work-tp5717712p5718239.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: jQuery bind example does not work?

Posted by Chris Poulsen <ma...@nesluop.dk>.
No, it wasn't a clean project, I just thought your example looked like it
ought to work, so I got curious and added the couple of lines from the
example, to an existing project.

I simply copied the textfield you provided and wrapped it in a t:form,
added the property the field is bound to + the onClick method.

-- 
Chris



On Sat, Nov 24, 2012 at 5:50 PM, membersound <me...@web.de> wrote:

> Damn. That's strange as the rest of my T5 application works just fine...
>
> Did you try it in a clean project and could provide the working sample?
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/jQuery-bind-example-does-not-work-tp5717712p5718237.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: jQuery bind example does not work?

Posted by membersound <me...@web.de>.
Damn. That's strange as the rest of my T5 application works just fine...

Did you try it in a clean project and could provide the working sample?



--
View this message in context: http://tapestry.1045711.n5.nabble.com/jQuery-bind-example-does-not-work-tp5717712p5718237.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: jQuery bind example does not work?

Posted by Chris Poulsen <ma...@nesluop.dk>.
Your example works just fine here (tapestry 5.3.6/tapestry5-jquery 3.3.4).
I added a void return type to onClick().

So it seems that you have screwed something else up...




On Sat, Nov 24, 2012 at 4:47 PM, membersound <me...@web.de> wrote:

> I had a look into this again, and still cannot get it to work, although it
> seems straight forward:
>
> .tml:
> <t:textfield t:value="textFieldValue" t:mixins="jquery/bind"
> bind.event="click" bind.eventType="click" />
>
> .java:
> public onClick() {
>    System.out.println("works"); //this never gets called!
> }
>
>
> Why is this not working??
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/jQuery-bind-example-does-not-work-tp5717712p5718235.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: jQuery bind example does not work?

Posted by membersound <me...@web.de>.
I had a look into this again, and still cannot get it to work, although it
seems straight forward:

.tml:
<t:textfield t:value="textFieldValue" t:mixins="jquery/bind"
bind.event="click" bind.eventType="click" />

.java:
public onClick() {
   System.out.println("works"); //this never gets called!
}


Why is this not working??



--
View this message in context: http://tapestry.1045711.n5.nabble.com/jQuery-bind-example-does-not-work-tp5717712p5718235.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: jQuery bind example does not work?

Posted by membersound <me...@web.de>.
Ok but what do I have to set the class parameter?
I want to create a got5-jquery checkbox with a value change event in the
backing.

How would I have to change the following to make it work?
<t:any class="${selector:this}" t:mixins="jquery/checkbox,jquery/bind"
 bind.event="click"
 bind.eventType="click">
</t:any> 

Thanks alot



--
View this message in context: http://tapestry.1045711.n5.nabble.com/jQuery-bind-example-does-not-work-tp5717712p5717770.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: jQuery bind example does not work?

Posted by Emmanuel DEMEY <de...@gmail.com>.
Hi,

The eventType is the JQuery event. So if you want to bind the click event,
the eventtype parametr should be "click"? The event parameter is the name
of the Tapestry evenet that you will catch in your Java class.

Manu


2012/11/6 membersound <me...@web.de>

> Hi,
>
> did anyone ever try the http://tapestry5-jquery.com/mixins/docsbindexample?
> Especially, how do I use bind.event and bind.eventType?
>
> The example is very bad, maybe someone has experience in this?
>
> Thanks
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/jQuery-bind-example-does-not-work-tp5717712.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
>
>


-- 
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.emmanuel@gmail.com
http://emmanueldemey.fr/

Twitter : @EmmanuelDemey