You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by David Schlotfeldt <tc...@plauditdesign.com> on 2006/02/21 19:57:37 UTC

multiple views / forms on 1 page

Is it possible to have multiple views / forms on 1 page?

For example
<html>
    <body>
       <ol id="menu">
          <li><a href="blah">blah</a></li>
          <li>
                <f:view>
                            <h:commandLink id="accountEdit"    
value="Profile" action="#{backingBean.accountEditCurrentUser}"/>
                 </f:view>
          </li>
       </ol>

        <h1>Header</h1>
        <p>use the following form to blow</p>
       <f:view>
          <h:form>
             .....
          </h:form>
       </f:view>
    </body>
</html>

I have something like this (but the second view is actually pulled in 
with a JSP include) and I get some type of IO stream error.

It seams you can only have 1 f:view tag. How can I have multiple views?

Obviously I don't want 1 view around everthing because then I can't use 
html at all. And there is no way I am going to put verbatim around all 
my html because i won't have valid xml, plus that would be really messy.

I heard that in the new specs for JSF that we will be able to mix other 
xml in with JSF. Is this true? And are they getting rid of the annoying 
f:view an f:subview tags? I like faces, but as i think many people feel, 
not being about to mix HTML, JSF, and JSP is a large issue.

Thanks,
David


Re: multiple views / forms on 1 page

Posted by David Schlotfeldt <da...@plauditdesign.com>.
Thank you for the very quick and informative response. I REALY 
appreciate it and will surely look more into both of those projects.

David

Matthias Wessendorf wrote:

