Re: Problem with Crypted URL

2010-05-27 Thread kugaprakash
We are using Wicket 1.3.5 (Unable to upgrade to latest Wicket release, due to a CSRF fix needed for a previous release build) and I am doing the following: protected IRequestCodingStrategy newRequestCodingStrategy(){ return new CryptedUrlWebRequestCodingStrategy(new

Re: [PROPOSAL] Application.runAs() Method...

2010-05-27 Thread Emond Papegaaij
In our application we use quartz for long running jobs. These threads have access to the application context, which contains the wicket application. In the execute method, we locate the application and use Application.set and Application.unset to set and remove the application. This is,

Re: Dataview linkedline

2010-05-27 Thread midikem
Hi again, i am a little bit confused. columns.add(new AbstractColumnTest(null, null) { private static final long serialVersionUID = 1L; public void populateItem(ItemICellPopulatorTest item, String componentId, IModelTest model) { item.add(new LinkTest(componentId, model) {

Re: Dataview linkedline

2010-05-27 Thread Sven Meier
Override DataTable#newRowItem(): @Override protected ItemFoo newRowItem(String id, int index, final IModelFoo model) { ItemFoo item = super.newRowItem(id, index, model); item.add(new AjaxEventBehavior(onclick) {

Re: [PROPOSAL] Application.runAs() Method...

2010-05-27 Thread James Carman
On Thu, May 27, 2010 at 2:34 AM, Emond Papegaaij emond.papega...@topicus.nl wrote: In our application we use quartz for long running jobs. These threads have access to the application context, which contains the wicket application. In the execute method, we locate the application and use

NonCachingImage and xhtmlRenderer

2010-05-27 Thread Xavier López
Hi, I'm trying to use a xhtml to pdf renderer (https://xhtmlrenderer.dev.goog_1283895835 java.net/) in order to print out a page to PDF. The page contains a NonCachingImage, with a barcode, in such a way that the image gets the following HTML : ?xml version=1.0 encoding=UTF-8? !DOCTYPE html

Re: [PROPOSAL] Application.runAs() Method...

2010-05-27 Thread Emond Papegaaij
On Thursday 27 May 2010 12:41:10 James Carman wrote: On Thu, May 27, 2010 at 2:34 AM, Emond Papegaaij emond.papega...@topicus.nl wrote: In our application we use quartz for long running jobs. These threads have access to the application context, which contains the wicket application. In

Re: NonCachingImage and xhtmlRenderer

2010-05-27 Thread Xavier López
Sorry for double-posting, I'm attaching some of the code I'm using: I havent't mentioned other static styling images are rendering correctly. byte[] imageByteArray = generateBarCodeImage(...) ByteArrayResource resource = new ByteArrayResource(image/jpeg, imageByteArray); Image barcodeImage=

Re: [PROPOSAL] Application.runAs() Method...

2010-05-27 Thread Alex Objelean
Hi James! It would be a good idea to add this feature to next release, since the Application won't be stored in InheritableThreadLocal anymore. Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PROPOSAL-Application-runAs-Method-tp2230030p2233184.html Sent from

resource model partially resolve key

2010-05-27 Thread Fernando Wermus
I got this message, [Warning: String resource for 'Define el recorrido que harán' not found] where '*Define el recorrido que harán*' is the string I do want to show instead of *[Warning: String resource for 'Define el recorrido que harán' not found]*. It seems that wicket is trying to reevaluate

Re: resource model partially resolve key

2010-05-27 Thread Igor Vaynberg
how is the TituloReadOnlyModel used? -igor On Thu, May 27, 2010 at 8:22 AM, Fernando Wermus fernando.wer...@gmail.com wrote: I got this message, [Warning: String resource for 'Define el recorrido que harán' not found] where '*Define el recorrido que harán*' is the string I do want to show

Force toolbar to update on page refresh

2010-05-27 Thread sahuja
Hi, I have a DefaultDataTable with a BottomToolbar that I wrote to display the sum of amounts in each column of the table. If the underlying data changes, and I press F5 to refresh the browser page, the table reflects the data change, but the toolbar is not refreshed and continues to display

Re: Force toolbar to update on page refresh

2010-05-27 Thread Igor Vaynberg
the toolbar does refetch the data on every request, the problem is you are probably caching the data via an improper use of models. -igor On Thu, May 27, 2010 at 8:41 AM, sahuja sadhna.ah...@nisc.coop wrote: Hi, I have a DefaultDataTable with a BottomToolbar that I wrote to display the sum

Re: NonCachingImage and xhtmlRenderer

2010-05-27 Thread Xavier López
Finally, I've managed to dig through the XHtmlRenderer's code, and the IText dependencies inside, and have encountered the root of the issue : The problem is raised by the IText Image resource class, which tries to detect the format of the image by peeking at the first bytes of the stream.

Re: Force toolbar to update on page refresh

2010-05-27 Thread sahuja
Thanks, Igor. Copied below is the implementation for my toolbar. Could you please take a look and see if you can spot a problem with it? public class TotalsToolbar extends AbstractToolbar { public TotalsToolbar(final DataTable table, final IDataProvider dataProvider) {

How to test a link in wicket:links

2010-05-27 Thread cat-in-a-hat
Hi, If I use wicket:link around a link, how can I click on it with WicketTester.clickLink()? It don't have a wicket:id so what would the path be? Thanks/Peter -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-test-a-link-in-wicket-links-tp2233376p2233376.html

Re: Force toolbar to update on page refresh

2010-05-27 Thread Jeremy Thomerson
On Thu, May 27, 2010 at 10:53 AM, sahuja sadhna.ah...@nisc.coop wrote: Thanks, Igor. Copied below is the implementation for my toolbar. Could you please take a look and see if you can spot a problem with it? public class TotalsToolbar extends AbstractToolbar { public

Jetty, HSQLDB and automatic scanning

2010-05-27 Thread Jakub Skoczen
Hi Everyone, First of all - this question is not directly concerned with Wicket, sorry for that. But, I did came across this problem when developing a small Wicket web app, so I thought someone else here may have had a similar issue. So here it is: I got tired with the slow write/compile/deploy

Re: Force toolbar to update on page refresh

2010-05-27 Thread Igor Vaynberg
you dont need to use models per se as long as you are rebuilding your component hierarchy on every request. RepeatingView does not do that. so either use models like Jeremy said, or rebuild the component hierarchy using a RefreshingView or a ListView -igor On Thu, May 27, 2010 at 9:10 AM, Jeremy

Re: Jetty, HSQLDB and automatic scanning

2010-05-27 Thread Igor Vaynberg
you can add a servlet context listener that looks for the lock file and nukes it. alternatively you can use the Start class that comes with wicket quickstart archetype/project that does what mvn jetty:run but with the added benefit of allowing hotswapping, and in that class you can add the code

Re: [PROPOSAL] Application.runAs() Method...

2010-05-27 Thread Sven Meier
Hi all, I don't think the proposed method is a good idea. Why add a method to a framework which is not used *by* the framework? Why can't you just create your own static helper method storing the application in an inheritable/non-inheritable thread local? Why would anyone want to pass a web

Basic page routing

2010-05-27 Thread Mike Quilleash
Hi all, I'm a new user to wicket. I'd heard some good things about it so I thought I'd try it out for a mini-web project I have. Using Wicket 1.4.18 and Java 6. I have an existing application using Spring (@Autowired everywhere) and I want to use some of the existing spring beans. In the

Re: Force toolbar to update on page refresh

2010-05-27 Thread sahuja
Thanks for your suggestions, Jeremy and Igor. I tried to use a ListView. With that I succeeded in refreshing the toolbar on a bookmarkable page, but not a page that I navigated through the Navigation Toolbar. -- View this message in context:

Page in Page

2010-05-27 Thread Christian Märzinger
Hi! How can I embedd a page in another page? i have following Homepage wicket div id=header class=borderedBlock table width=100% header text br / header text 2 /table /div table width=100% tr td id=left class=borderedBlock ul div id=treeTablewicket:child //div /ul /td td id=content

Re: Page in Page

2010-05-27 Thread Jeremy Thomerson
On Thu, May 27, 2010 at 2:30 PM, Christian Märzinger christian.maerzin...@gmail.com wrote: Hi! How can I embedd a page in another page? i have following Homepage wicket div id=header class=borderedBlock table width=100% header text br / header text 2 /table /div table

Re: Force toolbar to update on page refresh

2010-05-27 Thread Jeremy Thomerson
On Thu, May 27, 2010 at 2:19 PM, sahuja sadhna.ah...@nisc.coop wrote: Thanks for your suggestions, Jeremy and Igor. I tried to use a ListView. With that I succeeded in refreshing the toolbar on a bookmarkable page, but not a page that I navigated through the Navigation Toolbar. -- View

Re: Force toolbar to update on page refresh

2010-05-27 Thread sahuja
Jeremy, I am not really sure what you mean by using a model that gets the columns on every repaint, but here's how I have changed my code now. public TotalsToolbar(final DataTable table, final IModel dataProviderModel) { super(table); WebMarkupContainer totals = new

Re: Jetty, HSQLDB and automatic scanning

2010-05-27 Thread Peter Ertl
maybe you should properly shutdown hsqldb in Application#onDestroy() ... Am 27.05.2010 um 19:00 schrieb Igor Vaynberg: you can add a servlet context listener that looks for the lock file and nukes it. alternatively you can use the Start class that comes with wicket quickstart

DropDownChoice problem

2010-05-27 Thread Matthieu
Hello, I've a problem with the DropDownChoice (and maybe language?). I've a Panel who's rendering perfectly when i set the language in english and not rendering when i set in french... The message from wicket : WicketMessage: The component(s) below failed to render. A common problem is

Re: [PROPOSAL] Application.runAs() Method...

2010-05-27 Thread James Carman
On Thu, May 27, 2010 at 2:20 PM, Sven Meier s...@meiers.net wrote: Hi all, I don't think the proposed method is a good idea. Why add a method to a framework which is not used *by* the framework? Is @SpringBean used *by* the framework? Why can't you just create your own static helper method

Re: Force toolbar to update on page refresh

2010-05-27 Thread Jeremy Thomerson
On Thu, May 27, 2010 at 3:55 PM, sahuja sadhna.ah...@nisc.coop wrote: Jeremy, I am not really sure what you mean by using a model that gets the columns on every repaint, but here's how I have changed my code now. public TotalsToolbar(final DataTable table, final IModel dataProviderModel)

Re: wicket file upload

2010-05-27 Thread jbrookover
If this mysterious server environment happens to be Google App Engine, there is already some code floating around (@author uudashr) that manages file uploads seamlessly with the datastore. Jake -- View this message in context:

RE: Page in Page

2010-05-27 Thread Chris Colman
Wicket (just like Java) does not support multiple inheritance. If you're creating a base page that has two blocks that need to be filled in, you can: I agree that wicket shouldn't support multiple inheritance but I'm not sure that what is required here is multiple inheritance. In the wicket

Re: Page in Page

2010-05-27 Thread Jeremy Thomerson
On Thu, May 27, 2010 at 5:33 PM, Chris Colman chr...@stepaheadsoftware.comwrote: Wicket (just like Java) does not support multiple inheritance. If you're creating a base page that has two blocks that need to be filled in, you can: I agree that wicket shouldn't support multiple

Very interesting question... my boss complain about one of my implementations...

2010-05-27 Thread Victor_Trapiello
Hello guys! I had a terrible day because one of my bosses complain about how I have done one task of a project, we had to implement something that updates a field in the database, my brilliant idea was to create a thread inside the wicket init method that makes a query to the database every 3

Re: Very interesting question... my boss complain about one of my implementations...

2010-05-27 Thread Jeremy Thomerson
On Thu, May 27, 2010 at 5:46 PM, Victor_Trapiello vic...@trapiello.netwrote: Hello guys! I had a terrible day because one of my bosses complain about how I have done one task of a project, we had to implement something that updates a field in the database, my brilliant idea was to create a

Status of wicket-security

2010-05-27 Thread Marek Šabo
Hi, I would like to know what's the status of wicket-security. I've been using it for couple of months but only for simple tasks. I would like to dig deeper but there is like on getting started and few mailing list entries. Is there someone who works on the project or is it fading? If so, what is

Re: Status of wicket-security

2010-05-27 Thread Jeremy Thomerson
See the second message at this link (the one from Martijn): http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-upgrade-dependent-on-Wicket-Security-1-4-td2031552.html Jeremy On Thu, May 27, 2010 at 6:30 PM, Marek Šabo ms...@buk.cvut.cz wrote: Hi, I would like to know what's the status of

Re: Very interesting question... my boss complain about one of my implementations...

2010-05-27 Thread gnul
On Thu, May 27, 2010 at 5:16 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Thu, May 27, 2010 at 5:46 PM, Victor_Trapiello vic...@trapiello.netwrote: Hello guys! I had a terrible day because one of my bosses complain about how I have done one task of a project, we had to

using injected services in a child thread

2010-05-27 Thread Douglas Ferguson
I'm using 1.4.8 (not the ITL version). I have pass a runnable to an executer, how can I make use of classes that use @Inject? When I try to do so, it blows up saying There is no application attached to current thread pool-13-thread-1 The confusing thing is that I inject 2 DAOs and 1 service.

Re: Very interesting question... my boss complain about one of my implementations...

2010-05-27 Thread Eelco Hillenius
I had a terrible day because one of my bosses complain about how I have done one task of a project, we had to implement something that updates a field in the database, my brilliant idea was to create a thread inside the wicket init method that makes a query to the database every 3 hours and

Wicket clustering without web server clustering

2010-05-27 Thread DmitryM
Hello, guys I need your advice for the following case. The Wicket application I'm working on is supposed to be deployed to Amazon EC2 cloud. This way standard Tomcat (used as a webapp container) clustering won't work (cloud doesn't accept multicasts). There is a third-party session manager

custom html page

2010-05-27 Thread msalman
Hi, Is it possible for a Page to have to have customized html files depending on certain parameter (user, customer, etc)? I want to allow users to for a certain page to be able to provide their own html file for that page or panel. So depending on the user or customer id I can pick up the

RE: Page in Page

2010-05-27 Thread Chris Colman
I think the concepts are very different. The opinion that they are effectively the same was raised in the earlier discussion (probably more than a year ago). Your suggestion involved using child/extend for one of the overridable sections and then doing the other section with div

Re: custom html page

2010-05-27 Thread Martin Makundi
Hi! You can always get session ((CastToYourSession) Session.get()) Also wicket has few built-in ways to vary the style of your application: * https://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html *

Re: Page in Page

2010-05-27 Thread Jeremy Thomerson
On Fri, May 28, 2010 at 12:08 AM, Chris Colman chr...@stepaheadsoftware.com wrote: I think the concepts are very different. The opinion that they are effectively the same was raised in the earlier discussion (probably more than a year ago). Your suggestion involved using child/extend for

Re: Displaying message from ConversionException

2010-05-27 Thread Jeremy Thomerson
On Wed, May 26, 2010 at 3:09 AM, Michal Jedynak m.jedy...@gmail.com wrote: Hello. Iv'e got a TextField that uses my custom converter which throws several ConversionException with different messages. How can I display a message of the exception on a page? In my properties file I've got a

Re: change (redirect) the markup html file

2010-05-27 Thread Jeremy Thomerson
On Wed, May 26, 2010 at 8:08 AM, Daniel Aschauer daniel.ascha...@gmail.comwrote: Thanks! But, I don't have a setStyle in WebPage-class, there is a setStyle-method only in ResourceReference? How could I use this? Sorry, I forgot that setStyle is only on the session for page-level styling.

Re: Wicket clustering without web server clustering

2010-05-27 Thread Jeremy Thomerson
On Thu, May 27, 2010 at 10:40 PM, DmitryM nsk...@aol.com wrote: Hello, guys I need your advice for the following case. The Wicket application I'm working on is supposed to be deployed to Amazon EC2 cloud. This way standard Tomcat (used as a webapp container) clustering won't work (cloud