Reusing Built-in Widgets?

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

Reusing Built-in Widgets?

Mark Schoonover
Thanks for reading. Still rather new to ofbiz but am making good progress.
I think it's possible to reuse a built-in widget - such as the login
widget. I've read through the wiki and have the developer book but I don't
see how to accomplish this task. Any tips on where in the code to find
examples?

Mark Schoonover KA6WKE
Website: http://www.ka6wke.net
Resume: http://cv.ka6wke.net
Stack Exchange eBooks: http://se2go.ka6wke.net
Reply | Threaded
Open this post in threaded view
|

Re: Reusing Built-in Widgets?

Jacques Le Roux
Administrator
I guess you mean the login screen widget
<screen name="login">

And yes you can reuse it, even from FTL files using

${screens.render("component://common/widget/CommonScreens.xml#login"")}

Though I'm not personally found of this feature, I prefer to keep things clear calling screen widgets from screen widgets using <include-screen...

Jacques

${screens.render("component://common/widget/CommonScreens.xml#cctypes")}
Le 06/03/2014 07:22, Mark Schoonover a écrit :

> Thanks for reading. Still rather new to ofbiz but am making good progress.
> I think it's possible to reuse a built-in widget - such as the login
> widget. I've read through the wiki and have the developer book but I don't
> see how to accomplish this task. Any tips on where in the code to find
> examples?
>
> Mark Schoonover KA6WKE
> Website: http://www.ka6wke.net
> Resume: http://cv.ka6wke.net
> Stack Exchange eBooks: http://se2go.ka6wke.net
>
Reply | Threaded
Open this post in threaded view
|

Re: Reusing Built-in Widgets?

Mark Schoonover
Thanks Jacques. I ended up figuring out the include-screens and where the
login.ftl file was located. Moved the ftl file to my component and made the
necessary changes. The screenrender of cctypes would show all the common
screen widgets? I'll try that out as well.

Mark Schoonover KA6WKE
Website: http://www.ka6wke.net
Resume: http://cv.ka6wke.net
Stack Exchange eBooks: http://se2go.ka6wke.net
On Mar 6, 2014 7:05 PM, "Jacques Le Roux" <[hidden email]>
wrote:

> I guess you mean the login screen widget
> <screen name="login">
>
> And yes you can reuse it, even from FTL files using
>
> ${screens.render("component://common/widget/CommonScreens.xml#login"")}
>
> Though I'm not personally found of this feature, I prefer to keep things
> clear calling screen widgets from screen widgets using <include-screen...
>
> Jacques
>
> ${screens.render("component://common/widget/CommonScreens.xml#cctypes")}
> Le 06/03/2014 07:22, Mark Schoonover a écrit :
>
>> Thanks for reading. Still rather new to ofbiz but am making good progress.
>> I think it's possible to reuse a built-in widget - such as the login
>> widget. I've read through the wiki and have the developer book but I don't
>> see how to accomplish this task. Any tips on where in the code to find
>> examples?
>>
>> Mark Schoonover KA6WKE
>> Website: http://www.ka6wke.net
>> Resume: http://cv.ka6wke.net
>> Stack Exchange eBooks: http://se2go.ka6wke.net
>>
>>