RequestLogger - logging page requests only

2013-08-06 Thread Marios Skounakis
Hi all,

I want to customize request logger to only log page requests. I.e. I don't
want resource requests, etc.

I have overridden log(RequestData rd, SessionData sd) as follows:

@Override
protected void log(RequestData rd, SessionData sd) {
if (rd.getResponseTarget() instanceof IPageRequestHandler)
super.log(rd, sd);
}

It seems to be working. Is there something I am missing?

Thanks
Marios


Re: Table with a lot of ajax links

2013-08-06 Thread Ernesto Reinaldo Barreiro
I can also try to pack the project as a jar file (so, that is is reusable)
and move it to wicket-stuff or some other place that gets regularly
published.


On Wed, Aug 7, 2013 at 8:45 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Hi,
>
> Thanks for the feedback.
>
> In fact, solution can be improved in many aspects. For instance, I thought
> about making the "logic" pluggable so that you can support more that just
> links... Maybe having a "handler" interface that can be registered on
> "context" component and is responsible for
>
> 1- The header contributions needed by the "links". I write "links" because
> they might be anything.
> 2- A method to  decides is a particular AJAX request can be handled by the
> given handler.
> 3- A logic to deliver the event to the appropriate component(s).
>
> This way we might have something "generic" and "extendable". For instance,
> that could be used to register drag-drop events or anything you need.
>
> If interesting to other people I can give it a try to this idea and
> publish the code (and try to write something to explain the design). Mind
> example is a table but behavior can be attached to "any"  component.
>
>
>
>
> On Wed, Aug 7, 2013 at 12:19 AM, Rodrigo Heffner <
> rodrigo.heff...@gmail.com> wrote:
>
>> Thank you very much, Ernesto.
>>
>> I have a similar scenario, a panel with about 300 AjaxFallbackLinks and
>> each with some custom logic on the onClick, but your solution looks much
>> better.
>>
>>
>> On 5 August 2013 17:31, Ernesto Reinaldo Barreiro > >wrote:
>>
>> > Dave,
>> >
>> > Mind that is  just something I improvise in a couple of hours... based
>> on
>> > previous experiences.  For, sure you will find many ways to improve
>> it;-).
>> > Also if you have questions I will try to answer them here.
>> >
>> >
>> > On Mon, Aug 5, 2013 at 7:06 PM, DaveS  wrote:
>> >
>> > > Hi Ernesto,
>> > > thank you for example. I am sure that it helps also other wicket
>> users.
>> > >
>> > > I will use it and if I improve something I will let you know.
>> > >
>> > > Thanks again.
>> > >
>> > > Dave
>> > >
>> > >
>> > >
>> > > --
>> > > View this message in context:
>> > >
>> >
>> http://apache-wicket.1842946.n4.nabble.com/Table-with-a-lot-of-ajax-links-tp4660303p4660712.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
>> > >
>> > >
>> >
>> >
>> > --
>> > Regards - Ernesto Reinaldo Barreiro
>> >
>>
>>
>>
>> --
>> Rodrigo H M Bezerra
>>
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: Table with a lot of ajax links

2013-08-06 Thread Ernesto Reinaldo Barreiro
Hi,

Thanks for the feedback.

In fact, solution can be improved in many aspects. For instance, I thought
about making the "logic" pluggable so that you can support more that just
links... Maybe having a "handler" interface that can be registered on
"context" component and is responsible for

1- The header contributions needed by the "links". I write "links" because
they might be anything.
2- A method to  decides is a particular AJAX request can be handled by the
given handler.
3- A logic to deliver the event to the appropriate component(s).

This way we might have something "generic" and "extendable". For instance,
that could be used to register drag-drop events or anything you need.

If interesting to other people I can give it a try to this idea and publish
the code (and try to write something to explain the design). Mind example
is a table but behavior can be attached to "any"  component.




On Wed, Aug 7, 2013 at 12:19 AM, Rodrigo Heffner
wrote:

