You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Wojtek Ciesielski <cc...@interia.pl> on 2007/04/03 13:55:32 UTC

Re: Cant get Ajax @EventListener to work :( [+1]

Hi all,

>> I cant get dojo EventListener to work. 

The same happens with me :( Are there any preparatory steps to perform 
to use EventListener? I have a template :

MyTemplate:
<span jwcid="@Shell" title=".:: Title ::."
   doctype='HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN'
   ajaxEnabled="true"
   browserLogLevel="DEBUG"
   debugEnabled="true">
   <body jwcid="@Body" onunload="purge(document)">
    <div jwcid="dp2scripts" />
    <div id="someId" href="#">click here...</div>
    ...
   </body>
</span>

Within MyTemplate.java:
public abstract class MyTemplate extends BaseComponent {
   private final static Logger log = Logger.getLogger(DP2Template.class);
   @EventListener(elements = "someId", events = "onmouseover")
   public void testEvent(PageEvent pe) {
     log.info("Caught click!");
   }
}

And it DOES NOT WORK :( Nothing appears on Tomcat's console...

Any advice would be greatly appreciated...
Wojtek

----------------------------------------------------------------------
On wie jak zyskać, a nie stracić.
Wideofelietony Tadeusza Mosza. Zobacz >> http://link.interia.pl/f1a3c


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


Re: It's working now - but HOW does it work? ;-)

Posted by Sam Gendler <sg...@ideasculptor.com>.
I've run into this problem on some heavyweight pages using Tap 4.0 and
Tacos 4.0.  I basically had to modify all my pages so that models are
initialized only on access.  If I need a model to reinitialize after
the rewind cycle, I set it back to null during a listener method.  In
Tap4.0 + tacos, even that wasn't really enough to get me any
efficiency gains, since the whole page must still rewind, so all the
models were firing, anyway.  At best, I was sparing myself the
re-initialization of any models that were updated for the render
cycle.  I solved this by introducing some infrastructure to my pages
such that a model is able to check whether it is needed for render,
rewind, both, or neither during ajax (dynamic) updates. I just
initialize a dictionary in the .page file or via the InitialValue
annotation which specifies which models have which update modes.  The
advantage of this is that I can serve up empty models during the
render phase, even if I needed the correct model during rewind, so
that Tap doesn't waste a bunch of cycles spewing lots of options to a
null writer.

It was a pretty simple refactoring of my code, but it required lots of
typing, since I moved from using astract model getters and setters
with an initializer in pageBeginRender calling the set method, to
having fully specified getters and setters that check if the stored
value is null before creating a new model, but only if is not an ajax
update or the model is specified as being needed for the current
cycle.  Modifying existing pages was a pain in the neck, but working
with new pages is very simple.  It is yet another declarative thing
that isn't checked at compile time, though, although I'm sure if I
thought about it, I could concoct a way to fix that. Doesn't seem
worth the effort, though, since most of my models are now initialized
in a base page class, since any page which don't use a particular
model don't suffer the initalization hit, anyway.

--sam


On 4/3/07, Jesse Kuhnert <jk...@gmail.com> wrote:
> You can call IRequestCycle.getResponseBuilder().isDynamic() to see if
> it's a dynamic request and skip any heavy operations you don't need to
> perform.
>
> On 4/3/07, Wojtek Ciesielski <cc...@interia.pl> wrote:
> > Jesse Kuhnert wrote:
> > > I don't think "onClick" will be a valid js event name to listen to. In
> > > this instance it has to be "onclick" .
> >
> > Thanks, it could be a reason (I was changing several things at once
> > trying to fix it so I'm only 90% sure that that's it ;-)).
> >
> > And I've noticed that even when @EventListener is added to one component
> > of a page when it's clicked the whole "rendering" is taking place. By
> > rendering I mean that pageBeginRender() method of the enclosing page is
> > being called. As an effect - whole logic responsible for pulling data
> > for whole page from underlying DB is being called...
> >
> > So questions are:
> > 1. Is there ANY place where behaviour of @EventListener (lifecycle of
> > involved components) is described?
> > 2. It seems like a bad optimization if logic for whole page and its
> > component tree is being called, when I just want to update one widget on
> > the page... How can I optimize it?
> >
> > TIA,
> > Wojtek
> >
> > ----------------------------------------------------------------------
> > Masz plan? Potrzebujesz motywacji ?
> > wejdz na >>> http://link.interia.pl/f1a40
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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


Re: It's working now - but HOW does it work? ;-)

Posted by Jesse Kuhnert <jk...@gmail.com>.
You can call IRequestCycle.getResponseBuilder().isDynamic() to see if
it's a dynamic request and skip any heavy operations you don't need to
perform.

On 4/3/07, Wojtek Ciesielski <cc...@interia.pl> wrote:
> Jesse Kuhnert wrote:
> > I don't think "onClick" will be a valid js event name to listen to. In
> > this instance it has to be "onclick" .
>
> Thanks, it could be a reason (I was changing several things at once
> trying to fix it so I'm only 90% sure that that's it ;-)).
>
> And I've noticed that even when @EventListener is added to one component
> of a page when it's clicked the whole "rendering" is taking place. By
> rendering I mean that pageBeginRender() method of the enclosing page is
> being called. As an effect - whole logic responsible for pulling data
> for whole page from underlying DB is being called...
>
> So questions are:
> 1. Is there ANY place where behaviour of @EventListener (lifecycle of
> involved components) is described?
> 2. It seems like a bad optimization if logic for whole page and its
> component tree is being called, when I just want to update one widget on
> the page... How can I optimize it?
>
> TIA,
> Wojtek
>
> ----------------------------------------------------------------------
> Masz plan? Potrzebujesz motywacji ?
> wejdz na >>> http://link.interia.pl/f1a40
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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


It's working now - but HOW does it work? ;-)

Posted by Wojtek Ciesielski <cc...@interia.pl>.
Jesse Kuhnert wrote:
> I don't think "onClick" will be a valid js event name to listen to. In
> this instance it has to be "onclick" .

Thanks, it could be a reason (I was changing several things at once 
trying to fix it so I'm only 90% sure that that's it ;-)).

