Re: How to use setMarkup

2012-05-16 Thread Martin Grigorov
On Wed, May 16, 2012 at 7:33 AM, kjarbr kja...@gmail.com wrote: Thanks Martin, IMarkupResourceStreamProvider and IMarkupCacheKeyProvider did the trick. I'm trying to reduce form boilerplate code. So I've made a general form component which, based on constructor values, pojo annotations and

Re: nested divs, ajax css inheritance

2012-05-16 Thread Martin Grigorov
Hi, Replace div wicket:id=my_panel with wicket:container wicket:id=my_panel in YourPage.html. The same can be achieved by calling myPanel.setRenderBodyOnly(true) in Java On Tue, May 15, 2012 at 10:01 PM, mlabs mlabs@gmail.com wrote: I set html,body to height:100%; in my css file. I have a

Re: pivot table in wicket

2012-05-16 Thread Robert Kimotho
Why don't you try using jpivot, the front end is done using html and they have css that you can override to suit your needs. This also makes it easy to embed in your wicket pages. Not unless you want to write one from scratch, which I think will be very time consuming. PS: jpivot uses mdx to query

Re: how to debug MarkupNotFoundException

2012-05-16 Thread Hans Lesmeister
Hi, Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried As Wicket suggests: Please enable debug messages and check the console output. You will see a list of files Wicket is looking up which *might* lead you to the cause of your problem Cheers

Re: pivot table in wicket

2012-05-16 Thread Decebal Suiu
Robert Kimotho wrote Why don't you try using jpivot, the front end is done using html and they have css that you can override to suit your needs. This also makes it easy to embed in your wicket pages. Not unless you want to write one from scratch, which I think will be very time consuming.

add feedback message a to new panel.

2012-05-16 Thread Taag
I have a Button, which replaces parent panel with a new panel. In the new panel I want to display an error/warn/info, but I can't seem to figure out how. I've tried with getSession.error(..), but that ain't working. What's the best way to do this? Should I use an AjaxButton instead for instance?

Re: Changing values by reference in child components... is it possible?

2012-05-16 Thread nunofaria11
Great, Thanks for your reply. I've looked into it but I didn't find any practical examples of this specific case. Can you point me some links or some code on how the model is used outside and inside the panel. -- View this message in context:

Re: Changing values by reference in child components... is it possible?

2012-05-16 Thread Martin Grigorov
Hi, The suggested usage of a IModel is just like using java.util.concurrent.atomic.AtomicReference. On Wed, May 16, 2012 at 10:38 AM, nunofaria11 nunofari...@gmail.com wrote: Great, Thanks for your reply. I've looked into it but I didn't find any practical examples of this specific case.

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-16 Thread hfriederichs
Tom Eugelink wrote For example, wicket convention dictates that all labels should be put in property files. I decided not to do that. I fully understand the advantages, but for this project I'm simply not going to add an additional label component and a property file just to get Name on the

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-16 Thread Martin Grigorov
On Wed, May 16, 2012 at 11:18 AM, hfriederichs h.friederi...@ohra.nl wrote: Tom Eugelink wrote For example, wicket convention dictates that all labels should be put in property files. I decided not to do that. I fully understand the advantages, but for this project I'm simply not going to

Re: add feedback message a to new panel.

2012-05-16 Thread Andrea Del Bene
Hi, calling error() on your new panel should work. Obviously you must have a FeedbackPanel somewhere on your page ;) I have a Button, which replaces parent panel with a new panel. In the new panel I want to display an error/warn/info, but I can't seem to figure out how. I've tried with

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-16 Thread Tom Eugelink
On 16-5-2012 11:29, Martin Grigorov wrote: On Wed, May 16, 2012 at 11:18 AM, hfriederichsh.friederi...@ohra.nl wrote: Just an afterthought - I can't figure out the English word for the Dutch 'nabrander'. As it happens, my afterthought has to do with another (non-existing) Dutch word:

Re: Wizard clear all formfields

