Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not determine Markup. Component is not yet connected to a parent in Wicket

I am getting the "Can not determine Markup. Component is not yet connected to a parent" issue in Wicket.I see that the html files are present in the package where class files are present in both application installation location of glassfish server and the WAR file.

like image 716
rajesh kumar Avatar asked Sep 18 '25 16:09

rajesh kumar


1 Answers

Make sure you include the filtering settings in our pom.xml:

<build>
    <resources>
        <resource>
            <filtering>false</filtering>
            <directory>src/main/resources</directory>
        </resource>
        <resource>
            <filtering>false</filtering>
            <directory>src/main/java</directory>
            <includes>
                <include>**</include>
            </includes>
            <excludes>
                <exclude>**/*.java</exclude>
            </excludes>
        </resource>
    </resources>
    <testResources>
        <testResource>
            <filtering>false</filtering>
            <directory>src/test/resources</directory>
        </testResource>
        <testResource>
            <filtering>false</filtering>
            <directory>src/test/java</directory>
            <includes>
                <include>**</include>
            </includes>
            <excludes>
                <exclude>**/*.java</exclude>
            </excludes>
        </testResource>
    </testResources>
...
</build>

You can check the generated pom.xml after creating a quickstart project following https://wicket.apache.org/start/quickstart.html

like image 181
cringe Avatar answered Sep 21 '25 06:09

cringe