You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Peter Rabing <pe...@gmx.de> on 2006/09/22 08:56:32 UTC

Using Tobago dynamically from servlet ??

Hi,

I'd like to create a web page whose structure and layout is determined by my back-end db. I.e. the layout and structure is highly dynamic in response to user input and the state of the back-end. Imagine a workflow machine whose masks can be defined by an administrator and whose steps are determined by a rule engine.

I still would like to use the benefits of Tobago such as internationalization, java script handling etc. 

I thought about generating a jsp and compile it on the fly, though my guess is that this doesn't give me a very good performance ...

Do you have any other ideas ??

Thanks,

Peter
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

Re: Using Tobago dynamically from servlet ??

Posted by Volker Weber <we...@googlemail.com>.
Hi Peter,

you don't need to generate a jsp, you just need to create the
component tree and map it
via binding into a skeleton jsp.

e.g.:

<tc:page>
  <f:facet name="layout">
    <tc:gridlayout columns="200px;1*"/>
  </f:facet>

  <tc:panel id="navi">
    <%-- left side navagation --%>
  <tc:panel>


  <tc:panel id="content" binging="#{controller.contentPanel}">
    <%-- content filled by application --%>
  <tc:panel>

</tc:page>


with this your application has full control over the contentPanels content.

Regards
    Volker


2006/9/22, Peter Rabing <pe...@gmx.de>:
> Hi,
>
> I'd like to create a web page whose structure and layout is determined by my back-end db. I.e. the layout and structure is highly dynamic in response to user input and the state of the back-end. Imagine a workflow machine whose masks can be defined by an administrator and whose steps are determined by a rule engine.
>
> I still would like to use the benefits of Tobago such as internationalization, java script handling etc.
>
> I thought about generating a jsp and compile it on the fly, though my guess is that this doesn't give me a very good performance ...
>
> Do you have any other ideas ??
>
> Thanks,
>
> Peter
> --
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>