change cursor while ajaxRequest

2013-06-11 Thread Christoph.Manig
Hello, there is an AjaxButton in my application. This button starts a sql-statement. I want to change the cursor while this statement is executed. How can I do this with wicket? Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC

Re: Wicket mail and pdf

2013-06-11 Thread Piratenvisier
Does anybody know some example example code to start with concerning email and pdf Thanks in advance Heiner Braun Am 10.06.2013 10:34, schrieb Martin Grigorov: Hi, If you use Wicket 6.7.0+ then you can use ComponentRenderer class to get the markup of any Wicket Page/Panel/Component. Then you

Re: change cursor while ajaxRequest

2013-06-11 Thread Martin Grigorov
Hi, The simplest solution is to use IndicatingAjaxButton. Every Ajax component/behavior can have IAjaxCallListener. You can use it to show an indicator in 'beforeSend' and hide it in 'complete' handler. There are also global Ajax listeners which you can use if you want to do something on every

Re: change cursor while ajaxRequest

2013-06-11 Thread Ernesto Reinaldo Barreiro
Cursor depends on element you are placed at... It might be better to show some spinning wheel or busy indicator. See e.g. 1- https://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html 2-

Re: Wicket mail and pdf

2013-06-11 Thread Martin Grigorov
Hi, At http://www.wicket-library.com/wicket-examples-6.0.x/mailtemplate/?0 you can see an example of rendering the markup for a page, a panel and a resource. At http://markmail.org/message/em4wqtsxhetu4skj you can see how to create PDF out of the produced HTML. On Tue, Jun 11, 2013 at 9:39 AM,

Re: 404 error when calling getResourceSettings().getResourceFinders()

2013-06-11 Thread Joseph Mokenela
I managed to debug, but it looks like the application is only looking for html files in the root. for example if my java file is in *com.foo.Home.java *, and the markup folder is named *markup *inside* webapp *root, it will expect the folder inside *markup/Home.html, *and then throw

Possible optimization of page store manager

2013-06-11 Thread Robin Shine
Hi All, We are using Wicket to develop our web application product (QuickBuild) for six years, and this makes our life a lot easier when comes to maintain our code base due to Wicket's component approach and type safe nature of Java. As our product gets more used in companies, it is not

Re: Possible optimization of page store manager

2013-06-11 Thread Martijn Dashorst
Hi Robin, Thanks for your thoughts! Can you create a JIRA ticket and attach the path to it? The patch didn't make it through to the mailing list, and things tend to get lost anyway due to the amount of traffic on this list. Martijn On Tue, Jun 11, 2013 at 12:23 PM, Robin Shine ro...@pmease.com

Re: Possible optimization of page store manager

2013-06-11 Thread Martin Grigorov
Hi, On Tue, Jun 11, 2013 at 1:23 PM, Robin Shine ro...@pmease.com wrote: Hi All, We are using Wicket to develop our web application product (QuickBuild) for six years, and this makes our life a lot easier when comes to maintain our code base due to Wicket's component approach and type safe

Re: 404 error when calling getResourceSettings().getResourceFinders()

2013-06-11 Thread Martin Grigorov
Hi, It is not very clear what you have and what you expect, so I will explain how WebApplicationPath works. If it doesn't do what you need then you will have to create your own IResourceFinder. The signature is org.apache.wicket.core.util.file.WebApplicationPath#find(Class, String). The first

Re: Wicket context menu component

2013-06-11 Thread bronius
Hi thanks for help! With your explanations and MenuBehavior example I made it work. Now one last thing is to recognize which link was chosen for context menu. I see this documentation about callback: (function) callback Specifies the default callback to be used in case an item does not expose

Problem with AjaxRequestTarget.AbstractListener org.apache.wicket.extensions.markup.html.tree.Tree

