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

Re: Google Maps refuses access

2013-09-14 Thread Bas Gooren
I have no idea, as I have not had this problem myself. You should call or e-mail google support about this. Met vriendelijke groet, Kind regards, Bas Gooren Op 14-9-2013 11:44, schreef Piratenvisier: How long am I blocked. Do I have to do anything, or does the blockage go away after a few

Re: Google Maps refuses access

2013-09-12 Thread Bas Gooren
Hi, You're probably hitting a usage limit: https://developers.google.com/maps/documentation/business/articles/usage_limits?hl=nl#http403 Met vriendelijke groet, Kind regards, Bas Gooren Op 12-9-2013 8:41, schreef Piratenvisier: I am using google maps embeded in my 1.5 wicket application

Re: p tags!

2013-09-09 Thread Bas Gooren
were wrapped in p-tags does sound like you may have divs inside p tags. Met vriendelijke groet, Kind regards, Bas Gooren Op 9-9-2013 4:28, schreef Colin Rogers: Wicketeers! I have an odd bug, that has been resolved, but I it doesn't explain what and why the issue existed - and with a view

Re: Use Wicket as a REST API

2013-08-14 Thread Bas Gooren
/...) handling. Furthermore you can override sensible methods like doGet or doPost which clearly communicate intent. Met vriendelijke groet, Kind regards, Bas Gooren Op 14-8-2013 20:32, schreef robianmcd: I found that this works but I'm not sure if there is a better way of doing this: @MountPath

Re: How to call Java Function from JavaScript

2013-07-03 Thread Bas Gooren
, Kind regards, Bas Gooren Op 3-7-2013 19:09, schreef Andun Sameera: Hi All, I have looked in to this topic in many places and found some ways. In this particular scenario, I have used https://cwiki.apache.org/confluence/display/WICKET/Calling+Wicket+from+Javascriptarticle as the reference. What I

Re: Injecting DB service results in IllegalStateException: EntityManager is closed

2013-06-28 Thread Bas Gooren
Gooren Op 28-6-2013 10:04, schreef Andreas Lundblad: On Thu, Jun 27, 2013 at 11:27 PM, Bas Gooren b...@iswd.nl wrote: PS See https://code.google.com/p/google-guice/wiki/InjectingProviders (header Providers for Mixing Scopes). Met vriendelijke groet, Kind regards, Bas Gooren A (possibly stupid

Re: Injecting DB service results in IllegalStateException: EntityManager is closed

2013-06-27 Thread Bas Gooren
, there is probably another problem with your code. Can you show us some relevant parts of your code, e.g. the validator and the page which contains the validator? Met vriendelijke groet, Kind regards, Bas Gooren Op 26-6-2013 22:32, schreef Andreas Lundblad: I've just started using Wicket (I'm

Re: Injecting DB service results in IllegalStateException: EntityManager is closed

2013-06-27 Thread Bas Gooren
regards, Bas Gooren Op 27-6-2013 9:10, schreef Martin Grigorov: Hi, I'm not sure whether this is the best solution but you can inject a Provider: @Inject private ProviderEntityManager em; ... em.get().find(...); On Thu, Jun 27, 2013 at 9:36 AM, Bas Gooren b...@iswd.nl wrote: Hi, Looking

Re: Injecting DB service results in IllegalStateException: EntityManager is closed

2013-06-27 Thread Bas Gooren
regards, Bas Gooren Op 27-6-2013 14:25, schreef Martin Grigorov: Here are some discussions: http://stackoverflow.com/questions/10431640/guice-persist-attempting-to-execute-an-operation-on-a-closed-entitymanager http://stackoverflow.com/questions/14585505/jpa-guice-persist-permanently-opened-connection

Re: Injecting DB service results in IllegalStateException: EntityManager is closed

2013-06-27 Thread Bas Gooren
to ProviderEntityManager while in the same request will yield the exact same EntityManager instance. Met vriendelijke groet, Kind regards, Bas Gooren Op 27-6-2013 22:03, schreef Andreas Lundblad: On Thu, Jun 27, 2013 at 3:59 PM, Bas Gooren b...@iswd.nl wrote: I'm not the one who posed the original question

