Re: Customize keyboard focus navigation in LinkTree

2011-04-10 Thread andrea del bene
Hi Martin, I think you could do this with A LOT of JavaScript, probably you should use JQuery and its key binding functions (keypress(), keyup(), keydown(), etc...) . Googling around I've found this post which describe a possible solution to attach JavaScript at your tree nodes: http://happy

Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-11 Thread Andrea Del Bene
Sorry, I know I'm little late but I'd like to vote for the 2nd option This has been discussed before (https://issues.apache.org/jira/browse/WICKET-1221), but I can't find the old vote thread to see what folks think. The problem is that a checkbox is a weird bird when it comes to HTTP. If it's u

Re: Apache Wicket Cookbook Published!

2011-04-12 Thread andrea del bene
You are in good company :-). I've ordered my copy on 31 March and I still waiting patiently for it. @Martijn Nice pic :-)! Just a general question about packthub... I've ordered the printed version on the 26th of March, from the Netherlands, but I haven't received it yet. Did someone else als

Re: image in java script

2011-04-14 Thread Andrea Del Bene
Hi fachhoch, I had a similar problem with a custom date component (called JQueryDateField) which uses JQuery UI Datapicker. The problem was relative to the icon trigger next to the input field which should open Datapicker. When we initialize Datapicker we needs to know icon's URL, for exam

Re: CompoundPropertyModel and Image

2011-04-23 Thread andrea del bene
Hi, I've checked Image's source class and it seems that it doesn't support compound models (see comments in method initModel()). Hi there, I have a rather simple problem, but could find a solution yet. I wanna combine text and an image in ONE model. The image is defined by a ContextRelativeRes

Re: [MIGRATE 1.5] My experiences in a blog entry

2011-04-26 Thread Andrea Del Bene
HI Alexandros, thanks for sharing your experience! Hello everybody, With the help of several people on this list, I've gone through the process of migrating my wicket application from 1.4.17 to 1.5-rc2 The whole thing was relatively painless, which I guess is rather good news. I've docume

Re: Can't get Javascript filtering to work

2011-04-27 Thread Andrea Del Bene
Hi Alec, are you sure you are testing your code in DEPLOYMENT mode and not in DEVELOPMENT mode? To answer your question about benefits of using shared resources, I can say that they make sense when you need to access a resource (like a picture) with an absolute path instead of a relative on

Re: Back button problem in wicket

2011-04-28 Thread Andrea Del Bene
Hi, what does your application/web server's log say? You should check it for some Wicket message or exception that could explain page expiration. Hey, I am new to wicket.. I was having problem of back button in wicket.. but it got solved when i made all the pages and service class serializab

Re: wicket extensions - Palette Problem

2011-05-02 Thread Andrea Del Bene
The same using wicket 1.5 snapshot. I'm debugging the class searching for a solution. Hi I'm using wicket extensions 1.4.17. I came across a problem with adding selection on Palette. ... .. add(form); List available = new ArrayList(); original.add("A"); original.add("B"); original.add("C"); or

Re: wicket extensions - Palette Problem

2011-05-02 Thread Andrea Del Bene
Ok, I think I got it. You should add to choice render an empty id and value expression, i.e. new ChoiceRenderer("", ""). Without any expression any choices is recognized as selected. Hi I'm using wicket extensions 1.4.17. I came across a problem with adding selection on Palette. ... .. add(for

Re: moving from development to deployment mode

2011-05-04 Thread Andrea Del Bene
Have you already tried to start glassfish with JVM parameter -Dwicket.configuration=deploy ? Cleared my web container, the changes don't seems to be persisted. Still getting same message. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/moving-from

Re: ComponentFeedbackPanel works during ajax validation, not on form submit

2011-05-05 Thread Andrea Del Bene
Hi Adam, try calling setOutputMarkupPlaceholderTag(true) instead of setOutputMarkupId on your barcodeFeedback. I have a component hierarchy that looks (grossly oversimplified) like: page --form components --form barcodeTextField barcodeFeedbackPanel TextField barcodeField = ne

Re: ComponentFeedbackPanel works during ajax validation, not on form submit

