Re: AutoCompleteTextField with position: fixed

2014-12-13 Thread Bertrand Guay-Paquet
Hello, Your issue seems to be related to css and not to Wicket itself. From the css spec for "position: fixed" : The box's position is calculated according to the 'absolute' model, but in addition, the box is fixed with respect to some reference. [...] the box is fixed with respect to the view

Re: Radios and checkboxes with Bootstrap

2013-12-17 Thread Bertrand Guay-Paquet
ontrol on the markup. Martin Grigorov Wicket Training & Consulting On Tue, Dec 17, 2013 at 7:02 PM, Bertrand Guay-Paquet < ber...@step.polymtl.ca> wrote: Hello, I'm using Bootstrap for form styling which expects radio choices and checkboxes in one of these forms: An inline

Radios and checkboxes with Bootstrap

2013-12-17 Thread Bertrand Guay-Paquet
Hello, I'm using Bootstrap for form styling which expects radio choices and checkboxes in one of these forms: An inline radio A stacked checkbox Using Wicket's built-in components, the rendered html is in this form: Radio label which doesn't work with Bootstrap's stylesheets. I could ove

No page id appended to some stateful pages

2013-08-07 Thread Bertrand Guay-Paquet
Hello, After investigating why some of my stateful pages had a ?n redirect while others did not, I think I found a bug with the stateless page checking. My test case is a page containing only an AjaxFallbackDefaultDataTable, but it can be reduced to a page containing a ListView with a single

Re: Append elements in ajax request

2013-07-19 Thread Bertrand Guay-Paquet
On 19/07/2013 2:36 PM, Sven Meier wrote: Hi Bertrand, use a custom ApplicationSettings#feedbackMessageCleanupFilter that keeps your special messages even if they were rendered already. Sven On 07/19/2013 06:07 PM, Bertrand Guay-Paquet wrote: Hi Dan, You can render into a hidden div

Re: Append elements in ajax request

2013-07-19 Thread Bertrand Guay-Paquet
Hi Dan, You can render into a hidden div, then use some JavaScript to move them into view. Something like this which uses jQuery. response.render(OnDomReadyHeaderItem.forScript("$('#hiddenfeedback div').appendTo($('#visiblefeedback'));")); Great idea! Thanks! That behavior doesn't seem exactly

Re: getCallbackFunctionBody - Wicket.Ajax.ajax?

2013-07-19 Thread Bertrand Guay-Paquet
Hi, I use the javascript generated by getCallbackFunction just fine. Here's an actual function used as an onclick callback: function (event) { var attrs = {"u":"./103?1-1.IBehaviorListener.0-","i":"veil"}; var params = {'tourAction': "1"}; attrs.ep = params; Wicket.Ajax.ajax(attrs); } The jav

Append elements in ajax request

2013-07-19 Thread Bertrand Guay-Paquet
Hello, I have a catch-all feedback panel which displays feedback messages at the top of my web pages. It slides-in the message boxes and adds a "close" link to each one. It also has an event handler which makes sure it redraws itself each time Wicket handles an ajax request: @Override

Re: Javascript confirm with condition before submit

2013-06-21 Thread Bertrand Guay-Paquet
Hi! Are you on Wicket 6? If so, here's how I do my confirmation popup for an ajaxlink (should work for ajaxbutton too): @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { String confirmJs = "if (!confirm('Please confirm')) return false;" AjaxCallListener

Re: UrlResourceReference for images

2013-06-07 Thread Bertrand Guay-Paquet
Try this: url.getSegments().add(""); url.getSegments().add("site2"); url.getSegments().add("image"); Have a look at the code of Url#isAbsolute(). It checks if the first segment is empty which is not the case with the code you provided in the first email. This behavior

Re: UrlResourceReference for images

2013-06-07 Thread Bertrand Guay-Paquet
What you're saying is that a client requests the url http://localhost:8080/app1 and the img src attribute has app2/image?item-123 but you want it to be http://localhost:8080/app2/image?item-123 instead? Why does it make a difference? The relative url will be resolved to http://localhost:808

Re: UrlResourceReference for images

