[JAVA] I tried using Apache Wicket

I tried using Apache Wicket

While repairing the functions of the Web Application created by other business divisions, we will also carry out subsequent operation and maintenance. So, if you look at the source of what kind of framework you are using for the time being, it is called Apache Wicket. Do not know. I was suddenly interested in seeing that the HTML file that I thought was a screen mock actually doubles as the production HTML (formally, the production HTML file also serves as the mock). Whenever a framework I don't know comes out, I usually buy a book and read it, so search on amazon. The 2009 book is 7198 yen ...? There seems to be no other Japanese book. Let's give up. So, I will learn while making it based on the information on the web. For the time being, after studying, I made some kind of sample.

: one: Creating PJ on Eclipse For the time being, the environment anyway. When I try to create a maven project in Eclipse, I get an Apache wicket quick start.

https://wicket.apache.org/start/quickstart.html I should have seen it here from the beginning, but I noticed it after making it. When you create a project, it looks like sample code. For the time being, the sample worked. The version is old, but I tried it with 1.4.23.

About the correspondence between: two: html and java (1)

Let's add one to the sample html.

HomePage.html


<span wicket:id="footer">This is footer message.</span>

Unable to find component with id 'footer'... I got an error like this. I see, is this the * Web pages are objects * on the official website? Since html and Java objects are associated with each other, what is in html is also necessary on the Java side.

HomePage.java


add(new Label("footer", "This is fotter."));

When I added the class corresponding to footer in the HomePage method, footer was displayed. Let's find out how this works.

Recommended Posts

I tried using Apache Wicket
I tried using Gson
I tried using TestNG
I tried using Galasa
I tried using azure cloud-init
I tried using Java REPL
I tried using anakia + Jing now
I tried using Spring + Mybatis + DbUnit
I tried using JOOQ with Gradle
I tried using Java8 Stream API
I tried using JWT in Java
[Android] I tried using Coordinator Layout.
I tried using Pari gp container
I tried using WebAssembly Stadio (2018/4/17 version)
I tried using Java memo LocalDate
I tried using GoogleHttpClient of Java
I tried using Realm with Swift UI
I tried using Java's diagnostic tool Arthas
I tried using Scalar DL with Docker
I tried using OnlineConverter with SpringBoot + JODConverter
I tried Spring.
It's new, but I tried using Groonga
I tried tomcat
I tried using OpenCV with Java + Tomcat
I tried youtubeDataApi.
I tried refactoring ①
Create RestAPI using wicketstuff-restannotations of Apache Wicket
I tried FizzBuzz.
I tried JHipster 5.1
I tried using Docker for the first time
I tried using Junit on Mac VScode Maven
[For beginners] I tried using DBUnit in Eclipse
[For beginners] I tried using JUnit 5 in Eclipse
[Android] I quit SQLite and tried using Realm
I made blackjack with Ruby (I tried using minitest)
[API] I tried using the zip code search API
I tried to implement a server using Netty
I tried using the profiler of IntelliJ IDEA
[I tried] Spring tutorial
I tried running Autoware
I tried QUARKUS immediately
I tried Spring Batch
I tried node-jt400 (Programs)
I tried node-jt400 (execute)
I tried node-jt400 (Transactions)
I tried using a database connection in Android development
I tried using the Server Push function of Servlet 4.0
I tried using Alibaba Cloud's KMS (Key Management Service) service
I tried using Google Cloud Vision API in Java
I tried to operate SQS using AWS Java SDK
I tried using the Migration Toolkit for Application Binaries
I tried using Log4j2 on a Java EE server
I tried using YOLO v4 on Ubuntu and ROS
I tried using an extended for statement in Java
I tried scraping a stock chart using Java (Jsoup)
I tried to build an environment using Docker (beginner)
I tried unit testing Rails app using RSpec and FactoryBot
I tried using the GitHub repository as a library server
I tried DI with Ruby
I tried node-jt400 (IFS write)
[Rails] I tried using the button_to method for the first time