Re: java.lang.IllegalArgumentException: Argument 'name' may not be null or empty.

2014-08-11 Thread Karl-Heinz Golz
Hi Martin,

I checked the logs and I can confirm: the reason for all exceptions was
the url:
https://www.tierfundus.de/wicket/bookmarkable/

But I wonder how can such a url happen? I'm almost sure the user did not
modify the url in her browser manually.
 
Regards/Karl-heinz


Am 09.08.2014 um 15:34 schrieb Martin Grigorov:
 Hi,

 This kind of error may happen with request like
 http://localhost:8080/wicket/bookmarkable/, assuming the app home page is
 at http://localhost:8080/
 I'll add a ticket to improve the default mappers for this case.

 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov


 On Fri, Aug 8, 2014 at 1:26 PM, Karl-Heinz Golz karl-heinz.g...@t-online.de
 wrote:
 Hello,

 sometimes following exception is thrown (wicket 6.5.0):

 org.apache.wicket.DefaultExceptionMapper: Unexpected error occurred
 java.lang.IllegalArgumentException: Argument 'name' may not be null or
 empty.
 at org.apache.wicket.util.lang.Args.notEmpty(Args.java:64)
 at

 org.apache.wicket.core.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:137)
 at

 org.apache.wicket.core.request.mapper.BookmarkableMapper.parseRequest(BookmarkableMapper.java:110)
 at

 org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:282)
 at

 org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:152)
 at

 org.apache.wicket.protocol.https.HttpsMapper.mapRequest(HttpsMapper.java:92)
 at

 org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:183)
 at

 org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:208)
 at

 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:282)
 at

 org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:244)
 at

 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
 at

 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:267)
 at

 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at

 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
 net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:203)
 at
 net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:181)
 at

 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at

 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at

 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at

 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at

 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at

 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
 at

 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
 at

 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
 at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 at java.lang.Thread.run(Thread.java:701)


 That occured approximately once per month and I ignored it but today it
 happened already about 10 times.
 Therefore I would like to find out what the reason is.

 Could someone give me a hint.

 Thanks in advance
 Karl-Heinz









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



Re: java.lang.IllegalArgumentException: Argument 'name' may not be null or empty.

2014-08-11 Thread Martin Grigorov
Hi,

I have no idea.
If you find a use case where Wicket generates such broken urls then please
report it!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Mon, Aug 11, 2014 at 9:00 AM, Karl-Heinz Golz 
karl-heinz.g...@t-online.de wrote:

 Hi Martin,

 I checked the logs and I can confirm: the reason for all exceptions was
 the url:
 https://www.tierfundus.de/wicket/bookmarkable/

 But I wonder how can such a url happen? I'm almost sure the user did not
 modify the url in her browser manually.

 Regards/Karl-heinz


 Am 09.08.2014 um 15:34 schrieb Martin Grigorov:
  Hi,
 
  This kind of error may happen with request like
  http://localhost:8080/wicket/bookmarkable/, assuming the app home page
 is
  at http://localhost:8080/
  I'll add a ticket to improve the default mappers for this case.
 
  Martin Grigorov
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
 
  On Fri, Aug 8, 2014 at 1:26 PM, Karl-Heinz Golz 
 karl-heinz.g...@t-online.de
  wrote:
  Hello,
 
  sometimes following exception is thrown (wicket 6.5.0):
 
  org.apache.wicket.DefaultExceptionMapper: Unexpected error occurred
  java.lang.IllegalArgumentException: Argument 'name' may not be null or
  empty.
  at org.apache.wicket.util.lang.Args.notEmpty(Args.java:64)
  at
 
 
 org.apache.wicket.core.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:137)
  at
 
 
 org.apache.wicket.core.request.mapper.BookmarkableMapper.parseRequest(BookmarkableMapper.java:110)
  at
 
 
 org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:282)
  at
 
 
 org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:152)
  at
 
 
 org.apache.wicket.protocol.https.HttpsMapper.mapRequest(HttpsMapper.java:92)
  at
 
 
 org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:183)
  at
 
 
 org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:208)
  at
 
 
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:282)
  at
 
 
 org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:244)
  at
 
 
 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
  at
 
 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:267)
  at
 
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  at
 
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at
  net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:203)
  at
  net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:181)
  at
 
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  at
 
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at
 
 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  at
 
 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  at
 
 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  at
 
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  at
 
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
  at
 
 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  at
 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
  at
 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
  at
 
 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
  at
  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
  at java.lang.Thread.run(Thread.java:701)
 
 
  That occured approximately once per month and I ignored it but today it
  happened already about 10 times.
  Therefore I would like to find out what the reason is.
 
  Could someone give me a hint.
 
  Thanks in advance
  Karl-Heinz
 
 
 
 
 
 
 


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




Re: Wicket / WildFly 8: Log4J / SLF4J ?

2014-08-11 Thread Sebastien
Hi Martin,

I've removed all log4.properties files and... it's working! :)
Thanks a million for your help! I am sure this will prevent some attacks of
nerves when users will redeploy their wicket apps from JBoss7 to WildFly8..

