Re: JavaScript enabled or disabled

2011-05-23 Thread Martin Grigorov
Can you create a quikstart application that shows this problem ?
If Yes then please attach it to Jira.

On Sat, May 21, 2011 at 3:08 PM, meduolis  wrote:

> Already tried this. No success because of
>
> http://apache-wicket.1842946.n4.nabble.com/Odd-behaviour-after-setGatherExtendedBrowserInfo-true-td1857093.html
>
> :/
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/JavaScript-enabled-or-disabled-tp3540451p3540522.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
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


to integrate wicket with itext or any other framework

2011-05-23 Thread hariharansrc
to integrate wicket with other frameworks such as hibernate and itext 
any other configuration needed or just we can integrate 

and then we can create connection pool in wicket for hibernate

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-itext-or-any-other-framework-tp3543523p3543523.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: to integrate wicket with itext or any other framework

2011-05-23 Thread Martin Grigorov
See this demo app
https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/phonebook
Also check the maven archetypes at http://www.jweekend.com/dev/LegUp. This
will create a mini app which you can extend with your application details

On Mon, May 23, 2011 at 11:47 AM, hariharansrc wrote:

> to integrate wicket with other frameworks such as hibernate and itext
> any other configuration needed or just we can integrate
>
> and then we can create connection pool in wicket for hibernate
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-itext-or-any-other-framework-tp3543523p3543523.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
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


StoredResponsesMap

2011-05-23 Thread François Meillet
Hi Wicketers,

While I was doing some load testing with with a small prog using Apache 
httpclient  (45 threads, only the get requests were done)  

I got this error

17:59:22.086 ERROR ["http-bio-8080"-exec-1]   DefaultExceptionMapper -  108 - 
Unexpected error occurred
java.lang.NullPointerException: null
at 
org.apache.wicket.protocol.http.StoredResponsesMap$Value.access$000(StoredResponsesMap.java:37)
 ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
at 
org.apache.wicket.protocol.http.StoredResponsesMap.removeEldestEntry(StoredResponsesMap.java:73)
 ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
at java.util.LinkedHashMap.addEntry(LinkedHashMap.java:410) 
~[na:1.6.0_22]
at java.util.HashMap.put(HashMap.java:385) ~[na:1.6.0_22]
at 
org.apache.wicket.protocol.http.StoredResponsesMap.put(StoredResponsesMap.java:95)
 ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
at 
org.apache.wicket.protocol.http.WebApplication.storeBufferedResponse(WebApplication.java:723)
 ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
at 
org.apache.wicket.request.handler.render.WebPageRenderer.storeBufferedResponse(WebPageRenderer.java:73)
 ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
at 
org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:258)
 ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
at 
org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
 ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:718)
 ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
 ~[wicket-request-1.5-RC4.2.jar:1.5-RC4.2]
at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:96)
 ~[wicket-request-1.5-RC4.2.jar:1.5-RC4.2]
