click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Schellink (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CLK-704) Add support for absolute classnames when configuring pages in click.xml
Date Tue, 02 Nov 2010 12:58:25 GMT

    [ https://issues.apache.org/jira/browse/CLK-704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927385#action_12927385
] 

Bob Schellink commented on CLK-704:
-----------------------------------

Hi Hantsy, I meant you can close the issue I raised on click4nb: http://code.google.com/p/click4nb/issues/detail?id=3

Wrt this issue, it has been resolved as follows:

page mappings should declare absolute classnames, but for backward compatibility Page classnames
can be declared without the package.

So the following is a proper mapping:

<pages package="com.mycorp">
  <page classname="com.mycorp.Home" path="index.htm"/>
</pages>

So all the pages under "com.mycorp" are auto mapped, however Click cannot automatically map
Home page  to index.htm, so we explicitly map that page. IDE's with hot-linking should be
able to link to the page class automatically.

Kind regards

Bob

> Add support for absolute classnames when configuring pages in click.xml
> -----------------------------------------------------------------------
>
>                 Key: CLK-704
>                 URL: https://issues.apache.org/jira/browse/CLK-704
>             Project: Click
>          Issue Type: Improvement
>    Affects Versions: 2.2.0
>            Reporter: Bob Schellink
>            Assignee: Bob Schellink
>            Priority: Minor
>             Fix For: 2.3.0-M1
>
>         Attachments: XmlConfigService.java.patch
>
>
> Manual page loading has created quite a bit of confusion as was discussed here:
> http://click.1134972.n2.nabble.com/Confusing-page-class-mapping-td5200226.html#a5200226
> There is no clear resolution yet though.

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


Mime
View raw message