And I've noticed that even when @EventListener is added to one component 
of a page when it's clicked the whole "rendering" is taking place. By 
rendering I mean that pageBeginRender() method of the enclosing page is 
being called. As an effect - whole logic responsible for pulling data 
for whole page from underlying DB is being called...

So questions are:
1. Is there ANY place where behaviour of @EventListener (lifecycle of 
involved components) is described?
2. It seems like a bad optimization if logic for whole page and its 
component tree is being called, when I just want to update one widget on 
the page... How can I optimize it?

TIA,
Wojtek

----------------------------------------------------------------------
Masz plan? Potrzebujesz motywacji ?
wejdz na >>> http://link.interia.pl/f1a40


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


Re: Cant get Ajax @EventListener to work :( [+1]

Posted by Jesse Kuhnert <jk...@gmail.com>.
I don't think "onClick" will be a valid js event name to listen to. In
this instance it has to be "onclick" .

On 4/3/07, Wojtek Ciesielski <cc...@interia.pl> wrote:
> I've made it ultra-simple...:
>
> SimplePage.java: ===========
>
> public abstract class SimplePage extends BasePage {
>    private static final Logger log = Logger.getLogger(SimplePage.class);
>    @EventListener(elements = "someId", events="onClick", async=true)
>    public void testEvent() {
>      log.info("Caught click!");
>      System.out.println("Brute force msg...");
>    }
> }
>
> SimplePage.page: ===========
>
> <?xml version="1.0"?>
> <!DOCTYPE page-specification PUBLIC
> "-//Apache Software Foundation//Tapestry Specification 4.1//EN"
> "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_1.dtd">
> <page-specification class="com.garlik.datapatrol2.pages.SimplePage">
> </page-specification>
>
>
> And MyApp.application: ====
>
> <?xml version="1.0"?>
> <!DOCTYPE application PUBLIC
> "-//Apache Software Foundation//Tapestry Specification 4.1//EN"
> "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_1.dtd">
> <application>
>    <meta key="org.apache.tapestry.page-class-packages"
> value="com.garlik.datapatarol2.pages"/>
>    <page specification-path="pages/SimplePage.page" name="SimplePage"/>
> </application>
>
> And it's NOT workin :( (Some DOJO features are running 'cause I'm
> getting msg about lack of BACK support when opening page in Opera).
>
> Wojtek
>
> ----------------------------------------------------------------------
> Najlepiej wytresowany pies swiata >>>
> Zobacz >>> http://link.interia.pl/f1a34
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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


Re: Cant get Ajax @EventListener to work :( [+1]

Posted by Wojtek Ciesielski <cc...@interia.pl>.
I've made it ultra-simple...:

SimplePage.java: ===========

public abstract class SimplePage extends BasePage {
   private static final Logger log = Logger.getLogger(SimplePage.class);
   @EventListener(elements = "someId", events="onClick", async=true)
   public void testEvent() {
     log.info("Caught click!");
     System.out.println("Brute force msg...");
   }
}

SimplePage.page: ===========

<?xml version="1.0"?>
<!DOCTYPE page-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 4.1//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_1.dtd">
<page-specification class="com.garlik.datapatrol2.pages.SimplePage">
</page-specification>


And MyApp.application: ====

<?xml version="1.0"?>
<!DOCTYPE application PUBLIC
"-//Apache Software Foundation//Tapestry Specification 4.1//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_1.dtd">
<application>
   <meta key="org.apache.tapestry.page-class-packages" 
value="com.garlik.datapatarol2.pages"/>
   <page specification-path="pages/SimplePage.page" name="SimplePage"/>
</application>

And it's NOT workin :( (Some DOJO features are running 'cause I'm 
getting msg about lack of BACK support when opening page in Opera).

Wojtek

----------------------------------------------------------------------
Najlepiej wytresowany pies swiata >>>
Zobacz >>> http://link.interia.pl/f1a34


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