>>I have something like this (but the second view is actually pulled in
>>with a JSP include) and I get some type of IO stream error.
>>    
>>
>
>suround your complete page with <f:view>, since it can be used once per page
>
>use <f:subview id="foo"><jsp:include ...></f:subview> (inside of
><f:view>, not! outside
>for stuff like that
>
>  
>
>>It seams you can only have 1 f:view tag. How can I have multiple views?
>>
>>Obviously I don't want 1 view around everthing because then I can't use
>>html at all. And there is no way I am going to put verbatim around all
>>my html because i won't have valid xml, plus that would be really messy.
>>    
>>
>
>you may be interested in Shale's Clay or Facelets. this allows you to
>use html inside
>of jsf 1.1 views, with <f.verbatim>
>
>  
>
>>I heard that in the new specs for JSF that we will be able to mix other
>>xml in with JSF. Is this true? And are they getting rid of the annoying
>>f:view an f:subview tags? I like faces, but as i think many people feel,
>>not being about to mix HTML, JSF, and JSP is a large issue.
>>    
>>
>
>JSF 1.2 + JSP 2.1
>
>Facelets will enable you doing it already with current MyFaces release
>
>HTH,
>Matthias
>
>  
>
>>Thanks,
>>David
>>
>>
>>    
>>
>
>
>--
>Matthias Wessendorf
>Zülpicher Wall 12, 239
>50674 Köln
>http://www.wessendorf.net
>mwessendorf-at-gmail-dot-com
>
>  
>

Re: multiple views / forms on 1 page

Posted by Matthias Wessendorf <mw...@gmail.com>.
The great community site (by Kito) has a series about Facelets ([1]).
The MyFaces wiki also contains information about using Tomahawk w/
Facelets ([2]).

HTH,
Matthias

[1] - http://jsf-central.com/facelets/
[2] - http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk

On 2/21/06, Matthias Wessendorf <mw...@gmail.com> wrote:
> "withOUT ;-)
>
>
>
> On 2/21/06, David Schlotfeldt <tc...@plauditdesign.com> wrote:
> >  You said
> >  "you may be interested in Shale's Clay or Facelets. this allows you to use
> > html inside of jsf 1.1 views, with <f.verbatim>"
> >
> >  Did you mean "withOUT <f.verbatim>" not "with <f.verbatim>" ?
> >
> >  David
> >
> >
> >
> >  David Schlotfeldt wrote:
> >  Thank you for the very quick and informative response. I REALY appreciate
> > it and will surely look more into both of those projects.
> >
> >  David
> >
> >  Matthias Wessendorf wrote:
> >
> >  I have something like this (but the second view is actually pulled in
> > with a JSP include) and I get some type of IO stream error.
> >
> >  suround your complete page with <f:view>, since it can be used once per
> > page
> >
> > use <f:subview id="foo"><jsp:include ...></f:subview> (inside of
> > <f:view>, not! outside
> > for stuff like that
> >
> >
> >
> >  It seams you can only have 1 f:view tag. How can I have multiple views?
> >
> > Obviously I don't want 1 view around everthing because then I can't use
> > html at all. And there is no way I am going to put verbatim around all
> > my html because i won't have valid xml, plus that would be really messy.
> >
> >  you may be interested in Shale's Clay or Facelets. this allows you to
> > use html inside
> > of jsf 1.1 views, with <f.verbatim>
> >
> >
> >
> >  I heard that in the new specs for JSF that we will be able to mix other
> > xml in with JSF. Is this true? And are they getting rid of the annoying
> > f:view an f:subview tags? I like faces, but as i think many people feel,
> > not being about to mix HTML, JSF, and JSP is a large issue.
> >
> >  JSF 1.2 + JSP 2.1
> >
> > Facelets will enable you doing it already with current MyFaces release
> >
> > HTH,
> > Matthias
> >
> >
> >
> >  Thanks,
> > David
> >
> >
> >
> >
> > --
> > Matthias Wessendorf
> > Zülpicher Wall 12, 239
> > 50674 Köln
> > http://www.wessendorf.net
> > mwessendorf-at-gmail-dot-com
> >
> >
> >
>
>
> --
> Matthias Wessendorf
> Zülpicher Wall 12, 239
> 50674 Köln
> http://www.wessendorf.net
> mwessendorf-at-gmail-dot-com
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com

Re: multiple views / forms on 1 page

Posted by Matthias Wessendorf <mw...@gmail.com>.
"withOUT ;-)



On 2/21/06, David Schlotfeldt <tc...@plauditdesign.com> wrote:
>  You said
>  "you may be interested in Shale's Clay or Facelets. this allows you to use
> html inside of jsf 1.1 views, with <f.verbatim>"
>
>  Did you mean "withOUT <f.verbatim>" not "with <f.verbatim>" ?
>
>  David
>
>
>
>  David Schlotfeldt wrote:
>  Thank you for the very quick and informative response. I REALY appreciate
> it and will surely look more into both of those projects.
>
>  David
>
>  Matthias Wessendorf wrote:
>
>  I have something like this (but the second view is actually pulled in
> with a JSP include) and I get some type of IO stream error.
>
>  suround your complete page with <f:view>, since it can be used once per
> page
>
> use <f:subview id="foo"><jsp:include ...></f:subview> (inside of
> <f:view>, not! outside
> for stuff like that
>
>
>
>  It seams you can only have 1 f:view tag. How can I have multiple views?
>
> Obviously I don't want 1 view around everthing because then I can't use
> html at all. And there is no way I am going to put verbatim around all
> my html because i won't have valid xml, plus that would be really messy.
>
>  you may be interested in Shale's Clay or Facelets. this allows you to
> use html inside
> of jsf 1.1 views, with <f.verbatim>
>
>
>
>  I heard that in the new specs for JSF that we will be able to mix other
> xml in with JSF. Is this true? And are they getting rid of the annoying
> f:view an f:subview tags? I like faces, but as i think many people feel,
> not being about to mix HTML, JSF, and JSP is a large issue.
>
>  JSF 1.2 + JSP 2.1
>
> Facelets will enable you doing it already with current MyFaces release
>
> HTH,
> Matthias
>
>
>
>  Thanks,
> David
>
>
>
>
> --
> Matthias Wessendorf
> Zülpicher Wall 12, 239
> 50674 Köln
> http://www.wessendorf.net
> mwessendorf-at-gmail-dot-com
>
>
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com

Re: multiple views / forms on 1 page

Posted by David Schlotfeldt <tc...@plauditdesign.com>.
You said
"you may be interested in Shale's Clay or Facelets. this allows you to 
use html inside of jsf 1.1 views, with <f.verbatim>"

Did you mean "withOUT <f.verbatim>" not "with <f.verbatim>" ?

David


David Schlotfeldt wrote:

> Thank you for the very quick and informative response. I REALY 
> appreciate it and will surely look more into both of those projects.
>
> David
>
> Matthias Wessendorf wrote:
>
>>>I have something like this (but the second view is actually pulled in
>>>with a JSP include) and I get some type of IO stream error.
>>>    
>>>
>>
>>suround your complete page with <f:view>, since it can be used once per page
>>
>>use <f:subview id="foo"><jsp:include ...></f:subview> (inside of
>><f:view>, not! outside
>>for stuff like that
>>
>>  
>>
>>>It seams you can only have 1 f:view tag. How can I have multiple views?
>>>
>>>Obviously I don't want 1 view around everthing because then I can't use
>>>html at all. And there is no way I am going to put verbatim around all
>>>my html because i won't have valid xml, plus that would be really messy.
>>>    
>>>
>>
>>you may be interested in Shale's Clay or Facelets. this allows you to
>>use html inside
>>of jsf 1.1 views, with <f.verbatim>
>>
>>  
>>
>>>I heard that in the new specs for JSF that we will be able to mix other
>>>xml in with JSF. Is this true? And are they getting rid of the annoying
>>>f:view an f:subview tags? I like faces, but as i think many people feel,
>>>not being about to mix HTML, JSF, and JSP is a large issue.
>>>    
>>>
>>
>>JSF 1.2 + JSP 2.1
>>
>>Facelets will enable you doing it already with current MyFaces release
>>
>>HTH,
>>Matthias
>>
>>  
>>
>>>Thanks,
>>>David
>>>
>>>
>>>    
>>>
>>
>>
>>--
>>Matthias Wessendorf
>>Zülpicher Wall 12, 239
>>50674 Köln
>>http://www.wessendorf.net
>>mwessendorf-at-gmail-dot-com
>>
>>  
>>

Re: multiple views / forms on 1 page

Posted by David Schlotfeldt <tc...@plauditdesign.com>.
Thank you for the very quick and informative response. I REALY 
appreciate it and will surely look more into both of those projects.

David

Matthias Wessendorf wrote:

>>I have something like this (but the second view is actually pulled in
>>with a JSP include) and I get some type of IO stream error.
>>    
>>
>
>suround your complete page with <f:view>, since it can be used once per page
>
>use <f:subview id="foo"><jsp:include ...></f:subview> (inside of
><f:view>, not! outside
>for stuff like that
>
>  
>
>>It seams you can only have 1 f:view tag. How can I have multiple views?
>>
>>Obviously I don't want 1 view around everthing because then I can't use
>>html at all. And there is no way I am going to put verbatim around all
>>my html because i won't have valid xml, plus that would be really messy.
>>    
>>
>
>you may be interested in Shale's Clay or Facelets. this allows you to
>use html inside
>of jsf 1.1 views, with <f.verbatim>
>
>  
>
>>I heard that in the new specs for JSF that we will be able to mix other
>>xml in with JSF. Is this true? And are they getting rid of the annoying
>>f:view an f:subview tags? I like faces, but as i think many people feel,
>>not being about to mix HTML, JSF, and JSP is a large issue.
>>    
>>
>
>JSF 1.2 + JSP 2.1
>
>Facelets will enable you doing it already with current MyFaces release
>
>HTH,
>Matthias
>
>  
>
>>Thanks,
>>David
>>
>>
>>    
>>
>
>
>--
>Matthias Wessendorf
>Zülpicher Wall 12, 239
>50674 Köln
>http://www.wessendorf.net
>mwessendorf-at-gmail-dot-com
>
>  
>

Re: multiple views / forms on 1 page

Posted by Matthias Wessendorf <mw...@gmail.com>.
>
> I have something like this (but the second view is actually pulled in
> with a JSP include) and I get some type of IO stream error.

suround your complete page with <f:view>, since it can be used once per page

use <f:subview id="foo"><jsp:include ...></f:subview> (inside of
<f:view>, not! outside
for stuff like that

>
> It seams you can only have 1 f:view tag. How can I have multiple views?
>
> Obviously I don't want 1 view around everthing because then I can't use
> html at all. And there is no way I am going to put verbatim around all
> my html because i won't have valid xml, plus that would be really messy.

you may be interested in Shale's Clay or Facelets. this allows you to
use html inside
of jsf 1.1 views, with <f.verbatim>

> I heard that in the new specs for JSF that we will be able to mix other
> xml in with JSF. Is this true? And are they getting rid of the annoying
> f:view an f:subview tags? I like faces, but as i think many people feel,
> not being about to mix HTML, JSF, and JSP is a large issue.

JSF 1.2 + JSP 2.1

Facelets will enable you doing it already with current MyFaces release

HTH,
Matthias

> Thanks,
> David
>
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com