2013-06-11 Thread iamrakesh
Hi, We've recently upgraded to v6.5.0 [from 1.4.21]; we've implementation of Tree class which is now deprecated [we're still using the deprecated tree implementation - for now]. Earlier we used a custom WebRequestCycleProcessor and in the respond() method we did some cleanup related to the

Re: Problem with AjaxRequestTarget.AbstractListener org.apache.wicket.extensions.markup.html.tree.Tree

2013-06-11 Thread Martin Grigorov
Hi, So you have registered your AjaxRequestTarget's listener via app.getAjaxRequestTargetListeners().add(...) and this listener is not used when an Ajax link in the tree is cliked, right ? I don't see a reason why this listener to be ignored. Please create a quickstart app and attach it to a

Re: Problem with AjaxRequestTarget.AbstractListener org.apache.wicket.extensions.markup.html.tree.Tree

2013-06-11 Thread iamrakesh
Hi, Yes, we registered the listener like below getAjaxRequestTargetListeners().add(new AjaxRequestTarget.AbstractListener() { @Override public void onBeforeRespond(MapString, Component aMap, AjaxRequestTarget aTarget) { } }); I'll try to create a

Re: Wicket 6 migration (AbstractValidator has been removed)

2013-06-11 Thread hfriederichs
Same here. What should you do? Implement an IValidor? Regards -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-migration-AbstractValidator-has-been-removed-tp4657184p4659386.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Wicket 6 migration (AbstractValidator has been removed)

2013-06-11 Thread Martin Grigorov
Hi, On Tue, Jun 11, 2013 at 5:11 PM, hfriederichs h.friederi...@ohra.nl wrote: Same here. What should you do? Implement an IValidor? AbstractValidator is still in Wicket 6.x but it is deprecated and removed in Wicket 7.x Another inconvenience that I recently found is that

Re: Wicket 6 migration (AbstractValidator has been removed)

2013-06-11 Thread Andrea Del Bene
I've updated my guide removing AbstractValidator and reimplementing a custom validator without this deprecated class. See paragraph 10.2.5 http://code.google.com/p/wicket-guide/ Same here. What should you do? Implement an IValidor? Regards -- View this message in context:

Problem with WiQuery Tab component after page reload

2013-06-11 Thread Stefan Renz
Hi, I've observed the following behavior with WiQuery's Tabs-component: after reloading a page with a tabs component on it (or by navigating the browser history), one can't switch the active tab anymore -- the component always jumps back. The browser makes a new request. Apparently, Wicket loads

Re: Problem with WiQuery Tab component after page reload

2013-06-11 Thread Stefan Renz
I forgot to mention that this happens with an ITabsAjaxEvent handler installed on the Tabs component... so is this a stateful/stateless thing? Bye Stefan Stefan Renz wrote: Hi, I've observed the following behavior with WiQuery's Tabs-component: after reloading a page with a tabs

Re: Problem with WiQuery Tab component after page reload

2013-06-11 Thread Stefan Renz
I forgot to mention that this happens with an ITabsAjaxEvent handler installed on the Tabs component... so is this a stateful/stateless thing? Bye Stefan Stefan Renz wrote: Hi, I've observed the following behavior with WiQuery's Tabs-component: after reloading a page with a tabs

Re: PageableListView with two rows

2013-06-11 Thread Eric Jablow
ListView and its subclasses do not require the use of tables. If another style of markup is useful, use that. You can have a div with nested divs, In fact, you could create a ProfilePanel and use a div for each. On Mon, Jun 10, 2013 at 6:06 PM, Dan Retzlaff dretzl...@gmail.com wrote: Maybe I

Unit testing a repeater or data table by mocking its data

2013-06-11 Thread Paul Bors
Up to recently we got away with running our unit tests fully integrated with the back end db by performing live queries via our DAOs. Due to recent changes to our product schema we run into the inevitable high cost of having to spend too much time on maintain our mocked unit test data straight

Re: Unit testing a repeater or data table by mocking its data

2013-06-11 Thread heikki
dear Paul, I've recently used Mockito and am quite happy with it. You can easily mock any class and make it behave as you need. Best regards Heikki Doeleman On Tue, Jun 11, 2013 at 5:08 PM, Paul Bors p...@bors.ws wrote: Up to recently we got away with running our unit tests fully integrated

Paging and excessive database access (repeaters)

2013-06-11 Thread Daniel Watrous
Hi, I'm following the example in the repeaters section for paging through large amounts of data: http://www.wicket-library.com/wicket-examples-6.0.x/repeater/wicket/bookmarkable/org.apache.wicket.examples.repeater.PagingPage Based on the example and how I've had to implement this there is a lot

disable attribute escaping

2013-06-11 Thread Alfonso Quiroga
Hi, looking at ComponentTag class, method writeOutput()... I suspect that is *impossible* to disable attribute escaping. I'm needing this because I use a read-only textfield, with values like iacute;, etc. where I don't want escaping. Any solution? thanks in advance

RE: Paging and excessive database access (repeaters)

2013-06-11 Thread Paul Bors
Take a look at the Apache Wicket Cookbook: http://www.packtpub.com/article/apache-wicket-displaying-data-using-datatabl e It caches the data for the request. Also others have implemented such caching mechanism: http://opensource.55minutes.com/apidocs/fiftyfive-wicket-all/4.0/fiftyfive/w

Wicket Security examples

2013-06-11 Thread Michael Chandler
Good morning, I'm having a hard time finding some solid example implementations of Wicket Auth/Roles, specifically regarding authentication. I think the documentation on the link below is well spelled out, but it would be nice to see an example of Authentication.

Re: disable attribute escaping

2013-06-11 Thread Martin Grigorov
Hi, textField.setEscapeModelStrings(false) On Tue, Jun 11, 2013 at 7:33 PM, Alfonso Quiroga alfonsose...@gmail.comwrote: Hi, looking at ComponentTag class, method writeOutput()... I suspect that is *impossible* to disable attribute escaping. I'm needing this because I use a read-only

Re: Paging and excessive database access (repeaters)

2013-06-11 Thread Marios Skounakis
This example is not quite optimized. The DetachableContactModel's constructor is public DetachableContactModel(Contact c) { this(c.getId()); } but it should be: public DetachableContactModel(Contact c) { this(c.getId()); setObject(c); } The way it's

Do all POJOs have to implement Serializable?

2013-06-11 Thread Daniel Watrous
Hi, I have an existing application tier that I package as a jar and place in a maven repository. I've been working to expose some of this application through Wicket. It's easy to include it in the pom, but I keep getting: ERROR - JavaSerializer - Error serializing object MyObject

Re: Wicket Security examples

2013-06-11 Thread Martijn Dashorst
http://www.wicket-library.com/wicket-examples/index.html See the authentication-1 through authentication-3 examples. Martijn On Tue, Jun 11, 2013 at 7:18 PM, Michael Chandler michael.chand...@onassignment.com wrote: Good morning, I'm having a hard time finding some solid example

Re: Do all POJOs have to implement Serializable?

2013-06-11 Thread Sven Meier
If your component holds a reference to a pojo (either directly or via a model), then the pojo has to be serializable. If you can let go of the pojo at the end of the request (in your component's #onDetach() or your model's #detach()), then your pojo won't be serialized along with your page.

Re: Wicket context menu component

2013-06-11 Thread Sebastien
Hi, glad to read it is almost working :) getQueryParameterValue(options) does return anything because it's not transmitted server side (due to CallbackParameter.context(options), which does not pass the parameter to the ajax callback). But even you did transmit it, you probably got an [object]

RE: Wicket Security examples

2013-06-11 Thread Michael Chandler
Not sure how I missed that, thanks Martijn. -Original Message- From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com] Sent: Tuesday, June 11, 2013 12:52 PM To: users@wicket.apache.org Subject: Re: Wicket Security examples http://www.wicket-library.com/wicket-examples/index.html See

