[OFBiz] Users - Doubt in screen widget

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

[OFBiz] Users - Doubt in screen widget

dhilip kumar
Hi,
I understand widget and decorator patterns in screen. But I am confused
how exactly is the widget-screen identifies the location to place the ftl files.
Example : The following is the coding in \ecommerce\widget\commonscreens.xml.
<widgets>
                <!-- render header -->
                <platform-specific><html><html-template location="component://ecommerce/webapp/ecommerce/includes/header.ftl"/></html></platform-specific>
               
                <container id="ecom-mainarea">
                    <!-- by default will render left-bar only if left/rightbarScreenName value not empty -->
    <include-screen name="${leftbarScreenName}" location="${leftbarScreenLocation}"/>
    <include-screen name="${rightbarScreenName}" location="${rightbarScreenLocation}"/>
               
                    <container style="${MainColumnStyle}">
                        <!-- render messages -->
                        <platform-specific><html><html-template location="component://common/webcommon/includes/messages.ftl"/></html></platform-specific>
                         <decorator-section-include name="body"/>
                    </container>
                   
                    <container style="endcolumns"/>
                </container>
               
                <!-- render footer -->
                <platform-specific><html><html-template location="component://ecommerce/webapp/ecommerce/includes/footer.ftl"/></html></platform-specific>
            </widgets>

This screen includes screens leftbar and rightbar. But how does it exactly places the content in the left and right.
what is the use of  "TemplateData.xml" ?
 

Thanks
Thilip
  


Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - Doubt in screen widget

subhradeep bhatacharya
Hi Dhilip,
   
  Widget screen does simply place the ftls in the sequence specified. In the case below it will first place the header, then it will place the left bar ftl, then body, then right bar ftl and lastly the footer. You have to make the ftls such that they get placed in the placeholders you mentioned by using appropriate height,width..and also in the container-style you have to specify the css of the ftl, such as for left bar css you should have "float: left;" and similarly for right bar css "float: right;" should be there.
   
  Hope I am able to help you.
   
  Regards,
  Subhra
 

dhilip kumar <[hidden email]> wrote:
    Hi,
I understand widget and decorator patterns in screen. But I am confused
how exactly is the widget-screen identifies the location to place the ftl files.
  Example : The following is the coding in \ecommerce\widget\commonscreens.xml.
  <widgets>
                <!-- render header -->
                <platform-specific><html><html-template location="component://ecommerce/webapp/ecommerce/includes/header.ftl"/></html></platform-specific>
               
                <container id="ecom-mainarea">
                    <!-- by default will render left-bar only if left/rightbarScreenName value not empty -->
    <include-screen name="${leftbarScreenName}" location="${leftbarScreenLocation}"/>
    <include-screen name="${rightbarScreenName}" location="${rightbarScreenLocation}"/>
               
                    <container style="${MainColumnStyle}">
                        <!-- render messages -->
                        <platform-specific><html><html-template location="component://common/webcommon/includes/messages.ftl"/></html></platform-specific>
                         <decorator-section-include name="body"/>
                    </container>
                   
                    <container style="endcolumns"/>
                </container>
               
                <!-- render footer -->
                <platform-specific><html><html-template location="component://ecommerce/webapp/ecommerce/includes/footer.ftl"/></html></platform-specific>
            </widgets>
 
This screen includes screens leftbar and rightbar. But how does it exactly places the content in the left and right.
what is the use of  "TemplateData.xml" ?
   
 
Thanks
  Thilip
   
   
---------------------------------
  Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users

 
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - Doubt in screen widget

dhilip kumar
Thanks Subhradeep.
  Understood clearly.
   
  Dhilip

subhradeep bhatacharya <[hidden email]> wrote:
  Hi Dhilip,

Widget screen does simply place the ftls in the sequence specified. In the case below it will first place the header, then it will place the left bar ftl, then body, then right bar ftl and lastly the footer. You have to make the ftls such that they get placed in the placeholders you mentioned by using appropriate height,width..and also in the container-style you have to specify the css of the ftl, such as for left bar css you should have "float: left;" and similarly for right bar css "float: right;" should be there.

Hope I am able to help you.

Regards,
Subhra


dhilip kumar wrote:
Hi,
I understand widget and decorator patterns in screen. But I am confused
how exactly is the widget-screen identifies the location to place the ftl files.
Example : The following is the coding in \ecommerce\widget\commonscreens.xml.




























This screen includes screens leftbar and rightbar. But how does it exactly places the content in the left and right.
what is the use of "TemplateData.xml" ?


Thanks
Thilip


---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users


---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.

 
---------------------------------
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - Doubt in screen widget

