You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by marcelp <ma...@deltalloyd.nl> on 2011/08/09 09:29:34 UTC
Wicket examples in new version
Hello,
I ran the wicket examples in my Eclipse without any problems (after
importing as Maven project from the src/wicket-examples). The wicket version
here is appearantly 1.4.17.
In my project at work we have the latest wicket version
<wicket.version>1.5-RC5.1</wicket.version>
Now, here do some of the examples not work. For example the repeater example
has a file called DatabaseLocater.java. here I get import
org.apache.wicket.RequestCycle cannot be resolved.
What can I do to get the examples work in the latest version?
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-examples-in-new-version-tp3729204p3729204.html
Sent from the Users forum 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
Re: Wicket examples in new version
Posted by michael fliegner <mi...@hamburg.de>.
Had the same Question.
Look at FormPage.java, FormPage.html and FormPage$ActionPanel.html in the
wicket examples.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-examples-in-new-version-tp3729204p4650570.html
Sent from the Users forum 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
Re: Wicket examples in new version
Posted by marcelp <ma...@deltalloyd.nl>.
Hi martin,
Like i said in my first post, when I import as Mavenproject then it works
fine. When I copy and paste some of the files from the examples to my true
project (like what i am doing with the simplepage because I need this
exactly) it doesn't work completely. What I first noticed is that some code
from the examples needed changes. Contructors had different parameters for
example.
So now I have ths problem with Actionpanel
Last cause: Failed to find markup file associated. ActionPanel: [ActionPanel
[Component id = actions]]
When I change my code from SimplePage.java
item.add(new ActionPanel("actions", item.getModel()));
into
item.add(new Label("actions", "Select"));
it does work, however it has no click functionality obviously.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-examples-in-new-version-tp3729204p3729678.html
Sent from the Users forum 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
Re: Wicket examples in new version
Posted by Martin Grigorov <mg...@apache.org>.
How exactly do you start the examples ?
I run org.apache.wicket.examples.StartExamples as Java Application and
all repeaters work fine in current trunk.
On Tue, Aug 9, 2011 at 2:11 PM, marcelp <ma...@deltalloyd.nl> wrote:
> THe HTML code got deleted in previous message. Should read: span
> wicket:id="actions" [actions] with brackets
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-examples-in-new-version-tp3729204p3729633.html
> Sent from the Users forum 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
>
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket examples in new version
Posted by marcelp <ma...@deltalloyd.nl>.
THe HTML code got deleted in previous message. Should read: span
wicket:id="actions" [actions] with brackets
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-examples-in-new-version-tp3729204p3729633.html
Sent from the Users forum 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
Re: Wicket examples in new version
Posted by marcelp <ma...@deltalloyd.nl>.
Hmm, I can't seem to get to the problem myself.
Last cause: Failed to find markup file associated. ActionPanel: [ActionPanel
[Component id = actions]]
Root cause:org.apache.wicket.markup.MarkupNotFoundException: Failed to find
markup file associated. ActionPanel: [ActionPanel [Component id = actions]]
at
org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.getMarkup(PanelMarkupSourcingStrategy.java:63)
at org.apache.wicket.MarkupContainer.getMarkup(MarkupContainer.java:464)
at
org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:669)
at
org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:50)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2584)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1537)
etc
The SimplePage from the examples has the problem.
Java:
item.add(new ActionPanel("actions", item.getModel()));
HTML:
<td>[actions]</td>
The BasePage.java has a class
class ActionPanel extends Panel
{
/**
* @param id
* component id
* @param model
* model for contact
*/
public ActionPanel(String id, IModel<Contact> model)
{
super(id, model);
add(new Link("select")
{
@Override
public void onClick()
{
selected = (Contact)getParent().getDefaultModelObject();
}
});
}
}
Anyone got any ideas?
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-examples-in-new-version-tp3729204p3729627.html
Sent from the Users forum 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
Re: Wicket examples in new version
Posted by marcelp <ma...@deltalloyd.nl>.
Hi Sven,
You are right. I did mix them up. I got it compiling now but I get runtime
exceptions. I might come back ;-0 Thanks for the hint.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-examples-in-new-version-tp3729204p3729516.html
Sent from the Users forum 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
Re: Wicket examples in new version
Posted by Sven Meier <sv...@meiers.net>.
Seems you're mixing 1.4.x examples with 1.5 core, you should check your
classpath.
Hope this helps
Sven
On 08/09/2011 09:29 AM, marcelp wrote:
> Hello,
>
> I ran the wicket examples in my Eclipse without any problems (after
> importing as Maven project from the src/wicket-examples). The wicket version
> here is appearantly 1.4.17.
>
> In my project at work we have the latest wicket version
> <wicket.version>1.5-RC5.1</wicket.version>
>
> Now, here do some of the examples not work. For example the repeater example
> has a file called DatabaseLocater.java. here I get import
> org.apache.wicket.RequestCycle cannot be resolved.
>
> What can I do to get the examples work in the latest version?
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-examples-in-new-version-tp3729204p3729204.html
> Sent from the Users forum 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org