Re: Injecting proxy services in page.

2013-06-05 Thread harmoniaa
If you are already using XmlWebApplicationContext (extends
AbstractRefreshableWebApplicationContext like
AnnotationConfigWebApplicationContext) that is probably not the issue, but
you can set the context class in your web.xml like this:


...

contextClass

   
org.springframework.web.context.support.AnnotationConfigWebApplicationContext







--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Injecting-proxy-services-in-page-tp4659209p4659252.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



Custom markup cache key in hierarchy

2013-06-05 Thread Bas Gooren

Hi *,

We've built a platform which hosts dynamic websites. Websites can be 
added/updated/removed on demand, and all run on a single wicket 
application (wicket 1.5-based).


So far we've used custom css to override the look & feel for each 
websites, providing the websites with a selection of themes (css + images).


One of the features we're currently researching is to allow a theme to 
provide custom html to the wicket base page which is used for layout.
We've also built a CMS in wicket, so using IMarkupResourceStreamProvider 
and IMarkupCacheKeyProvider is something we've done before.

So far, so good.

The problem is that we have various pages in the app which extend our 
base page (WebsiteLayout), and their markup is not refreshed once the 
layout changes it's theme (and thus has different html).
Even though we return a different markup cache key (it's based on the 
theme ID), and a different markup resource stream, the new markup is 
never loaded.


I think it's due to the fact that pages which extend the layout also 
have their entire markup cached (MergedMarkup).


My original idea was to only provide a custom cache key for the layout, 
and let wicket handle everything else. Then, when the theme html is 
updated, we can simply remove that single cache key from the wicket 
markup cache, and it will be reloaded.


I think we can circumvent that by providing a custom markup cache key 
for all pages which extend the layout, but that creates a bit of a 
hassle for cleaning up the markup cache. It's doable (keep track of all 
cache keys generated for a theme, and remove all of them from the 
cache), but before we proceed I'd like some feedback from others: is 
this the way to go?


--

Met vriendelijke groet,
Kind regards,

Bas Gooren



How to create a crosstab repeater

2013-06-05 Thread Noven
Hi all,

I wonder how to use wicket to repeat things like cross tab (like the one that 
have on jasper report palette).

Example of what I want achieve can be seen here : checkcategoryxtab.png

Thank you.

Re: A child with id 'XXXX' already exist AND class constructor called twice issue

2013-06-05 Thread Paul Bors
See the Wicket free guide section section 11.2 Component ListView
http://wicket.apache.org/learn/books/freeguide.html

I also don't see your HTML markup for the wicket:id="eventos" so I'm not
sure how you got to add it at least once?



-
~ Thank you,
p...@bors.ws
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/A-child-with-id--already-exist-AND-class-constructor-called-twice-issue-tp4659200p4659249.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 head places script before the script tags

2013-06-05 Thread Paul Bors
See the Wicket free guide section section 13.4 "Adding resources to page
header section"
http://wicket.apache.org/learn/books/freeguide.html


On Wed, Jun 5, 2013 at 10:57 AM, fachhoch  wrote:

> I am trying to use wicket head tag containg some jquery  script, when the
> page rendered wicket is placing this script on top of jquery script tag , I
> am using wicket 1.4.21, in this case my script will never be executed,
> please advice.
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/wicket-head-places-script-before-the-script-tags-tp4659246.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: Browser Back Button Question

2013-06-05 Thread dhongyt
I have such weird results too.

In Chrome Subscription Page would give me the session closed issue after
three clicks back, but then on a recent to the Download Page it would give
me a session closed also. Page session count seems to skip by two.

In Firefox Page session count is normal. Only pages that I get session
closed from is Subscription Page and when it displays my search results.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Browser-Back-Button-Question-tp4658397p4659247.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



wicket head places script before the script tags

2013-06-05 Thread fachhoch
I am trying to use wicket head tag containg some jquery  script, when the
page rendered wicket is placing this script on top of jquery script tag , I
am using wicket 1.4.21, in this case my script will never be executed,
please advice.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-head-places-script-before-the-script-tags-tp4659246.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: Injecting proxy services in page.

2013-06-05 Thread Entropy
At the risk of turning this into a Spring discussion on a Wicket forum, how
does one control that?  I would like to try your suggestion, but am not sure
what knob to twist.

We just implement ApplicationContextAware, and point to our spring config
file in web.xml.  I don't set anywhere asking for a particular KIND of
appcontext to be used.  When it hands it to me, it is
XmlWebApplicationContext.  



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Injecting-proxy-services-in-page-tp4659209p4659245.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-4500 / WICKET-5140 and RestartResponseAtInterceptPageException.clearOriginalDestination()

2013-06-05 Thread Sven Meier

Hi Dirk,

overriding #onUnauthorizedInstantiation() wouldn't help you, since 
#restartResponseAtSignInPage() overwrites the old interceptData with a 
new one.


You're the one to decide when the interceptData can be cleared: In the 
page constructor would be a possibility. An IRequestCycleListener would 
be another one.


Sven


