You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Stefan Lindner (JIRA)" <ji...@apache.org> on 2007/03/12 17:35:09 UTC

[jira] Created: (WICKET-380) How to set TABPanels'titel to EscapeModel(false)

How to set TABPanels'titel to EscapeModel(false)
------------------------------------------------

                 Key: WICKET-380
                 URL: https://issues.apache.org/jira/browse/WICKET-380
             Project: Wicket
          Issue Type: New Feature
          Components: wicket-extensions
    Affects Versions: 2.0
            Reporter: Stefan Lindner
            Priority: Trivial


To let a TABPanel's title label display whatever we want (e.g. to setEscapeModelString(false)) we need a callback method like the one for the linke the one for

     	protected WebMarkupContainer newLink(MarkupContainer parent, String linkId, final int index)
	{
		return new Link(parent, linkId)
		{
			private static final long serialVersionUID = 1L;

			@Override
			public void onClick()
			{
				setSelectedTab(index);
			}
		};
	}

Then we can overwrite the e.g. newLinkLabel method in an annonymous class.

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


[jira] Resolved: (WICKET-380) How to set TABPanels'titel to EscapeModel(false)

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

Igor Vaynberg resolved WICKET-380.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0

> How to set TABPanels'titel to EscapeModel(false)
> ------------------------------------------------
>
>                 Key: WICKET-380
>                 URL: https://issues.apache.org/jira/browse/WICKET-380
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket-extensions
>    Affects Versions: 2.0
>            Reporter: Stefan Lindner
>            Priority: Trivial
>             Fix For: 2.0
>
>
> To let a TABPanel's title label display whatever we want (e.g. to setEscapeModelString(false)) we need a callback method like the one for the linke the one for
>      	protected WebMarkupContainer newLink(MarkupContainer parent, String linkId, final int index)
> 	{
> 		return new Link(parent, linkId)
> 		{
> 			private static final long serialVersionUID = 1L;
> 			@Override
> 			public void onClick()
> 			{
> 				setSelectedTab(index);
> 			}
> 		};
> 	}
> Then we can overwrite the e.g. newLinkLabel method in an annonymous class.

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


[jira] Updated: (WICKET-380) How to set TABPanels'titel to EscapeModel(false)

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

Igor Vaynberg updated WICKET-380:
---------------------------------

        Fix Version/s: 1.3
    Affects Version/s: 1.3

> How to set TABPanels'titel to EscapeModel(false)
> ------------------------------------------------
>
>                 Key: WICKET-380
>                 URL: https://issues.apache.org/jira/browse/WICKET-380
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket-extensions
>    Affects Versions: 1.3, 2.0
>            Reporter: Stefan Lindner
>            Priority: Trivial
>             Fix For: 1.3, 2.0
>
>
> To let a TABPanel's title label display whatever we want (e.g. to setEscapeModelString(false)) we need a callback method like the one for the linke the one for
>      	protected WebMarkupContainer newLink(MarkupContainer parent, String linkId, final int index)
> 	{
> 		return new Link(parent, linkId)
> 		{
> 			private static final long serialVersionUID = 1L;
> 			@Override
> 			public void onClick()
> 			{
> 				setSelectedTab(index);
> 			}
> 		};
> 	}
> Then we can overwrite the e.g. newLinkLabel method in an annonymous class.

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


[jira] Commented: (WICKET-380) How to set TABPanels'titel to EscapeModel(false)

Posted by "Thomas Singer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487449 ] 

Thomas Singer commented on WICKET-380:
--------------------------------------

Taking a look at the change in TabbedPane, revision 517277 I see following problems in newTabLabel():
- shouldn't the method be protected?
- shouldn't "title" be replaced with id?
- the parent parameter is final, the others aren't

> How to set TABPanels'titel to EscapeModel(false)
> ------------------------------------------------
>
>                 Key: WICKET-380
>                 URL: https://issues.apache.org/jira/browse/WICKET-380
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket-extensions
>    Affects Versions: 1.3, 2.0
>            Reporter: Stefan Lindner
>            Priority: Trivial
>             Fix For: 1.3, 2.0
>
>
> To let a TABPanel's title label display whatever we want (e.g. to setEscapeModelString(false)) we need a callback method like the one for the linke the one for
>      	protected WebMarkupContainer newLink(MarkupContainer parent, String linkId, final int index)
> 	{
> 		return new Link(parent, linkId)
> 		{
> 			private static final long serialVersionUID = 1L;
> 			@Override
> 			public void onClick()
> 			{
> 				setSelectedTab(index);
> 			}
> 		};
> 	}
> Then we can overwrite the e.g. newLinkLabel method in an annonymous class.

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