Re: Link to Wicket page from Javascript
Hi, On Fri, Mar 14, 2014 at 8:44 PM, Bruce Lombardi wrote: > Thanks Ernesto, I was hoping for something simpler since what I have now > with a simple Jquery timer does everything I need except go the the > SessionTimeoutPage, where I would, as you suggest, invalidate the session. > I'm sure your solution would work, but I'm not familiar enough with > AbstractAjaxBehavior to implement it easily and the examples I've seen look > complicated. > > Sometimes it is more difficult to explain something than to do it... Hope this helps https://github.com/reiern70/antilia-bits/tree/master/client-sign-out-parent -- Regards - Ernesto Reinaldo Barreiro
Can't access to the resources bundled in external jar files
Hi, I'm working on a project using Wicket 6.14. I created a separate Maven project for all wicket plugins. This project uses JQuery UI 1.9.2. Then, I declared this project as a dependency in my main project. After deploying to JBoss AS, I noticed that the system generated a HTML file which includes the following declarations in : I could retrieve jquery-1.11.0 from the system by accessing to either of the following addresses: http://localhost:8080/mysystem-web/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-1.11.0-ver-1392362624000.js http://localhost:8080/mysystem-web/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-1.11.0.js However, I could only retrieve jquery-ui-1.9.2 from the system by accessing to the following address: http://localhost:8080/mysystem-web/wicket/resource/wicket.plugin.tokeninput.TokenInputAjaxBehavior/resources/jquery-ui-1.9.2.min.js If I access: http://localhost:8080/mysystem-web/wicket/resource/wicket.plugin.tokeninput.TokenInputAjaxBehavior/resources/jquery-ui-1.9.2.min-ver-1394982966000.js I encounter this error: HTTP Status 404 - Unable to find resource type Status report message Unable to find resource description The requested resource (Unable to find resource) is not available. JBoss Web/7.0.13.Final I have checked my local Maven repository and seen that the artifact for my plugin project does include the jquery-ui-1.9.2.js file in the correct package (wicket.plugin.tokeninput.resources). Could any one give me a hint about this issue? Thank you very much.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
I cant get rid of the message, nor can I log to a file. Im my pom.xml I have the following dependency: org.slf4j slf4j-log4j12 1.7.6 I also include the following jars into my classpath: log4j-1.2.17.jar slf4j-api-1.7.6.jar slf4j-log4j12-1.7.6.jar My log4j.properies is located under WEB-INF/classes and contains the following: log4j.rootLogger=DEBUG, INFO log4j.logger.org.apache.wicket=INFO log4j.logger.org.apache.wicket.protocol.http.HttpSessionStore=INFO log4j.logger.org.apache.wicket.version=INFO log4j.logger.org.apache.wicket.RequestCycle=INFO log4j.category.com.googlecode.wicket.jquery.ui.plugins.whiteboard=DEBUG ### direct log messages to stdout ### log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{dd-mm HH:mm:ss,SSS} %p/%c{1}:%L - %m%n ### direct log messages to slf4j ### log4j.appender.file=org.apache.log4j.RollingFileAppender log4j.appender.file.maxFileSize=2MB log4j.appender.file.maxBackupIndex=5 log4j.appender.file.File=./checkout.log log4j.appender.file.threshold=info log4j.appender.file.layout=org.apache.log4j.PatternLayout log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n I have no idea what's going on. Thanks, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/SLF4J-Failed-to-load-class-org-slf4j-impl-StaticLoggerBinder-tp4664986.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: WildCard URL strategy for E-Commerce Products
Ok, for lack of any conclusive existing solution; the following is what I developed and works for the use case described: Step 1: Create a BookmarkablePageRequestTargetUrlCodingStrategy that can accept RegularExpressions: Step 2: The default WebRequestCodingStrategy uses a MountMap that unfortunately uses path.startsWith(...) . So we have to write a WebRequestCodingStrategy that will make use of Regular Expressions. Step 3: The Strategies have to be called via the WebApplication. Hence in ones implementation/extension of WebApplication; do: Now run the App. Sample Run/Demo: If you define RegexQueryStringUrlCodingStrategy("productDetails", "^(.)*productDetails", ProductDetails.class); Then all the following will work: /productDetails /AnyCat/productDetails /AnySubCat/productDetails etc. Q.E.D -Arjun - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WildCard-URL-strategy-for-E-Commerce-Products-tp4664984p4664988.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