Re: Generating email from template outside request/response cycle
Derived from Wicket's ComponentRender class: https://bitbucket.org/shadders/wicket-el/src/a41127f0771a4b792255cfc0c2ec47c500db1b1b/src/main/java/com/shadworld/wicket/render/Renderer.java?at=default Not sure if it will solve the SpringBean problem but it it will work outside a wicket application. Renderer.init(); CharSequence html = Renderer.renderComponent(myPanel); On 14/12/13 02:39, dgn wrote: > Hello- > > I'm attempting to use the Wicket 6 email templating mechanism to render an > HTML email from a Panel OUTSIDE the normal request/response cycle -- in a > timer thread. I have already been successful generating email from within a > normal request by following the examples at > http://www.wicket-library.com/wicket-examples/mailtemplate/ > > The timer thread periodically checks the database for a particular situation > and, if the requirements are met, an email is generated. > > I have searched in vain in this forum for a solution. Two main problems I am > running into are: > - Getting the error message "There is no application attached to current > thread" > - Using @SpringBean does not work outside the Wicket context. This is true > even if I start the time thread within Application.init() > > I'd prefer to generate the email from a Panel as I already have those in > place but would definitely be willing to do so from a page. > > Thanks! > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Generating-email-from-template-outside-request-response-cycle-tp4663011.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: RadioGroup selected model value
Hi, to clarify: - a RadioChoice is for selecting an object from a list of objects and you don't need to control the markup - a RadioGroup/Radio is for selecting an object from a list of objects with free markup (e.g. a ) What you have is a special case, where you want to *set booleans on a list of objects*. This can easily be achieved with a RadioGroup/Radio and a special model: IModel agModel = new IModel() { public void setObject(AgModele agenda) { for (AgModele other : agendas) { other.setVisible(false); } agenda.setVisible(true); } public AgModele getObject() { for (AgModele other : agendas) { if (other.isVisible()) { return other; } } return null; } } Use this model for your RadioGroup. Sven On 12/13/2013 03:48 PM, Selom wrote: Hello, I confess I don't understand wicket radiogroup ( and model ). i spent too much time with it . Here is my problem. *AgPage.html* I would like to have debut2 to be *selected *, since visible = true. Thanks for tour help. - Selom -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RadioGroup-selected-model-value-tp4662998.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: Generating email from template outside request/response cycle
Hi, You can export the Application as thread local manually. See for example: https://github.com/apache/wicket/blob/442932d4e4c5cc27940bc2ef956cb24c1ba54df0/wicket-experimental/wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java#L200 Make sure you reset it to null at the end. Martin Grigorov Wicket Training & Consulting On Fri, Dec 13, 2013 at 6:39 PM, dgn wrote: > Hello- > > I'm attempting to use the Wicket 6 email templating mechanism to render an > HTML email from a Panel OUTSIDE the normal request/response cycle -- in a > timer thread. I have already been successful generating email from within a > normal request by following the examples at > http://www.wicket-library.com/wicket-examples/mailtemplate/ > > The timer thread periodically checks the database for a particular > situation > and, if the requirements are met, an email is generated. > > I have searched in vain in this forum for a solution. Two main problems I > am > running into are: > - Getting the error message "There is no application attached to current > thread" > - Using @SpringBean does not work outside the Wicket context. This is true > even if I start the time thread within Application.init() > > I'd prefer to generate the email from a Panel as I already have those in > place but would definitely be willing to do so from a page. > > Thanks! > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Generating-email-from-template-outside-request-response-cycle-tp4663011.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: java.lang.NoSuchMethodError: de.agilecoders.wicket.core.util.References.renderWithFilter
On Fri, Dec 13, 2013 at 7:31 PM, terryTornado wrote: > OKAY runs now for local testing :-) > > Thanks for the help from David on how to get it locally compiled: > > > David wrote > > - git clone https://github.com/l0rdn1kk0n/wicket-bootstrap.git > > - navigate to the directory where you cloned the above project > > - git checkout bootstrap3 (to get the bootstrap3 branch) > > - then in the current directory run mvn clean install > > I have use the > mvn install -DskipTests=true > because some errors in the tests on my machine > Please paste the errors you see. What JDK, Maven, OS do you use ? > > > Many thanks Martin and Michael and for all David. > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/java-lang-NoSuchMethodError-de-agilecoders-wicket-core-util-References-renderWithFilter-tp4662985p4663012.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: Why org.apache.wicket.pageStore.memory.PageTable isn't public?
Hi Martin, ok I will, thanks for answer and apology for kind of angry post..:) Best wishes Tomas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-org-apache-wicket-pageStore-memory-PageTable-isn-t-public-tp4662987p4663013.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: java.lang.NoSuchMethodError: de.agilecoders.wicket.core.util.References.renderWithFilter
OKAY runs now for local testing :-) Thanks for the help from David on how to get it locally compiled: David wrote > - git clone https://github.com/l0rdn1kk0n/wicket-bootstrap.git > - navigate to the directory where you cloned the above project > - git checkout bootstrap3 (to get the bootstrap3 branch) > - then in the current directory run mvn clean install I have use the mvn install -DskipTests=true because some errors in the tests on my machine Many thanks Martin and Michael and for all David. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/java-lang-NoSuchMethodError-de-agilecoders-wicket-core-util-References-renderWithFilter-tp4662985p4663012.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
Generating email from template outside request/response cycle
Hello- I'm attempting to use the Wicket 6 email templating mechanism to render an HTML email from a Panel OUTSIDE the normal request/response cycle -- in a timer thread. I have already been successful generating email from within a normal request by following the examples at http://www.wicket-library.com/wicket-examples/mailtemplate/ The timer thread periodically checks the database for a particular situation and, if the requirements are met, an email is generated. I have searched in vain in this forum for a solution. Two main problems I am running into are: - Getting the error message "There is no application attached to current thread" - Using @SpringBean does not work outside the Wicket context. This is true even if I start the time thread within Application.init() I'd prefer to generate the email from a Panel as I already have those in place but would definitely be willing to do so from a page. Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Generating-email-from-template-outside-request-response-cycle-tp4663011.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 and HTML5/jQuery or Dojo
OK, just making sure. And footer is a bad example, but like I see in that code, there might special scenarios for using Geolocation tags or canvas tags. Shrug. -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Friday, December 13, 2013 10:44 AM To: users@wicket.apache.org Subject: Re: Wicket and HTML5/jQuery or Dojo How is different than ? You can associate it with WebMarkupContainer, or with Panel. It depends what you want to do with it. https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/wicket-html5-parent provides components for some HTML5 elements. Anyone is welcome to add more if (s)he thinks they will be useful Martin Grigorov Wicket Training & Consulting On Fri, Dec 13, 2013 at 5:33 PM, Brown, Berlin [PRI-1PP] < berlin.br...@primerica.com> wrote: > Would wicket make it easier to use those tags. > > Could I just throw in a Footer object or Meter object into my code > (from the core library). Yes, I guess I could create custom components for > it. > But is there a strategy to respond to those components or not mention > them at all? > > -Original Message- > From: Martin Grigorov [mailto:mgrigo...@apache.org] > Sent: Friday, December 13, 2013 10:21 AM > To: users@wicket.apache.org > Subject: Re: Wicket and HTML5/jQuery or Dojo > > Hi, > > You are a long time Wicket user so I hope you have a good answer for: > > How Wicket stands on your way to use canvas, header, footer or any > JavaScript library ? > > Does Wicket throw exceptions when it sees ? No. > Just use whatever does the job the best way for you. > > > > Martin Grigorov > Wicket Training & Consulting > > > On Fri, Dec 13, 2013 at 5:12 PM, Brown, Berlin [PRI-1PP] < > berlin.br...@primerica.com> wrote: > > > Will Wicket support most of the HTML5 tags? Canvas? > > etc? Can wicket support plug and play javascript frameworks. > > > > I asked this on reddit: > > > > > > http://www.reddit.com/r/java/comments/1s5tq6/what_is_the_java_server > > si > > de_response_to_html5_and/ > > >
Re: Wicket and HTML5/jQuery or Dojo
How is different than ? You can associate it with WebMarkupContainer, or with Panel. It depends what you want to do with it. https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/wicket-html5-parent provides components for some HTML5 elements. Anyone is welcome to add more if (s)he thinks they will be useful Martin Grigorov Wicket Training & Consulting On Fri, Dec 13, 2013 at 5:33 PM, Brown, Berlin [PRI-1PP] < berlin.br...@primerica.com> wrote: > Would wicket make it easier to use those tags. > > Could I just throw in a Footer object or Meter object into my code (from > the core library). Yes, I guess I could create custom components for it. > But is there a strategy to respond to those components or not mention them > at all? > > -Original Message- > From: Martin Grigorov [mailto:mgrigo...@apache.org] > Sent: Friday, December 13, 2013 10:21 AM > To: users@wicket.apache.org > Subject: Re: Wicket and HTML5/jQuery or Dojo > > Hi, > > You are a long time Wicket user so I hope you have a good answer for: > > How Wicket stands on your way to use canvas, header, footer or any > JavaScript library ? > > Does Wicket throw exceptions when it sees ? No. > Just use whatever does the job the best way for you. > > > > Martin Grigorov > Wicket Training & Consulting > > > On Fri, Dec 13, 2013 at 5:12 PM, Brown, Berlin [PRI-1PP] < > berlin.br...@primerica.com> wrote: > > > Will Wicket support most of the HTML5 tags? Canvas? > > etc? Can wicket support plug and play javascript frameworks. > > > > I asked this on reddit: > > > > > > http://www.reddit.com/r/java/comments/1s5tq6/what_is_the_java_serversi > > de_response_to_html5_and/ > > >
RE: Wicket and HTML5/jQuery or Dojo
Would wicket make it easier to use those tags. Could I just throw in a Footer object or Meter object into my code (from the core library). Yes, I guess I could create custom components for it. But is there a strategy to respond to those components or not mention them at all? -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Friday, December 13, 2013 10:21 AM To: users@wicket.apache.org Subject: Re: Wicket and HTML5/jQuery or Dojo Hi, You are a long time Wicket user so I hope you have a good answer for: How Wicket stands on your way to use canvas, header, footer or any JavaScript library ? Does Wicket throw exceptions when it sees ? No. Just use whatever does the job the best way for you. Martin Grigorov Wicket Training & Consulting On Fri, Dec 13, 2013 at 5:12 PM, Brown, Berlin [PRI-1PP] < berlin.br...@primerica.com> wrote: > Will Wicket support most of the HTML5 tags? Canvas? > etc? Can wicket support plug and play javascript frameworks. > > I asked this on reddit: > > > http://www.reddit.com/r/java/comments/1s5tq6/what_is_the_java_serversi > de_response_to_html5_and/ >
Re: java.lang.NoSuchMethodError: de.agilecoders.wicket.core.util.References.renderWithFilter
Thanks Martin, this is the right way. (i get it not locally build, because errors in three pom's.) I will wait with my tests until it's new deployed. So the goal is to test if the sample application is running on openShift too, there must be a repository where the right libs are in. Many thanks Martin and Michael and for all David. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/java-lang-NoSuchMethodError-de-agilecoders-wicket-core-util-References-renderWithFilter-tp4662985p4663006.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 and HTML5/jQuery or Dojo
Hi, You are a long time Wicket user so I hope you have a good answer for: How Wicket stands on your way to use canvas, header, footer or any JavaScript library ? Does Wicket throw exceptions when it sees ? No. Just use whatever does the job the best way for you. Martin Grigorov Wicket Training & Consulting On Fri, Dec 13, 2013 at 5:12 PM, Brown, Berlin [PRI-1PP] < berlin.br...@primerica.com> wrote: > Will Wicket support most of the HTML5 tags? Canvas? > etc? Can wicket support plug and play javascript frameworks. > > I asked this on reddit: > > > http://www.reddit.com/r/java/comments/1s5tq6/what_is_the_java_serverside_response_to_html5_and/ >
Re: java.lang.NoSuchMethodError: de.agilecoders.wicket.core.util.References.renderWithFilter
just clone wicket-bootstrap project, checkout bootstrap3 branch and 'mvn install' it this should help you until 0.9.0 is out Martin Grigorov Wicket Training & Consulting On Fri, Dec 13, 2013 at 5:08 PM, terryTornado wrote: > Hi all, > > thanks for helping. > I only get out the 0.8.5 version. What's the secret to get the > 0.9.0-SNAPSHOT? > I really don't understand why not deploy a 0.9.1-SNAPSHOT with the new > modifications. I struggled at now 4 days with this problem to get the > little app to run. > > thanks > Stephan > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/java-lang-NoSuchMethodError-de-agilecoders-wicket-core-util-References-renderWithFilter-tp4662985p4663003.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: java.lang.NoSuchMethodError: de.agilecoders.wicket.core.util.References.renderWithFilter
we should release 0.9.0 soon I think the migration to Twitter Bootstrap 3 is done we can fix bugs in 0.9.x @Michael: do you read this ? On Fri, Dec 13, 2013 at 5:08 PM, terryTornado wrote: > Hi all, > > thanks for helping. > I only get out the 0.8.5 version. What's the secret to get the > 0.9.0-SNAPSHOT? > I really don't understand why not deploy a 0.9.1-SNAPSHOT with the new > modifications. I struggled at now 4 days with this problem to get the > little app to run. > > thanks > Stephan > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/java-lang-NoSuchMethodError-de-agilecoders-wicket-core-util-References-renderWithFilter-tp4662985p4663003.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 and HTML5/jQuery or Dojo
Will Wicket support most of the HTML5 tags? Canvas?etc? Can wicket support plug and play javascript frameworks. I asked this on reddit: http://www.reddit.com/r/java/comments/1s5tq6/what_is_the_java_serverside_response_to_html5_and/
Re: java.lang.NoSuchMethodError: de.agilecoders.wicket.core.util.References.renderWithFilter
Hi all, thanks for helping. I only get out the 0.8.5 version. What's the secret to get the 0.9.0-SNAPSHOT? I really don't understand why not deploy a 0.9.1-SNAPSHOT with the new modifications. I struggled at now 4 days with this problem to get the little app to run. thanks Stephan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/java-lang-NoSuchMethodError-de-agilecoders-wicket-core-util-References-renderWithFilter-tp4662985p4663003.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: Converting 1.4.7 to 6.12 - Login Error
On Fri, Dec 13, 2013 at 4:55 PM, Entropy wrote: > Thanks Martin, that did it. It now works with the class instead of an > instantiated page. I guess now pages passed through that exception must be > mounted? > No. It should work without mounting too but for some reason it seems it doesn't for you. If you are able to create a quickstart that reproduces the problem on Jetty/Tomcat then please create a ticket and attach it. > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Converting-1-4-7-to-6-12-Login-Error-tp4662916p4663000.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: Prefixing CDN URL to resources base path
I'm planning to do something similar. In my searches, I came across the following: http://blog.55minutes.com/2012/01/simplecdn-and-the-newly-released-fiftyfive-wicket-32/ I haven't tried it yet, but it seems like a solid idea. -Chris Snyder On Fri, Dec 13, 2013 at 9:26 AM, Arjun Dhar wrote: > Hi, > I'm trying to make the use of CDN hassle free with my Wicket Apps. > .. where *IF* a CDN location is specified then all paths like > > > > .. become > > > > This applies to JS, CSS, and img tags mainly. > > Am wondering where the best place to automate this would be ? > 1. Build Process; do a REPLACE during production BUILD > 2. Wicket code that loads using IResourceStream UrlResourceStream(url) ; > Intercept the raw HTML stream and re-generate it? (if this is cached may be > efficient??) > 3. HttpServletFilter --> Just before its passed back from the Web Server. > Do > a RegEx scan and replace (Maybe too inefficient , but less intrusive to any > Wicket Vodoo) > > Thoughts? > > > > - > 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/Prefixing-CDN-URL-to-resources-base-path-tp4662997.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 > > -- Chris Snyder Web Developer, BioLogos biologos.org
Re: Converting 1.4.7 to 6.12 - Login Error
Thanks Martin, that did it. It now works with the class instead of an instantiated page. I guess now pages passed through that exception must be mounted? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Converting-1-4-7-to-6-12-Login-Error-tp4662916p4663000.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
RadioGroup selected model value
Hello, I confess I don't understand wicket radiogroup ( and model ). i spent too much time with it . Here is my problem. *AgPage.html* I would like to have debut2 to be *selected *, since visible = true. Thanks for tour help. - Selom -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RadioGroup-selected-model-value-tp4662998.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
Prefixing CDN URL to resources base path
Hi, I'm trying to make the use of CDN hassle free with my Wicket Apps. .. where *IF* a CDN location is specified then all paths like .. become This applies to JS, CSS, and img tags mainly. Am wondering where the best place to automate this would be ? 1. Build Process; do a REPLACE during production BUILD 2. Wicket code that loads using IResourceStream UrlResourceStream(url) ; Intercept the raw HTML stream and re-generate it? (if this is cached may be efficient??) 3. HttpServletFilter --> Just before its passed back from the Web Server. Do a RegEx scan and replace (Maybe too inefficient , but less intrusive to any Wicket Vodoo) Thoughts? - 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/Prefixing-CDN-URL-to-resources-base-path-tp4662997.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: Converting 1.4.7 to 6.12 - Login Error
Hi, Try by mounting the login page to some path. In YourApp#init() method add: mountPage("/login", LoginPage.class); On Thu, Dec 12, 2013 at 9:05 PM, Entropy wrote: > I just tried replacing the exception line with: > > try { > throw new RestartResponseAtInterceptPageException((Page) > getLoginPageClass().newInstance()); > } catch (IllegalAccessException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } catch (InstantiationException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > > And it "works". Works is in quotes because although the LoginPage renders, > something downstream of it breaks when I try to submit, but when I send in > a > Class it treats it like a string URL. When I send in an instnatiated > Page, it works. Anyone know why that might be? > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Converting-1-4-7-to-6-12-Login-Error-tp4662916p4662961.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: java.lang.NoSuchMethodError: de.agilecoders.wicket.core.util.References.renderWithFilter
Hi Stephen As I said on IRC you need to compile the source locally and add the dependency as usual to you maven pom.xml. There is no need to add the source directly. I have crerated a sample manven project on github last night that shows how to get a basic Wicket and Bootstrap Site working. https://github.com/dmbeer/wicket-bootstrap-example Hope this helps. Thanks David On 13/12/13 12:14, terryTornado wrote: Hi Martin, thanks for answering. Seems i have the latest with the code changes. I have delete the dependend local .m2 repositories and rebuild the app new with the same result. The codes are here: https://github.com/terrytornado/wicket-sample I don't know what i'm doing wrong. Sorry. Stephan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/java-lang-NoSuchMethodError-de-agilecoders-wicket-core-util-References-renderWithFilter-tp4662985p4662990.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: Why org.apache.wicket.pageStore.memory.PageTable isn't public?
Hi, Please file a ticket. On Fri, Dec 13, 2013 at 2:24 PM, tomask79 wrote: > When I look at the implementation of IDataStore interface, namely > HttpSessionDataStore I'm confused..At one side, you allow to put into > HttpSessionDataStore constructor any implementation of > DataStoreEvictionStrategy, but DataStoreEvictionStrategy cannot be > implemented outside of wicket classes, because PageTable isn't > public...This > doesn't make any sense to me... > > I really want to implement own page eviction strategy, but thanks to this > non-sense, I'm pushed to be creating not very nice solutions... > > > > > > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Why-org-apache-wicket-pageStore-memory-PageTable-isn-t-public-tp4662987p4662991.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: java.lang.NoSuchMethodError: de.agilecoders.wicket.core.util.References.renderWithFilter
Works OK here. Maybe because I have wicket-bootstrap local build ... I've added jetty-maven-plugin to be able to start it. On Fri, Dec 13, 2013 at 2:14 PM, terryTornado wrote: > Hi Martin, > > thanks for answering. > > Seems i have the latest with the code changes. I have delete the dependend > local .m2 repositories and rebuild the app new with the same result. > The codes are here: https://github.com/terrytornado/wicket-sample > > I don't know what i'm doing wrong. Sorry. > > Stephan > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/java-lang-NoSuchMethodError-de-agilecoders-wicket-core-util-References-renderWithFilter-tp4662985p4662990.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: Why org.apache.wicket.pageStore.memory.PageTable isn't public?
When I look at the implementation of IDataStore interface, namely HttpSessionDataStore I'm confused..At one side, you allow to put into HttpSessionDataStore constructor any implementation of DataStoreEvictionStrategy, but DataStoreEvictionStrategy cannot be implemented outside of wicket classes, because PageTable isn't public...This doesn't make any sense to me... I really want to implement own page eviction strategy, but thanks to this non-sense, I'm pushed to be creating not very nice solutions... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-org-apache-wicket-pageStore-memory-PageTable-isn-t-public-tp4662987p4662991.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: java.lang.NoSuchMethodError: de.agilecoders.wicket.core.util.References.renderWithFilter
Hi Martin, thanks for answering. Seems i have the latest with the code changes. I have delete the dependend local .m2 repositories and rebuild the app new with the same result. The codes are here: https://github.com/terrytornado/wicket-sample I don't know what i'm doing wrong. Sorry. Stephan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/java-lang-NoSuchMethodError-de-agilecoders-wicket-core-util-References-renderWithFilter-tp4662985p4662990.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
Why org.apache.wicket.pageStore.memory.PageTable isn't public?
Hi guys, I was thinking about the implementation of own DataStoreEvictionStrategy for the page eviction and plug it then into HttpSessionDataStoreBut I was surprised that org.apache.wicket.pageStore.memory.PageTable isn't public, so I couldn't use it outside of wicket classes in my overriden evict method. Yes, I can override HttpSessionDataStore.storeData method use there whatever I want to evict pages after saving the input page, but this isn't pretty solutionI would prefer to have opportunity to write own DataStoreEvictionStrategy and just put it as parameter into IDataStore Why isn't org.apache.wicket.pageStore.memory.PageTable public? Wicket version: 1.5.8 regards Tomas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-org-apache-wicket-pageStore-memory-PageTable-isn-t-public-tp4662987.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: java.lang.NoSuchMethodError: de.agilecoders.wicket.core.util.References.renderWithFilter
Hi, The method signature has been changed with https://github.com/l0rdn1kk0n/wicket-bootstrap/commit/84cb4da562962f84777b1c0236686fa45ec733cb#diff-dc8352ea497aaf9b82e1c5ad5803314e I think the problem should disappear if you rebuild your application against wicket-bootstrap 0.9.0-SNAPSHOT On Fri, Dec 13, 2013 at 12:11 PM, terryTornado wrote: > Hi all, i'm new to wicket-bootstrap. By testing the bootstrap3 integration > i > have problems to come over the first step. It seems that there is a method > not refactored? > The error occurs if i call the entry page in the browser and wicket will > render the stuff. > > wicket (6.10.0) > wicket-bootstrap(0.9.0-SNAPSHOT) > > java.lang.NoSuchMethodError: > > de.agilecoders.wicket.core.util.References.renderWithFilter(Lde/agilecoders/wicket/core/settings/IBootstrapSettings;Lorg/apache/wicket/markup/head/IHeaderResponse;Lorg/apache/wicket/markup/head/JavaScriptReferenceHeaderItem;)V > at > > de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapJavascriptBehavior.renderHead(BootstrapJavascriptBehavior.java:34) > at > > de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapResourcesBehavior.renderHead(BootstrapResourcesBehavior.java:35) > at > > de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapBaseBehavior.renderHead(BootstrapBaseBehavior.java:70) > at org.apache.wicket.Component.renderHead(Component.java:2714) > at com.mycompany.HomePage.renderHead(HomePage.java:28) > ... > > any idea ? > > thanks > Stephan > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/java-lang-NoSuchMethodError-de-agilecoders-wicket-core-util-References-renderWithFilter-tp4662985.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 session in a Resource
Hi, Using IResource instead of a WebPage for JSON response is better. Using Session.get() in IResource is OK. Actually IResource is something very similar to normal Servlet. The benefit is that you have access to the Application, the Session and a RequestCycle. As WICKET-5012 states there is no authentication for resources in 6.x, but we added it to Wicket 7.x. Additionally WICKET-5012 has an attachment that you can add to your application and add authentication for the resources. On Fri, Dec 13, 2013 at 12:13 PM, Stijn de Witt < stijn.dew...@planonsoftware.com> wrote: > Hi Wicket gurus, > > We are trying to implement JSON RPC in Wicket. At first we had made a > WebPage that would respond with application/json... However, we hit a > problem here that Wicket parses the parameters of POST requests and puts > them in the PageParameters map. From there we can get to the parameters, > but it seems the order of the parameters is lost. Furthermore when we get > the request inputstream, it is empty already because Wicket ate it up... So > we have no way of getting the parameters in the order in which they were > passed... > > So we looked for solutions and found this StackOverflow posting suggesting > to make a Resource instead: > > http://stackoverflow.com/questions/17874695/wicket-http-post-get-raw-data-from-servletrequest > (also see > http://stackoverflow.com/questions/5466763/how-to-handle-xml-in-body-of-a-post-request-with-a-wicket-page) > > In principle this is ok for us... However there is one caveat; it seems > that it is not possible in Wicket 6.x to have a resource being authorized. > Also see this Wicket issue: > https://issues.apache.org/jira/browse/WICKET-5012 > > We are using Container Managed Authentication. This means the container > will intercept all traffic to 'secured' URLs and send them to a login page. > This is fine for us. However I did notice from debugging that not all code > is run when the destination is a Resource that would be run if it was a > Page. There is some authorization logic skipped in Wicket that would have > run if it was a WebPage... Again this is not really a problem for us, but > it does bring up one question: Is it ok to use the Wicket session from a > Resource? > > Let me show some code: > > public class PnWebServiceResource extends AbstractResource > { > // ... > > @Override protected ResourceResponse newResourceResponse(Attributes > aAttributes) > { > HttpServletRequest httpRequest = (HttpServletRequest) > aAttributes.getRequest().getContainerRequest(); > > // Getting a Reader to the request inputstream works. The reader can > get the data of the post request. > // We could not get this to work when we were extending WebPage > instead of AbstractResource... > Reader reader = new > InputStreamReader(aHttpServletRequest.getInputStream()); > > WebSession session = WebSession.get();// <-- Is this safe??? > > // At this point we use the session. It seems to work for now, but is > this reliable? > // Or maybe we are just 'lucky' that we get the right session here? > } > } > > The first lines show how we extend from AbstractResource instead of from > WebPage. Then, in newResourceResponse, we can get access to the raw POST > body from the HTTP request as long as we specify a mount path without any > parameters in it. However, a couple of lines later we access the WebSession > and we are wondering whether that is save? > > Also, are we maybe following the wrong approach? Is it possible to make a > WebPage that can access the raw POST body of the request? Or maybe just get > the PageParameters in a way that guarantees the order is exactly how it was > in the POST body? The reason the order is important is that we are trying > to do RPC to a Java method and in Java the order of the method arguments is > the only info we have at runtime. The names of the arguments are not known. > So we need to be sure that the parameters are sent to the Java method in > the same order as they were listed in the request. Afaik, Wicket's > PageParameters do not guarantee this... > > Any help would be greatly appreciated, > > -Stijn > > > > >
java.lang.NoSuchMethodError: de.agilecoders.wicket.core.util.References.renderWithFilter
Hi all, i'm new to wicket-bootstrap. By testing the bootstrap3 integration i have problems to come over the first step. It seems that there is a method not refactored? The error occurs if i call the entry page in the browser and wicket will render the stuff. wicket (6.10.0) wicket-bootstrap(0.9.0-SNAPSHOT) java.lang.NoSuchMethodError: de.agilecoders.wicket.core.util.References.renderWithFilter(Lde/agilecoders/wicket/core/settings/IBootstrapSettings;Lorg/apache/wicket/markup/head/IHeaderResponse;Lorg/apache/wicket/markup/head/JavaScriptReferenceHeaderItem;)V at de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapJavascriptBehavior.renderHead(BootstrapJavascriptBehavior.java:34) at de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapResourcesBehavior.renderHead(BootstrapResourcesBehavior.java:35) at de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapBaseBehavior.renderHead(BootstrapBaseBehavior.java:70) at org.apache.wicket.Component.renderHead(Component.java:2714) at com.mycompany.HomePage.renderHead(HomePage.java:28) ... any idea ? thanks Stephan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/java-lang-NoSuchMethodError-de-agilecoders-wicket-core-util-References-renderWithFilter-tp4662985.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 in a Resource
Hi Wicket gurus, We are trying to implement JSON RPC in Wicket. At first we had made a WebPage that would respond with application/json... However, we hit a problem here that Wicket parses the parameters of POST requests and puts them in the PageParameters map. From there we can get to the parameters, but it seems the order of the parameters is lost. Furthermore when we get the request inputstream, it is empty already because Wicket ate it up... So we have no way of getting the parameters in the order in which they were passed... So we looked for solutions and found this StackOverflow posting suggesting to make a Resource instead: http://stackoverflow.com/questions/17874695/wicket-http-post-get-raw-data-from-servletrequest (also see http://stackoverflow.com/questions/5466763/how-to-handle-xml-in-body-of-a-post-request-with-a-wicket-page ) In principle this is ok for us... However there is one caveat; it seems that it is not possible in Wicket 6.x to have a resource being authorized. Also see this Wicket issue: https://issues.apache.org/jira/browse/WICKET-5012 We are using Container Managed Authentication. This means the container will intercept all traffic to 'secured' URLs and send them to a login page. This is fine for us. However I did notice from debugging that not all code is run when the destination is a Resource that would be run if it was a Page. There is some authorization logic skipped in Wicket that would have run if it was a WebPage... Again this is not really a problem for us, but it does bring up one question: Is it ok to use the Wicket session from a Resource? Let me show some code: public class PnWebServiceResource extends AbstractResource { // ... @Override protected ResourceResponse newResourceResponse(Attributes aAttributes) { HttpServletRequest httpRequest = (HttpServletRequest) aAttributes.getRequest().getContainerRequest(); // Getting a Reader to the request inputstream works. The reader can get the data of the post request. // We could not get this to work when we were extending WebPage instead of AbstractResource... Reader reader = new InputStreamReader(aHttpServletRequest.getInputStream()); WebSession session = WebSession.get();// <-- Is this safe??? // At this point we use the session. It seems to work for now, but is this reliable? // Or maybe we are just 'lucky' that we get the right session here? } } The first lines show how we extend from AbstractResource instead of from WebPage. Then, in newResourceResponse, we can get access to the raw POST body from the HTTP request as long as we specify a mount path without any parameters in it. However, a couple of lines later we access the WebSession and we are wondering whether that is save? Also, are we maybe following the wrong approach? Is it possible to make a WebPage that can access the raw POST body of the request? Or maybe just get the PageParameters in a way that guarantees the order is exactly how it was in the POST body? The reason the order is important is that we are trying to do RPC to a Java method and in Java the order of the method arguments is the only info we have at runtime. The names of the arguments are not known. So we need to be sure that the parameters are sent to the Java method in the same order as they were listed in the request. Afaik, Wicket's PageParameters do not guarantee this... Any help would be greatly appreciated, -Stijn
Re: Please remove the spam post from the wicket forum
Thanks Martin -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Please-remove-the-spam-post-from-the-wicket-forum-tp4662979p4662984.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: Please remove the spam post from the wicket forum
It seems only Nabble users see these messages. I am subscribed to the mailing list and I don't receive them. I know that Martijn and Jeremy moderate the list but I'm not sure how Nabble got spammed. On Fri, Dec 13, 2013 at 10:40 AM, Decebal Suiu wrote: > Or it's a possibility to filter these spam posts? How do you read these > mailling posts? > > Best regards, > Decebal > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Please-remove-the-spam-post-from-the-wicket-forum-tp4662979p4662982.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: Please remove the spam post from the wicket forum
Or it's a possibility to filter these spam posts? How do you read these mailling posts? Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Please-remove-the-spam-post-from-the-wicket-forum-tp4662979p4662982.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: Please remove the spam post from the wicket forum
Sorry, I talk about Mailling Lists [1] [1] http://apache-wicket.1842946.n4.nabble.com/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Please-remove-the-spam-post-from-the-wicket-forum-tp4662979p4662981.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: Please remove the spam post from the wicket forum
Hi, Which forum you mean ? On Fri, Dec 13, 2013 at 10:28 AM, Decebal Suiu wrote: > Hi > > Is it someone that can make a clean on the wicket forum? It is frustrating > to see a lot of spam posts (for example in start page only few posts are > non > spam). For a new coming these spam posts create a bad impression. > > Thanks, > Decebal > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Please-remove-the-spam-post-from-the-wicket-forum-tp4662979.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 > >
Please remove the spam post from the wicket forum
Hi Is it someone that can make a clean on the wicket forum? It is frustrating to see a lot of spam posts (for example in start page only few posts are non spam). For a new coming these spam posts create a bad impression. Thanks, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Please-remove-the-spam-post-from-the-wicket-forum-tp4662979.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