Re: Cant get Ajax @EventListener to work :( [+1]

Posted by Wojtek Ciesielski <cc...@interia.pl>.
Jesse Kuhnert wrote:
> Offhand I'd say the PageEvent object looks suspicious. It supports a
> BrowserEvent object but might just pass your method by if it sees a
> parameter it doesn't know about.

My experiments with a method with no arguments are also failing...

@EventListener(elements = "someId", events="onClick", async=true)
   public void testEvent() {
     log.info("Caught click!");
     System.out.println("Brute force msg...");
   }

:(

> 
> On 4/3/07, Wojtek Ciesielski <cc...@interia.pl> wrote:
>> Hi all,
>>
>> >> I cant get dojo EventListener to work.
>>
>> The same happens with me :( Are there any preparatory steps to perform
>> to use EventListener? I have a template :
>>
>> MyTemplate:
>> <span jwcid="@Shell" title=".:: Title ::."
>>    doctype='HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN'
>>    ajaxEnabled="true"
>>    browserLogLevel="DEBUG"
>>    debugEnabled="true">
>>    <body jwcid="@Body" onunload="purge(document)">
>>     <div jwcid="dp2scripts" />
>>     <div id="someId" href="#">click here...</div>
>>     ...
>>    </body>
>> </span>
>>
>> Within MyTemplate.java:
>> public abstract class MyTemplate extends BaseComponent {
>>    private final static Logger log = Logger.getLogger(DP2Template.class);
>>    @EventListener(elements = "someId", events = "onmouseover")
>>    public void testEvent(PageEvent pe) {
>>      log.info("Caught click!");
>>    }
>> }
>>
>> And it DOES NOT WORK :( Nothing appears on Tomcat's console...
>>
>> Any advice would be greatly appreciated...
>> Wojtek
>>
>> ----------------------------------------------------------------------
>> On wie jak zyskać, a nie stracić.
>> Wideofelietony Tadeusza Mosza. Zobacz >> http://link.interia.pl/f1a3c
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
> 
> 


----------------------------------------------------------------------
Wideofelietony Tadeusza Mosza.
O biznesie dla wszystkich. Oglądaj >> http://link.interia.pl/f1a3c


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


Re: Cant get Ajax @EventListener to work :( [+1]

Posted by Jesse Kuhnert <jk...@gmail.com>.
Yeah you should see something along the lines of :

dojo.event.connect(dojo.byId("someId"), ... .....

towards the bottom of your page.

You might also try using Tapestry 4.1.2 instead of 4.1.1. They should
both work equally well but I can't remember if 4.1.1 had any issues in
this area or not.

On 4/3/07, Wojtek Ciesielski <cc...@interia.pl> wrote:
> Jesse Kuhnert wrote:
> > Offhand I'd say the PageEvent object looks suspicious. It supports a
> > BrowserEvent object but might just pass your method by if it sees a
> > parameter it doesn't know about.
>
>
> What effects in the rendered page source should such annotation cause?
> Currently I'm not seeing anything special added to my page source...
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN>
> <!-- Application: null -->
> <!-- Page: CompaniesTab -->
> <!-- Generated: Tue Apr 03 14:33:47 CEST 2007 -->
> <html>
> <head>
> <meta name="generator" content="Tapestry Application Framework, version
> 4.1.1" />
> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
> <title>.:: MyApp 2.0 ::.</title>
> <script type="text/javascript">djConfig =
> {"isDebug":true,"debugContainerId":"debug","baseRelativePath":"/dp2/app?service=asset&path=%2Fdojo%2F","preventBackButtonFix":false,"parseWidgets":false,"locale":"en-us"}
> </script>
>
>   <script type="text/javascript"
> src="/dp2/app?service=asset&path=%2Fdojo%2Fdojo.js"></script>
>
> <script type="text/javascript">
> dojo.registerModulePath("tapestry",
> "/dp2/app?service=asset&path=%2Ftapestry%2F");
> </script>
> <script type="text/javascript"
> src="/dp2/app?service=asset&path=%2Ftapestry%2Fcore.js"></script>
> <script type="text/javascript">
> dojo.require("dojo.logging.Logger");
> dojo.log.setLevel(dojo.log.getLevel("DEBUG"));
> dojo.require("tapestry.namespace");
> </script>
> <link rel="stylesheet" type="text/css" href="/dp2/css/MyApp2.css" />
> </head>
>
> <body onunload="purge(document)" id="Body">
> <script type="text/javascript"><!--
> function toggleOk(divEl) {
>        var button = divEl.getElementsByTagName("a").item(0);
>        button.className = button.className == 'okOff' ? 'okOn' : 'okOff';
>      }
>      function purge(d) {
>        var a = d.attributes, i, l, n;
>        if (a) {
>          l = a.length;
>          for (i = 0; i < l; i += 1) {
>              n = a[i].name;
>              if (typeof d[n] === 'function') {
>                  d[n] = null;
>              }
>          }
>        }
>        a = d.childNodes;
>        if (a) {
>          l = a.length;
>          for (i = 0; i < l; i += 1) {
>              purge(d.childNodes[i]);
>          }
>        }
>      }
> // --></script>
>
>     <div id="someId" href="#">click here...</div>
> ....
>
> </body></html>
>
> ----------------------------------------------------------------------
> Plan to połowa sukcesu.
> Sprawdz na >>> http://link.interia.pl/f1a41
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Re: Cant get Ajax @EventListener to work :( [+1]

Posted by Wojtek Ciesielski <cc...@interia.pl>.
Jesse Kuhnert wrote:
> Offhand I'd say the PageEvent object looks suspicious. It supports a
> BrowserEvent object but might just pass your method by if it sees a
> parameter it doesn't know about.


What effects in the rendered page source should such annotation cause? 
Currently I'm not seeing anything special added to my page source...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN>
<!-- Application: null -->
<!-- Page: CompaniesTab -->
<!-- Generated: Tue Apr 03 14:33:47 CEST 2007 -->
<html>
<head>
<meta name="generator" content="Tapestry Application Framework, version 
4.1.1" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>.:: MyApp 2.0 ::.</title>
<script type="text/javascript">djConfig = 
{"isDebug":true,"debugContainerId":"debug","baseRelativePath":"/dp2/app?service=asset&path=%2Fdojo%2F","preventBackButtonFix":false,"parseWidgets":false,"locale":"en-us"} 
</script>

  <script type="text/javascript" 
src="/dp2/app?service=asset&path=%2Fdojo%2Fdojo.js"></script>

<script type="text/javascript">
dojo.registerModulePath("tapestry", 
"/dp2/app?service=asset&path=%2Ftapestry%2F");
</script>
<script type="text/javascript" 
src="/dp2/app?service=asset&path=%2Ftapestry%2Fcore.js"></script>
<script type="text/javascript">
dojo.require("dojo.logging.Logger");
dojo.log.setLevel(dojo.log.getLevel("DEBUG"));
dojo.require("tapestry.namespace");
</script>
<link rel="stylesheet" type="text/css" href="/dp2/css/MyApp2.css" />
</head>

<body onunload="purge(document)" id="Body">
<script type="text/javascript"><!--
function toggleOk(divEl) {
       var button = divEl.getElementsByTagName("a").item(0);
       button.className = button.className == 'okOff' ? 'okOn' : 'okOff';
     }
     function purge(d) {
       var a = d.attributes, i, l, n;
       if (a) {
         l = a.length;
         for (i = 0; i < l; i += 1) {
             n = a[i].name;
             if (typeof d[n] === 'function') {
                 d[n] = null;
             }
         }
       }
       a = d.childNodes;
       if (a) {
         l = a.length;
         for (i = 0; i < l; i += 1) {
             purge(d.childNodes[i]);
         }
       }
     }
// --></script>

    <div id="someId" href="#">click here...</div>
....

</body></html>

----------------------------------------------------------------------
Plan to połowa sukcesu.
Sprawdz na >>> http://link.interia.pl/f1a41


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


Re: Cant get Ajax @EventListener to work :( [+1]

Posted by Jesse Kuhnert <jk...@gmail.com>.
Offhand I'd say the PageEvent object looks suspicious. It supports a
BrowserEvent object but might just pass your method by if it sees a
parameter it doesn't know about.

On 4/3/07, Wojtek Ciesielski <cc...@interia.pl> wrote:
> Hi all,
>
> >> I cant get dojo EventListener to work.
>
> The same happens with me :( Are there any preparatory steps to perform
> to use EventListener? I have a template :
>
> MyTemplate:
> <span jwcid="@Shell" title=".:: Title ::."
>    doctype='HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN'
>    ajaxEnabled="true"
>    browserLogLevel="DEBUG"
>    debugEnabled="true">
>    <body jwcid="@Body" onunload="purge(document)">
>     <div jwcid="dp2scripts" />
>     <div id="someId" href="#">click here...</div>
>     ...
>    </body>
> </span>
>
> Within MyTemplate.java:
> public abstract class MyTemplate extends BaseComponent {
>    private final static Logger log = Logger.getLogger(DP2Template.class);
>    @EventListener(elements = "someId", events = "onmouseover")
>    public void testEvent(PageEvent pe) {
>      log.info("Caught click!");
>    }
> }
>
> And it DOES NOT WORK :( Nothing appears on Tomcat's console...
>
> Any advice would be greatly appreciated...
> Wojtek
>
> ----------------------------------------------------------------------
> On wie jak zyskać, a nie stracić.
> Wideofelietony Tadeusza Mosza. Zobacz >> http://link.interia.pl/f1a3c
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Re: Cant get Ajax @EventListener to work :( [+1]

Posted by Borut Bolčina <bo...@najdi.si>.
Sorry, I was in a bad mood this morning.

Just now I tried again with 4.1.2 to see if OGNL-16 is still the problem 
and guess what - it isn't. I will continue with 4.1.2-SNAPSHOT.

Thanks for all the hard work Jesse!

Best,
Borut

Jesse Kuhnert wrote:
> I'm not sure that's how it normally works. It is resolved / fixed , 
> just not in 4.1.1. I couldn't even resolve it in 4.1.1 if I wanted to, 
> because 4.1.2 is the only next incremental version number available. 
> What were you expecting me to do ?
>
> On 4/4/07, *Borut Bolčina* <bob@najdi.si <ma...@najdi.si>> wrote:
>
>     Is T 4.1.1 deprecated? The bug reported was for 4.1.1, not for
>     4.1.2-SNAPSHOT. The status should then be: Will not resolve.
>
>     Cheers,
>     Borut
>
>
>     On 3.4.2007 22:59, Jesse Kuhnert wrote:
>>     Resolved as not valid. :)
>>
>>     Just so everyone else is clear, elements && component event
>>     listeners
>>     work equally well in components as they do pages.
>>
>>     On 4/3/07, Borut Bolčina <bo...@najdi.si> <ma...@najdi.si> wrote:
>>>     Filed under
>>>     https://issues.apache.org/jira/browse/TAPESTRY-1398
>>>
>>>
>>>     Jesse Kuhnert wrote:
>>>     > Ah .....It could be that element event listeners don't work in
>>>     > components, but component event listeners will work.
>>>     >
>>>     > Did anyone file a bug for that?
>>>     >
>>>     > On 4/3/07, Borut Bolčina <bo...@najdi.si> <ma...@najdi.si>
>>>     wrote:
>>>     >> Hello,
>>>     >>
>>>     >> event listeners aren't called in components, only in pages. I
>>>     had the
>>>     >> same problem and then moved the listener to enclosing page. See
>>>     >> "@EventListener in Border" post.
>>>     >>
>>>     >> -Borut
>>>     >>
>>>     >> On 3.4.2007 13:55, Wojtek Ciesielski wrote:
>>>     >> > Hi all,
>>>     >> >
>>>     >> >>> I cant get dojo EventListener to work.
>>>     >> >
>>>     >> > The same happens with me :( Are there any preparatory steps
>>>     to perform
>>>     >> > to use EventListener? I have a template :
>>>     >> >
>>>     >> > MyTemplate:
>>>     >> > <span jwcid="@Shell" title=".:: Title ::."
>>>     >> >   doctype='HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN'
>>>     >> >   ajaxEnabled="true"
>>>     >> >   browserLogLevel="DEBUG"
>>>     >> >   debugEnabled="true">
>>>     >> >   <body jwcid="@Body" onunload="purge(document)">
>>>     >> >    <div jwcid="dp2scripts" />
>>>     >> >    <div id="someId" href="#">click here...</div>
>>>     >> >    ...
>>>     >> >   </body>
>>>     >> > </span>
>>>     >> >
>>>     >> > Within MyTemplate.java:
>>>     >> > public abstract class MyTemplate extends BaseComponent {
>>>     >> >   private final static Logger log =
>>>     >> Logger.getLogger(DP2Template.class);
>>>     >> >   @EventListener(elements = "someId", events = "onmouseover")
>>>     >> >   public void testEvent(PageEvent pe) {
>>>     >> >     log.info("Caught click!");
>>>     >> >   }
>>>     >> > }
>>>     >> >
>>>     >> > And it DOES NOT WORK :( Nothing appears on Tomcat's console...
>>>     >> >
>>>     >> > Any advice would be greatly appreciated...
>>>     >> > Wojtek
>>>     >> >
>>>     >> >
>>>     ----------------------------------------------------------------------
>>>
>>>     >> > On wie jak zyskać, a nie stracić.
>>>     >> > Wideofelietony Tadeusza Mosza. Zobacz >>
>>>     http://link.interia.pl/f1a3c
>>>     >> >
>>>     >> >
>>>     >> >
>>>     ---------------------------------------------------------------------
>>>
>>>     >> > To unsubscribe, e-mail:
>>>     users-unsubscribe@tapestry.apache.org
>>>     <ma...@tapestry.apache.org>
>>>     >> > For additional commands, e-mail:
>>>     users-help@tapestry.apache.org
>>>     <ma...@tapestry.apache.org>
>>>     >> >
>>>     >>
>>>     >>
>>>     >>
>>>     ---------------------------------------------------------------------
>>>
>>>     >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>     <ma...@tapestry.apache.org>
>>>     >> For additional commands, e-mail:
>>>     users-help@tapestry.apache.org
>>>     <ma...@tapestry.apache.org>
>>>     >>
>>>     >>
>>>     >
>>>     >
>>>
>>>
>>>     ---------------------------------------------------------------------
>>>
>>>     To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>     <ma...@tapestry.apache.org>
>>>     For additional commands, e-mail: users-help@tapestry.apache.org
>>>     <ma...@tapestry.apache.org>
>>>
>>>
>>
>>
>
>     -- 
>     bbLOG <http://borutb.tuditi.delo.si/>
>
>
>
>
> -- 
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around 
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com 


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


Re: Cant get Ajax @EventListener to work :( [+1]

Posted by Jesse Kuhnert <jk...@gmail.com>.
I'm not sure that's how it normally works. It is resolved / fixed , just not
in 4.1.1. I couldn't even resolve it in 4.1.1 if I wanted to, because
4.1.2is the only next incremental version number available. What were
you
expecting me to do ?

On 4/4/07, Borut Bolčina <bo...@najdi.si> wrote:
>
>  Is T 4.1.1 deprecated? The bug reported was for 4.1.1, not for
> 4.1.2-SNAPSHOT. The status should then be: Will not resolve.
>
> Cheers,
> Borut
>
> On 3.4.2007 22:59, Jesse Kuhnert wrote:
>
> Resolved as not valid. :)
>
> Just so everyone else is clear, elements && component event listeners
> work equally well in components as they do pages.
>
> On 4/3/07, Borut Bolčina <bo...@najdi.si> <bo...@najdi.si> wrote:
>
> Filed under
> https://issues.apache.org/jira/browse/TAPESTRY-1398
>
>
> Jesse Kuhnert wrote:
> > Ah .....It could be that element event listeners don't work in
> > components, but component event listeners will work.
> >
> > Did anyone file a bug for that?
> >
> > On 4/3/07, Borut Bolčina <bo...@najdi.si> <bo...@najdi.si> wrote:
> >> Hello,
> >>
> >> event listeners aren't called in components, only in pages. I had the
> >> same problem and then moved the listener to enclosing page. See
> >> "@EventListener in Border" post.
> >>
> >> -Borut
> >>
> >> On 3.4.2007 13:55, Wojtek Ciesielski wrote:
> >> > Hi all,
> >> >
> >> >>> I cant get dojo EventListener to work.
> >> >
> >> > The same happens with me :( Are there any preparatory steps to
> perform
> >> > to use EventListener? I have a template :
> >> >
> >> > MyTemplate:
> >> > <span jwcid="@Shell" title=".:: Title ::."
> >> >   doctype='HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN'
> >> >   ajaxEnabled="true"
> >> >   browserLogLevel="DEBUG"
> >> >   debugEnabled="true">
> >> >   <body jwcid="@Body" onunload="purge(document)">
> >> >    <div jwcid="dp2scripts" />
> >> >    <div id="someId" href="#">click here...</div>
> >> >    ...
> >> >   </body>
> >> > </span>
> >> >
> >> > Within MyTemplate.java:
> >> > public abstract class MyTemplate extends BaseComponent {
> >> >   private final static Logger log =
> >> Logger.getLogger(DP2Template.class);
> >> >   @EventListener(elements = "someId", events = "onmouseover")
> >> >   public void testEvent(PageEvent pe) {
> >> >     log.info("Caught click!");
> >> >   }
> >> > }
> >> >
> >> > And it DOES NOT WORK :( Nothing appears on Tomcat's console...
> >> >
> >> > Any advice would be greatly appreciated...
> >> > Wojtek
> >> >
> >> >
> ----------------------------------------------------------------------
> >> > On wie jak zyskać, a nie stracić.
> >> > Wideofelietony Tadeusza Mosza. Zobacz >> http://link.interia.pl/f1a3c
> >> >
> >> >
> >> > ---------------------------------------------------------------------
>
> >> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> > For additional commands, e-mail: users-help@tapestry.apache.org
> >> >
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
>
>
> --
> [image: bbLOG] <http://borutb.tuditi.delo.si/>
>



-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Re: Cant get Ajax @EventListener to work :( [+1]

Posted by Borut Bolčina <bo...@najdi.si>.
Is T 4.1.1 deprecated? The bug reported was for 4.1.1, not for 
4.1.2-SNAPSHOT. The status should then be: Will not resolve.

Cheers,
Borut

On 3.4.2007 22:59, Jesse Kuhnert wrote:
> Resolved as not valid. :)
>
> Just so everyone else is clear, elements && component event listeners
> work equally well in components as they do pages.
>
> On 4/3/07, Borut Bolčina <bo...@najdi.si> wrote:
>> Filed under
>> https://issues.apache.org/jira/browse/TAPESTRY-1398
>>
>>
>> Jesse Kuhnert wrote:
>> > Ah .....It could be that element event listeners don't work in
>> > components, but component event listeners will work.
>> >
>> > Did anyone file a bug for that?
>> >
>> > On 4/3/07, Borut Bolčina <bo...@najdi.si> wrote:
>> >> Hello,
>> >>
>> >> event listeners aren't called in components, only in pages. I had the
>> >> same problem and then moved the listener to enclosing page. See
>> >> "@EventListener in Border" post.
>> >>
>> >> -Borut
>> >>
>> >> On 3.4.2007 13:55, Wojtek Ciesielski wrote:
>> >> > Hi all,
>> >> >
>> >> >>> I cant get dojo EventListener to work.
>> >> >
>> >> > The same happens with me :( Are there any preparatory steps to 
>> perform
>> >> > to use EventListener? I have a template :
>> >> >
>> >> > MyTemplate:
>> >> > <span jwcid="@Shell" title=".:: Title ::."
>> >> >   doctype='HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN'
>> >> >   ajaxEnabled="true"
>> >> >   browserLogLevel="DEBUG"
>> >> >   debugEnabled="true">
>> >> >   <body jwcid="@Body" onunload="purge(document)">
>> >> >    <div jwcid="dp2scripts" />
>> >> >    <div id="someId" href="#">click here...</div>
>> >> >    ...
>> >> >   </body>
>> >> > </span>
>> >> >
>> >> > Within MyTemplate.java:
>> >> > public abstract class MyTemplate extends BaseComponent {
>> >> >   private final static Logger log =
>> >> Logger.getLogger(DP2Template.class);
>> >> >   @EventListener(elements = "someId", events = "onmouseover")
>> >> >   public void testEvent(PageEvent pe) {
>> >> >     log.info("Caught click!");
>> >> >   }
>> >> > }
>> >> >
>> >> > And it DOES NOT WORK :( Nothing appears on Tomcat's console...
>> >> >
>> >> > Any advice would be greatly appreciated...
>> >> > Wojtek
>> >> >
>> >> > 
>> ----------------------------------------------------------------------
>> >> > On wie jak zyskać, a nie stracić.
>> >> > Wideofelietony Tadeusza Mosza. Zobacz >> 
>> http://link.interia.pl/f1a3c
>> >> >
>> >> >
>> >> > 
>> ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> >> > For additional commands, e-mail: users-help@tapestry.apache.org
>> >> >
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> >> For additional commands, e-mail: users-help@tapestry.apache.org
>> >>
>> >>
>> >
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>

-- 
bbLOG <http://borutb.tuditi.delo.si/>

Re: Cant get Ajax @EventListener to work :( [+1]

Posted by Jesse Kuhnert <jk...@gmail.com>.
Resolved as not valid. :)

Just so everyone else is clear, elements && component event listeners
work equally well in components as they do pages.

On 4/3/07, Borut Bolčina <bo...@najdi.si> wrote:
> Filed under
> https://issues.apache.org/jira/browse/TAPESTRY-1398
>
>
> Jesse Kuhnert wrote:
> > Ah .....It could be that element event listeners don't work in
> > components, but component event listeners will work.
> >
> > Did anyone file a bug for that?
> >
> > On 4/3/07, Borut Bolčina <bo...@najdi.si> wrote:
> >> Hello,
> >>
> >> event listeners aren't called in components, only in pages. I had the
> >> same problem and then moved the listener to enclosing page. See
> >> "@EventListener in Border" post.
> >>
> >> -Borut
> >>
> >> On 3.4.2007 13:55, Wojtek Ciesielski wrote:
> >> > Hi all,
> >> >
> >> >>> I cant get dojo EventListener to work.
> >> >
> >> > The same happens with me :( Are there any preparatory steps to perform
> >> > to use EventListener? I have a template :
> >> >
> >> > MyTemplate:
> >> > <span jwcid="@Shell" title=".:: Title ::."
> >> >   doctype='HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN'
> >> >   ajaxEnabled="true"
> >> >   browserLogLevel="DEBUG"
> >> >   debugEnabled="true">
> >> >   <body jwcid="@Body" onunload="purge(document)">
> >> >    <div jwcid="dp2scripts" />
> >> >    <div id="someId" href="#">click here...</div>
> >> >    ...
> >> >   </body>
> >> > </span>
> >> >
> >> > Within MyTemplate.java:
> >> > public abstract class MyTemplate extends BaseComponent {
> >> >   private final static Logger log =
> >> Logger.getLogger(DP2Template.class);
> >> >   @EventListener(elements = "someId", events = "onmouseover")
> >> >   public void testEvent(PageEvent pe) {
> >> >     log.info("Caught click!");
> >> >   }
> >> > }
> >> >
> >> > And it DOES NOT WORK :( Nothing appears on Tomcat's console...
> >> >
> >> > Any advice would be greatly appreciated...
> >> > Wojtek
> >> >
> >> > ----------------------------------------------------------------------
> >> > On wie jak zyskać, a nie stracić.
> >> > Wideofelietony Tadeusza Mosza. Zobacz >> http://link.interia.pl/f1a3c
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> > For additional commands, e-mail: users-help@tapestry.apache.org
> >> >
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Re: Cant get Ajax @EventListener to work :( [+1]

Posted by Borut Bolčina <bo...@najdi.si>.
Filed under
https://issues.apache.org/jira/browse/TAPESTRY-1398


Jesse Kuhnert wrote:
> Ah .....It could be that element event listeners don't work in
> components, but component event listeners will work.
>
> Did anyone file a bug for that?
>
> On 4/3/07, Borut Bolčina <bo...@najdi.si> wrote:
>> Hello,
>>
>> event listeners aren't called in components, only in pages. I had the
>> same problem and then moved the listener to enclosing page. See
>> "@EventListener in Border" post.
>>
>> -Borut
>>
>> On 3.4.2007 13:55, Wojtek Ciesielski wrote:
>> > Hi all,
>> >
>> >>> I cant get dojo EventListener to work.
>> >
>> > The same happens with me :( Are there any preparatory steps to perform
>> > to use EventListener? I have a template :
>> >
>> > MyTemplate:
>> > <span jwcid="@Shell" title=".:: Title ::."
>> >   doctype='HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN'
>> >   ajaxEnabled="true"
>> >   browserLogLevel="DEBUG"
>> >   debugEnabled="true">
>> >   <body jwcid="@Body" onunload="purge(document)">
>> >    <div jwcid="dp2scripts" />
>> >    <div id="someId" href="#">click here...</div>
>> >    ...
>> >   </body>
>> > </span>
>> >
>> > Within MyTemplate.java:
>> > public abstract class MyTemplate extends BaseComponent {
>> >   private final static Logger log = 
>> Logger.getLogger(DP2Template.class);
>> >   @EventListener(elements = "someId", events = "onmouseover")
>> >   public void testEvent(PageEvent pe) {
>> >     log.info("Caught click!");
>> >   }
>> > }
>> >
>> > And it DOES NOT WORK :( Nothing appears on Tomcat's console...
>> >
>> > Any advice would be greatly appreciated...
>> > Wojtek
>> >
>> > ----------------------------------------------------------------------
>> > On wie jak zyskać, a nie stracić.
>> > Wideofelietony Tadeusza Mosza. Zobacz >> http://link.interia.pl/f1a3c
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> > For additional commands, e-mail: users-help@tapestry.apache.org
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>


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


Re: Cant get Ajax @EventListener to work :( [+1]

Posted by Jesse Kuhnert <jk...@gmail.com>.
Ah .....It could be that element event listeners don't work in
components, but component event listeners will work.

Did anyone file a bug for that?

On 4/3/07, Borut Bolčina <bo...@najdi.si> wrote:
> Hello,
>
> event listeners aren't called in components, only in pages. I had the
> same problem and then moved the listener to enclosing page. See
> "@EventListener in Border" post.
>
> -Borut
>
> On 3.4.2007 13:55, Wojtek Ciesielski wrote:
> > Hi all,
> >
> >>> I cant get dojo EventListener to work.
> >
> > The same happens with me :( Are there any preparatory steps to perform
> > to use EventListener? I have a template :
> >
> > MyTemplate:
> > <span jwcid="@Shell" title=".:: Title ::."
> >   doctype='HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN'
> >   ajaxEnabled="true"
> >   browserLogLevel="DEBUG"
> >   debugEnabled="true">
> >   <body jwcid="@Body" onunload="purge(document)">
> >    <div jwcid="dp2scripts" />
> >    <div id="someId" href="#">click here...</div>
> >    ...
> >   </body>
> > </span>
> >
> > Within MyTemplate.java:
> > public abstract class MyTemplate extends BaseComponent {
> >   private final static Logger log = Logger.getLogger(DP2Template.class);
> >   @EventListener(elements = "someId", events = "onmouseover")
> >   public void testEvent(PageEvent pe) {
> >     log.info("Caught click!");
> >   }
> > }
> >
> > And it DOES NOT WORK :( Nothing appears on Tomcat's console...
> >
> > Any advice would be greatly appreciated...
> > Wojtek
> >
> > ----------------------------------------------------------------------
> > On wie jak zyskać, a nie stracić.
> > Wideofelietony Tadeusza Mosza. Zobacz >> http://link.interia.pl/f1a3c
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Re: Cant get Ajax @EventListener to work :( [+1]

Posted by Borut Bolčina <bo...@najdi.si>.
Hello,

event listeners aren't called in components, only in pages. I had the 
same problem and then moved the listener to enclosing page. See 
"@EventListener in Border" post.

-Borut

On 3.4.2007 13:55, Wojtek Ciesielski wrote:
> Hi all,
>
>>> I cant get dojo EventListener to work. 
>
> The same happens with me :( Are there any preparatory steps to perform 
> to use EventListener? I have a template :
>
> MyTemplate:
> <span jwcid="@Shell" title=".:: Title ::."
>   doctype='HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN'
>   ajaxEnabled="true"
>   browserLogLevel="DEBUG"
>   debugEnabled="true">
>   <body jwcid="@Body" onunload="purge(document)">
>    <div jwcid="dp2scripts" />
>    <div id="someId" href="#">click here...</div>
>    ...
>   </body>
> </span>
>
> Within MyTemplate.java:
> public abstract class MyTemplate extends BaseComponent {
>   private final static Logger log = Logger.getLogger(DP2Template.class);
>   @EventListener(elements = "someId", events = "onmouseover")
>   public void testEvent(PageEvent pe) {
>     log.info("Caught click!");
>   }
> }
>
> And it DOES NOT WORK :( Nothing appears on Tomcat's console...
>
> Any advice would be greatly appreciated...
> Wojtek
>
> ----------------------------------------------------------------------
> On wie jak zyskać, a nie stracić.
> Wideofelietony Tadeusza Mosza. Zobacz >> http://link.interia.pl/f1a3c
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>


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