Ok I have been able to setup wicket 1.2.6 to jdev and produce a helloworld of
my own.
After I tried it with 1.3 beta 4, even though I made the changes proposed to
migrate I could not run it successgully (using JDeveloper).
I will provide the web.xml, HelloWorld.java, HelloWorld.html,
HelloWorldApplication.java and index.html of my example, just in case there
is someone that can help me, or has an idea for my problem. When i run the
index page, it cannot find the page (http 404).
Web.xml
__
web-app
context-param
param-nameconfiguration/param-name
param-valuedevelopment/param-value
/context-param
filter
filter-nameHelloWorldApplication/filter-name
filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name
param-valuemypackage.HelloWorldApplication/param-value
/init-param
/filter
filter-mapping
filter-nameHelloWorldApplication/filter-name
url-pattern/helloworld/*/url-pattern
/filter-mapping
/web-app
___
HelloWorld.java
_
package mypackage;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
public class HelloWorld extends WebPage
{
public HelloWorld()
{
add(new Label(message, Hello World!));
}
}
__
HelloWorld.html
_
?xml version=1.0 encoding=UTF-8?
html xmlns=http://www.w3.org/1999/xhtml;
head
titleWicket Examples - helloworld/title
link rel=stylesheet type=text/css href=style.css/
/head
body
Message goes here
/body
/html
___
index.html
_
html xmlns:wicket=http://wicket.apache.org/;
head
titleWicket examples/title
link rel=stylesheet type=text/css href=style.css/
/head
body
p
h1Wicket Example/h1
table
trtd align=right
helloworld helloworld /tdtd - Everyone's favorite
example/td/tr
/table
/p
/body
/html
__
PS. Index is located on home and all other under mypackage.
--
View this message in context:
http://www.nabble.com/JDeveloper-and-Wicket-tf4730313.html#a13609213
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]