Re: Injecting DB service results in IllegalStateException: EntityManager is closed

2013-06-27 Thread Bas Gooren
PS See https://code.google.com/p/google-guice/wiki/InjectingProviders (header Providers for Mixing Scopes). Met vriendelijke groet, Kind regards, Bas Gooren Op 27-6-2013 22:03, schreef Andreas Lundblad: On Thu, Jun 27, 2013 at 3:59 PM, Bas Gooren b...@iswd.nl wrote: I'm not the one who

Re: Injecting DB service results in IllegalStateException: EntityManager is closed

2013-06-27 Thread Bas Gooren
(which is used for injected interfaces). The proxy is replaced on serialization. Somehow I always thought the proxies were also detached when the page is detach()-ed. Guess not :-) Met vriendelijke groet, Kind regards, Bas Gooren Op 27-6-2013 23:37, schreef Andreas Lundblad: On Thu, Jun 27

Re: Multitenant app: what's a good place to perform account lookup?

2013-06-26 Thread Bas Gooren
Martin, Thanks, that's another possible solution indeed. Met vriendelijke groet, Kind regards, Bas Gooren Op 26-6-2013 9:29, schreef Martin Grigorov: Hi, I think you can use custom root request mapper for this too. See https://github.com/apache/wicket/blob/master/wicket-examples/src/main

Multitenant app: what's a good place to perform account lookup?

2013-06-25 Thread Bas Gooren
). Is there a better/cleaner way to handle such concerns? -- Met vriendelijke groet, Kind regards, Bas Gooren

Re: Model performance question

2013-06-25 Thread Bas Gooren
anyway, to get and set its value. Met vriendelijke groet, Kind regards, Bas Gooren Op 25-6-2013 16:20, schreef gmparker2000: Considering two alternative ways to set a model: ... final CompoundPropertyModel myModel = new CompoundPropertyModel(myObject); control1

Re: DataTable and unserializable data

2013-06-22 Thread Bas Gooren
by another wicket user: http://wicket.apache.org/learn/books/freeguide.html Met vriendelijke groet, Kind regards, Bas Gooren Op 21-6-2013 18:48, schreef Baptiste75: A thousand thanks, Sebastian! Your sample did it! Juste a last question, out of curiosity (if you have a clue): Did

Re: DataTable and unserializable data

2013-06-21 Thread Bas Gooren
; } load() { return this.contactId != null ? new ContactDao().find(contactId) : null; } } Met vriendelijke groet, Kind regards, Bas Gooren Op 21-6-2013 12:16, schreef Baptiste75: Is it possible to use an implementation of DataTable (like AjaxFallbackDefaultDataTable) with unserializable data? My

Re: user interface design: if any error, textbox channge to red ... ...

