You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Md. Jahid Shohel" <de...@gmail.com> on 2010/06/19 14:34:40 UTC
Re: [jira] Commented: (CLK-625) createPage makes htm-to-class
duplicates
ok, i will check again in development mode
On Sat, Jun 19, 2010 at 1:45 PM, Andrey Rybin (JIRA) <ji...@apache.org>wrote:
>
> [
> https://issues.apache.org/jira/browse/CLK-625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12880472#action_12880472]
>
> Andrey Rybin commented on CLK-625:
> ----------------------------------
>
> >- require leading / in createPage == same behavior in all modes
>
> I don't know, should all paths start with leading /. If not then of course
> It isn't solution.
>
> > createPage makes htm-to-class duplicates
> > ----------------------------------------
> >
> > Key: CLK-625
> > URL: https://issues.apache.org/jira/browse/CLK-625
> > Project: Click
> > Issue Type: Bug
> > Components: core
> > Affects Versions: 2.1.0
> > Reporter: Andrey Rybin
> >
> > We have
> > - ControlListenerType1Page.htm - in web root
> > and
> > ControlListenerType1Page.java with:
> > @Bindable protected ActionLink bugMaker = new ActionLink(this,
> "makeBug");
> > public boolean makeBug () {
> > Page p = getContext().createPage("ControlListenerType1Page.htm");//
> without leading /
> > if (!(p instanceof ControlListenerType1Page)) { throw new Error("very
> bad"); }
> > //successfully! BUT now htm-to-class map contains two mappings for
> ControlListenerType1Page.class:
> > // ControlListenerType1Page.htm->ControlListenerType1Page.class and
> > // /ControlListenerType1Page.htm->ControlListenerType1Page.class
> > p = getContext().createPage(ControlListenerType1Page.class);
> > //^^^throws java.lang.IllegalArgumentException with message:
> > //Page class resolves to multiple paths:
> net.sf.apr.cui.ControlListenerType1Page -> [/ControlListenerType1Page.htm,
> ControlListenerType1Page.htm]
> > setForward(p); return true;
> > }
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>