My bean is now getting populated in my servlet. After that, I am
using: dispatcher.forward( request, response );
When the JSF page is rendered, my bean values are not displayed in the
correct location.
I am currently using the JspTilesViewHandlerImpl from tomahawk.
My layout contains:
<td align="LEFT" valign="TOP" width="498">
<f:subview id="body">
<tiles:insert attribute="body" flush="false" />
</f:subview>
</td>
The tile contains:
<table cellpadding="0" cellspacing="0" border="0" >
<tr><td>
<h:outputText value="#{helloWorldBacking.name}" />
</td></tr>
</table>
The rendered output looks like:
<td align="LEFT" valign="TOP" width="498">
Steve
<table cellpadding="0" cellspacing="0" border="0" >
<tr><td>
</td></tr>
</table>
I am doing something wrong ?
-Thanks
Steve
On 9/19/07, Andrew Robinson <and.....om> wrote:
> http://wiki.apache.org/myfaces/InvokingJsfPagesWithStandardUrls
>
> A little more than you need, but shows how to initialize the JSF
> environment from a servlet and then you can create ValueBinding's for
> your backing bean and do whatever you want. Just beware of the bean's
> scope.
>
> On 9/19/07, Stephen More <step........om> wrote:
> > The standard process for a JSF page is:
> >
> > 1. Populate a managed bean on jsp page 1
> > <h:inputText id="input1" value="#{helloWorldBacking.name}"
> > required="true"/>
> >
> > 2. Output the bean on page 2
> > <h:outputText value="Hello #{helloWorldBacking.name}. We hope you
> > enjoy Apache MyFaces"/>
> >
> >
> > Is there a way to populate a managed bean in a standard servlet
> > instead of a jsp page ?
> >
> >
> > -Thanks
> > Steve More
> >
>