Re: DropDownChoice - how to select default item

2010-09-01 Thread andrea del bene
Hi drf! Have you checked the generated HTML? Is there any 'selected' attribute in your option tags? I am having a problem that my DropDownChoice is not selecting the item I expect, only Choose one. Here is the code: ... private ListLong accountList = new ArrayListLong(); private Long

Re: Radio buttons in modal window in IE6

2010-09-02 Thread Andrea Del Bene
Visually I can switch through radio buttons, but, when I submit form - it's always the same value - Hi! Have you tried adding model to RadioGroup? es: RadioGroup choiseGroup = new RadioGroup(searchParam, new Model()); Grafas martynas.jurkus at gmail.com writes:

Re: Radio buttons in modal window in IE6

2010-09-03 Thread Andrea Del Bene
Grafas martynas.jurkus at gmail.com writes: Oh, yeah, sorry, the code sample doesn't show it... Sorry about that. Yeah, RadioGroup has model set. Hi, I've tried to reproduce your case in my development environment. Here's the HTML I used for test --- span wicket:id=modalWin

Re: java.lang.ClassNotFoundException: org.apache.wicket.protocol.http.WicketFilter

2010-09-03 Thread Andrea Del Bene
x-man oezkanp at googlemail.com writes: hi at all, at first sorry for my poor english. I`m a wicket beginner and have the following problem which i could not solve: When i want so start my tomcat i get often the message i will post bellow. In past it helped to delete the tomcat

Re: image path problem

2010-09-06 Thread Andrea Del Bene
Zeldor pgronkiewicz at gmail.com writes: Hi, I am trying to group all my images into one folder, but the problem is that I cannot get them displayed - that is as long as that folder path is higher in the hierarchy than my html files. So images/image.jpg works perfectly, but

Re: How to run some JS only once after Ajax rendering is done ?

2010-09-07 Thread Andrea Del Bene
Joseph Pachod jp at thomas-daily.de writes: When trying to reach this goal, I tried to run the init call through an header contributor, but the call is then done before my content is put on the page, making it useless: public abstract class AbstractEditBehavior extends AbstractBehavior {

Re: Radio buttons in modal window in IE6

2010-09-07 Thread Andrea Del Bene
Grafas martynas.jurkus at gmail.com writes: ... But every time I submit that form model object is NAME and in browser radio button jumps from whatever I checked to the first one although I never relaod the radio button part. Only search result container is added to a target to display

Re: Radio buttons in modal window in IE6

2010-09-07 Thread andrea del bene
On 09/07/2010 07:42 PM, Grafas wrote: Strange... Yes, AJAX work perfectly - we are using AJAX in many places... Also we use other modal windows with forms and text fields, text areas and dropdowns in it and they work just fine... This modal window is the only with radio buttons Andrea, are

Re: How can I capture the data on one panel 1 when i click submit button on panel 2

2010-09-09 Thread Andrea Del Bene
Ben benarjee_g at yahoo.com writes: Here is my panel1 ... add(new ImageQualityForm(imageQualityForm, new CompoundPropertyModel(imageQuality), aform)); } private static class ImageQualityForm extends Form { public ImageQualityForm(String id, IModel model,

Wicket 1.5 M1 and Request class

2010-09-10 Thread Andrea Del Bene
Hi, I'd like to try new milestone release of Wicket. I've red migration document (https://cwiki.apache.org/WICKET/migration-to-wicket-15.html) which says that class org.apache.wicket.Request was moved to org.apache.wicket.request.Request but I can't find this class in distribution's jar. I've

Re: Wicket 1.5 M1 and Request class

2010-09-10 Thread Andrea Del Bene
Thank you Martin :)! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Wicket 1.4.11 seems to have Ajax support broken under Firefox 3.6.x

2010-09-10 Thread Andrea Del Bene
MONZON Jose jose.monzon at efgfp.com writes: Hi there! I've been giving a Try to Wicket framework. But I have to admit that I'm starting to get crazy! Some help appreciated. I'm using last Wicket distribution 1.4.11 And I'm trying to implement the Wicket Form (with ajax) example you

Re: Wicket 1.4.11 seems to have Ajax support broken under Firefox 3.6.x

2010-09-10 Thread Andrea Del Bene
Hi Jose, I can confirm this bug. It works fine with Wicket version 1.4.8. I will open a bug on Apache JIRA. Sh**! Sorry, but know it seems to work also version 1.4.11. What jars have you inserted in your classpath to run test code?

Re: Wicket 1.5 benchmarks?

2010-09-10 Thread Andrea Del Bene
nino martinez wael nino.martinez.wael at gmail.com writes: Hi Has anyone run some comparison benchmarks between wicket 1.4 and 1.5.. My feeling are that 1.5 are faster.. regards Nino - To unsubscribe, e-mail:

Re: Wicket 1.4.11 seems to have Ajax support broken under Firefox 3.6.x

2010-09-10 Thread Andrea Del Bene
Martin Grigorov mgrigorov at apache.org writes: Please create a minimal application (quickstart) and attach it to Jira ticket. On Fri, Sep 10, 2010 at 2:45 PM, Predrag Spasojevic predrag.spasojevic at gmail.com wrote: I have the same problem with AjaxButton, wicket 1.4.11 and FireFox

Re: Javascript files not loading in IE6

2010-09-15 Thread Andrea Del Bene
Redo Cano, Xavier xredo at gencat.cat writes: I'm sure that this is happening due to a bad configuration of my wicket app, because the Ajax examples from wicket-stuff work are working correctly with IE6 for me but I've checked the source code and I'm not able to find the reason why my

Re: Javascript files not loading in IE6

2010-09-15 Thread Andrea Del Bene
Redo Cano, Xavier xredo at gencat.cat writes: Thank you for your response Andrea. I've just tried the 1.4.12 build and it didn't solve the problem. I don't think it's a bug as long as in the wicket examples page this functionality is working fine with IE6. Ciao! Hi, I've replaced file

ChoiceRender and many property expressions

2010-09-21 Thread Andrea Del Bene
Hi, I need to render options in a MultipleSelectList using more then one field from a POJO. Is possible to use ChoiceRender selecting more then one property (for example passing it more then one property expression)? Thank you, Andrea.

Re: noob question

2010-09-23 Thread Andrea Del Bene
sonoerin humblecelt at yahoo.com writes: customerA.domain.com customerB.domain.com So I am not sure if its best to just have multiple deployments each with their own Wicket Application/homepage or if there is a way to bundle them all into a single app that handles each request/response

Re: automatically sizing modal window

2010-09-26 Thread andrea del bene
On 09/25/2010 02:30 PM, Fernando Wermus wrote: I would like so much this feature. It is so important to me! On Sat, Sep 25, 2010 at 5:51 AM, Josh Kamaujoshnet2...@gmail.com wrote: Hi guys, Is there are way to ensure that a modal window automatically sizes to fit the available content?

Re: automatically sizing modal window

2010-09-27 Thread andrea del bene
Hi Martin, what I'd like to have is a window that automatically adjusts its height and width in order to ensure that all its content it's always visible without scrollbars. I think it could be done with some JavaScript code. Do you think it's possible to implement such behavior? Thank you

ModalWindow causes 'Submit Button not visible' exception

2010-10-01 Thread Andrea Del Bene
Hi everybody, I'm facing the following problem. I've got a page with a wicket form and just one submit button. When I press return key in a form field the form is submitted with no problem. Inside form I've one link that opens a ModalWindow via ajax. This window contains another wicket form which

Re: RadioChoice - what's wrong?

2010-10-10 Thread andrea del bene
Hello Zeldor, I've red your code and it seems that you define variable rc two times: the first time as form private field and the second time just below between braces. When onSubmit method calls rc.getModelObject() it uses private field rc which was not initialized and so triggers a

Re: Dropdrown mapping from Object to string?

2010-10-21 Thread Andrea Del Bene
Hi Nino, what kind of Model are you using as backing model? You can try nesting models to extract string property from object For example: PropertyModelDrop down control's model See IChainingModel for further informations. Hi I have an dropdown which gets feed a Queue list, I have a custom

Re: Modalwindow with confirm box on close button

2010-10-27 Thread Andrea Del Bene
Hi Marieke, some times ago I've solved a similar problem using JQuery and a plugin called jQuery AOP, but I don't know if exists a simpler solution. I used jQuery AOP with close button which is a standard anchor with class attribute set to 'w_close'. The following script will ask user to

Re: DropDownChoice

2010-11-01 Thread andrea del bene
Hi, you get this exception because you set as object model an Account object and not a Long one, which is the expected type for model. I suppose you should pass just Account id field as object model. I wonder if anyone can help with the following bug in my code. It relates to a Panel which

Re: Send an object to page

2010-11-01 Thread andrea del bene
Passing objects to webpage via constructor is fine if you feel comfortable with it. If you wanna change URI you should take a look at Wicket URL Coding strategies: https://cwiki.apache.org/WICKET/url-coding-strategies.html. Using coding strategies you should be able to change URL as you

Re: Nested forms onSubmit() question ...

2010-11-04 Thread Andrea Del Bene
Hi Armando, have you tried calling method visitChildren(Form.class, visitor) in the main onSubmit? Maybe this could help you to gather children's data before submit root form. Bye. Hey wicket ppl ... Is there any beforeSubmit() event like method available on Form. I need it cause I

Re: Customizing AutoCompleteTextFeld

2010-11-22 Thread Andrea Del Bene
Hi, take a look at file DefaultCssAutocompleteTextField.css. You could find it into Wicket source code in folder src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete. This file contains css elements you need. Bye.

Re: close tag not found error in markup

2010-11-23 Thread Andrea Del Bene
Hi Andrea, maybe have you just missed close tag for topToolbars component? In the last code snippet I see just one /span tag. I am very sorry, but it seems like a portion of the code I paste is being stripped when I post it. This is the code that's nested inside the thead tag span

Re: close tag not found error in markup

2010-11-23 Thread Andrea Del Bene
Is there any code inside toolbar? Is just an empty component? I am very sorry, but it seems like a portion of the code I paste is being stripped when I post it. This is the code that's nested inside the thead tag span wicket:id = topToolbars span wicket:id = toolbar / span

Re: multilevel markup inheritance

2010-11-23 Thread Andrea Del Bene
No problem, it should work fine. Page inheritance is just like standard class inheritance Hello, i am starting to explorer this beautifull framework and want to make a big use of markup inheritance. What i can't do is to make a page3, which markup inherits from page2 and at the same time page2

Re: close tag not found error in markup

2010-11-24 Thread Andrea Del Bene
Since version 1.4.6 DataTable HTML has changed to fix https://issues.apache.org/jira/browse/WICKET-2620. Component with id toolbar has been removed and that should cause the problem reported by Andrea. Until 1.4.5 /wicket:panel thead wicket:id=topToolbars wicket:container

Re: visural-wicket 0.6.5 released!

2010-11-26 Thread Andrea Del Bene
Hi Richard and thank you for your work! I've developed a custom multi select widget which is much more user friendly then classic HTML multiselect control. This widget looks like this: http://drupal.org/files/issues/filefield_sources_multiselect_widget_0.jpg. It's build upon standard Wicket

Re: visural-wicket 0.6.5 released!

2010-11-26 Thread Andrea Del Bene
Damn! Didn't know about the existence of this component. BTW, there are two examples about Palete (here http://wicketstuff.org/wicket14/compref/) and one is about wicket.markup.html.form.palette.Palette, but it seems that this class doesn't exist in Wicket source. Is this an error? Hi Isn't

Re: ModalWindow update size

2010-11-27 Thread andrea del bene
at the patches, there is a method that sets the size of the window, might be something to borrow. cheers, Steve On 19/11/2010, at 8:52 AM, andrea del bene wrote: - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: AjaxButton + Form

2010-11-30 Thread Andrea Del Bene
Hi Alex, AjaxButton was build for submitting form via Ajax and that's why it has an AjaxFormSubmitBehavior attached. You could substitute it with AjaxLink component if you want to avoid form submitting. Hello! May someone explain me, why AjaxButton must call his parent form onSubmittion?

Re: AjaxButton + Form

2010-11-30 Thread andrea del bene
Well, Form#onSubmit is called only if form's validation step went fine. Maybe some of your fields' validator is preventing form submission. BTW, where is onSubmission method? Is a Wicket standard method? I can't find it in Wicket classes. Thanks for your response. Looks like I misunderstand

Re: AjaxButton + Form

2010-12-01 Thread Andrea Del Bene
That sounds strange. AjaxButton implements IFormSubmittingComponent interface, hence it should first invoke its onsubmit method and then parent form's onSubmit (as described in Form class JavaDoc). Is your AjaxButton inside form's hierarchy? It is public final void onFormSubmitted() No,

Re: Feedback panel on modal window

2010-12-02 Thread Andrea Del Bene
Hi Tito, how do you send form inside modal window? I guess you are sending it by AJAX. I've written a similar modal window few weeks ago. Be sure to add your feedback panel to thw AjaxRequestTarget object of submitting component. Bye. Hi, I have one model window with a panel atached. I

Re: Validate after Submit?

2010-12-03 Thread andrea del bene
Hi, you can implement a custom IValidator to attach to userid field or a custom IFormValidato for your input form. Do you think they could work for your application? Hi, a general Question, and I am interested in how you would solve that? I have a couple of form elements, that I want to

Re: Brix CMS : Based Wicket framework

2010-12-10 Thread Andrea Del Bene
Thank you moèz, looks very interesting! It's very important for wicket users to now what is Brix CMS. So see the following link: http://javajeedevelopment.blogspot.com/2010/12/brix-cms-apache-wicket-based-cms.html - To

Re: Wicket extensions AjaxIndicatingDropdownChoice?

2010-12-15 Thread Andrea Del Bene
Yes, your code seems accordant with other indicating components. should I add one, its just inline with the other indicating components? package com.netdesign.wallboard.component; import java.util.List; import org.apache.wicket.ajax.AjaxRequestTarget; import

Re: URL coding strategies

2010-12-16 Thread Andrea Del Bene
Hi Henrique, are you using a custom WebRequestCodingStrategy implementation? This class should let you encode visible URL as you prefer. Hello, I am mounting my URLs so I can list product items like so: http://www.mysite.com/item/id/0 http://www.mysite.com/item/id/1 and so on...then I user

Re: Set Current DropDownChoice Item (Selected)

2010-12-21 Thread Andrea Del Bene
HI, suppose that your choices list is called choicesList and your DropDownChoice is called options you should write something like: options.setModelObject(choicesList.get(i)); How do I set the DropDownChoice to a particular choice (item) of the list? My DropDownChoice has items X,Y,Z. I

Re: wicket:message and property resolving

2010-12-22 Thread Andrea Del Bene
Hi Matthias, I think that label should go inside wicket:message tag, i. e. wicket:message key=myKey span wicket:id=something/ /wicket:message Hi I just disovered by chance that it's possible to use property expressions in normal wicket:message key=.../ elements which then get resolved

Re: Simple way to show image on WebPage

2010-12-24 Thread andrea del bene
Hi Anton, I've used class ContextImage in a situation like this, but folder containing images must be inside WebContent folder, at the same level of WEB-INF folder. In this scenario you should be able to access your images writing something like this add(new ContextImage(icon,

Re: one form - two submit buttons with different behavior

2011-01-05 Thread andrea del bene
Hi Marek, you could override form method 'process(IFormSubmittingComponent submittingComponent) ' checking whether submittingComponent is submitButton or ajaxButton. submitButton follows standard behavior calling super.process(...), whereas ajaxButton just call validate(). But remember

Re: removing SimpleAttributeModifier after added

2011-01-10 Thread andrea del bene
Or simply make it invisible replace it with dummy one that renders nothing 2011/1/10 Altuğ Bilgin Altıntaşalt...@gmail.com Thanks. Also i want to know if i remove an component from Java side final WebMarkupContainer delete = new WebMarkupContainer(delete); add (delete ) after than

Re: AutoCompleteTextField - Event onSelect?!

2011-01-13 Thread Andrea Del Bene
Hi, on 4 January Tom Burton (tom.bur...@alaska.gov) posted a message here with a modify version of AutoCompleteTextField which introduces onSelected event. I didn't have time yet to check his code but a think I will attach it to a JIRA ticket in the next days. Bye. Hi, iam using

Re: Mapping wicket:id to component without changing Java code

2011-02-01 Thread Andrea Del Bene
Hi Alec, I don't think Wicket has a configuration option that can help you. But you can create a web page superclass that parses HTML and adds your form if it finds tag div wicket:id=creditCardForm/. For example you can override onInitialize method and add something like this: MarkupParser

Re: ListChoice move up and down

2011-02-02 Thread Andrea Del Bene
Hi, it's not exactly what you are looking for, but you could take a look at Palette component. You can find a live example here: http://wicketstuff.org/wicket14/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.PalettePage This component support choices moving for 'selected'

Re: ListChoice move up and down

2011-02-02 Thread Andrea Del Bene
Maybe you should make it using ListMultipleChoice instead of ListChoice. If you select all options before submitting, ListMultipleChoice will keep the ordered list in its model. Ok i can move up and dowm using jquery Here is the answer link :

Re: [announce] Wicket 1.5-rc2 is released!

2011-02-28 Thread Andrea Del Bene
Hi fstof, maybe you meant wicket-core-1.5-rc2.jar and not wicket-1.5-rc1.jar. In full distribution still missing wicket core jar. Hi I downloaded the full distribution, but it seems that the wicket-1.5-rc1.jar jar in lib missing. I think it might be a good idea to maybe add it I'm not

Re: [announce] Wicket 1.5-rc2 is released!

2011-02-28 Thread Andrea Del Bene
I think wicket team decided to not distribute aggregate jar (that is wicket-1.5-rc2.jar.) no more. There was a thread about it on dev mailing list. Subject was [discuss] How to resolve wicket aggregate classes / sources jar issues Andrea Del Bene-2 wrote: Hi fstof, maybe you meant wicket

Re: Using jQuery with Wicket

2011-03-09 Thread Andrea Del Bene
Hi tech7, could Palette component be helpfull for you? http://wicketstuff.org/wicket14/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.PalettePage I have some html pages including some jquery functionaliy. For example: select a choice from a select box then click a

Re: Using jQuery with Wicket

2011-03-09 Thread Andrea Del Bene
Hi, how do you add this label to your page? can you show initialization code of second page? any idea? I am really stuck with that. I will be thankful if you share your idea with me. - Developer Wicket Java JSP -- View this message in context:

Re: Using jQuery with Wicket

2011-03-09 Thread andrea del bene
Hi, I think you've forgotten adding code Hi, I am calling second page onsubmit method of the first page as: setResponsePage(PGSecond.class); and on the second page label is added as: Thanx. - To unsubscribe, e-mail:

Re: ListMultipleChoice Binding List Problem

2011-03-22 Thread Andrea Del Bene
Hi tech7, in these lines: IModelCollectionItem allItemsModel = new PropertyModelCollectionItem( new Model(), groupModelsDrop.get(propertyItem.getIteration())); you are building a property model from another generic model (i.e. new Model()) without an instance inside it. So when

Re: [OT] Apache Wicket Merchandise, nominees Spring roundup

2011-03-29 Thread Andrea Del Bene
I nominate Martin and Pedro for the same reasons. They answered all my nubie's questions despite my bad English :-) I nominate Martin Grigorov a and Pedro Santos. Thanks to them, none of my questions has gone un answered in this forum. josh. On Mon, Mar 28, 2011 at 8:45 PM, nino martinez wael

Re: Wicket 1.5 and Tomcat 7 encoding issues?

2011-03-30 Thread Andrea Del Bene
Hi, maybe I've got the same problem. I'm using Wicket 1.5 RC3 (but with tomcat 6.0.32) and each italian character (èàòì...) went lost, even if page encoding was UTF-8. I've tried each of the previous suggestions but they didn't work. I've solved it adding a filter to my app, as described here

Re: Wicket 1.5 and Tomcat 7 encoding issues?

2011-03-30 Thread Andrea Del Bene
No, I'm running my application in a development environment, that is tomcat started by Eclipse and I've got just one application. Its web.xml is the following: ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

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:

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

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

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

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

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

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

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

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); ListString available = new ArrayListString(); original.add(A); original.add(B);

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(form);

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:

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 TextFieldString

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

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

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

Re: Questions Regarding Wicket URL Generation

2011-05-11 Thread Andrea Del Bene
Sorry, I've misread mail subject :) There is no error. Just the generated url contains a state (wicket:interface=.) which means use this page instance when the user tries to open this Url. Using setResponsePage(Class) has no state and creates a Url which when targeted will create a *new*

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

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

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

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 popup

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

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

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

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 DropDownChoiceHowOftenType

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,

Re: MarkupNotFoundException strange behavior

2011-05-17 Thread Andrea Del Bene
Is there any software on the infamous machine that could interfere with the tcp/ip connection (firewall, antivirus, security suite, etc...) ? Yes Clint. In fact extends from BasePage wich extends from WebPage. But the point is, it's working except for one user y one computer. Andrea, It's so

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

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 beneandrea.on@libero.it wrote: Hi, I've just finished to implement a custom

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

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

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

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

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

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

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

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

  1   2   3   4   5   6   7   8   >