Re: Making a datatable more accessible

2015-06-18 Thread Sven Meier
Hi, it's a little bit finicky, but it can be done: DataTable dataTable = new DefaultDataTableString>("table", columns, new SortableContactDataProvider(), 8) { protected Item> newCellItem(final String id, final int index, final IModel> model) {

Re: Wicket 6 + string resource caching

2015-06-18 Thread Sven Meier
Hi, Wicket includes the session's style when generating the cache key*. Why don't you use this to identify your current 'theme'? Then theme-specific string resources should work out-of-the-box. Have fun Sven *See Localizer#getCacheKey() On 18.06.2015 16:39, Tobias Gierke wrote: Hi, I'm w

Re: Wicket modal, change the parent page

2015-06-15 Thread Sven Meier
Hi, did you debug the problem? Is your button's hook method #onSubmit() called actually? Does the modal window close? A quickstart would help to identify the problem. Sven On 15.06.2015 03:15, Entropy wrote: I have a wicket modal that is used to let the user select from a couple options on

Re: Render multiple panels concurrently

2015-06-14 Thread Sven Meier
Hi, Wicket pages are single threaded, so no - you can't render multiple panels concurrently. You should restructure you code so that the health checks are done asynchronously. The panels just check for the availability, and render some progress indicator as long as no data is available. Re

Re: TextField -> AjaxEventBehavior-onBlur -> onEvent

2015-06-12 Thread Sven Meier
Hi, This appears to be caused by the onBlur/onEvent deal, because clicking the button means the TextField has lost focus, but it somehow results in that click not registering. there are two reasons why "click/submit" might not trigger on your button: - your AjaxEventBehavior is adding the but

Re: How to get FormComponent value outside Model

2015-06-08 Thread Sven Meier
, Jun 8, 2015 at 8:02 PM, Sven Meier wrote: Hi, After Form#onSubmit(), without any error on the Wicket side, the service tier has a validation error that belongs to a known FormComponent. With a class extending AbstractFormValidator, the known FormComponent gets the error which is shown in

Re: a sortable version of of ListDataProvider...

2015-06-08 Thread Sven Meier
o Barreiro wrote: Sven, On Mon, Jun 8, 2015 at 10:07 AM, Sven Meier wrote: Hi, my only objection would be that this SortableListDataProvider doesn't actually sort anything. AFAIK this does no harm though, so why not let the current ListDataProvider implement ISortableDataProvider? That

Re: a sortable version of of ListDataProvider...

2015-06-08 Thread Sven Meier
Hi, my only objection would be that this SortableListDataProvider doesn't actually sort anything. AFAIK this does no harm though, so why not let the current ListDataProvider implement ISortableDataProvider? Have fun Sven On 08.06.2015 08:50, Ernesto Reinaldo Barreiro wrote: On many proje

Re: How to get FormComponent value outside Model

2015-06-08 Thread Sven Meier
Hi, After Form#onSubmit(), without any error on the Wicket side, the service tier has a validation error that belongs to a known FormComponent. With a class extending AbstractFormValidator, the known FormComponent gets the error which is shown in context correctly if a FormValidator reports a

Re: Panels not refreshing when calling AjaxRequestTarget.add(), only in production mode

2015-06-02 Thread Sven Meier
Do you call formComponentPanel#setOutputMarkupPlaceholderTag(true)? Sven On 02.06.2015 17:52, lucast wrote: Dear Forum, On a form which is inside a modal window, I have an ajax checkbox where if I tick the box, I display a number of panels and if the checkbox is not ticked, I hide said panels.

Re: Making RadioChoice horizontal

2015-05-29 Thread Sven Meier
choice.setSuffix("") Have fun Sven On 29.05.2015 11:55, MartinoSuperman wrote: Dear, I made a RadioChoice on my Wicket web page with 3 radio buttons in it. These radio buttons in this RadioChoice are shown vertically. I want to make those horizontally. Can someone tell me how to do that?

Re: AutoCompleteTextField

2015-05-20 Thread Sven Meier
n, how is it possible to get the input from the text field when the user does not select one value from the listed choices, but type in some text? I would also like to get this value, but currently the model does not get updated in this case. Thanks, Chris Am 19.05.2015 um 16:36 schrieb

Re: AutoCompleteTextField

2015-05-20 Thread Sven Meier
model but do not replace the model: existModel.setObject(new List…); panel.setDefaultModel(existModel) Why doesn’t it work when replacing the model at all? panel.setDefaultModel(newModel) br, Chris Am 19.05.2015 um 23:11 schrieb Sven Meier : Hi, panel.setDefaultModel(searchModel); does your