2013-06-14 Thread Bas Gooren
if the component has errors, override method isEnabled on the behavior, cast the component to a FormComponent and return !formComponent.isValid(). Met vriendelijke groet, Kind regards, Bas Gooren Op 14-6-2013 15:03, schreef always_rick: I am able to do it with AttributeModifier.append( class, error

Custom markup cache key in hierarchy

2013-06-05 Thread Bas Gooren
for cleaning up the markup cache. It's doable (keep track of all cache keys generated for a theme, and remove all of them from the cache), but before we proceed I'd like some feedback from others: is this the way to go? -- Met vriendelijke groet, Kind regards, Bas Gooren

Re: Session creation with stateless pages in Chrome

2013-05-29 Thread Bas Gooren
if that is not called, there's another piece of code outside wicket which binds the session. Do you have any other servlets or servlet filters in place? How do you know a wicket session is bound? And how are you checking if Session.bind() is called? Met vriendelijke groet, Kind regards, Bas Gooren Op 29-5-2013 8

Re: Session creation with stateless pages in Chrome

2013-05-28 Thread Bas Gooren
Have you checked if Chrome is prefetching other pages (which may be stateful)? Met vriendelijke groet, Kind regards, Bas Gooren Op 28-5-2013 12:14, schreef ChambreNoire: Hello folks, I have rendered all of my pre-login wicket pages fully stateless. I have just noticed that while no wicket

Re: Session creation with stateless pages in Chrome

2013-05-28 Thread Bas Gooren
Simply by having a look at your tomcat (or reverse proxy) access log? Of course this is only needed if the page you are hitting has links to other, stateful pages. You can also set a breakpoint in Session.bind() to see when it's called. Met vriendelijke groet, Kind regards, Bas Gooren Op 28

Re: Attaching Ajax Function to Java Method

2013-05-14 Thread Bas Gooren
/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/AbstractSelect2Choice.java Met vriendelijke groet, Kind regards, Bas Gooren Op 14-5-2013 22:36, schreef William Speirs: I'm trying to create a typeahead component for Wicket that uses Bootstrap's

Re: Mount CSS resources in jar module

2013-05-03 Thread Bas Gooren
Hi, We've written a (wicket 1.5) class for this: ClassResourcesMapper. It allows you to map all resources under a class (the scope) at a fixed url. I've put it on pastebin: http://pastebin.com/0vGHCRMs Met vriendelijke groet, Kind regards, Bas Gooren Op 3-5-2013 9:02, schreef Herman Suijs

Re: Session messages

2013-04-30 Thread Bas Gooren
is rendered in the same request cycle as the request. Met vriendelijke groet, Kind regards, Bas Gooren Op 30-4-2013 17:44, schreef Bertrand Guay-Paquet: Hi, This is not the behavior I'm getting. I created a stateless page with this: add(new FencedFeedbackPanel(feedback)); add(new

Re: User data during request of AuthenticatedWebSession

2013-04-24 Thread Bas Gooren
instanceof IPageClassRequestHandler) { // This is a request to a page, or a component on a page } } Met vriendelijke groet, Kind regards, Bas Gooren Op 24-4-2013 22:34, schreef Andre Schütz: Hello, thank you for the answers. I created my own RequestCycleListener and have another

Re: Does getRenderBodyOnly need to be final?

2013-04-01 Thread Bas Gooren
Since you have a base panel class, why not call setRenderBodyOnly() in onInitialize or onConfigure based whatever logic you planned to put in getRenderBodyOnly()? Met vriendelijke groet, Kind regards, Bas Gooren Op 1-4-2013 19:20, schreef Chris Colman: I've come across a HTML/CSS template

Re: Tracking performance issues on requests best practices

2013-04-01 Thread Bas Gooren
very easy to set up) I've never looked back. In case you want a free solution: run your app through a profiler to see where most time per request is spent. Met vriendelijke groet, Kind regards, Bas Gooren Op 1-4-2013 21:45, schreef Serban.Balamaci: Hello guys, I'm trying to have a finer

Re: wicket:for behavior

2013-03-14 Thread Bas Gooren
effect during that render. The solution is quite simple: wrap the input in the label: label wicket:for=id3 input wicket:id=id3 ... wicket:message .../ /label In this scenario the wicket:for is always handled before the input. Met vriendelijke groet, Kind regards, Bas Gooren Op 14-3-2013

Re: Page Hierachy and Packages

2013-03-10 Thread Bas Gooren
outside of wicket. Met vriendelijke groet, Kind regards, Bas Gooren Op 8-3-2013 18:02, schreef David Beer: Hi Sven Will try and be more clear. I have fixed the css styling thanks to your suggestion on moving the link out of wicket:head. My question is that if I am navigating From my

Re: Forms do not reset after submit

2013-02-19 Thread Bas Gooren
its data. E.g. your EntityFactory does not always return a fresh instance. So the first question is: how do you link to your Add a record page? Met vriendelijke groet, Kind regards, Bas Gooren Op 19-2-2013 17:12, schreef Michael Chandler: Good morning all! I thought I had a good handle

Re: Forms do not reset after submit

2013-02-19 Thread Bas Gooren
Mike, That looks normal; you are creating a new JobAddPage for every click, so that's not the problem. Can you share some code from the JobAddPage? And is the EntityFactory class something you've built yourself? Met vriendelijke groet, Kind regards, Bas Gooren Op 19-2-2013 18:37, schreef

Re: Request scoped variables, in ajaxrequesttarget

