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
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
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.
>
>
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
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
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.
>
> --
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
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
>
>
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
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
>> 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
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
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
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
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
Hello Tapestry List,
In various Tapestry version EventListener works with various bugs
I' have use beanform with code like this:
-
-
java
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
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
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
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
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
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
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
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
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
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
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.
uot;,
"formEvent2604279");
any ideas/
abhilash wrote:
>
> No,still not working
>
>
> Andy Pahne-3 wrote:
>>
>>
>> Try
>>
>>
>>
>> instead of
>>
>>
>>
>>
>>
>>
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
>
>
>
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.
Hi all,
i am using tapestry4.1.5
My eventListener is not getting called.This is my code.
Choose Type
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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...
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
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:
--
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
/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
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
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
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
--
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(
>
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
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
> -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",
>
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
ing like so:
var photoLoader = {
loadPhotos:function(something){
alert("loadPhotos " + something);
}
};
This function is called like this: photoLoader.loadPhotos. My
annotated
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
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
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:
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
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
,
>>
>> 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
/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
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
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
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
- @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
gt;
> Which syntax is valid?
>
> 1. @EventListener(events = { "onChange" },
> targets = { "tableSizeSelect" },
> submitForm = "galleryForm",
> async = true)
>
> 2. @EventListener(events="onchange",
>
Which syntax is valid?
1. @EventListener(events = { "onChange" },
targets = { "tableSizeSelect" },
submitForm = "galleryForm",
async = true)
2. @EventListener(events="onchange",
targets="tableSizeSelect"
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
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 =
>>
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
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
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
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
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
>
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
---
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
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
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
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
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"
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
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
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
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
-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.
&
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
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",
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
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 - 100 of 399 matches
Mail list logo