remove the void before your constructor
On 8/2/08, alex2008 <[EMAIL PROTECTED]> wrote:
>
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]