2013-02-13 Thread Bas Gooren
Well, it's a lot simpler than that. Simply call rc.setMetaData( METAKEY_MYEVENTDATA, this ); Wicket handles the actual storage details (like storing your data in a MetaDataEntry array etc). Nothing you need to think about :-) Met vriendelijke groet, Kind regards, Bas Gooren Op 13-2-2013 15

Re: Dynamic Components

2013-02-12 Thread Bas Gooren
Sure. After my original post we simplified the code a bit. This is the latest version we use in production. http://pastebin.com/WnxNVj2n This time I've set the paste to never expire. Met vriendelijke groet, Kind regards, Bas Gooren Op 12-2-2013 20:57, schreef Decebal Suiu: Hi Can I see

Re: Eclipse JRE 1.5

2013-02-09 Thread Bas Gooren
slf4j is a project which allows a project to implement logging, and the user of that project to decide which actual logging implementation to use. See http://slf4j.org/ Met vriendelijke groet, Kind regards, Bas Gooren Op 9-2-2013 14:59, schreef Stephen Walsh: Looked like there were some

Re: Wicket 6.5 CompoundPropertyModel constructor ambiguity

2013-01-25 Thread Bas Gooren
case it is both, and you tell the CPM (through the generic type) that you will provide a type literal. Does your CPM have to be of type ReportWebModel? Met vriendelijke groet, Kind regards, Bas Gooren Op 25-1-2013 12:02, schreef Pieter Claassen: When I try to create the following model after

Re: AjaxDownload file download example - how to delete serverside file after download

2013-01-23 Thread Bas Gooren
, Kind regards, Bas Gooren Op 23-1-2013 15:26, schreef RichLiv: I followed the example of this snippet https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html which very neatly shows how to download a file using AJAX. However, I can't seem to get the server file to delete

Re: Close tag not found while it's there

