Re: TinyMce disappears with CryptoMapper

2014-01-08 Thread jchappelle
I have found a work around but this seems to be a bug in the
wicketstuff-tinymce project. I looked in the
wicket.contrib.tinymce.TinyMceInitializer class and the first line of the
init method had this:
application.getRootRequestMapperAsCompound().add(new
TinyMceRequestMapper());

The change I made is in my Application.init. I added the above line after
registering my CryptoMapper. So the last two lines of my Application.init
look like this:

setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), 
this));
getRootRequestMapperAsCompound().add(new 
TinyMceRequestMapper());

I'm not sure how to post a bug to the tinymce project but this seems like
something they would want to fix. Hopefully others that have this issue will
find this post useful.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMce-disappears-with-CryptoMapper-tp4663499p4663556.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: TinyMce disappears with CryptoMapper

2014-01-08 Thread Sven Meier

Hi,

tinymce loads some Javascript files dynamically, e.g. editor_template.js.

wicketstuff-tinymce uses a custom request mapper with some magic to 
serve these files, see TinyMceRequestMapper.KNOWN_SEGMENTS.


This won't work with the hashed paths created by CryptoMapper.

Regards
Sven

On 01/07/2014 08:17 PM, jchappelle wrote:

Sorry I thought I posted it.

Another thing I'll mention is when I turn on request logging I see these two
lines logged out in the console when the problem occurs. It looks like the
last couple of segments aren't being encrypted.

http://localhost:8080/L7ExSNbPC4sb6TPJDblCAkN0baRJxw3qBR0wyJEtP3uLmhnUUFEbeu7SFNM9wrlMrHBtoodlQMAPr5CCP9g2aproPDfvon2O/L7E59/TPJfd//langs/en.js
http://localhost:8080/L7ExSNbPC4sb6TPJDblCAkN0baRJxw3qBR0wyJEtP3uLmhnUUFEbeu7SFNM9wrlMrHBtoodlQMAPr5CCP9g2aproPDfvon2O/L7E59/TPJfd//themes/simple/editor_template.js

Here is the quickstart
tinymce-crypto-quickstart.zip
<http://apache-wicket.1842946.n4.nabble.com/file/n4663520/tinymce-crypto-quickstart.zip>

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMce-disappears-with-CryptoMapper-tp4663499p4663520.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: TinyMce disappears with CryptoMapper

2014-01-07 Thread jchappelle
Sorry I thought I posted it. 

Another thing I'll mention is when I turn on request logging I see these two
lines logged out in the console when the problem occurs. It looks like the
last couple of segments aren't being encrypted.

http://localhost:8080/L7ExSNbPC4sb6TPJDblCAkN0baRJxw3qBR0wyJEtP3uLmhnUUFEbeu7SFNM9wrlMrHBtoodlQMAPr5CCP9g2aproPDfvon2O/L7E59/TPJfd//langs/en.js
http://localhost:8080/L7ExSNbPC4sb6TPJDblCAkN0baRJxw3qBR0wyJEtP3uLmhnUUFEbeu7SFNM9wrlMrHBtoodlQMAPr5CCP9g2aproPDfvon2O/L7E59/TPJfd//themes/simple/editor_template.js

Here is the quickstart
tinymce-crypto-quickstart.zip
<http://apache-wicket.1842946.n4.nabble.com/file/n4663520/tinymce-crypto-quickstart.zip>
  

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMce-disappears-with-CryptoMapper-tp4663499p4663520.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: TinyMce disappears with CryptoMapper

2014-01-07 Thread Sven Meier

Where's the quickstart?

Sven

On 01/07/2014 07:28 PM, jchappelle wrote:

I have a quickstart now. The setResponsePage(new TinyMcePage()) seems to
cause the issue. On the HomePage I have a tinymce and it displays fine.
However if you click a link that does the setResponsePage and transition to
a new page it does not display.

Any ideas?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMce-disappears-with-CryptoMapper-tp4663499p4663518.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: TinyMce disappears with CryptoMapper

2014-01-07 Thread jchappelle
I have a quickstart now. The setResponsePage(new TinyMcePage()) seems to
cause the issue. On the HomePage I have a tinymce and it displays fine.
However if you click a link that does the setResponsePage and transition to
a new page it does not display.

Any ideas?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMce-disappears-with-CryptoMapper-tp4663499p4663518.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: TinyMce disappears with CryptoMapper

2014-01-06 Thread jchappelle
Yes. It is version 6.12.0 also.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMce-disappears-with-CryptoMapper-tp4663499p4663504.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: TinyMce disappears with CryptoMapper

2014-01-06 Thread Andrea Del Bene

Hi,

are you using the TinyMCE module from WicketStuff?

I have a weird problem in wicket 6.12.0 where the TinyMce component does not
display. It will in certain cases and in some of those cases a browser
refresh causes it to vanish. If I remove the CryptoMapper from my
Application.init method then it works fine. I tried creating a quickstart
but I was unable to recreate the problem. I am hoping someone can point me
in the right direction.

By the way I do not think this was just introduced in 6.12.0. I have tried
several versions and it is still there.

Everytime it does not appear I see this error in the log:

java.lang.IllegalArgumentException: Argument 'name' may not be null or
empty.
at org.apache.wicket.util.lang.Args.notEmpty(Args.java:64)
at
org.apache.wicket.core.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:137)
at
org.apache.wicket.core.request.mapper.BookmarkableMapper.parseRequest(BookmarkableMapper.java:118)
at
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:288)
at
org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:152)
at
org.apache.wicket.core.request.mapper.CryptoMapper.mapRequest(CryptoMapper.java:127)
at
org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:190)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:215)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
at
org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:152)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:349)
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:904)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:565)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217)
at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
at java.lang.Thread.run(Thread.java:724)


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMce-disappears-with-CryptoMapper-tp4663499.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



TinyMce disappears with CryptoMapper

2014-01-06 Thread jchappelle
I have a weird problem in wicket 6.12.0 where the TinyMce component does not
display. It will in certain cases and in some of those cases a browser
refresh causes it to vanish. If I remove the CryptoMapper from my
Application.init method then it works fine. I tried creating a quickstart
but I was unable to recreate the problem. I am hoping someone can point me
in the right direction.

By the way I do not think this was just introduced in 6.12.0. I have tried
several versions and it is still there.

Everytime it does not appear I see this error in the log:

java.lang.IllegalArgumentException: Argument 'name' may not be null or
empty.
at org.apache.wicket.util.lang.Args.notEmpty(Args.java:64)
at
org.apache.wicket.core.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:137)
at
org.apache.wicket.core.request.mapper.BookmarkableMapper.parseRequest(BookmarkableMapper.java:118)
at
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:288)
at
org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:152)
at
org.apache.wicket.core.request.mapper.CryptoMapper.mapRequest(CryptoMapper.java:127)
at
org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:190)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:215)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
at
org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:152)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:349)
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:904)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:565)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217)
at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
at java.lang.Thread.run(Thread.java:724)


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMce-disappears-with-CryptoMapper-tp4663499.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