You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by NV <ve...@tarangtech.com> on 2006/10/17 13:05:59 UTC

how to include form-widget in FTL

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.


Re: how to include form-widget in FTL

Posted by Andrew Sykes <an...@sykesdevelopment.com>.
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 <an...@sykesdevelopment.com>
Sykes Development Ltd
http://www.sykesdevelopment.com


Re: how to include form-widget in FTL

Posted by Chris Howe <cj...@yahoo.com>.
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 <to...@yahoo.com>
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 <ve...@tarangtech.com> 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.


Re: how to include form-widget in FTL

Posted by Ashish Vijaywargiya <to...@yahoo.com>.
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 <ve...@tarangtech.com> 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.