I got round the problem by modifying the 
org.apache.tapestry.contrib.link.PopupLinkRenderer
method constructURL to return null during rewinding.

 protected String constructURL(ILink link, String
anchor, IRequestCycle cycle)
    {
        // Add this 
        if (cycle.isRewinding()){
                return null;
        }
         
      // rest of the code
     }


I do not think there is any point in returning a
URL during rewinding.

Shing


--- Dan Adams <[EMAIL PROTECTED]> wrote:

> I got the same exception. It happens on page rewind
> for some reason.
> 
> On Tue, 2005-10-25 at 15:29 -0200, Vinicius Carvalho
> wrote:
> > Hello there! I'm trying to use Popuplink and I'm
> getting a nullpointer
> > exception. Here's my component declaration:
> > 
> > <component id="popupLink" type="PageLink">
> > <binding name="page" value="literal:Cadastro"><
> /binding>
> > <binding name="renderer"
> value="bean:meuRenderPopup"/>
> > </component>
> > <bean
>
class="org.apache.tapestry.contrib.link.PopupLinkRenderer"
> > name="meuRenderPopup">
> > <set name="windowName"
> value="literal:recordDetail"></set>
> > </bean>
> > 
> > 
> > The error is caused on this line:
> > PageRenderSupport support = (PageRenderSupport)
> cycle
> >
>
.getAttribute(TapestryUtils.PAGE_RENDER_SUPPORT_ATTRIBUTE);
> > 
> > It is returning null for support.
> > 
> > could someone help me here?
> > 
> > 
> > --
> > Vinicius Caldeira Carvalho
> > Arquiteto de Sistemas
> > [EMAIL PROTECTED]
> > www.synos.com.br <http://www.synos.com.br>
> > 
> > "Everything should be made as simple as possible,
> but not simpler."
> > Albert Einstein
> -- 
> Dan Adams
> Software Engineer
> Interactive Factory
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


Home page :
  http://uk.geocities.com/matmsh/index.html


        
        
                
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to