Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2082

Conditional rendering for open-close tags of <head> tag.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • 1.4-RC1
    • 1.4-RC3
    • wicket
    • None
    • All

    Description

      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.
      ---------------------------------------------------------

      Attachments

        Activity

          People

            jdonnerstag Juegen Donnerstag
            based Fatih Incefidan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: