Re: Checking preconditions/changes in models

2021-01-29 Thread Bas Gooren
age Regards Sven On 20.01.21 09:18, Bas Gooren wrote: > Hi Sven, > > Thank you for your reply. > > On catching failure “when it happens”: can you explain what that looks like > for you? > > E.g. do you handle exceptions within the model itself, or with a > Req

Re: Checking preconditions/changes in models

2021-01-20 Thread Bas Gooren
call to “getModelObject()” inside my components with a try-catch (so in methods like onConfigure, onClick etc). Met vriendelijke groet, Kind regards, Bas Gooren Op 14 januari 2021 bij 19:18:57, Sven Meier (s...@meiers.net) schreef: Hi Bas, in my experience is is very hard to check every possible

Re: Illegal Reflective Access in DefaultPropertyLocator

2021-01-18 Thread Bas Gooren
groet, Kind regards, Bas Gooren Op 18 januari 2021 bij 17:13:42, Johannes Renoth (johannes.ren...@gmx.de) schreef: Hello, In my project i have the following Warning since the Update to Java 11: The issue remains even after trying with the latest Version 9.2.0 I am using a LocalDateTime Model

Checking preconditions/changes in models

2021-01-12 Thread Bas Gooren
Hi all, First off: best wishes to everyone for 2021, and that we may all have fun this year building stuff in Wicket! I’m wondering how others implement the following requirement… Suppose a page has a model backed by something stored in the session or database (e.g. an e-commerce basket page or

Re: Migration from 7 to 8.9.0 : Missing Ajax target in listener

2020-08-21 Thread Bas Gooren
” javascript calls? Met vriendelijke groet, Kind regards, Bas Gooren Op 21 augustus 2020 bij 11:16:01, Frédéric Donckels ( frederic.donck...@gmail.com) schreef: Hello, we are in the process of migrating from Wicket 7 to 8.9.0 and have a troubling issue. On one page, we have a list of elements. When we

Re: "wicket:message" in markup combined with Property Expression Language

2020-08-14 Thread Bas Gooren
replacement prior to using it to find a localized message. This means you’ll have to wire things up in java code to make your use-case work. Met vriendelijke groet, Kind regards, Bas Gooren Op 14 augustus 2020 bij 09:56:50, Thorsten Schöning (tschoen...@am-soft.de) schreef: Hi all, I know how to use

Re: Issues with refreshing panel with form

2020-08-03 Thread Bas Gooren
Hi Michal, Can you provide some code, e.g. a Quickstart application [1] so we can have a look? It’s hard to say why it’s not working without seeing some code. 1) https://wicket.apache.org/start/quickstart.html Met vriendelijke groet, Kind regards, Bas Gooren Op 3 augustus 2020 bij 13:53:36

Re: Page locked for a long time

2020-07-23 Thread Bas Gooren
Hi Maxim, You need to call parseFileParts() on the request yourself before accessing files and post parameters, or there are no parts and post parameters. Am on mobile so cannot quickly find java doc for 8 or 9 but api is the same:

Re: Change pageId Parameter structure

2020-07-14 Thread Bas Gooren
!), but also allows you to solve this in 1 location instead of many locations. Source: I have written many such custom mappers and mapper decorators, e.g. for localization of urls. Met vriendelijke groet, Kind regards, Bas Gooren Op 14 juli 2020 bij 14:54:07, Ravi Knox (ravi.k...@intellinet.de

Re: Preventing AJAX behavior to execute during page reload

2020-03-06 Thread Bas Gooren
state if an action was executed or not. May I ask why you are not simply calling setResponsePage(getPage())? Met vriendelijke groet, Kind regards, Bas Gooren Op 6 maart 2020 bij 10:58:59, Sebastian Lichtenfels ( sebastian.lichtenf...@tomtec.de) schreef: Hi all, I have a problem with an AJAX

Re: Dealing with editing of nested objects in a multiple screens for a single entity

2020-01-18 Thread Bas Gooren
regards, Bas Gooren Op 17 januari 2020 bij 21:42:54, Sven Meier (s...@meiers.net) schreef: Hi Bas, >set of custom models that remembers what was provided in “setObject” and can later replay this in my experience most attempts on putting to much logic into model implementations have failed. L

Re: An open source devops platform completely created with Wicket

2020-01-16 Thread Bas Gooren
mimic mine), as there are not that many (public) stories about wicket usage :-) I will certainly have a close look at your product. Thanks! Met vriendelijke groet, Kind regards, Bas Gooren Op 17 januari 2020 bij 01:26:06, Robin Shen (ro...@pmease.com) schreef: Dear wicket users, I'd like

Dealing with editing of nested objects in a multiple screens for a single entity

2020-01-16 Thread Bas Gooren
aining it. But alas, I cannot seem to find any mention of it anymore. Thank you all for reading and any input you can provide. Met vriendelijke groet, Kind regards, Bas Gooren

Re: Retrieve user's page on the site

2019-12-30 Thread Bas Gooren
this (either in-memory by IP, or some other backing store). When an exception occurs, you can catch it in your request cycle listener and fetch the last user actions. Together, these should provide a better trail of actions leading up to the exceptions. Met vriendelijke groet, Kind regards, Bas Gooren Op

Re: Application not seri

2019-12-21 Thread Bas Gooren
() { MyServiceInsideApplication service = MyApplication.getService(); return service.getX(); } }; This way, there is no need to serialize the service, as it can be looked up just-in-time when it is needed. Met vriendelijke groet, Kind regards, Bas Gooren Op 21 december 2019 bij 07:03:18, ShengChe Hsiao (front...@gmail.com

Re: Is there a way to control Wicket's id generation?

2019-10-25 Thread Bas Gooren
a “radioX” value there. Of course the value can be overridden, but not with a central strategy. Met vriendelijke groet, Kind regards, Bas Gooren Op 25 oktober 2019 bij 17:06:32, Entropy (blmulholl...@gmail.com) schreef: I work on a government project and one of our rules is that all of our apps

Re: Wrapping a FormComponent with a Border

2019-09-04 Thread Bas Gooren
Hi Tom, I can have a look over the weekend, to see if I can extract some code and put it on GitHub for you. Met vriendelijke groet, Kind regards, Bas Gooren Op 3 september 2019 bij 13:05:42, Tom Götz (t...@richmountain.de) schreef: Hi Bas and thanks for your input! I guess this would also

Re: Wrapping a FormComponent with a Border

2019-09-03 Thread Bas Gooren
. My 2 cents :-) Met vriendelijke groet, Kind regards, Bas Gooren Op 3 september 2019 bij 11:19:06, Tom Götz (t...@richmountain.de) schreef: Well ok, I'll give the Panel solution a try. In the panel I will have a FormGroup Border and inside that there's my input/textfield. Only thing that still

Re: Migrating to 8.5

2019-08-19 Thread Bas Gooren
Hi! It sounds like you are not referencing the correct wicket-request dependency. Did you check your maven dependency tree to ensure there are no old (or duplicate/multiple) versions of wicket dependencies being resolved? Met vriendelijke groet, Kind regards, Bas Gooren Op 19 augustus 2019

Re: Control how and where the Bootstrap css resources are included in the page

2019-05-10 Thread Bas Gooren
, Bas Gooren Op 10 mei 2019 bij 17:24:43, Matteo Alessandroni ( matteo.alessandr...@tirasa.net) schreef: Hi, I would like to know whether there is a way to decide where to place the Bootstrap css resources in the element. I'm asking this because I have a "BookmarkablePageLink" eleme

Re: ModalWindow cannot trigger setWindowClosedCallback or setCloseButtonCallback problem

2019-03-06 Thread Bas Gooren
Hi, Since you are not storing pages, how does the form in your modal window work? I assume you are using a stateless form? Since your on close callback is stateful, it will not work; you will either need to use a stateless Ajax behavior or stateless form where in onsubmit you redirect to a new

Re: Best practice for custom page renderer

2019-02-28 Thread Bas Gooren
Hi! We have many stateless pages in our apps (public-facing, indexed, e-commerce websites), and use the default render strategy provided by wicket. When a page is stateless, wicket does not redirect. Are you sure your pages are stateless? Met vriendelijke groet, Kind regards, Bas Gooren Op

Re: Model map with enum as a key

2019-02-04 Thread Bas Gooren
e groet, Kind regards, Bas Gooren Op 4 februari 2019 bij 13:51:28, Zbynek Vavros (zbynekvav...@gmail.com) schreef: I got this class that has map with enums as keys: public class MasterClass { private Map config = Maps.newHashMap(); } enum is classic: public enum MyEnum { VALUE1, VALUE2 } now

Re: web session not available to current thread

2018-12-10 Thread Bas Gooren
().add( new XForwardedRequestWrapperFactory() ); You might need to configure it, depending on your reverse proxy and it’s IP address; When the proxy’s IP matches the “allowedInternalProxies” regex, the real remote address will be available to wicket. Met vriendelijke groet, Kind regards, Bas Gooren

Re: LambdaModel use

2018-11-14 Thread Bas Gooren
groet, Kind regards, Bas Gooren Op 11 november 2018 bij 00:42:38, Илья Нарыжный (phan...@ydn.ru) schreef: Thank you, Bas! Fully agree with you that if setters is to set something on a main target object. In my particular case, I tried to use LambdaModel for "conversion" betwee