Ashish Vijaywargiya-2
In reply to this post by subhradeep bhatacharya
Hi,
 
  I think the sequence would be like this :
  1) It will render header section.
  2) Then it will render left section
  3) Then it will render right section.
  4) Then it will place any error message exists at the top of the body section.
  5) Then it will place the body section.
  6) And in last it will place footer section.
 
 Can you tell me one thing :See the following include-screen tag :
 
<include-screen name="${leftbarScreenName}"
location="${leftbarScreenLocation}"/>

<include-screen name="${rightbarScreenName}"
location="${rightbarScreenLocation}"/>

How does it render's the rightbarScreenLocation
as well as leftbarScreenLocation (Here i am asking
that how does the screens finds this location.
Are they kept somewhere in context-param)??


For example what i am saying you can see the web.xml file
of any component(for eg:accounting) in which the mainDecoratorLocation
context-param is defined.And this parameter is used by all
the screens in Screen Widgets.

If you find any problem in my description please let me know.


 Thanks & Regards
 Ashish Vijaywargiya

subhradeep bhatacharya <[hidden email]> wrote: Hi Dhilip,
   
 Widget screen does simply place the ftls in the sequence specified. In the case below it will first place the header, then it will place the left bar ftl, then body, then right bar ftl and lastly the footer. You have to make the ftls such that they get placed in the placeholders you mentioned by using appropriate height,width..and also in the container-style you have to specify the css of the ftl, such as for left bar css you should have "float: left;" and similarly for right bar css "float: right;" should be there.
   
  Hope I am able to help you.
   
  Regards,
  Subhra
 

dhilip kumar  wrote:
    Hi,
I understand widget and decorator patterns in screen. But I am confused
how exactly is the widget-screen identifies the location to place the ftl files.
  Example : The following is the coding in \ecommerce\widget\commonscreens.xml.
 
               
               

               
               
                   
     
     
               
                   
                       
                       
 
                         
                   
                   
                   
               
               
               
               

           

 
This screen includes screens leftbar and rightbar. But how does it exactly places the content in the left and right.
what is the use of  "TemplateData.xml" ?
   
 
Thanks
  Thilip
   
   
---------------------------------
  Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users

   
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.




"You can't always get what you want but if you try real hard,
 you might just find that you get what you need"  
 
 Regards
 Ashish
 ****************************************  
 




 
---------------------------------
Want to be your own boss? Learn how on  Yahoo! Small Business.
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - Doubt in screen widget

dhilip kumar
Thanks for your suggestion Ashish.
  
           But the two parameters (leftbarScreenLocation,
rightbarScreenlocation) are not available in any web.xml.
   
Thanks
   
Dhilip


Ashish Vijaywargiya <[hidden email]> wrote:
Hi,

I think the sequence would be like this :
1) It will render header section.
2) Then it will render left section
3) Then it will render right section.
4) Then it will place any error message exists at the top of the body section.
5) Then it will place the body section.
6) And in last it will place footer section.

Can you tell me one thing :See the following include-screen tag :

location="${leftbarScreenLocation}"/>

location="${rightbarScreenLocation}"/>

How does it render's the rightbarScreenLocation
as well as leftbarScreenLocation (Here i am asking
that how does the screens finds this location.
Are they kept somewhere in context-param)??


For example what i am saying you can see the web.xml file
of any component(for eg:accounting) in which the mainDecoratorLocation
context-param is defined.And this parameter is used by all
the screens in Screen Widgets.

If you find any problem in my description please let me know.


Thanks & Regards
Ashish Vijaywargiya

subhradeep bhatacharya wrote: Hi Dhilip,

Widget screen does simply place the ftls in the sequence specified. In the case below it will first place the header, then it will place the left bar ftl, then body, then right bar ftl and lastly the footer. You have to make the ftls such that they get placed in the placeholders you mentioned by using appropriate height,width..and also in the container-style you have to specify the css of the ftl, such as for left bar css you should have "float: left;" and similarly for right bar css "float: right;" should be there.

Hope I am able to help you.

Regards,
Subhra


dhilip kumar wrote:
Hi,
I understand widget and decorator patterns in screen. But I am confused
how exactly is the widget-screen identifies the location to place the ftl files.
Example : The following is the coding in \ecommerce\widget\commonscreens.xml.


























This screen includes screens leftbar and rightbar. But how does it exactly places the content in the left and right.
what is the use of "TemplateData.xml" ?


Thanks
Thilip


---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users


---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.




"You can't always get what you want but if you try real hard,
you might just find that you get what you need"

Regards
Ashish
****************************************






---------------------------------
Want to be your own boss? Learn how on Yahoo! Small Business.


How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
 
_______________________________________________
Users mailing list
Users@...
http://lists.ofbiz.org/mailman/listinfo/users