2013-01-23 Thread Bas Gooren
Is PlaceholderPanel a component defined by your application? It does not allow nested wicket components. Met vriendelijke groet, Kind regards, Bas Gooren Op 23-1-2013 20:03, schreef Thies Edeling: With Wicket 6.5.0 I get a close tag not found error in one of my panels (worked for 1.4.x

Re: find html tag

2013-01-23 Thread Bas Gooren
regards, Bas Gooren Op 23-1-2013 20:45, schreef Michael Jaruska: Hi, is there a way I can find specific html tag in markup? I have this html structure: ul class=mymenu li a href=./mypage.html?cid=menumenu/a ul li a href=./mypage.html?cid=menu/submenusubmenu/a ul li

Re: find html tag

2013-01-23 Thread Bas Gooren
and willing to switch to a component tree? Met vriendelijke groet, Kind regards, Bas Gooren Op 23-1-2013 20:53, schreef Michael Jaruska: Problem is that uls and lis (let's call whole structure menu) is static html code. On 23.1.2013 20:50, Bas Gooren wrote: Hi! What you want to accomplish (e.g

Re: find html tag

2013-01-23 Thread Bas Gooren
Sorry, I read too quickly. What are you trying to accomplish? Let's say you are able to find the appropriate html tag, what do you want to do with it? Met vriendelijke groet, Kind regards, Bas Gooren Op 23-1-2013 21:01, schreef Michael Jaruska: And question is not how can I change html

Re: find html tag

2013-01-23 Thread Bas Gooren
setEscapeModelStrings(false) set. Met vriendelijke groet, Kind regards, Bas Gooren Op 23-1-2013 21:11, schreef Michael Jaruska: I need to find the parent li tag of the anchor user clicks - I now from PageParameters which anchor has been clicked. Then I will put into this parent li specific

Re: Create/Edit domain object data

2012-12-28 Thread Bas Gooren
regards, Bas Gooren Op 7-12-2012 19:14, schreef Nick Pratt: Im looking for recommendations on how to work with Form data and a JPA/Hibernate model, specifically around creating and editing domain data. I have a JPA backed domain model, and I want to create a page/panel/form that allows entry

Re: Parsing company id from url

2012-12-24 Thread Bas Gooren
set up a catch-all virtual host on apache (reverse proxy) which forwards all traffic to our wicket app. Met vriendelijke groet, Kind regards, Bas Gooren Op 23-12-2012 23:34, schreef Sven Meier: Hi Josh, LocaleFirstMapper from wicket-examples seems like something you're looking

Is it possible to force a single incoming request to be parsed as iso-8859-1?

2012-12-14 Thread Bas Gooren
already called ServletWebRequest#isAjax(), and thus post parameters have already been parsed. Unfortunately, I cannot re-interpret the string as latin1, as I don't have access to the original byte[] data. FYI: Wicket 1.5 -- Met vriendelijke groet, Kind regards, Bas Gooren

Re: Is it possible to force a single incoming request to be parsed as iso-8859-1?

2012-12-14 Thread Bas Gooren
Thanks! Since we're using guice-servlets that is a rather easy and elegant solution. Met vriendelijke groet, Kind regards, Bas Gooren Op 14-12-2012 12:57, schreef Martijn Dashorst: Use a servlet filter? Martijn On Fri, Dec 14, 2012 at 12:49 PM, Bas Gooren b...@iswd.nl wrote: Hi *, We're

Re: Dynamic Components

2012-11-28 Thread Bas Gooren
it. onInitialize() and ajax calls in the dynamically injected components work as expected for us. We use it in our (wicket 1.5) cms to dynamically inject editors and popups. Met vriendelijke groet, Kind regards, Bas Gooren Op 28-11-2012 21:00, schreef Nick Pratt: Martin The approach of adding

Re: File download through form submit feedback messages

2012-11-22 Thread Bas Gooren
regards, Bas Gooren Op 22-11-2012 12:51, schreef juhar: Hi, I have a page with a form on it. After the user has submitted the form successfully (all the fields have validated ok), the server creates a report-file based on the form values. The file is not created as physical file on the server

Re: String Resources associated with entity classes

2012-10-27 Thread Bas Gooren
resource loader, which takes the first part of the resource key, and checks if there is a matching entity with associated property file. Then use the other parts of the property key for the actual lookup in the property file. Met vriendelijke groet, Kind regards, Bas Gooren Op 27-10-2012 18:24

Re: Mount Page

2012-10-24 Thread Bas Gooren
There is nothing stopping you from calling getApplication() on any component, and casting that to a WebApplication. Using that webapp reference you can easily mount/unmount pages. Met vriendelijke groet, Kind regards, Bas Gooren Op 24-10-2012 17:31, schreef dpmihai: Can a page be mounted

Re: Wicket plugin architecture

2012-10-18 Thread Bas Gooren
regards, Bas Gooren Op 18-10-2012 16:35, schreef Michal Wegrzyn: In Initializer implementation I do something like: PackageResourceReference logoReference = new PackageResourceReference( MyInitializer.class, img/custom_header_logo.png ); WebApplication.get

Re: Add an invisible component to an AjaxRequestTarget target

2012-10-17 Thread Bas Gooren
since it's not in the markup. Met vriendelijke groet, Kind regards, Bas Gooren Op 17-10-2012 9:52, schreef Thijs: On 17-10-2012 9:40, Martin Grigorov wrote: Hi, On Wed, Oct 17, 2012 at 9:27 AM, Thijs vonk.th...@gmail.com wrote: Revisiting this. I'm still having some troubles with this. Say

Re: Add an invisible component to an AjaxRequestTarget target

2012-10-17 Thread Bas Gooren
that needs to repaint the component, it still won't work as there is no markup placeholder. So call setOutputMarkupPlaceholderTag(true) when you create the component :-) Met vriendelijke groet, Kind regards, Bas Gooren Op 17-10-2012 9:57, schreef Martin Grigorov: On Wed, Oct 17, 2012 at 9

Re: Wicket and file upload with blueimp jquery file upload

2012-10-16 Thread Bas Gooren
size which evicts old entries on overflow. Met vriendelijke groet, Kind regards, Bas Gooren Op 16-10-2012 12:59, schreef heapifyman: Not sure if I understand. As far as I got it, the upload plugin requires some web service that accepts POST and DELETE requests to add/remove uploaded files. Doing

Re: Wicket and file upload with blueimp jquery file upload

2012-10-16 Thread Bas Gooren
vriendelijke groet, Kind regards, Bas Gooren Op 16-10-2012 19:09, schreef heapifyman: Thanks. Would you mind sharing the mounted resource's code? I'm not completely sure how to implement that. 2012/10/16 Bas Gooren b...@iswd.nl Hi! We use a different uploader (uploadify), but the basics

Wicket 1.5 alternative to 1.4 shared resources class aliases

2012-10-10 Thread Bas Gooren
with. I've put it on pastebin for those interested: http://pastebin.com/iSssGHrE Use it like so: (in app init): mount( new ClassResourcesMapper(/res/classX, ClassX.class ) ); -- Met vriendelijke groet, Kind regards, Bas Gooren

Re: Login page stateless??

2012-04-24 Thread Bas Gooren
It simply means there is another component on your login page which makes the page stateful. To find out which one, override onBeforeRender() in the login page (log is a slf4j Logger): @Override protected void onBeforeRender() { super.onBeforeRender(); log.debug(

Re: Page Expired with Google Analytics Tracking Code

2012-04-21 Thread Bas Gooren
Hi Andre, Without a quickstart it's nearly impossible to help. Nevertheless, as before, I expect this has to do with either a model that loses track of it's data (could be a serialization issue?), or incorrect usage of said model. When you say that after clicking a link in the navigator the

Re: Page Expired with Google Analytics Tracking Code

2012-04-16 Thread Bas Gooren
Hi, Can you build a small quickstart so I can have a look at things when they are not working? So just the bare minimum where it's not working: your page that is not working with a dummy model (e.g. with hardcoded results). Bas Op 16-4-2012 20:50, schreef Andre Schütz: Hi, I tried with

Re: Page Expired with Google Analytics Tracking Code

2012-04-13 Thread Bas Gooren
Hi, What happens if you change that to: @Override public void renderHead(HeaderResponse response) { super.renderHead(response); String script = var _gaq = _gaq || ...; response.renderJavaScript(script, null); } ? (note that I added a call to super.renderHead()); Bas Op 11-4-2012 23:08,

Re: Page Expired with Google Analytics Tracking Code

2012-04-11 Thread Bas Gooren
Well, for starters I wonder why you are using multiple LoadableDetachableModels in a Vector? What we do 99% of the time is this: - Wrap the entire resultset in a LDM - Feed that LDM to a ListView or a variant (we have a custom RepeatingView for paged database listings) - Use PropertyModels

Re: Page Expired with Google Analytics Tracking Code

2012-04-10 Thread Bas Gooren
Hi, It sounds a lot like you are not using models properly. E.g. your results method parameter has a length which overflows the page size (and thus the pagingnavigator renders page links), but on a second request the contents of results are null/empty? Try debugging

Re: Page Expired with Google Analytics Tracking Code

2012-04-07 Thread Bas Gooren
Hi, I would suggest the following: 1) add a very simple test page: TestPage extends WebPage, which only has the search form on it (nothing else!) 2) see if that works multiple times in a row 3) if that works, add your google analytics code 4) repeat steps 1-2 In other words: eliminitate all

