Re: Bunch of Page Expired exceptions in Wicket 6.10.0
by tabs do you mean browser tabs? if you have 2 tabs: http://localhost:8080/Foo and http://localhost:8081/Bar then reloading each tab will often invalidate the previous tab. the session cookie is overwritten. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bunch-of-Page-Expired-exceptions-in-Wicket-6-10-0-tp4661502p4661540.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 from db
i'm trying to be a proof-of-concept where I use wicket to use styles that are loaded from the database. I've managed to get my custom markup to load but it seems that its only loaded once then cached (even in dev mode). This is what I've tried: IResourceSettings settings = getResourceSettings(); settings.setResourcePollFrequency(Duration.seconds(10)); settings.getResourceFinders().add(0, new SkinResourceFinder()); I searched for references to IResourceSettings.getResourcePollingFrequency() and found this: org.apache.wicket.devutils.inspector - src/main/java - wicket-devutils ApplicationView ApplicationView(String, Application) org.apache.wicket.jmx - src/main/java - wicket-jmx ResourceSettings getResourcePollFrequency() org.apache.wicket.settings.def - src/main/java - wicket-core ResourceSettings getResourcePollFrequency() getResourceWatcher(boolean) My guess is that getResourceWatcher(boolean) is where the polling value gets used but I assume that since polling works in dev mode for normal resource finder then there is something else going on. My implementation of IResourceFinder basically returns: return new StringResourceStream(sw.toString(), text/html); any ideas? -m -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/custom-markup-from-db-tp4661542.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 + autowired annotation
how do you instantiate ClsDb? I don't see a @Component/@Service/etc annotation on it so my guess is you use something like... clsdb = new ClsDb(); clsdb.save(); You need to have the class creaed by spring's bean factory or injected by wicket's component instantiation listener. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-autowired-annotation-tp4661529p4661543.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 + autowired annotation
I forgot to also mention... I've noticed that @Autowired does NOT work whereas @Inject does. Also, @Value annotations don't work either. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-autowired-annotation-tp4661529p4661575.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 + autowired annotation
If you are using _only_ spring and no wicket you _still_ can't do the new ClsDb() method and have the @Autowired fields populated. You're question isn't really specific to wicket anymore in that situation. On Fri, Sep 27, 2013 at 12:32 PM, dan123 [via Apache Wicket] ml-node+s1842946n4661583...@n4.nabble.com wrote: Thanks to everybody for help. Paul Bors wrote As far as I can tell you the Spring native annotations work within the implementation of a bean you already injected in your wicket component. First crate a service for yourself and inject it where needed in Wicket via @SpringBean. Then inside your service feel free to inject other Spring dependencies via Spring's native annotations. It works. But I thought, that I can set something (something like a scanning all classes) in web.xml or springContext.xml file to scan for all @Autowired annotations and it will be autowired in all classes. So why I have to use @SpringBean ClsDb clsDb; in my HomePage.class and then I can use @Autowired in CldDb class. Why I cannon use only new ClsDb();? There is no way how to autowired all beans? -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/wicket-autowired-annotation-tp4661529p4661583.html To unsubscribe from wicket + autowired annotation, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4661529code=bWlndWVsQHRoZWRlYW5kYS5jb218NDY2MTUyOXwxNjAzMjU4NTI= . NAMLhttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-autowired-annotation-tp4661529p4661586.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 connect elements - label and input (checkbox)
I found this searching for the same answer and my existing code was: input type=checkbox wicket:id=acceptTerms/ label wicket:for=acceptTermsI agree to the terms/label but the output is: input type=checkbox name=acceptTerms id=acceptTerms5/ label for=acceptTerms5I agree to the terms/label but sometimes it seems that the id isn't set on the checkbox. I'm still trying to figure out why. (using 6.10 still) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-connect-elements-label-and-input-checkbox-tp4650304p4661648.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 connect elements - label and input (checkbox)
aha! it seems that the first time it renders it doesn't include the id in the checkbox. when it fails validation, the id appears and the label works as expected. i'll dig into the code when i get a chance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-connect-elements-label-and-input-checkbox-tp4650304p4661649.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: Bunch of Page Expired exceptions in Wicket 6.10.0
Yes, but in my example, I was referring to how 2 different apps with different cookies are both running on localhost with different ports. I get this issue all the time on chromium when I test multiple apps all on location with different ports. I keep having to login whenever I refresh a different tab. (yeah, i know it took me 4 months to get back to this but i was busy. :-) ) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bunch-of-Page-Expired-exceptions-in-Wicket-6-10-0-tp4661502p4663946.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
continueToOriginalDestination hacks
I'm building an app that uses oauth to login but I found that continueToOriginalDestination doesn't work when I login via twitter but it works when I use google to login. The user instead ends up in the fallback value I used: continueToOriginalDestination(); setResponsePage(MemberHome.class); The oauth code for google vs twitter is pretty much the same and before I realized it was specific to twitter, I thought it was a wicket bug. I'm trying to add another fallback method wherein I manually store the original destination value and deal with it myself. If anybody is curious I use the following setup: scribe-java for oauth a LoginPanel class that shows 2 login forms (google, twitter) form submits end in something like: throw new RedirectToUrlException(twitterLoginUrl); login panel handles the return from oauth using page parameters and upon success calls: - signIn on websession - continueToOriginalDestination(); - setResponsePage(MemberHome.class); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/continueToOriginalDestination-hacks-tp4663947.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: continueToOriginalDestination hacks
nevermind. there was a rogue try/catch catching the continueToOriginalDestination exception... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/continueToOriginalDestination-hacks-tp4663947p4663950.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 session and wildfly
:240) [jboss-modules.jar:1.3.0.Final] at org.jboss.marshalling.ModularClassResolver.resolveClass(ModularClassResolver.java:106) ... 80 more Caused by: an exception which occurred: in map value at index [0] of size [2] at first i thought it was because an object created by an @Inject annotation but i've removed it to test. i'm not sure if its a wicket or wildfly issue as I don't have an quick way to isolate the two right now. has anybody else seem similar issues? the biggest problem with this is that browsers that were running before continue to attempt to use the bad session until they clear cookies. it effectively breaks the site unless i restart jboss. -miguel -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-session-and-wildfly-tp4664073.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 connect elements - label and input (checkbox)
wow this is the strangest thing. i searched for the same thing a year later (to the day almost) and again its a silly agree to terms checkbox and guess what... wicket 6.17.0 seems to have the same problem... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-connect-elements-label-and-input-checkbox-tp4650304p4667770.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
WebApplication-level styles?
Hi, Is it possible to set the style once, at the WebApplication, instead of getting the Session in every Page, and calling setStyle() ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CSS Links and request forwarding
Hi, I have a servlet on /site. Depending on the User-Agent, it will use the RequestDispatcher and forward to /site1 or /site2. /site1 is mapped to the Wicket filter, /site2 is another plain servlet. When I open site1 directly, the CSS link is alright. In the original html: link href=site1/styles/site.css rel=stylesheet type=text/css / In the processed html: link href=../site1/styles/site.css rel=stylesheet type=text/css/ But, when I open this through /site and it passes through the RequestDispatcher, the processed html becomes: link href=../../site1/styles/site.css rel=stylesheet type=text/css/ How did the base URL change? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CSS Links and request forwarding
On Tue, Jul 8, 2008 at 8:37 PM, James Carman [EMAIL PROTECTED] wrote: Try redirecting rather than forwarding I'm trying to avoid redirecting. Do you mean, forwarding cannot retain the correct URL? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception adding a SimpleAttributeModifier to a TextField
Comrades, I'm getting a strange exception. I created a SimpleAttributeModifier and added it to a TextField component, like this: textField.add(modifier); When I run it, I get an exception that says this: java.lang.ClassCastException: org.apache.wicket.behavior.SimpleAttributeModifier cannot be cast to org.apache.wicket.behavior.IBehaviorListener at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:91) The line of code that generates the exception looks like this: behaviorListener = (IBehaviorListener)component.getBehaviors().get(idAsInt); It appears to be extracting from a list of IBehaviors, so I have no idea why it's trying to cast it as an IBehaviorListener. Does anybody know what I'm doing wrong? Or is this a bug in Wicket? -- View this message in context: http://www.nabble.com/Exception-adding-a-SimpleAttributeModifier-to-a-TextField-tp16262822p16262822.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Exception adding a SimpleAttributeModifier to a TextField
Here's a test case to reproduce the bug. I'm doing something slightly unorthodox, but it shouldn't cause the bug I'm seeing. I'm using an application structure adapted from the book Wicket in Action. -- Miguel Muñoz -Original Message- From: Johan Compagner [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 3:22 PM To: users@wicket.apache.org Subject: Re: Exception adding a SimpleAttributeModifier to a TextField Do you have a testcase that you can attach to a jira issue? This is strange because why is there a behaviorrequesttarget created for that attribute modifier, that seems very strange On 3/24/08, Miguel Munoz [EMAIL PROTECTED] wrote: Comrades, I'm getting a strange exception. I created a SimpleAttributeModifier and added it to a TextField component, like this: textField.add(modifier); When I run it, I get an exception that says this: java.lang.ClassCastException: org.apache.wicket.behavior.SimpleAttributeModifier cannot be cast to org.apache.wicket.behavior.IBehaviorListener at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:91) The line of code that generates the exception looks like this: behaviorListener = (IBehaviorListener)component.getBehaviors().get(idAsInt); It appears to be extracting from a list of IBehaviors, so I have no idea why it's trying to cast it as an IBehaviorListener. Does anybody know what I'm doing wrong? Or is this a bug in Wicket? -- View this message in context: http://www.nabble.com/Exception-adding-a-SimpleAttributeModifier-to-a-TextField-tp16262822p16262822.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Exception adding a SimpleAttributeModifier to a TextField
I couldn't find a link to Jira on the Apache Wicket web site. Can you send me a link? -- Miguel Munoz -Original Message- From: Johan Compagner [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2008 3:27 PM To: users@wicket.apache.org Subject: Re: Exception adding a SimpleAttributeModifier to a TextField where is the test case? please do not send those things to the list, they get lost make jira issues. johan On Tue, Mar 25, 2008 at 11:17 PM, Miguel Munoz [EMAIL PROTECTED] wrote: Here's a test case to reproduce the bug. I'm doing something slightly unorthodox, but it shouldn't cause the bug I'm seeing. I'm using an application structure adapted from the book Wicket in Action. -- Miguel Muñoz -Original Message- From: Johan Compagner [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 3:22 PM To: users@wicket.apache.org Subject: Re: Exception adding a SimpleAttributeModifier to a TextField Do you have a testcase that you can attach to a jira issue? This is strange because why is there a behaviorrequesttarget created for that attribute modifier, that seems very strange On 3/24/08, Miguel Munoz [EMAIL PROTECTED] wrote: Comrades, I'm getting a strange exception. I created a SimpleAttributeModifier and added it to a TextField component, like this: textField.add(modifier); When I run it, I get an exception that says this: java.lang.ClassCastException: org.apache.wicket.behavior.SimpleAttributeModifier cannot be cast to org.apache.wicket.behavior.IBehaviorListener at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents (BehaviorRequestTarget.java:91) The line of code that generates the exception looks like this: behaviorListener = (IBehaviorListener)component.getBehaviors().get(idAsInt); It appears to be extracting from a list of IBehaviors, so I have no idea why it's trying to cast it as an IBehaviorListener. Does anybody know what I'm doing wrong? Or is this a bug in Wicket? -- View this message in context: http://www.nabble.com/Exception-adding-a-SimpleAttributeModifier-to-a-TextField-tp16262822p16262822.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
UTF-8 Byte Order Marks in .html files
Hi, I found out - through a lot of trial and error - that if your .html file has a Byte Order Mark, the ?xml encoding=utf-8 ? at the top of the document is ignored. The document is treated as something else - I'm not sure what. The effect is that the special output characters become the ? unknown characters. Is this a known issue? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UTF-8 Byte Order Marks in .html files
On Wed, Jun 25, 2008 at 9:51 PM, Brill Pappin [EMAIL PROTECTED] wrote: I think it might be your browser that is not displaying the unicode chars. That you see the odd symbols at all means that the made it to the client side. Are you on a Mac? Hi! Thanks for the reply. No, I'm on Firefox 3 on Windows. Do you have an idea why removing the BOM fixes it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]