How to add dynamic attributes to tag ?

2017-08-08 Thread Hendy Irawan
I've had success my and , but trying to add as a WebMarkupContainer gave me: Last cause: Mis-placed . must be outside of , , and . Error occurred while rendering page: SomePage using markup stream: file:/.../SomePage.html Motivation : https://developers.google.com/search/docs/data-types/sitena

Re: How to "force" page redirects to HTTPS?

2017-08-08 Thread Hendy Irawan
Thanks Sebastian for the hint. But yes, I've mapped all pages before calling setRootRequestMapper. I also put logs in my getDesiredSchemeFor and they're being called, and returning HTTPS for all calls. But is it possible there are some cases it's not being called (?) Or perhaps the ?1 stateful re

Re: How to "force" page redirects to HTTPS?

2017-08-08 Thread Hendy Irawan
I have managed to use XForwardedRequestWrapperFactory by creating a Filter. I also use HttpsMapper as follows : setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), new HttpsConfig()) { @Override protected Scheme getDesiredSchemeFor(IRequestHandler handler)

Re: How to "force" page redirects to HTTPS?

2017-08-07 Thread Hendy Irawan
This seems to be interesting: * https://issues.apache.org/jira/browse/WICKET-3015 * https://issues.apache.org/jira/browse/WICKET-3009 But how to use it? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-force-page-redirects-to-HTTPS-tp4678479p4678480.html Sent f

How to "force" page redirects to HTTPS?

2017-08-07 Thread Hendy Irawan
Hi, My setup is: Wicket 7.8 running in Spring Boot (HTTP:8080) <--served by-- nginx (HTTP:80) <--CDNed by-- CloudFlare (HTTPS:443) This works almost well, however everytime Wicket issues a redirect it always goes to http://version first, which is intercepted by CloudFlare then immediately redire

Re: History API support for navigable AJAX pages/components?

2014-12-29 Thread Hendy Irawan
I tried to do this: protected void onSizeChanged(AjaxRequestTarget target) { target.add(productGrid); final PageParameters newParams = new PageParameters(getPage().getPageParameters()); newParams.set("selectedSize", Optional.ofNullable(selectedSizeModel.getObject()).map(Ter

History API support for navigable AJAX pages/components?

2014-12-29 Thread Hendy Irawan
Hi friends, Continuing the discussion on https://issues.apache.org/jira/browse/WICKET-5290 / http://apache-wicket.1842946.n4.nabble.com/Wicket7-History-API-support-for-navigable-AJAX-pages-components-td4660502.html, I made a simple working experiment: final DropdownSizePanel dropdownSizePanel = n

Re: java.lang.ClassNotFoundException: lowercased class name?

2014-12-14 Thread Hendy Irawan
Slightly complete-er log: 19:20:27.925 WARN | zikra | | /wicket/resource/org.apache.wicket.ajax.form.ajaxformchoicecomponentupdatingbehavior/ajaxformchoicecomponentupdatingbehavior.min-ver-d12e39a9a23f5adefcfe3bfc3d520d68.js 207.46.13.122/msnbot-207-46-13-122.search.msn.com Mozilla/5.0 (compat

Re: java.lang.ClassNotFoundException: lowercased class name?

2014-12-14 Thread Hendy Irawan
Thanks Martin, that really helps :) I have a clue though, all of those "lowercased" requests are coming from MSNBot IPs. I'm suspecting the bot is "testing" whether the URI is accessible via lowercase (perhaps for duplicate content prevention) if that's true then that would suck. However I al

Re: java.lang.ClassNotFoundException: lowercased class name?

2014-12-13 Thread Hendy Irawan
I wonder how another filter could alter the behavior for this issue.. The call fails at org.apache.wicket.core.util.lang.WicketObjects.resolveClass(WicketObjects.java:72), surely the class name to be resolved is solely at Wicket's control? On Sun, Dec 14, 2014, 01:18 Ernesto Reinaldo Barreiro-4 [

java.lang.ClassNotFoundException: lowercased class name?

2014-12-13 Thread Hendy Irawan
Has anyone ever encountered this error? It confuses me because: 1. It doesn't happen often, but happens a few times a day 2. Only happens on production 3. Pretty much all functionality work fine when tested manually What's weird is the class name is lowercased, i.e. "org.apache.wicket.ajax.form.a

Re: How to instruct RenderPageRequestHandler to redirect using 301 Permanent

2014-12-10 Thread Hendy Irawan
igorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Wed, Dec 10, 2014 at 3:20 PM, Hendy Irawan <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=4668721&i=0>> wrote: > > > Thanks for prompt advice Martin, however please

Re: How to instruct RenderPageRequestHandler to redirect using 301 Permanent

2014-12-10 Thread Hendy Irawan
a code. > To have better control you should use RedirectRequestHandler, as in your > commented out code. > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Wed, Dec 10, 2014 at 2:56 PM, Hendy Irawan <[hidden email] > <h

How to instruct RenderPageRequestHandler to redirect using 301 Permanent

2014-12-10 Thread Hendy Irawan
I currently have a custom SEO-friendly RequestMapper with the following snippet: @Override public final IRequestHandler mapRequest(Request request) { try { final String userAgent = ((HttpServletRequest) request.getContainerRequest()).getHeader("User-Agent");

Re: Wicket and microdata

2014-11-19 Thread Hendy Irawan
Here's what I came up with : https://github.com/soluvas/soluvas-web/commit/8cfbe121bc8589502154bf72fff9bd94762dd7cb While my usage is for e-commerce websites, with sufficient definitions it's usable for any kind of site, primarily using schema.org vocabulary. IMHO it's quite convenient (thanks to

Re: Wicket and microdata

2014-11-19 Thread Hendy Irawan
Hi Dirk and Martin, Dirk Forchel wrote > > Martin Grigorov-4 wrote >> Another way is to add these attributes directly in the markup. No need to >> add Behavior to the components for something that is always true. > Yes, but I prefer the "dynamic" way. A Component/Page provides some kind > of "mi

Re: [ANNOUNCE] Apache Wicket 6.17.0 released

2014-09-08 Thread Hendy Irawan
After 3 days Wicket 6.17.0 is still not available from Maven Central: http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.apache.wicket%22%20AND%20a%3A%22wicket-core%22 Please check. Ironically (but good) Wicketstuff 6.17.0 is already available in Maven Central. Hendy -- View this message i

Re: How to get PageClass from BufferedResponseRequestHandler ? And how to "link" related requests?

2014-06-17 Thread Hendy Irawan
Thank you Martin! Filed https://issues.apache.org/jira/browse/WICKET-5621 Hendy -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-get-PageClass-from-BufferedResponseRequestHandler-And-how-to-link-related-requests-tp4666247p4666286.html Sent from the Users forum

Re: How to get PageClass from BufferedResponseRequestHandler ? And how to "link" related requests?

2014-06-16 Thread Hendy Irawan
It seems ignoring BufferedResponseRequestHandler is harder than I thought because IResponseFilter is only called during BufferedResponseRequestHandler, not during the preceding IPageRequestHandler. What is the best way to achieve my goal? i.e. during the begin and end of IPageRequestHandler I need

Re: How to get PageClass from BufferedResponseRequestHandler ? And how to "link" related requests?

2014-06-13 Thread Hendy Irawan
Thank you Martin. Currently I went with this solution: https://github.com/soluvas/soluvas-web/blob/3c3cb8a923e06522ccee156725196a8ab15fba0b/site/src/main/java/org/soluvas/web/site/metrics/ThreadMetricsRequestCycleListener.java I'll follow your advice and just ignored it, then :) Hendy -- View t

Re: How to get PageClass from BufferedResponseRequestHandler ? And how to "link" related requests?

2014-06-13 Thread Hendy Irawan
I also tried requestCycle.setMetaData() but the metadata is also gone for the next related request. :( -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-get-PageClass-from-BufferedResponseRequestHandler-And-how-to-link-related-requests-tp4666247p4666248.html Sent

How to get PageClass from BufferedResponseRequestHandler ? And how to "link" related requests?

2014-06-13 Thread Hendy Irawan
Hi, How to get PageClass from BufferedResponseRequestHandler ? At little background: I'm sending processing metrics to Google Analytics, mentioning the PageClass (if available), used memory, and processing time. I'm using RequestCycleListener to do the crux of this. When Wicket's using IPageClas

Re: ListenerInvocationNotAllowedException and EmptyRequestHandler

2014-06-04 Thread Hendy Irawan
It turns out it happens because I was using a custom AjaxChannel with name "autodisable". Changing the AjaxChannel name to "0" solves the problem. BTW, Can I request AjaxChannel.DEFAULT public static constant with a value of "0" ? I don't feel comfortable typing "0" there, I much prefer a constan

Re: ListenerInvocationNotAllowedException and EmptyRequestHandler

2014-06-04 Thread Hendy Irawan
I also get the same error: org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException: Behavior rejected interface invocation. Component: [NumberTextField [Component id = qty]] Behavior: id.co.bippo.inventory.web.VariantQtyEditor$2$2$1@530459be Listener: [RequestListenerInterface

Re: How to increase number of stored pages in PageStore for Wicket 6.8?

2013-09-24 Thread Hendy Irawan
?) and let Tomcat's PersistentManager handle this? I've been reading https://cwiki.apache.org/confluence/display/WICKET/Page+Storage but it seems it only applies to Wicket 1.5 ? Thank you. Hendy Hendy Irawan - on Twitter <http://twitter.com/hendybippo> - on LinkedIn<http:/

Re: How to increase number of stored pages in PageStore for Wicket 6.8?

2013-09-24 Thread Hendy Irawan
ected users. Is this possible? Thank you. Hendy Irawan - on Twitter <http://twitter.com/hendybippo> - on LinkedIn<http://id.linkedin.com/in/hendyirawan> Web Developer | Bippo Indonesia <http://www.bippo.co.id/> | Akselerator Bisnis | Bandung > > Hendy Irawan - on Twitter &

How to increase number of stored pages in PageStore for Wicket 6.8?

2013-09-24 Thread Hendy Irawan
Hi, When I checked the work/.../wicketFilter-filestore folder it seems that for every session Wicket stores the last 3 stateful pages. Will this cause problems when a user opens more than 3 (stateful) tabs at once? How do I increase this number? Is it possible to increase this number for select

Re: StalePageException's followed by "An error occurred while checking whether a page is stateless. Assuming it is stateful."

2013-09-23 Thread Hendy Irawan
Hi, I'm not sure if this is related, I'm suspecting the StalePageException's are a cause to this: sometimes the page response are "misrouted" from the request: 1. A user clicks an AjaxLink/AjaxButton, but gets redirected to a totally unrelated page (like the search page) which seems to be for ano

StalePageException's followed by "An error occurred while checking whether a page is stateless. Assuming it is stateful."

2013-09-23 Thread Hendy Irawan
We're getting a lot of StalePageException, immediately followed by "An error occurred while checking whether a page is stateless. Assuming it is stateful." on stateful pages and especially when crawled by Google bot. Any idea why this is happening? @timestamp 2013-09-24T01:42:47-04:0

Re: How to use DEPLOYMENT configuration but retain the detailed exception page?

2013-09-16 Thread Hendy Irawan
THANK YOU Martin ! Awesome! To those who want the same as me, put this on your WebApplication's init() : // we need this even for DEPLOYMENT at least for now getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_EXCEPTION_PAGE); Hendy Irawan - on Twitter

How to use DEPLOYMENT configuration but retain the detailed exception page?

2013-09-16 Thread Hendy Irawan
Hi all, How to use DEPLOYMENT configuration but retain the detailed exception page? Or how to re-enable the detailed exception page feature? Thank you. Hendy -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-use-DEPLOYMENT-configuration-but-retain-the-detail

Re: Are Wicket models loaded concurrently ?

2012-12-26 Thread Hendy Irawan
apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.

Re: Are Wicket models loaded concurrently ?

2012-12-25 Thread Hendy Irawan
worse. I think you choose a threaded model loading if most other options > failed (use a cache, change the query, ...) > > Mm:) > > > > > Hendy Irawan <[hidden > email]<http://user/SendEmail.jtp?type=node&node=4655050&i=0>> > schrieb: > > &g

Are Wicket models loaded concurrently ?

2012-12-24 Thread Hendy Irawan
Hi friends, If I have 5 Wicket (LoadableDetachable)models on a page, will Wicket load each model sequentially, or will the 5 models loaded concurrently ? We're using different servers for each database connection (MongoDB, Neo4j, etc.) so it will be a more effective use to load the models concur