Best regards,
Sebastien.

PS: Stefan  David, thanks for your help too! :)

On Fri, Aug 8, 2014 at 8:24 PM, Martin Grigorov mgrigo...@apache.org
wrote:

 I have also removed log4j.jar from WEB-INF/lib. Maybe it is related too but
 the logs appeared after removing log4j.properties


 On Fri, Aug 8, 2014 at 8:05 PM, Sebastien seb...@gmail.com wrote:

  Hi Martin,
 
  I tried but I should have missed one because it was not working with my
  ear, I will test it again on Monday, but anyway you probably saved my
  week-end! ;)
  I also tried with a simple wicket quickstart and of course, it did not
 work
  because of the properties file. So there will be another question : how
  will/can you handle the quickstart for this particular situation?
 

 JEE has never been portable, no matter what JEE big players claim :-)
 We can add yet another drop-down in the quickstart generator form that adds
 an additional -D (system property) or -P (Maven profile) which can be used
 by maven-archetype-plugin to filter out the problematic files ?! I haven't
 played with maven-archetype-plugin since a while but I guess it should be
 possible.
 First tell us what fixes your problem :-)




Re: Wicket / WildFly 8: Log4J / SLF4J ?

2014-08-11 Thread Martin Grigorov
Cool!

I'll see whether it is possible to filter out log4j.properties with
maven-archetype-plugin and if it is then I'll update the quickstart
generator.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Mon, Aug 11, 2014 at 10:39 AM, Sebastien seb...@gmail.com wrote:

 Hi Martin,

 I've removed all log4.properties files and... it's working! :)
 Thanks a million for your help! I am sure this will prevent some attacks of
 nerves when users will redeploy their wicket apps from JBoss7 to WildFly8..

 Best regards,
 Sebastien.

 PS: Stefan  David, thanks for your help too! :)

 On Fri, Aug 8, 2014 at 8:24 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

  I have also removed log4j.jar from WEB-INF/lib. Maybe it is related too
 but
  the logs appeared after removing log4j.properties
 
 
  On Fri, Aug 8, 2014 at 8:05 PM, Sebastien seb...@gmail.com wrote:
 
   Hi Martin,
  
   I tried but I should have missed one because it was not working with my
   ear, I will test it again on Monday, but anyway you probably saved my
   week-end! ;)
   I also tried with a simple wicket quickstart and of course, it did not
  work
   because of the properties file. So there will be another question : how
   will/can you handle the quickstart for this particular situation?
  
 
  JEE has never been portable, no matter what JEE big players claim :-)
  We can add yet another drop-down in the quickstart generator form that
 adds
  an additional -D (system property) or -P (Maven profile) which can be
 used
  by maven-archetype-plugin to filter out the problematic files ?! I
 haven't
  played with maven-archetype-plugin since a while but I guess it should be
  possible.
  First tell us what fixes your problem :-)
 
 



WebSockets: IKey not Serializable ?

2014-08-11 Thread Sebastien
Hi all,

I've got a simple use-case: I would like to run a long-processing task
(through as EJB) and update the UI according to the progress. So, I would
like to see how I can achieve this using native websockets
(wicket-native-websocket-javax).

From various samples I saw (for instance [1]), the pageId is kept and later
we use this pageId to retrieve the connection. It seems that things changed
a little and pageId as been replaced by an IKey instance, which is not
Serializable. So code like run into an exception:

this.add(new WebSocketBehavior() {
private static final long serialVersionUID = 1L;

@Override
protected void onConnect(ConnectedMessage message)
{
super.onConnect(message);

LOG.info(Client connected);

applicationName = message.getApplication().getName();
sessionId = message.getSessionId();
key = message.getKey();
}
});

This leads to:
private org.apache.wicket.protocol.ws.api.registry.IKey
MyPage.key [class=org.apache.wicket.protocol.ws.api.registry.PageIdKey]
- field that is causing the problem

Is it intended that IKey is not Serializable? Am I supposed to use new
PageIdKey(butwhatpageid) ?

In the wicket guide, the snippet [2] does use the key... but it isn't
declared so I don't see where it comes from... Maybe a little update would
be useful for beginners like me! :)

Many thanks in advance  best regards,
Sebastien.

[1] http://wicketinaction.com/2012/07/wicket-6-native-websockets/
[2] http://wicket.apache.org/guide/guide/nativewebsockets.html


Re: WebSockets: IKey not Serializable ?