at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
 [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
 [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)
 [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) 
[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 [catalina.jar:7.0.12]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 [catalina.jar:7.0.12]
..


via jmx I could see that only 45 sessions were there
and that the PeakNumberOfActiveRequests was also 45.


Do you have any idea ?

François  


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



Re: warn on exit from browser

2011-05-23 Thread rebecca
Thanks Robert, but the setRedirect(true) did not help me

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/warn-on-exit-from-browser-tp3516569p3543593.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: to integrate wicket with itext or any other framework

2011-05-23 Thread Andrea Del Bene

Take also a look at this post, maybe could be useful for you.

http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/

to integrate wicket with other frameworks such as hibernate and itext
any other configuration needed or just we can integrate

and then we can create connection pool in wicket for hibernate

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-itext-or-any-other-framework-tp3543523p3543523.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: StoredResponsesMap

2011-05-23 Thread Martin Grigorov
Please file a ticket.

2011/5/23 François Meillet 

> Hi Wicketers,
>
> While I was doing some load testing with with a small prog using Apache
> httpclient  (45 threads, only the get requests were done)
>
> I got this error
>
> 17:59:22.086 ERROR ["http-bio-8080"-exec-1]   DefaultExceptionMapper -  108
> - Unexpected error occurred
> java.lang.NullPointerException: null
>at
> org.apache.wicket.protocol.http.StoredResponsesMap$Value.access$000(StoredResponsesMap.java:37)
> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>at
> org.apache.wicket.protocol.http.StoredResponsesMap.removeEldestEntry(StoredResponsesMap.java:73)
> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>at java.util.LinkedHashMap.addEntry(LinkedHashMap.java:410)
> ~[na:1.6.0_22]
>at java.util.HashMap.put(HashMap.java:385) ~[na:1.6.0_22]
>at
> org.apache.wicket.protocol.http.StoredResponsesMap.put(StoredResponsesMap.java:95)
> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>at
> org.apache.wicket.protocol.http.WebApplication.storeBufferedResponse(WebApplication.java:723)
> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>at
> org.apache.wicket.request.handler.render.WebPageRenderer.storeBufferedResponse(WebPageRenderer.java:73)
> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>at
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:258)
> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>at
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:718)
> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> ~[wicket-request-1.5-RC4.2.jar:1.5-RC4.2]
>at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:96)
> ~[wicket-request-1.5-RC4.2.jar:1.5-RC4.2]
>at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
> [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)
> [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
> [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> [catalina.jar:7.0.12]
>at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> [catalina.jar:7.0.12]
>..
>
>
> via jmx I could see that only 45 sessions were there
> and that the PeakNumberOfActiveRequests was also 45.
>
>
> Do you have any idea ?
>
> François
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


Re: StoredResponsesMap

2011-05-23 Thread Martin Grigorov
It's fixed in trunk.
If you can use trunk for your tests I'll be thankful for feedback.

On Mon, May 23, 2011 at 1:05 PM, Martin Grigorov wrote:

> Please file a ticket.
>
> 2011/5/23 François Meillet 
>
>> Hi Wicketers,
>>
>> While I was doing some load testing with with a small prog using Apache
>> httpclient  (45 threads, only the get requests were done)
>>
>> I got this error
>>
>> 17:59:22.086 ERROR ["http-bio-8080"-exec-1]   DefaultExceptionMapper -
>>  108 - Unexpected error occurred
>> java.lang.NullPointerException: null
>>at
>> org.apache.wicket.protocol.http.StoredResponsesMap$Value.access$000(StoredResponsesMap.java:37)
>> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>at
>> org.apache.wicket.protocol.http.StoredResponsesMap.removeEldestEntry(StoredResponsesMap.java:73)
>> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>at java.util.LinkedHashMap.addEntry(LinkedHashMap.java:410)
>> ~[na:1.6.0_22]
>>at java.util.HashMap.put(HashMap.java:385) ~[na:1.6.0_22]
>>at
>> org.apache.wicket.protocol.http.StoredResponsesMap.put(StoredResponsesMap.java:95)
>> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>at
>> org.apache.wicket.protocol.http.WebApplication.storeBufferedResponse(WebApplication.java:723)
>> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>at
>> org.apache.wicket.request.handler.render.WebPageRenderer.storeBufferedResponse(WebPageRenderer.java:73)
>> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>at
>> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:258)
>> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>at
>> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>at
>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:718)
>> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>at
>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>> ~[wicket-request-1.5-RC4.2.jar:1.5-RC4.2]
>>at
>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:96)
>> ~[wicket-request-1.5-RC4.2.jar:1.5-RC4.2]
>>at
>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>> [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>at
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>> [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>at
>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)
>> [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>at
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
>> [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>> [catalina.jar:7.0.12]
>>at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> [catalina.jar:7.0.12]
>>..
>>
>>
>> via jmx I could see that only 45 sessions were there
>> and that the PeakNumberOfActiveRequests was also 45.
>>
>>
>> Do you have any idea ?
>>
>> François
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


Help I need to understand page locking

2011-05-23 Thread Jim Pinkham
I'm using wicket 1.5 RC3 and just started getting some total system lockups
recently in prod that I can't understand.

Once it gets into this state, the only remedy is to restart tomcat.
Unfortunately, I haven't yet figured out how to reproduce this, so meanwhile
I thought I'd ask if someone could please help me understand how page
locking works in general and what I should be looking for.

When I think of locking I usually think of threading, so not sure if it
matters, but I do start one a thread for email sending with the Application
thread local set for it also (because I manage data sources thru the app so
it was easier that way).  I could try refactoring that, but without a
reproducable test case, it's just a guess at this point.  My other plan
would be to revert to some older wicket version, but again, just a guess.

Here is the stack trace; nothing unusual precedes it.  (This is just a user
trying to visit the home page).  The only thing I notice is that these
issues all seem to be using the PageParameter version of the page
constructor.

tomcat stuff omitted..
...
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedConstructorAccessor9.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:153)
... 27 more
Caused by: org.apache.wicket.page.CouldNotLockPageException: Could not lock
page 0. Attempt lasted 1 minute
at
org.apache.wicket.page.PageAccessSynchronizer.lockPage(PageAccessSynchronizer.java:138)
at
org.apache.wicket.page.PageAccessSynchronizer$1.touchPage(PageAccessSynchronizer.java:194)
at org.apache.wicket.Page.dirty(Page.java:327)
at org.apache.wicket.Page.init(Page.java:779)
at org.apache.wicket.Page.(Page.java:223)
at org.apache.wicket.Page.(Page.java:202)
at org.apache.wicket.markup.html.WebPage.(WebPage.java:99)
at
com.togetherauction.ui.AbstractAuctionPage.(AbstractAuctionPage.java:31)
at com.togetherauction.ui.HomePage.(HomePage.java:33)
... 31 more
WARN  - PageAccessSynchronizer - http-80-15 failed to acquire lock to
page 0, attempted for 1 minute out of allowed 1 minute
ERROR - DefaultExceptionMapper - Unexpected error occurred
org.apache.wicket.WicketRuntimeException: Can't instantiate page using
constructor public
com.togetherauction.ui.HomePage(org.apache.wicket.request.mapper.parameter.PageParameters)
and argument
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:173)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:91)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
at org.apache.wicket.DefaultMapperContext.newPageInstance

I could use a hand here - anyone want to give me some advise?

Thanks,
-- Jim
http://togetherauction.com


Re: StoredResponsesMap

2011-05-23 Thread François Meillet
Thanks Martin,

I tested with trunk, it's fixed. everything is ok now !

François


Le 23 mai 2011 à 12:58, Martin Grigorov a écrit :

> It's fixed in trunk.
> If you can use trunk for your tests I'll be thankful for feedback.
> 
> On Mon, May 23, 2011 at 1:05 PM, Martin Grigorov wrote:
> 
>> Please file a ticket.
>> 
>> 2011/5/23 François Meillet 
>> 
>>> Hi Wicketers,
>>> 
>>> While I was doing some load testing with with a small prog using Apache
>>> httpclient  (45 threads, only the get requests were done)
>>> 
>>> I got this error
>>> 
>>> 17:59:22.086 ERROR ["http-bio-8080"-exec-1]   DefaultExceptionMapper -
>>> 108 - Unexpected error occurred
>>> java.lang.NullPointerException: null
>>>   at
>>> org.apache.wicket.protocol.http.StoredResponsesMap$Value.access$000(StoredResponsesMap.java:37)
>>> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>>   at
>>> org.apache.wicket.protocol.http.StoredResponsesMap.removeEldestEntry(StoredResponsesMap.java:73)
>>> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>>   at java.util.LinkedHashMap.addEntry(LinkedHashMap.java:410)
>>> ~[na:1.6.0_22]
>>>   at java.util.HashMap.put(HashMap.java:385) ~[na:1.6.0_22]
>>>   at
>>> org.apache.wicket.protocol.http.StoredResponsesMap.put(StoredResponsesMap.java:95)
>>> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>>   at
>>> org.apache.wicket.protocol.http.WebApplication.storeBufferedResponse(WebApplication.java:723)
>>> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>>   at
>>> org.apache.wicket.request.handler.render.WebPageRenderer.storeBufferedResponse(WebPageRenderer.java:73)
>>> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>>   at
>>> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:258)
>>> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>>   at
>>> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
>>> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>>   at
>>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:718)
>>> ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>>   at
>>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>>> ~[wicket-request-1.5-RC4.2.jar:1.5-RC4.2]
>>>   at
>>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:96)
>>> ~[wicket-request-1.5-RC4.2.jar:1.5-RC4.2]
>>>   at
>>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>>> [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>>   at
>>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>>> [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>>   at
>>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)
>>> [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>>   at
>>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
>>> [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
>>>   at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>>> [catalina.jar:7.0.12]
>>>   at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>> [catalina.jar:7.0.12]
>>>   ..
>>> 
>>> 
>>> via jmx I could see that only 45 sessions were there
>>> and that the PeakNumberOfActiveRequests was also 45.
>>> 
>>> 
>>> Do you have any idea ?
>>> 
>>> François
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>> 
>>> 
>> 
>> 
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com 
>> 
>> 
> 
> 
> -- 
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 

François Meillet
fm...@meillet.com




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



Re: Help I need to understand page locking

2011-05-23 Thread Martin Grigorov
Wicket 1.5 locks access to the same page instance by more than one thread at
a time.
You can set log level to DEBUG
for org.apache.wicket.page.PageAccessSynchronizer class and see which thread
acquires the lock for page with version 0 and never releases it.

Instead of going to previous version of Wicket better go to a newer one.

On Mon, May 23, 2011 at 3:38 PM, Jim Pinkham  wrote:

> I'm using wicket 1.5 RC3 and just started getting some total system lockups
> recently in prod that I can't understand.
>
> Once it gets into this state, the only remedy is to restart tomcat.
> Unfortunately, I haven't yet figured out how to reproduce this, so
> meanwhile
> I thought I'd ask if someone could please help me understand how page
> locking works in general and what I should be looking for.
>
> When I think of locking I usually think of threading, so not sure if it
> matters, but I do start one a thread for email sending with the Application
> thread local set for it also (because I manage data sources thru the app so
> it was easier that way).  I could try refactoring that, but without a
> reproducable test case, it's just a guess at this point.  My other plan
> would be to revert to some older wicket version, but again, just a guess.
>
> Here is the stack trace; nothing unusual precedes it.  (This is just a user
> trying to visit the home page).  The only thing I notice is that these
> issues all seem to be using the PageParameter version of the page
> constructor.
>
> tomcat stuff omitted..
> ...
> Caused by: java.lang.reflect.InvocationTargetException
>at sun.reflect.GeneratedConstructorAccessor9.newInstance(Unknown Source)
>at
>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:153)
>... 27 more
> Caused by: org.apache.wicket.page.CouldNotLockPageException: Could not lock
> page 0. Attempt lasted 1 minute
>at
>
> org.apache.wicket.page.PageAccessSynchronizer.lockPage(PageAccessSynchronizer.java:138)
>at
>
> org.apache.wicket.page.PageAccessSynchronizer$1.touchPage(PageAccessSynchronizer.java:194)
>at org.apache.wicket.Page.dirty(Page.java:327)
>at org.apache.wicket.Page.init(Page.java:779)
>at org.apache.wicket.Page.(Page.java:223)
>at org.apache.wicket.Page.(Page.java:202)
>at org.apache.wicket.markup.html.WebPage.(WebPage.java:99)
>at
>
> com.togetherauction.ui.AbstractAuctionPage.(AbstractAuctionPage.java:31)
>at com.togetherauction.ui.HomePage.(HomePage.java:33)
>... 31 more
> WARN  - PageAccessSynchronizer - http-80-15 failed to acquire lock to
> page 0, attempted for 1 minute out of allowed 1 minute
> ERROR - DefaultExceptionMapper - Unexpected error occurred
> org.apache.wicket.WicketRuntimeException: Can't instantiate page using
> constructor public
>
> com.togetherauction.ui.HomePage(org.apache.wicket.request.mapper.parameter.PageParameters)
> and argument
>at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:173)
>at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:91)
>at
>
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
>at org.apache.wicket.DefaultMapperContext.newPageInstance
>
> I could use a hand here - anyone want to give me some advise?
>
> Thanks,
> -- Jim
> http://togetherauction.com
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