2011-05-05 Thread Andrea Del Bene
Have called setReuseItems(true) on your listview component? Without this property setted to true, messages inside listview won't be displayed. I believe that method is intended to render a placeholder tag when a component isn't visible on the page to allow ajax updates. My ajax validation works

Re: Children components

2011-05-09 Thread andrea del bene
Hi, iterator() method returns an iterator that iterates through children. Maybe is what you need. Wicketers, How can I get a list of children components, for example, I need modify some things on the children components of a Form. Debuging I saw an attribute "children" but I've not fou

Re: disabled chek box form submit

2011-05-11 Thread Andrea Del Bene
Hi, disabled input components are not submitted by HTML forms. You can try to hack this standard behavior with some JavaScript: http://stackoverflow.com/questions/849693/what-is-the-best-way-to-submit-disabled-inputs-as-part-of-a-jquery-ajax-request can the disbaled checked check boxes be s

Re: Questions Regarding Wicket URL Generation

2011-05-11 Thread Andrea Del Bene
Hi Carlo, what kind of error/exception do you get when you use "setResponsePage(new ConfirmPage())"? Does it work if you use "setResponsePage( ConfirmPage.class);" Hi There, I'm mounting bookmarkable pages in the Wicket Application. For example, mount("index", IndexPage.class); mount("conf

Re: Questions Regarding Wicket URL Generation

2011-05-11 Thread Andrea Del Bene
l create a *new* page instance. On Wed, May 11, 2011 at 11:50 AM, Andrea Del Bene wrote: Hi Carlo, what kind of error/exception do you get when you use "setResponsePage(new ConfirmPage())"? Does it work if you use "setResponsePage( ConfirmPage.class);" Hi There, I'm m

Re: FileUploadField Losing Value After Form Submit

2011-05-11 Thread Andrea Del Bene
FileUploadField resets model at end of the request (see JavaDoc). You can use a Label or a DownloadLink to display/download the uploaded file. I've noticed that all the fields keep their values after you submit; the DropDowns, for example, don't get erased. But the FileUploadField does get era

Re: FileUploadField.getClientFileName() doesn't give Absolute Path

2011-05-11 Thread Andrea Del Bene
Keep in mind that with Wicket you are on the server side and on this side the file you are uploading simply doesn't exist on file system (so ther's no absolute path). With class FileUpload you can copy this file on your server (with method writeTo(java.io.File file) ) OR you can simply read file

Re: FileUploadField.getClientFileName() doesn't give Absolute Path

2011-05-11 Thread Andrea Del Bene
Keep in mind that with Wicket you are on the server side and on this side the file you are uploading simply doesn't exist on file system (so there's no absolute path). With class FileUpload you can copy this file on your server (with method writeTo(java.io.File file) ) OR you can simply read fil

Re: warn on exit from browser

2011-05-12 Thread Andrea Del Bene
I think JavaScript is the only way to do what you want. You can find something useful on stackoverflow: http://stackoverflow.com/questions/1631959/browser-window-close-event#1632004 Hello all, I would like to know if there is a way to open a popup window just before the user tries to exit the

Re: warn on exit from browser

2011-05-12 Thread Andrea Del Bene
So far as i know Wicket can't help you that much since this is a "pure" client side problem. Thank you andrea, but i already managed to use javascript to show a confirm dialog. What I would like to know is if it is possible to change the default behavior of the browser and to show a wicket popu

Re: Getting Parameters from URL

