wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alex2008 <alekirk2...@yahoo.it>
Subject Mistake on extending panel
Date Sat, 02 Aug 2008 08:12:36 GMT

package wicketapp;

import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.markup.html.panel.Panel;

/**
 *
 * @author alearchlinux
 */
public class LogoutPanel extends Panel {
    
    public void LogoutPanel(String id) {
        super(id);
        
        .........
    }

}

I obtain this errors:
Compiling 1 source file to
/dati/sviluppo/java/wicketapp/build/web/WEB-INF/classes
/dati/sviluppo/java/wicketapp/src/java/wicketapp/LogoutPanel.java:20: cannot
find symbol
symbol  : constructor Panel()
location: class org.apache.wicket.markup.html.panel.Panel
public class LogoutPanel extends Panel {
/dati/sviluppo/java/wicketapp/src/java/wicketapp/LogoutPanel.java:23: call
to super must be first statement in constructor
        super(id);
2 errors
/dati/sviluppo/java/wicketapp/nbproject/build-impl.xml:420: The following
error occurred while executing this line:
/dati/sviluppo/java/wicketapp/nbproject/build-impl.xml:213: Compile failed;
see the compiler error output for details.
BUILD FAILED (total time: 0 seconds)

build-impl.xml
....
<target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
        <fail unless="javac.includes">Must select some files in the IDE or
set javac.includes</fail>
        <webproject2:javac>
            <customize>
                <patternset includes="${javac.includes}"/>
            </customize>
        </webproject2:javac>
        <copy todir="${build.classes.dir}">
            <fileset dir="${src.dir}" excludes="${build.classes.excludes}"/>
        </copy>
    </target>
...
The line 420 is <webproject2:javac>.

 <javac debug="@{debug}" deprecation="${javac.deprecation}"
destdir="@{destdir}" encoding="${source.encoding}" includeantruntime="false"
source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
                    <classpath>
                        <path path="@{classpath}"/>
                    </classpath>
                    <compilerarg line="${javac.compilerargs}
${javac.compilerargs.jaxws}"/>
                    <customize/>
                </javac>

The line 213 is <javac debug="@{debug}" deprecation="${javac.deprecation}" .

I have tried compiling with jdk 1.6.x and jdk 1.5.x but the problem remain
and i can't use class that extend panel.:,(
-- 
View this message in context: http://www.nabble.com/Mistake-on-extending-panel-tp18787128p18787128.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message