Re: AjaxSelfUpdatingBehaviour detaches my DataTable

2018-11-14 Thread Bas Gooren
request or reload the entire page). What kind of data provider are you using? Met vriendelijke groet, Kind regards, Bas Gooren Op 12 november 2018 bij 14:19:09, Sandor Feher (sfe...@bluesystem.hu) schreef: Hi, I feel a little bit dump but I can't fix it. At the moment it looks like if I want my

Re: LambdaModel use

2018-11-08 Thread Bas Gooren
which delegates getting and setting the value to the specified supplier and consumer, without having a target model. 1) https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/model/LambdaModel.java Met vriendelijke groet, Kind regards, Bas Gooren Op 9 november 2018

Re: Rendering a page for storage

2018-09-16 Thread Bas Gooren
Hi René, If I recall correctly, the component renderer uses a mock request and response to render components. Does your page (or any injected services) require the request to be a servlet request? // Bas Verstuurd vanaf mijn iPhone > Op 16 sep. 2018 om 21:48 heeft René Stolle het volgende >

Re: spring controller redirect ModelAndView to a wicket panel class

2018-09-10 Thread Bas Gooren
of one-time-tokens so you can forward to wicket with that token and wicket can fetch the user based on the token. In any case, can you debug the code? If you set some breakpoint I think you’ll figure out quickly where the problem lies :-) Good luck. Met vriendelijke groet, Kind regards, Bas Gooren

Re: spring controller redirect ModelAndView to a wicket panel class

2018-09-08 Thread Bas Gooren
wicket one or the spring one? Of the two pages/urls in question (your spring endpoint running the code you’ve shown and the wicket page), which ones require authentication? Met vriendelijke groet, Kind regards, Bas Gooren Op 7 september 2018 bij 20:24:35, extraquoo (extraq...@gmail.com) schreef

Re: spring controller redirect ModelAndView to a wicket panel class

2018-09-07 Thread Bas Gooren
can extract and use to construct your panel in any way you need. Met vriendelijke groet, Kind regards, Bas Gooren Op 7 september 2018 bij 06:20:54, extraquoo (extraq...@gmail.com) schreef: Hi my project is implemented by two frameworks: spring web flow and wicket. Now in one of the spring

Re: renderFullUrl for apache internal redirected page

2018-08-04 Thread Bas Gooren
vhost configuration: Header set X-Forwarded-Proto “https” Met vriendelijke groet, Kind regards, Bas Gooren Op 4 augustus 2018 bij 12:44:59, smallufo (small...@gmail.com) schreef: My server is apache frontend , redirecting all port 80 to 443 and with '/app' prefix , proxyPass to internal

Re: ListenerRequestHandler / urls from the past... - component not found

2018-06-30 Thread Bas Gooren
should instead be >>> >>> http://examples7x.wicket.apache.org/forminput/?wicketHandling=0-1.IFormSubmitListener-inputForm >>> >>> where wicketHandling would be the global named paramter where the wicket >>> puts >>> all its infos into that param

Re: ListenerRequestHandler / urls from the past... - component not found

2018-06-29 Thread Bas Gooren
or a RenderPageRequestHandler, depending on the type of page that was being rendered (stateless, bookmarkable) Good luck. Met vriendelijke groet, Kind regards, Bas Gooren Op 29 juni 2018 bij 11:50:27, Korbinian Bachl ( korbinian.ba...@whiskyworld.de) schreef: Hi, I've got some problems with 404/ 500

Re: DropDownChoice and null value

2018-06-25 Thread Bas Gooren
. To override the “Choose one” text on the initial render, have a look at AbstractSingleSelectChoice#getDefaultChoice(String), as it documents which translation keys are used for these cases. Met vriendelijke groet, Kind regards, Bas Gooren Op 25 juni 2018 bij 14:26:46, JavaTraveler (meteor.ei

Re: wicket 8 / RootRequestMapper vs CompoundRequestMapper

2018-06-11 Thread Bas Gooren
er should be installed after all other mappers, and as the root mapper. If you just want to map some pages, just add the mapper and don’t worry about where in the hierarchy it is. As long as it returns a score higher than any other, it will be used. Met vriendelijke groet, Kind regards, Bas Gooren O

Re: How to use language/locale from url without creating a session?

2018-05-31 Thread Bas Gooren
, Bas Gooren Op 26 mei 2018 bij 13:41:25, Martin Grigorov (mgrigo...@apache.org) schreef: Hi, Here is another solution: - put the locale in RequestCycle's metadata - override Session#getLocale() and if Session#isTemporary() then use the metadata, otherwise use the session's locale On Fri, May 25