Re: Help I need to understand page locking

2011-05-23 Thread Jim Pinkham
Thanks, good tip.  I'll do that, and I'm also going to send in a replacement
copy for PageAccessSynchronizer that still has the one minute delay, but
then if it fails, it forces the lock anyway and swallows the exception -
hopefully that will solve my lock ups until I can find the cause:

locks.put(pageId, lock);  // force it - temporary fix only
logger.error("failed to acquire lock would have thrown: ",
/*throw*/ new CouldNotLockPageException(pageId,
thread.getName(), timeout));


Thanks,
-- Jim.

On Mon, May 23, 2011 at 9:14 AM, Martin Grigorov wrote:

> Wicket 1.5 locks access to the same page instance by more than one thread
> at
> a time.
> You can set log level to DEBUG
> for org.apache.wicket.page.PageAccessSynchronizer class and see which
> thread
> acquires the lock for page with version 0 and never releases it.
>
> Instead of going to previous version of Wicket better go to a newer one.
>
> On Mon, May 23, 2011 at 3:38 PM, Jim Pinkham  wrote:
>
> > I'm using wicket 1.5 RC3 and just started getting some total system
> lockups
> > recently in prod that I can't understand.
> >
> > Once it gets into this state, the only remedy is to restart tomcat.
> > Unfortunately, I haven't yet figured out how to reproduce this, so
> > meanwhile
> > I thought I'd ask if someone could please help me understand how page
> > locking works in general and what I should be looking for.
> >
> > When I think of locking I usually think of threading, so not sure if it
> > matters, but I do start one a thread for email sending with the
> Application
> > thread local set for it also (because I manage data sources thru the app
> so
> > it was easier that way).  I could try refactoring that, but without a
> > reproducable test case, it's just a guess at this point.  My other plan
> > would be to revert to some older wicket version, but again, just a guess.
> >
> > Here is the stack trace; nothing unusual precedes it.  (This is just a
> user
> > trying to visit the home page).  The only thing I notice is that these
> > issues all seem to be using the PageParameter version of the page
> > constructor.
> >
> > tomcat stuff omitted..
> > ...
> > Caused by: java.lang.reflect.InvocationTargetException
> >at sun.reflect.GeneratedConstructorAccessor9.newInstance(Unknown
> Source)
> >at
> >
> >
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> >at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> >at
> >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:153)
> >... 27 more
> > Caused by: org.apache.wicket.page.CouldNotLockPageException: Could not
> lock
> > page 0. Attempt lasted 1 minute
> >at
> >
> >
> org.apache.wicket.page.PageAccessSynchronizer.lockPage(PageAccessSynchronizer.java:138)
> >at
> >
> >
> org.apache.wicket.page.PageAccessSynchronizer$1.touchPage(PageAccessSynchronizer.java:194)
> >at org.apache.wicket.Page.dirty(Page.java:327)
> >at org.apache.wicket.Page.init(Page.java:779)
> >at org.apache.wicket.Page.(Page.java:223)
> >at org.apache.wicket.Page.(Page.java:202)
> >at org.apache.wicket.markup.html.WebPage.(WebPage.java:99)
> >at
> >
> >
> com.togetherauction.ui.AbstractAuctionPage.(AbstractAuctionPage.java:31)
> >at com.togetherauction.ui.HomePage.(HomePage.java:33)
> >... 31 more
> > WARN  - PageAccessSynchronizer - http-80-15 failed to acquire lock to
> > page 0, attempted for 1 minute out of allowed 1 minute
> > ERROR - DefaultExceptionMapper - Unexpected error occurred
> > org.apache.wicket.WicketRuntimeException: Can't instantiate page using
> > constructor public
> >
> >
> com.togetherauction.ui.HomePage(org.apache.wicket.request.mapper.parameter.PageParameters)
> > and argument
> >at
> >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:173)
> >at
> >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:91)
> >at
> >
> >
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:43)
> >at org.apache.wicket.DefaultMapperContext.newPageInstance
> >
> > I could use a hand here - anyone want to give me some advise?
> >
> > Thanks,
> > -- Jim
> > http://togetherauction.com
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>