2011-05-12 Thread Andrea Del Bene
Hi, in your you can use static method RequestCycle.get().getRequest() to get the current request and extract parameters. We have code in our session object as follows: public class OurSession extends WebSession { public OurSession(Request request)}{ super(request) // GET P

Re: Grouping DataView

2011-05-15 Thread andrea del bene
Hi Marcus I guess you have already had a look at standard Wicket repeaters: http://wicketstuff.org/wicket14/repeater If no one of them satisfy your needs you can consider to implement a custom table view which reproduces the behavior of ERXGroupingRepetition Dear all, sorry for this newbie

Re: Strange error, cannot modify hierarchy

2011-05-16 Thread andrea del bene
Hi Brown, I've never used isTransparentResolver but I know it was removed in wicket 1.5 because it was it was quite confusing for users: http://apache-wicket.1842946.n4.nabble.com/remove-MarkupContainer-isTransparentResolver-td1909586.html You can try to replace it using one of the solutions

Re: MarkupNotFoundException strange behavior

2011-05-16 Thread andrea del bene
Do you mean that on another computer with the same user you don't get the error? That sounds weird. Have you tried cleaning cache and temporary files on pc that gives error? Hi, I'm having this error: org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'com

Re: PropertyModel not binding DropDownChoice

2011-05-16 Thread andrea del bene
Hi lucast, it would help watching source code of event's class to figure out what's wrong Dear Forum, I have yet another question about PropertyModel not binding to an object field but this time using DropDownChoice. In my form I have DropDownChoice eventOccurHowOftenDropDownChoice = new Dro

Re: Howto modify css-class prefix of all components on a panel?

2011-05-17 Thread Andrea Del Bene
Hi Mike, maybe is not related to your problem, but I think you shouldn't recall vistiChildren inside visitor because visitChildren already traverse the whole hierarchy of children. Hi, i use a component twice. Layout of first component has to be horizontal of second vertical (MainMenu, Si

Re: MarkupNotFoundException strange behavior

2011-05-17 Thread Andrea Del Bene
Andrea, It's so weird. I asked user to remove Cookies, to try with anothers navigators, and to refresh page. Not to clean cache, but while I'm having this problem in my server (I checked it on log) I think it shouldn't be user machine. Isn't it? Thanks! Tito 2011/5/16 andrea del

Re: IStringResourceLoader database implementation

2011-05-18 Thread andrea del bene
Hi, I've just finished to implement a custom string resource loader which checks for existing resource bundle in database. For now i've used a simple HashMap to store loaded entries and to retrieve them without reading again from database. I've choose HashMap over HashTable because I need to

Re: IStringResourceLoader database implementation

2011-05-18 Thread andrea del bene
Did you implemented this cache using some framework (ehcache, terracotta, spring cache, )? I've used a second level cache, works like a charm. - matt -- iPhone Mail On 18.05.2011, at 20:22, andrea del bene wrote: Hi, I've just finished to implement a custom string resou

Re: Wicket Cookbook - preventing multiple form submits

2011-05-19 Thread Andrea Del Bene
On 19/05/11 10:58, lucast wrote: process(IFormSubmittingComponent submittingComponent) on SubmitOnceForm class calls updateProcessedForms(); and super.process(submittingComponent) if the form hasn't been processed, so I changed the order of the above so that it calls super.process(submittingCom

Re: Wicket Cookbook - preventing multiple form submits

2011-05-19 Thread Andrea Del Bene
Probably your form is removed from component hierarchy when it is submitted.That's why you don't get exceptions if you call get page before form processing. When does your code replace panel? What's inside form's onSubmit method? Hi Andrea, Thanks for your reply. I call updateProcessedForms() A

Re: Wicket Cookbook - preventing multiple form submits

2011-05-19 Thread andrea del bene
HI, giving a quick look at your code it seems that your form's parent and the form itself are removed in onsubmit method when it calls callViewPersonPanel. If you wanna call super.process first and then updateProcessedForm in SubmitOnceForm, you should save current page reference and form pat

Re: Wicket Cookbook - preventing multiple form submits

2011-05-20 Thread Andrea Del Bene
Your welcome lucast! Don't hesitate to post again if you need more help or some other tricks. Hi Andrea, As you have suggested, on the SubmitOnceForm class, I've added two variables, page reference and page relative path, on calling process I get the copy the values: public void process

Re: Wicket Cookbook - preventing multiple form submits

2011-05-20 Thread Andrea Del Bene
By the way, I gave for granted that you move back from the view person panel to the create person one with browser 'back' button. Is it correct or do you use a specific link or button? Hi Andrea, As you have suggested, on the SubmitOnceForm class, I've added two variables, page reference and pag

Re: to integrate wicket with itext or any other framework

2011-05-23 Thread Andrea Del Bene
Take also a look at this post, maybe could be useful for you. http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/ to integrate wicket with other frameworks such as hibernate and itext any other configuration needed or just we can integrate and then we can create connection po

Re: to integrate wicket with itext or any other framework

2011-05-24 Thread Andrea Del Bene
Spring is not required and you can use just Hibernate. But as best practice is strongly recommended to use Hibernate with some kind of container framework and let it manage Hibernate for you. Spring is probably the most used container framework around the world, but you can choose other valuable

Re: Use pageparameters from authorized page to login

2011-05-25 Thread Andrea Del Bene
Hi Marieke, you could try to read page parameters before redirecting to interceptPage and build an instance of this page passing these parameters. Something like: //read parameters ...parameters = RequestCycle.get().getResquest().getQueryParameters() ; //convert parameters to PageParameters

Re: problem to test form in modal window with wicket tester

2011-05-26 Thread Andrea Del Bene
Hi Mathilde, maybe the form id you use in test is not correct. How do you add form to modalWindow? Can you attach code? Hi all, I have a modal window with a login form inside that works fine when I test it manually. I try to test it with wicket tester since yesterday. I saw in some mails o

Re: problem to test form in modal window with wicket tester

2011-05-26 Thread Andrea Del Bene
Form id is corret, but remember that form and feedback panel are not added directly to modal window. They are inside ConnexionContentPanel which in turn is added to modalwindow. In your test you should be able to access form calling getContent() before get("loginForm"), i.e: modalWindow.getCo

Re: problem to test form in modal window with wicket tester

2011-05-26 Thread Andrea Del Bene
d()); Form loginForm = (Form) loginPanel.get("loginForm"); thanks a lot ! 2011/5/26 Andrea Del Bene - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Original page cloned after popup dialog closes