How to use language/locale from url without creating a session?

2018-05-25 Thread Bas Gooren
vriendelijke groet, Kind regards, Bas Gooren

Re: SPA, session replacement and pagestore

2018-05-19 Thread Bas Gooren
a lot of pages indexed by google. Met vriendelijke groet, Kind regards, Bas Gooren Op 18 mei 2018 bij 12:21:24, Ravi (ravi.k...@intellinet.de) schreef: Hi all, we have a single page application (SPA). On the first entree we of course get a Session url that will never disappear due to the nature

Re: manual resolving of path

2018-04-11 Thread Bas Gooren
, Kind regards, Bas Gooren Op 11 april 2018 bij 09:47:16, Korbinian Bachl ( korbinian.ba...@whiskyworld.de) schreef: Hi, where would I need to look at if I wanted to resolve the path from the root of the webapplication inside a wicket application root? e.g.: domain.com <- has wicket app on R

Re: Wicket in a wildfly cluster

2018-03-02 Thread Bas Gooren
Hi Ravi, Sorry - I have no experience with "real-time" session replication. Personally I would never attempt it, as wicket sessions can grow relatively large and thus replication may not be instantaneous (as you are experiencing)… Met vriendelijke groet, Kind regards, Bas Gooren

Re: Wicket in a wildfly cluster

2018-03-02 Thread Bas Gooren
Hi Ravi, You don’t mention what’s in front of your application servers. Are you doing non-sticky load balancing? Or are you having issues when the user hits the same application server? (Which would be a different issue) Met vriendelijke groet, Kind regards, Bas Gooren Op 2 maart 2018 bij 13

Re: Session discontinue

2018-03-01 Thread Bas Gooren
Hi! It sounds like your session is not getting bound. Have you tried explicitly calling bind()? Ps it’s good practice to call replaceSession() on login to prevent session fixation, so have a look at that, too. // Bas Verstuurd vanaf mijn iPhone > Op 1 mrt. 2018 om 10:44 heeft

Re: strange error

2018-02-27 Thread Bas Gooren
a debug breakpoint in your constructor, and step through the code) to find out exactly where the NPE is thrown. Met vriendelijke groet, Kind regards, Bas Gooren Op 27 februari 2018 bij 13:25:56, Shengche Hsiao (shengchehs...@gmail.com) schreef: Hi there, I wrote a wicket-based application , users

Re: Preventing directory list

