You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Fatih Incefidan (JIRA)" <ji...@apache.org> on 2009/02/05 17:17:59 UTC
[jira] Created: (WICKET-2082) Conditional rendering for open-close
tags of tag.
Conditional rendering for open-close tags of <head> tag.
---------------------------------------------------------
Key: WICKET-2082
URL: https://issues.apache.org/jira/browse/WICKET-2082
Project: Wicket
Issue Type: Improvement
Components: wicket
Affects Versions: 1.4-RC1
Environment: All
Reporter: Fatih Incefidan
Priority: Minor
Fix For: 1.4-RC2
Conditional rendering of <head> tag can be useful for wicket integration projects. It think setting should be Page base(i don't know it is possible).
Please see following detailed explanation.
Thanks in advance
---------------------------------------------------------
Hi,
We have a big SpringMVC based web project. And we are developing new modules with wicket and including them to current View-Engine by using request.include(). (We have some customizations of course.)
The problem is about header resources, when i include a wicket component, it is also adding css and javascripts to source within a <head> tag. But in the middle of body content as normal :(.
Basically my requirement is removing automatically added <head> open-close tags for some pages. I need to determine this according to Page.
HtmlHeaderContainer class is providing <head> tag writing functionality. There is a method which is named "renderOpenAndCloseTags", and this covers my requirement. (This method is returning true for all cases)
But i could not find a way to override this method.
Is there any(other) way to do this?
Thanks.
---------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WICKET-2082) Conditional rendering for open-close
tags of tag.
Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juergen Donnerstag resolved WICKET-2082.
----------------------------------------
Resolution: Invalid
Assignee: Juergen Donnerstag
As described previously, a solution exists already
> Conditional rendering for open-close tags of <head> tag.
> ---------------------------------------------------------
>
> Key: WICKET-2082
> URL: https://issues.apache.org/jira/browse/WICKET-2082
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.4-RC1
> Environment: All
> Reporter: Fatih Incefidan
> Assignee: Juergen Donnerstag
> Priority: Minor
> Fix For: 1.4-RC3
>
>
> Conditional rendering of <head> tag can be useful for wicket integration projects. It think setting should be Page base(i don't know it is possible).
> Please see following detailed explanation.
> Thanks in advance
> ---------------------------------------------------------
> Hi,
> We have a big SpringMVC based web project. And we are developing new modules with wicket and including them to current View-Engine by using request.include(). (We have some customizations of course.)
> The problem is about header resources, when i include a wicket component, it is also adding css and javascripts to source within a <head> tag. But in the middle of body content as normal :(.
> Basically my requirement is removing automatically added <head> open-close tags for some pages. I need to determine this according to Page.
> HtmlHeaderContainer class is providing <head> tag writing functionality. There is a method which is named "renderOpenAndCloseTags", and this covers my requirement. (This method is returning true for all cases)
> But i could not find a way to override this method.
> Is there any(other) way to do this?
> Thanks.
> ---------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2082) Conditional rendering for
open-close tags of tag.
Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12673350#action_12673350 ]
Juergen Donnerstag commented on WICKET-2082:
--------------------------------------------
The most easy way would probably to use a XsltTransformerBehavior or if you want to implement to own than derive it from AbstractTransformerBehavior. It should work with Pages as well.
The problem is, there is no single place where header resources are managed. E.g. add(CSSPackageResource.getHeaderContribution("/xxx/my.css")); is a IBehavior and IBhavior.renderHeader is invoked when needed. <head> and <wicket:head> are managed by HtmlHeaderResolver & HtmlHeaderContainer.
Provided I understand you correct, you want to completly remove <head>..</head> from the output. If that is true, than the transformer approach is the more simple one. If you want to remove just specific tags, than you need to be more specific on what exactly you want to remove.
Juergen
> Conditional rendering for open-close tags of <head> tag.
> ---------------------------------------------------------
>
> Key: WICKET-2082
> URL: https://issues.apache.org/jira/browse/WICKET-2082
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.4-RC1
> Environment: All
> Reporter: Fatih Incefidan
> Priority: Minor
> Fix For: 1.4-RC3
>
>
> Conditional rendering of <head> tag can be useful for wicket integration projects. It think setting should be Page base(i don't know it is possible).
> Please see following detailed explanation.
> Thanks in advance
> ---------------------------------------------------------
> Hi,
> We have a big SpringMVC based web project. And we are developing new modules with wicket and including them to current View-Engine by using request.include(). (We have some customizations of course.)
> The problem is about header resources, when i include a wicket component, it is also adding css and javascripts to source within a <head> tag. But in the middle of body content as normal :(.
> Basically my requirement is removing automatically added <head> open-close tags for some pages. I need to determine this according to Page.
> HtmlHeaderContainer class is providing <head> tag writing functionality. There is a method which is named "renderOpenAndCloseTags", and this covers my requirement. (This method is returning true for all cases)
> But i could not find a way to override this method.
> Is there any(other) way to do this?
> Thanks.
> ---------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-2082) Conditional rendering for open-close
tags of tag.
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg updated WICKET-2082:
----------------------------------
Fix Version/s: (was: 1.4-RC2)
1.4-RC3
> Conditional rendering for open-close tags of <head> tag.
> ---------------------------------------------------------
>
> Key: WICKET-2082
> URL: https://issues.apache.org/jira/browse/WICKET-2082
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.4-RC1
> Environment: All
> Reporter: Fatih Incefidan
> Priority: Minor
> Fix For: 1.4-RC3
>
>
> Conditional rendering of <head> tag can be useful for wicket integration projects. It think setting should be Page base(i don't know it is possible).
> Please see following detailed explanation.
> Thanks in advance
> ---------------------------------------------------------
> Hi,
> We have a big SpringMVC based web project. And we are developing new modules with wicket and including them to current View-Engine by using request.include(). (We have some customizations of course.)
> The problem is about header resources, when i include a wicket component, it is also adding css and javascripts to source within a <head> tag. But in the middle of body content as normal :(.
> Basically my requirement is removing automatically added <head> open-close tags for some pages. I need to determine this according to Page.
> HtmlHeaderContainer class is providing <head> tag writing functionality. There is a method which is named "renderOpenAndCloseTags", and this covers my requirement. (This method is returning true for all cases)
> But i could not find a way to override this method.
> Is there any(other) way to do this?
> Thanks.
> ---------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.