Re: Best practice for custom page renderer

2019-02-28 Thread Alberto Brosich
Doing more investigations I found that the problem is gathering the extended browser info. Omitting that, BrowserInfoPage is stateless. Sorry for the noise. Regards Alberto On Thu, 2019-02-28 at 11:06 +0100, Alberto Brosich wrote: > On Thu, 2019-02-28 at 01:50 -0800, Bas Gooren wrote: >

Re: Best practice for custom page renderer

2019-02-28 Thread Alberto Brosich
; Bas Gooren > > Op 28 februari 2019 bij 10:48:25, Alberto Brosich (abros...@inogs.it) > schreef: > > Hello, > > > > I didn't find any useful information about that in the > > documentation. > > > > For some reasons (e.g. search engine bots

Best practice for custom page renderer

2019-02-28 Thread Alberto Brosich
Hello, I didn't find any useful information about that in the documentation. For some reasons (e.g. search engine bots or clients unable to follow redirects) on some pages I would like to have an http 200 response. By default Wicket uses REDIRECT_TO_BUFFER render strategy that send a 302 redire

Custom type for

2018-06-29 Thread Alberto Brosich
Hello, I need to put a script tag in the header with a custom type ("application/ld+json"). I used JavaScriptHeaderItem and it put "text/javascript" as type attribute and it seems it's not possible to set it. Also other HeaderItem classes do not help. Any suggest? Best regards Alberto Wick

Override getStatelessHiint for InlineFrame

2018-03-02 Thread Alberto Brosich
Hello, I have a page containing an InlineFrame component. This page should be stateless because the content of InlineFrame never change. Is it a good practice override getStatelessHint() method of InlineFrame component? Best regards Alberto ---

Re: PropertyListView without inner component

2017-09-22 Thread Alberto Brosich
27;t it? Thanks Alberto > > Have fun > Sven > > > Am 21.09.2017 um 11:52 schrieb Alberto Brosich: > > Hello, > > > > I have a PropertyListView in a page with a CompoundPropertyModel on > > a > > JAXB generated class. > > > > I hav

PropertyListView without inner component

2017-09-21 Thread Alberto Brosich
Hello, I have a PropertyListView in a page with a CompoundPropertyModel on a JAXB generated class. I have simply to repeat a "" element. I found two solutions: - using an outer element; - using an inner element with setRenderBodyOnly(true). ex. queue(new PropertyListView("titles.title") {

Re: Custom http error pages

2014-09-10 Thread Alberto Brosich
rror(code, message) is stored as request attribute. > Hi Martin, I used the second one and it works fine. Many thanks Alberto > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > > On Wed, Sep 10, 2014 at 11:09 AM, Alberto Brosich > w

Custom http error pages

2014-09-10 Thread Alberto Brosich
Hi, I'm using the latest version of wicket. I'm trying to write custom pages for http errors. The standard way, using web.xml, is not useful for me because I would print custom messages too. I tried to write a RequestCycleListener extending AbstractRequestCycleListener class, but it seems that Ab

onInitialize() and exception handling

2014-04-29 Thread Alberto Brosich
Hi, I have a wicket application where I create page components (mainly labels and ListViews) using onInitialize() method of some panels I have in every page. In some cases, during the creation of the components, some exceptions can occur (for example if the content is downloaded from a webservice

Best practices with subclassing and subpackaging

2014-03-03 Thread Alberto Brosich
Hi, I have an application with several pages, mounted in webapplication, that do not have markup file associated. The markup file is selected using variations in the parent class. I would like to split pages in subpackages but if I move the markup file (ParentPageClass_variation.html) in the subp

Re: Does wicket:link tag work inside pages in different packages?

2014-03-03 Thread Alberto Brosich
the day. > Also see the examples page: > http://www.wicket-library.com/wicket-examples/linkomatic/home > > > On Feb 27, 2014, at 11:03 AM, Alberto Brosich wrote: > > > > > Yes, I read it. > > Does it mean that have to do a different header panel for every >

Re: Does wicket:link tag work inside pages in different packages?

2014-02-27 Thread Alberto Brosich
gt; Sven > > On 02/27/2014 03:44 PM, Alberto Brosich wrote: > > Hi, > > > > I have an header panel with a link to the homepage of the site. > > This panel is included in every page of the site. > > If I use the tag for that link it works fine (for example, >

Does wicket:link tag work inside pages in different packages?

2014-02-27 Thread Alberto Brosich
Hi, I have an header panel with a link to the homepage of the site. This panel is included in every page of the site. If I use the tag for that link it works fine (for example, it is disabled in the homepage) for the pages in the same package of the Homepage class. If I am on a page inside anoth

Dealing with 3 choice components

2011-11-16 Thread Alberto Brosich
works only on the startup of the form. When I change the value in A the list of C become empty. I have to change the value of B to fill C. How can I manage this? A -- Alberto Brosich Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS Dipartimento di Oceanografia - OGA National

Re: Call an external url setting method and header

2011-11-16 Thread Alberto Brosich
er uses a weird filename to write to. Instead of interrupting request processing with an exception, just schedule it with RequestCycle#scheduleRequestHandlerAfterCurrent() in your form's submit method. Sven -Ursprüngliche Nachricht- Von: Alberto Brosich [mailto:abros...@ogs.trieste.it

Re: Call an external url setting method and header

2011-11-16 Thread Alberto Brosich
m googling since 2 days without success. Best regards Alberto | -- Alberto Brosich Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS Dipartimento di Oceanografia - OGA National Oceanographic Data Centre/IOC - NODC Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITA