Now I've noticed there is <x:div> in myfaces. It seems like Hans Bergsten wasn't kidding when he said dump JSP (http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html). As soon as I stop trying integrate my existing code of JSTL/HTML in JSP pages and just replace it with JSF things are no longer totally impossible.
----- Original Message -----
From: Rob Decker
Sent: Wednesday, April 20, 2005 9:15 AM
Subject: Re: tiles support

That did occur as a non-optimum workaround that wouldn't work because I wanted to render different div opening tags in the verbatim and panel group would of just nested it's span/div around the opening div element I wanted to write.
 
<f:verbatim rendered="when">
    <div class="blah">
</f:verbatim>
<f:verbatim rendered="whennot">
    <div>
</f:verbatim>
<f:verbatim>
    blahdy blah
    </div>
</f:verbatim>
 
So it could be a useful action instead of just a required one.
 
----- Original Message -----
Sent: Wednesday, April 20, 2005 8:59 AM
Subject: RE: tiles support

Probably not the answer you want, but if you surround the f:verbatim with a h:panelGroup rendered="false", that at least gets you around that issue.  But I agree, I don't see why f:subview renders differently that f:view.


From: Rob Decker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 19, 2005 4:50 PM
To: MyFaces Discussion
Subject: Re: tiles support

This has been a real issue for me as well. The whole interaction with JSTL/JSP/HTML/_javascript_ (or lack thereof to be more exact) is a major flaw in jsf. Even when I thought I saw a value in having f:verbatim wrap my html it turned out to be useless when I couldn't add the rendered attribute to it.
 
 
----- Original Message -----
Sent: Tuesday, April 19, 2005 12:08 PM
Subject: Re: tiles support

Thanks for the answer !
I realized but i think it is a severe limitations and i hope in a near future some workaround to bypass the problem.
----- Original Message -----
From: James Salt
Sent: Tuesday, April 19, 2005 2:47 PM
Subject: RE: tiles support

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: [email protected]
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