> Thank you very much, Ernesto.
>
> I have a similar scenario, a panel with about 300 AjaxFallbackLinks and
> each with some custom logic on the onClick, but your solution looks much
> better.
>
>
> On 5 August 2013 17:31, Ernesto Reinaldo Barreiro  >wrote:
>
> > Dave,
> >
> > Mind that is  just something I improvise in a couple of hours... based on
> > previous experiences.  For, sure you will find many ways to improve
> it;-).
> > Also if you have questions I will try to answer them here.
> >
> >
> > On Mon, Aug 5, 2013 at 7:06 PM, DaveS  wrote:
> >
> > > Hi Ernesto,
> > > thank you for example. I am sure that it helps also other wicket users.
> > >
> > > I will use it and if I improve something I will let you know.
> > >
> > > Thanks again.
> > >
> > > Dave
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/Table-with-a-lot-of-ajax-links-tp4660303p4660712.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
> > >
> > >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
>
>
> --
> Rodrigo H M Bezerra
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: [Announce] wicket-jade

2013-08-06 Thread Decebal Suiu
Hi Martin

I created a branch
https://github.com/decebals/wicket-jade/tree/children-components for your
idea.
I increased the complexity of demo application a little bit.
Now, the HomePage contains a BooksPanel that contains an AuthorPanel. Both
panels extend JadePanel.
BooksPanel.jade contains a div(wicket:id="authorPanel"). The markup for
authorPanel is AuthorPanel.jade.

Everything works fine.

Is this what you want or I misunderstand you? Can you explain your idea in
more words?

Best regards,
Decebal

 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-jade-tp4660722p4660739.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: Table with a lot of ajax links

2013-08-06 Thread Rodrigo Heffner
Thank you very much, Ernesto.

I have a similar scenario, a panel with about 300 AjaxFallbackLinks and
each with some custom logic on the onClick, but your solution looks much
better.


On 5 August 2013 17:31, Ernesto Reinaldo Barreiro wrote:

> Dave,
>
> Mind that is  just something I improvise in a couple of hours... based on
> previous experiences.  For, sure you will find many ways to improve it;-).
> Also if you have questions I will try to answer them here.
>
>
> On Mon, Aug 5, 2013 at 7:06 PM, DaveS  wrote:
>
> > Hi Ernesto,
> > thank you for example. I am sure that it helps also other wicket users.
> >
> > I will use it and if I improve something I will let you know.
> >
> > Thanks again.
> >
> > Dave
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Table-with-a-lot-of-ajax-links-tp4660303p4660712.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
> >
> >
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>



-- 
Rodrigo H M Bezerra


Component for Applet

2013-08-06 Thread Martin Beránek
Hi,

