@EventListener on contrib:MultiplePropertySelection (Tapestry 4.1)

2010-03-18 Thread Michał Minicki
Hi. Is it possible to add @EventListener to a contrib:MultiplePropertySelection in Tapestry 4.1 (dojo) and listen to onclick on its checkboxes? I would like to redraw the component everytime I click on a checkbox (as I'm toggling disabled and checked properties on the rest of them then). I

Re: [newbie] EventListener in Tapestry 5 ?

2009-12-14 Thread Thiago H. de Paula Figueiredo
Em Mon, 14 Dec 2009 23:02:41 -0200, Ashwanth Kumar escreveu: Well, if you want Mouse and Text field (key press events), use Java Script on the client side, its very useful and efficient. If you're very particular, use DWR to map JS events to a Java Class @ server side, but with in-built aj

Re: [newbie] EventListener in Tapestry 5 ?

2009-12-14 Thread Ashwanth Kumar
g/apache/tapestry5/EventConstants.html > > > -- > View this message in context: > http://n2.nabble.com/newbie-EventListener-in-Tapestry-5-tp4163378p4164188.html > Sent from the Tapestry Users mailing list archive at Nabble.com. > >

Re: [newbie] EventListener in Tapestry 5 ?

2009-12-14 Thread marioosh.net
extfield)... http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/EventConstants.html -- View this message in context: http://n2.nabble.com/newbie-EventListener-in-Tapestry-5-tp4163378p4164188.html Sent from the Tapestry Users mailing list arch

Re: [newbie] EventListener in Tapestry 5 ?