2018-02-14 Thread Bas Gooren
does not provide a fix. Although I do interpret the thread as if this is only a problem with using a wicket servlet, instead of a wicket filter. Are you using the servlet or filter? Met vriendelijke groet, Kind regards, Bas Gooren Op 13 februari 2018 bij 20:13:25, Entropy (blmulholl...@gmail.com

Re: Preventing directory list

2018-02-13 Thread Bas Gooren
. Are you certain web sphere is picking up your configuration? Met vriendelijke groet, Kind regards, Bas Gooren Op 13 februari 2018 bij 17:12:19, Entropy (blmulholl...@gmail.com) schreef: But I have "/*" mapped t the wicket servlet. /images is under "/*". I have no servlet mapp

Re: Preventing directory list

2018-02-13 Thread Bas Gooren
Hi! For as far as I know, wicket does not provide any directory listings; I suspect this is either your application server, or your webserver which responds with a directory listing. Met vriendelijke groet, Kind regards, Bas Gooren Op 13 februari 2018 bij 16:44:43, Entropy (blmulholl

Re: wicket:for inside a propertyListView doesn't generate id on the input

2018-01-03 Thread Bas Gooren
is already rendered when the AutoLabelResolver runs. To fix this, please call setOutputMarkupId(true) yourself on the checkbox, or put the label before the checkbox in your html. Met vriendelijke groet, Kind regards, Bas Gooren Op 3 januari 2018 bij 08:02:15, Virginie Garcin ( virginie.gar

Re: Odd Requirement

2017-10-06 Thread Bas Gooren
, and let the submitting components set it based on their desired validation mode. Detach the model on page detach. Met vriendelijke groet, Kind regards, Bas Gooren Op 5 oktober 2017 bij 20:34:35, Entropy (blmulholl...@gmail.com) schreef: We have an odd requirement that I was wondering how

Re: NumberTextField and LambdaModel, typing goes wrong?

2017-10-04 Thread Bas Gooren
Rob, This is because a property model provides certain metadata (when available); E.g. When the property model points to a field, it provides the type of field. Even when the model value is null this type information is still available. Since this metadata is not available when using lambdas

Re: why is DefaultNestedTree component treated as property within PropertyResolver ?

2017-08-18 Thread Bas Gooren
Hi Ulrich, My guess (based on quickly looking at your code on my phone): the DeafultNestedTree probably uses a model to store open/closed state or selected states. Since you don't provide it in the constructor, wicket automatically creates a property model since a parent component has a

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

2017-08-08 Thread Bas Gooren
url, whether the url generation went through your HttpsMapper. This also allows you to detect if the container is interfering (your app server or reverse proxy). Met vriendelijke groet, Kind regards, Bas Gooren Op 8 augustus 2017 bij 12:50:47, Hendy Irawan (he...@soluvas.com) schreef: Thanks

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

2017-08-08 Thread Bas Gooren
a compound mapper. Please confirm if you are, in fact, mounting pages after your call to setRootRequestMapper. Met vriendelijke groet, Kind regards, Bas Gooren Op 8 augustus 2017 bij 12:39:12, Hendy Irawan (he...@soluvas.com) schreef: I have managed to use XForwardedRequestWrapperFactory by creating

How do you handle rolling upgrades?

2017-07-26 Thread Bas Gooren
#Parallel_deployment Met vriendelijke groet, Kind regards, Bas Gooren

Re: How save entity after clicking on submit button inside Form Wicket class.

2017-03-29 Thread Bas Gooren
configured the dependency injection? Met vriendelijke groet, Kind regards, Bas Gooren Op 28 maart 2017 bij 18:59:33, Sokab (sokab3...@gmail.com) schreef: Hi Everyone. When I try save entity inside simple WebPage like this everything is ok: import com.example.entities.Person; import javax.ejb.EJB

Re: Generated IDs

2017-02-06 Thread Bas Gooren
to set the markup id according to some algorithm. Met vriendelijke groet, Kind regards, Bas Gooren Op 6 februari 2017 bij 17:25:21, Entropy (blmulholl...@gmail.com) schreef: Yes, but we have a whole lot of existing pages and fields and links and buttons. I was kind of hoping I could just get

Re: Cannot mock final SortableDataProvider.getSortState

2017-01-13 Thread Bas Gooren
(…) DatabaseLocator.setDatabaseForCurrentThread(mockDatabase) … in test expect(mockDatabase.getIndex(anyObject())).andReturn(…) SortableContactDataProvider.iterator(….) etc. … run after test DatabaseLocator.clearDatabaseForCurrentThread() Met vriendelijke groet, Kind regards, Bas Gooren Op 13 januari 2017 bij 12:10

Re: Cannot mock final SortableDataProvider.getSortState

2017-01-12 Thread Bas Gooren
regards, Bas Gooren Op 12 januari 2017 bij 10:23:12, Eric J. Van der Velden ( ericjvandervel...@gmail.com) schreef: Hello, SortableDataProvider, in package org.apache.wicket.extensions.markup.html.repeater.util, has a final method getSortState(). I cannot mock this method. I have copied

Re: Question/Suggestion about updating a component in aw existing page (Wicket 6.x)

2017-01-04 Thread Bas Gooren
a wicket event from every component once it’s been updated (storing a component reference in the event); You can then listen for these events in your “parent”/owning component and add the component to the ART. Met vriendelijke groet, Kind regards, Bas Gooren Op 4 januari 2017 bij 15:10:46

Re: Question/Suggestion about updating a component in aw existing page (Wicket 6.x)

2017-01-04 Thread Bas Gooren
, Kind regards, Bas Gooren Op 4 januari 2017 bij 14:33:34, christophe (madeleine.christo...@wanadoo.fr) schreef: Hello dear readers I am working on a web application that is very very AJAX-oriented. In other words any "displayed" page gets updated many times as a consequence o

Re: AbstractToolbar vs AjaxFallbackDefaultDataTable

2016-12-29 Thread Bas Gooren
It sounds like your code keeps adding the toolbar. Can you show us some code that adds your custom toolbar? It should only add the toolbar once, when the table is created. // Bas Verstuurd vanaf mijn iPhone > Op 29 dec. 2016 om 09:53 heeft nino martinez wael >

Re: Calling Javascript for any event in a parent

2016-12-22 Thread Bas Gooren
Hi! You can override #onEvent in your “parent” component. The AjaxRequestTarget is broadcast as an event (you can check if the payload is an ART). You can then check if the ART contains your table component, and if it does, append your javascript. Met vriendelijke groet, Kind regards, Bas

Bug in wicket 7.5.0 caused by WICKET-6231; Reported as WICKET-6266

2016-11-01 Thread Bas Gooren
uest write access to the wicket wiki (username bgooren), to list the company I work for on the “Companies that provide services”-page. Thanks! Met vriendelijke groet, Kind regards, Bas Gooren

Re: stop wicket from rewriting references in my css file

2016-06-23 Thread Bas Gooren
Can you show us how the references are being rewritten? Maybe the format is an indication of where it is being rewritten… Met vriendelijke groet, Kind regards, Bas Gooren Op 23 juni 2016 bij 08:18:34, nino martinez wael ( nino.martinez.w...@gmail.com) schreef: I've looked everywhere and cant

Re: wicket-guice and recursive injection of non serializable JPA2 objects

2016-06-17 Thread Bas Gooren
transparently. Met vriendelijke groet, Kind regards, Bas Gooren Op 17 juni 2016 bij 12:38:00, Dieter Tremel (tre...@tremel-computer.de) schreef: Hello Martin, I tried this to learn it, but didn't find it. I put a breakpoint at org.apache.wicket.serialize.java.JavaSerializer

Re: wicket-guice and recursive injection of non serializable JPA2 objects

2016-06-16 Thread Bas Gooren
is that you’ll find the culprit by simply looking at all places in your code where you use the PersonenDao. Met vriendelijke groet, Kind regards, Bas Gooren Op 15 juni 2016 bij 16:25:25, Dieter Tremel (tre...@tremel-computer.de) schreef: Hello Martin, it is: personenProvider = (com.sun.proxy

Re: wicket-guice and recursive injection of non serializable JPA2 objects

2016-06-15 Thread Bas Gooren
:-) Met vriendelijke groet, Kind regards, Bas Gooren Op 15 juni 2016 bij 13:29:24, Dieter Tremel (tre...@tremel-computer.de) schreef: Hello Bas, I try to cut small pieces of the code, please tell me if you want to see more. First the error: 12:59:03.919 [http-nio-8084-exec-6] WARN

Re: stop wicket from rewriting references in my css file

2016-06-15 Thread Bas Gooren
)CssCompressor(). It sounds like it is currently set to an instance of CssUrlReplacer in your app, as that rewrites all references in CSS. Met vriendelijke groet, Kind regards, Bas Gooren Op 15 juni 2016 bij 12:11:12, nino martinez wael (nino.martinez.w...@gmail.com) schreef: Hi I currently have an issue

Re: wicket-guice and recursive injection of non serializable JPA2 objects

2016-06-15 Thread Bas Gooren
Dieter, Since the data provider is inject as a proxy, only the proxy should be serialized. On deserialization it should look up the actual data provider again. Can you share some code so we can see how you set things up? What you are trying is something that should work out of the box - it does

Re: Issue with the FileUploadField

2016-06-14 Thread Bas Gooren
, and handle the upload on ajax submit. Met vriendelijke groet, Kind regards, Bas Gooren Op 13 juni 2016 bij 17:20:28, ChambreNoire (a...@tentelemed.com) schreef: Hey there, Little late in the day, but I'm trying to find a working example of a simple ajax fileuploadfield to be used within a modal

Re: Generate css from less for package resources at runtime.

2016-05-25 Thread Bas Gooren
time of imported sources. I’ll try to do some debugging to see if it really is not working, and if that’s the case: why it’s not working. Met vriendelijke groet, Kind regards, Bas Gooren Op 24 mei 2016 bij 20:25:52, Lars Törner (lars.tor...@gmail.com) schreef: Thanks Martin, I'll take a look

Re: AjaxFormValidatingBehavior on component

2016-05-18 Thread Bas Gooren
panels in onUpdate() and onError(). Met vriendelijke groet, Kind regards, Bas Gooren Op 18 mei 2016 bij 11:29:26, Sven Meier (s...@meiers.net) schreef: Hi, I cannot find that error message in Wicket's source. Are you using org.apache.wicket.ajax.form.AjaxFormValidatingBehavior or some

Re: Generate css from less for package resources at runtime.

2016-05-18 Thread Bas Gooren
. A potential way to fix this is to make it more intelligent, assuming the less compiler can expose such details (referenced files, last-modified time of those files). Met vriendelijke groet, Kind regards, Bas Gooren Op 18 mei 2016 bij 13:06:59, Martin Grigorov (mgrigo...@apache.org) schreef: Hi Lasse

Re: Generating table header ids for multiple tables pe rpage

2016-05-17 Thread Bas Gooren
not simply use a data table and manage everything in java code? Met vriendelijke groet, Kind regards, Bas Gooren Op 15 mei 2016 bij 20:01:15, Thorsten Schöning (tschoen...@am-soft.de) schreef: Guten Tag Thorsten Schöning, am Sonntag, 15. Mai 2016 um 11:14 schrieben Sie: > So nex

Re: Generating table header ids for multiple tables pe rpage

2016-05-14 Thread Bas Gooren
(String id). Regarding the “headers” attribute: simply override onComponentTag in your table component, and change the headers attribute as you want; This way you don’t have to add an AttributeModifier, and don’t have to think of it. Met vriendelijke groet, Kind regards, Bas Gooren Op 14 mei

Re: Which model to use for forwarding form processing results?

2016-05-10 Thread Bas Gooren
groet, Kind regards, Bas Gooren Op 10 mei 2016 bij 19:48:48, Thorsten Schöning (tschoen...@am-soft.de) schreef: Guten Tag Bas Gooren, am Dienstag, 10. Mai 2016 um 13:43 schrieben Sie: > This sounds like a good use-case for an event. Thanks for this hint, I totally forgot about it and deci

Re: Which model to use for forwarding form processing results?

2016-05-10 Thread Bas Gooren
: @OnEvent public void onFormDataSubmittedEvent(FormDateSubmittedEvent event) { … impl } It’s actually a great way to handle data-passing in pages. Met vriendelijke groet, Kind regards, Bas Gooren Op 10 mei 2016 bij 08:54:14, Thorsten Schöning (tschoen...@am-soft.de) schreef: Hi all, I have one

Re: Issue with serialization of a page

2016-03-10 Thread Bas Gooren
first) after the map reaches a certain size Met vriendelijke groet, Kind regards, Bas Gooren Op 10 maart 2016 bij 10:04:53, Daniele IPPOLITI (daniele.ippol...@amadeus.com) schreef:   Hello, I would like to write you because I’m migrating since wicket 1.4.X to wicket 7.X, but I’m facing a p

Re: Wicket 6.16 problem with popup window to the front by IE11

2016-03-04 Thread Bas Gooren
groet, Kind regards, Bas Gooren Op 4 maart 2016 bij 11:42:20, Harry (hkl...@csc.com) schreef: Hi all, I’m new in this forum and I am no expert on wicket. I try to get a popup window to the front at the browser IE11, with Firefox and Chrome it works. I open the popup window with an item

Re: Wicket model problem

2016-02-19 Thread Bas Gooren
Hi, I think the only way to track this is with custom code (or with aspects for example). Since the contract of IModel only has detach() (and not isDetached()), this cannot be tracked easily. What I would do in such a case is probably to add a requestcyclelistener which walks a page after a

Re: Wicket model problem

2016-02-19 Thread Bas Gooren
Hi! Perhaps this is stating the obvious since it looks like you know what you are doing, but just to be sure: Does your LoadableDetachableExpressionModel call detach on its “parent” model? This is the most frequently occurring source of model leaks I have seen. Since the last model in the

Re: ResourceFinders - order of looking into folders for resource

2016-02-11 Thread Bas Gooren
Hi Marieke, I see that ResourceSettings exposes method getResourceFinders() which returns a List. Assuming that’s where you register your custom finder, isn’t the easy solution to simply add it to the top of the list? E.g. add(0, yourFinder) instead of add(yourFinder)? Met vriendelijke

Re: Listing on http://builtwithwicket.tumblr.com/

2016-02-08 Thread Bas Gooren
: Hi Bas, There was no notification from Tumblr for new entries for approval the last few months. Please re-post! Thank you! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Feb 8, 2016 at 1:58 PM, Bas Gooren <b...@iswd.nl> wrote: &g

Listing on http://builtwithwicket.tumblr.com/

2016-02-08 Thread Bas Gooren
Hi all! We submitted one of our websites to the “Built with wicket” Tumblr a short while ago but never heard back. Is it still maintained? Met vriendelijke groet, Kind regards, Bas

Re: DateTimeField AJAX DatePicker not work

2016-02-04 Thread Bas Gooren
requires more debugging. My gist provides a solution in the meantime. Met vriendelijke groet, Kind regards, Bas Gooren Op 3 februari 2016 bij 23:41:21, Martin Grigorov (mgrigo...@apache.org) schreef: Hi, I don't have time to debug this problem now but I'll try to do it early next week

Replacement for MarkupContainer#get and MarkupContainer#swap

2016-01-25 Thread Bas Gooren
Hi All, Since wicket 7 I see that index-based methods in MarkupContainer have been deprecated. We use those methods in some of our list editors - components that allow editing of lists of entities inside a form which provides ordering (move an item up & down). The beauty of the current

Re: Accessing WebApplication from the service layer

2014-02-03 Thread Bas Gooren
. Met vriendelijke groet, Kind regards, Bas Gooren schreef ChambreNoire op 3-2-2014 14:48: Hello, OK so no storing my MapString, EntityLock in the Application MetaData then? Many thanks, Chambre -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Accessing-WebApplication

Re: AjaxLazyLoadPanel loading asynchronously

2014-02-03 Thread Bas Gooren
Hi, When your page gets serialized (which can happen between requests), transient fields (like the future field) are set to null. When your behavior is triggered and the page is deserialized, the field is null. Met vriendelijke groet, Kind regards, Bas Gooren schreef vp143 op 3-2-2014 15

Re: XSS in wicket. Wicket fault or my fault?

2014-01-30 Thread Bas Gooren
Hi! You can also replace your Label's model with a StringResourceModel. See http://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/model/StringResourceModel.html Met vriendelijke groet, Kind regards, Bas Gooren schreef Gonzalo Aguilar Delgado op 30-1-2014 11:17: Hi Martin

Re: a little question about add(new XComponent(id).setVisible(false))

2013-12-16 Thread Bas Gooren
super.onBeforeRender() at the end of your method. Met vriendelijke groet, Kind regards, Bas Gooren schreef Decebal Suiu op 16-12-2013 16:50: I tested with: public class MyPanel extends Panel { public MyPanel(String id) { super(id); } @Override

Thanks!

2013-12-06 Thread Bas Gooren
, wicket continues to impress me. Even after using it for years in rather big projects. I love the whole less magic is better-attitude and configurability. -- Met vriendelijke groet, Kind regards, Bas Gooren

Re: Optional wrapping H1 tag

2013-11-23 Thread Bas Gooren
body when not on the homepage. setRenderBodyOnly() allows you to control if a tag should be fully rendered, or just it's body. onConfigure() can be overriden to update a components settings whenever it is about to be rendered. Met vriendelijke groet, Kind regards, Bas Gooren schreef Scott

Re: Session invalidation and background thread

2013-11-23 Thread Bas Gooren
can run some code to neatly stop and clean up your threads. Met vriendelijke groet, Kind regards, Bas Gooren schreef Marios Skounakis op 22-11-2013 23:45: Hi all, This is maybe a Spring question but as my app is a wicket app and I use this list regularly and everyone is very helpful I thought

Re: Java EL for Wicket

2013-11-21 Thread Bas Gooren
html files. Now we can have a lot more of the localized stuff directly in the html files. I'll have a look at your code. Met vriendelijke groet, Kind regards, Bas Gooren schreef Steve op 21-11-2013 12:05: This will probably horrify some of the wicket dev team. It's probably not the 'wicket

Re: Wicket Components as Class Members

2013-11-09 Thread Bas Gooren
. when the visibility of one component depends on the state others), and have never encountered any problems. Met vriendelijke groet, Kind regards, Bas Gooren schreef meduolis op 8-11-2013 17:20: The only thing I googled related to final and wicket is this: 7. Java nuances — There are two Java

Re: Component detecting Ajax update

2013-11-04 Thread Bas Gooren
groet, Kind regards, Bas Gooren schreef Martin Grigorov op 4-11-2013 8:27: Hi, You can use org.apache.wicket.ajax.AjaxRequestTarget.IListener#onBeforeRespond(MapString, Component map, AjaxRequestTarget) to be notified before ART starts preparing its XML response. The 'map' contains all already

Re: Displaying ListView After Being Hidden

2013-10-26 Thread Bas Gooren
wicket's ajax library with a hook in the dom. Suppose you don't call that method, there will be no element in the dom which can be replaced. Met vriendelijke groet, Kind regards, Bas Gooren schreef Jared Sol op 25-10-2013 23:03: No problem. I'm not exactly sure. I just know when hiding

Dynamic markup loading caching in base page

2013-10-03 Thread Bas Gooren
(static) child pages? Thanks! -- Met vriendelijke groet, Kind regards, Bas Gooren

Re: Dynamic markup loading caching in base page

2013-10-03 Thread Bas Gooren
vriendelijke groet, Kind regards, Bas Gooren Op 3-10-2013 18:59, schreef Bas Gooren: Hi *, We built an app which has a base page, and several child pages which inherit from the base page. The app is themeable, and one of the requirements of the app is/was that these themes should be manageable

Re: Dynamic markup loading caching in base page

2013-10-03 Thread Bas Gooren
groet, Kind regards, Bas Gooren Op 3-10-2013 19:11, schreef Bas Gooren: Sorry, I forgot to add that this is a wicket 1.5 app. As a quick follow-up, after looking at the InheritedMarkupMarkupLoader, I see that it delegates loading of the parent (base page) markup to the MarkupFactory. I think

  1   2   3   >