I'am trying to write component similar to
http://mrhaki.blogspot.cz/2009/05/wicket-component-for-java-deployment.html
but I need to use JNLP for applet deployment. I write my own Resource
that generate JNLP file (it's xml, so I use JAXB and marschalling) and
I am also able generate script tag with appropriate content into html
page (onComponentTagBody).

My problem is url for resource. I don't know how to generate it - each
applet on my page (there can be more applets on one page) have to has
different JNLP so some shared resource can't be used.

Thanks for help

-- 
Martin Beránek

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



RE: replace content of div with generated html

2013-08-06 Thread Paul Bors
Grab a wicket handler to the parent and then call
ParentComponent.repaceWith(ChildComponent) method:
http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/Compone
nt.html#replaceWith(org.apache.wicket.Component)

~ Thank you,
  Paul Bors

-Original Message-
From: Boris Brinza [mailto:boris.bri...@htsolution.sk] 
Sent: Monday, August 05, 2013 11:18 AM
To: users@wicket.apache.org
Subject: replace content of div with generated html

hello
is it possible to replace content of div with content of WebMarkupContainer
when user clicks on ajaxLink?

I have DataView enclosed in WebMarkupContainer, java seems like this:
WebMarkupContainet tableContainer = new
WebMarkupContainer("tableContainer");
tableContainer.add(dataview)

html:

...
...




And i want to replace the content of another div in another page with
content of tableContainer



For clarification: i have table of Users used in UserListPage, but same 
table should be accessible as subtable of Company table in CompanyListPage.




-- 

S pozdravom

Boris Brinza
HT Solution s.r.o.
Digital Park II
Einsteinova 25
851 01 Bratislava
Slovakia

Phone: +421 2 3500 2512,  Mobile: +421 903 602 126
E-mail: boris.bri...@htsolution.sk | www.htsolution.sk


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



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



RE: Documentation for RequestLogger

2013-08-06 Thread Paul Bors
Isn't Log4J shipped with the quick-start?

Create yourself a quick-start and analyze it:
http://wicket.apache.org/start/quickstart.html

PS: You can also check the initialization related topics as well as your
first stop for Wicket's doc via the Wicket Free Guide at:
http://wicket.apache.org/learn/books/freeguide.html

~ Thank you,
  Paul Bors


-Original Message-
From: Jens Jahnke [mailto:jan0...@gmx.net] 
Sent: Tuesday, August 06, 2013 4:44 AM
To: users@wicket.apache.org
Subject: Documentation for RequestLogger

Hi,

I'd like to know if there is an official documentation for RequestLogger
anywhere?

I found several small bits on the net, but nothing that gives me a clue how
to actually do some logging.

I know that I have to initialise it somehow like this:

IRequestLoggerSettings requestLogger =
Application.get().getRequestLoggerSettings();
requestLogger.setRequestLoggerEnabled(true);

But where do I have to put this initialisation? I've put it into my apps
init() but it does nothing except creating an empty log file.

My log4j.properties:

log4j.category.org.apache.wicket.protocol.http.RequestLogger=INFO,RequestLog
ger
log4j.additivity.org.apache.wicket.protocol.http.RequestLogger=false
log4j.appender.RequestLogger=org.apache.log4j.RollingFileAppender
log4j.appender.RequestLogger.File=${catalina.home}/logs/wicket-requests.log
log4j.appender.RequestLogger.MaxFileSize=10MB
log4j.appender.RequestLogger.MaxBackupIndex=10
log4j.appender.RequestLogger.layout=org.apache.log4j.PatternLayout
log4j.appender.RequestLogger.layout.ConversionPattern=%d{ISO8601} %-5p-
%-26.26c{1} - %m\n


Regards,

Jens

--
06. Ernting 2013, 10:38
Homepage : http://www.jan0sch.de

Kirk to Enterprise...



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



Re: How to resolve this java.util.ConcurrentModificationException

2013-08-06 Thread saty
Ok, thank you all.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-this-java-util-ConcurrentModificationException-tp4660273p4660734.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: How to resolve this java.util.ConcurrentModificationException

2013-08-06 Thread Martin Grigorov
Hi,

Wicket 6.x has org.apache.wicket.core.util.objects.checker.IObjectChecker.
You may create your own one that doesn't allow serialization of LRUMap.
When such object is passed to ObjectOutputStream it will throw an exception
with nice message explaining the reference to this LRUMap.
This way you should be able to find which page keeps a ref to the LRUMap
See 
org.apache.wicket.serialize.java.JavaSerializer.SerializationCheckerObjectOutputStream#writeObjectOverride
for an example how to add your checker


On Tue, Aug 6, 2013 at 8:03 PM, saty  wrote:

> Ok.. To explain the scenario, i have a singleton data-maanger java class
> that
> user a underlying LRUMAP to store most recently viewed data. various wicket
> panels use this data-manager to request data that they need to
> display/update etc.
> Access to data is well protected using various synchronization techniques
> and have no problem in that. The problem seems to be, is somehow wicket is
> trying to serialize this LRUMAP which conflicts with application wring data
> to it at that same time.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-this-java-util-ConcurrentModificationException-tp4660273p4660730.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: How to resolve this java.util.ConcurrentModificationException

2013-08-06 Thread Dan Retzlaff
There isn't much information in that stack. Why don't you subclass LRUMap
with a custom writeObject() implementation? Then you can breakpoint it, log
from it, and maybe throw NotSerializableException to trigger Wicket
SerializableChecker which gives nicer output. That way it triggers every
time the map is serialized, not just when a concurrent modification happens.


On Tue, Aug 6, 2013 at 10:52 AM, saty  wrote:

> Thanks Mike,
>
> This is the complete exception trace, thanks for your help. It does appear
> that this is thrown when wicket trying to serialize page.
>
>
> 06 Aug 2013 13:30:20.917 [http-apr--exec-3] ERROR
> o.a.w.serialize.java.JavaSerializer - Error serializing object class
> com.a.b.web.HomePage [object=[Page class = com.a.b.web.HomePage, id = 0,
> render count = 1]]
> org.apache.wicket.WicketRuntimeException:
> java.util.ConcurrentModificationException
> at
>
> org.apache.wicket.serialize.java.JavaSerializer$SerializationCheckerObjectOutputStream.writeObjectOverride(JavaSerializer.java:278)
> ~[wicket-core-6.6.0.jar:6.6.0]
> at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
> ~[na:1.7.0_21]
> at
>
> org.apache.wicket.serialize.java.JavaSerializer.serialize(JavaSerializer.java:78)
> ~[wicket-core-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.pageStore.DefaultPageStore.serializePage(DefaultPageStore.java:376)
> [wicket-core-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:150)
> [wicket-core-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:383)
> [wicket-core-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:171)
> [wicket-core-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.page.AbstractPageManager.commitRequest(AbstractPageManager.java:98)
> [wicket-core-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.page.PageManagerDecorator.commitRequest(PageManagerDecorator.java:73)
> [wicket-core-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.page.PageAccessSynchronizer$2.commitRequest(PageAccessSynchronizer.java:281)
> [wicket-core-6.6.0.jar:6.6.0]
> at org.apache.wicket.Application$2.onDetach(Application.java:1628)
> [wicket-core-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:105)
> [wicket-core-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:101)
> [wicket-core-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.util.listener.ListenerCollection$1.notify(ListenerCollection.java:120)
> [wicket-util-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.util.listener.ListenerCollection.reversedNotify(ListenerCollection.java:144)
> [wicket-util-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.util.listener.ListenerCollection.reversedNotifyIgnoringExceptions(ListenerCollection.java:113)
> [wicket-util-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.request.cycle.RequestCycleListenerCollection.onDetach(RequestCycleListenerCollection.java:100)
> [wicket-core-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.request.cycle.RequestCycle.onDetach(RequestCycle.java:619)
> [wicket-core-6.6.0.jar:6.6.0]
> at
> org.apache.wicket.request.cycle.RequestCycle.detach(RequestCycle.java:568)
> [wicket-core-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:286)
> [wicket-core-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:244)
> [wicket-core-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
> [wicket-core-6.6.0.jar:6.6.0]
> at
>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:267)
> [wicket-core-6.6.0.jar:6.6.0]
> at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> [catalina.jar:7.0.39]
> at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> [catalina.jar:7.0.39]
> at
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:344)
> [spring-security-web-3.0.0.M2.jar:na]
> at
>
> org.springframework.security.ui.ntlm.NtlmProcessingFilter.doFilter(NtlmProcessingFilter.java:355)
> [spring-security-ntlm-3.0.0.M2.jar:na]
> at
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
> [spring-security-web-3.0.0.M2.jar:na]
> at
>
> org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:98)
> [spring-security-web-3.0.0.M

Re: How to resolve this java.util.ConcurrentModificationException

2013-08-06 Thread saty
Ok.. To explain the scenario, i have a singleton data-maanger java class that
user a underlying LRUMAP to store most recently viewed data. various wicket
panels use this data-manager to request data that they need to
display/update etc. 
Access to data is well protected using various synchronization techniques
and have no problem in that. The problem seems to be, is somehow wicket is
trying to serialize this LRUMAP which conflicts with application wring data
to it at that same time. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-this-java-util-ConcurrentModificationException-tp4660273p4660730.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: How to resolve this java.util.ConcurrentModificationException

2013-08-06 Thread saty
Thanks Mike,

This is the complete exception trace, thanks for your help. It does appear
that this is thrown when wicket trying to serialize page.


06 Aug 2013 13:30:20.917 [http-apr--exec-3] ERROR
o.a.w.serialize.java.JavaSerializer - Error serializing object class
com.a.b.web.HomePage [object=[Page class = com.a.b.web.HomePage, id = 0,
render count = 1]]
org.apache.wicket.WicketRuntimeException:
java.util.ConcurrentModificationException
at
org.apache.wicket.serialize.java.JavaSerializer$SerializationCheckerObjectOutputStream.writeObjectOverride(JavaSerializer.java:278)
~[wicket-core-6.6.0.jar:6.6.0]
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
~[na:1.7.0_21]
at
org.apache.wicket.serialize.java.JavaSerializer.serialize(JavaSerializer.java:78)
~[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.wicket.pageStore.DefaultPageStore.serializePage(DefaultPageStore.java:376)
[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:150)
[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:383)
[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:171)
[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.wicket.page.AbstractPageManager.commitRequest(AbstractPageManager.java:98)
[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.wicket.page.PageManagerDecorator.commitRequest(PageManagerDecorator.java:73)
[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.wicket.page.PageAccessSynchronizer$2.commitRequest(PageAccessSynchronizer.java:281)
[wicket-core-6.6.0.jar:6.6.0]
at org.apache.wicket.Application$2.onDetach(Application.java:1628)
[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:105)
[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:101)
[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.wicket.util.listener.ListenerCollection$1.notify(ListenerCollection.java:120)
[wicket-util-6.6.0.jar:6.6.0]
at
org.apache.wicket.util.listener.ListenerCollection.reversedNotify(ListenerCollection.java:144)
[wicket-util-6.6.0.jar:6.6.0]
at
org.apache.wicket.util.listener.ListenerCollection.reversedNotifyIgnoringExceptions(ListenerCollection.java:113)
[wicket-util-6.6.0.jar:6.6.0]
at
org.apache.wicket.request.cycle.RequestCycleListenerCollection.onDetach(RequestCycleListenerCollection.java:100)
[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.wicket.request.cycle.RequestCycle.onDetach(RequestCycle.java:619)
[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.wicket.request.cycle.RequestCycle.detach(RequestCycle.java:568)
[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:286)
[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:244)
[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:267)
[wicket-core-6.6.0.jar:6.6.0]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
[catalina.jar:7.0.39]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[catalina.jar:7.0.39]
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:344)
[spring-security-web-3.0.0.M2.jar:na]
at
org.springframework.security.ui.ntlm.NtlmProcessingFilter.doFilter(NtlmProcessingFilter.java:355)
[spring-security-ntlm-3.0.0.M2.jar:na]
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
[spring-security-web-3.0.0.M2.jar:na]
at
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:98)
[spring-security-web-3.0.0.M2.jar:na]
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
[spring-security-web-3.0.0.M2.jar:na]
at
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80)
[spring-security-web-3.0.0.M2.jar:na]
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
[spring-security-web-3.0.0.M2.jar:na]
at
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:150)
[spring-security-web-3.0.0.M2.jar:na]
at
org.springframework.web.

Re: How to resolve this java.util.ConcurrentModificationException

2013-08-06 Thread Dan Retzlaff
I'd use a debugger to look for live references to the map. In Eclipse, if
you right-click the variable line in the Variables view, there is an All
References option. The trick is instantiating the offending Wicket
component to create the reference. But once created it should stick around
at least until the next GC.

Dan


On Tue, Aug 6, 2013 at 9:27 AM, Michael Mosmann  wrote:

> IMHO nothing in Application is serialized. But its far to easy to leak an
> instance of this LRU-Map into some components (anon classes).
>
> Can you provide some code or error message?
>
> Am 06.08.13 18:22, schrieb saty:
>
>  I need to understand what and when Wicket tries to serialize stuff in a
>> running wicket application. I am not able to fix this error and it keeps
>> growing with more users starting to use the application. It does not
>> affect
>> the application usage but it keeps beaming error email.
>>
>> I am using LRU map to cache certain data being used in the application and
>> that is a shared data in a static context not tied to any particular user.
>> Why would wicket try to serialize this object, this should not be
>> serialized
>> at all. LRU map this is not synchronized and is not thread-safe and
>> application code treats it that way but the serialization keeps generating
>> concurrent modification exception as its obvious its trying to serialize
>> this when something changes the map.
>> if i declare this as transient, will this prevent wicket from serializing
>> this map too, what are the possible repercussion in wicket application if
>> i
>> declare this transient.
>>
>> Thanks for your help.
>>
>>
>>
>> --
>> View this message in context: http://apache-wicket.1842946.**
>> n4.nabble.com/How-to-resolve-**this-java-util-**
>> ConcurrentModificationExceptio**n-tp4660273p4660725.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-h...@wicket.apache.org
>>
>>
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@wicket.**apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: How to resolve this java.util.ConcurrentModificationException

2013-08-06 Thread Michael Mosmann
IMHO nothing in Application is serialized. But its far to easy to leak 
an instance of this LRU-Map into some components (anon classes).


Can you provide some code or error message?

Am 06.08.13 18:22, schrieb saty:

I need to understand what and when Wicket tries to serialize stuff in a
running wicket application. I am not able to fix this error and it keeps
growing with more users starting to use the application. It does not affect
the application usage but it keeps beaming error email.

I am using LRU map to cache certain data being used in the application and
that is a shared data in a static context not tied to any particular user.
Why would wicket try to serialize this object, this should not be serialized
at all. LRU map this is not synchronized and is not thread-safe and
application code treats it that way but the serialization keeps generating
concurrent modification exception as its obvious its trying to serialize
this when something changes the map.
if i declare this as transient, will this prevent wicket from serializing
this map too, what are the possible repercussion in wicket application if i
declare this transient.

Thanks for your help.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-this-java-util-ConcurrentModificationException-tp4660273p4660725.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




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



RE: Wicket Charts

2013-08-06 Thread Paul Bors
Also see wicked-charts and perhaps Decebal's dashboards:
https://code.google.com/p/wicket-continuous-calendar/#Sugested_projects_of_i
nterest

~ Thank you,
  Paul Bors

-Original Message-
From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] 
Sent: Monday, August 05, 2013 5:38 AM
To: users@wicket.apache.org
Subject: Re: Wicket Charts

Plug and play: https://developers.google.com/chart/

Use that with remoteimage ;)

2013/8/5 Marco Di Sabatino Di Diodoro :
> Hi all,
>
> In your opinion, what is the best library (open source licensed) for
creating charts with wicket?
>
> Regards
> M
> --
> Dott. Marco Di Sabatino Di Diodoro
> Tel. +39 3939065570
>
> Tirasa S.r.l.
> Viale D'Annunzio 267 - 65127 Pescara
> Tel +39 0859116307 / FAX +39 085973 http://www.tirasa.net
>
> Apache Syncope PMC Member
> http://people.apache.org/~mdisabatino/
>

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



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



Re: How to resolve this java.util.ConcurrentModificationException

2013-08-06 Thread saty
I need to understand what and when Wicket tries to serialize stuff in a
running wicket application. I am not able to fix this error and it keeps
growing with more users starting to use the application. It does not affect
the application usage but it keeps beaming error email.

I am using LRU map to cache certain data being used in the application and
that is a shared data in a static context not tied to any particular user.
Why would wicket try to serialize this object, this should not be serialized
at all. LRU map this is not synchronized and is not thread-safe and
application code treats it that way but the serialization keeps generating
concurrent modification exception as its obvious its trying to serialize
this when something changes the map.
if i declare this as transient, will this prevent wicket from serializing
this map too, what are the possible repercussion in wicket application if i
declare this transient.

Thanks for your help.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-this-java-util-ConcurrentModificationException-tp4660273p4660725.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: [Announce] wicket-jade

2013-08-06 Thread Decebal Suiu
Hi Martin

I will try to implement your idea. I know about wicket-freemarker,
wicket-velocity. I didn't know about wicket-mustache. By the way I think
that your wicket-ractive project is interested (I like it because it's ajax
aware without a custom AjaxRequestTarget). I think that jade/haml syntax is
more html oriented than mustache syntax but it's my opinion. Fremarker,
Velocity, Mustache are more general.

Best regards,
Decebal



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-jade-tp4660722p4660724.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: [Announce] wicket-jade

2013-08-06 Thread Martin Grigorov
Hi Decebal,

I see you did something similar to what Wicket
Velocity
 and Wicket Mustache  do.
I think it would be much cooler if the Jade template/panel supports
children components, i.e. have div(wicket:id=someId) inside . For this you
will have to create a custom MarkupFactory and set it
with org.apache.wicket.settings.IMarkupSettings#setMarkupFactory().
Looking at the code I think Wicket is not well prepared for custom markup
factories but if you want to try it then I'll try to help you with
improvements in Wicket whenever you need such.


On Tue, Aug 6, 2013 at 12:44 PM, Decebal Suiu  wrote:

> Hi
>
> I implemented a tiny wicket-jade [1] integration solution. It's the first
> version and it's a quick and dirty implementation (Proof of concept).
> Jade [2] is a cool, high-performance (and probably the most used template
> engine for Node.js)  template engine. I like the HAML-like syntax of
> Jade's;
> it's very simple and intuitive.
>
> Best regards,
> Decebal
>
> [1] https://github.com/decebals/wicket-jade
> [2] http://jade-lang.com
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-jade-tp4660722.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
>
>


[Announce] wicket-jade

2013-08-06 Thread Decebal Suiu
Hi 

I implemented a tiny wicket-jade [1] integration solution. It's the first
version and it's a quick and dirty implementation (Proof of concept).
Jade [2] is a cool, high-performance (and probably the most used template
engine for Node.js)  template engine. I like the HAML-like syntax of Jade's;
it's very simple and intuitive.

Best regards, 
Decebal

[1] https://github.com/decebals/wicket-jade
[2] http://jade-lang.com



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Announce-wicket-jade-tp4660722.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



Documentation for RequestLogger

2013-08-06 Thread Jens Jahnke
Hi,

I'd like to know if there is an official documentation for RequestLogger
anywhere?

I found several small bits on the net, but nothing that gives me a clue
how to actually do some logging.

I know that I have to initialise it somehow like this:

IRequestLoggerSettings requestLogger = 
Application.get().getRequestLoggerSettings();
requestLogger.setRequestLoggerEnabled(true);

But where do I have to put this initialisation? I've put it into my apps init() 
but it does nothing except creating an empty log file.

My log4j.properties:

log4j.category.org.apache.wicket.protocol.http.RequestLogger=INFO,RequestLogger
log4j.additivity.org.apache.wicket.protocol.http.RequestLogger=false
log4j.appender.RequestLogger=org.apache.log4j.RollingFileAppender
log4j.appender.RequestLogger.File=${catalina.home}/logs/wicket-requests.log
log4j.appender.RequestLogger.MaxFileSize=10MB
log4j.appender.RequestLogger.MaxBackupIndex=10
log4j.appender.RequestLogger.layout=org.apache.log4j.PatternLayout
log4j.appender.RequestLogger.layout.ConversionPattern=%d{ISO8601} %-5p- 
%-26.26c{1} - %m\n


Regards,

Jens

-- 
06. Ernting 2013, 10:38
Homepage : http://www.jan0sch.de

Kirk to Enterprise...


pgpm33oCFzdz6.pgp
Description: PGP signature


Re: Submitting a DateTextField value in a different timezone that the browser

2013-08-06 Thread seba.wag...@gmail.com
Thanks François


2013/8/3 Francois Meillet 

> Overriding the getClientTimeZone() method in the dateconverter sounds good.
> if the boolean applyTimeZoneDifference of the dateConverter is set to true.
>
> add(new DateTextField("xxx", new DateConverter(true) {
> @Override
> public String getDatePattern(Locale locale) {
> // ...
> }
>
> @Override
> protected DateTimeFormatter getFormat(Locale locale) {
> // ...
> }
>
> protected TimeZone getClientTimeZone() {
> return "yourspecifictimezone";
> }
>
> }));
>
>
> François
>
>
>
> Le 3 août 2013 à 02:38, seba.wag...@gmail.com a écrit :
>
> > Hi,
> >
> > According to:
> >
> http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/datetime/markup/html/form/DateTextField.html
> >
> > *This component tries to apply the time zone difference between the
> client
> > and server. See the date
> > converter<
> http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/datetime/DateConverter.html#getApplyTimeZoneDifference%28%29
> >of
> > this package for more information on that.*
> >
> > In our application users can configure the timezone of the UI different
> > from the browser/client/os timezone.
> >
> > Apart from the reasons when and how and why we are doing that ...
> >
> > Is there a way to configure the DateTextField to use a different timezone
> > then the clients/browser/os one for its calculations?
> >
> > My basic idea is to overwrite the method "getClientTimeZone" in the
> > DateTimeField.
> > I wonder if that is the appropriate way to do it?
> >
> > Are there other ideas or pointers how to resolve that?
> >
> > Thanks,
> > Sebastian
> >
> > --
> > Sebastian Wagner
> > https://twitter.com/#!/dead_lock
> > http://www.webbase-design.de
> > http://www.wagner-sebastian.com
> > seba.wag...@gmail.com
>
>


-- 
Sebastian Wagner
https://twitter.com/#!/dead_lock
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wag...@gmail.com