2014-08-11 Thread Martin Grigorov
It should be Serializable (IClusterable for consistency).
Please file a ticket.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Mon, Aug 11, 2014 at 3:12 PM, Sebastien seb...@gmail.com wrote:

 Hi all,

 I've got a simple use-case: I would like to run a long-processing task
 (through as EJB) and update the UI according to the progress. So, I would
 like to see how I can achieve this using native websockets
 (wicket-native-websocket-javax).

 From various samples I saw (for instance [1]), the pageId is kept and later
 we use this pageId to retrieve the connection. It seems that things changed
 a little and pageId as been replaced by an IKey instance, which is not
 Serializable. So code like run into an exception:

 this.add(new WebSocketBehavior() {
 private static final long serialVersionUID = 1L;

 @Override
 protected void onConnect(ConnectedMessage message)
 {
 super.onConnect(message);

 LOG.info(Client connected);

 applicationName = message.getApplication().getName();
 sessionId = message.getSessionId();
 key = message.getKey();
 }
 });

 This leads to:
 private org.apache.wicket.protocol.ws.api.registry.IKey
 MyPage.key [class=org.apache.wicket.protocol.ws.api.registry.PageIdKey]
 - field that is causing the problem

 Is it intended that IKey is not Serializable? Am I supposed to use new
 PageIdKey(butwhatpageid) ?

 In the wicket guide, the snippet [2] does use the key... but it isn't
 declared so I don't see where it comes from... Maybe a little update would
 be useful for beginners like me! :)

 Many thanks in advance  best regards,
 Sebastien.

 [1] http://wicketinaction.com/2012/07/wicket-6-native-websockets/
 [2] http://wicket.apache.org/guide/guide/nativewebsockets.html



Re: WebSockets: IKey not Serializable ?

2014-08-11 Thread Sebastien
Done, thanks Martin!
https://issues.apache.org/jira/browse/WICKET-5670



On Mon, Aug 11, 2014 at 3:18 PM, Martin Grigorov mgrigo...@apache.org
wrote:

 It should be Serializable (IClusterable for consistency).
 Please file a ticket.

 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov


 On Mon, Aug 11, 2014 at 3:12 PM, Sebastien seb...@gmail.com wrote:

  Hi all,
 
  I've got a simple use-case: I would like to run a long-processing task
  (through as EJB) and update the UI according to the progress. So, I would
  like to see how I can achieve this using native websockets
  (wicket-native-websocket-javax).
 
  From various samples I saw (for instance [1]), the pageId is kept and
 later
  we use this pageId to retrieve the connection. It seems that things
 changed
  a little and pageId as been replaced by an IKey instance, which is not
  Serializable. So code like run into an exception:
 
  this.add(new WebSocketBehavior() {
  private static final long serialVersionUID = 1L;
 
  @Override
  protected void onConnect(ConnectedMessage message)
  {
  super.onConnect(message);
 
  LOG.info(Client connected);
 
  applicationName = message.getApplication().getName();
  sessionId = message.getSessionId();
  key = message.getKey();
  }
  });
 
  This leads to:
  private org.apache.wicket.protocol.ws.api.registry.IKey
  MyPage.key [class=org.apache.wicket.protocol.ws.api.registry.PageIdKey]
  - field that is causing the problem
 
  Is it intended that IKey is not Serializable? Am I supposed to use new
  PageIdKey(butwhatpageid) ?
 
  In the wicket guide, the snippet [2] does use the key... but it isn't
  declared so I don't see where it comes from... Maybe a little update
 would
  be useful for beginners like me! :)
 
  Many thanks in advance  best regards,
  Sebastien.
 
  [1] http://wicketinaction.com/2012/07/wicket-6-native-websockets/
  [2] http://wicket.apache.org/guide/guide/nativewebsockets.html
 



Re: WebSockets: IKey not Serializable ?

2014-08-11 Thread Martin Grigorov
Improved!
Thanks!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Mon, Aug 11, 2014 at 3:27 PM, Sebastien seb...@gmail.com wrote:

 Done, thanks Martin!
 https://issues.apache.org/jira/browse/WICKET-5670



 On Mon, Aug 11, 2014 at 3:18 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

  It should be Serializable (IClusterable for consistency).
  Please file a ticket.
 
  Martin Grigorov
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
 
  On Mon, Aug 11, 2014 at 3:12 PM, Sebastien seb...@gmail.com wrote:
 
   Hi all,
  
   I've got a simple use-case: I would like to run a long-processing task
   (through as EJB) and update the UI according to the progress. So, I
 would
   like to see how I can achieve this using native websockets
   (wicket-native-websocket-javax).
  
   From various samples I saw (for instance [1]), the pageId is kept and
  later
   we use this pageId to retrieve the connection. It seems that things
  changed
   a little and pageId as been replaced by an IKey instance, which is not
   Serializable. So code like run into an exception:
  
   this.add(new WebSocketBehavior() {
   private static final long serialVersionUID = 1L;
  
   @Override
   protected void onConnect(ConnectedMessage message)
   {
   super.onConnect(message);
  
   LOG.info(Client connected);
  
   applicationName = message.getApplication().getName();
   sessionId = message.getSessionId();
   key = message.getKey();
   }
   });
  
   This leads to:
   private org.apache.wicket.protocol.ws.api.registry.IKey
   MyPage.key [class=org.apache.wicket.protocol.ws.api.registry.PageIdKey]
   - field that is causing the problem
  
   Is it intended that IKey is not Serializable? Am I supposed to use new
   PageIdKey(butwhatpageid) ?
  
   In the wicket guide, the snippet [2] does use the key... but it isn't
   declared so I don't see where it comes from... Maybe a little update
  would
   be useful for beginners like me! :)
  
   Many thanks in advance  best regards,
   Sebastien.
  
   [1] http://wicketinaction.com/2012/07/wicket-6-native-websockets/
   [2] http://wicket.apache.org/guide/guide/nativewebsockets.html
  
 



