You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Vinicius Carvalho <ja...@gmail.com> on 2005/10/25 19:29:46 UTC
PopupLink nullpointer exception
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
vinicius.carvalho@synos.com.br
www.synos.com.br <http://www.synos.com.br>
"Everything should be made as simple as possible, but not simpler."
Albert Einstein
Re: PopupLink nullpointer exception
Posted by Vinicius Carvalho <ja...@gmail.com>.
Just tiried on a regular page, same error... :(
On 10/25/05, Vinicius Carvalho <ja...@gmail.com> wrote:
>
> Hum, dunno. I just update the version to alpha-5 and messages went way as
> said on my post. I guess I could try on a page without Ajax. I'll let you
> know
>
> On 10/25/05, Jesse Kuhnert <jk...@gmail.com> wrote:
> >
> > Hmmm...Based on the mentioning of ajax errrors earlier, are you by any
> > chance getting this error when doing an ajax request within a portal
> > environment?
> >
> > jesse
> >
> > On 10/25/05, Vinicius Carvalho < java.vinicius@gmail.com> wrote:
> > >
> > > hum, did you get a solution for it?
> > >
> > > On 10/25/05, Dan Adams <da...@ifactory.com> 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
> > > > > vinicius.carvalho@synos.com.br
> > > > > www.synos.com.br <http://www.synos.com.br> <
> > http://www.synos.com.br> <http://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: tapestry-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > tapestry-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Vinicius Caldeira Carvalho
> > > Arquiteto de Sistemas
> > > vinicius.carvalho@synos.com.br
> > > www.synos.com.br <http://www.synos.com.br> <http://www.synos.com.br> <
> > http://www.synos.com.br>
> > >
> > > "Everything should be made as simple as possible, but not simpler."
> > > Albert Einstein
> > >
> > >
> >
> >
>
>
> --
> Vinicius Caldeira Carvalho
> Arquiteto de Sistemas
> vinicius.carvalho@synos.com.br
> www.synos.com.br <http://www.synos.com.br>
>
> "Everything should be made as simple as possible, but not simpler."
> Albert Einstein
>
--
Vinicius Caldeira Carvalho
Arquiteto de Sistemas
vinicius.carvalho@synos.com.br
www.synos.com.br <http://www.synos.com.br>
"Everything should be made as simple as possible, but not simpler."
Albert Einstein
Re: PopupLink nullpointer exception
Posted by Vinicius Carvalho <ja...@gmail.com>.
Hum, dunno. I just update the version to alpha-5 and messages went way as
said on my post. I guess I could try on a page without Ajax. I'll let you
know
On 10/25/05, Jesse Kuhnert <jk...@gmail.com> wrote:
>
> Hmmm...Based on the mentioning of ajax errrors earlier, are you by any
> chance getting this error when doing an ajax request within a portal
> environment?
>
> jesse
>
> On 10/25/05, Vinicius Carvalho <ja...@gmail.com> wrote:
> >
> > hum, did you get a solution for it?
> >
> > On 10/25/05, Dan Adams <da...@ifactory.com> 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
> > > > vinicius.carvalho@synos.com.br
> > > > www.synos.com.br <http://www.synos.com.br> <http://www.synos.com.br>
> <http://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: tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> > --
> > Vinicius Caldeira Carvalho
> > Arquiteto de Sistemas
> > vinicius.carvalho@synos.com.br
> > www.synos.com.br <http://www.synos.com.br> <http://www.synos.com.br> <
> http://www.synos.com.br>
> >
> > "Everything should be made as simple as possible, but not simpler."
> > Albert Einstein
> >
> >
>
>
--
Vinicius Caldeira Carvalho
Arquiteto de Sistemas
vinicius.carvalho@synos.com.br
www.synos.com.br <http://www.synos.com.br>
"Everything should be made as simple as possible, but not simpler."
Albert Einstein
Re: PopupLink nullpointer exception
Posted by Jesse Kuhnert <jk...@gmail.com>.
Hmmm...Based on the mentioning of ajax errrors earlier, are you by any
chance getting this error when doing an ajax request within a portal
environment?
jesse
On 10/25/05, Vinicius Carvalho <ja...@gmail.com> wrote:
>
> hum, did you get a solution for it?
>
> On 10/25/05, Dan Adams <da...@ifactory.com> 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
> > > vinicius.carvalho@synos.com.br
> > > www.synos.com.br <http://www.synos.com.br> <http://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: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
>
> --
> Vinicius Caldeira Carvalho
> Arquiteto de Sistemas
> vinicius.carvalho@synos.com.br
> www.synos.com.br <http://www.synos.com.br> <http://www.synos.com.br>
>
> "Everything should be made as simple as possible, but not simpler."
> Albert Einstein
>
>
Re: PopupLink nullpointer exception
Posted by Dan Adams <da...@ifactory.com>.
Well, I was using it in a component that did not render in rewind so it
didn't end up being a problem. So, no, I did not get a solution for it.
On Tue, 2005-10-25 at 16:00 -0200, Vinicius Carvalho wrote:
> hum, did you get a solution for it?
>
> On 10/25/05, Dan Adams <da...@ifactory.com> 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
> > > vinicius.carvalho@synos.com.br
> > > www.synos.com.br <http://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: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
>
> --
> Vinicius Caldeira Carvalho
> Arquiteto de Sistemas
> vinicius.carvalho@synos.com.br
> 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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: PopupLink nullpointer exception
Posted by Vinicius Carvalho <ja...@gmail.com>.
hum, did you get a solution for it?
On 10/25/05, Dan Adams <da...@ifactory.com> 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
> > vinicius.carvalho@synos.com.br
> > www.synos.com.br <http://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: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
--
Vinicius Caldeira Carvalho
Arquiteto de Sistemas
vinicius.carvalho@synos.com.br
www.synos.com.br <http://www.synos.com.br>
"Everything should be made as simple as possible, but not simpler."
Albert Einstein
Re: PopupLink nullpointer exception
Posted by Shing Hing Man <ma...@yahoo.com>.
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 <da...@ifactory.com> 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
> > vinicius.carvalho@synos.com.br
> > 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:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
>
>
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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: PopupLink nullpointer exception
Posted by Dan Adams <da...@ifactory.com>.
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
> vinicius.carvalho@synos.com.br
> 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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org