Re: problem at startup

2008-06-28 Thread Sergiy Yevtushenko

Maarten Bosteels wrote:

I think an "mvn clean compile" will solve this.


It doesn't. I've tried this as well as many other things including fresh wicket 
sources install from svn. Also, the issue is reproducible with quickstart (with 
obvious change in pom.xml - adding of proper compiler version) using mvn jetty:run.


Regards,
Sergiy.
*-
[EMAIL PROTECTED] http://es.os2.ru/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem at startup

2008-06-27 Thread Sergiy Yevtushenko

Timo Rantalaiho wrote:

Me too. Probably it worth to report the issue to Sun, because it looks like 
JVM issue.


Or searching in the Bug parade, in the early 1.5.0_x versions
there are a lot of bugs that are fixed later. What JVM version
are you using?


java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)

Regards,
Sergiy.
*-
[EMAIL PROTECTED] http://es.os2.ru/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem at startup

2008-06-26 Thread Sergiy Yevtushenko

Igor Vaynberg wrote:

we removed those methods because they are declared in java.util.map

IValueMap extends Map

and map has Object put so i dont see why it wouldnt
find the method...


Me too. Probably it worth to report the issue to Sun, because it looks like JVM 
issue.


Regards,
Sergiy.
*-
[EMAIL PROTECTED] http://es.os2.ru/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem at startup

2008-06-26 Thread Sergiy Yevtushenko

Igor Vaynberg wrote:


what version are you on?


I've resolved the issue by rolling back IValueMap.java from latest 669997 to 
previous 660341. Differences between these two versions are following:


...
--- IValueMap.java.660341   2008-06-26 23:54:09.0 +0300
+++ IValueMap.java.669997   2008-06-27 07:57:07.0 +0300
@@ -35,11 +35,6 @@
 public interface IValueMap extends Map
 {
/**
-* @see java.util.Map#clear()
-*/
-   void clear();
-
-   /**
 * Retrieves a boolean value by key.
 *
 * @param key
@@ -205,21 +200,6 @@
IValueMap makeImmutable();

/**
-* @see java.util.Map#put(Object, Object)
-*/
-   Object put(final String key, final Object value);
-
-   /**
-* @see java.util.Map#putAll(java.util.Map)
-*/
-   void putAll(final Map map);
-
-   /**
-* @see java.util.Map#remove(java.lang.Object)
-*/
-   Object remove(final Object key);
-
-   /**
 	 * Provided that the hash key is a String and you need to access 
the value
 	 * ignoring the key's case (upper- or lowercase letters), then you may use 
this method to get

 * the correct writing.
...


Regards,
Sergiy.
*-
[EMAIL PROTECTED] http://es.os2.ru/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem at startup

2008-06-26 Thread Sergiy Yevtushenko

Hi,

At some point after refreshing wicket sources to latest from repository, I 
started getting following error at jetty startup:


...
java.lang.NoSuchMethodError: 
org.apache.wicket.util.value.IValueMap.put(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

at org.apache.wicket.markup.parser.XmlTag.put(XmlTag.java:454)
at 
org.apache.wicket.markup.parser.XmlPullParser.parseTagText(XmlPullParser.java:635)
at 
org.apache.wicket.markup.parser.XmlPullParser.next(XmlPullParser.java:288)
at 
org.apache.wicket.markup.parser.XmlPullParser.nextTag(XmlPullParser.java:423)
at 
org.apache.wicket.protocol.http.WicketFilter.getFilterPath(WicketFilter.java:682)

at 
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:519)
(jetty part skipped)
...

Is it a known issue or I met something new?

Regards,
Sergiy.
*-
[EMAIL PROTECTED] http://es.os2.ru/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: a note about AbstractSingleSelectChoice

2008-02-07 Thread Sergiy Yevtushenko
Igor Vaynberg wrote:
> please add to jira...

Done. Issue WICKET-1331.

Regards,
Sergiy.
*-
[EMAIL PROTECTED] http://es.os2.ru/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



a note about AbstractSingleSelectChoice

2008-02-07 Thread Sergiy Yevtushenko
Hi all,

In my app I was ought to subclass DropDownChoice just because of one small
implementation detail of AbstractSingleSelectChoice.getModelValue():

...
public String getModelValue()
{
final Object object = getModelObject();
if (object != null)
{
int index = getChoices().indexOf(object); //<<-
return getChoiceRenderer().getIdValue(object, index);
}
return NO_SELECTION_VALUE;
}
...

In case when getModelObject() returns, for example string (or any other kind of
key value) while list contains something different (for example POJOs with
key-value pairs), getChoices().indexOf(object) returns -1. It happens because
indexOf() usually implemented so it calls equals() for passed key and provides
element list as a value, while in this case element list is more "smart" and can
match itself to passed key (of course with proper equals() method). Probably it
worth to consider replace call to indexOf() with loop and reverse the check
(i.e. call equals() for list elements passing key as a parameter). This should
not cause problems with existing code, but may slightly simplify life in cases
similar to the above. Similar issue also exists in
ListMultipleChoice.getModelValue().

Regards,
Sergiy.
*-
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Feedback & AjaxButton

2008-01-22 Thread Sergiy Yevtushenko
Jean-Baptiste Bellet wrote:

I guess that you need call indicator.setOutputMarkupId(true) before adding it to
page.

Regards,
Sergiy.
*-
[EMAIL PROTECTED] http://es.os2.ru/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



redirection after authentication

2008-01-10 Thread Sergiy Yevtushenko
Hello!

I'm playing with Wicket and among other things I've tried simple authentication
based on the http://wicketstuff.org/wicket13/authentication/ example. Everything
works fine except one thing: when user tries to login first time it is
redirected to the root index.html instead of webapp page. If to try press Back
button in browser and login again, everything works fine. Wicket version 1.3.
Pages are linked as follows:

Initial application page:

Link to: App page
Link to: Logoff page

App page:

Link to: Logoff page


Login/logoff pages and classes are almost exact copies of MySignInPage.html,
MySignInPage.java, MySignOutPage.html, MySignOutPage.java from the example.

Tomcat is configured so:

conf/Catalina/localhost/myapp.xml <- contains context
web.xml URL filter looks so: /*

When redirection fails, URL looks like so:
http://localhost:8880/index.html?wicket:bookmarkablePage=%3Atest.app.web.AppPage

I guess something is wrong in configuration or I did hit some known issue.

Any comments or suggestions?

Regards,
Sergiy.
*-
[EMAIL PROTECTED] http://es.os2.ru/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]