Re: Change Order (Priority) of Validator Msgs?

2011-05-23 Thread eugenebalt
Can anyone advise on this? Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Change-Order-Priority-of-Validator-Msgs-tp3539436p3544438.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: to integrate wicket with itext or any other framework

2011-05-23 Thread hariharansrc
thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-itext-or-any-other-framework-tp3543523p3544470.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: Change Order (Priority) of Validator Msgs?

2011-05-23 Thread Tomasz Dziurko
You should use method:

final FeedbackPanel setSortingComparator(Comparator
sortingComparator)

and create comparator which will sort FeedbbackMessages in proper order (in
your situation probably those with feedbackMessage.component instanceof Form
coming first)

-- 
Best regards
Tomasz Dziurko
http://tomaszdziurko.pl


Re: Change Order (Priority) of Validator Msgs?

2011-05-23 Thread Tomasz Dziurko
2011/5/23 Tomasz Dziurko 
>
> final FeedbackPanel setSortingComparator(Comparator
> sortingComparator)
>

 Of course this method is in the FeedbackPanel class :-)

-- 
Best regards
Tomasz Dziurko
http://tomaszdziurko.pl


Google Chrome and Apache Wicket, an awesome combination

2011-05-23 Thread Brown, Berlin [GCG-PFS]
FYI...
 
I usually ask questions but I thought I post a comment about google
chrome.  The chrome browser has default web debugging that is similar to
firebug.
 
With Firebug, it is more difficult to detect the wicket ajax rendered
content but comes up automatically in chrome.  Also speed wise, chrome
renders much faster than IE or Firefox.  I tested Ajax oriented complex
content and chrome just works quickly.


Re: Google Chrome and Apache Wicket, an awesome combination

2011-05-23 Thread Zilvinas Vilutis
And that is why the "user acceptance testing" must be done on IE & FF :)


Žilvinas Vilutis

Mobile:   (+1) 623 330 6048
E-mail:   cika...@gmail.com



On Mon, May 23, 2011 at 10:45 AM, Brown, Berlin [GCG-PFS]
 wrote:
> FYI...
>
> I usually ask questions but I thought I post a comment about google
> chrome.  The chrome browser has default web debugging that is similar to
> firebug.
>
> With Firebug, it is more difficult to detect the wicket ajax rendered
> content but comes up automatically in chrome.  Also speed wise, chrome
> renders much faster than IE or Firefox.  I tested Ajax oriented complex
> content and chrome just works quickly.
>

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



Re: Google Chrome and Apache Wicket, an awesome combination