Re: Paging and excessive database access (repeaters)

2013-06-11 Thread Daniel Watrous
So what I'm hearing is that I have to use the Detachable model, but that I can build in some caching to prevent unnecessary datastore access. Thanks. On Tue, Jun 11, 2013 at 1:11 PM, Marios Skounakis msc...@gmail.com wrote: This example is not quite optimized. The DetachableContactModel's

Re: Possible optimization of page store manager

2013-06-11 Thread Robin Shine
Hi Martijn, Yes I will if the modification is valid. Right now Martin pointed to me that non-ajax action link also cause version changes, and my previous test does not cover this as I only updated model in my action link so version is not changed. I will further investigate this. Regards

Re: Possible optimization of page store manager

2013-06-11 Thread Robin Shine
Hi Martin, Thanks for your comment. My previous test of non-ajax action link only involves model change so version is not changed. If I replace parts of the page or call page.dirty() directly, the version does changed, and this makes my modfication no longer valid as I in this case Wicket

bug in TableComponentAsXlsHandler

2013-06-11 Thread grazia
I am using the wicket poi api to generate an excel file from a PageableListView. I just run into a bug in lines 67-76 of TableComponentAsXlsHandler.java: cellExplorer becomes null already at the second iteration of the for loop (see below) TableParser parser = new TableParser(newSheet(),

Re: wicket-atmosphere issues

2013-06-11 Thread Dan Retzlaff
On Tue, Mar 26, 2013 at 4:31 AM, Emond Papegaaij emond.papega...@topicus.nl wrote: On Monday 25 March 2013 00:59:30 Leonid Bogdanov wrote: 3) In my app Apache Shiro framework is integrated via a plugin adapted from fiftyfive-wicket-shiro project. User credentials are checked in an AJAX