On 06/05/2013 07:23 AM, Dirk Forchel wrote:

Any idea? Any hint? Or should I add clearInterceptData() to the constructor
of each Page class with authorized access? A short description in source
code would be helpful.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WICKET-4500-WICKET-5140-and-RestartResponseAtInterceptPageException-clearOriginalDestination-tp4659205p4659242.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: ResourceReference serving video files

2013-06-05 Thread Maxim Solodovnik
Hello All,

I performed tcpdump of "regular" Tomcat response to the video file and
"wicket" response to video file
and found couple of differences:

Tomcat sets following additional headers:
Accept-Ranges
ETag

and seems to be able to serve various ranges setting: Content-Range header

Can it be the cause of my issue?
Is it possible to create ResourceReference with "Content-Range" support?

Thanks in advance


On Tue, Jun 4, 2013 at 12:55 PM, Maxim Solodovnik wrote:

> Hello All,
>
> I have weird problem:
> 1) wicket 6.8.0
> 2) resources are mounted in Application [1] using mountResource
> 3) video files are viewable in IE, Chrome, FF, Safari (iMac)
> 4) I got huge stack trace while accessing the files using iPad (Safari,
> latest iOS) [3]
>
> The code of resource references can be found at [2]
>
> Mp4 file served by Tomcat itself displayed on iPad with no issues.
>
> Can anyone please help me to find out what is wrong with my Resource
> references? Maybe some headers should be set?
>
> [1]
> https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java
> [2]
> https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/util/Mp4RecordingResourceReference.java
>
> https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/util/RecordingResourceReference.java
>
> [3]
> DEBUG 06-04 12:43:28.897 ServletWebRequest.java 6865150 202
> org.apache.wicket.protocol.http.servlet.ServletWebRequest
> [http-bio-0.0.0.0-5080-exec-6] - Calculating context relative path from:
> context path '/openmeetings', filterPrefix '', uri
> '/openmeetings/recordings/mp4/69'
> ERROR 06-04 12:43:29.355 DefaultExceptionMapper.java 6865608 114
> org.apache.wicket.DefaultExceptionMapper [http-bio-0.0.0.0-5080-exec-6] -
> Connection lost, give up responding.
> org.apache.wicket.protocol.http.servlet.ResponseIOException:
> ClientAbortException:  java.net.SocketException: Broken pipe
>  at
> org.apache.wicket.protocol.http.servlet.ServletWebResponse.write(ServletWebResponse.java:139)
> ~[wicket-core-jar-6.8.0.jar:6.8.0]
> at
> org.apache.wicket.protocol.http.HeaderBufferingWebResponse.write(HeaderBufferingWebResponse.java:191)
> ~[wicket-core-jar-6.8.0.jar:6.8.0]
>  at
> org.apache.wicket.request.Response$StreamAdapter.write(Response.java:148)
> ~[wicket-request-jar-6.8.0.jar:6.8.0]
> at org.apache.wicket.util.io.Streams.copy(Streams.java:109)
> ~[wicket-util-jar-6.8.0.jar:6.8.0]
>  at org.apache.wicket.util.io.Streams.copy(Streams.java:76)
> ~[wicket-util-jar-6.8.0.jar:6.8.0]
> at
> org.apache.wicket.request.resource.AbstractResource$WriteCallback.writeStream(AbstractResource.java:707)
> ~[wicket-core-jar-6.8.0.jar:6.8.0]
>  at
> org.apache.wicket.request.resource.ResourceStreamResource$2.writeData(ResourceStreamResource.java:207)
> ~[wicket-core-jar-6.8.0.jar:6.8.0]
> at
> org.apache.wicket.request.resource.AbstractResource.respond(AbstractResource.java:528)
> ~[wicket-core-jar-6.8.0.jar:6.8.0]
>  at
> org.apache.wicket.request.handler.resource.ResourceRequestHandler.respond(ResourceRequestHandler.java:75)
> ~[wicket-core-jar-6.8.0.jar:6.8.0]
> at
> org.apache.wicket.request.handler.resource.ResourceReferenceRequestHandler.respond(ResourceReferenceRequestHandler.java:108)
> ~[wicket-core-jar-6.8.0.jar:6.8.0]
>  at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:861)
> ~[wicket-core-jar-6.8.0.jar:6.8.0]
> at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> ~[wicket-request-jar-6.8.0.jar:6.8.0]
>  at
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
> [wicket-core-jar-6.8.0.jar:6.8.0]
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
> [wicket-core-jar-6.8.0.jar:6.8.0]
>  at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
> [wicket-core-jar-6.8.0.jar:6.8.0]
> at
> org.apache.wicket.protocol.ws.AbstractUpgradeFilter.processRequestCycle(AbstractUpgradeFilter.java:59)
> [wicket-native-websocket-core-jar-0.9.jar:0.9]
>  at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
> [wicket-core-jar-6.8.0.jar:6.8.0]
> at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
> [wicket-core-jar-6.8.0.jar:6.8.0]
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>  at
> org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:77)
> [red5-server.jar:na]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>  at
> org.apache.catalina.core.A