Re: AjaxFallbackDefaultDataTable and CheckBox Column

2013-04-19 Thread Sven Meier
Check SubmitLinkPagingNavigator's markup. Sven On 04/19/2013 12:03 AM, dhongyt wrote: I think I wrapped my head on it a bit more and starting to understand what navigation is. So now I have this. I believe I need to override the PagingNavigator populateItem function but I'm trying to get a

Re: AjaxFallbackDefaultDataTable and CheckBox Column

2013-04-19 Thread Sven Meier
Easiest is to wrap the whole table in a form. Sven On 04/19/2013 07:34 PM, dhongyt wrote: I have been playing some more with the code and I'm now thinking that maybe I should just overrite the newNavigation function. That will allow me to override the newPagingNavigationLink function. My

Re: AjaxFallbackDefaultDataTable and CheckBox Column

2013-04-20 Thread Sven Meier
Hi, the classes in the following archive duplicate AjaxNavigationToolbar but use AjaxFormSubmitBehaviors instead: https://dl.dropboxusercontent.com/u/52076310/AjaxSubmitPaging.zip Usage: Form form = new Form(form); add(form); form.add(new AjaxSubmitDefaultDataTableFoo,

Re: Nested forms: error messages of the inner form now showing up

2013-04-23 Thread Sven Meier
Is this the expected behavior? No, it isn't. Please create a quickstart and attach it to a new Jira issue. Sven On 04/22/2013 06:57 PM, pureza wrote: I have two nested forms. When I submit the outer form, the inner form's validation fails but no error is shown. I know the validation fails

Re: Custom Error Message with StringValidator.length Between

2013-04-23 Thread Sven Meier
What Wicket version? The key should be myField.StringValidator.range, see StringValidator's javadoc. Sven On 04/23/2013 12:12 PM, madmax108 wrote: Hi, I'm validating a field with StringValidator.lengthBetween, but somehow, it only displays the default error message rather than one I've

Re: DefaultDataTable will not render bottomtoolbar for export

2013-04-23 Thread Sven Meier
Show us your #onSubmit(ART) ... formatted please. Sven On 04/23/2013 02:54 PM, christoph.ma...@t-systems.com wrote: Hello, I have a Problem with the DefaultDataTable and the Export csv. Here is my code: DefaultDataTableProtocolSearchData,String searchTable = new

Re: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-23 Thread Sven Meier
-Ursprüngliche Nachricht- Von: Sven Meier [mailto:s...@meiers.net] Gesendet: Dienstag, 23. April 2013 15:16 An: users@wicket.apache.org Betreff: Re: DefaultDataTable will not render bottomtoolbar for export Show us your #onSubmit(ART) ... formatted please. Sven On 04/23/2013 02:54 PM

Re: Wicket stack on a netbook

2013-04-26 Thread Sven Meier
I did my Wicket development on a netbook a few years ago and it worked fine. Running Eclipse on XGA display resolution was a PITA though :(. Sven On 04/25/2013 09:17 PM, Rafael Barrera Oro wrote: Hello everyone! I was wandering if anyone was successful in developing wicket apps from a netbook

Re: Understanding Wicket's Session

2013-04-26 Thread Sven Meier
These lines looks suspicious: public Session newSession(Request request, Response response) { sessionService = new SessionService(request); return sessionService; } final DownloadBagService downloadBag =

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-28 Thread Sven Meier
Hi, 1) None of the checkboxes changes state after the Ajax update (but the Ajax request is processed) You're calling #setRenderBodyOnly(false) too late. By default CheckGroup does not render its tag, so you have to enable it for Ajax updates *before* it is rendered: final CheckGroup

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-29 Thread Sven Meier
Hi, I didn't check the code with a compiler so please excuse any errors. 1) see ListView#newItem(int, IModel) 2) see Component#onConfigure() 3) enabled could be a member variable of the containing panel Regards Sven On 04/29/2013 04:47 PM, eugenebalt wrote: Thanks Sven, let me clarify

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-29 Thread Sven Meier
1.4.7 ... that's really old :/. Sven On 04/29/2013 09:13 PM, eugenebalt wrote: Thanks Sven. We don't have the below methods. We are using Wicket 1.4.7, probably time to upgrade. ListView#newItem(int, IModel) see Component#onConfigure() -- View this message in context:

Re: How to Perform LessThan or GreaterThan Validations Effectively?