Re: Page Expired with Google Analytics Tracking Code

2012-04-07 Thread Bas Gooren
Yes. Op 7-4-2012 20:37, schreef Andre Schütz: Thank you for the answer, I will try your 4 steps. Just as information. When you say, that I can make the form stateless, do you talk about the StatelessForm class? Andre On Sat, 07 Apr 2012 16:06:15 +0200 Bas Goorenb...@iswd.nl wrote: Hi, I

Re: Page Expired with Google Analytics Tracking Code

2012-04-06 Thread Bas Gooren
Hi Andre, No, we have been using the tracking code for years with wicket (1.3, 1.4 and 1.5) with 0 issues. I'm certain your Page expired error is caused by something else. From your description it sounds like your search results page is stateful, but no longer available when you perform a

Re: After upgrading from wicket 1.5.0 to 1.5.1+ we have a simple problem

2012-03-26 Thread Bas Gooren
Hi, Op 25-3-2012 18:59, schreef Martin Grigorov: On Sun, Mar 25, 2012 at 7:19 PM, Bas Goorenb...@iswd.nl wrote: https://issues.apache.org/jira/browse/WICKET-4468 Thanks! We will consider it. Ok: here's whats happening: - A request comes in for /login - WebPageRenderer:264-266 stores the

Re: After upgrading from wicket 1.5.0 to 1.5.1+ we have a simple problem