2011-05-27 Thread Andrea Del Bene
Hi Scott, attach onClose() callback code, the problem should be there. Out app has a WebPage that opens a ModalWindow dialog passing in the page. The dialog allows the user to modify the model of one of the page's components. When the dialog closes and the onClose() callback in the page is cal

Re: Original page cloned after popup dialog closes

2011-05-28 Thread andrea del bene
Hi, sorry but I don't understand where is the model you are trying to modify. Are you sharing a model instance between modal window and RadioListFilterDialog? What does refreshRadioListAreaResponse method do? Andre, Line 41 opens the dialog. The object ID of the page is the same there, on l

Re: How to have custom components interact with CompoundPropertyModel?

2011-05-28 Thread andrea del bene
Hi, Have you called setType(Calendar.class) in your custom form component? Does its model remain 'null'? Hi all, I am pretty new to Wicket (using 1.4.10) and have some hard time to figure out how the interaction between components and models exactly works. So I was hopeing that someone here c

Re: Original page cloned after popup dialog closes

2011-05-28 Thread andrea del bene
Store data and sharing them across pages/components should be Wicket model's purpose. In your code you create a RadioListFilterDialog as modal window content. Do you pass it the original model of RadioListPage? Wicket creates a new version of the page after a popup Modal Window closes. This mean

Re: How to have custom components interact with CompoundPropertyModel?

2011-05-29 Thread andrea del bene
I believe the auto-resolving of models from a parent CPM is done during the constructor (the one with just the component id). On Sat, May 28, 2011 at 8:27 AM, andrea del bene wrote: Hi, Have you called setType(Calendar.class) in your custom form component? Does its model remain 'null'?

Re: How to have custom components interact with CompoundPropertyModel?

2011-05-30 Thread Andrea Del Bene
Can you debug onBeforeRender and see if CompoundPropertyModel refers to the original Panel's field containing the calendar? Or model's object is already null? I tried to call getModel() in onBeforeRender() to get hold of the parent's model (the CompoundPropertyModel of the panel) which works. B

Re: AutoCompleteTextField

2011-05-31 Thread Andrea Del Bene
Hi, as far as I know there's no standard handler for onselect event in AutoCompleteTextField. But you could attach it a AjaxFormComponentUpdatingBehavior("onChange") to execute some code when value changes. Alternatively you could implement a custom AbstractAutoCompleteRenderer which exposes

Re: Link onClick() method update on runtime