2009-12-14 Thread Olle Hallin
y/ref/org/chenillekit/tapestry/core/mixins/OnEvent.html >> > >> >> Thanks:) >> But... I see, that is a addition to tapestry. Why is not in native >> Tapestry >> 5 ? :( >> >> -- >> View th

Re: [newbie] EventListener in Tapestry 5 ?

2009-12-14 Thread Olle Hallin
see, that is a addition to tapestry. Why is not in native Tapestry > 5 ? :( > > -- > View this message in context: > http://n2.nabble.com/newbie-EventListener-in-Tapestry-5-tp4163378p4163622.html > Sent from the Tapestry Users mailing list archive at Nabble.com. > > --

Re: [newbie] EventListener in Tapestry 5 ?

2009-12-14 Thread marioosh.net
context: http://n2.nabble.com/newbie-EventListener-in-Tapestry-5-tp4163378p4163622.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additio

Re: [newbie] EventListener in Tapestry 5 ?

2009-12-14 Thread Inge Solvoll
5 ? > > I can't see @EventListener annotation in Tapesty5. > > -- > Pozdrawiam, > Mariusz > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >

[newbie] EventListener in Tapestry 5 ?

2009-12-14 Thread marioosh.net
Is something like that: http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html in Tapestry 5 ? I can't see @EventListener annotation in Tapesty5. -- Pozdrawiam, Mariusz - To unsubscribe, e-mail: users-uns

@EventListener inside custom component

2009-04-01 Thread tayjack
Hello, I create a component which used @EventListener, like this public abstract class MonthDay extends BaseComponent implements PageBeginRenderListener { public abstract void setMonthModel(IPropertySelectionModel model); public abstract int getMonth(); public abstract void

Re: Problems with LinkSubmit and/or EventListener

2009-02-10 Thread Andreas Andreou
>> this. >> >> Perhaps you're using a bunch of @If and @Else components and perhaps >> some property is not >> persisted correctly so that rewind fails to go through the same >> conditionals? Could it be inappropriate >> use of the volatile parameter of

Re: Problems with LinkSubmit and/or EventListener

2009-02-10 Thread Andreas Andreou
gt; they go stale you can solve >> this. >> >> Perhaps you're using a bunch of @If and @Else components and perhaps >> some property is not >> persisted correctly so that rewind fails to go through the same >> conditionals? Could it be inappropriat

Re: Problems with LinkSubmit and/or EventListener

2009-02-10 Thread BryanS
ditionals? Could it be inappropriate > use of the volatile parameter of those components? > > > > -- View this message in context: http://n2.nabble.com/Problems-with-LinkSubmit-and-or-EventListener-tp2302994p2305547.html Sent from the Tapestry Users mailing list archive at Nabble.co

Re: Problems with LinkSubmit and/or EventListener

2009-02-10 Thread Andreas Andreou
ren't rerendered > upon selection of the DirectLink. So bascially that route doesn't work. > > What I tried next was a bit of a hack, but i dropped an EventListener method > which listened for the clicks on a GenericLink component. I set it up for > submitting my form, u

Problems with LinkSubmit and/or EventListener

2009-02-10 Thread BryanS
oesn't work. What I tried next was a bit of a hack, but i dropped an EventListener method which listened for the clicks on a GenericLink component. I set it up for submitting my form, using the "submitForm" attribute. The form gets submitted but the event listener is never

Various bug of EventListener in version 4.1.2-4.1.6

2008-10-16 Thread Sergey Kashin
Hello Tapestry List, In various Tapestry version EventListener works with various bugs I' have use beanform with code like this: - - java

Re: [T4.1.5] RadioGroup EventListener doesn't work

2008-07-06 Thread Marcus Schulte
Sorry guys, I've forgotten the version-hint in the docs. The feature was committed to trunk end of march. Currently, it's only available in version 4.1.6-SNAPSHOT. I meant to push a release, but then, I never got around. Marcus 2008/7/4 Christophe Mesplede <[EMAIL PROTECTED]>: > Hi. > > I expe

Re: [T4.1.5] RadioGroup EventListener doesn't work

2008-07-04 Thread Christophe Mesplede
Hi. I experienced the exact same problem trying to use the RadioGroup Ajax behaviour. As you did, I also tried the sample code from the documentation, it did not work. Finally, I gave up the Ajax way, and added a looot of stuff in javascript to make some kind of workaround, but with no server inte

Re: [T4.1.5] RadioGroup EventListener doesn't work

2008-07-04 Thread Gerold Glaser
Hi! I am using the @EventListener Annotation for the RadioGroup Component and it works fine. The difference is that I register the listener not on the RadioGroup, but on the single Radio Component. In addition to "onchange" I register the events "onclick" and "o

Re: [T4.1.5] RadioGroup EventListener doesn't work

2008-07-04 Thread Christophe Mesplede
Hi. I've been experiencing the exact same problem trying to use the RadioGroup Ajax behaviour. As you did, I also tried the sample code from the documentation, it did not work. Finally, I gave up the Ajax way, and added a looot of stuff in javascript to make some kind of workaround, but with no se

[T4.1.5] RadioGroup EventListener doesn't work

2008-06-23 Thread Jerome Da Costa
Hi, When trying to you the onChange method on a RadioGroup component, we encountered the following error client side : [Exception... "'Error: bad srcObj for srcFunc: onChange' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" locati

Re: EventListener and JavaScript function

2008-05-12 Thread Warner Onstine
Portal implementation working based off of this ( http://blog.xilinus.com/2007/9/4/prototype-portal-class-2). So far I have everything working the way it should but am now getting to the stage where I want to start saving the portal layout changes to a db for the user. We're currently on

Re: EventListener and JavaScript function

2008-05-12 Thread Marcus Schulte
ff of this ( > http://blog.xilinus.com/2007/9/4/prototype-portal-class-2). So far I have > everything working the way it should but am now getting to the stage where I > want to start saving the portal layout changes to a db for the user. We're > currently on 4.0.x and I spied the Eve

EventListener and JavaScript function

2008-05-10 Thread Warner Onstine
db for the user. We're currently on 4.0.x and I spied the EventListener annotation and it looks like exactly what I need to call from the JavaScript side. The problem I'm running into is I don't know how to get my listener actions called, the javascript that is called is

Re: EventListener and PropertySelection (Solution)

2008-04-24 Thread Kalle Korhonen
don't know if there are that many users out there using T4, dojo and prototype. Kalle On Thu, Apr 24, 2008 at 4:18 PM, Kalle Korhonen <[EMAIL PROTECTED]> wrote: > I just run into the same exact thing, using Tap 4.1.5, dojo that comes with > it, propertyselection and an eventlistener

Re: EventListener and PropertySelection (Solution)

2008-04-24 Thread Kalle Korhonen
I just run into the same exact thing, using Tap 4.1.5, dojo that comes with it, propertyselection and an eventlistener as well as prototype. Anybody know if this is fixed in a newer snapshot, if there is a bug open on this or any (better) workaround? Kalle On Sat, Oct 27, 2007 at 9:41 AM, lt

Re: @EventListener Issue

2008-04-18 Thread DR_GLoPeL_BouCa
ment, and put, if you have, a response when you use a Target in @EventListener. -- View this message in context: http://www.nabble.com/%40EventListener-Issue-tp16744255p16763402.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: @EventListener Issue

2008-04-17 Thread abhilash
uot;, "formEvent2604279"); any ideas/ abhilash wrote: > > No,still not working > > > Andy Pahne-3 wrote: >> >> >> Try >> >> >> >> instead of >> >> >> >> >> >>

Re: @EventListener Issue

2008-04-17 Thread abhilash
No,still not working Andy Pahne-3 wrote: > > > Try > > > > instead of > > > > > > Because you use the parameter "targets" in your @EventListener, you have > to use a component id. > > > Andy > > >

Re: @EventListener Issue

2008-04-17 Thread Andy Pahne
Try instead of Because you use the parameter "targets" in your @EventListener, you have to use a component id. Andy abhilash schrieb: Hi all, i am using tapestry4.1.5 My eventListener is not getting called.This is my code.

@EventListener Issue

2008-04-17 Thread abhilash
Hi all, i am using tapestry4.1.5 My eventListener is not getting called.This is my code. Choose Type

Re: @EventListener in a Dialog

2008-04-16 Thread Andreas Andreou
Hmm... can't probably help much, but i've seen quite a few fixes regarding EventListener in the latest 4.1.6-SNAPSHOT Can you give it a try? http://people.apache.org/maven-snapshot-repository/org/apache/tapestry/tapestry-framework/4.1.6-SNAPSHOT/ On Thu, Apr 17, 2008 at 9:12 AM

Re: @EventListener in a Dialog

2008-04-16 Thread abhilash
Yes,i have a "[EMAIL PROTECTED]" inside my Dialog.This is an ajax Form.My @EventListener is @EventListener(elements = "typeChanged", events = "onchange", submitForm = "ListForm",async=true) p

Re: @EventListener in a Dialog

2008-04-16 Thread Andreas Andreou
selection model in a dialog.Propertyselection model is > associated with an onchange event.But my @EventListener method is not > getting called when onchange happens.I dont know where i am doing wrong? > any ideas? > Thanks in advance. > -- > View this message

@EventListener in a Dialog

2008-04-16 Thread abhilash
Hi , I am using tapestry 4.1.5 I have a property selection model in a dialog.Propertyselection model is associated with an onchange event.But my @EventListener method is not getting called when onchange happens.I dont know where i am doing wrong? any ideas? Thanks in advance. -- View this

Passing parameter to @EventListener

2008-04-04 Thread Rohan Kalyan
hi all, we are migrating from tapestry 4.0.2 to 4.1.5 while migrating we are using @EventListener annotation instead of @AjaxEventSubmit, we were passing parameter to @AjaxEventSubmit in 4.0.2, and in @EventListener annotation we want to pass the same parameter. I tried setting the parameter

Re: problem with @EventListener

2008-04-02 Thread Paul Stanton
don't double post please kk4Nabble wrote: Hi.. I am using tapestry 4.1 My html code is.. and java code is @EventListener(elements = "supplimentalId", events = "onclick") public void watchText(IRequestCycle cycle) { // do something

Re: @EventListener

2008-04-02 Thread Paul Stanton
Kavya, The id should be part of the jwcid expression: the component will create the id attribute for you. Kavya K wrote: Hi.. My html code is.. and java code is @EventListener(elements = "supplimentalId", events = "onclick") public void watchText

RE: @EventListener

2008-04-02 Thread Craig Spry
watchText(), but you may get different results. I hope this helps, Craig -Original Message- From: Kavya K [mailto:[EMAIL PROTECTED] Sent: Wednesday, 2 April 2008 7:53 PM To: users@tapestry.apache.org Subject: @EventListener Hi.. My html code is.. and java code is @EventListene

problem with @EventListener

2008-04-02 Thread kk4Nabble
Hi.. I am using tapestry 4.1 My html code is.. and java code is @EventListener(elements = "supplimentalId", events = "onclick") public void watchText(IRequestCycle cycle) { // do something ((Dialog)getComponent("DialogContentSupplimental")).s

@EventListener

2008-04-02 Thread Kavya K
Hi.. My html code is.. and java code is @EventListener(elements = "supplimentalId", events = "onclick") public void watchText(IRequestCycle cycle) { // do something ((Dialog)getComponent("DialogContentSupplimental")).show(); } ie .. w

@EventListener - SubmitForm element

2008-03-17 Thread Carlos F
and the tabular list should be redisplayed. This was easily enough using a DirectLink with the asyn property. However, I need to maintain the state of the checkbox. This has lead me to using the @EventListener with the "SubmitForm" element. Because I need to pass along information

T4: @Eventlistener onchange with a select

2008-03-12 Thread Craig Spry
Hello All, I have a page with 2 forms on it. The first form only has a select in it and the contents of the second form depend on the selection of select in the first form. No I tried to put an @EventListener to listen when the select changed its contents. When I did this the index that

Re: T4: EventListener on multiple elements

2008-03-07 Thread Andreas Andreou
I think i was just printing the value parameter of @For inside the EventListener enhanced listener, and was always seeing the value of the last iteration (btw, without using BrowserEvent ). But, I will recheck and try to come up with a testcase this weekend. On Thu, Mar 6, 2008 at 10:19 PM

Re: T4: EventListener on multiple elements

2008-03-06 Thread Jesse Kuhnert
and i don't have a workaround for that... > > Any ideas? > > > > > On Thu, Mar 6, 2008 at 9:27 PM, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > I'm not sure how you have your page set up but this is all I have to > > do in a similar situat

Re: T4: EventListener on multiple elements

2008-03-06 Thread Andreas Andreou
e.org/gmane.comp.java.tapestry.user/58049/ and i don't have a workaround for that... Any ideas? On Thu, Mar 6, 2008 at 9:27 PM, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > I'm not sure how you have your page set up but this is all I have to > do in a similar situation: > > > @Event

Re: T4: EventListener on multiple elements

2008-03-06 Thread Jesse Kuhnert
I'm not sure how you have your page set up but this is all I have to do in a similar situation: @EventListener(targets = "publishByDefault", events = {"onclick", "onchange"}) public void defaultChecked() { ... } ... .. It's listening to both

T4: EventListener on multiple elements

2008-03-06 Thread Dmitry Shyshkin
Hello, All. I want to apply the only @EventListener("onchange") for multiple form elements (say checkboxes or selectboxes). Each of them is placed into his own row in the table (table is not a component, it's formed using @For by ). But the problem here is that I do not know

Re: [4.1.5] @EventListener and dynamic responses

2008-02-28 Thread Andreas Andreou
and no unclosed tags ! On Thu, Feb 28, 2008 at 4:29 PM, Andy Pahne <[EMAIL PROTECTED]> wrote: > > I discovered another pitfall: after I had a working solution in my > stripped down test case, I added the feature into a much more complex > page with a large form, only to find out that it still

Re: [4.1.5] @EventListener and dynamic responses

2008-02-28 Thread Andy Pahne
I discovered another pitfall: after I had a working solution in my stripped down test case, I added the feature into a much more complex page with a large form, only to find out that it still does not work. It took me quite a while to find out, that my dynamic update of parts of the page onl

Re: [4.1.5] @EventListener and dynamic responses

2008-02-27 Thread Ulrich Stärk
Oh sorry, sure it can only work if the whole form reloads because the form has to know of the now present input field. Uli Andy Pahne schrieb: Correction. It works when I update the whole form component, but not if I try to update only the [EMAIL PROTECTED] component. Thanks Ulrich, you po

Re: [4.1.5] @EventListener and dynamic responses

2008-02-27 Thread Andy Pahne
Correction. It works when I update the whole form component, but not if I try to update only the [EMAIL PROTECTED] component. Thanks Ulrich, you pointed into the right direction. By the way: in the last few weeks you were very responsive and helpful to all my questions. I appreciate that...

Re: [4.1.5] @EventListener and dynamic responses

2008-02-27 Thread Andy Pahne
Sorry, but I cannot confirm that. I tried it and the debugging output changed to: DEBUG: 1:05:54 PM: tapestry.load() Response received. WARNING: 1:05:54 PM: No ajax-response elements received. But the hidden part does not render. I also tried responseBuilder.updateComponent("formComponent

Re: [4.1.5] @EventListener and dynamic responses

2008-02-27 Thread Ulrich Stärk
n some event that is asynchronously submitted through the @EventListener feature. Unfortunatly the hidden form field never shows up. I am not sure if there's a problem with my code or if my approach is correct at all. Any other ideas are welcome. My template: --

[4.1.5] @EventListener and dynamic responses

2008-02-27 Thread Andy Pahne
I am trying to show some parts of a page that were initially hidden, depending on some event that is asynchronously submitted through the @EventListener feature. Unfortunatly the hidden form field never shows up. I am not sure if there's a problem with my code or if my approach is co

Re: T4: Using @EventListener to capture a javascript method call

2008-02-22 Thread carlos f
/tapestry.apache.org/tapestry4.1/tapestry-annotations/index.html#EventListener targets - is used to identify tapestry components to listen to elements - is used to identify DOM nodes to listen to it is my understanding that only one is required. i am not sure if you get a union or intersection whe

T4: example of using @EventListener to capture a javascript method call

2008-02-21 Thread carlos f
i can't get the client side JS method call to invoke the server side listener method. Since this is the first time i am using the @EventListener annotation I am sure that I am missing something simple. Does anyone know of a publicly available example of this functionality? that would probabl

RE: [4.1.5] @EventListener question

2008-02-20 Thread Kevin Menard
r your network www.servprise.com +1 508.892.3823 x308 > -Original Message- > From: Andy Pahne [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 20, 2008 11:07 AM > To: Tapestry users > Subject: Re: [4.1.5] @EventListener question > > > Bad luck. As

Re: [4.1.5] @EventListener question

2008-02-20 Thread Andy Pahne
Bad luck. As I see you are the reporter of that bug. Did you find a workaround? A. Kevin Menard schrieb: autosubmit="false" is currently broken. You can track the following issue: https://issues.apache.org/jira/browse/TAPESTRY-2003 --

RE: [4.1.5] @EventListener question

2008-02-20 Thread Kevin Menard
gt; -Original Message- > From: Andy Pahne [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 20, 2008 10:54 AM > To: Tapestry users > Subject: Re: [4.1.5] @EventListener question > > > I changed my @EventListener like that: > > @EventListener( >

Re: [4.1.5] @EventListener question

2008-02-20 Thread Andy Pahne
Worked instantly. Thanks. But shouldn't "elements" work as well? Kevin Menard schrieb: -Original Message- From: Andy Pahne [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 20, 2008 10:41 AM To: Tapestry users Subject: [4.1.5] @EventListener quest

Re: [4.1.5] @EventListener question

2008-02-20 Thread Andy Pahne
I changed my @EventListener like that: @EventListener( targets = "formField1", events = "onchange", async=true, autoSubmit=false) And it submits the form, although I added "autoSubmit=false". I think I'll nee

RE: [4.1.5] @EventListener question

2008-02-20 Thread Kevin Menard
> -Original Message- > From: Andy Pahne [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 20, 2008 10:41 AM > To: Tapestry users > Subject: [4.1.5] @EventListener question > > Page class: > > @EventListener(elements = "formField1", >

[4.1.5] @EventListener question

2008-02-20 Thread Andy Pahne
Hi, I am trying out the @EventListener Ajax features and already got some impressive results without knowing anything about Javascript, but there's one thing that does not work: Template: Page class: public void formSubmit() { setMessage("Form 1

T4: Using @EventListener to capture a javascript method call

2008-02-19 Thread Chris Norris
ing like so: var photoLoader = { loadPhotos:function(something){ alert("loadPhotos " + something); } }; This function is called like this: photoLoader.loadPhotos. My annotated

T4 Upload component + EventListener issue

2008-02-18 Thread caarney
ve Upload to another form, maybe the solution would be to use some other component (contrib?) for handling file upload... ? Any suggestions? Thanks -- View this message in context: http://www.nabble.com/T4-Upload-component-%2B-EventListener-issue-tp15542519p15542519.html Sent from the Tapestry

Re: execute javascript from ajax eventlistener

2008-02-14 Thread Paul Stanton
ion? p Paul Stanton wrote: Hi All. I have an Autocompleter, which has an 'onValueChanged' event listener. The event is being triggered and everything up to this point works as expected. What I'd like to do in this event listener is cause a javascript snippet to be execu

execute javascript from ajax eventlistener

2008-02-13 Thread Paul Stanton
Hi All. I have an Autocompleter, which has an 'onValueChanged' event listener. The event is being triggered and everything up to this point works as expected. What I'd like to do in this event listener is cause a javascript snippet to be executed on the client for example:

Re: [T4] EventListener and invocation of related method

2008-02-07 Thread Igor Drobiazko
y, the method annotated with EventListener is invoked after > all the elements of the > form are rewound (like the action parameter does). > > I've just come across a situation that i would like > to have (either the same or another) method called as soon as the > component t

[T4] EventListener and invocation of related method

2008-02-07 Thread Andreas Andreou
This issue is quite similar to the listener and action parameters of submit components [1]. Currently, the method annotated with EventListener is invoked after all the elements of the form are rewound (like the action parameter does). I've just come across a situation that i would like to

Re: Problem using EventListener annotation

2008-01-24 Thread HBKTron
, >> >> I'm currently using Tapestry 4.1.3 and I'm trying to copy the >> EventListener >> annotation example from: >> http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html. >> >> The example shows how a method can be annotated with Event

Re: Problem using EventListener annotation

2008-01-24 Thread Marcus Schulte
/page at runtime (should not be the cause of your trouble, though). 2008/1/24, HBKTron <[EMAIL PROTECTED]>: > > > Hi, > > I'm currently using Tapestry 4.1.3 and I'm trying to copy the > EventListener > annotation example from: > http://tapestry.apache.org/tape

Problem using EventListener annotation

2008-01-24 Thread HBKTron
Hi, I'm currently using Tapestry 4.1.3 and I'm trying to copy the EventListener annotation example from: http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html. The example shows how a method can be annotated with EventListener to respond to DOM events. Unfortunately the Eve

Re: EventListener on components within a @For loop

2008-01-18 Thread Christian Dutaret
I still use this workaround. To have it work with T4.1.3, I think you just need to set the event on a form component (I use the submit button). dojo.byId('submit').ajaxEvent=function(json) {}; then : @EventListener(targets = "submit", events = "ajaxEvent") public

Re: T-4.1.3 - @EventListener quiz question

2008-01-03 Thread Jesse Kuhnert
there want to step up and explain why that would be > great.Best regards Ken in nashua > > > From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: T-4.1.3 - @EventListener quiz > questionDate: Thu, 3 Jan 2008 11:05:02 -0500 > > > > Which syntax is valid? > > 1. @Even

RE: T-4.1.3 - @EventListener quiz question

2008-01-03 Thread Ken in nashua
- @EventListener quiz questionDate: Thu, 3 Jan 2008 11:05:02 -0500 Which syntax is valid? 1. @EventListener(events = { "onChange" }, targets = { "tableSizeSelect" }, submitForm = "galleryForm", async = true) 2. @EventListener(even

Re: T-4.1.3 - @EventListener quiz question

2008-01-03 Thread Kevin Menard
gt; > Which syntax is valid? > > 1. @EventListener(events = { "onChange" }, > targets = { "tableSizeSelect" }, > submitForm = "galleryForm", > async = true) > > 2. @EventListener(events="onchange", >

T-4.1.3 - @EventListener quiz question

2008-01-03 Thread Ken in nashua
Which syntax is valid? 1. @EventListener(events = { "onChange" }, targets = { "tableSizeSelect" }, submitForm = "galleryForm", async = true) 2. @EventListener(events="onchange", targets="tableSizeSelect"

Re: EventListener on components within a @For loop

2008-01-02 Thread caarney
ript function as if it were a native event. > I attach an empty js function to an arbitrary DOM element like this: > > document.getElementById('someDiv').clickRadio=function(radio) {}; > > and an onclick attribute to my radio buttons: > > > > Then I c

Re: @radiogroup and @EventListener

2008-01-02 Thread caarney
tries to serialize my form. Any ideas? > > On Dec 10, 2007 5:17 AM, caarney <[EMAIL PROTECTED]> wrote: > >> >> Try using elements instead of targets: >> >> @EventListener(elements = "someDiv", events = "clickRadio", submitForm = >>

Re: [T4]: Execute arbitrary JS from EventListener

2007-12-27 Thread Jesse Kuhnert
wrote: > Hey all, > > I have the need to call arbitrary JS after updating components from an > EventListener. The use case is the following: > > If client-side validation is disabled I show a div that display the error > message. When a form is submitted asynchronously, I can updat

Re: [T4]: Execute arbitrary JS from EventListener

2007-12-27 Thread Martino Piccinato
itrary JS after updating components from an > EventListener. The use case is the following: > > If client-side validation is disabled I show a div that display the error > message. When a form is submitted asynchronously, I can update the contents > of the div, but then I just end up with a

[T4]: Execute arbitrary JS from EventListener

2007-12-27 Thread Kevin Menard
Hey all, I have the need to call arbitrary JS after updating components from an EventListener. The use case is the following: If client-side validation is disabled I show a div that display the error message. When a form is submitted asynchronously, I can update the contents of the div, but

T5 - ActionLink - What's the equivalent to T4 EventListener with SubmitForm?

2007-12-26 Thread Daniel Leffel
Hi All, What's the best way to submit the form before firing the method corresponding to the ActionLink? In T4, this used to be accomplished with the EventListener and setting the submitForm=[form name] annotation. Thanks in advance! Danny

Re: [T4]: EventListener autoSubmit

2007-12-22 Thread Kevin Menard
erialized copy of the DOM > node, sorta like I can do with jQuery. Then I could dump the server-side > value altogether and just use a plain ol' checkbox. > > I guess I'll put EventListener back on the shelf until then. > > Thanks for the info, > Kevin >

Re: [T4]: EventListener autoSubmit

2007-12-20 Thread Kevin Menard
OM node, sorta like I can do with jQuery. Then I could dump the server-side value altogether and just use a plain ol' checkbox. I guess I'll put EventListener back on the shelf until then. Thanks for the info, Kevin ---

Re: [T4]: EventListener autoSubmit

2007-12-20 Thread Jesse Kuhnert
quot;, the > server-side value is updated, but I can't suppress the form submission. I > have something like the following: > > @EventListener(targets="sameShippingInfo", events="onchange", > autoSubmit=false) > public void copyShippingInfo(final IRequ

[T4]: EventListener autoSubmit

2007-12-20 Thread Kevin Menard
If I use "targets", the server-side value is updated, but I can't suppress the form submission. I have something like the following: @EventListener(targets="sameShippingInfo", events="onchange", autoSubmit=false) public void copyShippingInfo(final IRequestCycle cy

Re: @radiogroup and @EventListener

2007-12-10 Thread Henri Dupre
Thanks! I figured that one. Now I'm getting a "too much recursion" JavaScript error when DOJO tries to serialize my form. Any ideas? On Dec 10, 2007 5:17 AM, caarney <[EMAIL PROTECTED]> wrote: > > Try using elements instead of targets: > > @EventList

Re: @radiogroup and @EventListener

2007-12-10 Thread caarney
Try using elements instead of targets: @EventListener(elements = "someDiv", events = "clickRadio", submitForm = "form") Henri Dupre wrote: > > I have seen some suggestions on how to handle @RadioGroup and > @EventListener > here but none of them

Re: Tapestry EventListener doesn't seem to submit form

2007-12-07 Thread caarney
I was playing with this AJAX functionality and I found some strange behaviour. If the component id is not the same as element id, the form is submitted, but the event listener method is not processed. Everything work fine in this case: @EventListener(events="onchange"

Re: Tapestry EventListener doesn't seem to submit form

2007-12-07 Thread caarney
Thanks a lot, it works. Maybe this information should be added to @EventListener documentation (difference between targets and elements parameters). Jessek wrote: > > Using elements="elementId" only targets and listens to dom nodes. > You only get the majority of auto

Re: Tapestry EventListener doesn't seem to submit form

2007-12-06 Thread Jesse Kuhnert
Using elements="elementId" only targets and listens to dom nodes. You only get the majority of automated functionality (like submitting forms) when you target a component via targets = "componentId" Change your example to be: @EventListener(events="onchang

Tapestry EventListener doesn't seem to submit form

2007-12-06 Thread caarney
Hi, I'm using Tapestry 4.1.3 (integrated in Appfuse 2.0.1) and the @EventListener functionality. The eventlistener method is called correctly, but I can't get any user-entered values from the form. As I understood from the documentation, the form should submit itself by default an

@radiogroup and @EventListener

2007-11-30 Thread Henri Dupre
I have seen some suggestions on how to handle @RadioGroup and @EventListener here but none of them works for me. One suggestion is to add a function to any div element document.getElementById('someDiv').clickRadio=function(radio) {}; add a onclick to the @Radio that calls that funct

Re: EventListener and PropertySelection (Solution)

2007-10-27 Thread lt
-0.4.3/src/dom.js and everything is working nicely. Is there any reason why I shouldn't do this? Regards, LT lt wrote: > > Hello, > > Im having some trouble with the EventListener annotation and > PropertySelection component. I am using Tap 4.1.3. Here is the mappings. &

EventListener and PropertySelection

2007-10-26 Thread lt
Hello, Im having some trouble with the EventListener annotation and PropertySelection component. I am using Tap 4.1.3. Here is the mappings. @Component(id="reportTypeSelect", type="PropertySelection", bindings={ "displa

Re: [4.1] EventListener within a component

2007-09-27 Thread Marcelo C. de Freitas
I knew this got to me easy and elegant! Thanks! 2007/9/27, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > You should be ablet to use the component-id with @EventListener's > targets-Parameter. > > sth like: > > @EventListener( targets="textField",

RE: [4.1] EventListener within a component

2007-09-27 Thread Marcus.Schulte
You should be ablet to use the component-id with @EventListener's targets-Parameter. sth like: @EventListener( targets="textField", events="onchange" ) public void doIt(){...} @Component public TextField getTextField() > -Original Message- > From: Marce

[4.1] EventListener within a component

2007-09-26 Thread Marcelo C. de Freitas
Hello there, I have a issue that might be quite simple to solve but I'm completely lost. I have a component, let's call it !EditableCell, that has a TextInput whose id is dynamically created. How can I create an "onchange" EventListener for it in the component'

  1   2   3   4   >