Re: WebSockets: IKey not Serializable ?

2014-08-11 Thread Sebastien
Cloned, build, tested  approved! Many thanks for this super-quick fix,
that's rocks! :)


On Mon, Aug 11, 2014 at 3:29 PM, Martin Grigorov mgrigo...@apache.org
wrote:

 Improved!
 Thanks!

 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov


 On Mon, Aug 11, 2014 at 3:27 PM, Sebastien seb...@gmail.com wrote:

  Done, thanks Martin!
  https://issues.apache.org/jira/browse/WICKET-5670
 
 
 
  On Mon, Aug 11, 2014 at 3:18 PM, Martin Grigorov mgrigo...@apache.org
  wrote:
 
   It should be Serializable (IClusterable for consistency).
   Please file a ticket.
  
   Martin Grigorov
   Wicket Training and Consulting
   https://twitter.com/mtgrigorov
  
  
   On Mon, Aug 11, 2014 at 3:12 PM, Sebastien seb...@gmail.com wrote:
  
Hi all,
   
I've got a simple use-case: I would like to run a long-processing
 task
(through as EJB) and update the UI according to the progress. So, I
  would
like to see how I can achieve this using native websockets
(wicket-native-websocket-javax).
   
From various samples I saw (for instance [1]), the pageId is kept and
   later
we use this pageId to retrieve the connection. It seems that things
   changed
a little and pageId as been replaced by an IKey instance, which is
 not
Serializable. So code like run into an exception:
   
this.add(new WebSocketBehavior() {
private static final long serialVersionUID = 1L;
   
@Override
protected void onConnect(ConnectedMessage message)
{
super.onConnect(message);
   
LOG.info(Client connected);
   
applicationName = message.getApplication().getName();
sessionId = message.getSessionId();
key = message.getKey();
}
});
   
This leads to:
private org.apache.wicket.protocol.ws.api.registry.IKey
MyPage.key
 [class=org.apache.wicket.protocol.ws.api.registry.PageIdKey]
- field that is causing the problem
   
Is it intended that IKey is not Serializable? Am I supposed to use
 new
PageIdKey(butwhatpageid) ?
   
In the wicket guide, the snippet [2] does use the key... but it isn't
declared so I don't see where it comes from... Maybe a little update
   would
be useful for beginners like me! :)
   
Many thanks in advance  best regards,
Sebastien.
   
[1] http://wicketinaction.com/2012/07/wicket-6-native-websockets/
[2] http://wicket.apache.org/guide/guide/nativewebsockets.html
   
  
 



Properties Override

2014-08-11 Thread David Beer
Hi All

I am trying to change some values specified in a properties file for a
third party component. The component is part of the wicket-bootstrap
project and specifies some value read from a properties file. I would like
to override these values from my application, where my panel calls the
component from. What is the best way of doing this I have tried adding a
properties file the same name as my my panel and adding the values. But I
am not having much luck getting them to override the values.

Any suggestions most hopeful.

Thanks

David


Re: Properties Override

2014-08-11 Thread Martin Grigorov
Hi,

What you explained should work.
Give us more details to see what went wrong.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Mon, Aug 11, 2014 at 5:16 PM, David Beer david.m.b...@gmail.com wrote:

 Hi All

 I am trying to change some values specified in a properties file for a
 third party component. The component is part of the wicket-bootstrap
 project and specifies some value read from a properties file. I would like
 to override these values from my application, where my panel calls the
 component from. What is the best way of doing this I have tried adding a
 properties file the same name as my my panel and adding the values. But I
 am not having much luck getting them to override the values.

 Any suggestions most hopeful.

 Thanks

 David



Re: Migration to wicket 7

2014-08-11 Thread Maxim Solodovnik
According to the documentation CSS class names should be set on Application
level.
Previously it was possible to create custom ICssProvider classes and have
multiple different CssProvider for Application
I have tried to extend AjaxFallbackOrderByBorder let's say
MyOrderByBorder and create MyOrderByBorder.properties and it wasn't used

Is there any way right now to create multiple MyOrderByBorder with
different CSS classes?


