11.4 Getting information from the database
By default, all the fields present on JSP pages are connected to a corresponding field in some database file.
You can also get information from the database by using XfijSource component's methods like
getExternalValue
and creating a getter method. For example if you want a read only field (like
NAME
)
to be present in your JSP file:
Create a method in Java source code:
public String getName() {
return mySource.getExternalValue( .01 );
}
Add a tag to your JSP file:
<%= myBean.getName()%>
11.5 Customizing grids
Two dimensional grids such as above are created using a model driven architecture in e FixIT. Basically, a
model is used to format grid data into a two dimensional
element. This means you
can replace the built in grid model with a custom one. There are
three
kinds of built in grids in e FixIT 4.2:
finderGridModel
which is used in queries to display query results as a grid. You can select a new
model by calling in application Java code:
setFinderGridModel(newClass)
where
newClass
is the class object of the new model.
gridModel
which is used to display ordinary grids such like the one above. You can select a new
model by calling in application Java code:
setGridModel(newClass)
where
newClass
is the class object of the new model.
43
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved