Re: Modify textfield input before validation

2008-12-11 Thread Matthias Keller
Hi I had the same problem. The closest thing I found was, to create my own instance of TextField: private static class MyTextField extends TextField { // constructors... protected void onComponentTag (ComponentTag tag) { super.onComponentTag(tag); String value

Re: optional DropDowns

2008-12-30 Thread Matthias Keller
Hi Björn You should probably either switch from int to Integer (which can be null) or provide an own values list which includes your default entry for example with value -1 (or customize the DropDownChoice to do that) Matt Björn Tietjens wrote: Hi, I have a problem with an webform

How to change field values in a validator?

2008-10-13 Thread Matthias Keller
Hi I've got a custom validator here which needs to dynamically change some other input field's value to a new value. Here's the scenario with two radios and a pulldown: ( ) I don't need anything ( ) I need: [ pulldown with options ] Now if I need is selected, everything works as expected, the

Re: How to change field values in a validator?

2008-10-13 Thread Matthias Keller
Timo Rantalaiho wrote: On Mon, 13 Oct 2008, Matthias Keller wrote: Here's the scenario with two radios and a pulldown: ( ) I don't need anything ( ) I need: [ pulldown with options ] Now if I need is selected, everything works as expected, the pulldown value gets stored to the model. Now

Re: How to change field values in a validator?

2008-10-14 Thread Matthias Keller
that is converted by a convertor not for changing data. On 10/13/08, Matthias Keller [EMAIL PROTECTED] wrote: Timo Rantalaiho wrote: On Mon, 13 Oct 2008, Matthias Keller wrote: Here's the scenario with two radios and a pulldown: ( ) I don't need anything ( ) I need: [ pulldown with options

Re: How to change field values in a validator?

2008-10-14 Thread Matthias Keller
Timo Rantalaiho wrote: On Tue, 14 Oct 2008, Matthias Keller wrote: What i'd need would be something that's called after all fields have converted but before they're stored anywhere... Which I don't think exists. It does, stored anywhere means setObject(Object) on the model

Re: How to change field values in a validator?

2008-10-15 Thread Matthias Keller
inputs available also via getconvertedinput(). anothing option, if you are using 1.4 is to wrap this in a panel or a fragment and use IFormModelListener to push whatever value you want into the model. -igor On Mon, Oct 13, 2008 at 6:43 AM, Matthias Keller [EMAIL PROTECTED]wrote: Hi I've got

Re: Wizard with CompoundPropertyModel

2008-10-17 Thread Matthias Keller
Hi jensiator wrote: Put in one case I Noticed that all the WizardSteps uses the same backingbean, so I started to think about using a compoundpropertymodel that I set to the Wizard in its constuctor. Something like this: public MywizardConstuctor(String id){ super(id);

Re: Session timeout page

2008-10-29 Thread Matthias Keller
Hi See here for all kinds of different error pages you can easily adjust: http://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html Matt Swanthe Lindgren wrote: How do I change the session timeout page? I want my application to display the actual home page on session timout

How to terminate the session on not bookmarkable page?

2008-11-05 Thread Matthias Keller
Hi I've got a wizard letting the user enter some information. In the onFinish() method, I redirect him to my ConfirmationPage: setResponsePage(new ConfirmationPage()); (I chose the instance method instead of the class method as I don't want to have a bookmarkable page there) On the

Re: How to terminate the session on not bookmarkable page?

2008-11-05 Thread Matthias Keller
Thanks Matt Nino Saturnino Martinez Vazquez Wael wrote: Hmm why not to it org.apache.wicket.extensions.wizard.Wizard#onFinish() .. ? Matthias Keller wrote: Hi I've got a wizard letting the user enter some information. In the onFinish() method, I redirect him to my ConfirmationPage

Howto mark a FormComponent as invalid without having a feedbackmessage?

2008-11-11 Thread Matthias Keller
Hi I'm using a custom FormValidator to validate a group of checkboxes. I want to raise an error whenever none of the checkboxes is checked. In the effect I must have all checkboxes marked as invalid so that I can apply some style to them to visually display this too. Unfortunately when I add

Re: Choose one

2009-08-27 Thread Matthias Keller
Hi The implementation tries these keys: getId() + .nullValid nullValid So you could also have a global 'nullValid' entry somewhere in your resources which would be the default for ALL AbstractSingleSelectChoices such as DropDownChoice and RadioChoice Matt Gatos wrote: Is it possible to

Column which orders by display value

2009-09-07 Thread Matthias Keller
Hi We have a DataTable with some sortable columns. Unfortunately, they often don't match a simple property but are assembled using multiple properties. Unfortunately, a column seems only sortable by a single property :-( Is there a possibility to sort a DataTable using the effectively

Re: Help on wizard solution...

2009-09-09 Thread Matthias Keller
Hi Well, if you know of all the steps but there's only some small difference (like you said, Step 6 might be D or F), you might also consider a normal Wizard, but use the conditional step functionality. That way you would add ALL pages, but hide those that are not relevant. Hiding can also be

Re: @SpringBean and IDataProvider

2009-09-09 Thread Matthias Keller
Hi Charles @SpringBean only seems to work in some wicket base classes. In your own separate classes, noone will actively inject your content. What I do (maybe there's a better possibility) is to add this line to that classes constructor to force injection:

How to redirect from a ModalWindow

2009-09-10 Thread Matthias Keller
Hi I've got a ModalWindow which lets the user select some choices. Now I need a button in that ModalWindow allowing the user to enter some new choices. I don't want that target to be another ModalWindow (as it's referenced from other places too), so I need to redirect the user to that new page

Re: DropDownChoice with Java Enum

2009-09-10 Thread Matthias Keller
Hi Charles No problem. Just make an IChoiceRenderer which calls getDescription for the display value and getValue for the id. Matt Charles Moulliard wrote: Hi, I would like to know if I can create a DropDownChoice where the value to be displayed in the drop down list corresponds to the

Re: DropDownChoice with Java Enum

2009-09-10 Thread Matthias Keller
: java.lang.ClassCastException: com.xpectis.x3s.model.usertype.ProcessingStatusType at com.xpectis.x3s.fundbox.web.form.RequestForm$1.getDisplayValue(RequestForm.java:38) I suppose that what I defined in getDisplayValue is not correct ? Matthias Keller wrote: Hi Charles No problem. Just make

Re: How to redirect from a ModalWindow

2009-09-10 Thread Matthias Keller
um 12:50 schrieb Matthias Keller: OtherPage.class - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME Cryptographic

Re: Selectively ignoring required fields

2009-09-15 Thread Matthias Keller
Hi You could also write your own FormValidator which does the 'required' validation on its own by checking whether the field's input string is empty/null. Matt Phil Housley wrote: 2009/9/15 Martin Makundi martin.maku...@koodaripalvelut.com: You can override isRequired for any

Re: Update Tree Model on Ajax timer. What's wrong ?

2009-09-16 Thread Matthias Keller
Hi Eric I've never used a Tree before and I don't know the AjaxSelfUpdatingTimerBehaviour, but shouldn't you add all changed elements to 'target' like in all other AJAX calls I've ever encountered before? Wicket usually updates those things that are added to the AjaxRequestTarget. Matt

Re: Is it the best way to code a Link depending on a condition

2009-09-17 Thread Matthias Keller
Sure, just create it (including the onClick which might be invalid), but afterwards set the setEnabled() as needed. As long as the link is disabled, it can never be clicked thus the onClick() will never be executed anyway, so it's irrelevant if the requestFormModel is valid or not... I dont

Re: Is it the best way to code a Link depending on a condition

2009-09-17 Thread Matthias Keller
); } Remark : It should be interesting to be able to create an instance of the Link class without having to override the onclick() method. Otherwise the code becomes very verbose and requires as here that we instantiate two times the class Link Matthias Keller wrote: Sure, just create

Re: Is it the best way to code a Link depending on a condition

2009-09-17 Thread Matthias Keller
Hi Yes there'll always be some repetition. Depending on your logic you might also stuff the first block in the onClick event to generate the model if it's not used anywhere else. That could eliminate the first block. The problem about reusable components in wicket is that probably you might

Re: Handling Hibernate session (LazyInitializationException)

2009-09-17 Thread Matthias Keller
Hi Anton The Problem you encounter is probably because you're holding on to a hibernate object between requests, thus the references are not valid anymore. Have a look at http://wicketinaction.com/2008/09/building-a-smart-entitymodel/ This works for us with hibernate. Matt Anton Komratov

Re: How can we display by example the format to be used to input Date in DateTextField ?

2009-09-28 Thread Matthias Keller
Hi Charles About Question 1: The validation message seems to have its origin in FormComponent#convertInput(): It will try either IConverter.date class simple name or IConverter and the used pattern will be available as the variable format (or ${format} as used in the string resources).

Re: Show Validation Errors

2009-09-30 Thread Matthias Keller
Hi Peter Try adding a FeedbackPanel to your page Without that, wicket doesn't even know where and how to display the messages. Matt Peter Arnulf Lustig wrote: Hi, I am trying to show validation errors on a page. Somehow it won't function! But I don't understand why? I mean I am using

Re: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Matthias Keller
Hi Peter For that we usually add an AttributeModifier which adds something like that to the onclick javascript event: if (!confirm('Do you really want to delete this entry')) return false; Matt Peter Arnulf Lustig wrote: Hi, I'd like to create a delete link where you can delete a row in a

Re: What is preferred/recommended way to localize texts of non-visual components

2009-09-30 Thread Matthias Keller
Hi Petr We use a custom EnumConverter for that. It can be added to the application like so: @Override protected IConverterLocator newConverterLocator () { ConverterLocator converterLocator = (ConverterLocator) super.newConverterLocator();

Re: wicket default locale

2009-10-05 Thread Matthias Keller
Hi The default implementation pulls the used locale from the servlet request (meaning the requested locale by the browser). If you want to override that, we do it exactly as you do it. Matt Gatos wrote: Hello, How to set a default locale for the application? It works for me, but I guess

Re: wicket default locale

2009-10-05 Thread Matthias Keller
Hi Adrian You could do that but what he wants is to set a default locale, not a fixed-forever locale. When you set it in newSession, you get exactly that - a default locale which might get changed any time by the application. Matt Adrian Merrall wrote: I think the more common method is to

Re: [wicket-1.4] parameterizing ResourceModel for wicket:message

2009-10-06 Thread Matthias Keller
Hi Bernhard Have a look at StringResourceModel, though I think it's not possible to use it directly with wicket:message but you can use it easily in a label. It supports both MessageFormat style and model-style replacements. Matt Bernhard Grünewaldt wrote: Hello, I am using a

Check(box) loses checked state after error

2009-10-27 Thread Matthias Keller
Hi I'm using a CheckGroup together with a few Check in a repeater because the number of boxes displayed is dynamic. This works fine and the data gets stored in the model correctly when submitting. However, if another form component fails in the validation, all checkboxes are getting

Re: Release 1.4.3

2009-10-27 Thread Matthias Keller
Corbin, James wrote: James, Do you know when the official release of 1.4.3 is happening? By official I mean the Apache Wicket Website updated with the release announcement and links to the official package downloads. J.D. Well, it is as official as can be, they just have some troubles

Re: Check(box) loses checked state after error

2009-10-27 Thread Matthias Keller
Hi Pedro Thanks, that worked for me! Matt Pedro Santos wrote: call ListView.setReuseItems(true) On Tue, Oct 27, 2009 at 1:24 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: I'm using a CheckGroup together with a few Check in a repeater because the number of

Re: Force page reload/re-render

2009-11-10 Thread Matthias Keller
Hi Pieter Due to the Java-Nature of Wicket, things done in the constructor are only executed once for this instance. Since F5 only re-renders the instance, the expression setVisible(whatever()) is only executed once. The most dynamic implementation would be to override isVisible() for

Re: EntityModel

2009-11-11 Thread Matthias Keller
Hi Sam What exactly do you mean by repository? Do you have to load every entity from another place? in load(), we have the code to load every possible entity in our implementation, for example: T entity; if (this.clazz == User.class) { entity = userService.load(...); } else if (this.clazz

Re: EntityModel

2009-11-11 Thread Matthias Keller
into the EntityModel anyway? On Thu, 2009-11-12 at 08:34 +0100, Matthias Keller wrote: Hi Sam What exactly do you mean by repository? Do you have to load every entity from another place? in load(), we have the code to load every possible entity in our implementation, for example: T entity; if (this.clazz

Re: EntityModel

2009-11-12 Thread Matthias Keller
(this); Matt Sam Barrow wrote: Yes that shouldn't be a problem I just need to figure out the injection, how do you do this? I use wicket-spring also. On Thu, 2009-11-12 at 08:53 +0100, Matthias Keller wrote: Hi Sam We use Spring to inject them. Well, somewhere you'll need that logic what class

AutocompleteTextField in wicket 1.3.6 ?

2009-12-02 Thread Matthias Keller
Hi I just tried to add a AutocompleteTextField to a 1.3.6 application but it doesn't seem to work. I copied the exact example from http://www.wicket-library.com/wicket-examples/ajax/autocomplete and removed the generics for 1.3.6 Yet still no matter if I enter anything or not, no autocomplete

Re: How to use DateTimeField with java.sql.Timestamp

2009-12-17 Thread Matthias Keller
DateTimeField internally uses a DateTextField which is a normal TextField initialized as type java.util.Date You could create a class: public class TimestampField extends DateTimeField { protected DateTextField newDateTextField(String id, PropertyModel dateFieldModel) { return

Search results in a DataView must be updated

2009-04-08 Thread Matthias Keller
Hi I implemented a search form which contacts a remote server to search for some users and returns a List of the matching users. I then feed them into a DataView where the user can click on a specific entry to see the details. This is implemented using something like public void populateItem

Re: override isEnabed of FinishButton

2009-04-08 Thread Matthias Keller
Hi Martin I had a similiar problem a while ago - I solved it by copying that class - it was the fastest thing to do. However, feel free to post a bug report about removal of these final modifiers for the next version. They already removed some final's in the CLASS definition of these buttons

Re: Validate, Navigate Wizards

2009-05-04 Thread Matthias Keller
wolfgang.sch...@dachser.com wrote: Hi, when I validate the data of a WizardStep after pressing Next, I navigate within the validate method to the WizardStep.previous() step in the false case. Works fine! But calling the method WizardStep.previous() works not for the first Wizard step. That's

Re: Validate, Navigate Wizards

2009-05-04 Thread Matthias Keller
wrote: Hi Matthias, thanks! I used error(), but the wizard didn't stop. I will check it, maybe I use a ref-Object to call error(). regards - jk Matthias Keller wrote: wolfgang.sch...@dachser.com wrote: Hi, when I validate the data of a WizardStep after pressing Next, I navigate

Re: Validate, Navigate Wizards

2009-05-04 Thread Matthias Keller
the RequiredTextField... :-) regards - jk Matthias Keller wrote: Hi Just one note - I just had another look at our FormValidator class - you might wonder why you won't find the method error (FormComponent fc, String resourceKey) provided in my example. The reason is, we wrapped this to provide a direct

Add a ui lock page over the page while waiting for response

2009-05-06 Thread Matthias Keller
Hi We have a web form which does some very extensive backend communication requiring a lot of time. So usually after pressing 'submit', the UI is locked for 10-30 seconds. To avoid re-submission, we'd like to put some kind of ui-lock-page over the current page, stating 'Please wait' or

Re: Add a ui lock page over the page while waiting for response

2009-05-07 Thread Matthias Keller
with Wicket. Linda. Matthias Keller wrote: Hi We have a web form which does some very extensive backend communication requiring a lot of time. So usually after pressing 'submit', the UI is locked for 10-30 seconds. To avoid re-submission, we'd like to put some kind of ui-lock-page over

Problems using wicket with web.xml security

2009-05-26 Thread Matthias Keller
Hi We have a wicket application which should be completely secured by FORM authentication by the webserver. For that, we have the following in web.xml: security-constraint display-nameSecured pages/display-name web-resource-collection web-resource-nameAll

Re: Wicket Date Field Validation

2009-06-18 Thread Matthias Keller
Rao Archana (HCTM/ETA) wrote: Hi, I am working on date fields and have problems with the validation. I have referred to the link below which helped me. http://www.nabble.com/Strict-4-digit-year-for-DateTextField--td18656889. html So I have subclassed the PatternDateConverter and have set

Generic Navigation Panel

2009-07-22 Thread Matthias Keller
Hi I'm creating a new website with wicket which should have a normal navigation bar. I'd like to be able to detect whether a link points to the current page to give the surrounding div a special class. For example on page1: div class=activeLink a href=page1page1/a /div div a

How to use Session.replaceSession() ??

2009-07-29 Thread Matthias Keller
Hi I'm writing our custom internal error handler which is supposed to terminate the current session and create a new one (in order to pass over the locale to the new session). I've stumbled upon the Session.replaceSession() method which, according to the javadoc, should just exactly do

StringResourceModel ignores Converters?

2009-08-13 Thread Matthias Keller
Hi I need to use a StringResourceModel to compile a string with multiple parameter substitutions. I have a lot of converters active which should take care of all these values and which do work when using for example a PropertyModel elsewhere. Unfortunately it seems the converters are

Wicket Multi-Threading with access to the session

2010-02-10 Thread Matthias Keller
Hi We have a complex application which needs to calculate some very expensive things. Those could easily be parallelized so we thought about having a thread pool to do that. Unfortunately, that code needs access to the localizer and the application (for some configuration values) so we're

Re: Wicket Multi-Threading with access to the session

2010-02-10 Thread Matthias Keller
, Ernesto Reinaldo Barreiro wrote: Why not just collect the information you need and pass it to the thread? Can't you know in advance which localized values you are going to need? Best, Ernesto On Wed, Feb 10, 2010 at 12:08 PM, Matthias Keller matthias.kel...@ergon.chwrote: Hi We have

Re: modal window problem

2010-03-08 Thread Matthias Keller
On 2010-03-08 17:07, Martin Asenov wrote: It's me again. I just noticed some very strange error that I have no explanation about. When I open a wicket modal window then it appears for a while and closes and the entire page gets redirected to some browser related pages, for instance ask.com,

Re: A question about using Spring in Wicket 1.4

2010-03-11 Thread Matthias Keller
Hi David addComponentInstantiationListener(new SpringComponentInjector(this)); is correct, as there is no add() method in Application. Matt On 2010-03-11 15:14, David Chang wrote: James, thanks for quick reply. I guess I am a little confused is that in the init method, I use

Re: V1.4 Decision

2010-03-18 Thread Matthias Keller
Hi Karmien Wicket 1.3.X is not supported anymore as far as I know, so there will most probably be no more updates for it. Go for 1.4, it's been around for very long and most components are updated to 1.4 in a breeze (given that you have access to their source code). If no models are involved,

Re: Select the Choose one of a required DropDownChoice

2010-03-18 Thread Matthias Keller
Hi Have a look at DropDownChoice.setNullValid() and .setRequired() Matt On 2010-03-18 14:26, David Chang wrote: Hi, I am new in Wicket and am playing with different components. I have a two dropdown lists. One is a list of countries, required field, controlling another list of

Re: Make FeedbackPanel occupy zero space when having no messages?

2010-03-18 Thread Matthias Keller
Hi Just create your own FeedbackPanel subclass and add: public boolean isVisible () { return anyMessage(); } Matt On 2010-03-18 14:32, David Chang wrote: Hello, I am playing with FeedbackPanel. I put it in a page like this: div wicket:id=feedbackHolder / I notice that when

Re: Select the Choose one of a required DropDownChoice

2010-03-18 Thread Matthias Keller
Hi Yes, exactly, but why do you have it set to required at all in first place if you want to allow the empty selection too? I dont think a DropDownChoice is required by default but if it is, try setRequired(false) ... Matt On 2010-03-18 14:36, David Chang wrote: Matt, I already did that.

Re: Choose One Text Without Property File?

2010-03-24 Thread Matthias Keller
Hi Brad You'd probably have to subclass DropDownChoice and override the method getDefaultChoice() to return whatever value you'd like. Matt On 2010-03-24 16:45, Brad Grier wrote: I'd like to be able to change the Choose One text for a DropDownChoice without using a property file. I have a

AutoCompleteTextField uses wrong encoding?

2010-05-10 Thread Matthias Keller
Hi I'm using an autocompletefield and it works fine so far. Except that when entering special characters, they don't get encoded correctly. The query String is correct and sends the special character in encoded UTF-8: GET http://localhost:9080/.../...q=%C3%B6random=... %C3%B6 is UTF8 for ö

Re: Help me speed up my Wicket

2010-05-20 Thread Matthias Keller
And it would not speed up page loading at all since in the end, the same data would have to be transferred but splitted into multiple requests which adds the request overhead to the total loading time compared to the prepared complete page. On 2010-05-20 10:25, Martin Makundi wrote: Would

Re: Session.replaceSession() behavior

2010-06-25 Thread Matthias Keller
Hi Doug As described in the javadoc, the replaceSession() only replaces the (underlying) HTTP Session to help against session fixation attacks. What is your goal exactly? If the user logs in and still has an earlier session, that that one will be destroyed? In that case consider to use

Re: AutoCompleteTextField

2010-08-19 Thread Matthias Keller
On 2010-08-19 15:00, Patrick Petermair wrote: armandoxxx schrieb: You need to be able to select multiple items from autocomplete dropdown list with just DOWN key ??? No, I want to select a single item - but out of a list of all the items. Take the example at:

Re: StringResourceModel - On the Fly

2010-09-07 Thread Matthias Keller
Hi Why not use one of the various methods on the localizer? getLocalizer().getString(...) Or if not in a component Application.get().getResourceSettings().getLocalizer().getString(...) Matt On 2010-09-06 19:26, msantos wrote: Thats solve the problem. I already have a resource bundle on the

Re: Free wicket from component hierarchy hell

2010-11-09 Thread Matthias Keller
Hi Martin Isn't this exactly the reason we've got CSS? HTML shouldn't really be used for lookfeel and the size and placement of components can perfectly be defined using CSS classes. Matt On 2010-11-09 13:34, Martin Makundi wrote: Also making skins for different devices / screen sizes

Re: close tag not found error in markup

2010-11-23 Thread Matthias Keller
Hi Andrea The error is: WicketMessage: close tag not found for tag: . Component: [MarkupContainer [Component id = toolbar]] I can't see a wicket:id=toolbar in your posted code, so the problem appears to be somewhere else on that page including the posted panel. Try to find that toolbar -

Re: multilevel markup inheritance

2010-11-23 Thread Matthias Keller
Hi juraj Absolutely no problem, wicket can handle that just easily. Let's assume you've got a BasePage (containing for example the HTML header and the body tag), a LayoutPage (containing the main layout) and a specific page (Page1): BasePage.html : html head.../head body wicket:childThis

Re: close tag not found error in markup

2010-11-23 Thread Matthias Keller
Hi Andrea Make sure you remove that whitespace in span - that should be span and the same for / span - /span. Valid HTML must not contain whitespace there. Matt On 2010-11-23 11:35, andrea.castello wrote: I am very sorry, but it seems like a portion of the code I paste is being stripped

Re: visural-wicket 0.6.5 released!

2010-11-26 Thread Matthias Keller
Hi Isn't this exactly the same as a wicket Palette ? Matt On 2010-11-26 15:42, Andrea Del Bene wrote: Hi Richard and thank you for your work! I've developed a custom multi select widget which is much more user friendly then classic HTML multiselect control. This widget looks like this:

Re: visural-wicket 0.6.5 released!

2010-11-26 Thread Matthias Keller
Palette is in wicket-extensions at: org.apache.wicket.extensions.markup.html.form.palette.Palette The one listed as wicket.markup is actually extensions too when you click on it - it just appears to be misnomed on the index page Matt On 2010-11-26 16:20, Andrea Del Bene wrote: Damn!

Re: component not visible exception

2010-11-29 Thread Matthias Keller
One other thing to check is, do you have a custom isVisible() override in the container or do you explicitly set it to visible/invisible using setVisible()? If the former, this logic will usually be re-evaluated upon form submission and if that logic depends on some state which might change

Logout (Session destroy) on the last (stateful) page?

2010-12-01 Thread Matthias Keller
Hi I've got the following problem: After a user completes a wizard, he sees a last confirmation page containing some data, thus it must be a stateful page called by the following code from the wizard: setResponsePage(new ConfirmationPage(myBean)); This ConfirmationPage must only be displayed

Re: Logout (Session destroy) on the last (stateful) page?

2010-12-02 Thread Matthias Keller
Hi Randy Yes it appears to have something to do with that. Our app uses the REDIRECT_BUFFER by default (we never actively configured this though) which appears to be a sensible option for normal operation. I'm not very familiar with the render strategies but you appear to be right: The page

Re: Logout (Session destroy) on the last (stateful) page?

2010-12-02 Thread Matthias Keller
, Ernesto Reinaldo Barreiro wrote: Matt, Can't you just do some kind of trick so that your ConfirmationPage is served as the home page? So that you invalidate the session but at getHomePage() you temporarily return your ConfirmationPage? Regards, Ernesto On Thu, Dec 2, 2010 at 10:06 AM, Matthias

How to tackle field labels when using CompoundPropertyModels?

2010-12-16 Thread Matthias Keller
Hi This is an issue I frequently run into and I haven't found a good solution yet: I've got a Form using a CompoundPropertyModel and having lots of fields. The easy way to do these fields is: form.add(new RequiredTextFieldString(name)); The model object has a getter and setter for name, so

Re: How to tackle field labels when using CompoundPropertyModels?

2010-12-16 Thread Matthias Keller
or component scoped messages. On Thu, Dec 16, 2010 at 11:48 AM, Matthias Keller matthias.kel...@ergon.ch wrote: Hi This is an issue I frequently run into and I haven't found a good solution yet: I've got a Form using a CompoundPropertyModel and having lots of fields. The easy way to do

Re: Initial DropDown Blank Choice (Choose One) Disappearing

2010-12-20 Thread Matthias Keller
Hi eugene See DropDownChoice#setNullValid(boolean) Matt On 2010-12-20 18:57, eugenebalt wrote: In my DropDown, the initial choice is blank (Choose One), which I want to keep. My selections allow N/A which means nothing is selected. Initially on my form, the Choose One blank option is

wicket:message and property resolving

2010-12-22 Thread Matthias Keller
Hi I just disovered by chance that it's possible to use property expressions in normal wicket:message key=.../ elements which then get resolved against the next model found in the hierarchy. Unfortunately it seems to work a bit different to other automatic resolving like in new

Re: wicket:message and property resolving

2010-12-22 Thread Matthias Keller
Hi Andra No no, that label is just to demonstrate my the effect that the Label works as expected but the message not. The wicket:message thingie works without a label at all. I just don't know if it's even intended to be used like that and if yes, if my observations are correct and this is a

How to remove all previous pages from pagemap

2011-01-25 Thread Matthias Keller
Hi List We've got the following scenario: After a user hopped through a wizard, he'll reach a confirmation page in our workflow. Now the session still needs to remain active but I want to prohibit going back into the wizard and resend it again. I experimented with Session.clear() and

Re: How to remove all previous pages from pagemap

2011-01-26 Thread Matthias Keller
On 2011-01-25 18:20, Jeremy Thomerson wrote: On Tue, Jan 25, 2011 at 11:14 AM, Matthias Keller wrote Hi List We've got the following scenario: After a user hopped through a wizard, he'll reach a confirmation page in our workflow. Now the session still needs to remain active but I want

Re: How to remove all previous pages from pagemap

2011-01-26 Thread Matthias Keller
expired (or whatever you configured as the page expired page). Martijn On Wed, Jan 26, 2011 at 11:17 AM, Matthias Keller matthias.kel...@ergon.ch wrote: On 2011-01-25 18:20, Jeremy Thomerson wrote: On Tue, Jan 25, 2011 at 11:14 AM, Matthias Keller wrote Hi List We've got the following scenario

Re: How to remove all previous pages from pagemap

2011-01-26 Thread Matthias Keller
for now Does anyone know if there's the possibility to override the REDIRECT_TO_BUFFER strategy for a certain redirect? This would also solve this problem as then the Session.clear() would be executed in the next request after the onClick() thanks Matt On 2011-01-25 18:14, Matthias Keller

Re: How to remove all previous pages from pagemap

2011-01-26 Thread Matthias Keller
On 2011-01-26 15:49, Martijn Dashorst wrote: On Wed, Jan 26, 2011 at 3:23 PM, Matthias Keller matthias.kel...@ergon.ch wrote: My current solution which solves this problem (although ugly) is the following code in the onClick: You could try to see if setRedirect(true); works for you

Re: onInitialize / onBeforeRender

2011-02-10 Thread Matthias Keller
On 2011-02-10 17:49, Brown, Berlin [GCG-PFS] wrote: Version: wicket1.4.13 Is there any reason onInitialize would not be called? And is it always called before onBeforeRender? When I look at my logs, it looks like there are cases where onInitialize wasn't called. But onBeforeRender was always

Re: Regarding WICKET-3321 not solved in Wicket 1.4.6

2011-02-24 Thread Matthias Keller
Hmm Well the Issue sais it is fixed in 1.4.*16* not .6 ... and 1.4.16 is not yet released Matt On 2011-02-24 11:38, Muro Copenhagen wrote: Hi, I have been waiting for the fix of Wicket-3321. It should have been solved in Wicket 1.4.6 according to the defect/jira info:

Re: Firefox 4: Modal windows redirect to invalid page, i.e WICKET-2207 in Firefox 4

2011-04-11 Thread Matthias Keller
I can confirm that an URL http://:/; is tried to be loaded in that process, although it does not result in an ugly yahoo page - as I dont have any yahoo toolbars installed. So the effect is NIL but that url nevertheless is being loaded (verified using firebug, Tab Net, then click on the link.

Re: Wicket requests

2011-04-21 Thread Matthias Keller
Hi Yes, wicket usually handles such things internally, saving you the overhead of multiple redirects. However, if you need to modify cookie data and you must rely on getting these infos back in the following request, you need to force a round trip to the client using setRedirect(true).

Wicket 1.5 and Request.getRelativePathPrefixToContextRoot() ?

2011-05-24 Thread Matthias Keller
Hi I'm trying to migrate to 1.5 RC4.2 and I've just run into a method that cannot be resolved anymore: Request.getRelativePathPrefixToContextRoot() seems to have disappeared? I used it instead of using the context prefix to circumvent various issues with URL rewriting because of a reverse

Re: Wicket 1.5 and Request.getRelativePathPrefixToContextRoot() ?

2011-05-24 Thread Matthias Keller
: The code is simplified and afaik there is no replacement for this method. You say it works but do you still need similar functionality or you ask just out of curiosity ? On Tue, May 24, 2011 at 5:14 PM, Matthias Keller matthias.kel...@ergon.chwrote: Hi I'm trying to migrate to 1.5 RC4.2 and I've

Wicket 1.5: How to stop execution after AbstractResource.respond() ?

2011-05-26 Thread Matthias Keller
We have a dynamically generated PDF we send to the user. I figured out a way to do it, but while it works, it produces lots of stacktraces in wicket: I created a PdfResource as subclass of ByteArrayResource. When the user clicks the button, in the onClick() method we do: PdfResource

Re: Wicket 1.5: How to stop execution after AbstractResource.respond() ?

2011-05-26 Thread Matthias Keller
... Thanks Matt On 2011-05-26 13:55, Martin Grigorov wrote: see how org.apache.wicket.markup.html.link.DownloadLink.onClick() does it On Thu, May 26, 2011 at 2:52 PM, Matthias Keller matthias.kel...@ergon.ch wrote: We have a dynamically generated PDF we send to the user. I figured out a way

Re: 1.5.1

2011-10-07 Thread Matthias Keller
Hi Seems to be right here: wicket:container wicket:id=entranceNameHeader.. You're missing an opening quote Matt smime.p7s Description: S/MIME Cryptographic Signature

Recommended way for wicket:for and markupIDs

2011-10-12 Thread Matthias Keller
Hi I really like the wicket:for feature; makes writing the HTML pages much less tedious -- except that it appears I have to use setOutputMarkupId() on each and every referenced Component - is this how it is expected to work? I expected that those IDs should be set automatically without a

Re: Recommended way for wicket:for and markupIDs

2011-10-13 Thread Matthias Keller
On 2011-10-13 17:52, Igor Vaynberg wrote: On Thu, Oct 13, 2011 at 2:08 AM, Martin Grigorovmgrigo...@apache.org wrote: wicket:for works as IComponentResolver, i.e. while rendering the final markup Wicket will see a ComponentTag with the special 'wicket:for' attribute and will transform it

Re: autocomplete js error in IE

2011-10-20 Thread Matthias Keller
I also see this error on the specified page with Internet Explorer 8 (WinXP SP3) It does not matter if I enable or disable the compatibility feature. Matt On 2011-10-20 13:54, Martin Grigorov wrote: Works OK for me. No JS errors. Tested with IE9 in different browser modes and document modes.

  1   2   >