On 10 August 2014 10:59, Maxim Solodovnik solomax...@gmail.com wrote:

 Thanks a lot


 On 8 August 2014 15:28, Martin Grigorov mgrigo...@apache.org wrote:

 Here it is:

 https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+7.0#MigrationtoWicket7.0-Usei18npropertyfilesforCSSclassnamesWICKET-5257

 Thanks for testing Wicket 7 and reporting such documentation issues!

 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov


 On Thu, Aug 7, 2014 at 7:38 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

  this is the change:
  https://git-wip-us.apache.org/repos/asf?p=wicket.git;a=commit;h=2f87d0b
  it seems we forgot to add a migration entry about it. I'll update it
 soon
  the idea is to use i18n. now Wicket uses #getString() to find the value.
  check the latest master for the keys
 
  Martin Grigorov
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
 
  On Thu, Aug 7, 2014 at 7:31 PM, Maxim Solodovnik solomax...@gmail.com
  wrote:
 
  OK, I was searching the page for the name, and was unable to find it :(
 
  Any example on how to customize AjaxFallbackOrderByBorder without
  CssProvider
  ?
 
 
  On 8 August 2014 00:27, Martin Grigorov mgrigo...@apache.org wrote:
 
  
  
 
 https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+7.0#MigrationtoWicket7.0-AllIXyzSettingsareremovedWICKET-5410
  
   Martin Grigorov
   Wicket Training and Consulting
   https://twitter.com/mtgrigorov
  
  
   On Thu, Aug 7, 2014 at 7:21 PM, Maxim Solodovnik 
 solomax...@gmail.com
   wrote:
  
and IPageSettings
   
sorry for multiple emails :(
   
   
On 8 August 2014 00:19, Maxim Solodovnik solomax...@gmail.com
  wrote:
   
 The guide also missing to
 mention org.apache.wicket.protocol.ws.IWebSocketSettings


 On 8 August 2014 00:18, Maxim Solodovnik solomax...@gmail.com
  wrote:

 Hello All,

 I'm currently trying to migrate to wicket 7.0.0 and currently
  stuck on
 replacing


   
  
 
 org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByLink.CssProvider
 it seems to be removed and Migration guide [1] contains no
  replacement
:(

 I'm trying to use it in custom class extending
   AjaxFallbackOrderByBorder

 Thanks in advance

 [1]

   
  
 
 https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+7.0

 --
 WBR
 Maxim aka solomax




 --
 WBR
 Maxim aka solomax

   
   
   
--
WBR
Maxim aka solomax
   
  
 
 
 
  --
  WBR
  Maxim aka solomax
 
 
 




 --
 WBR
 Maxim aka solomax




-- 
WBR
Maxim aka solomax


Re: Migration to wicket 7

2014-08-11 Thread Martin Grigorov
It should work for MyComponent.properties too.
It uses normal i18n resolving.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Mon, Aug 11, 2014 at 5:24 PM, Maxim Solodovnik solomax...@gmail.com
wrote:

 According to the documentation CSS class names should be set on Application
 level.
 Previously it was possible to create custom ICssProvider classes and have
 multiple different CssProvider for Application
 I have tried to extend AjaxFallbackOrderByBorder let's say
 MyOrderByBorder and create MyOrderByBorder.properties and it wasn't used

 Is there any way right now to create multiple MyOrderByBorder with
 different CSS classes?


 On 10 August 2014 10:59, Maxim Solodovnik solomax...@gmail.com wrote:

  Thanks a lot
 
 
  On 8 August 2014 15:28, Martin Grigorov mgrigo...@apache.org wrote:
 
  Here it is:
 
 
 https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+7.0#MigrationtoWicket7.0-Usei18npropertyfilesforCSSclassnamesWICKET-5257
 
  Thanks for testing Wicket 7 and reporting such documentation issues!
 
  Martin Grigorov
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
 
  On Thu, Aug 7, 2014 at 7:38 PM, Martin Grigorov mgrigo...@apache.org
  wrote:
 
   this is the change:
  
 https://git-wip-us.apache.org/repos/asf?p=wicket.git;a=commit;h=2f87d0b
   it seems we forgot to add a migration entry about it. I'll update it
  soon
   the idea is to use i18n. now Wicket uses #getString() to find the
 value.
   check the latest master for the keys
  
   Martin Grigorov
   Wicket Training and Consulting
   https://twitter.com/mtgrigorov
  
  
   On Thu, Aug 7, 2014 at 7:31 PM, Maxim Solodovnik 
 solomax...@gmail.com
   wrote:
  
   OK, I was searching the page for the name, and was unable to find it
 :(
  
   Any example on how to customize AjaxFallbackOrderByBorder without
   CssProvider
   ?
  
  
   On 8 August 2014 00:27, Martin Grigorov mgrigo...@apache.org
 wrote:
  
   
   
  
 
 https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+7.0#MigrationtoWicket7.0-AllIXyzSettingsareremovedWICKET-5410
   
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
   
   
On Thu, Aug 7, 2014 at 7:21 PM, Maxim Solodovnik 
  solomax...@gmail.com
wrote:
   
 and IPageSettings

 sorry for multiple emails :(


 On 8 August 2014 00:19, Maxim Solodovnik solomax...@gmail.com
   wrote:

  The guide also missing to
  mention org.apache.wicket.protocol.ws.IWebSocketSettings
 
 
  On 8 August 2014 00:18, Maxim Solodovnik solomax...@gmail.com
 
   wrote:
 
  Hello All,
 
  I'm currently trying to migrate to wicket 7.0.0 and currently
   stuck on
  replacing
 
 

   
  
 
 org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByLink.CssProvider
  it seems to be removed and Migration guide [1] contains no
   replacement
 :(
 
  I'm trying to use it in custom class extending
AjaxFallbackOrderByBorder
 
  Thanks in advance
 
  [1]
 

   
  
 
 https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+7.0
 
  --
  WBR
  Maxim aka solomax
 
 
 
 
  --
  WBR
  Maxim aka solomax
 



 --
 WBR
 Maxim aka solomax

   
  
  
  
   --
   WBR
   Maxim aka solomax
  
  
  
 
 
 
 
  --
  WBR
  Maxim aka solomax
 



 --
 WBR
 Maxim aka solomax



Re: Wicket / WildFly 8: Log4J / SLF4J ?

2014-08-11 Thread Martin Grigorov
http://jira.codehaus.org/browse/ARCHETYPE-274
apparently it is not supported for now

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Mon, Aug 11, 2014 at 10:42 AM, Martin Grigorov mgrigo...@apache.org
wrote:

 Cool!

 I'll see whether it is possible to filter out log4j.properties with
 maven-archetype-plugin and if it is then I'll update the quickstart
 generator.

 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov


 On Mon, Aug 11, 2014 at 10:39 AM, Sebastien seb...@gmail.com wrote:

 Hi Martin,

 I've removed all log4.properties files and... it's working! :)
 Thanks a million for your help! I am sure this will prevent some attacks
 of
 nerves when users will redeploy their wicket apps from JBoss7 to
 WildFly8..

 Best regards,
 Sebastien.

 PS: Stefan  David, thanks for your help too! :)

 On Fri, Aug 8, 2014 at 8:24 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

  I have also removed log4j.jar from WEB-INF/lib. Maybe it is related too
 but
  the logs appeared after removing log4j.properties
 
 
  On Fri, Aug 8, 2014 at 8:05 PM, Sebastien seb...@gmail.com wrote:
 
   Hi Martin,
  
   I tried but I should have missed one because it was not working with
 my
   ear, I will test it again on Monday, but anyway you probably saved my
   week-end! ;)
   I also tried with a simple wicket quickstart and of course, it did not
  work
   because of the properties file. So there will be another question :
 how
   will/can you handle the quickstart for this particular situation?
  
 
  JEE has never been portable, no matter what JEE big players claim :-)
  We can add yet another drop-down in the quickstart generator form that
 adds
  an additional -D (system property) or -P (Maven profile) which can be
 used
  by maven-archetype-plugin to filter out the problematic files ?! I
 haven't
  played with maven-archetype-plugin since a while but I guess it should
 be
  possible.
  First tell us what fixes your problem :-)
 
 





Re: Migration to wicket 7

2014-08-11 Thread Maxim Solodovnik
Thanks Martin,

will try to double check


On 11 August 2014 22:29, Martin Grigorov mgrigo...@apache.org wrote:

 It should work for MyComponent.properties too.
 It uses normal i18n resolving.

 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov


 On Mon, Aug 11, 2014 at 5:24 PM, Maxim Solodovnik solomax...@gmail.com
 wrote:

  According to the documentation CSS class names should be set on
 Application
  level.
  Previously it was possible to create custom ICssProvider classes and have
  multiple different CssProvider for Application
  I have tried to extend AjaxFallbackOrderByBorder let's say
  MyOrderByBorder and create MyOrderByBorder.properties and it wasn't
 used
 
  Is there any way right now to create multiple MyOrderByBorder with
  different CSS classes?
 
 
  On 10 August 2014 10:59, Maxim Solodovnik solomax...@gmail.com wrote:
 
   Thanks a lot
  
  
   On 8 August 2014 15:28, Martin Grigorov mgrigo...@apache.org wrote:
  
   Here it is:
  
  
 
 https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+7.0#MigrationtoWicket7.0-Usei18npropertyfilesforCSSclassnamesWICKET-5257
  
   Thanks for testing Wicket 7 and reporting such documentation issues!
  
   Martin Grigorov
   Wicket Training and Consulting
   https://twitter.com/mtgrigorov
  
  
   On Thu, Aug 7, 2014 at 7:38 PM, Martin Grigorov mgrigo...@apache.org
 
   wrote:
  
this is the change:
   
  https://git-wip-us.apache.org/repos/asf?p=wicket.git;a=commit;h=2f87d0b
it seems we forgot to add a migration entry about it. I'll update it
   soon
the idea is to use i18n. now Wicket uses #getString() to find the
  value.
check the latest master for the keys
   
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
   
   
On Thu, Aug 7, 2014 at 7:31 PM, Maxim Solodovnik 
  solomax...@gmail.com
wrote:
   
OK, I was searching the page for the name, and was unable to find
 it
  :(
   
Any example on how to customize AjaxFallbackOrderByBorder without
CssProvider
?
   
   
On 8 August 2014 00:27, Martin Grigorov mgrigo...@apache.org
  wrote:
   


   
  
 
 https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+7.0#MigrationtoWicket7.0-AllIXyzSettingsareremovedWICKET-5410

 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov


 On Thu, Aug 7, 2014 at 7:21 PM, Maxim Solodovnik 
   solomax...@gmail.com
 wrote:

  and IPageSettings
 
  sorry for multiple emails :(
 
 
  On 8 August 2014 00:19, Maxim Solodovnik solomax...@gmail.com
 
wrote:
 
   The guide also missing to
   mention org.apache.wicket.protocol.ws.IWebSocketSettings
  
  
   On 8 August 2014 00:18, Maxim Solodovnik 
 solomax...@gmail.com
  
wrote:
  
   Hello All,
  
   I'm currently trying to migrate to wicket 7.0.0 and
 currently
stuck on
   replacing
  
  
 

   
  
 
 org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByLink.CssProvider
   it seems to be removed and Migration guide [1] contains no
replacement
  :(
  
   I'm trying to use it in custom class extending
 AjaxFallbackOrderByBorder
  
   Thanks in advance
  
   [1]
  
 

   
  
 
 https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+7.0
  
   --
   WBR
   Maxim aka solomax
  
  
  
  
   --
   WBR
   Maxim aka solomax
  
 
 
 
  --
  WBR
  Maxim aka solomax
 

   
   
   
--
WBR
Maxim aka solomax
   
   
   
  
  
  
  
   --
   WBR
   Maxim aka solomax
  
 
 
 
  --
  WBR
  Maxim aka solomax
 




-- 
WBR
Maxim aka solomax


Re: Properties Override

2014-08-11 Thread David Beer
Hi Martin

My properties file is named ProfileImageUploadPanel.properties same as the
the java class except for the extension. In the Java class I reference the
FileInput widget which contains the values I need to overide. The contents
of my properties file is as follows:

browseLabel=Browse

browseLabel being the property I wish to override. As you can see from the
below screen shot the value is still the Original Text. There should be no
elipse at the end.





On 11 August 2014 16:22, Martin Grigorov mgrigo...@apache.org wrote:

 Hi,

 What you explained should work.
 Give us more details to see what went wrong.

 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov


 On Mon, Aug 11, 2014 at 5:16 PM, David Beer david.m.b...@gmail.com
 wrote:

  Hi All
 
  I am trying to change some values specified in a properties file for a
  third party component. The component is part of the wicket-bootstrap
  project and specifies some value read from a properties file. I would
 like
  to override these values from my application, where my panel calls the
  component from. What is the best way of doing this I have tried adding a
  properties file the same name as my my panel and adding the values. But I
  am not having much luck getting them to override the values.
 
  Any suggestions most hopeful.
 
  Thanks
 
  David
 



Re: Properties Override

2014-08-11 Thread Martin Grigorov
Do you set the i18n value in FileInputConfig ?

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Mon, Aug 11, 2014 at 6:07 PM, David Beer david.m.b...@gmail.com wrote:

 Hi Martin

 My properties file is named ProfileImageUploadPanel.properties same as the
 the java class except for the extension. In the Java class I reference the
 FileInput widget which contains the values I need to overide. The contents
 of my properties file is as follows:

 browseLabel=Browse

 browseLabel being the property I wish to override. As you can see from the
 below screen shot the value is still the Original Text. There should be no
 elipse at the end.





 On 11 August 2014 16:22, Martin Grigorov mgrigo...@apache.org wrote:

  Hi,
 
  What you explained should work.
  Give us more details to see what went wrong.
 
  Martin Grigorov
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
 
  On Mon, Aug 11, 2014 at 5:16 PM, David Beer david.m.b...@gmail.com
  wrote:
 
   Hi All
  
   I am trying to change some values specified in a properties file for a
   third party component. The component is part of the wicket-bootstrap
   project and specifies some value read from a properties file. I would
  like
   to override these values from my application, where my panel calls the
   component from. What is the best way of doing this I have tried adding
 a
   properties file the same name as my my panel and adding the values.
 But I
   am not having much luck getting them to override the values.
  
   Any suggestions most hopeful.
  
   Thanks
  
   David
  
 



wicket 6 calling javascript func with parameter in OnDomReadyHeaderItem fails in IE9

2014-08-11 Thread fachhoch
In my component I am adding a script   to OnDomReadyHeaderItem  this script
is call to a function with parameter 




In wicket ajax debug window I see this error



I tried without parameter it works fine, and with parameter in chrome works
fine. 
I am  using IE 9 it fails in IE 9  when js has a parameter.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-6-calling-javascript-func-with-parameter-in-OnDomReadyHeaderItem-fails-in-IE9-tp4667009.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: Properties Override

2014-08-11 Thread David Beer
Nope. Just add the properties like I did with a validator.


On 11 August 2014 17:27, Martin Grigorov mgrigo...@apache.org wrote:

 Do you set the i18n value in FileInputConfig ?

 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov


 On Mon, Aug 11, 2014 at 6:07 PM, David Beer david.m.b...@gmail.com
 wrote:

  Hi Martin
 
  My properties file is named ProfileImageUploadPanel.properties same as
 the
  the java class except for the extension. In the Java class I reference
 the
  FileInput widget which contains the values I need to overide. The
 contents
  of my properties file is as follows:
 
  browseLabel=Browse
 
  browseLabel being the property I wish to override. As you can see from
 the
  below screen shot the value is still the Original Text. There should be
 no
  elipse at the end.
 
 
 
 
 
  On 11 August 2014 16:22, Martin Grigorov mgrigo...@apache.org wrote:
 
   Hi,
  
   What you explained should work.
   Give us more details to see what went wrong.
  
   Martin Grigorov
   Wicket Training and Consulting
   https://twitter.com/mtgrigorov
  
  
   On Mon, Aug 11, 2014 at 5:16 PM, David Beer david.m.b...@gmail.com
   wrote:
  
Hi All
   
I am trying to change some values specified in a properties file for
 a
third party component. The component is part of the wicket-bootstrap
project and specifies some value read from a properties file. I would
   like
to override these values from my application, where my panel calls
 the
component from. What is the best way of doing this I have tried
 adding
  a
properties file the same name as my my panel and adding the values.
  But I
am not having much luck getting them to override the values.
   
Any suggestions most hopeful.
   
Thanks
   
David
   
  
 



Re: wicket 6 calling javascript func with parameter in OnDomReadyHeaderItem fails in IE9

2014-08-11 Thread Martin Grigorov
Hi,

You need to wrap it in quotes - either  or '

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Mon, Aug 11, 2014 at 6:38 PM, fachhoch fachh...@gmail.com wrote:

 In my component I am adding a script   to OnDomReadyHeaderItem  this script
 is call to a function with parameter




 In wicket ajax debug window I see this error



 I tried without parameter it works fine, and with parameter in chrome works
 fine.
 I am  using IE 9 it fails in IE 9  when js has a parameter.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-6-calling-javascript-func-with-parameter-in-OnDomReadyHeaderItem-fails-in-IE9-tp4667009.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 / WildFly 8: Log4J / SLF4J ?

2014-08-11 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-5671 :-)

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Mon, Aug 11, 2014 at 5:32 PM, Martin Grigorov mgrigo...@apache.org
wrote:

 http://jira.codehaus.org/browse/ARCHETYPE-274
 apparently it is not supported for now

 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov


 On Mon, Aug 11, 2014 at 10:42 AM, Martin Grigorov mgrigo...@apache.org
 wrote:

 Cool!

 I'll see whether it is possible to filter out log4j.properties with
 maven-archetype-plugin and if it is then I'll update the quickstart
 generator.

 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov


 On Mon, Aug 11, 2014 at 10:39 AM, Sebastien seb...@gmail.com wrote:

 Hi Martin,

 I've removed all log4.properties files and... it's working! :)
 Thanks a million for your help! I am sure this will prevent some attacks
 of
 nerves when users will redeploy their wicket apps from JBoss7 to
 WildFly8..

 Best regards,
 Sebastien.

 PS: Stefan  David, thanks for your help too! :)

 On Fri, Aug 8, 2014 at 8:24 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

  I have also removed log4j.jar from WEB-INF/lib. Maybe it is related
 too but
  the logs appeared after removing log4j.properties
 
 
  On Fri, Aug 8, 2014 at 8:05 PM, Sebastien seb...@gmail.com wrote:
 
   Hi Martin,
  
   I tried but I should have missed one because it was not working with
 my
   ear, I will test it again on Monday, but anyway you probably saved my
   week-end! ;)
   I also tried with a simple wicket quickstart and of course, it did
 not
  work
   because of the properties file. So there will be another question :
 how
   will/can you handle the quickstart for this particular situation?
  
 
  JEE has never been portable, no matter what JEE big players claim :-)
  We can add yet another drop-down in the quickstart generator form that
 adds
  an additional -D (system property) or -P (Maven profile) which can be
 used
  by maven-archetype-plugin to filter out the problematic files ?! I
 haven't
  played with maven-archetype-plugin since a while but I guess it should
 be
  possible.
  First tell us what fixes your problem :-)
 
 






