Updating Form Fields

2010-05-28 Thread Benedikt Schlegel
Hello wicket ppl, im pretty new in wicket and im facing a problem which seems to me like im missing some basic understanding here. I have a form which is supposed to fill a filter object. So i add some TextFields with property models, based on that object, to the form (actually to a

Re: Updating Form Fields

2010-05-28 Thread Benedikt Schlegel
For sure it has to be: filterContainer.add(new TextFieldFilterObject(filterFoo, new PropertyModelFilterObject(filter, foo))); filterContainer.add(new TextFieldFilterObject(filterBar, new PropertyModelFilterObject(filter, bar))); [Beta Systems Disclaimer/Impressum:

How to identify last Repeater/DataView item

2010-08-26 Thread Benedikt Schlegel
Hy folks, is there a way to determine if the current Item in onPopulate() is the last one processed? I need to add an additional attribute to the last DataView row. Thanks for your help, Benedikt Save Paper: Think Before You Print Beta Systems Email Disclaimer and Email Impressum Beta

Re: [BULK] Re: Listview remove columns on the fly

2010-08-31 Thread Benedikt Schlegel
If you want to modify your data on a column-base, you should consider using a DataTable instead of DataView/ListView. So long, Benedikt Save Paper: Think Before You Print Beta Systems Email Disclaimer and Email Impressum Beta Systems email messages are confidential. They may also be

DataTable: focus-tracker fails

2010-09-15 Thread Benedikt Schlegel
Hi folks, is there anything i need to consider while setting up an DataTable with FilterToolbar? I have a FilterForm, added those 2 required hidden fields and everything looks fine so far. But when i use the filter, the script fails setting the focus on the 'active' field. I get a JS error

DataTable: focus-tracker fails

2010-09-15 Thread Benedikt Schlegel
Hi folks, is there anything i need to consider while setting up an DataTable with FilterToolbar? I have a FilterForm, added those 2 required hidden fields and everything looks fine so far. But when i use the filter, the script fails setting the focus on the 'active' field. I get a JS error

Re: DataTable: focus-tracker fails

2010-09-15 Thread Benedikt Schlegel
Solved it by extending FilterForm: public class FilterForm extends org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm { private static final long serialVersionUID = 1L; public FilterForm(String id, IFilterStateLocator locator) { super(id, locator);

Re: Styling pagination

2010-09-16 Thread Benedikt Schlegel
The easiest and also the most obvious way to do this is to extend the PagingNavigator and provide your own markup. But if you dont want to remove all components added by PagingNavigator, you should use the same wicket:ids and component hierarchie, just change what you need to change (replace ''

Mapping DropDownChoice values?

2010-09-16 Thread Benedikt Schlegel
I have a DataTable to show a list of domain objects (named DocumentLink). These objects consist of a few attributes and some nested objects (e.g. Application). So im displaying data mixed up from different levels. For example, some expressions configured in FilteredPropertyColumns are: name,

Error on constructor call

2010-09-21 Thread Benedikt Schlegel
Hy folks, im trying to set up an DataTable with FilterToolbar but now im stuck. I want to use the GoAndClearFilter, and that for i have to add an additional column to the DataTable. Im not quiet sure, which implementation is the right one for that, but as far as i dont want to populate any data

HeadersToolbar incompatible to other components than Label?

2010-09-23 Thread Benedikt Schlegel
I've implemented a CheckGroupColumn which is supposed to easily extend the DataTable with multi-row actions. But when i add it to my DataTable i get the following exception: --- WicketMessage: Component label must be applied to a tag of type 'input', not 'span wicket:id=label' (line 0, column 0)

Re: HeadersToolbar incompatible to other components than Label?

2010-09-23 Thread Benedikt Schlegel
In short, i want to add a CheckGroupSelector instead of a Label. So i guess i need a way to replace the markup of HeaderToolbar, without rewriting the whole thing. Suggestions? - To unsubscribe, e-mail:

Re: HeadersToolbar incompatible to other components than Label?

2010-09-23 Thread Benedikt Schlegel
own markup. MyToolbar extends HeaderToolbar { // override the constroctor only } then provide MyToolbar.html which is modified version of HeaderToolbar.html On Thu, Sep 23, 2010 at 4:46 PM, Benedikt Schlegel codecab.dri...@googlemail.com wrote: In short, i want to add a CheckGroupSelector

Re: HeadersToolbar incompatible to other components than Label?

2010-09-23 Thread Benedikt Schlegel
Works fine. Thanks a lot! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Best Pattern for Admin Pages and User Pages

2010-12-08 Thread Benedikt Schlegel
2010/12/6 Altuğ Bilgin Altıntaş alt...@gmail.com: You can add css object programatically. https://cwiki.apache.org/WICKET/including-css-resources.html altug I have to mention that switching off admin functionality by just adding a css attribute (like display: none) is not secure. You

Generate markup outside of DataTable relatively to visible data

2010-12-12 Thread Benedikt Schlegel
I have a DefaultDataTable to get my data rendered in HTML which is then postprocessed by a javascript lib to add some UI functionality like moving and hiding columns and scrolling with fixed headers. Now i want to add some checkboxes to make multi actions possible on that table. For that, i want

Re: Generate markup outside of DataTable relatively to visible data

2010-12-13 Thread Benedikt Schlegel
Basically, i need a way to hook into the row-generating routine. I would use DataView, but i need the column-based datahandling of the DataTable.. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Datatable/Dataview filtering problem

2010-12-16 Thread Benedikt Schlegel
Try to implement the delay on client side. Instead of submitting the form directly, call a function with an internal timer. Something like: function delayedSubmit(form) { if (form._delayedSubmit != null) clearTimeout(form._delayedSubmit); form._delayedSubmit =

Re: Custom Component

2010-12-16 Thread Benedikt Schlegel
Hi Dieter, i think you might want to have a look at the following: https://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html So long, Benedikt - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Modify Attribute on DataView HTML Element

2010-12-17 Thread Benedikt Schlegel
Your solution holds some unneccessary code/markup (a whole component) while Martijns approach is straight to the point. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

FilterToolbar doesn't consider IStyledColumn

2010-12-19 Thread Benedikt Schlegel
I was just wondering, why the FilterToolbar component does not consider IStyledColumn, unlike HeaderToolbar. In my opinion, its a very simple, but effective key feature that should be provided by any datatable component. Solved it by creating my own FilterToolbar and taking some stuff from

Re: adding sub rows to AjaxFallbackDefaultDataTable

2010-12-20 Thread Benedikt Schlegel
Hi Alexander, would you mind to give a short explanation of the logic in MasterTableReuseStrategy? Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: adding sub rows to AjaxFallbackDefaultDataTable

2010-12-21 Thread Benedikt Schlegel
First, I never used the tree table from wicket-extensions. But i had a very quick look at the code and had the following idea. You could try to extend the TreeTable so you can provide your own TreeFragment. This ExtendedTreeFragment could render different components depending on the 'level'

WiQuery SortableBehavior/DroppableBehavior questions

2012-10-25 Thread Benedikt Schlegel
Hey guys, I'm having a hard time to get a jQuery-ui-sortable example with connected lists (see [1]) working. Since the WiQuery API changed completely with the last major release of Wicket and there are no up-to-date examples i can find, i don't know what to do next. We're currently investigating

Re: WiQuery SortableBehavior/DroppableBehavior questions

2012-10-26 Thread Benedikt Schlegel
Hi Decebal, thank you for your reply. I had a look at your project and I can see that you collect the sort order with a custom js function onStopWidgetMove(), but I'm not able to actually track down where this information is received or the stopEvent is handled. Could you please point me out how

Re: WiQuery SortableBehavior/DroppableBehavior questions

2012-10-29 Thread Benedikt Schlegel
@Decebal: Thank you. I realized the problem lies somewhere around the model.. Changes in the sort order do get saved to the underlying .xml-file, but those changes won't get rendered by just doing an AJAX update. When I press F5 to make a browser refresh, the page gets rendered properly. The

Re: WiQuery SortableBehavior/DroppableBehavior questions

2012-10-29 Thread Benedikt Schlegel
Well, that was the cause for all that trouble. Such a pity I didn't think of it myself :P Sure, the view is already up-to-date after resorting it via jQuery. Everything's working now. Thanks a lot, Decebal

Re: WiQuery SortableBehavior/DroppableBehavior questions

2012-10-31 Thread Benedikt Schlegel
I'm getting a little tired of working with the models, seems I have some serious understanding problems. The view is NOT up to date by just having jQuery move some elements back and forth. The element IDs of the ListItems stay the same, so when I resort the same (n-th) element twice, there are

Re: WiQuery SortableBehavior/DroppableBehavior questions

2012-10-31 Thread Benedikt Schlegel
I have no maven installed, so I can't create a quickstart. Instead, I zipped my project directory (an eclipse project) and uploaded it here: http://uploaded.net/file/d2zahfva Don't worry about the file size, all dependent libraries are in the WEB-INF/lib directory. The project itself is actually

Re: WiQuery SortableBehavior/DroppableBehavior questions

2012-11-01 Thread Benedikt Schlegel
available download slots are busy currently, please try again within a few minutes. Can you e-mail it to me directly? On Wed, Oct 31, 2012 at 4:17 PM, Benedikt Schlegel codecab.dri...@googlemail.com wrote: I have no maven installed, so I can't create a quickstart. Instead, I zipped my

format value missing in ConversionException thrown by wicket-datetime's DateConverter

2012-11-03 Thread Benedikt Schlegel
Hi, I just thought how neat it'd be, if the ConversionException created and thrown by DateConverter.convertToObject() would contain the format used for the parse attempt.. A call on .setFormat(format) on the created ConversionException would do the job, and one could present a more specific error

Re: format value missing in ConversionException thrown by wicket-datetime's DateConverter

2012-11-05 Thread Benedikt Schlegel
What I need is not what I want in this case.. I want to reuse wicket components as much as possible. I don't want to reinvent the wheel. In wicket, there are two separate, Date-specific TextField components: - org.apache.wicket.extensions.markup.html.form.DateTextField -

Re: format value missing in ConversionException thrown by wicket-datetime's DateConverter

2012-11-06 Thread Benedikt Schlegel
Maybe I should indeed post this on the developers forum? Or open a JIRA? Greets 2012/11/5 Benedikt Schlegel codecab.dri...@googlemail.com What I need is not what I want in this case.. I want to reuse wicket components as much as possible. I don't want to reinvent the wheel. In wicket

Re: format value missing in ConversionException thrown by wicket-datetime's DateConverter

2012-11-06 Thread Benedikt Schlegel
, but requires the Joda Time dependency, which the wicket-extensions version is based on normal JDK API. When JSR310 comes out in Wicket's minimum required Java version (Java 8?) we can probably merge them. Cheers, Jesse On 05/11/2012 13:40, Benedikt Schlegel wrote: What I need is not what I

Stateless pages

2013-05-15 Thread Benedikt Schlegel
Hey there, i'm currently trying to understand what is actually needed so Wicket considers a page stateful. Could you provide me some basic information on that? Basically, I want the user to authorize for the application and if he's not, he should be send back to the login page. In the case of

Re: Stateless pages

2013-05-17 Thread Benedikt Schlegel
Thanks for your quick response, guys! Got it working. No session expired message for now. Very helpful was the hint on how to decide between new/expired session but also the general information about stateless-ness. And your guide is awesome, Andrea! Can't believe I didn't run across this