SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 44 | Next

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"


Now let's try to make some changes. Double-click the Start.java file in the Projects
view and it will open in the code editor. You will see that this class contains just one
method, getCurrentTime() that it returns a Date, and this method contains just one
line of code. Let's change it to look like this:
public String getCurrentTime()
{
Date date = new Date();
String message = ". Tapestry is cool!";
return date + message;
}
Save the changes, hit the F6 key, and you will see that the application reflects the
changes you have just made. Let's try another experiment.
Creating Your Working Environment
[ 32 ]
Double-click on the Start.tml file to open it in the code editor and make some
changes to it. For example, change the heading:

t5first Start Page


to:

Tapestry Start Page


Save the file and hit F6 as before. You will notice this time that the last change is
not reflected by the application. This is because NetBeans keeps track of changes in
Java files only when we have changed a page template. No Java file was changed, so
NetBeans decided that there is actually nothing to update.
The simplest way to deal with this little misconduct is to make some change to a Java
file each time you make a change to an HTML file.


Pages:
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6