2013-04-30 Thread Sven Meier
IFormValidator Regards Sven On 04/30/2013 09:09 AM, madmax108 wrote: Hi, I have a form in which I'm taking in numeric values from the user, let's say 1,2,3,4,5. Now, I also have defaults specifying the maximum or minimum values for the entered numbers (eg. 1,2,3 should be greater than x,y,and

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-05-03 Thread Sven Meier
With something like this: https://github.com/svenmeier/apachecon-wicket/blob/master/src/main/java/eu/apachecon/base/ui/performance/IndexEventBehavior.java https://github.com/svenmeier/apachecon-wicket/blob/master/src/main/java/eu/apachecon/base/ui/performance/IndexEventBehavior.js ... you can

Re: Wierd ajax thing

2013-05-03 Thread Sven Meier
but I can see that the code is setting the formObject to the right values as the event leaves my code, sets the targets, and i know that it then shows up wrong in the page Maybe a previous input is lurking around? Try calling #clearInput() on your FormComponents when you change the

Re: Validation messages go missing in ajax form example

2013-05-03 Thread Sven Meier
Works fine here: Messages show up with either button (and as you type too). Sven On 05/03/2013 11:11 PM, Taro Fukunaga wrote: Hi, I'm having a problem with validation in a form with ajax buttons. I am using Wicket 6.7.0 and running Form Example: shows ajax form processing on my local box (I

Re: Wicket MarkupContainer error, the component failed to render

2013-05-05 Thread Sven Meier
I'm not fluent in Scala but it seems you're adding additional components without reason: private class TextDesc(id: String, workSheet: WorkSheet) extends TextField[String](id) { add(new TextField(textField, new Model[String]() { TextDesc *is* a textfield, why are you adding another

Re: CheckGroup, CheckGroupSelection and Check behavior

2013-05-06 Thread Sven Meier
You have to wrap you whole table in a form, otherwise only the value of the single check is sent to the server. Sven On 05/06/2013 03:34 PM, David Beer wrote: Hi All I am trying to add Checkgroup selection behaviour to my table, this all works fins so far. I can use the select all and

Re: CheckGroup, CheckGroupSelection and Check behavior

2013-05-07 Thread Sven Meier
/td /tr /table /span /form The full src can be downloaded from here https://dl.dropboxusercontent.com/u/1979126/Wicket-Bootstrap-DataTable.zip Appreciate the help on this. Thanks David On 06/05/13 15:53, Sven Meier wrote: You have to wrap

Re: Are there any major changes between Wicket 1.5.x and 6.x when it comes to the unit tests?

2013-05-09 Thread Sven Meier
See WICKET-5147 Sven On 05/09/2013 06:47 PM, Paul Bors wrote: Or is this just one of the major architectural changes? I simulate the user logging into the web app between test methods and my tests that used to run in 1.5.9 now crash in 6.7.0 with: java.lang.OutOfMemoryError: GC

Re: Component twice in markup while ajax refresh in Wicket 6.7 (migrated from 1.5.10)

2013-05-14 Thread Sven Meier
Create a quickstart and attach it to a Jira issue please. Sven On 05/14/2013 04:37 PM, Nico wrote: Hi I migrated my application from Wicket 1.5.10 to 6.7 During testing I recognized that during an ajax update (replacement) of a component, the markup of the component is twice in the HTML

Re: AutoCompleteTextField issues

2013-05-15 Thread Sven Meier
Take a look at autocomplete's javadoc: * An {@link IAutoCompleteRenderer} is used for rendering of choices. To convert input back into a * non-String type you will have to provide a custom {@link IConverter}, either by overriding * {@link #getConverter(Class)} or by setting a suitable

Re: Manage exceptions on a nested multipart upload form

2013-05-15 Thread Sven Meier
This was 'discussed' recently: http://apache-wicket.1842946.n4.nabble.com/Overriding-Form-onFileUploadException-in-nested-forms-td4657874.html I don't remember a Jira issue being created though. Sven On 05/15/2013 10:55 AM, Guillaume Mary wrote: Hi all ! I have a nested form inside a root

Re: Session creates multiple times

2013-05-16 Thread Sven Meier
com.alee.urait.web.Urait.newSession(Urait.java:89) org.apache.wicket.Application.fetchCreateAndSetSession(Application.java:1557) org.apache.wicket.Session.get(Session.java:168) org.apache.wicket.request.handler.render.PageRenderer.*getSessionId*(PageRenderer.java:101)

Re: Session creates multiple times

2013-05-16 Thread Sven Meier
A quickstart would help to identify the issue. Sven On 05/16/2013 01:59 PM, Michael Zhavzharov wrote: Thank you, Sven! I have created an issue, but I don't know it it right in it's description. https://issues.apache.org/jira/browse/WICKET-5191 But can I do any hack now to get rid of this

Re: Wizard issue in Development mode

2013-05-17 Thread Sven Meier
IDebugSettings#componentUseCheck() is false for DEPLOYMENT configuration. Wizards uses a feedbackPanel, so you will have to add a corresponding tag to your markup. You can set it invisible though. Sven On 05/17/2013 05:55 PM, yjordens wrote: Config details:

Re: Not redirecting to stateful URL after upgrade from 6.6.0 to 6.7.0

2013-05-20 Thread Sven Meier
May be related to WICKET-5083. Please retry with the upcoming 6.8.0: https://dist.apache.org/repos/dist/dev/wicket/6.8.0/ Sven On 05/20/2013 06:53 PM, Barrett Snyder wrote: Is anyone else having problems where wicket is not redirecting to a stateful URL when going to a mounted URL for a

Re: Issue in 6.8.0

2013-05-21 Thread Sven Meier
Hi Maxim, the case is clear, no need for a quickstart. Sven On 05/21/2013 08:59 AM, Maxim Solodovnik wrote: Martin, Thanks for the quick reply! I see no other way than copy paste AjaxFormValidatingBehavior, so I'll file JIRA issue. Is it OK if will create it without quickstart? On Tue,

Re: REDIRECT_TO_BUFFER render strategy and Wicket 6.8.0

2013-05-23 Thread Sven Meier
Please attach a quickstart to a new jira issue showing the difference between 6.7.0 and 6.8.0. Thanks Sven On 05/23/2013 11:41 AM, Dirk Forchel wrote: For security reasons we've added a filter to our web application which invalidates session if the session ID is exposed in the URL (disable

Re: IAjaxCallListener issues in AbstractDefaultAjaxBehavior. updateAjaxAttributes

2013-05-27 Thread Sven Meier
Hi, you're adding an additional behavior that has nothing to do with the behavior created in AjaxLink#newAjaxEventBehavior(). SomeAjaxBehavior#updateAjaxAttributes() and #respond() are never invoked. Sven On 05/27/2013 10:22 PM, stefanofg wrote: on the other hand, if I create an

Re: Aw: Re: Re: Re: Re: wicket 6 and a confirm dialog

2013-05-29 Thread Sven Meier
Hi Marcel, it seems #stopImmediatePropagation() does not work in jQuery when called from an inline event handler: http://jsfiddle.net/2YUne/ jQuery marks the event as stopped immediately only, without delegating this information to the original event (jQuery.js):

Re: Wicket 6 ListItem add CSS

2013-05-31 Thread Sven Meier
Put the wicket id on the tr tag: tr wicket:id=financeAccounts td span wicket:id=accountNumber/span /td td span wicket:id=accountName/span /td td

Re: AbstractDefaultAjaxBehavior complete handler

2013-06-04 Thread Sven Meier
Hi, I pasted you #updateAjaxAttributes() into ChoicePage from wicket-examples and alert shows up there. Sven On 06/04/2013 05:02 PM, heikki wrote: // this doesn't do anything @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {

Re: Wicket ID sometimes changes, sometimes stays the same

2013-06-04 Thread Sven Meier
If you specify an id attribute in your markup, Wicket will use it unaltered: span wicket:id=wicketId id=stableMarkupId/span Sven On 06/04/2013 09:51 PM, eugenebalt wrote: Some of my components have the same static Wicket ID, but others look like field7 or field5 while their ID is field.

Re: WICKET-4500 / WICKET-5140 and RestartResponseAtInterceptPageException.clearOriginalDestination()

2013-06-05 Thread Sven Meier
Hi Dirk, overriding #onUnauthorizedInstantiation() wouldn't help you, since #restartResponseAtSignInPage() overwrites the old interceptData with a new one. You're the one to decide when the interceptData can be cleared: In the page constructor would be a possibility. An

Re: wicket 6 and FilterToolbar

2013-06-06 Thread Sven Meier
Hi Marcel, adding a FilterForm/FilterToolbar to the DataTablePage in wicket-examples works fine here. Time to create a quickstart? Sven On 06/06/2013 12:47 PM, Marcel Hoerr wrote: Hey folks, i am currently trying to use a FilterToolbar with a DataTable (wicket 6). Everything works fine

Re: Wicket ID sometimes changes, sometimes stays the same

2013-06-06 Thread Sven Meier
Check Component#getMarkupIdImpl(), it gets the id from the markup if no id was explicitly set. Perhaps you're trying to access the markup id before the component is attached to a page? Sven On 06/06/2013 05:30 PM, eugenebalt wrote: Solution # 2 (setMarkupId) worked for us. But Sven's

Re: ResourceResponse processing Accept-Ranges

2013-06-07 Thread Sven Meier
Hi, your dynamic resource can parse a Range header from the request and send back a Content-Range header along the requested content. This should work as with any servlet too. Let us know how you solved this. Regards Sven -- View this message in context:

Re: Custom markup cache key in hierarchy

2013-06-07 Thread Sven Meier
Hi, I think your usage should work. Can you create a quickstart and attach it to a Jira issue? Sven On 06/05/2013 09:27 PM, Bas Gooren wrote: Hi *, We've built a platform which hosts dynamic websites. Websites can be added/updated/removed on demand, and all run on a single wicket

Re: ResourceResponse processing Accept-Ranges

2013-06-07 Thread Sven Meier
%2BqdNGOPdp6QiJVLyKUVYpe5AQ%40mail.gmail.com%3E On Fri, Jun 7, 2013 at 4:45 PM, Sven Meier s...@meiers.net wrote: Hi, your dynamic resource can parse a Range header from the request and send back a Content-Range header along the requested content. This should work as with any servlet too. Let us know how

Re: setResponsePage does not work / on (own) ajax requests

2013-06-07 Thread Sven Meier
On what JavaScript event is your behavior listening? Sven On 06/07/2013 12:38 PM, Patrick Davids wrote: Hi all, I implemented a panel having its own AbstractAjaxBehavior. I provided the callback url to my pagepanel, the ajax request works; everything seems fine. Than I implemented an

Re: setResponsePage does not work / on (own) ajax requests

2013-06-07 Thread Sven Meier
' } on my own. (Im working with jquerys autocomplete.) Patrick Am 07.06.2013 12:48, schrieb Sven Meier: On what JavaScript event is your behavior listening? Sven On 06/07/2013 12:38 PM, Patrick Davids wrote: Hi all, I implemented a panel having its own AbstractAjaxBehavior. I provided

Re: Connecting... in Firefox's tab title

2013-06-07 Thread Sven Meier
Should I open a JIRA and should I attach a quickstart to it? Yes please. And don't forget to add the collected information to it. Thanks Sven On 06/07/2013 05:06 PM, Guillaume Smet wrote: Hi, After some digging, it's related to the multipart ajax request via posting an iframe. The iframe

Re: AjaxFallbackDefaultDataTable: cell not receiving event after sorting

2013-06-07 Thread Sven Meier
Hi, your solution looks good to me. Check the Ajax debug window for any problems with the requests. Then put a breakpoint on your behavior's #onEvent() and check whether is is triggered. Sven On 06/07/2013 04:15 PM, dlock wrote: Hi. I have a simple abstract panel that I display as a cell

Re: reuse Form Panel code for WizardStep?

2013-06-08 Thread Sven Meier
You could move most of the stuff out of your WizardStep into a new Panel subclass. Use this class inside your WizardStep or separately on other places. Sven On 06/08/2013 05:47 PM, always_rick wrote: Hi, How can I reuse a form panel code for WizardStep, in both html and java class? My

Re: AjaxFallbackDefaultDataTable: cell not receiving event after sorting

2013-06-08 Thread Sven Meier
Hi, when a column is sorted, the whole table will be updated on the Ajax request: That includes its HTML markup *and* the JavaScript in the header. So normally the markup ids should match. I can't think of a reason why this fails on your project. Could you create a quickstart? Sven On

Re: AjaxEventBehavior(onclick)

2013-06-08 Thread Sven Meier
Override the following in your event behavior: @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.getDynamicExtraParameters().add( return {'ctrl' : attrs.event.ctrlKey, 'shift' : attrs.event.shiftKey} ); } You

Re: Do all POJOs have to implement Serializable?

2013-06-11 Thread Sven Meier
If your component holds a reference to a pojo (either directly or via a model), then the pojo has to be serializable. If you can let go of the pojo at the end of the request (in your component's #onDetach() or your model's #detach()), then your pojo won't be serialized along with your page.

Re: RadioChoice AjaxFormChoiceComponentUpdatingBehavior and validation

2013-06-12 Thread Sven Meier
Have you tried changing AjaxRequestAttributes#setAllowDefault(true) and #setEventPropagation(BUBBLE) ? Otherwise please create a quickstart so we can debug the problem. Regards Sven On 06/12/2013 03:43 PM, divad91 wrote: Anyone notice the same problem ?

Re: Getting Form Data Without Submitting Form

2013-06-12 Thread Sven Meier
Why not use two different forms, one for searching and the other for the save fields? You can even nest the first one into the other. Sven On 06/12/2013 09:09 PM, Richard W. Adams wrote: I have a FormComponentPanel with an AjaxLink. The link's onClick() method runs a database search based on

Re: wicket and JPA

2013-06-13 Thread Sven Meier
Please read 9.6 Detachable models of the Wicket Free Guide and come back with your questions. Sven On 06/13/2013 01:20 PM, Boris Brinza wrote: Hello to all, I have some fundamental issues with integration of jpa into wicket. I develop web application using wicket 6 and JPA (eclipselink).

Re: wicket and JPA

2013-06-14 Thread Sven Meier
onDetach, if i understand it right. In pdf, If we don't want to loose these changes we must explicitly persist the entity before the detaching phase occurs. So same problem with update of JPA enbtity. Insert is ok, just call persist(), but update? On 06/13/2013 02:52 PM, Sven Meier wrote

Re: wicket and JPA

2013-06-14 Thread Sven Meier
will have to call entityManager.merge(dbObject) before committing the transaction. 2013/6/14 Evgheni Emelianov e.emelia...@gmx.net Try first to refresh your entity with entitymanagerObject.refresh(), and use the return object for an update and then merge() Am 14.06.2013 um 10:14 schrieb Sven Meier s

Re: Validator Can't Find Form Submitting Component

2013-06-14 Thread Sven Meier
Please upgrade to 1.4.22 first and recheck the problem. Sven On 06/13/2013 05:49 PM, Richard W. Adams wrote: [Re-sending, as I noticed my previous send was an accidental forward, so probably ended up in the wrong thread. Also adding some more info] I have a form inside a panel. The form is

Re: How to dynamically add a hyperlink (BookmarkablePageLink) to DefaultDataTable that is rendered as an anchor

2013-06-14 Thread Sven Meier
Have you read the following? https://cwiki.apache.org/WICKET/adding-links-in-a-defaultdatatable.html Sven On 06/14/2013 06:22 PM, David Solum wrote: I am using Wicket 6.8 and have a sortable DefaultDataTable that gets its columns programmatically. The markup to get this table and the

Re: Juniper Systems Network Filters Recently Updated Block Some Wicket URLs

2013-06-14 Thread Sven Meier
Thanks for your information. I wonder what embedded HTML Script Tag Juniper sees in the given url: http://130.126.114.121/cgdashboard/?wicket:interface=:1:pubpan:publishersform:datatable:body:rows:2:cells:1:cell:actionlink::ILinkListener Sven On 06/14/2013 04:37 PM, Duane Searsmith wrote:

Re: AjaxChannel Queues

2013-06-20 Thread Sven Meier
The Javascript in the response is evaluated as part of the ajax call. I need to know if the finishButtonWork function call would happen before or after the AjaxChannel releases the next ajax request from queue. Before. Sven On 06/20/2013 07:48 PM, Jered Myers wrote: I am having a few

Re: CryptoMapper not encoding query string - Wicket 6.5.0

2013-06-21 Thread Sven Meier
Take a look at CryptoMapperTest#additionalParameters(): Urls to listeners should be encoded as everything else. How do you setup your CryptoMapper? Sven On 06/21/2013 06:27 AM, iamrakesh wrote: Hi, I am using Wicket 6.5.0 and I am trying to use CryptoMapper in my application and URLs in my

Re: ListView remove a row by SubmitLink always move the last one

2013-06-26 Thread Sven Meier
You'll have to show us some code. Sven On 06/26/2013 08:33 AM, always_rick wrote: Hi all, I have a form of inputs (ListView). I firstly tried the removeLink, it was working. Because it is a normal link, it simply don't keep the other rows inputs. Obviously, it does not meet the requirement.

Re: ListView remove a row by SubmitLink always move the last one

2013-06-28 Thread Sven Meier
First of all don't pull something out of a model and put it into another model: item.setDefaultModel(new CompoundPropertyModel( item.getModelObject() ) ); Do this instead: item.setDefaultModel(new CompoundPropertyModel( item.getModel() ) ); Perhaps this is the reason: the textfields

Re: ListView remove a row by SubmitLink always move the last one

2013-06-28 Thread Sven Meier
Sorry, I'm out of ideas. If you can create a quickstart, I'll debug the problem. Sven On 06/28/2013 12:43 PM, always_rick wrote: Thank you for quick response. I tried what you suggested, no luck. What I think is clicking remove link (SubmitLink), form memorizes input data, then remove row.

Re: Feedback message is not available for behaviors added to nested form components

2013-07-02 Thread Sven Meier
Are you using listView.setReuseItems(true) ? Sven On 07/02/2013 11:13 AM, James Selvakumar wrote: Hi all, I've the following component heirarchy: form:textField form:listView:panel-1:panel1DropDownChoice form:submitButton I've marked the all the form components as required. I also have a

Re: Save place to set http response status?

2013-07-03 Thread Sven Meier
HttpServletResponse has no data to push until the very end of the request cycle. That's not quite right: As soon as WebPageRenderer writes the buffered page into the real response, Tomcat has something to flush. If it does flush (for whatever reason), any additional header set in

Re: Save place to set http response status?

2013-07-03 Thread Sven Meier
, Sven Meier s...@meiers.net wrote: HttpServletResponse has no data to push until the very end of the request cycle. That's not quite right: As soon as WebPageRenderer writes the buffered page into the real response, Tomcat has something to flush. If it does flush (for whatever reason), any

Re: cryptic error messages [SOLVED]

2013-07-03 Thread Sven Meier
Hi, the dot is a leftover from the days when Wicket used '.' to separate component paths. I've fixed the exception message to use PATH_SEPARATOR, i.e. ':' Thanks Sven On 07/03/2013 01:17 PM, Lucio Crusca wrote: I've found that between this line of code: RepeatingView rv = new

Re: Double validation in textfield

2013-07-03 Thread Sven Meier
http://stackoverflow.com/questions/15809225/java-numberformat-ignoring-comma-in-us-locale i.e. a grouping separator can be at any position *between* digits. Sven On 07/03/2013 03:45 PM, Lemke, Michael SZ/HZA-ZSW wrote: We've seen some strange behavior with TextFieldDouble, which you can

Re: fault in tree view

2013-07-03 Thread Sven Meier
Hi, can you please explain how the branch is faulty or 'wrong'? You can override NestedTree#newContentComponent(String, IModel) to decide the representation of a node's content: MyNestedTree extends NestedTree { @Override public Component newContentComponent(String id, final

Re: fault in tree view

2013-07-04 Thread Sven Meier
nested view and try to follow it in beginners view. Am 03.07.2013 22:53, schrieb Sven Meier: Hi, can you please explain how the branch is faulty or 'wrong'? You can override NestedTree#newContentComponent(String, IModel) to decide the representation of a node's content: MyNestedTree

Re: Feedback message is not available for behaviors added to nested form components

2013-07-04 Thread Sven Meier
#onRender() are not the same children that were present during IFormSubmitListener#**onFormSubmitted(), and hence not the same children that had the feedback messages. Cheers, Jesse On 03/07/2013 02:35, James Selvakumar wrote: No. On Tue, Jul 2, 2013 at 7:04 PM, Sven Meier s...@meiers.net

Re: ConfirmAjaxFallbackLink with LoadableDetachableModel

2013-07-04 Thread Sven Meier
Looks fine to me. Can you create a quickstart? Sven On 07/04/2013 03:30 AM, Vignesh Palanisamy wrote: Hi all, I have a ConfirmAjaxFallbackLink which is use to display confirmation dialog, when a user attempts to delete an item in a datatable. public abstract class ConfirmAjaxFallbackLink

Re: markup not found exception for fragment which is part of wicket:extend

2013-07-04 Thread Sven Meier
Hi, I don't know why it did work in 1.4.x, but the following doesn't make sense: final Fragment fragmentTwo = new Fragment(myList.newChildId(), fragmentTwo, myList); myList is not the provider of the fragment's markup, the ListView doesn't contain it. It's the page which contains

Re: Scheduled IRequestHandler never executed ?

2013-07-04 Thread Sven Meier
Hi, when your behavior is triggered, an AjaxRequestHandler is already scheduled to generate the Ajax response for Wicket's JavaScript. It doesn't make sense to replace scheduled handler with a fileDownload then. Whatever you'll send back to the browser, Wicket's JavaScript won't understand

Re: markup not found exception for fragment which is part of wicket:extend

2013-07-04 Thread Sven Meier
Should be. Sven On 07/04/2013 12:10 PM, Rakesh A wrote: Hi, Will it be the same [dialog instance as markup provider instead of page instance] if the fragment is part of wicket modal dialog? Regards, Rakesh.A -- View this message in context:

Re: fault in tree view

2013-07-04 Thread Sven Meier
ascii art? ;) On 07/04/2013 03:05 PM, Piratenvisier wrote: Hello Sven, here are the screenshots. Am 04.07.2013 09:10, schrieb Sven Meier: Hi, I don't see a difference here. Can you post screenshots somewhere? Sven On 07/03/2013 11:02 PM, Piratenvisier wrote: If you open the stucture

Re: fault in tree view

2013-07-04 Thread Sven Meier
That's really strange, the tree looks fine here. Can you retry with a vanilla Firefox? Please clear the browser cache too. Which Wicket version? Sven On 07/04/2013 04:16 PM, Piratenvisier wrote: Ok I try it again Am 04.07.2013 15:14, schrieb Sven Meier: ascii art? ;) On 07/04/2013 03:05

Re: [ANNOUNCE] WicketStuff 6.*9*.0 is released

2013-07-05 Thread Sven Meier
Thanks Martin! Sven On 07/04/2013 10:13 PM, Martin Grigorov wrote: Hi, WicketStuff core 6.9.0 based on Apache Wicket 6.9.0 is released and shortly will be available in Maven Central. The changelog for this release is: svenmeier (8): new method #path() to get method invocation path

Re: ConfirmAjaxFallbackLink with LoadableDetachableModel

2013-07-05 Thread Sven Meier
of the changed text in the file. * Now refresh the page and click the link again. The edited message will be displayed. thanks On Thu, Jul 4, 2013 at 3:22 PM, Sven Meier s...@meiers.net mailto:s...@meiers.net wrote: Looks fine to me. Can you create a quickstart? Sven On 07/04

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-07-05 Thread Sven Meier
I don't like this solution: - special features (e.g. optimization) should not be squeezed into core (i.e. the need to change AjaxEventBehavior) - it leaks when replacing/removing components - it doesn't work for all cases of event.target, e.g. AjaxEventBehavior is attached to a table row, but

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-07-05 Thread Sven Meier
There are few (identified) problems though: 1) if a child component is bound to an a element then it will fire non-Ajax request (because there is no JS binding that would usually prevent the default behavior). Preventing the default should still work:

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-07-05 Thread Sven Meier
Do you have an actual performance comparison between multiple ajax event handlers and EventDelegatingBehavior? Sven On 07/05/2013 02:31 PM, Martin Grigorov wrote: On Fri, Jul 5, 2013 at 3:28 PM, Sven Meier s...@meiers.net wrote: There are few (identified) problems though: 1) if a child

Re: Tree with different BookmarkablePageLink per Node

2013-07-06 Thread Sven Meier
It depends on you node implementation: If Foo is an object from your UI layer, just add #createContent() to it and let it return a suitable representation. If Foo is part of the domain layer, I'd prefer a factory for that, e.g. ContentFactory#createContent(Foo). This factory could consists of

Re: Multiple wicket.properties files in uber JAR

2013-07-08 Thread Sven Meier
Hi, for string resources you could use shade transformers to join the property files: http://stackoverflow.com/questions/6831954/how-to-package-an-apache-cxf-application-into-a-monolithic-jar-with-the-maven-s Sven On 07/08/2013 02:16 PM, William Speirs wrote: On Jul 8, 2013 2:30 AM, Martin

Re: WICKET-5083 and Page.isPageStateless

2013-07-09 Thread Sven Meier
Hi Dirk, initialization may now be triggered when asking a page for #isPageStateless(), this is done to be sure to catch stateful components added lately in #onInitialize(). RequestAdapter#commitRequest() detaches the page first before testing statefulness: try

Re: CryptoMapper not encoding query string - Wicket 6.5.0

2013-07-09 Thread Sven Meier
Please create a quickstart or just instruct us how to reproduce the problem in wicketstuff-gmap3-examples. Sven On 07/09/2013 12:54 PM, Rakesh A wrote: Hi, After bit more debugging I found that the URL provided in the previous post were indeed 1.4.x generated, new URL generated is similar to

Re: CryptoMapper not encoding query string - Wicket 6.5.0

2013-07-09 Thread Sven Meier
reproduce the problem in wicketstuff-gmap3-examples. Sorry, this was meant for the thread describing a problem with CryptoMapper and wicketstuff-gmap3. Sven On 07/09/2013 01:25 PM, Sven Meier wrote: Please create a quickstart or just instruct us how to reproduce the problem in wicketstuff

Re: WICKET-5083 and Page.isPageStateless

2013-07-09 Thread Sven Meier
Can you create a quickstart so we can address this confusion? Sven On 07/09/2013 01:33 PM, Dirk Forchel wrote: To be honest, I'm a bit confused. I reckon this has to do with the redirect from http://localhost:8080/ to http://localhost:8080/de/home. If I call de URL

Re: WICKET-5083 and Page.isPageStateless

2013-07-10 Thread Sven Meier
How does your application handle transactions? What does org.foo.model.Model#currentTransaction() look like? Sven On 07/10/2013 06:46 AM, Dirk Forchel wrote: Unfortunately not. It's not that easy to create a quickstart without using all the additional stuff we're currently using. I think of

Re: OnChangeAjaxBehavior on FormComponentPanel: model object is null

2013-07-10 Thread Sven Meier
You have to attach an AjaxFormComponentUpdatingBehavior to the actual FormComponent that is bound to the input tag. Otherwise no value will be sent to the server. Sven On 07/10/2013 03:00 PM, Martin Dietze wrote: I'v stumbled across something that is really puzzling me. In our project a

Re: How to prevent a concurrent click on ajax links (AjaxFallbackLink)

2013-07-12 Thread Sven Meier
Read here: http://stackoverflow.com/questions/11773885/customizing-indicatingajaxlink-in-wicket Sven On 07/12/2013 01:17 PM, Steamus wrote: When I fast click in an AjaxFallbackLink in my DataTable the first click works correct but next click generates Access Denied (You do not have access to

Re: WICKET-5083 and Page.isPageStateless

2013-07-12 Thread Sven Meier
So one of your components tries to access its model in #onInitialize(), which now may be called *after* #onRequestHandlerExecuted() was called. Try to move this logic into #onConfigure(). Sven On 07/12/2013 06:34 AM, Dirk Forchel wrote: We've added a TransactionRequestCycleListener (extends

Re: WICKET-5083 and Page.isPageStateless

2013-07-15 Thread Sven Meier
It is necessary to detect whether a page is stateful before redirecting to it. Sven On 07/15/2013 10:53 AM, Dirk Forchel wrote: So, I've started to figure out which of our components tries to access our Model in #onInitialize. It ended up that almost every component does. This means, that I

Re: how to add select/deselect all checkbox to wicket DataTable

2013-07-15 Thread Sven Meier
CheckBoxPanel checkBoxPanel = new CheckBoxPanel(componentId); Which model do you pass to the CheckBoxPanel? Sven On 07/15/2013 01:28 PM, wicket_user_100 wrote: Hi All, I'm trying to add select All Checkbox to the header of wicket DataTable column, I've read that I need to use CheckGroup

Re: How to resolve this java.util.ConcurrentModificationException

2013-07-15 Thread Sven Meier
Hi, Wicket doesn't use commons collections - check which maps you pass into components or models. Sven On 07/15/2013 05:55 PM, saty wrote: Getting below error at times, looks like its coming from usage of apache common LRUMAa class, not sure where to start fixing this. 15 Jul 2013

Re: Form questions

2013-07-16 Thread Sven Meier
Hi, Some problems I can't figure out. The code to create the button complains that it requires a CnavUrl but gets back a String. add(new Button(publish, model) { @Override public void onSubmit() { CnavUrl cnavUrl = (CnavUrl) getModelObject();

Re: How to hide an optional Image component?

2013-07-16 Thread Sven Meier
apart from asking the database _again_ for the data or presence thereof Whether the image is visible must be determined when the page is rendered. The actual loading of the image is done in another request. Thus two times to ask the databse. Alternatively you may render a default resource

Re: Gmap3 custom Icon

2013-07-17 Thread Sven Meier
Please take a look at CustomPointPage in wicketstuff-gmap3-examples. It uses custom marker images. Where are your images located in your war? Sven On 07/17/2013 03:55 PM, tomatconvien wrote: Hi to all, I am trying to customize the default marker.png by defining GIcon with a custom xxx.png

Re: Brazilian Portuguese localization question

2013-07-18 Thread Sven Meier
Hi, that should work. Put a breakpoint on Session#locale and check whether the locale is picked up correctly. Sven On 07/18/2013 07:13 AM, Maxim Solodovnik wrote: Hello All, I'm trying to provide Brazilian Portuguese localization for our wicket based application by appending _pt_BR to the

Re: how to set width for DataTable (column) header.

2013-07-18 Thread Sven Meier
Hi, I've just added an AttributeModifier to wicket-example's DataTablePage and it works: @Override public void populateItem(ItemICellPopulatorContact item, String componentId, IModelContact rowModel) {

Re: Wicket/JQuery internals advanced problem / LazyLoadedPanel with AjaxLink / AjaxLink on click not executed

2013-07-18 Thread Sven Meier
What's the markup of the component you're binding the AjaxLink to? Sven On 07/18/2013 03:53 PM, Patrick Davids wrote: Hi all, I have a very special problem with ajax lazy loaded panels, which contains ajax links. Problem: AjaxLink does not execute onclick. Does not reach server / no

Re: CSV-Export change Datepattern

2013-07-18 Thread Sven Meier
CSVDataExporter uses the Application's converters: IConverter converter = Application.get().getConverterLocator().getConverter(c); So register a suitable converter in your application. Alternatively create a new Jira issue to allow passing an IConverterLocator into CSVDataExporter.

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