Re: Wicket / WildFly 8: Log4J / SLF4J ?

2014-08-11 Thread Sebastien
Very nice! :)


On Mon, Aug 11, 2014 at 9:50 PM, Martin Grigorov mgrigo...@apache.org
wrote:

 https://issues.apache.org/jira/browse/WICKET-5671 :-)

 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov


 On Mon, Aug 11, 2014 at 5:32 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

  http://jira.codehaus.org/browse/ARCHETYPE-274
  apparently it is not supported for now
 
  Martin Grigorov
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 
 
  On Mon, Aug 11, 2014 at 10:42 AM, Martin Grigorov mgrigo...@apache.org
  wrote:
 
  Cool!
 
  I'll see whether it is possible to filter out log4j.properties with
  maven-archetype-plugin and if it is then I'll update the quickstart
  generator.
 
  Martin Grigorov
  Wicket Training and Consulting
  https://twitter.com/mtgrigorov
 



Testing JS

2014-08-11 Thread Pierre Goupil
Good evening,

Are there any good practices or known solutions in order to test the
JavaScript of a Wicket application?

For the moment, I launch my tests in the Wicket pages in Jenkins, with a
flag telling whether to display them or not depending upon the staging
plateform: they are hidden in production and displayed in development and
in Jenkins.

And I use QUnit, which goes pretty well with jQuery code under test, IMHO.

Do you guys have a different workflow? Maybe with phantomJS or another
headless tool?

Any ideas are most welcome.

Cheers,

Pierre