2011-05-23 Thread Martin Grigorov
Well, I don't share your opinion here :-)

Chrome Dev tools have no "persist console content" - once you reload the
page all the logs are gone. There is a RFE for that and I voted for it.
Also I miss the 'Net' tab.
Also Firefox's WebDeveloper tools are much better than current state in
Chrome and its extensions.

On Mon, May 23, 2011 at 8:45 PM, Brown, Berlin [GCG-PFS] <
berlin.br...@primerica.com> wrote:

> FYI...
>
> I usually ask questions but I thought I post a comment about google
> chrome.  The chrome browser has default web debugging that is similar to
> firebug.
>
> With Firebug, it is more difficult to detect the wicket ajax rendered
> content but comes up automatically in chrome.  Also speed wise, chrome
> renders much faster than IE or Firefox.  I tested Ajax oriented complex
> content and chrome just works quickly.
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


Re: Google Chrome and Apache Wicket, an awesome combination

2011-05-23 Thread Eelco Hillenius
Imho the overall user experience in Chrome is better, including the
developer tools. Even if it might miss a feature of two :-)

Eelco


On Mon, May 23, 2011 at 10:52 AM, Martin Grigorov  wrote:
> Well, I don't share your opinion here :-)
>
> Chrome Dev tools have no "persist console content" - once you reload the
> page all the logs are gone. There is a RFE for that and I voted for it.
> Also I miss the 'Net' tab.
> Also Firefox's WebDeveloper tools are much better than current state in
> Chrome and its extensions.
>
> On Mon, May 23, 2011 at 8:45 PM, Brown, Berlin [GCG-PFS] <
> berlin.br...@primerica.com> wrote:
>
>> FYI...
>>
>> I usually ask questions but I thought I post a comment about google
>> chrome.  The chrome browser has default web debugging that is similar to
>> firebug.
>>
>> With Firebug, it is more difficult to detect the wicket ajax rendered
>> content but comes up automatically in chrome.  Also speed wise, chrome
>> renders much faster than IE or Firefox.  I tested Ajax oriented complex
>> content and chrome just works quickly.
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>

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



Re: facebook like iframe in wicket

2011-05-23 Thread Igor Vaynberg
whatver component writes that out should take a imodel and use
it to put the right thing into the like url

-igor

On Sat, May 21, 2011 at 3:33 AM, labano10  wrote:
> I  want to incorporate the facebook like button in my wicket application
> page. The page is a story page which displays different stories based on
> what story the user clicked on in the previous page. Basically, the page is
> rendered with one story every time. Based on the facebook implementation of
> the like button:
>
>  src="http://www.facebook.com/plugins/like.php?app_id=219924774692113&href=http%3A%2F%2Fapps.facebook.com%2Fmyappname%2F%3Fref%3Dbookmarks&send=true&layout=standard&width=450&show_faces=true&action=like&colorscheme=light&font=verdana&height=80";
> scrolling="no" frameborder="0"
> style="border: none; overflow: hidden; width: 450px; height: 80px;
> allowTransparency="true">
>
>
> How do I go about making each like mapped to each of the stories??
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3540423.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: facebook like iframe in wicket

2011-05-23 Thread labano10
@Igor, my main problem actually is updating the src attribute of the iframe
at run time because that's what facebook uses to construct the like button.
The href part(within src) constitutes of the url of the page being liked
with escapes(%3A for : and %2F for /). I want to update especially this part
at run time. How do I do it in wicket. I am currently checking out the
wicket velocity see if it can help. Do you have any other idea, sorry I may
not have been clear initially. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3544892.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: facebook like iframe in wicket

2011-05-23 Thread Igor Vaynberg
how are you outputting it now?

-igor

On Mon, May 23, 2011 at 11:27 AM, labano10  wrote:
> @Igor, my main problem actually is updating the src attribute of the iframe
> at run time because that's what facebook uses to construct the like button.
> The href part(within src) constitutes of the url of the page being liked
> with escapes(%3A for : and %2F for /). I want to update especially this part
> at run time. How do I do it in wicket. I am currently checking out the
> wicket velocity see if it can help. Do you have any other idea, sorry I may
> not have been clear initially.
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3544892.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: Google Chrome and Apache Wicket, an awesome combination

