Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
tabView f:verbatim and facelets
posted

Hi,

I am trying to use tabView in the following manner

<ig:tabView>
    <ig:tabItem>
        <f:verbatim>
            <div style = "background-color:red;">
                <h:outputText/>
                <ig:checkBox/>
            </div>
        </f:verbatim>
    </ig:tabItem>
</ig:tabView>

Note: All  necessary attributes are given proper values.

Here tab appears properly with the div but the components dont appear(h:outputText and ig:checkBox )

And then i looked at the web tab samples in Infragistics site.

Tried the below version

<ig:tabView>
    <ig:tabItem>
              <f:verbatim>
            <div style = "background-color:red;">
            </f:verbatim>

            <h:outputText/>
            <ig:checkBox/>
           
             <f:verbatim>
             </div>        
            </f:verbatim>
    </ig:tabItem>
</ig:tabView>

But this also doesn't work, because Facelets expect the page to follow proper XML standards.

We get error from the SAX parser saying the div is not having /div in proper place.

How can we achieve the output in JSF facelets environment ?

Thanks

Parents
  • 2180
    Suggested Answer
    Offline posted

    Hi Jansun,

    You need <f:verbatim> tag for non-JSF content that appears in the page. 

    But if you are using Facelets, any time Facelets comes across static markup, it automatically creates a UIComponent to wrap the markup and output it during encoding.

    The other thing is that you have perfectly XHTML compliant div element with opening and closing tag. So you don't need the <f:verbatim>.

    Best regards

Reply Children