You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Kirils Mensikovs (JIRA)" <ji...@apache.org> on 2007/10/12 10:55:50 UTC

[jira] Created: (WICKET-1064) Mock up overriding

Mock up overriding
------------------

                 Key: WICKET-1064
                 URL: https://issues.apache.org/jira/browse/WICKET-1064
             Project: Wicket
          Issue Type: New Feature
          Components: wicket
            Reporter: Kirils Mensikovs
            Priority: Minor


I have MyComponent class with all needed functionality and mockup file. In one page I like to use component twice. But with different layouts, it's not about styles. I like override header or add or remove some element.  

Example *MyComponent.html*:

<html xmlns:wicket="http://wicket.apache.org">
<body>
<wicket:panel>
	<wicket:message key="title" wicket:id="label"/><a href="#">Some stuff</a>
</wicket:panel>
</body>
</html>

Overriding in main page *MainPage.html*:
<html>
  <head></head>
  <body>
       <wicket:panel id="myComponent">
               <wicket:message key="newTitle" wicket:id="label"/>
       </wicket:panel>
  </body>
</html>

In the example in main page the label is override to another resource.


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


[jira] Resolved: (WICKET-1064) Mock up overriding

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

Eelco Hillenius resolved WICKET-1064.
-------------------------------------

       Resolution: Won't Fix
    Fix Version/s: 1.3.0-beta5
         Assignee: Eelco Hillenius

That's not the way overriding in Wicket works. You can extend the panel and provide custom markup, but that's pretty much it. You'll have to do the parameterization in Java. Or if you care enough about it you can bend Wicket to your will and implement a custom tag handler that does what you want. But that's probably pretty hard.

> Mock up overriding
> ------------------
>
>                 Key: WICKET-1064
>                 URL: https://issues.apache.org/jira/browse/WICKET-1064
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>            Reporter: Kirils Mensikovs
>            Assignee: Eelco Hillenius
>            Priority: Minor
>             Fix For: 1.3.0-beta5
>
>
> I have MyComponent class with all needed functionality and mockup file. In one page I like to use component twice. But with different layouts, it's not about styles. I like override header or add or remove some element.  
> Example *MyComponent.html*:
> <html xmlns:wicket="http://wicket.apache.org">
> <body>
> <wicket:panel>
> 	<wicket:message key="title" wicket:id="label"/><a href="#">Some stuff</a>
> </wicket:panel>
> </body>
> </html>
> Overriding in main page *MainPage.html*:
> <html>
>   <head></head>
>   <body>
>        <wicket:panel id="myComponent">
>                <wicket:message key="newTitle" wicket:id="label"/>
>        </wicket:panel>
>   </body>
> </html>
> In the example in main page the label is override to another resource.

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


[jira] Updated: (WICKET-1064) Mock up overriding

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

Frank Bille Jensen updated WICKET-1064:
---------------------------------------

    Fix Version/s:     (was: 1.3.0-rc1)

> Mock up overriding
> ------------------
>
>                 Key: WICKET-1064
>                 URL: https://issues.apache.org/jira/browse/WICKET-1064
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>            Reporter: Kirils Mensikovs
>            Assignee: Eelco Hillenius
>            Priority: Minor
>
> I have MyComponent class with all needed functionality and mockup file. In one page I like to use component twice. But with different layouts, it's not about styles. I like override header or add or remove some element.  
> Example *MyComponent.html*:
> <html xmlns:wicket="http://wicket.apache.org">
> <body>
> <wicket:panel>
> 	<wicket:message key="title" wicket:id="label"/><a href="#">Some stuff</a>
> </wicket:panel>
> </body>
> </html>
> Overriding in main page *MainPage.html*:
> <html>
>   <head></head>
>   <body>
>        <wicket:panel id="myComponent">
>                <wicket:message key="newTitle" wicket:id="label"/>
>        </wicket:panel>
>   </body>
> </html>
> In the example in main page the label is override to another resource.

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