2011-05-23 Thread nino martinez wael
I use both for development, check once in a while if the app stil works in
ie. ..
On May 23, 2011 7:54 PM, "Eelco Hillenius" 
wrote:
> Imho the overall user experience in Chrome is better, including the
> developer tools. Even if it might miss a feature of two :-)
>
> Eelco
>
>
> On Mon, May 23, 2011 at 10:52 AM, Martin Grigorov 
wrote:
>> Well, I don't share your opinion here :-)
>>
>> Chrome Dev tools have no "persist console content" - once you reload the
>> page all the logs are gone. There is a RFE for that and I voted for it.
>> Also I miss the 'Net' tab.
>> Also Firefox's WebDeveloper tools are much better than current state in
>> Chrome and its extensions.
>>
>> On Mon, May 23, 2011 at 8:45 PM, Brown, Berlin [GCG-PFS] <
>> berlin.br...@primerica.com> wrote:
>>
>>> FYI...
>>>
>>> I usually ask questions but I thought I post a comment about google
>>> chrome.  The chrome browser has default web debugging that is similar to
>>> firebug.
>>>
>>> With Firebug, it is more difficult to detect the wicket ajax rendered
>>> content but comes up automatically in chrome.  Also speed wise, chrome
>>> renders much faster than IE or Firefox.  I tested Ajax oriented complex
>>> content and chrome just works quickly.
>>>
>>
>>
>>
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com 
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


Re: facebook like iframe in wicket

2011-05-23 Thread labano10



I tried something like that but faced "Error using VM library :
VM_global_library.vm" and got stuck. I am new to velocity but I feel it can
provide the answer to my problem.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3544934.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: facebook like iframe in wicket

2011-05-23 Thread Igor Vaynberg
i dont know anything about velocity...

-igor

On Mon, May 23, 2011 at 11:39 AM, labano10  wrote:
>         style="border: none; overflow: hidden; width: 450px; height: 80px;"
>        allowTransparency="true">
>
>
> I tried something like that but faced "Error using VM library :
> VM_global_library.vm" and got stuck. I am new to velocity but I feel it can
> provide the answer to my problem.
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3544934.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 showing traces that we used wicket is it a problem

2011-05-23 Thread Igor Vaynberg
thousands of applications show they use php with .php extensions.
thousands more show that they use jsp by .jsp extensions, and a lot
more show they use struts with a .do extension. why does it matter?

-igor

On Sat, May 21, 2011 at 9:01 AM, hariharansrc  wrote:
> 
>    
>        Wicket form
>
>
>
>
> 
>
>    
>    action=";jsessionid=90C6F4DC17391001C2B5A3575453976D?wicket:interface=:0:form::IFormSubmitListener::"> style="width:0px;height:0px;position:absolute;left:-100px;top:-100px;overflow:hidden"> type="hidden" name="id1_hf_0" id="id1_hf_0" />
>
>  
>   helloworld
>
> 
>
>    
> 
>
>
> this is the html code i got for a simple program using ajax it shows many
> traces that we used wicket i am imagining is it cause any problem to reveal
> what we actually used to the users.
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/wicket-showing-traces-that-we-used-wicket-is-it-a-problem-tp3540810p3540810.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: facebook like iframe in wicket

2011-05-23 Thread labano10
What is the best way of replacing the href part with the url of the story
page every time I launch it (in wicket)?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3545002.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: facebook like iframe in wicket

2011-05-23 Thread Igor Vaynberg
oncomponenttag(tag) { tag.put("onclick", value); }

-igor

On Mon, May 23, 2011 at 12:59 PM, labano10  wrote:
> What is the best way of replacing the href part with the url of the story
> page every time I launch it (in wicket)?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3545002.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



BookmarkablePageLink with PopupSettings

2011-05-23 Thread Jered Myers
I am attempting to open a new browser tab to a bookmarkable page.  The 
constructor of my page is being called twice.  Is there a way I can 
prevent this from happening?  When I remove the PopupSettings the 
constructor is only called once, but the page does not open in a new tab.


Here is an example fragment of my implementation in Wicket 1.4.16:

ApplicationClass.java... mount(new 
QueryStringUrlCodingStrategy("MyPage", MyPage.class));


MyPageLink.java
public class MyPageLink extends BookmarkablePageLink
{
  public MyPageLink(String id, IModel identifierModel)
  {
 super(id, MyPage.class);
 setParameter("Identifier", identifierModel.getObject());
 PopupSettings popupSettings = new PopupSettings( blah | blah | 
blah); <-- Only PopupSettings.blah here

 setPopupSettings(popupSettings);
  }
}

MyPage.java
public class MyPage extends WebPage
{
public MyPage(final PageParameters params)
{
   super(params);
}
}

--
Jered


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



Re: wicket showing traces that we used wicket is it a problem

2011-05-23 Thread Maarten Billemont
I can only imagine it fits in the "security through obfuscation" category.  "If 
they don't know it's Wicket, they won't think to use a Wicket exploit on it!".

