-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Wicket Bootstrap - Fix example project
- Loading branch information
1 parent
9bdc438
commit 1297e35
Showing
54 changed files
with
1,065 additions
and
815 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...ng/wicket/spring/boot/example/web/assets/base/FixBootstrapStylesCssResourceReference.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.giffing.wicket.spring.boot.example.web.assets.base; | ||
|
||
import org.apache.wicket.request.resource.CssResourceReference; | ||
|
||
public class FixBootstrapStylesCssResourceReference extends CssResourceReference { | ||
|
||
public static final FixBootstrapStylesCssResourceReference INSTANCE = new FixBootstrapStylesCssResourceReference(); | ||
|
||
public FixBootstrapStylesCssResourceReference() { | ||
super(FixBootstrapStylesCssResourceReference.class, "fix.css"); | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...rter-example/src/main/java/com/giffing/wicket/spring/boot/example/web/assets/base/fix.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.navbar { | ||
--bs-navbar-padding-x: 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
...mple/src/main/java/com/giffing/wicket/spring/boot/example/web/general/icons/IconType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
...c/main/java/com/giffing/wicket/spring/boot/example/web/html/border/LabeledFormBorder.html
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
...c/main/java/com/giffing/wicket/spring/boot/example/web/html/border/LabeledFormBorder.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...le/src/main/java/com/giffing/wicket/spring/boot/example/web/html/form/ValidationForm.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...ample/src/main/java/com/giffing/wicket/spring/boot/example/web/html/modal/YesNoModal.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<html xmlns:wicket="http://wicket.apache.org"> | ||
<head> | ||
<title>TextContentModal</title> | ||
</head> | ||
<body> | ||
<wicket:extend> | ||
<div wicket:id="content"></div> | ||
</wicket:extend> | ||
</body> | ||
</html> |
57 changes: 29 additions & 28 deletions
57
...ample/src/main/java/com/giffing/wicket/spring/boot/example/web/html/modal/YesNoModal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
package com.giffing.wicket.spring.boot.example.web.html.modal; | ||
|
||
import de.agilecoders.wicket.core.markup.html.bootstrap.dialog.Modal; | ||
import org.apache.wicket.ajax.AjaxRequestTarget; | ||
import org.apache.wicket.extensions.ajax.markup.html.modal.ModalDialog; | ||
|
||
public abstract class YesNoModal extends ModalDialog { | ||
|
||
public YesNoModal(String id) { | ||
super(id); | ||
YesNoPanel yesNoPanel = new YesNoPanel(CONTENT_ID){ | ||
|
||
@Override | ||
protected void yesClicked(AjaxRequestTarget target) { | ||
YesNoModal.this.yesClicked(target); | ||
} | ||
|
||
@Override | ||
protected void noClicked(AjaxRequestTarget target) { | ||
YesNoModal.this.noClicked(target); | ||
} | ||
}; | ||
setContent(yesNoPanel); | ||
} | ||
|
||
protected void noClicked(AjaxRequestTarget target) { | ||
close(target); | ||
} | ||
|
||
protected abstract void yesClicked(AjaxRequestTarget target); | ||
import org.apache.wicket.markup.html.panel.Panel; | ||
|
||
public abstract class YesNoModal extends Modal<Panel> { | ||
|
||
public YesNoModal(String id) { | ||
super(id); | ||
YesNoPanel yesNoPanel = new YesNoPanel("content") { | ||
|
||
@Override | ||
protected void yesClicked(AjaxRequestTarget target) { | ||
YesNoModal.this.yesClicked(target); | ||
} | ||
|
||
@Override | ||
protected void noClicked(AjaxRequestTarget target) { | ||
YesNoModal.this.noClicked(target); | ||
} | ||
|
||
}; | ||
add(yesNoPanel); | ||
} | ||
|
||
protected void noClicked(AjaxRequestTarget target) { | ||
close(target); | ||
} | ||
|
||
protected abstract void yesClicked(AjaxRequestTarget target); | ||
|
||
} |
12 changes: 10 additions & 2 deletions
12
...ample/src/main/java/com/giffing/wicket/spring/boot/example/web/html/modal/YesNoPanel.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
<html xmlns:wicket="http://wicket.apache.org"> | ||
<head> | ||
<title>TextContentModal</title> | ||
</head> | ||
<body> | ||
<wicket:panel> | ||
<label>Are you sure?</label> | ||
<a wicket:id="yes">yes</a> | ||
<a wicket:id="no">no</a> | ||
<hr> | ||
<a wicket:id="yes" class="btn btn-primary">yes</a> | ||
<a wicket:id="no" class="btn">no</a> | ||
</wicket:panel> | ||
</body> | ||
</html> |
Oops, something went wrong.