You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Adriano dos Santos Fernandes (JIRA)" <ji...@apache.org> on 2008/10/19 19:32:44 UTC

[jira] Created: (WICKET-1880) wicket:link, markup inheritance and packages

wicket:link, markup inheritance and packages
--------------------------------------------

                 Key: WICKET-1880
                 URL: https://issues.apache.org/jira/browse/WICKET-1880
             Project: Wicket
          Issue Type: Bug
          Components: wicket
            Reporter: Adriano dos Santos Fernandes
             Fix For: 1.4-M3


I've created a BasePage.html/java in directory/package mm.sistema.web. Its body is:

   <body>

   <wicket:link>
       <a href="HomePage.html">Home</a>
       <a href="adm/ADM0190F.html">ADM0190F</a>
   </wicket:link>
   <br />
   <br />

   <wicket:child />

   </body>

In same directory I have the HomePage.html, with this body:

   <body>

   <wicket:extend>
   </wicket:extend>

   </body>

So far, so good. But my mm.sistema.web.adm.ADM0190F inherits from BasePage. When rendering it, an error happens:

   java.lang.NoClassDefFoundError: IllegalName: mm/sistema/web/HomePage
   java.lang.ClassLoader.preDefineClass(ClassLoader.java:476)
   java.lang.ClassLoader.defineClass(ClassLoader.java:614)
   ...

Note llegalName is HomePage. It seems Wicket tries to locate things in wrong place.

If I use BookmarkablePageLink it works correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-1880) wicket:link, markup inheritance and packages

Posted by "Frank Bille Jensen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1880?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Bille Jensen updated WICKET-1880:
---------------------------------------

    Fix Version/s:     (was: 1.4-M3)

> wicket:link, markup inheritance and packages
> --------------------------------------------
>
>                 Key: WICKET-1880
>                 URL: https://issues.apache.org/jira/browse/WICKET-1880
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>            Reporter: Adriano dos Santos Fernandes
>            Assignee: Igor Vaynberg
>
> I've created a BasePage.html/java in directory/package mm.sistema.web. Its body is:
>    <body>
>    <wicket:link>
>        <a href="HomePage.html">Home</a>
>        <a href="adm/ADM0190F.html">ADM0190F</a>
>    </wicket:link>
>    <br />
>    <br />
>    <wicket:child />
>    </body>
> In same directory I have the HomePage.html, with this body:
>    <body>
>    <wicket:extend>
>    </wicket:extend>
>    </body>
> So far, so good. But my mm.sistema.web.adm.ADM0190F inherits from BasePage. When rendering it, an error happens:
>    java.lang.NoClassDefFoundError: IllegalName: mm/sistema/web/HomePage
>    java.lang.ClassLoader.preDefineClass(ClassLoader.java:476)
>    java.lang.ClassLoader.defineClass(ClassLoader.java:614)
>    ...
> Note llegalName is HomePage. It seems Wicket tries to locate things in wrong place.
> If I use BookmarkablePageLink it works correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-1880) wicket:link, markup inheritance and packages

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1880?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-1880.
-----------------------------------

    Resolution: Won't Fix
      Assignee: Igor Vaynberg

wicket:link is a convinience for quickly linking to resources that are in the same package, mostly used for css/js resources. it is not meant for the usecase you are trying to do with it. as you found out, the proper thing to do is to use a bookmarkable page link.

> wicket:link, markup inheritance and packages
> --------------------------------------------
>
>                 Key: WICKET-1880
>                 URL: https://issues.apache.org/jira/browse/WICKET-1880
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>            Reporter: Adriano dos Santos Fernandes
>            Assignee: Igor Vaynberg
>             Fix For: 1.4-M3
>
>
> I've created a BasePage.html/java in directory/package mm.sistema.web. Its body is:
>    <body>
>    <wicket:link>
>        <a href="HomePage.html">Home</a>
>        <a href="adm/ADM0190F.html">ADM0190F</a>
>    </wicket:link>
>    <br />
>    <br />
>    <wicket:child />
>    </body>
> In same directory I have the HomePage.html, with this body:
>    <body>
>    <wicket:extend>
>    </wicket:extend>
>    </body>
> So far, so good. But my mm.sistema.web.adm.ADM0190F inherits from BasePage. When rendering it, an error happens:
>    java.lang.NoClassDefFoundError: IllegalName: mm/sistema/web/HomePage
>    java.lang.ClassLoader.preDefineClass(ClassLoader.java:476)
>    java.lang.ClassLoader.defineClass(ClassLoader.java:614)
>    ...
> Note llegalName is HomePage. It seems Wicket tries to locate things in wrong place.
> If I use BookmarkablePageLink it works correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.