You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by RR <se...@gmail.com> on 2005/01/26 20:31:05 UTC

Listeners defined but missing in enhanced class

I recently sent a post regarding an issue with page properties. Thanks
to the group I now understand the paradigm and have refactored
accordingly.

However, one of my refactored pages now loads without any listeners
associated to it--despite the fact that there are four of them in the
java class. The Listeners collection is empty, I've verified this
through debugging while comparing this page to the (functional)
others. Any attempt to use the listeners/submit the form detaches the
page. I have not yet resolved the problem, has anyone seen this
behavior or have suggestions?

public abstract class  ItemInfo extends BasePage implements
IErrorProperty, PageRenderListener{
...
  public void cancelForm(IRequestCycle cycle){
    ...
    
  }
  
  public void moveToNextTab(IRequestCycle cycle){
    ...
  }
  public void submitParentSearch(IRequestCycle cycle) {
    setPopinActive(Boolean.valueOf("true"));
    doParentSearch();
  }
---
<input jwcid="@Submit" listener="ognl:listeners.cancelForm" label = "
Cancel " class="imsbutton"/>


<input jwcid="@Submit" listener="ognl:listeners.submitParentSearch"
label = " Search "/>
---

Thanks,
-RR-

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


Re: Listeners defined but missing in enhanced class

Posted by RR <se...@gmail.com>.
Problem was resolved by evaluating additional actions executed on the
cycle--page was being detached in the same method as it was being
activated. Which leads to another question: What are some other 
strategies employed for resetting a page's properties (other than
cycle.getPage("pagename").resetValsMethod())?


On Wed, 26 Jan 2005 12:31:05 -0700, RR <se...@gmail.com> wrote:
> I recently sent a post regarding an issue with page properties. Thanks
> to the group I now understand the paradigm and have refactored
> accordingly.
> 
> However, one of my refactored pages now loads without any listeners
> associated to it--despite the fact that there are four of them in the
> java class. The Listeners collection is empty, I've verified this
> through debugging while comparing this page to the (functional)
> others. Any attempt to use the listeners/submit the form detaches the
> page. I have not yet resolved the problem, has anyone seen this
> behavior or have suggestions?
> 
> public abstract class  ItemInfo extends BasePage implements
> IErrorProperty, PageRenderListener{
> ...
>   public void cancelForm(IRequestCycle cycle){
>     ...
> 
>   }
> 
>   public void moveToNextTab(IRequestCycle cycle){
>     ...
>   }
>   public void submitParentSearch(IRequestCycle cycle) {
>     setPopinActive(Boolean.valueOf("true"));
>     doParentSearch();
>   }
> ---
> <input jwcid="@Submit" listener="ognl:listeners.cancelForm" label = "
> Cancel " class="imsbutton"/>
> 
> <input jwcid="@Submit" listener="ognl:listeners.submitParentSearch"
> label = " Search "/>
> ---
> 
> Thanks,
> -RR-
>

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