2013-06-06 Thread Bertrand Guay-Paquet
Hello, See inline. On 06/06/2013 5:27 PM, bronius wrote: First of all Url api is extremely hard to work with, very hard to create url i need, I think there should be some option to simply create it with simple string. Anyway Url.parse method does not create full url for me (i have localhost:808

Re: AttributeModifier with html in the attribute?

2013-06-03 Thread Bertrand Guay-Paquet
I believe AttributeModifier is the appropriate class to use to modify tag attributes. Moreover, it is described in the section you refer to. For reference, ComponentTag#writeOutput() is the method which calls Strings.escapeMarkup(value); and escapes your tag value. This is called by Component#

Re: Injecting proxy services in page.

2013-06-03 Thread Bertrand Guay-Paquet
Hi, I don't use Spring, so I can't help you specifically. However, there is a chapter about integration with Spring in the free wicket guide here: https://code.google.com/p/wicket-guide/ (chapter 17.2) On 03/06/2013 9:00 AM, Entropy wrote: We are doing the "annotation based approach" describe

Re: Handling user-specific timezones

2013-05-09 Thread Bertrand Guay-Paquet
On 09/05/2013 3:30 PM, Dan Retzlaff wrote: Thanks, Bertrand. On Thu, May 9, 2013 at 9:47 AM, Bertrand Guay-Paquet wrote: Do you avoid MessageFormats in StringResourceModels? (I don't see a way to configure its MessageFormat.) I convert my Dates to strings with the proper conv

Re: Handling user-specific timezones

2013-05-09 Thread Bertrand Guay-Paquet
Hi! On 08/05/2013 6:46 PM, Dan Retzlaff wrote: Hi all, I'd like to know what conventions you've established for your sites that deal with users in many time zones. Do you simply replace the converters (Date, SqlDate, SqlTime, SqlTimestamp)? I make sure that all the date objects sent to Wicket

Re: How to refresh a tab

2013-05-08 Thread Bertrand Guay-Paquet
Try it with OnDomReadyHeaderItem or OnLoadHeaderItem nstead of JavaScriptHeaderItem Wicket's ajax implementation makes sure that header items are rendered once only. On 08/05/2013 12:10 PM, saty wrote: yes, when the panel normally loads the java scripts are added as renderHead(IHeaderRespon

Re: How to refresh a tab

2013-05-08 Thread Bertrand Guay-Paquet
Hi, Is your javascript running when the page is created and then not when you refresh the tab or not at all? How are you adding the javascript to the page? On 08/05/2013 11:18 AM, saty wrote: Actually target.add(getPanel()); seems to be doing what i need but i have a problem here and hoping

Re: How to deal with JPA Entities in a Wicket Model? (Data handling in models)

2013-05-04 Thread Bertrand Guay-Paquet
I understand, that there can be situations when a user actually doesn't leave a page the usual way, but if there were a method as described, it could at least be helpful for all the preceding page-leave-events under normal conditions. I never use it, but there's javascript's onbeforeunload e

Re: Localized urls

2013-05-03 Thread Bertrand Guay-Paquet
Has no one ever done this? Any guidelines as to how to implement it? On 01/05/2013 10:29 AM, Bertrand Guay-Paquet wrote: Hello, I'd like to localize the urls generated by my app like so: /en/account/settings -> AccountSettingsPage, locale EN /fr/compte/parametres -> AccountS

Re: How to deal with JPA Entities in a Wicket Model? (Data handling in models)

2013-05-03 Thread Bertrand Guay-Paquet
Hi, On 03/05/2013 9:58 AM, Christian Reiter wrote: Hi! I'm wondering what's the recommended way to store a unpersisted object while it is edited (I'm using EJBs with JPA as backend). Let's imagine I want to build a customer editor which should be able to handle editing of new (unpersisted)

Re: What is the wicket recommended approach

2013-05-03 Thread Bertrand Guay-Paquet
Hi, Have a look at https://code.google.com/p/wicket-guide/ chapter 18. On 03/05/2013 9:46 AM, saty wrote: for securing wicket applications, going by no documentation etc available on WASP/SWARM, i am just curious if there are other things available and preferred. -- View this message in cont

Re: Page's Mounted URL

2013-05-01 Thread Bertrand Guay-Paquet
Have a look at RequestUtils#toAbsolutePath(). Also, look at the email on this mailing list preceding yours titled "[wicket 6] Any shortcut to get full url ?" :) On 02/05/2013 1:06 AM, Colin Rogers wrote: Wicketeers, Where I have; mountPage( "path/to/myPage", MyPersonalPage.class ); mountPag

Re: [wicket 6] Any shortcut to get full url ?

2013-05-01 Thread Bertrand Guay-Paquet
Hi, On 01/05/2013 10:57 PM, smallufo wrote: String url2 = RequestUtils.toAbsolutePath(urlFor(Page.class , newPps).toString() , ""); System.out.println("url2 = " + url2); // full in 1.4 , but relative in 6.0 The Javadoc says "Calculates absolute path to url relative to another absolute url." so

Re: even issue switching from development to deployment mode

2013-05-01 Thread Bertrand Guay-Paquet
Hi, I believe Wicket uses a minified version of jQuery in deployment. Maybe this causes problems with that library? Otherwise, check all callers to Application#usesDevelopmentConfig() and replace them one by one to the deployment value until you get the same error. On 01/05/2013 1:59 PM, s

Re: How to get rid of -ver-blah-blah-blah.gif versioning ?

2013-05-01 Thread Bertrand Guay-Paquet
The link at the bottom of the given wiki page has: To disable caching altogether (e.g. for performance comparisons) use getResourceSettings().setCachingStrategy(NoOpResourceCachingStrategy.INSTANCE) On 01/05/2013 1:05 PM, smallufo wrote: Hi thanks. But it doesn't mention how to turn off the

Re: Get data from External application.

2013-05-01 Thread Bertrand Guay-Paquet
On 01/05/2013 12:13 PM, Bertrand Guay-Paquet wrote: In your app init code, mount your page like this: mountPage("/activate/#{code}", BarcodePage.class); Assuming you want to mount this under the "activate" path. I just noticed your example uses the root app mount. I think

Re: Get data from External application.

2013-05-01 Thread Bertrand Guay-Paquet
Hi, Sure you can! In BarcodePage, use the PageParameters to extract the code. If the code is there, show its associated content. StringValue codeValue = getPageParameters().get("code"); if (!codeValue.isEmpty()) ... In your app init code, mount your page like this: mountPage("

Localized urls

2013-05-01 Thread Bertrand Guay-Paquet
Hello, I'd like to localize the urls generated by my app like so: /en/account/settings -> AccountSettingsPage, locale EN /fr/compte/parametres -> AccountSettingsPage, locale FR I already have urls prefixed with the locale base on the LocaleFirstMapper from Wicket examples, but they are

Re: Session messages

2013-04-30 Thread Bertrand Guay-Paquet
gards, Bas Gooren Op 30-4-2013 17:44, schreef Bertrand Guay-Paquet: Hi, This is not the behavior I'm getting. I created a stateless page with this: add(new FencedFeedbackPanel("feedback"**)); add(new StatelessLink("success") { @Override

Re: Session messages

2013-04-30 Thread Bertrand Guay-Paquet
stateless application. Adding a feedback message to such session will live till the end of the current request. Since the response page is rendered in the same request/response cycle the feedback messages should be still reachable. On Mon, Apr 29, 2013 at 11:41 PM, Bertrand Guay-Paquet < ber...

Session messages

2013-04-29 Thread Bertrand Guay-Paquet
Hello, When using the Sessions info(), error() and success() methods, and the session is not bound, the messages are lost. This can happen easily when on stateless pages. The fix for this is easy: I need to make sure the session is bound and call Session.bind(). However, I think it would be

Re: Submit button without form component

2013-04-29 Thread Bertrand Guay-Paquet
ks but the simplest solution I see at the moment is to use StatelessForm. On Sat, Apr 27, 2013 at 4:01 PM, Bertrand Guay-Paquet < ber...@step.polymtl.ca> wrote: Hello, I have action links which I want to transform to POST actions since they can have side-effects on the dat

Submit button without form component

2013-04-27 Thread Bertrand Guay-Paquet
Hello, I have action links which I want to transform to POST actions since they can have side-effects on the database. (See http://stackoverflow.com/questions/679013/get-vs-post-best-practices) My understanding is that this is only possible with either javascript or forms. I decided (for now

Re: Understanding Wicket's Session

2013-04-26 Thread Bertrand Guay-Paquet
This is weird... In both of dhongyt's emails, there isn't any source code in the email body. I just noticed that the nabble link does show the source code however. Any idea why? On 26/04/2013 10:16 AM, dhongyt wrote: Thanks I have fixed the issue. It was my: From my understanding I was get

Re: Understanding Wicket's Session

2013-04-25 Thread Bertrand Guay-Paquet
Hi, Overriding newSession to create your custom session implementation is the way to go and should work. You can confirm this by breaking on the following code somewhere (like a page constructor) : Session session = Session.get(); You will see that each user gets a different session instance

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-22 Thread Bertrand Guay-Paquet
Hi, I'm not sure this is what you want, but you can subclass the "Check" class and override its onComponentTag method to add disabled="disabled" to the tags you want to disable. You can also do it with a behavior instead of subclassing. Remember that if you replace the checkbox html s via a

Re: a book about Wicket 6.x

2013-04-11 Thread Bertrand Guay-Paquet
Hi, Check out the new http://code.google.com/p/wicket-guide/ On 11/04/2013 10:52 AM, Yanal Jij wrote: Hi all, Any suggestions on books to learn Wicket 6.x , I tried the books on the Wicket website they are all about Wicket 1.5 (Wicket in Action and Enjoying Web development with Wicket). T

Re: Wicket free guide updated.

2013-04-09 Thread Bertrand Guay-Paquet
Hi Paul, I asked the same question for v1. Here's the answer: "no, at the moment there is no source for documentation. The main document is a LibreOffice odt file. I didn't decide yet how to make it available... " As for contributions, they are welcome! Either send an email or use the googl

Re: Proper resource versioning

2013-04-02 Thread Bertrand Guay-Paquet
Thanks for your help Dan. I made all images, css and js wicket resource references now. This helps a lot because I also want to prefix my website urls with the locale code which is pretty hard to do when some paths are context-relative and others are managed by Wicket. For anyone attempting th

Re: Proper resource versioning

2013-03-27 Thread Bertrand Guay-Paquet
Hi Dan, Thanks for sharing this! On 27/03/2013 6:24 PM, Dan Retzlaff wrote: Hi, Bertrand. I don't have all your answers, but I can share my experience. First, when you say you serve files out of webapp folder, do you mean you're not using any ResourceReference? Just absolute paths from markup?

Proper resource versioning

2013-03-27 Thread Bertrand Guay-Paquet
Hello, I'm trying to figure out the optimal way to deal with caching and out of date resources and can't really find which methodology to adopt. Considering that: a) css and js files are only accessed from web pages b) image files are accessed from web pages and from email clients (links stor

Re: Free Wicket guide now available!

2013-03-21 Thread Bertrand Guay-Paquet
That's fine. What is your preferred way to receive such feedback then (typos, etc.)? Annotated pdf? I'm not very familiar with the tools available for working with pdf files. By the way, I don't want to rush you or demand the source! I'm just asking to help out if possible :) On 21/03/2013 4

Re: Free Wicket guide now available!

2013-03-21 Thread Bertrand Guay-Paquet
Thanks a lot for your effort! Before I start reading whole sections, is the source of the document available somewhere? I'd like to correct any typos I may find along the way to do my part and I think that a patch would be way more useful than sending an email with page numbers and description

Re: Eclipse or IntelliJ

2013-02-20 Thread Bertrand Guay-Paquet
eans is also an awesome IDE, it just gets horribly slow with bigger projects (and that's based on the most recent Release of Netbeans I tried a week ago). On Wed, Feb 20, 2013 at 5:48 PM, Bertrand Guay-Paquet wrote: Hi William, This might be your lucky day :) Here's the fix for that

Re: Eclipse or IntelliJ

2013-02-20 Thread Bertrand Guay-Paquet
Hi William, This might be your lucky day :) Here's the fix for that horrible slowness in xml tabs: From: http://wiki.eclipse.org/Platform_UI/Juno_Performance_Investigation Ensure you are already running on a package from the Juno SR1 release (September 2012) Invoke Help > Install New Software

wicket-cdi small demo

2013-01-10 Thread Bertrand Guay-Paquet
Hello, While testing wicket-cdi, I created a small test app available at : https://github.com/berniegp/test-wicket-cdi/ It mostly follows the article from https://www.42lines.net/2011/11/15/integrating-cdi-into-wicket/ and it runs both in jetty and TomEE. Following my posts on this mailing lis

Re: wicket-cdi and TomEE

2013-01-03 Thread Bertrand Guay-Paquet
lasspath that provide the javax.enterprise.inject.spi.BeanManager interface. maybe one comes with wicket-cdi and the other one is included in tomee... -igor On Thu, Dec 20, 2012 at 12:54 PM, Bertrand Guay-Paquet wrote: javax.enterprise.inject.spi.BeanManage --

Re: Wicket 6.4.0 Session/URL bug?

2012-12-20 Thread Bertrand Guay-Paquet
I confirm that this fixes my problem too. thanks! On 19/12/2012 2:55 PM, Sven Meier wrote: https://github.com/apache/wicket/commit/12ce76d17e2d0576fee8158b7fa7db69770bea52 Sven On 12/19/2012 08:31 PM, Chris Colman wrote: Jira says this has been fixed but I can't, as yet, see any changed on

wicket-cdi and TomEE

2012-12-20 Thread Bertrand Guay-Paquet
Hi, My web application contains EJB stateless beans which I currently access in Wicket through JNDI injection with the wicketstuff-javaee-inject project. With Wicket 6.4.0, I am trying out CDI (@inject) but can't get it to work on the TomEE Java EE application server. In my Application class,

Re: Wicket 6.4.0 Session/URL bug?

2012-12-19 Thread Bertrand Guay-Paquet
To be clear, I don't use wicket's auth module. I suspect that what was reported is caused by stateful/stateless pages. On 19/12/2012 12:51 PM, Bertrand Guay-Paquet wrote: Hi, I'm trying 6.4.0 now and seeing the same issue. My use-case is a little bit different though: 1)

Re: Wicket 6.4.0 Session/URL bug?

2012-12-19 Thread Bertrand Guay-Paquet
Hi, I'm trying 6.4.0 now and seeing the same issue. My use-case is a little bit different though: 1) Without active session, go to stateless page 2) Go to stateful page The first stateful page loaded is wrong like so: http://localhost:8080/SERVLET_CONTEXT/SERVLET_CONTEXT;jsessionid=7C9C4B53381D

Re: [Announce] WicketStuff 6.0.0 released

2012-09-11 Thread Bertrand Guay-Paquet
Hi, Thanks for the release! Having just tried it, it seems that WicketStuff uses Wicket version "6.0-SNAPSHOT". Is this on purpose? In wicketstuff-core's pom, there is the following property : 6.0-SNAPSHOT Regards, Bertrand On 07/09/2012 4:01 PM, Martijn Dashorst wrote: WicketStuff Core pr

Re: redirectToInterceptPage and string

2012-08-21 Thread Bertrand Guay-Paquet
Hi, I don't think there's a direct way to achieve what you want. However, you could instead find the page class mapping to the url and use that in the exception. I'm not too familiar with it, but have a look at Application#getRootRequestMapper() and its mapHandler method. You could perhaps us

Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Bertrand Guay-Paquet
Hi, I haven't used 1.4 much so I'm not sure it exists there. Maybe you could add a IRequestCycleListener to your app via getRequestCycleListeners() which adds the feedback panel in onRequestHandlerResolved? In that method, check if the handler type is an AjaxRequestTarget and add your feedbac

Re: How to control IMG/CSS URL-Rewriting in mounted pages?

2012-08-16 Thread Bertrand Guay-Paquet
Hi Joachim, I have never inspected them closely, but I think the classes in play are : WicketLinkTagHandler AutoLinkResolver As for the usefulness of this process, consider panels. Panels can be instantiated on any mount path so their links must be adjusted. Good luck! Bertrand On 15/08/2012

Re: Dataview: need a differente css for negative values

2012-08-16 Thread Bertrand Guay-Paquet
Assuming you use a Label for your amounts: new Label( ... ) { @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); if( isNumberPositive() ) tag.append("class", "positive_num_css", " "); else tag.append("clas

Re: Add page feedback to every AjaxRequestTarget

2012-08-15 Thread Bertrand Guay-Paquet
Hi Alec, Have a look at this: https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-Defaultajaxevent I think it does what you need. On 15/08/2012 3:59 PM, Alec Swan wrote: Hello, I have a FeedbackPanel on a page. The page can contain different kinds of forms dependi

Re: WicketRuntimeException: "Submit Button ... is not enabled"

2012-08-14 Thread Bertrand Guay-Paquet
No, they are interchangeable. On 14/08/2012 11:42 AM, eugenebalt wrote: Thanks a lot. In our case, we have an AjaxButton that maps to a "input type=submit". Would using the input type "Button" get rid of this problem? -- View this message in context: http://apache-wicket.1842946.n4.nabble.c

Re: Checkbox in DataTable is not reflecting its sts in checkbox

2012-08-14 Thread Bertrand Guay-Paquet
You have 2 choices: 1) put the boolean as a property of your KostenOV and reference it with a model (e.g. propertyModel) 2) Use a CheckGroup and multiple checkboxes which use the id of KostenOV as their value. Have a look at: -http://www.wicket-library.com/wicket-examples/compref/wicket/book

Re: Not to validate the Html while rendering in wicket

2012-08-13 Thread Bertrand Guay-Paquet
That's weird. I thought this was disabled by default when Wicket is in deployment mode... On 13/08/2012 3:36 PM, vinitty wrote: I want to disable the Html validation while rendering in wicket 1.5.7 I am running wicket in deployment mode Please suggest its urgent -- View this message in co

Re: How is the better way to use repeated forms using ajax?

2012-08-13 Thread Bertrand Guay-Paquet
fier("class", new Model(" green"))); } catch (OptimisticLockException e) { resultModel.setObject("El grupo había sido editado préviamente. Se cargó la información que está en la base de datos."); resultLabel.add(new AttributeModifier("class"

Re: How is the better way to use repeated forms using ajax?

2012-08-13 Thread Bertrand Guay-Paquet
Hi, On 13/08/2012 12:13 PM, Roger Palacios wrote: Hi every all. This is my first mail in wicket mailing list. Welcome! I want to update the groups doing ajax submits. I tried using ListView, but, I dont know why, when I click 'save' button the changes are reflected on in the first group pane

Re: WicketRuntimeException: "Submit Button ... is not enabled"

2012-08-13 Thread Bertrand Guay-Paquet
Hi, When a form is submitted, it checks whether the submitting component is a Wicket component. If it is (your case), it makes sure that it's enabled and visible. I guess this is to prevent users manipulating with the form submission process. In any case, if any of the 2 conditions is not met

Re: Checkbox in DataTable is not reflecting its sts in checkbox

2012-08-13 Thread Bertrand Guay-Paquet
Hi, In the constructor of UserActionsPanel, the checkbox is created like so: add(new CheckBox("select", item.getModel())); However, I think item.getModel() returns an IModel> type. This can't work in a CheckBox which requires a Boolean model. On 13/08/2012 8:33 AM, Delange wrote: Hi, in th

Re: Calling isPageStateless() can mess up the statelessness of a page

2012-08-10 Thread Bertrand Guay-Paquet
if you have a repeater of 20 links this is 20 X isPageStateless() ,it actually depends on how expensive ispagestateless() itself is and at how many places is it used .. On Fri, Aug 10, 2012 at 10:53 PM, Bertrand Guay-Paquet wrote: On 10/08/2012 12:12 PM, vineet semwal wrote: it might give you

Re: Calling isPageStateless() can mess up the statelessness of a page

2012-08-10 Thread Bertrand Guay-Paquet
On 10/08/2012 12:12 PM, vineet semwal wrote: it might give you wrong result even if you add your component after adding all the components because some components foreg. a repeater like listview/dataview/gridview add children in onbeforerender so isPageStateless() can be assumed to work correc

Calling isPageStateless() can mess up the statelessness of a page

2012-08-10 Thread Bertrand Guay-Paquet
Hi, (Using Wicket 6.0-SNAPSHOT, or 1.5.7) I found a strange behavior when calling Page#isPageStateless(). I have a simple label in my personal wicket debug bar which displays "stateless" when a page is stateless. It works like so: new WebMarkupContainer("statelessMarker") { @Override

Re: How to display a grid with empty cells

2012-08-08 Thread Bertrand Guay-Paquet
Hi, I haven't used the GridView directly so I can't help you with it specifically. However, have you considered modifying your provider to always return 9 records with some having an empty placeholder? It's definitely a "hack", but it may be worth a try. Bertrand On 08/08/2012 10:56 PM, Ale

Re: [1.5] AjaxFormComponentUpdatingBehavior and Cancel AjaxButton to reset form

2012-08-07 Thread Bertrand Guay-Paquet
The cancel link should just set an empty model object to the form. What if I'm editing an existing entity that's coming from a database (not creating a new one) and I want to display the original values after clicking Cancel? I assume I have to reload the entity and set it as the model object a

Re: Paste Behaviour

2012-08-06 Thread Bertrand Guay-Paquet
Hi, How about: Attach a ajax onclick behavior to your TextAreas. This behavior opens the modalwindow and registers an "onclose" callback. In the callback: -update the model of the text area according to which textblock the user chose -add the TextArea to the ajax request for a refresh. On 06

Re: [1.5] AjaxFormComponentUpdatingBehavior and Cancel AjaxButton to reset form

2012-08-06 Thread Bertrand Guay-Paquet
Hi, form.clearInput() only clears the raw input (what is received in the current request) of the form components. That is, it doesn't modify the underlying models. With setDefaultFormProcessing(false), this means that your FormComponent models are not updated at all. The AjaxFormComponentUpd

Re: Need suggestion on minimizing session usage in wicket web application

2012-08-03 Thread Bertrand Guay-Paquet
Do you use Wicket 6? If so, the latest snapshot includes an "enhanced" page view in the page inspector of the Wicket debug bar. This page view can be filtered to show only stateful components and behaviors. If you're on Wicket 1.5, check out https://issues.apache.org/jira/browse/WICKET-4244.

Re: Need suggestion on minimizing session usage in wicket web application

2012-08-03 Thread Bertrand Guay-Paquet
I have not used stateless ajax myself so I can't help you much there. Have a look here for stateless ajax: https://github.com/jolira/wicket-stateless Also, before you make such big modifications, I suggest you take the time to profile the memory usage of your pages. There could be a 1-hour fix

Re: Need suggestion on minimizing session usage in wicket web application

2012-08-02 Thread Bertrand Guay-Paquet
I would say it depends. Generally, it should help to use detachable models, but for very small objects (like static strings), it's won't give a big gain. Besides memory gains, detachable models also reload their data each request which ensures non-stale objects. On 02/08/2012 11:28 AM, kshiti

Re: Need suggestion on minimizing session usage in wicket web application

2012-08-02 Thread Bertrand Guay-Paquet
Hi, You can read the following email thread for insight: http://wicket-users.markmail.org/thread/6qqc4pxt77mulpmt Also have a look at this: http://www.small-improvements.com/blog/technical/tuning-wicket-session-size These links talk about session size in general, not only about stateless compo

Re: ComponentNotFoundException when replace a fragment

2012-08-01 Thread Bertrand Guay-Paquet
Filed WICKET-4689. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: ComponentNotFoundException when replace a fragment

2012-08-01 Thread Bertrand Guay-Paquet
nally: timerBehavior.stop(target). This will clear the scheduled timeout in the browser. On Wed, Aug 1, 2012 at 5:31 PM, Bertrand Guay-Paquet wrote: Yes I was using -beta3 since this is what Alex used. I just tried it with -SNAPSHOT (commit b89909c1fa99ae6973c3fb0738a966eb23c27e73) and I get the same exception. Yo

Re: ComponentNotFoundException when replace a fragment

2012-08-01 Thread Bertrand Guay-Paquet
wrote: Do you use -beta3 ? There was a bug which is fixed in -SNAPSHOT. That's why I know how it works ;-) On Wed, Aug 1, 2012 at 5:12 PM, Bertrand Guay-Paquet wrote: On 01/08/2012 9:58 AM, Martin Grigorov wrote: No. The timer is fired but the precondition prevents the Ajax call. The precond

Re: ComponentNotFoundException when replace a fragment

2012-08-01 Thread Bertrand Guay-Paquet
On 01/08/2012 9:58 AM, Martin Grigorov wrote: No. The timer is fired but the precondition prevents the Ajax call. The precondition checks that the component (html element) on which is attached the timer behavior is still in the DOM document. Hmm... I don't quite know what to say! In my tests, th

Re: ComponentNotFoundException when replace a fragment

2012-08-01 Thread Bertrand Guay-Paquet
Hi Alex, I tried your code and stripped it down as much as possible and couldn't find anything wrong with it. My guess is that Wicket ajax does not remove timers from replaced components in ajax responses. Therefore, the javascript timeout function is still executed on the client even if its

Re: ComponentNotFoundException when replace a fragment

2012-07-31 Thread Bertrand Guay-Paquet
With the stack trace, I can only see that the listener (the object responsible for handling a request) component"mainContentFragmens:eagrPanel" is not found in the current page. Perhaps someone else can answer with only this but I would need code snippets showing how you manipulate your compon

Re: ComponentNotFoundException when replace a fragment

2012-07-31 Thread Bertrand Guay-Paquet
Hi Alex, Your stack trace did not show up on the mailing list. Please also show a snippet showing what throws the exception. Bertrand On 31/07/2012 10:44 AM, Alex66955 wrote: Hey, I have some issues when I replace a fragment in an ajax calback function. There is a parent class and a child c

Re: I think it's time for a new book.... Igor and Co ?

2012-07-26 Thread Bertrand Guay-Paquet
writing the book was a very long and a very exhausting effort, much much more then i thought it would be. when i was done the book was actually twice as long as what was published, but the publisher wanted me to trim it down to keep the cost low... they would have to charge more if the book h

Re: I think it's time for a new book.... Igor and Co ?

2012-07-26 Thread Bertrand Guay-Paquet
Seeing how the previous book authors became less active after writing a book I think this is not a very good idea... :-/ Is this because the books didn't sell well enough? I don't know the authors personally and I don't know much about the publishing world so it could very well be another reas

Re: I think it's time for a new book.... Igor and Co ?

2012-07-24 Thread Bertrand Guay-Paquet
Hi Martin (and other devs), Must a Jira issue accompany each pull request? Also, is it ok to use a feature branch (based on the snapshot branch) for the pull request? Bertrand On 23/07/2012 3:15 AM, Martin Grigorov wrote: Hi, You can create tickets in our Jira with attached patches if you d

Re: How can wicket Page form model be accessed from child panel

2012-07-19 Thread Bertrand Guay-Paquet
Ah now I'm starting to understand. The "Wicket way" as I understand it is to validate in the form submit and its components. Your validator however will need a reference to the current value of those checkboxes. I'm guessing the checkboxes are not part of the form in your case, otherwise this i

Re: How can wicket Page form model be accessed from child panel

2012-07-19 Thread Bertrand Guay-Paquet
Why do you have a validate() method in your panel if it isn't part of the form? When you get to the form's onSubmit() method, all the models used in the form components have already been updated. This occurs after all the validators of the form and its components are executed. Therefore, if y

Re: How can wicket Page form model be accessed from child panel

2012-07-19 Thread Bertrand Guay-Paquet
On 19/07/2012 3:26 AM, jam.ntk wrote: you are right that the LoginUserModel gets null. Now can you please suggest how and where should I reload the LoginUserModel? From my previous email: "You need to reload it in the LoadableDetachableModel.load() method." If in the panel, I try to call this.s

Re: How can wicket Page form model be accessed from child panel

2012-07-18 Thread Bertrand Guay-Paquet
Hi, The transient object in LoginUserModel is null because it was set to null in LoadableDetachableModel.detach(). You need to reload it in the LoadableDetachableModel.load() method. For form submit examples, see http://www.wicket-library.com/wicket-examples/forminput/ I think the answer i

Re: setResponsePage swallows my session feedback messages

2012-07-04 Thread Bertrand Guay-Paquet
Hi Martin, Following Andrea's comments from issue Wicket-4637, I modified the NonResettingRestartException to fix the error I reported. Here's the modified version: public class NonResettingRestartException extends ReplaceHandlerException { public NonResettingRestartException(final Class

Re: [Announce] WicketStuff 1.5.7 is released

2012-07-03 Thread Bertrand Guay-Paquet
Good stuff! Is there a way to see which issues where fixed between 2 releases with github? In Jira it's straightforward, but I haven't been able to figure this out yet for github... I found out how to compare the source tree between 2 tags, but not the list of issues. For the source, it's h

Re: setResponsePage swallows my session feedback messages

2012-07-03 Thread Bertrand Guay-Paquet
Hi, Issues WICKET-4636 and WICKET-4637 were created. Bertrand - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: setResponsePage swallows my session feedback messages

2012-07-02 Thread Bertrand Guay-Paquet
Hi Martin, Thanks for your answer and code. Indeed, in my case, option 2 is most desirable because the session message is set in a completely different place than where the redirect is done. NonResettingRestartException works great when thrown from a page constructor. However, when thrown fr

Re: setResponsePage swallows my session feedback messages

2012-06-29 Thread Bertrand Guay-Paquet
#x27;re better off listening to Martin G: he knows what he is talking about ;) Bertrand Guay-Paquet wrote Hi Ian, I'm sorry, I don't understand. Perhaps some parts of your message didn't make it to the mailing list? (see "If you use" and "and then one of"). On

Re: setResponsePage swallows my session feedback messages

2012-06-29 Thread Bertrand Guay-Paquet
Page()' in #onBeforeRender() instead. On Fri, Jun 29, 2012 at 4:21 PM, Bertrand Guay-Paquet wrote: Hi Ian, Thanks for your reply. By the way, I forgot to mention I'm using Wicket 1.5.7. The (pseudo) code I wrote in my previous email is in Page2's constructor. I tried both

Re: setResponsePage swallows my session feedback messages

2012-06-29 Thread Bertrand Guay-Paquet
structor you should be able to pass (your cookie?) data to your Page1, and you will see by trial and error whether your flash message makes it to Page1 or not. Regards, Ian Bertrand Guay-Paquet wrote Hi Ian, Thanks for your reply. By the way, I forgot to mention I'm using Wicket 1.5.7.

Re: setResponsePage swallows my session feedback messages

2012-06-29 Thread Bertrand Guay-Paquet
RestartResponseException (as always, I am open to contradiction). · If possible, can you move your code to a component onSubmit() method (of Page2 or the previous page, if any)? Regards, Ian Bertrand Guay-Paquet wrote Hi, I have 2 pages, each with a feedback panel. Page2 does the followin

setResponsePage swallows my session feedback messages

2012-06-28 Thread Bertrand Guay-Paquet
Hi, I have 2 pages, each with a feedback panel. Page2 does the following: setACookie(); Session.get().info("blah"); setResponsePage(Page1.class); The problem I have is that "blah" is never displayed in the feedback panel of Page1. I stepped in the request processing code and found that setResp

Re: Data in session and debugger

2012-04-14 Thread Bertrand Guay-Paquet
Hi, Is the ResultClass Serializable (members + itself implement Serializable)? If not, you should see stack traces in the logs each time a page is rendered. On 14/04/2012 2:47 PM, Andre Schütz wrote: Hi, I tried the debugBar in my WebPage and could analyze the session size and the data of t

  1   2   >