Re: AutoCompleteTextField

2015-05-19 Thread Sven Meier
target.add(panel); send(getPage(), Broadcast.BREADTH, new ShowItem(target)); } }); Am 19.05.2015 um 16:36 schrieb Sven Meier : Sure, just implement #getChoices() accordingly. Have fun Sven On 19.05.2015 16:32, Chris wrote: Hi all, can the auto complete te

Re: Re-rendering page on errors during onBeforeRender()

2015-05-19 Thread Sven Meier
This seems to be a bug - please create a Jira issue. Thanks Sven On 19.05.2015 14:53, Michal Kára wrote: I got page with structure like: - Page +- ListView -- items \ - Footer panel Now the scenario (heavily simplified): One of the items in ListView throws soft exception during onIni

Re: AutoCompleteTextField

2015-05-19 Thread Sven Meier
Sure, just implement #getChoices() accordingly. Have fun Sven On 19.05.2015 16:32, Chris wrote: Hi all, can the auto complete text field also be used in that way that it autocompletes words in the middle, too? Such as „minster“ for „Westminster Abbey“? In the example below only autocompleti

Re: Model value change lost between AjaxButton.onSubmit() and form.onSubmit()

2015-05-13 Thread Sven Meier
Hi, I have a small example application running on AppEngine and I didn't encounter any of your problems: http://wicket-dnd-jquery.appspot.com Perhaps you can check the code for any differences between your setup and mine: https://github.com/svenmeier/wicket-dnd/tree/master/wicket-dnd-e

Re: Initializer problem - resources not being loaded

2015-05-12 Thread Sven Meier
Hi, >if the problematic dev machine produces a war (via maven), and the war is deployed to our test server, >the initializer is again never loaded. Wars built from other machines work fine. mh, sounds like a build problem. Do you have a broken wicket-sol artefact in your local maven repositor

Re: Drop Down Choice default value

2015-05-12 Thread Sven Meier
Hi, you have to override #getNullValidDisplayValue(), #getNullKeyDisplayValue() is for cases where null is *not* valid. Regards Sven On 12.05.2015 12:44, Chris wrote: Hi all, I have a Drop down choice field and would like to override the default select value. I have made following settin

Re: Load Resources From Local Folder (not in the project)

2015-04-29 Thread Sven Meier
Hi, you'll have to write your own resource implementation (see ResourceStreamResource and FileResourceStream) and render a matching ResourceReference into the header. Regards Sven On 29.04.2015 10:37, jahandideh_iman wrote: Hi, I want to be able to load custom js file from a local folder t

Re: load JS after page refresh

2015-04-27 Thread Sven Meier
Hi, I've tried your sample project and identified the problem: Since you're adding the whole page to the AjaxRequestTarget, Wicket will immediately issue a redirect to the current page. But at the end of the current request, the page is detached - this removes all temporary behaviors. The pa

Re: AjaxLazyLoadPanel

2015-04-23 Thread Sven Meier
Yes, that should do it. Sven On 23.04.2015 15:47, Martin Grigorov wrote: Well, if the browser screen dimensions are set then the JS is working, no ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Apr 23, 2015 at 4:28 PM, Sven Meier wrote: Sorry, that

Re: AjaxLazyLoadPanel

2015-04-23 Thread Sven Meier
Sorry, that should have been: >You can *not* detect Javascript support with it. Sven On 23.04.2015 14:43, Sven Meier wrote: Hi, when you have JavaScript disabled, the page will request itself via meta-refresh, that's intended. >If BrowserInfoPage has set the ClientInfo prop

Re: AjaxLazyLoadPanel

2015-04-23 Thread Sven Meier
Hi, when you have JavaScript disabled, the page will request itself via meta-refresh, that's intended. >If BrowserInfoPage has set the ClientInfo properties then JavaScript is enabled I don't think this is correct: WebClientInfo and ClientProperties are always set. You can detect Javascrip

Re: Radio group add ajax behavior

2015-04-19 Thread Sven Meier
ed. I cannot make a JS click event on this div, maybe as it is added later via the JS? http://stackoverflow.com/questions/1551102/jquery-star-rating-plugin-and-cancel-rating-button <http://stackoverflow.com/questions/1551102/jquery-star-rating-plugin-and-cancel-rating-button> thanks a lot, Chris Am

Re: Radio group add ajax behavior

