Re: Redirect page via POST method

2012-10-08 Thread Matthias Keller
Hi AFAIK you can only do that by returning a normal HTTP page with a form which is auto-submitted using javascript, for example in an onload handler. Matt On 08.10.2012 11:53, cosmindumy wrote: Hello, How can I go to a page with a given url with POST method, instead of using a redirect page

Re: What exactly is IWrapModel used for?

2012-08-09 Thread Matthias Keller
be better for your OurStringResourceModel *not* to extend StringResourceModel? Sven On 08/06/2012 06:38 PM, Matthias Keller wrote: Hi I'm having some trouble porting a 1.4 application to 1.5 since we're using our own subclass of a StringResourceModel implementing load() in a special way. However

What exactly is IWrapModel used for?

2012-08-06 Thread Matthias Keller
Hi I'm having some trouble porting a 1.4 application to 1.5 since we're using our own subclass of a StringResourceModel implementing load() in a special way. However, in some cases this does not work as our subclass might get wrapped in a AssignmentWrapper and since we do not provide the

Re: How to Logout

2012-07-19 Thread Matthias Keller
a RestartResponseAtInterceptPageException with the Page we want the user to go to after the logout process (actually we use it with the class of the Page we want, but you can pass it an instance of a Page). Hope this will help. Original Message Subject: How to Logout From: Matthias Keller

Wicket 1.5 vs 1.4: StringResourcesModel with properties in the key

2012-07-18 Thread Matthias Keller
Hi I'm currently migrating a project from 1.4 and am encountering a Problem with StringResourcesModel: I've got one defined as: new StringResourceModel(details.disabled.${disabled}, this.model) isDisabled returns a boolean naturally. In 1.4 this worked as expected and the resource keys

How to Logout

2012-07-18 Thread Matthias Keller
Hi I'm trying to implement a simple logout mechanism with the need of complete session termination. For this I created a LogoutPage and mounted it using mountPage(/logout, LogoutPage.class); Now this page contains multiple components and a link to change langugage etc, therefore it is

Re: PageParameters in 1.5: a sanity check request

2011-11-23 Thread Matthias Keller
Hi And you can even leave away the if(params.getNamedKeys().contains(parameter_name)) and just do: StringValue param = params.get(param); // or use an index if you wish if (!param.isEmpty()) { ... param.toString() ... } Matt On 2011-11-23 12:17, vineet semwal wrote: ListStringValue

Re: Difference b/w SetoutputMarkupId(true) and SetOutputMarkupHolderTag(true?)

2011-11-21 Thread Matthias Keller
Hi setOutputMarkupId sets the id attribute of the HTML tag. This generally must be set if the tag shall be updated by AJAX setOutputMarkupPlaceholderTag has the effect that a *hidden* component is still added to the HTML tree but - hidden. This is used, if the component is initially not

Re: How to clear PageMap in Wicket 1.5?

2011-11-14 Thread Matthias Keller
Matthias, On Thu, Nov 3, 2011 at 9:30 AM, Matthias Keller matthias.kel...@ergon.ch wrote: Hi Martin I see this is getting in the same direction as it was with Wicket 1.4 - it just doesn't work as expected. The method you propose results in the next page shown as expected and going back

Re: How to clear PageMap in Wicket 1.5?

2011-11-03 Thread Matthias Keller
, 2011 at 2:09 PM, Matthias Keller matthias.kel...@ergon.ch wrote: Hi Martin Thanks for the quick reply. The fix doesn't work for me though, I can still go back and press reload or do anything I like. If I use session.replaceSession() it works as expected but as a side effect also changes

How to clear PageMap in Wicket 1.5?

2011-11-02 Thread Matthias Keller
Hi Upon logging out we need to keep the current user's session to still display some information but we want to remove all previous pages from the PageMap (or however that is solved in Wicket 1.5 now) so that he cannot go back and continue on these pages. In Wicket 1.4 we found a way to

Re: How to clear PageMap in Wicket 1.5?

2011-11-02 Thread Matthias Keller
Hi Martin Thanks for the quick reply. The fix doesn't work for me though, I can still go back and press reload or do anything I like. If I use session.replaceSession() it works as expected but as a side effect also changes the JSESSIONID which usually isn't what you want... I'm using it like

1.5.2: WebPageRenderer - The Buffered response should be handled by BufferedResponseRequestHandler

2011-10-24 Thread Matthias Keller
Hi I've just upgraded to 1.5.2 and I'm now seeing a WARN that didn't occur with 1.5.1: WebPageRenderer - The Buffered response should be handled by BufferedResponseRequestHandler I'm seeing it on every page load...? We're using a Wizard, if that makes a difference... Thanks Matt

Re: 1.5.2: WebPageRenderer - The Buffered response should be handled by BufferedResponseRequestHandler

2011-10-24 Thread Matthias Keller
Hi Martin Thanks for the quick reply. Is there a drawback with just ignoring the WARN message for now compared to your workaround? Thanks Matt On 2011-10-24 10:58, Martin Grigorov wrote: https://issues.apache.org/jira/browse/WICKET-4163 On Mon, Oct 24, 2011 at 10:46 AM, Matthias Keller

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.

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

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: 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

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

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

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).

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: 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: 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: 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

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

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

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

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: 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

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: 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

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: 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: 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: 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: 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: 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: 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

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: 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

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: 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: 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,

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: 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

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: 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

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: 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

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: [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

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: 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: 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: 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: 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: 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

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: 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:

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: 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

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

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

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

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

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: 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

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: 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

  1   2   >