11.  Tips and Tricks 
11.1  Using debug mode 
You can get debugging information about e FixIT applications by setting 
debugMode
 property of the 
broker component to 
true
. Note that this usually creates quite a lot of information and may slow down 
your application. The debug text is sent to 
System.out
. 
11.2  Using the same FileMan database file between many JSP pages 
By default, the e FixIT Application Wizard creates a different JSP page for each database file. However, if 
a file contains tens or even hundreds of fields, it is not convenient to have them all on the same page. In that 
case, you can first create a page containing all the fields with the application wizard and then copy JSP tags 
describing the fields to different pages. 
Due to the nature of how HTML pages are submitted from a browser, if a user tries to edit the same 
database file entry in two different JSP files the same time by switching between the pages, information will 
be lost. One way to get aroung this is 
not
 to use anchors 
(
 
 tags) to navigate between JSP 
pages, but instead 
BUTTON
 or 
 tags. You can create a link by: 
Replace anchor with a INPUT tag such as: 
value= To page 2 >
Add code to the 
action 
event of the application: 
  void this_action(ActionEvent e) { 
   if (e.getAction().equals("To page 2")) { 
    setForward( page_2.jsp ); 
    e.consume(); // the event has been handled 
   } 
  }  
Another way is to navigate between JSP pages using JavaScript or to use JavaScript to 
submit
 the form 
when anchors are used. 
11.3  Events 
Usually when you want to add functionality and code to your application, you complish this by adding 
events
 to the Java code. For example, if you wish to set some field values before saving a database entry, 
you can add a 
beforeSave
 event to the corresponding data source: In JBuilder, select you Java source file 
to be edited and click  Design  tab. Select the XfijSource in question component and add an event by 
double clicking 
beforeSave
 entry in  Events  page. You can set a field value by: 
MySource.setFieldValue( field_number , field_value );
42 






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

servlets web hosting

 

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