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 :

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: 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

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

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 =

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,

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 also

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

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.

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

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: How to instruct RenderPageRequestHandler to redirect using 301 Permanent

2014-12-10 Thread Hendy Irawan
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] http:///user/SendEmail.jtp?type=nodenode=4668717i=0 wrote: I currently have a custom SEO

Re: How to instruct RenderPageRequestHandler to redirect using 301 Permanent

2014-12-10 Thread Hendy Irawan
and Consulting https://twitter.com/mtgrigorov On Wed, Dec 10, 2014 at 3:20 PM, Hendy Irawan [hidden email] http:///user/SendEmail.jtp?type=nodenode=4668721i=0 wrote: Thanks for prompt advice Martin, however please explain more... I commented that code because I don't know how to construct

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 microdata

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: [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

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

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

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

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

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:

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 constant. --

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

2013-09-24 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:00

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

2013-09-24 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

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: How to increase number of stored pages in PageStore for Wicket 6.8?

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

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 LinkedInhttp://id.linkedin.com

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:

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 http

Re: Are Wicket models loaded concurrently ?

2012-12-26 Thread Hendy Irawan
%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 -- Hendy Irawan - on Twitter

Re: Are Wicket models loaded concurrently ?

2012-12-25 Thread Hendy Irawan
other options failed (use a cache, change the query, ...) Mm:) Hendy Irawan [hidden email]http://user/SendEmail.jtp?type=nodenode=4655050i=0 schrieb: Hi friends, If I have 5 Wicket (LoadableDetachable)models on a page, will Wicket load each model sequentially, or will the 5 models

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