2012-03-25 Thread Bas Gooren
Hi, Op 25-3-2012 17:44, schreef Martin Grigorov: Hi, On Sat, Mar 24, 2012 at 10:44 PM, Bas Goorenb...@iswd.nl wrote: After more debugging, I learned some new things about wicket. It appears that an invisible stateful link makes a page stateful. The base page for this application contains a

Re: After upgrading from wicket 1.5.0 to 1.5.1+ we have a simple problem

2012-03-24 Thread Bas Gooren
Martin, Thanks for your pointer. This is indeed the reason for the loop: no buffered response is found. Something must have changed between 1.5.0 and 1.5.1 regarding (session) cookies and continueToOriginalDestination(), since it is no longer setting a session cookie. For all our

Re: After upgrading from wicket 1.5.0 to 1.5.1+ we have a simple problem

2012-03-24 Thread Bas Gooren
After more debugging, I learned some new things about wicket. It appears that an invisible stateful link makes a page stateful. The base page for this application contains a username label + logout link (stateful), which are in a WebMarkupContainer which is invisible if the user is not logged

Re: [1.5] unwanted page refresh

2012-03-21 Thread Bas Gooren
Hi, Sounds like you have a redirect somewhere. Do you have any components on the page which at some point in time call setResponsePage or an equivalent? Bas Op 21-3-2012 12:49, schreef Pierre Goupil: Good afternoon, I have a couple of ModalWindow s in my code that respond to closing using

After upgrading from wicket 1.5.0 to 1.5.1+ we have a simple problem

2012-03-21 Thread Bas Gooren
We have the following simple setup: BasePage checks if user is logged in, if not (and this is not the LoginPage), RestartResponseException(LoginPage.class); LoginPage extends BasePage; contains a form to login; The application runs in the root context. Now on 1.5.0 this works like a charm;

Re: java.util.Date cannot be cast to java.sql.Date

2012-03-19 Thread Bas Gooren
Declare the dob field as: @Temporal(TemporalType.Date) private (java.util.)Date dob; Op 19-3-2012 14:02, schreef Alok Pathak: I have an application in Wicket 1.4, where i am using JPA. I declared an entity (Customer) with property *dob* of type *java.sql.Date*. Now i want to migrate that

Re: Adding a header contribution as the first in the head tag

2012-03-02 Thread Bas Gooren
Josh, You can use an application-wide IResponseFilter for this. Have a look at how ServerHostNameAndTimeFilter (in wicket-examples (*)) does it. *) E.g. look at

Re: 1.5.4 error handling with web.xml error-page issue

2012-02-17 Thread Bas Gooren
It's documented here: https://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html Op 17-2-2012 2:39, schreef pkc: I have no idea if this is documented and why it is needed but it works after changing web.xml to filter-mapping filter-namewicket/filter-name

Architectural question

2012-02-12 Thread Bas Gooren
Hi All, I have an architectural question about wicket, DDD and the service layer. Let's say we have a simple JPA entity (Customer), and a few simple CRUDL screens. For database access, we have a DAO layer (CustomerDao) which delegates to an EntityManager, and provides some convenience methods

Re: Architectural question

2012-02-12 Thread Bas Gooren
Ok, so you mean detaching entities when returning them to the view layer (wicket)? How do you propose updating the underlying entities? Send the detached entities back to the service layer and copying their changes to attached entities? Or ...? Op 12-2-2012 14:22, schreef Martin Makundi:

Re: Architectural question

2012-02-12 Thread Bas Gooren
Martin, Ok, and do you perform all such copying manually or do you use something automated for that? (Or simply a JPA merge?) Op 12-2-2012 16:22, schreef Martin Makundi: Yeah.. what we do is we detach entities when loading from service layer to view layer and when user is ready to commit we

<    1   2   3   >