At any rate, I'd be more worried about the fact that you're running it in a 
Java VM than the fact that the front-end of it is generated by Apache Wicket.
If anything is going to be exploitable to do anything useful, it's going to be 
the VM.  Or more likely, your own code.

Don't get sucked into this obfuscation crap.  It buys you nothing.  But if you 
must, feel free to mount your pages with a .php extension and exhaust all the 
script kiddie's patience in his attempts at SQL injection.

On 23 May 2011, at 20:56, Igor Vaynberg wrote:

> thousands of applications show they use php with .php extensions.
> thousands more show that they use jsp by .jsp extensions, and a lot
> more show they use struts with a .do extension. why does it matter?
> 
> -igor
> 
> On Sat, May 21, 2011 at 9:01 AM, hariharansrc  wrote:
>> 
>>
>>Wicket form
>> 
>> 
>> 
>> 
>> 
>> 
>>
>>   > action=";jsessionid=90C6F4DC17391001C2B5A3575453976D?wicket:interface=:0:form::IFormSubmitListener::">> style="width:0px;height:0px;position:absolute;left:-100px;top:-100px;overflow:hidden">> type="hidden" name="id1_hf_0" id="id1_hf_0" />
>> 
>>  
>>   helloworld
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> this is the html code i got for a simple program using ajax it shows many
>> traces that we used wicket i am imagining is it cause any problem to reveal
>> what we actually used to the users.
>> 
>> 
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/wicket-showing-traces-that-we-used-wicket-is-it-a-problem-tp3540810p3540810.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
> 


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



MetaPattern Usage

2011-05-23 Thread Phil Franken
Can someone give me an example of how to group MetaPatterns?  For 
example if I want to allow MetaPattern.WORD and 
MetaPattern.EXCLAMATION_POINT...


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



Re: wicket showing traces that we used wicket is it a problem

2011-05-23 Thread hariharansrc
i am just a beginner so i am just asking, it may cause a problem if any
security holes we found, other than that i am worrying about   nothing. I
feel very comfortable to use java in development especially wicket and
hibernate. So, i have no plan to switch to .net or php at any cost. Even 
will just make my friends also to use wicket and java  because of its ease.
thank you for replies

then i am having a another small clarification

whenever i deploy a application using wicket i get https i am using
websphere server is it the default mode of wicket or it is because of any
other  reason. how to switch between https and http. is it something related
with stateful nature of wicket


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/the-html-pages-showing-traces-that-we-used-wicket-is-it-a-problem-tp3540810p3546099.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 showing traces that we used wicket is it a problem

2011-05-23 Thread Igor Vaynberg
by default wicket does not enforce https. it does, however, give you
an easy way to switch - just google it.

-igor


On Mon, May 23, 2011 at 9:02 PM, hariharansrc  wrote:
> i am just a beginner so i am just asking, it may cause a problem if any
> security holes we found, other than that i am worrying about   nothing. I
> feel very comfortable to use java in development especially wicket and
> hibernate. So, i have no plan to switch to .net or php at any cost. Even
> will just make my friends also to use wicket and java  because of its ease.
> thank you for replies
>
> then i am having a another small clarification
>
> whenever i deploy a application using wicket i get https i am using
> websphere server is it the default mode of wicket or it is because of any
> other  reason. how to switch between https and http. is it something related
> with stateful nature of wicket
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/the-html-pages-showing-traces-that-we-used-wicket-is-it-a-problem-tp3540810p3546099.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: BookmarkablePageLink with PopupSettings

2011-05-23 Thread Martin Grigorov
put a breakpoint in your page constructor and see why it is called twice

On Mon, May 23, 2011 at 11:48 PM, Jered Myers
wrote:

> I am attempting to open a new browser tab to a bookmarkable page.  The
> constructor of my page is being called twice.  Is there a way I can prevent
> this from happening?  When I remove the PopupSettings the constructor is
> only called once, but the page does not open in a new tab.
>
> Here is an example fragment of my implementation in Wicket 1.4.16:
>
> ApplicationClass.java... mount(new QueryStringUrlCodingStrategy("MyPage",
> MyPage.class));
>
> MyPageLink.java
> public class MyPageLink extends BookmarkablePageLink
> {
>  public MyPageLink(String id, IModel identifierModel)
>  {
> super(id, MyPage.class);
> setParameter("Identifier", identifierModel.getObject());
> PopupSettings popupSettings = new PopupSettings( blah | blah | blah);
> <-- Only PopupSettings.blah here
> setPopupSettings(popupSettings);
>  }
> }
>
> MyPage.java
> public class MyPage extends WebPage
> {
>public MyPage(final PageParameters params)
>{
>   super(params);
>}
> }
>
> --
> Jered
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com