2012-05-16 Thread jensiator
Ended up with this: public class ClearFormComponentWizardStep extends WizardStep { public ClearFormComponentWizardStep(String pTitleMessageKey) { this(pTitleMessageKey, new ModelString()); } public ClearFormComponentWizardStep(String pTitleMessageKey,

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-16 Thread Martin Grigorov
On Wed, May 16, 2012 at 11:42 AM, Tom Eugelink t...@tbee.org wrote: On 16-5-2012 11:29, Martin Grigorov wrote: On Wed, May 16, 2012 at 11:18 AM, hfriederichsh.friederi...@ohra.nl  wrote: Just an afterthought - I can't figure out the English word for the Dutch 'nabrander'. As it happens,

custom listeners

2012-05-16 Thread elvis.ciocoiu
I'm working on something that uses custom information attached to the components and needs some sort of a listeners mechanism. The path taken was to register the needed listeners in onCreate() of some component but I don't have a solution to unregister ... The onRemove doesn't help because it's

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-16 Thread Tom Eugelink
On 16-5-2012 11:52, Martin Grigorov wrote: Using a resource bundle for i18n has this big benefit for me: all my translations are in *one* place. But if the app does not have translations as a requirement? But this is your app... Ignore me. That would be unfriendly :-) Tom

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-16 Thread Martijn Dashorst
Just an FYI: there is no need to add Label's for internationalization purposes per se: wicket:message key=... / will work wonders for this kind of stuff. But I agree that for 5 users for an internal app where folks really are dutch, even that would be overkill when compared to label

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-16 Thread hfriederichs
Martin Grigorov-4 wrote Apart of that, doing manual transaction management is just silly. Better let the layers to do this for you instead of spreading such kind of logic all over your code. Martin, I have that logic at one place in my little silly application, and it's perfect for it's

Re: custom listeners

2012-05-16 Thread Fernando Wermus
May you explain further your user case? Thus, we can understand the needs. Fernando Wermus. www.linkedin.com/in/fernandowermus On Wed, May 16, 2012 at 7:00 AM, elvis.ciocoiu elvis.cioc...@synthesys.rowrote: I'm working on something that uses custom information attached to the components

Re: Changing values by reference in child components... is it possible?

2012-05-16 Thread nunofaria11
Actually I was able to do it. It turned out to be pretty simple; very much like the pseudocode Sven posted. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Changing-values-by-reference-in-child-components-is-it-possible-tp4635008p4641422.html Sent from the

Modal Window without ajaxTarget

2012-05-16 Thread toytown
I would like to show the modal window without using a AjaxRequestTarget add(newAjaxFallbackLinkVoid(localAreaSelection) { private static final long serialVersionUID = 5507632714061994338L; @Override

Refresh component 'ajax'

2012-05-16 Thread Brown, Berlin [GCG-PFS]
I normally use 'target.addComponent(someOtherComponent)' to refresh/rerender that HTML content. Are there other ways to render/reload that component? Also, we are using wicket version 1.4.13

Re: Modal Window without ajaxTarget

2012-05-16 Thread Melinda Dweer
See https://cwiki.apache.org/WICKET/modal-windows.html Opening a modal window on page load (no AJAX involved)Regards. Melinda On Wed, May 16, 2012 at 4:21 PM, toytown prasanna.tulad...@gmail.comwrote: I would like to show the modal window without using a AjaxRequestTarget

AjaxFallbackOrderByLink wrapped in a div calls the sort twice

2012-05-16 Thread xxcody
Hi, I've tried finding a solution for a few days now and I can't seem to get around it. I'm using Wicket 1.4.17 and it seems if I put a div tag around the generated link, the page refreshes twice when the sort column is clicked. You can see teh sort arrows go up, then go down. Does anyone

Wicket users in Ankara/Turkey

2012-05-16 Thread Erhan Meric
Are there any wicket users living in Ankara/Turkey that I can contact with? If there is, I would like to meet you for possible collaborations. Please drop an email to er...@t2.com.tr. Best Regards, Erhan Meric Senior Software Eng. T2 Software

Re: custom listeners

2012-05-16 Thread Ciocoiu Elvis
I'm working on a framework that builds the user interface (input fields, labels, containers for layout, grids, ...) and one of the features is that a custom field editor (for example a dropdown) can publish events (for example value changed). Internally when creating the field editor I register it

Re: custom listeners

2012-05-16 Thread Martin Grigorov
Hi, On Wed, May 16, 2012 at 7:43 PM, Ciocoiu Elvis elvis.cioc...@synthesys.ro wrote: I'm working on a framework that builds the user interface (input fields, labels, containers for layout, grids, ...) and one of the features is that a custom field editor (for example a dropdown) can publish

AjaxFormChoiceComponentUpdatingBehavior CheckGroup and CheckGroupSelector

2012-05-16 Thread Adam Gray
Wicket 1.4.20 Use case: I have a rather large CheckGroup (~250 items) that is controlling filters to include for an ad hoc reporting solution. Because this is so large, the group itself needs to be collapsible. Easy enough. But because it's collapsible, form components in hidden areas won't

RE: Passing query string data from an expired page to the expiry page

2012-05-16 Thread Dale Ogilvie
Thanks for your suggestion. I forgot to mention our app is wicket 1.4. I could not find the code below for RequestCycleListener. WebApplication does not have a collection of RequestCycleListeners per 1.5, as far as I could see. Basically our app has branding based on a url parameter passed to

Re: Passing query string data from an expired page to the expiry page

2012-05-16 Thread vineet semwal
i have not used 1.4 in a long time .. you can still do all the same thing in your requestcyle#onruntimeexception(*) in 1.4,also you can get the query parameters from requestcyle#getrequest() . On Thu, May 17, 2012 at 3:02 AM, Dale Ogilvie dale_ogil...@trimble.com wrote: Thanks for your

Re: Need help in implementing Ajax form

2012-05-16 Thread kshitiz
Thank you very much for the reply...you have solved it... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-help-in-implementing-Ajax-form-tp4632760p4642518.html Sent from the Users forum mailing list archive at Nabble.com.

Re: VTD XML for wicket

2012-05-16 Thread Igor Vaynberg
xml is parsed only the first time a page/panel is accessed. broken down into a collection of chunks optimized for wicket's consumption. and cached. -igor On Wed, May 16, 2012 at 9:49 PM, kamiseq kami...@gmail.com wrote: hej, have you ever consider using http://vtd-xml.sourceforge.net/ as xml

Re: VTD XML for wicket

2012-05-16 Thread kamiseq
anyway VDT-XML outperforms any existing SAXlike or DOM technologies. I just want to let you know. take care pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ On 17 May 2012 07:08, Igor Vaynberg igor.vaynb...@gmail.com wrote: xml is parsed only the