Hi Claudio

 

It appears there are work arounds, but the basic idea is that you cannot put html inside an included file (using tiles), you can only use jsf components.

 

The way around it is to use <f:verbatim></f:verbatim> around all the html tags in the included file.

 

I hope this helps.

 

I don’t think this should be the desired behaviour, but it is what happens currently.

 

Thanks

 

James

 


From: Claudio Tamietto [mailto:[EMAIL PROTECTED]
Sent: 19 April 2005 12:58
To: myfaces-user@incubator.apache.org
Subject: tiles support

 

is there an effective support for tyles in  myfaces implementation ?.

I posted the question because i have the following problem :

 

i have a first jsp page with a lot of html . At some point i include another jsp.page

 

                      </TD>
                     </TR>
                        <TR>
                          <TD colSpan=3 height="350" style="padding:1.5pt;">
                              <f:subview id="login">
                                <tiles:insert attribute="content"  flush="false" />
                              </f:subview>
                    </TD>
                     </TR>

the second page follow :

 

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<div style="padding:40px;">
    <table bordercolor="rgb(255,0,0)" align="center" cellpadding="0" cellspacing="0" width="40%" border="1">
      <tr>
        <td>
          <table align="center">
            <tr>
              <td>
                <h1 align="center" style="color:rgb(255,0,0);">Login</h1>
              </td>
            </tr>
            <tr>
              <td style="border-color:rgb(255,0,0);">
                  <h:outputText value="login mask"></h:outputText>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
</div>

 

but the jsf servlet render before the content of the outputText and then the html in this way

 

                                login mask

 

<div style="padding:40px;">
    <table bordercolor="rgb(255,0,0)" align="center" cellpadding="0" cellspacing="0" width="40%" border="1">
      <tr>
        <td>
          <table align="center">
            <tr>
              <td>
                <h1 align="center" style="color:rgb(255,0,0);">Login</h1>
              </td>
            </tr>
            <tr>
              <td style="border-color:rgb(255,0,0);">
                 
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
</div>

is wrong my code or is a bug ?

Reply via email to