Dynamic Headers for Open Graph tags in E-Com site
Hi, I have an E-Commerce site. Im using a Template hierarchy. With the top template containing the Open Graph tags for the entire Site. Like The issue is there are PRODUCT PAGES that extend this template. But for Products its desirable to insert PRODUCT SPECIFIC headers. What is the cleanest way to do this? Note I can do this in a Dirty Way: If I use IHeaderContributor in the Product Page then it will APPEND it not replace the template tags. .. and removing thsi from the base template and Providing it for each page does not seem good either. ..Anyway I can demarkate this and override? thanks - 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/Dynamic-Headers-for-Open-Graph-tags-in-E-Com-site-tp4664158.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
Apache wicket project as osgi compoments
Hello I have a web application comprised of several modules, can I dynamically enable/disable these modules in runtime? -- --- We do this not because it is easy. We do this because it is hard. --- ShengChe Hsiao --- front...@gmail.com front...@tc.edu.tw --- VoIP : 070-910-2450 ---
Re: Apache wicket project as osgi compoments
Depends what you mean by disable. You could dynamically decide not to call them, if that's what you want. From: Shengche Hsiao shengchehs...@gmail.com To: Wicket User Mailinglist users@wicket.apache.org Date: 02/04/2014 08:42 AM Subject:Apache wicket project as osgi compoments Hello I have a web application comprised of several modules, can I dynamically enable/disable these modules in runtime? -- --- We do this not because it is easy. We do this because it is hard. --- ShengChe Hsiao --- front...@gmail.com front...@tc.edu.tw --- VoIP : 070-910-2450 --- ** This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies. **
Re: Apache wicket project as osgi compoments
Hello Our team developed a web application using php, it's original idea was from XOOPS. As you know XOOPS's modules can dynamic install in or drop out, can wicket project do the same thing? And as you said You could dynamically decide not to call them, would you please give me some instruction? On Tue, Feb 4, 2014 at 10:44 PM, Richard W. Adams rwada...@up.com wrote: Depends what you mean by disable. You could dynamically decide not to call them, if that's what you want. From: Shengche Hsiao shengchehs...@gmail.com To: Wicket User Mailinglist users@wicket.apache.org Date: 02/04/2014 08:42 AM Subject:Apache wicket project as osgi compoments Hello I have a web application comprised of several modules, can I dynamically enable/disable these modules in runtime? -- --- We do this not because it is easy. We do this because it is hard. --- ShengChe Hsiao --- front...@gmail.com front...@tc.edu.tw --- VoIP : 070-910-2450 --- ** This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies. ** -- --- We do this not because it is easy. We do this because it is hard. --- ShengChe Hsiao --- front...@gmail.com front...@tc.edu.tw --- VoIP : 070-910-2450 ---
Re: Apache wicket project as osgi compoments
It's just a normal if statement, like: if (some_condition_is_met) { ClassA.doSomething(); } else { ClassB.doSomethingElse(); } Where either ClassA or ClassB is in the module you want to enable/disable. From: Shengche Hsiao shengchehs...@gmail.com To: Wicket User Mailinglist users@wicket.apache.org Date: 02/04/2014 08:51 AM Subject:Re: Apache wicket project as osgi compoments Hello Our team developed a web application using php, it's original idea was from XOOPS. As you know XOOPS's modules can dynamic install in or drop out, can wicket project do the same thing? And as you said You could dynamically decide not to call them, would you please give me some instruction? On Tue, Feb 4, 2014 at 10:44 PM, Richard W. Adams rwada...@up.com wrote: Depends what you mean by disable. You could dynamically decide not to call them, if that's what you want. From: Shengche Hsiao shengchehs...@gmail.com To: Wicket User Mailinglist users@wicket.apache.org Date: 02/04/2014 08:42 AM Subject:Apache wicket project as osgi compoments Hello I have a web application comprised of several modules, can I dynamically enable/disable these modules in runtime? -- --- We do this not because it is easy. We do this because it is hard. --- ShengChe Hsiao --- front...@gmail.com front...@tc.edu.tw --- VoIP : 070-910-2450 --- ** This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies. ** -- --- We do this not because it is easy. We do this because it is hard. --- ShengChe Hsiao --- front...@gmail.com front...@tc.edu.tw --- VoIP : 070-910-2450 --- ** This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies. **
Re: Apache wicket project as osgi compoments
Although we don't know anything about your application structure, I tend to answer YES. Assuming from the subject, that we are talking about OSGi modules (or rather bundles), making the application capable of that dynamism is surely possible. It simply depends on your decision of utilizing the OSGi programming model and execution environment. Do you have your application modules OSGi ready? Having a look a the wicket-distribution it seems to be OSGi-ready. You also may have a look at the Pax Wicket extension. So you're probably good to go. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Apache-wicket-project-as-osgi-compoments-tp4664159p4664164.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: Apache wicket project as osgi compoments
You should have a look at http://code.google.com/p/osgi-enterprise/wiki/WicketAndOsgi https://github.com/wicketstuff/core/wiki/Osgi http://hwellmann.blogspot.fr/2011/06/wicket-and-osgi.html http://www.volkomenjuist.nl/blog/2012/07/25/wicket-mounting-in-an-osgi-environment/ https://ops4j1.jira.com/wiki/display/paxwicket/Install+Pax+Wicket http://karaf.922171.n3.nabble.com/pax-wicket-example-running-on-karaf-td4027622.html François Meillet Formation Wicket - Développement Wicket Le 4 févr. 2014 à 17:01, tho...@jarnot.de a écrit : Although we don't know anything about your application structure, I tend to answer YES. Assuming from the subject, that we are talking about OSGi modules (or rather bundles), making the application capable of that dynamism is surely possible. It simply depends on your decision of utilizing the OSGi programming model and execution environment. Do you have your application modules OSGi ready? Having a look a the wicket-distribution it seems to be OSGi-ready. You also may have a look at the Pax Wicket extension. So you're probably good to go. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Apache-wicket-project-as-osgi-compoments-tp4664159p4664164.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: Apache wicket project as osgi compoments
Hello Thanks for reply, indeed I plan to implement my wicket project in osgi way! But I don't know how to start it, thanks for hyper links, I'll check it out. On Wed, Feb 5, 2014 at 3:42 AM, Francois Meillet francois.meil...@gmail.com wrote: You should have a look at http://code.google.com/p/osgi-enterprise/wiki/WicketAndOsgi https://github.com/wicketstuff/core/wiki/Osgi http://hwellmann.blogspot.fr/2011/06/wicket-and-osgi.html http://www.volkomenjuist.nl/blog/2012/07/25/wicket-mounting-in-an-osgi-environment/ https://ops4j1.jira.com/wiki/display/paxwicket/Install+Pax+Wicket http://karaf.922171.n3.nabble.com/pax-wicket-example-running-on-karaf-td4027622.html François Meillet Formation Wicket - Développement Wicket Le 4 févr. 2014 à 17:01, tho...@jarnot.de a écrit : Although we don't know anything about your application structure, I tend to answer YES. Assuming from the subject, that we are talking about OSGi modules (or rather bundles), making the application capable of that dynamism is surely possible. It simply depends on your decision of utilizing the OSGi programming model and execution environment. Do you have your application modules OSGi ready? Having a look a the wicket-distribution it seems to be OSGi-ready. You also may have a look at the Pax Wicket extension. So you're probably good to go. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Apache-wicket-project-as-osgi-compoments-tp4664159p4664164.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 -- --- We do this not because it is easy. We do this because it is hard. --- ShengChe Hsiao --- front...@gmail.com front...@tc.edu.tw --- VoIP : 070-910-2450 ---
Re: Wicket-bootstrap Bootstrap 3 support
Hello Michael, First of all thank you for the wonderful job you're doing. Current release downloads bootstrap-3.0.3.jar. Is there a way to force this wicket integration to download the latest webjar for bootstrap? A solution as I see it is to alter the pom.xml to add version for the artifact in your release but I do not want to do that. Latest webjar for bootstrap supports bootstrap 3.1.0 https://github.com/webjars/bootstrap/blob/master/pom.xml Thanks in advance, Daniel Jipa -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-bootstrap-Bootstrap-3-support-tp4661497p4664170.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-bootstrap Bootstrap 3 support
I found out that I could put the dependency in my pom.xml and no need to alter the one from your release. Sorry for the confusion, I am pretty new to maven. Best regards, Daniel -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-bootstrap-Bootstrap-3-support-tp4661497p4664171.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: Dynamic Headers for Open Graph tags in E-Com site
I think I'll take a simple approach. Use a Spring Resource to read a file which contains only the OG Tags and use EhCache to cache the content. I'll remove the OG Tags from the Common Template and instead inject it dynamically then For product pages the OG tags have to be created per request so override the header contribution for this part and insert the Product Specific OG Tags. Like we have Panels in the Body section, why cant we have a concept like that for the Header? Anyway - 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/Dynamic-Headers-for-Open-Graph-tags-in-E-Com-site-tp4664158p4664172.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-bootstrap Bootstrap 3 support
On 02/05/2014 09:13 AM, danjee [via Apache Wicket] wrote: I found out that I could put the dependency in my pom.xml and no need to alter the one from your release. Sorry for the confusion, I am pretty new to maven. Best regards, Daniel If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Wicket-bootstrap-Bootstrap-3-support-tp4661497p4664171.html To unsubscribe from Wicket-bootstrap Bootstrap 3 support, click here http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4661497code=ZGFuaWVsLmppcGFAYXNmLnJvfDQ2NjE0OTd8LTIwNDU1Njg5NTY=. NAML http://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-bootstrap-Bootstrap-3-support-tp4661497p4664173.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-bootstrap Bootstrap 3 support
In Maven you can just exclude transitive dependecies from a dependency and add the version you prefer. But be aware of possible version conflicts. dependency groupIdde.agilecoders.wicket/groupId artifactIdwicket-bootstrap-core/artifactId version${wicket.bootstrap.version}/version exclusions exclusion artifactIdorg.webjars/artifactId groupIdbootstrap/groupId /exclusion /exclusions /dependency dependency groupIdorg.webjars/groupId artifactIdbootstrap/artifactId version3.1.0/version /dependency Best, Marvin -Original Message- From: danjee [mailto:daniel.j...@asf.ro] Sent: Wednesday, February 05, 2014 8:32 AM To: users@wicket.apache.org Subject: Re: Wicket-bootstrap Bootstrap 3 support On 02/05/2014 09:13 AM, danjee [via Apache Wicket] wrote: I found out that I could put the dependency in my pom.xml and no need to alter the one from your release. Sorry for the confusion, I am pretty new to maven. Best regards, Daniel -- -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Wicket-bootstrap-Bootstrap- 3-support-tp4661497p4664171.html To unsubscribe from Wicket-bootstrap Bootstrap 3 support, click here http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4661497code=ZGFuaWVsLmppcGFAYXNmLnJvfDQ2NjE0OTd8LTIwNDU1Njg5NTY=. NAML http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?m acro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.na ml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace- nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers% 21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instan t_email%21nabble%3Aemail.naml -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-bootstrap-Bootstrap-3-support-tp4661497p4664173.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: Wicket-bootstrap Bootstrap 3 support
Right, the correct way is to use Maven for this. Another way is via IBootstrapSettings#setCssResourceReference() - https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/master/bootstrap-core/src/main/java/de/agilecoders/wicket/core/settings/IBootstrapSettings.java?source=c#L53 We will upgrade to 3.1.0 soon. We have to see whether there are breaking migration changes first. Martin Grigorov Wicket Training and Consulting On Wed, Feb 5, 2014 at 8:41 AM, Richter, Marvin marvin.rich...@jestadigital.com wrote: In Maven you can just exclude transitive dependecies from a dependency and add the version you prefer. But be aware of possible version conflicts. dependency groupIdde.agilecoders.wicket/groupId artifactIdwicket-bootstrap-core/artifactId version${wicket.bootstrap.version}/version exclusions exclusion artifactIdorg.webjars/artifactId groupIdbootstrap/groupId /exclusion /exclusions /dependency dependency groupIdorg.webjars/groupId artifactIdbootstrap/artifactId version3.1.0/version /dependency Best, Marvin -Original Message- From: danjee [mailto:daniel.j...@asf.ro] Sent: Wednesday, February 05, 2014 8:32 AM To: users@wicket.apache.org Subject: Re: Wicket-bootstrap Bootstrap 3 support On 02/05/2014 09:13 AM, danjee [via Apache Wicket] wrote: I found out that I could put the dependency in my pom.xml and no need to alter the one from your release. Sorry for the confusion, I am pretty new to maven. Best regards, Daniel -- -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Wicket-bootstrap-Bootstrap- 3-support-tp4661497p4664171.html To unsubscribe from Wicket-bootstrap Bootstrap 3 support, click here http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4661497code=ZGFuaWVsLmppcGFAYXNmLnJvfDQ2NjE0OTd8LTIwNDU1Njg5NTY= . NAML http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?m acro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.na ml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace- nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers% 21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instan t_email%21nabble%3Aemail.naml -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-bootstrap-Bootstrap-3-support-tp4661497p4664173.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: Dynamic Headers for Open Graph tags in E-Com site
Hi, On Wed, Feb 5, 2014 at 8:28 AM, Arjun Dhar dhar...@yahoo.com wrote: I think I'll take a simple approach. Use a Spring Resource to read a file which contains only the OG Tags and use EhCache to cache the content. I'll remove the OG Tags from the Common Template and instead inject it dynamically then For product pages the OG tags have to be created per request so override the header contribution for this part and insert the Product Specific OG Tags. Like we have Panels in the Body section, why cant we have a concept like that for the Header? This is exactly how I did it once - use a normal Panel in the header section: head ... wicket:container wicket:id=openGraph/wicket:container ... /head And then a base Page has a method that adds the panel if the current page constructs non-empty model. Simple. Anyway - 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/Dynamic-Headers-for-Open-Graph-tags-in-E-Com-site-tp4664158p4664172.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