-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathPage3.java
executable file
·69 lines (60 loc) · 1.8 KB
/
Page3.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
* © 2023 iamfortress.net
*/
package org.wicketsample;
import com.googlecode.wicket.jquery.ui.form.button.IndicatingAjaxButton;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.Form;
//import org.apache.directory.fortress.web.control.FtIndicatingAjaxButton;
/**
* Wicket Sample Page 3
*
* @author Shawn McKinney
* @version $Rev$
*/
public class Page3 extends WicketSampleBasePage
{
public Page3()
{
add( new Page3Form( "pageForm" ) );
}
/**
* Page 3 Form
*/
public class Page3Form extends Form
{
public Page3Form( String id )
{
super( id );
add( new Label( "label3", "This is Page3." ) );
// TODO STEP: change to FtIndicatingAjaxButton:
add( new IndicatingAjaxButton( "wspage3.button1" )
{
@Override
protected void onSubmit( AjaxRequestTarget target )
{
logIt( target, "Page 3, Button 1 Pressed" );
}
} );
// TODO STEP: change to FtIndicatingAjaxButton:
add( new IndicatingAjaxButton( "wspage3.button2" )
{
@Override
protected void onSubmit( AjaxRequestTarget target )
{
logIt( target, "Page 3, Button 2 Pressed" );
}
} );
// TODO STEP: change to FtIndicatingAjaxButton:
add( new IndicatingAjaxButton( "wspage3.button3" )
{
@Override
protected void onSubmit( AjaxRequestTarget target )
{
logIt( target, "Page 3, Button 3 Pressed" );
}
} );
}
}
}