2015-04-19 Thread Sven Meier
et) { // Ajax actions here System.out.println("The selected value is " + getComponent().getDefaultModelObjectAsString()); } }); Thanks, Chris Am 18.04.2015 um 13:24 schrieb Sven Meier : Looks good. I've just added an AjaxFormChoiceComponentUpdatingBehavior to

Re: Radio group add ajax behavior

2015-04-18 Thread Sven Meier
radio16radio17radio18radio19radio20 br Chris Am 18.04.2015 um 13:46 schrieb Sven Meier : Hi Chris, does the JS trigger click() on the radio when the user selects a rating? When not, check for a callback to trigger click() by yourself. Regards Sven On 18.04.2015 13

Re: Radio group add ajax behavior

2015-04-18 Thread Sven Meier
boxes through stars - with that it does not work. Without it I just tried it and AJAX works (thanks for your feedback!) Why might there be a problem with the jQuery JS? br, Chris Am 18.04.2015 um 13:24 schrieb Sven Meier : Looks good. I've just added an AjaxFormChoiceComponentUpdatingBeh

Re: Radio group add ajax behavior

2015-04-18 Thread Sven Meier
as follows: ... best regards, Chris Am 18.04.2015 um 13:14 schrieb Chris : Hi Sven, the form is added to a panel. Chris Am 18.04.2015 um 11:26 schrieb Sven Meier : Hi, is your RadioGroup is bound to in your markup? Sven On 18.04.2015 07

Re: Radio group add ajax behavior

2015-04-18 Thread Sven Meier
Hi, is your RadioGroup is bound to in your markup? Sven On 18.04.2015 07:00, Chris wrote: Hi all, I have a radio group with different radio choices and I would like to add ajax behavior to the group. With the method #AjaxFormChoiceComponentUpdatingBehavior, the #onUpdate is never called cu

Re: Package resource location does not consider current session style and locale

2015-04-17 Thread Sven Meier
Please provide a quickstart and attach it to a new Jira issue. Regards Sven On 16.04.2015 23:28, Sergiy Barlabanov wrote: We are using Wicket 6.15 (but the code seems unchanged in the latest Wicket 6 releases). We set style to Wicket session and expect Wicket to consider the style when loading

Re: Wicket Listmodel (attach objects to model but not to list)

2015-04-17 Thread Sven Meier
I'd solve it with a custom model: IModel> listModel = new LoadableDetachableModel() { protected List load() { List as = new ArrayList<>(); as.addAll(method.retrieveAlist()); as.add(...); return as; } }); Positive side effect: The list of object is not k

Re: A few questions - upgrading from 1.5 to 6.19

2015-04-16 Thread Sven Meier
> #1 rendering a full page URL See https://cwiki.apache.org/confluence/display/WICKET/Getting+a+url+for+display Sven On 16.04.2015 21:59, Sven Meier wrote: Hi, #2 is with an IndicatingAjaxLink. But the generated HTML has a bad href and no onClick(): Wicket uses event registration

Re: A few questions - upgrading from 1.5 to 6.19

2015-04-16 Thread Sven Meier
Hi, #2 is with an IndicatingAjaxLink. But the generated HTML has a bad href and no onClick(): Wicket uses event registration now: http://wicketinaction.com/2012/07/wicket-6-javascript-improvements/ Have fun Sven On 16.04.2015 19:31, Christopher Merrill wrote: Our app hasn't been under ac

Re: Changes to model in onSubmit() automatically reverted (Wicket 7)

2015-04-14 Thread Sven Meier
Hi Don, this is a duplicate of WICKET-5879. Have fun Sven Am 14.04.2015 um 21:58 schrieb Don Ferguson: I don’t know if this is a known problem in Wicket 7, but it seems like a pretty big one to me. In a form that is submitted (via ajax), the onSubmit() method updates a model object for a co

Re: Wicket 7: Problem hiding form from AjaxSubmitLink

2015-04-13 Thread Sven Meier
Sven Am 13.04.2015 um 18:01 schrieb andrea del bene: The case pointed out by Don is slightly different as the AjaxSubmitLink is attached to a tag. Adding 'attributes.setPreventDefault(true);' in updateAttributes actually solves his problem. On 13/04/2015 14:32, Sven Meier wrote:

Re: Wicket 7: Problem hiding form from AjaxSubmitLink

2015-04-13 Thread Sven Meier
Hi Andrea, since WICKET-5597 AjaxSubmitLink already changes the button to prevent default submitting of the form: tag.put("type", "button"); Have fun Sven Am 13.04.2015 um 14:19 schrieb Andrea Del Bene: Due to WICKET-5197 I think we should add to 'attributes.setPreventDefault(true);' t

Re: Improve Support for placeholder label option for DropDownChoice?

2015-04-02 Thread Sven Meier
e placeholder label option are different for both null valid vs. invalid cases. You can change these texts, see #getNullValidDisplayValue() and #getNullValidKey() or just change the text for ".nullValid" in your properties. Have fun Sven Am 02.04.2015 um 10:16 schrieb Thorsten

Re: Improve Support for placeholder label option for DropDownChoice?

2015-04-01 Thread Sven Meier
Hi, why don't you allow null (i.e. #isNullValid() returning true), while setting the DropDownChoice required? That should give you the required placeholder option, doesn't it? Regards Sven Am 01.04.2015 um 20:24 schrieb Thorsten Schöning: Hi all, I got the following error during validatio

Re: DataTable generics vs. IColumn generics

2015-03-10 Thread Sven Meier
regards Patrick Am 05.03.2015 um 18:43 schrieb Sven Meier: Hi Patrick, you can let your column implementation be generic: public class LocationColumn extends PropertyColumn { public LocationColumn(String expressionToLocation){ super(Model.of(&qu

Re: trying to redirect to external URL when using HttpsMapper

2015-03-05 Thread Sven Meier
Hi, how do you redirect to the external url? Have you compared the request sequence in the browser (e.g. with Firebug)? What are the differences between the successful and the failed redirect? Regards Sven Am 05.03.2015 um 18:50 schrieb lucast: Dear Forum, I have a form on a page where user e

Re: DataTable generics vs. IColumn generics

2015-03-05 Thread Sven Meier
the Location. Is there any way to do that? best regards Patrick Am 05.03.2015 um 15:19 schrieb Sven Meier: Hi, generic T is identical for the DataTable, and it's IColumns: it's the type of the row models. A column is responsible to provide a cell component for a row: For DataTable

Re: DataTable generics vs. IColumn generics

2015-03-05 Thread Sven Meier
Hi, generic T is identical for the DataTable, and it's IColumns: it's the type of the row models. A column is responsible to provide a cell component for a row: For DataTable only the input (e.g. Person) is interesting, the output (Location) doesn't matter. Your LocationColumn should exten

Re: adding component Dynamically

2015-03-04 Thread Sven Meier
Hi, could you be more specific on how it doesn't work? Check your browser's network console whether the request is sent actually. Then put a breakpoint in ListenerInterfaceRequestHandler#respond() and check what happens on the server. BTW you should use new AjaxEventBehavior("click") instead

Re: Accessing Current Page In Custom Request Mapper

2015-03-04 Thread Sven Meier
Hi, there's no *current* page when a REST request comes in. Your page should always fetch the current state from a central shared place. It can use an Ajax timer to check for updates or just live with outdated data until the next page refresh. Regards Sven Am 04.03.2015 um 12:12 schrieb ja

Re: Radio button select not selecting

2015-03-03 Thread Sven Meier
Please provide a quickstart[1], so we can debug the problem. Regards Sven [1] http://wicket.apache.org/start/quickstart.html Am 03.03.2015 um 11:49 schrieb avchavan: Tried that as well but did not change in behavior. -- View this message in context: http://apache-wicket.1842946.n4.nabble.co

Re: Radio button select not selecting

2015-03-02 Thread Sven Meier
You have to add that behavior to the Radio*Group*. Sven Am 03.03.2015 um 07:52 schrieb avchavan: Yes, accordion is adding listView to target. Tried using AjaxFormChoiceComponentUpdatingBehavior but it is throwing following exception at runtime: org.apache.wicket.WicketRuntimeException: Behavior

Re: Radio button select not selecting

2015-03-02 Thread Sven Meier
Hi, is #accordion() adding the listView or any of its parents to the AjaxRequestTarget? Then the radios are replaced in the browser and lose their selection. You should use an AjaxFormChoiceComponentUpdatingBehavior on the RadioGroup instead. Regards Sven Am 02.03.2015 um 13:19 schrieb a

Re: Radio button select not selecting

2015-03-02 Thread Sven Meier
Hi, since you're allowing the default, the radioButton should get selected when you click on it. I'm not sure about your "onclick" attribute though - why aren't you using AjaxRequestAttributes#setEventPropagation(STOP) ? Regards Sven Am 02.03.2015 um 12:51 schrieb avchavan: Hi here is my

Re: Localization questions

2015-02-26 Thread Sven Meier
2) Wicket's Localizer offers several methods with locale parameter, you can get it via component.getLocalizer(). Sven On 26.02.2015 12:22, Maxim Solodovnik wrote: Hello All, I have couple of questions related to localization: 1) is there any way to list all available locales in Application?

Re: Using forms defined in panels

2015-02-26 Thread Sven Meier
Hi, the easiest solution is declare regModel as final, then you can "do something" as follows: form.add(new SubmitButton("register") { public void onSubmit() { // do something regModel.getObject().getUserName(); } }); Note t

Re: Detecting if javascript is disabled

2015-02-25 Thread Sven Meier
Hi, you can use RequestCycleSettings#gatherExtendedBrowserInfo or AjaxClientInfoBehavior to detect Javascript support. Note that there seems to be some confusion about ClientProperties#javaEnabled: http://stackoverflow.com/questions/10084401/javascript-detection-not-working-anymore Don't u

Re: Dropdown choice with wicket 6.19.0

2015-02-25 Thread Sven Meier
Hi, what model is your dropDownChoice working on? Are you using a CompoundPropertyModel? A quickstart would help identifying the problem. Regards Sven On 25.02.2015 11:39, avchavan wrote: Code: private DropDownChoice reportsChoice; final ChoiceRenderer renderer = new ChoiceRenderer("value

Re: Large forms

2015-02-23 Thread Sven Meier
Hi, read here for a start: http://stackoverflow.com/questions/12120256/generate-html-from-java-beans-at-compile-time Have fun Sven On 23.02.2015 17:10, ChambreNoire wrote: Hey there, In the case of large forms with 20+ fields, how should one go about coding the wicket components? I have a la

Re: Resolving nested properties

2015-02-21 Thread Sven Meier
Hi, such a feature was asked a few times, e.g.: http://stackoverflow.com/questions/16684200/refer-to-one-property-from-another But apparently it never gained much interest in the community. In my experience you won't find many cases where this is useful anyway. Have fun Sven On 21.02.2015

Re: form AjaxFormComponentUpdatingBehavior validation

2015-02-18 Thread Sven Meier
Happened = true });"); } }); Regards Sven On 18.02.2015 15:59, Francois Meillet wrote: Thanks Sven, yes this is a javascript issue. I look for a nice way (a la Wicket) to disable the blur event when onunload and onclick are fired. François Meillet Le 18 févr. 2015 à 12:40, Sven Meier a

Re: form AjaxFormComponentUpdatingBehavior validation

2015-02-18 Thread Sven Meier
Hi, this is rather a JavaScript issue: http://stackoverflow.com/questions/13729837/jquery-stop-blur-event-when-clicking-submit-button Regards Sven On 18.02.2015 11:35, Francois Meillet wrote: Hi All, 1) I have a Form with a Textfield which has a AjaxFormComponentUpdatingBehavior (blur) Wh

Re: MarkupException after session time out

2015-02-17 Thread Sven Meier
Hi, can you provide a quickstart please? Regards Sven On 17.02.2015 13:07, Karl-Heinz Golz wrote: hello, I'm faced with an error in following situation: User opens a webpage (e.g. Page1), do some other things, comes back after session time out and click some link (onClick-event) on the page.

Re: Wicket 6 onmouseover and onclick event misbehavior

2015-02-11 Thread Sven Meier
On 11.02.2015 09:50, avchavan wrote: @Sven Meier I didnt get the "Why don't you use a ":hover" pseudo class?" Also, i had one more question regarding the onmouseover event, it gets called up the whole time i have the cursor over that component. Is there a way to use it prope

Re: Wicket 6 onmouseover and onclick event misbehavior

2015-02-11 Thread Sven Meier
Hi, > firstContainer2.add(new AjaxEventBehavior("mouseover") { > @Override > protected void onEvent(AjaxRequestTarget target) { > target.add(firstContainer2); > } >}); the "click" never has a chance to get through: You're updating firstContainer2 on "mouseover", replacing the DOM ele

Re: CanvasImage - base64 content in HTML pages

2015-02-10 Thread Sven Meier
Hi Tobias, interesting, many thanks. ResourceReference and/or IResource would make more general constructor arguments though. Have fun Sven On 09.02.2015 21:46, Tobias Soloschenko wrote: Hi, just wanted to get feedback for a little component I created just a few minutes ago. The CanvasIm

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-04 Thread Sven Meier
02.2015 um 14:14 schrieb Sven Meier : Your container has to output its markup id: container.setOutputMarkupId() Regards Sven On 04.02.2015 14:11, Chris wrote: Hi, When the user clicks on a certain icon, a specific part of the page should be reloaded through ajax. The icon is part

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-04 Thread Sven Meier
Your container has to output its markup id: container.setOutputMarkupId() Regards Sven On 04.02.2015 14:11, Chris wrote: Hi, When the user clicks on a certain icon, a specific part of the page should be reloaded through ajax. The icon is part of a panel, the specific part is a webm

Re: Empty form values after successful onSubmit?

2015-02-02 Thread Sven Meier
Hi, I don't think you're doing something weird, you're just seeing the normal Wicket behavior: >I debugged a bit Good! >that "success" calls though to some logic which marks my page as dirty >generated a new version number, stores the changed page in the session All pretty normal. >I don't

Re: swap panels from child element

2015-02-02 Thread Sven Meier
Hi, replacing is really easy: this.addOrReplace(panel); ... as long as all your panels have an identical Wicket id. I often prefer this approach over changing visibility because of smaller session size (i.e. not keeping unused panels in the component tree) and simpler markup (i.e. not requ

Re: Empty form values after successful onSubmit?

2015-02-02 Thread Sven Meier
Hi Thorsten, a Form clears all FormComponents' input automatically on a successful submit. Why do you think that this is not the case? Regards Sven On 02.02.2015 17:11, Thorsten Schöning wrote: Hi all, I have some very straightforward forms, but am really new to the whole stateful forms/p

Re: Wicket 7 for production use?

2015-02-01 Thread Sven Meier
Hi, I don't have any objections, but I don't see much sense in restoring the broken 6.x behavior. Yes, keeping a deprecated method is nice - it's not necessary for a major release though. We could deprecate #isLinkEnabled() in the next 6.x version (given it is released before 7.0). My 2 ce

Re: Wicket 7 for production use?

2015-02-01 Thread Sven Meier
Hi Don, I've added a line to the migration docs related to the generics changes, i.e. WICKET-5350. Many thanks Sven On 01.02.2015 00:44, Don Ferguson wrote: Here is what I encountered migrating a moderately large wicket/bootstrap app from 6.1.18 to 7.0.0-M4. There were 8 changes that requ

Re: Ajax download stops AjaxSelfUpdatingTimer

2015-01-29 Thread Sven Meier
I'll take a look at it today. Sven On 30.01.2015 07:14, elvis.ciocoiu wrote: I've opened an issue on Jira with my problem. WICKET-5822 . -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-download-stops-AjaxSel

Re: AttributeAppender seems to be ignored in AbstractAjaxBehavior.onComponentTag

2015-01-27 Thread Sven Meier
Hi Thorsten, adding a behavior to the tag is nothing you would want to do in your behavior, because it's too late to have any effect on the current rendering (see Component#renderComponentTag()). Behaviors on markup tags are meant to be used to alter the markup independent of any component,

Re: CheckGroup in a DataTable

2015-01-26 Thread Sven Meier
Hi, > I find it tacky to have to wrap the entire DataTable in a span or a Div for check group usually your web designer will use enough DIVs in the markup anyway, so you rarely have to add an additional one just for your Wicket component. "AjaxFormChoiceComponentUpdatingBehavior" get calle

Re: CheckGroup in a DataTable

2015-01-25 Thread Sven Meier
Hi, > in order for CheckGroup to work, I think I have to wrap it in a "span" correct, the CheckGroup needs its own HTML tag. >Adding AjaxFormChoiceComponentUpdatingBehavior is not receiving any events. I've checked your code posted on Nabble, but it didn't seem to include the relevant bits.

Re: Wicket panel #oninitilize for replacing

2015-01-21 Thread Sven Meier
Hi, you should move the retrieval of jobs out of your panel: Let your page do this and just pass the retrieved jobs to the panel *or* replace it with something else. BTW it's unusual to have a non-page constructor with pageParameters as arguments. Hope this helps Sven On 21.01.2015 12:54,

Re: replacing panels using replaceWith in wicket

2015-01-17 Thread Sven Meier
Hi, AgileJobDetails.this.replaceWith(...) your AgileJobDetails is not yet added to a parent, yet you're trying to replace it with another component. Check your component hierarchy. Regards Sven On 17.01.2015 16:14, K wrote: Hi i am trying to navigate between two panels. my code has a con

Re: AjaxLazyLoader

2014-12-19 Thread Sven Meier
Hi, can you provide a quickstart? Regards Sven On 19.12.2014 14:53, F.O.O wrote: My production app switched to the AjaxLazyLoad rendered panel which has a ListView component added to it. But I noticed a pattern that the first render of the LazyLoadPanel results to an error because it renders

Re: initModel and 'compound' components only

2014-12-19 Thread Sven Meier
ticket for this? Do you want me to open one? Best regards, Sebastien On Thu, Dec 18, 2014 at 8:09 PM, Sven Meier wrote: Hi Sebastien, this topic was discussed before: When searching parental components for a IComponentInheritedModel, #initModel() is skipped to prevent unnecessary creation of

Re: initModel and 'compound' components only

2014-12-18 Thread Sven Meier
Hi Sebastien, this topic was discussed before: When searching parental components for a IComponentInheritedModel, #initModel() is skipped to prevent unnecessary creation of intermediate models. See the comment on line 3788 ff: https://github.com/apache/wicket/blob/master/wicket-core/src/main/

Re: Title tab in Tabbedpanel

2014-12-18 Thread Sven Meier
Hi, use a disabled tab: http://apache-wicket.1842946.n4.nabble.com/AjaxTabbedPanel-Enable-Disable-Individual-Tab-td4380339.html Regards Sven On 18.12.2014 10:57, K wrote: Hi i am workin with tabbedpanel in wicket. i have created a tabbedpanel for my search page

Re: TableTree expand node issue

2014-12-18 Thread Sven Meier
Hi, after serialization/deserialization of the page, Homepage#ROOT_NODE is no longer equal to the node passed to your treeProvider's #hasChildren() - thus the expand link is no longer enabled. There are different solutions to this problem, e.g. implementing #equals and #hashcode in HomePage.

Re: IPageRendererProvider - HTTP 500 issue

2014-11-19 Thread Sven Meier
lEarlyAndLeaveNoOneBehind(Lifecycles.java:29) com.wideplay.warp.persist.PersistenceFilter.doFilter(PersistenceFilter.java:155) On Mon, Nov 17, 2014 at 7:16 PM, Sven Meier wrote: Can you reproduce the problem in a quickstart? Sven On 11/17/2014 06:46 PM, Wayne W wrote: Hi, We had the requirem

Re: IPageRendererProvider - HTTP 500 issue

2014-11-17 Thread Sven Meier
Can you reproduce the problem in a quickstart? Sven On 11/17/2014 06:46 PM, Wayne W wrote: Hi, We had the requirement that we needed to use RedirectPolicy.NEVER_REDIRECT for a single page in our app . We used this code: setPageRendererProvider(new IPageRendererProvider() { @Override public

Re: RadioGroup not updating in ajax event

2014-11-17 Thread Sven Meier
Hi, please create a quickstart, then we will able to identify the problem. Sven On 11/17/2014 07:59 PM, Entropy wrote: Nobody has ideas? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RadioGroup-not-updating-in-ajax-event-tp4668415p4668438.html Sent from the User

Re: RenderStrategy.ONE_PASS_RENDER possible for single page?

2014-11-13 Thread Sven Meier
ed setting setStatelessHint(true); but it always does a 302 redirect. I see something like this in the Net panel in Firebug: https://www.example.com/share/df43f 302 https://www.example.com/share/df43f?1 200 Any idea? thanks On Thu, Nov 13, 2014 at 11:07 AM, Sven Meier wrote: Hi, make your page state

Re: RenderStrategy.ONE_PASS_RENDER possible for single page?

2014-11-13 Thread Sven Meier
Hi, make your page stateless, then no redirection will occur. Sven On 11/13/2014 11:55 AM, Wayne W wrote: Hi, We have an issue with hyperlinks Microsoft Word and Excel documents. Its seems to vary from version and OS, but the long and short of it is that Word when a user clicks on a link it u

Re: form submit / parameters sometimes missing

2014-11-13 Thread Sven Meier
rick Am 12.11.2014 13:51, schrieb Sven Meier: Url length exceeded? http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers Sven On 11/12/2014 11:32 AM, Patrick Davids wrote: ormdd_hf_0= &tabs:components:3:attributeComponent:form:pibiChoice=0 &t

Re: form submit / parameters sometimes missing

2014-11-12 Thread Sven Meier
Url length exceeded? http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers Sven On 11/12/2014 11:32 AM, Patrick Davids wrote: ormdd_hf_0= &tabs:components:3:attributeComponent:form:pibiChoice=0 &tabs:components:3:attributeComponent:form:di17:stateb

Re: PropertyModel / PropertyResolver / Map or List access

2014-11-06 Thread Sven Meier
Hi, you're telling PropertyModel to look up property "list" from MyPage, but "list" is not a list, it's a model, models don't have a property "1". Use this instead: new Label("myLabel", new PropertyModel(list, "[1],anyProperty")) ... or: new Label("myLabel", new PropertyModel(MyPage.thi

Re: Return to an html id on a response page

2014-10-17 Thread Sven Meier
Hi, you should not keep references from one page to other pages, use a PageReference instead. See the following for some ideas on how to scroll to an anchor: http://stackoverflow.com/questions/14436899/how-to-add-anchor-in-wickets-setresponsepage Regards Sven On 10/17/2014 07:57 PM, Nigel

Re: Table Tree expand node

2014-10-17 Thread Sven Meier
padding-right: 1em; } [tree] Thanks, -Mihir. On Thu, Oct 16, 2014 at 4:36 PM, Sven Meier wrote: Hi, Expand and collapse of the node using '+' icon next to Folder path. It shows the scroll bar only if I revisit the same page by clicking the menu option. are you usin

Re: Table Tree expand node

2014-10-16 Thread Sven Meier
Hi, >Expand and collapse of the node using '+' icon next to Folder path. >It shows the scroll bar only if I revisit the same page by clicking the menu option. are you using custom CSS to style your page? What happens if you run without this CSS, does the scrollbar appear immedtiately? Sven

Re: Anyway of stopping this?

2014-10-16 Thread Sven Meier
Hi, what RenderStrategy are you using? WIth REDIRECT_TO_BUFFER Wicket should send a redirect to the search results page after your form's submit. Sven On 10/16/2014 07:16 PM, Wayne W wrote: Hi, we have a simple search form: Form form = new Form("searchForm") { @Override protected void o

Re: Localizing Wizard buttons

2014-09-21 Thread Sven Meier
Are you sure you're using a spanish locale in your session? Do you keep your resources under src/main/java? Is Maven configured to copy these? Sven On 09/21/2014 04:17 PM, Maxim Solodovnik wrote: Hello All, I would like to change couple of labels on my custom Wizard (extending org.apache.wic

Re: how to use PropertyModel for saving image to database

2014-09-20 Thread Sven Meier
Hi, FileUploadField works with IModel only. Usually you keep the fileUpload in your component and explicitly do something with its bytes in your #onSubmit(). Hope this helps Sven On 09/21/2014 01:58 AM, Hasan Çelik wrote: hi, i have a file upload process for image. fileupload.java https:

Re: resource encoding troubles

2014-09-20 Thread Sven Meier
blem is in Wicket (at least not in 6.16). I guess your next steps would be to verify that you get the same results and, assuming that you do, start removing things from your page that has the problem until you find an element that is causing the problem. Thanks Andrew On Thu, Aug 28, 2014

Re: MarkupContainer rendering without children

2014-09-19 Thread Sven Meier
Hi, a MarkupContainer does not load additional markup, it just uses the markup of its parent. I'm not sure about the terminology, but IMHO a MarkupContainer does not have an 'associated' markup. Just putting an HTML file beside your class won't change that. Sven On 09/19/2014 01:36 PM, Th

Re: Programmatic Markup with fallback

2014-09-15 Thread Sven Meier
Hi, which Wicket version? The first approach leads to a MarkupException here with Wicket 1.6.x. Regards Sven On 09/15/2014 07:37 PM, Thibault Kruse wrote: Hi, I am trying to create a wicket panel that renders markup from some remote source, but if fetching fails, renders some fallback markup

Re: resource encoding troubles

2014-08-29 Thread Sven Meier
12:08 PM, Sven Meier wrote: ... My configuration, as far as I can tell, is correct. From what you've written, I'd agree. You should create a quickstart. This will easily allow us to find a possible bug. Better than that, I'd like to trace down the bug, fix it, and file a patc

Re: resource encoding troubles

2014-08-28 Thread Sven Meier
Hi Garret, > I like to find the source of the problem. Me too :). > My configuration, as far as I can tell, is correct. From what you've written, I'd agree. You should create a quickstart. This will easily allow us to find a possible bug. Regards Sven On 08/28/2014 07:56 PM, Garret Wilso

Re: Clearing pagestore

2014-08-28 Thread Sven Meier
r any reason then it is OK, i.e. PageStoreManager#sessionExpired(String) will call pageStore.unbind(sessionId). WDYT ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 28, 2014 at 11:11 AM, Sven Meier wrote: Hi, is it OK to revert the change in org.apac

Re: Weird ClassNotFoundException (wicket7-M2)

2014-08-28 Thread Sven Meier
ith wicket6 and doesn't work with wicket7 based application) Have you tried wicket-dnd with wicket7 application (I cannot check due to other dependencies)? On 28 August 2014 14:14, Sven Meier wrote: Hi, release com.github.svenmeier.wicket-dnd for wicket7 the current version is compatible with

<    1   2   3   4   5   6   7   8   9   10   >