2011-06-02 Thread andrea del bene
Hi, you can consider to attach/remove behaviors to you link. For example : link = new Link("link"){ @Override public void onClick() { } }; link.add(new AjaxEventBehavior("onclick") { protected void onEvent(AjaxRequestTarget target) {

Re: Wicket

2011-06-02 Thread andrea del bene
You can mount a page to a static path in you Application class. in Wicket 1.4.x just call mountBookmarkablePage: //url for asterisk calls mountBookmarkablePage("/DialPage", DialPage.class); Under Wicket 1.5 you should call mountPage instead of mountBookmarkablePage. but I don't know how get th

Re: AjaxSubmitLink in ModalWindow throws Submit Button is not visible exception

2011-06-03 Thread Andrea Del Bene
Hi, I guess the problem is method save() which delays closing of the form and let you click few times consecutively. You can decorate your submit link with an IAjaxCallDecorator in order to disable link on the first click: public class AjaxDisableComponentDecorator implements IAjaxCallDecorat

Re: Wicket 1.5 - return to previous page link

2011-06-03 Thread Andrea Del Bene
Hi, if I'm not wrong in wicket 1.5 page map has been removed and you should have a compilation error if you write page.getPageMap(). Hello, Is it possible to return to previous page with wicket-link (not browser link). In 1.4 I used: PageprevPage = getPage().getPageMap().get(pageIndicator.getP

Re: Wicket 1.5 - return to previous page link

2011-06-03 Thread Andrea Del Bene
I don't know if in wicket 1.5 there is something to use in place of your old code. Anyway, you could always implement a custom link with a PageReference to the previous page. Yes, indeed that's because I post it on the mailinglist, to know what I should use in place. More info: I can't use javas

Re: AjaxLink and target="_blank"

2011-06-06 Thread Andrea Del Bene
Hi, why you would open a new tab with an ajax link? I mean, on a new you tab you should display a full page, not just an ajax response which usually is a portion of a page. Hello, My question is there any possibility to use AjaxLink with html markup target="_blank"? In my code wicket ignore t

Re: Links blocked when I enter page

2011-06-07 Thread Andrea Del Bene
Hi Zeldor, do these two links depend for any reason on the button you make visible/invisible? Have you overridden method isEnabled on this two links? Hi, I have rather weird problem. I have a page with navigation panel [mostly bookmarkable links]. It works fine on all but one. On that one page

Re: Basic TextField question

2011-06-07 Thread Andrea Del Bene
Hi, are you sure that setModelObject or setModel are really called in your code? If you modify TextField via Ajax be sure you have added it to AjaxRequestTarget When I create a TextField as follows: TextField postCode = new TextField( new Model("xxx")); the object is created and shows the

Re: Links blocked when I enter page

2011-06-07 Thread Andrea Del Bene
Can you reproduce this behavior in a quickstart project and attach it to Wicket JIRA? Nope, panel is separate. There should be no connection... I will rather paste some code, maybe it will give a hint... add(new FeedbackPanel("errorMsg")); // starting form private boolean col_approval =

A couple of questions about converter

2011-06-08 Thread Andrea Del Bene
Hi, I've started to explore the converting mechanism of wicket. I've red javadoc and both Wicket in Action and Wicket Cookbook but there still be something not completely clear to me. Converter are created by converter locator, which creates one instance of converter for each java type, right?

Re: Rounding values for display

2011-06-09 Thread Andrea Del Bene
Hi Zeldor, you could register a custom converter for Double type which displays value with the desired precision. Take a look at this page https://cwiki.apache.org/WICKET/using-custom-converters.html, example for Wicket 1.3 is what you need. Hi, I have labels showing data that is in Double f

Re: Graceful Session Expiry

2011-06-09 Thread Andrea Del Bene
Hi, as Martin said this kind of "strong" interaction is not part of standard API. But you could do a very simple thing to warn your users: start a Javascript time-event with session timeout as time-interval: http://www.w3schools.com/js/js_timing.asp. I.e: var t=setTimeout("/alert('Back to you

Re: Component-targetted feedback message was left unrendered even if I add Feedback Panel

2011-06-10 Thread Andrea Del Bene
Hi Mathilde, have you got any ListView component in your form? Do you use AJAX for form submitting? Hi all, I have a form which can send error message (on validation or on submit) and I try to show them in feedbak panel : I try with FeedBack panel like this : Java : add(new Feedba

Re: Component-targetted feedback message was left unrendered even if I add Feedback Panel

2011-06-10 Thread Andrea Del Bene
No no, it doesn't interfere. But since you use ajax for form submitting you have to ensure that feedback panel is refreshed adding it to AjaxRequestTarget. Have you done it in your code? Is Ajax interfering with feedback Panel? --

Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-14 Thread Andrea Del Bene
Hi Marieke, please attach the code that should modify HomePage's model. Anyway, to solve this problem you could use the new inter-component events mechanism included with Wicket 1.5: https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-Intercomponentevents Just ma

Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-15 Thread Andrea Del Bene
Hi Marieke , I've tried your code and I have your same problem. Tomorrow I will try to investigate further and maybe I will create an issue. Hi, I just tried it with the inter-component events, and it's the same problem as with the abstract functions.. Please try my code: HomePage: public

Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-16 Thread Andrea Del Bene
Hi, your last version (the one using inter-component events) works fine if you pass ModalWindowPage PageReference instead of page instance, i.e: public ModalWindowPage(final PageReference pageReference){ add(new AjaxLink("btn") { /** *

Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-16 Thread Andrea Del Bene
Right, I agree. As soon as possible I will open a JIRA issue. Hello, 1. And if I want to use ModalWindow with ModalWindowPage from a Panel? I can pass the PageReference to, but than I will have to catch the event on each page the panel is added.. Not really handy when using Panel as reusable ite

Re: Page->ModalWindow[Form]->ModalWindow[Form] problem

2011-06-17 Thread Andrea Del Bene
Hi Alex, maybe I'm facing the same problemyour modal windows' content is a Page or a Panel? Hello I got a strange problem with multiply Modal Windows. Let's imagine we have an Entity A with field of entity B (1 to 1 relation) . Now we create the Edit page, which contains a form and some

Re: Page->ModalWindow[Form]->ModalWindow[Form] problem

2011-06-17 Thread Andrea Del Bene
I'm going to open an issue on JIRA Page. I found your discussion with Marieke Vandamme. Looks very similiar to my case. On 17 June 2011 14:02, Andrea Del Bene wrote: Hi Alex, maybe I'm facing the same problemyour modal windows' content is a

Re: Page->ModalWindow[Form]->ModalWindow[Form] problem

2011-06-17 Thread Andrea Del Bene
The issue is here: https://issues.apache.org/jira/browse/WICKET-3809 I trust in you, a colleague On 17 June 2011 15:15, Andrea Del Bene wrote: I'm going to open an issue on JIRA - To unsubscribe, e-mail: users-uns

Re: Page->ModalWindow[Form]->ModalWindow[Form] problem

2011-06-17 Thread Andrea Del Bene
about page version if there are no such problem transmitting modal result from modal to page. Such example exists even in a example bundle... I feel I miss something here. On 17 June 2011 16:14, Andrea Del Bene wrote: The issue is here: https://issues.apache.org/jira/browse/WICKET-3809 I trust i

Re: Handle selection changing on Palette

2011-06-18 Thread Andrea Del Bene
HI, have you tried with AjaxFormComponentUpdatingBehavior? As Palette's JavaDoc says: " Ajaxifying the palette: The palette itself cannot be ajaxified because it is a panel and therefore does not receive any javascript events. Instead ajax behaviors can be attached to the recorder component

Re: CSS Change not being picked up when using TextTemplateResourceReference

2011-06-21 Thread Andrea Del Bene
Hi rush66, you are right, method getResource in TextTemplateResourceReference reads resource just the first time you call it. You can override this method like this: @Override public IResource getResource(){ if(Application.get().getConfigurationType() == RuntimeConfigurationTyp

Re: CSS Change not being picked up when using TextTemplateResourceReference

2011-06-21 Thread Andrea Del Bene
Sorry, I was checking Wicket 1.5 source where getResource() is not final. Isn't there an issue with overriding the getResource() method in ResourceReference if it is marked as final? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CSS-Change-not-being-picked-up-wh

Re: CSS Change not being picked up when using TextTemplateResourceReference

2011-06-21 Thread Andrea Del Bene
Well...is a little bit complicated but you should call ResourceReference's invalidate() after your pages have been rendered. But I don't know how you should put this method call. Sorry I did not clarify that we are on 1.4.17. While I would love to migrate our project to 1.5 I don't know how

Re: Wickettester testing a given WizardStep

2011-06-22 Thread Andrea Del Bene
Hi, WizardStep is a panel so you can use startPanel. I have a RegistrationPage containing a Wizard with 5 steps. Now I want to write a WicketTester test for ONE specific WizardStep, let's say step 4. How? (I could write a test clicking through all steps before step 4 as I understood documentati

Re: CSS Change not being picked up when using TextTemplateResourceReference

2011-06-23 Thread Andrea Del Bene
t's not as simple as if (Application.get().getConfigurationType().equalsIgnoreCase("development")) { invalidate(); } It isn't clear to me how I might go about that but It would need to run in something like onAfterRender()? Andrea Del Bene wrote: Well

Re: need some advice

2011-06-23 Thread Andrea Del Bene
HI Decebal, you should "merge" User and Customer classes into a single class, or you can create a common super class, for example an AbstractUser. Once you have a single class for user's authentication, you could do a single login page with a checkbox to tell apart Customer users from adminis

Re: Column Filters

2011-06-24 Thread Andrea Del Bene
Hi, take a look at the fantastic :-) free chapter from Wicket Cookbook. It's about what are you doing with tables. http://www.google.com/url?sa=t&source=web&cd=5&ved=0CC8QFjAE&url=http%3A%2F%2Fwww.packtpub.com%2Fsites%2Fdefault%2Ffiles%2F1605OS-Chapter-5-Displaying-Data-Using-DataTable.pdf&ei=

Re: Strange issue with AjaxLink and AjaxRequest

2011-06-28 Thread Andrea Del Bene
Hi, do you use the same Wicket version on development and production environments? Anyway the problem could be due to ListView which by default replaces all child components with new instances each time is rendered. Try calling setReuseItems(true) on your ListView. Hi, i'm having the strang

Re: resetting form components

2011-07-02 Thread Andrea Del Bene
HI, are you sure that button submit is executed? Have you debugged it? Maybe the code is not executed because form has some validation errors... Hi, im taking input from user in the form components and trying to reset them when they are shown next time, i have tried doing form.clearInput(), i

Re: replace panel in dialog box

2011-07-02 Thread Andrea Del Bene
Hi, on click of link try to replace your code with this one: WebMarkupContainer tmp = new ModifyAATemplate("modifyAATemplatePanel", aat); modifyPanel.replaceWith(tmp); modifyPanel = tmp; tmp.setOutputMarkupId(true); target.addComponent(modifyDialog); modifyDialog.open(target); Hi, im tryi

Re: resetting form components

2011-07-03 Thread Andrea Del Bene
Hi, you should not recreate the whole ManageAATemplatePanel each time you submit your form. In this way in addition to waste memory and cpu time, you are not able to update your form and components via AJAX because you replace them with new instances. So adding your form to ajaxrequesttarget h

Re: 1.5 rc5.2 IVisitor on page?

2011-07-04 Thread Andrea Del Bene
Hi nino, AbstractRepeater class (superclass of ListView) calls onPopulate during onBeforeRender, so as long as this event is not triggered listviews should be empty. changing it from onconfigure to onbeforerender does the trick.. Im not sure what the difference are though.. 2011/7/4 nino mart

Re: 1.5 rc5.2 IVisitor on page?

2011-07-04 Thread Andrea Del Bene
mmm...I didn't find any wiki about it. I sorta figured it had something todo with the fact that onbeforerender was called at a later time than onConfigure. Is there a good description of the timeline of these methods somewhere? 2011/7/4 Andrea Del Bene: Hi nino, AbstractRepeater

Re: resetting form components

2011-07-04 Thread Andrea Del Bene
You should add form reference to Ajax target. target.addComponent(form) Remeber to call setOutputMarkupId on form instance. thanks it worked but how do i refresh the ManageAATemplatePanel now? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/resetting-form-compon

Re: Not closing the datepicker upon clicking outside

2011-07-06 Thread Andrea Del Bene
Hi, here http://developer.yahoo.com/yui/examples/calendar/calcontainer.html you can find an example of YUI calendar that closes when you click outside its area. You can see how it is configured and using this configuration in your DatePicker overriding configure() method. Hi, I have used the

Re: Not closing the datepicker upon clicking outside

2011-07-07 Thread Andrea Del Bene
I thought it was easier...anyway in the example I posted yesterday calendar is closed with a specific click handler: // Hide Calendar if we click anywhere in the document other than the calendar 2Event.on(document, "click", function(e) { 3 4var el = Event.getTarget(e); 5var

Re: Skip validation on nested form's form level validators

2011-07-11 Thread Andrea Del Bene
Hi, why don't simply put the inner form out of the outer one? Anyway, you could remove inner form's validators before the outer form is submitted and add them again when submit process is over (onFormSubmitted() ) Hi all, I have two forms nested within each other (wicket 1.4.17). The inner f

Re: org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for component 'AboutUs' not found

2011-07-12 Thread Andrea Del Bene
Hi, attach java code and HTML of this new class so we can take a look. Hi, I am extending a class SomeDetailPage which extends SomePage which in turn extends WebPage. Now this SomeDetailPage is working fine and has no issues. But I have created a new class and extended some of its features and w

Re: Is there a class for encoding page parameters for urls?

2011-07-13 Thread Andrea Del Bene
Hi Mike, have you tried org.apache.wicket.request.URLEncoder? Hi, is wicket providing a class encoding a page parameter string for url? Usecase: I have a searchword. This is put plain into the page parameters. But if i use for example the searchword "myword%" i get ERROR - RequestCycle

Re: Generate ajax link

2011-07-14 Thread Andrea Del Bene
Hi, you can use Loop component to generate a dynamic number of links. For example: HTML code: Java code: List linkList = ... Loop loop = new Loop("itemList", linkList.size()) { @Override protected void populateItem(LoopItem item) {

Re: target.addComponent and impact

2011-07-14 Thread Andrea Del Bene
Hi, If you have an ajax event and then you call target.addComponent on another component or collection of other components. What do you mean with "another component"? You should be able to add any component you want, except AbstractRepeater subclasses (ListView, RepeatingView, ecc...). These co

Re: Can i "include" an external html fragment?

2011-07-14 Thread Andrea Del Bene
Hi Mike, take a look at interfaces IMarkupResourceStreamProvider and IMarkupCacheKeyProvider. Using the first one you can implement method getMarkupResourceStream which returns an IResourceStream with your custom HTML. The second interface has a method called getCacheKey. You must override it

Re: target.addComponent and impact

2011-07-14 Thread Andrea Del Bene
Right, I've looked at code and it uses an hashmap in last case i think rendering will be once because the components are kept in map with markupid of component as key in ajaxrequesttarget. On Thu, Jul 14, 2011 at 9:11 PM, Andrea Del Bene

Re: Button component not enabled in FireFox

2011-07-18 Thread Andrea Del Bene
Hi, which version of Firefox and Wicket are you using? We are using the standard ModalWindow in our base page. To our modal we add a panel with one button, used to close the window. > From our base page, we instantiate a wizard. Works great, on all browsers, apart from the following issue: In F

Re: Button component not enabled in FireFox

2011-07-19 Thread Andrea Del Bene
Can you reproduce this issue in a quickstart project and attach it to JIRA? Wicket: 1.4.16 FireFox:3.5.4 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Button-component-not-enabled-in-FireFox-tp3675168p3677363.html Sent from the Users forum mailing list archive at

Re: documentation

2013-01-24 Thread Andrea Del Bene
For what it's worth :) I'm about to finish a free reference document for Wicket 6. I've started to write it almost one and a half years ago and it should be ready by the end of February. The example code used in the document are hosted here https://github.com/bitstorm/Wicket-tutorial-examples T

Re: Load Image in IE fails

2013-01-26 Thread Andrea Del Bene
Hi. Which version of Wicket are you using? And what versions of IE have you tested? Hello, Im struggling with a very strange problem. Im loading the images from the file system using NonCachingImage or Image classes and everything work fine in FF but in IE it fails to load the images randomly

Re: How to prevent form input appended as URL parameters ?

2013-01-28 Thread Andrea Del Bene
Page parameters always contribute to the final URL of the page (in your example with parameter "txt"). You can avoid this passing the value with a different technique, for example passing the textfield model via constructor. Something like: StatelessForm form = new StatelessForm("myForm") {

<    2   3   4   5   6   7   8   >