Hello. In previous videos, we have talked about if model if business components and we said there are five components, entity object view object application module Association and a few links. We finished the model now and in this video I will start moving to the view controller. View Controller is anything related to the page, the user interface, look and feel template, all these kinds of things we are we will talk about it. controller is the relation between the pages and navigation drawer. Let's start with page.
This is a page which we have created before while testing the model. Okay, as you can see here, each page has its own Structure you'll find start with view. And from view you have a document and you have one form. This is the main structure of the page and inside the form, you will start building your page. That components PDF components, we'll start with EF like as you can see f plus is in the source you can go to the page source here, you will find here we add it if faces reach component, which is prefixed f. So, you'll find here e f form it means it is in the form f document, f message. And so if men been in the tab all this it means this is it f components, which build the page itself like this is ATF table.
This is it if Ben grew This is it. panning depth and so on. So each page image will have one view one document one form and so is the form you can add all if components. Let's now try to make some build, create one page and we can see how you can start navigating between two pages. I will now remove the what we did last video so we don't do this now. I need a just assemble a page called departments.
Okay, so let's now create a new page called employees. And I need to navigate from department to employees and back from employees to department. Let's do that. Took care one page sheet is a page in the web content, you can right click New page there are two types of bits gsf or a facilities page or a GCP x. Okay, this is just type of the document the type of the file itself. You can key with JSF and here I will name it in Belize.
Once we talk about the template, I will go for the template but now we need to create a blank page. This is if you want to use a built in template. This is like a built in template in EDF. Come with automatically. Okay. At all quick stalkers sorted This is we'll insert and leave What if component in the beach if for example, you need a page which have one for the title bar and the body and the title body we need to be a collapsible or fix it you want the body to have the scroll.
So, you have some collection you need for example, right hand side or left hand side will be collapsible and the body will be stretchable. So you have some layout by default layout okay you can you can create from here once we are talking about with that if components you all your components use if components. I will talk about this. So for now we need to carry the just a blank page. Okay. Here, as you can see, by default, that he would have view document and for inside the form, we need to add what we need Let's now adjust one button in department and once you press on it you should go to the employee.
So in department I would need to add a component called button. So watch what you can do, you can select the form because it should be inside the form right click and use it inside this form I need ADF faces component okay. Once you press it the faces you will get all ADF components you can add inside this form okay so I will select bottom okay. Once you select the ADF component, you should go to the Bertie and you have all your vertices related to this component. If you select the form, you will find all burgers related to the form. If you select the document you will find all four It is related to the tokens for the documents you can change the title the title will be in the browser tab of the browser, this is the title so we can select it can write it depart myths okay.
Bottom here, I will see say go to m v. so here as you can see is a document of Zimbabwe we can change title to be improved, we ease okay. So in divorcement I can say go employees and in India we will add when you be the faces bottom and you need to say Okay, so now we have two pages each page has one button, we need to press a button from the department and it should go to St. Louis and from mbv back to the advertisement This is what we I will show you how to do that in the next video. See you next video.