java.lang.ClassNotFoundException: org.apache.wicket.request.UrlUtils

2013-06-25 Thread paulstar
I am upgrading from wicket 1.5.8 to 1.5.10.  Compilation is fine but ran into
the exception at the very first page.

I look at the source code and javadoc of 1.5.10 (and even 1.5.8), there is
only one class ClientInfo under org.apache.wicket.request.  So where is the 
org.apache.wicket.request.UrlUtils?

thanks!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/java-lang-ClassNotFoundException-org-apache-wicket-request-UrlUtils-tp4659787.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: java.lang.ClassNotFoundException: org.apache.wicket.request.UrlUtils

2013-06-25 Thread paulstar
That is the problem.  Thanks!!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/java-lang-ClassNotFoundException-org-apache-wicket-request-UrlUtils-tp4659787p4659789.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket page has a redirect loop

2012-06-05 Thread paulstar
You are right.  I found out the 'markupProvider' is null by debugging, thanks
to Tom to fores me to do it.

In Wicket 1.3  1.4, I overrided 'getAssociatedMarkupStream(boolean
throwException)' so that the class extends from Fragment doesn't have to
provide 'markupProvider'.  After upgraded to Wicket 1.5, I simply set the
'markupProvider' to null so that it compiled, but ran into NPE.

So I changed my code from:
public static class FormField extends Fragment {
public FormField(String markupId, Component c, IModel label, 
IModel m) {
super(fragmentId, markupId, null, m);
this.labelModel = label;
this.c = c;
}
..
}

to:
public static class FormField extends Fragment {
public FormField(String markupId, Component c, IModel label, 
IModel m,
MarkupContainer markupProvider) {
super(fragmentId, markupId, markupProvider, m);
this.labelModel = label;
this.c = c;
}
..
}

The problem is there are many 'new FormField()' codes, a big changes.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-page-has-a-redirect-loop-tp4649664p4649746.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Loop.populateItem() while migrating from Wicket 1.4 to 1.5

2012-06-01 Thread paulstar
Thanks for looking into this.  It seems to be a deployment issue.  The way I
did it is right for Wicket 1.5.  

Now I am facing an even bigger problem.  I will post another one regarding
redirect loop.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Loop-populateItem-while-migrating-from-Wicket-1-4-to-1-5-tp4649598p4649663.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Loop.populateItem() while migrating from Wicket 1.4 to 1.5

2012-05-30 Thread paulstar
in Wicket 1.4, this works fine:

   this.form.add(new Loop(ccformfields, ccformfields.size())
   {
   @Override
   protected void populateItem(LoopItem item)
   {
   int index = item.getIteration();
   final CcFormPanel.FormField frag =
ccformfields.get(index);
   item.add(new TableRow(frag));
   }
   });


Now I am upgrading to Wicket 1.5 as such:

   this.form.add(new Loop(ccformfields, ccformfields.size())
   {
   @Override
   protected void populateItem(LoopItem item)
   {
   int index = item.getIndex();
   final CcFormPanel.FormField frag =
ccformfields.get(index);
   item.add(new TableRow(frag));
   }
   });

Here are the exception:

Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
   at java.util.ArrayList.RangeCheck(Unknown Source)
   at java.util.ArrayList.get(Unknown Source)
   at
com.xxx.cc.components.CcFormPanel$1.populateItem(CcFormPanel.java:202)
   at org.apache.wicket.markup.html.list.Loop.onPopulate(Loop.java:100)
   at
org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:119)
   at
org.apache.wicket.Component.internalBeforeRender(Component.java:993)
   at org.apache.wicket.Component.beforeRender(Component.java:1027)
   at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1743)
   ... 49 more

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Loop-populateItem-while-migrating-from-Wicket-1-4-to-1-5-tp4649598.html
Sent from the Users forum mailing list archive at Nabble.com.

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