how to include form-widget in FTL

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
NV
Reply | Threaded
Open this post in threaded view
|

how to include form-widget in FTL

NV
Hi

Is there any way to include form-widget in(from) FTL.

I want to display form using form-widget in the middle of FTL file.

Please let me know if anybody have any idea on this.

Thanks in advance
NV
Reply | Threaded
Open this post in threaded view
|

Re: how to include form-widget in FTL

Ashish Vijaywargiya-2
Hi,
 
 If you want to include the form in your ftl file try something :
 ${sections.render("NameOfYourForm")}
 
 If you want to include your form from bsh you can try :
 ${yourFormWrapper.renderFormString(context)}
 
 You can try to searching "render" word in all the ftl files to better understand  above description.
 
 I hope it would be helpful for you.
 --
 Regards
 Ashish Vijaywargiya
 
 
NV <[hidden email]> wrote:
Hi

Is there any way to include form-widget in(from) FTL.

I want to display form using form-widget in the middle of FTL file.

Please let me know if anybody have any idea on this.

Thanks in advance
NV
--
View this message in context: http://www.nabble.com/how-to-include-form-widget-in-FTL-tf2458701.html#a6852808
Sent from the OFBiz - Dev mailing list archive at Nabble.com.



 
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.
Reply | Threaded
Open this post in threaded view
|

Re: how to include form-widget in FTL

cjhowe
In addition, you may want to consider breaking up your
ftl at that point and simply making seperate widget
elements in your screens.
<widget>
    <platform-specific ...>
    ...
    </platform-specific>
    <include-form .../>
    <platform-specific ...>
    ...
    </platform-specific>
</widget>

  The stuff before a form and the stuff after a form
are generally good chunks of code that you may want to
reuse at some time.  Having it all written in a single
template means that you'll only be able to reuse it
for the purpose that you're designing right now.

--- Ashish Vijaywargiya <[hidden email]>
wrote:

> Hi,
>  
>  If you want to include the form in your ftl file
> try something :
>  ${sections.render("NameOfYourForm")}
>  
>  If you want to include your form from bsh you can
> try :
>  ${yourFormWrapper.renderFormString(context)}
>  
>  You can try to searching "render" word in all the
> ftl files to better understand  above description.
>  
>  I hope it would be helpful for you.
>  --
>  Regards
>  Ashish Vijaywargiya
>  
>  
> NV <[hidden email]> wrote:
> Hi
>
> Is there any way to include form-widget in(from)
> FTL.
>
> I want to display form using form-widget in the
> middle of FTL file.
>
> Please let me know if anybody have any idea on this.
>
> Thanks in advance
> NV
> --
> View this message in context:
>
http://www.nabble.com/how-to-include-form-widget-in-FTL-tf2458701.html#a6852808
> Sent from the OFBiz - Dev mailing list archive at
> Nabble.com.
>
>
>
>  
> ---------------------------------
> How low will we go? Check out Yahoo! Messenger’s low
>  PC-to-Phone call rates.

Reply | Threaded
Open this post in threaded view
|

Re: how to include form-widget in FTL

Andrew Sykes
In reply to this post by NV
NV,

Check out the screens.render() function used in various ftl pages.

- Andrew

On Tue, 2006-10-17 at 04:05 -0700, NV wrote:

> Hi
>
> Is there any way to include form-widget in(from) FTL.
>
> I want to display form using form-widget in the middle of FTL file.
>
> Please let me know if anybody have any idea on this.
>
> Thanks in advance
> NV
--
Kind Regards
Andrew Sykes <[hidden email]>
Sykes Development Ltd
http://www.sykesdevelopment.com