Re: Inputing string instead of a double value in junit test case throws NumberFormatException

2012-05-02 Thread Andrea Del Bene
At first sight I would say that your problem could be related to a different Locale used during unit test. You should compare the output of 'myData.getAmount()' when is called during testing and when is called running on Jetty server. I have a integration test case: FormTester for

Re: Form having error cannot be modified via Ajax

2012-05-02 Thread Andrea Del Bene
Hi, what are you using to change form's values when user clicks on table (an Ajax behavior ?) ? Hi, In my application, I'm developing a dynamic page with a table of currencies per dates and on the side I have a form with a 'from' date and 'to' date. Clicking on a cell of the table changes the

Re: Submitting multiple forms with one button

2012-05-03 Thread Andrea Del Bene
Hi, don't know if you can do it, but I think you should first investigate how to do this with JavaScript. This blog seems interesting: http://yogendrakrsingh.blogspot.it/2010/03/javascript-trick-submitting-multiple.html Sorry for this I know that this topic already been discused but I didn't

Re: Field with OnChangeAjaxBehavior Not updating.

2012-05-04 Thread Andrea Del Bene
Try calling form.clearInput() after you have updated the value of the models. I am having a bit of trouble making a required form field update from an ajax button. The field is marked required and has an OnChangeAjaxBehavior. The user deletes the contents of the field Presses an AjaxButton (tod

Re: problem with ChoiceRenderer

2012-05-11 Thread Andrea Del Bene
Hi, the type of the model and of the renderer must be the same chosen for the DropDownChoice (Vyrobok in your case). In the first version of your code this was not true for your model because it pointed to a String field (named "kluc"). Your second version works fine because you don't provide

Re: Prevent a fragment from rendering the outer tag

2012-05-12 Thread Andrea Del Bene
Hi, fragment.setRenderBodyOnly(true) I have following markup: ... ... ... Foo Bar ... ... When adding "fragment-1" (instance of Fragment) to "page", it renders using Wicket 1.4.* as: ... ... ... Bar ... Foo ... How can I make the Fragment not to render the div-tag around

Re: Feedback panel inside form

2012-05-14 Thread Andrea Del Bene
Hi, it's absolutely ok to insert a feedback panel into its form. Every example of feedback panel I have seen places the feedback panel outside the form element. I have some markup from a client that has some Javascript doing client side validation with a styled feedback panel (a div) inside

Re: add feedback message a to new panel.

2012-05-16 Thread Andrea Del Bene
Hi, calling error() on your new panel should work. Obviously you must have a FeedbackPanel somewhere on your page ;) I have a Button, which replaces parent panel with a new panel. In the new panel I want to display an error/warn/info, but I can't seem to figure out how. I've tried with getSessi

Re: How to save the selected radio choice option in wicket

2012-05-17 Thread Andrea Del Bene
Hi, can you show the code you use to build radio buttons? Hi, I am new to Apache wicket. Can you please help me how to get the selected radio choice option in wicket.I have to save the some recruitment form with some fileds which we have to give dynamically .I have a static dropdown with list of

Re: How to save the selected radio choice option in wicket

2012-05-17 Thread Andrea Del Bene
Property 'selected' is not setted according to the selected GENDER? Does property 'selected' remains null when you press 'save' button ? add( new RadioChoice("radioButton", new PropertyModel(this, "selected" ),GENDER ).setSuffix("")); Here I taken Gender as a list of values dynamically . The fi

Re: How to save the selected radio choice option in wicket

2012-05-17 Thread Andrea Del Bene
Your solution should work the way it is. It's likely that you have a problem with form's submission. Are you sure that when you press 'save' button the form is submitted? And are you sure that radioButton has been added to the form that should be submitted by 'save' button? how can i set the p

Re: IllegalArgumentException at loading page the first time

2012-05-27 Thread Andrea Del Bene
Hi, there must be something wrong when you populate your class Acceptati (which I guess it's a sublcass of ListView). Check how you generate the id for children components of Acceptati. Hello, When I make a change to my database through my application and then I load a different page to see th

Re: Conditional validation without overriding isRequired

2012-06-06 Thread Andrea Del Bene
Hi, you can consider to override form's process() method. Before calling the super version you can check for the radio value and set the other fields as required if the specific value was chosen. Thanks for your reply, Argh, confused setVisible() with setRequired, my bad ;-) But nevertheless

Re: Back button is troubling session management...

2012-06-09 Thread Andrea Del Bene
Hi, where did you pu the logic to check if user has already signed in (onInitialize, onBeforeRender, etc...)? Could you show your code? Hi, After I log in that application, I am not suppose to see login page of the app when I press back button. Though I am not able to go to login url as I am c

Re: Nested form model refresh

2012-06-12 Thread Andrea Del Bene
Hi, looking at your code I've noticed these two lines at the end of onSubmit of AjaxButton: setModel(new CompoundPropertyModel(e)); modelChanged(); here you are changing the button's model and not the one of the parent form (the variable cmodeldefined above ), hence its components won't dis

Re: Nested form model refresh

2012-06-12 Thread Andrea Del Bene
Sorry, I've missed an important step. You should call clearInput() on the outer form. You could try with something like this: cmodel.setObject(e); ((Form)form.getParent()).clearInput(); art.add(cont); Hi, Tried but did not work for me :( . info("saved file: " + uploa

Re: Ajax does not update my webcontainer

2012-06-27 Thread Andrea Del Bene
Component corresponding to id=bestaandeGebruiker is not enabled or is invisible. That's why you get message "behavior not enabled" I have a screen with a part for existings users and a part for new users. One can switch by clicking a link 3 in the existingUserthere is a link for changing to newUs

Re: Ajax hide/show does not work

2012-06-27 Thread Andrea Del Bene
Hi, try setOutputMarkupPlaceholderTag instead of setOutputMarkupId. I do not understand this. I made a panel that must be hidden on click or show up on another Hiding works the first time then never again. SHow never works What do i wrong?? == Wicket Examples - upload

Re: how to connect elements - label and input (checkbox)

2012-06-30 Thread Andrea Del Bene
Hi, what do you mean exactly with "connect" the two component? Hi, is there any easy way, how can I connect label and input(checkbox) in repeater? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-connect-elements-label-and-input-checkbox-tp4650304.html Sent

Re: wicket 1.5 confirmation ajaxbutton

2012-07-12 Thread Andrea Del Bene
Please try to reattach the code. I can't read it neither in the mail nor on line. I used confirmation for onclick of ajax button in 1.4 it worked when I try the same with 1.5 it does not work. here is the code -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-

Re: wicket 1.5 confirmation ajaxbutton

2012-07-13 Thread Andrea Del Bene
Hi, I've tried your code with Wicket 1.5.7 and it seems to work. What kind of error are you getting? add(new AjaxLink("delete") { @Override public void onClick(AjaxRequestTarget target) { }

Re: Form Submission problem

2012-07-17 Thread Andrea Del Bene
Hi, can you post the code of your custom filter? Hi , I have inserted my custom filter in which i have specified url-pattern as /*, but now the form submission is not going just getting a blank page, Please advise how to handle this. I dont see any Exceptions on my logs too. Thanks, -- View t

Re: Wicket and Versioning

2012-07-18 Thread Andrea Del Bene
Hi, you could try with the following solution: - Mount a stateless page on your desired path (let's say "/home") - This page should do nothing but redirect user to your stateful page, but instead of creating a new instance of it each time, it will save into session your stateful page to use it

Re: Nested external components in custom component

2012-07-18 Thread Andrea Del Bene
Hi, check class org.apache.wicket.markup.html.border.Border. It should be more appropriate than a simple panel for what you are trying to do. Hi, i'm trying to nest a formcomponent into a custom component of my own: What I want is to have additional markup around my various form components.

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

2012-08-02 Thread Andrea Del Bene
yes, using stateless pages when it's possible will definitely reduce your session size. Wicket offers a stateless version for those components which by default have a stateful nature, like forms and links. As general rule you can implement a stateless page when the page doesn't need to keep it

Re: Repeating TextFields

2012-08-02 Thread Andrea Del Bene
Hi, what kind of problem have you encountered with ListView? Hi, I have a List that I want to represent with TextFields. I need to be able to dynamically add and remove them via AJAX. From what I’ve read online (and experienced firsthand) ListViews do not seem to be designed for this. What i

Re: Values got lost from Property model or compound property model on ajax call

2012-08-05 Thread Andrea Del Bene
Hi, can you provide some more details? Can you attach the code of ajax link? Please help me i have page and using compound property model i am showing the values on clicking ajax link values got lost from the model -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/

Re: Javascript in HTML -ta not working when Panel is used within a Wicket ModalWindow

2012-08-09 Thread Andrea Del Bene
On 08/09/2012 04:20 PM, Michael M wrote: Hmm I really just tried this several times.. how can it be that different people get a different quick-start behavior? I created that quick start form scratch, added the wicket-extensions dependency, my classes, the 'media' folder with all the CSS and JS f

Re: RadioGroup

2012-08-10 Thread Andrea Del Bene
Hi and welcome to this mailing list! it's not clear to me the purpose of the ListView in your code. Why do you need it and what is the relation between this component and RadioGroup? Hello there, mighty developers. I'm quite new in Wicket, so beforehand sorry if my question is stupid. So what i

Re: RadioGroup

2012-08-11 Thread Andrea Del Bene
ing phase it reading data from model. Wicket version 1.5.7. Valery Gorbunov On Sat, Aug 11, 2012 at 12:12 AM, Andrea Del Bene wrote: - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: how to get HttpServletRequest in My Application class

2012-08-13 Thread Andrea Del Bene
Try this: ((ServletWebRequest)RequestCycle.get().getRequest()).getContainerRequest() Hi, I need to get the HttpServletRequest object in My Application class. In the WebPage we can get from ((HttpServletRequest) ((ServletWebRequest) getRequest()).getContainerRequest()) but its not working in

Re: Read POST based request from external site

2012-08-16 Thread Andrea Del Bene
Hi, try getRequestParameters() instead of getPostParameters(). This method returns all request parameters. I don't know why getPostParameters() return an empty result, maybe it is an issue... I was looking up all available threads, but did not find an answer. I have an app deployed to a mobil

Re: Read POST based request from external site

2012-08-16 Thread Andrea Del Bene
I think there's a bug with class WebApplication which doesn't create a MultipartServletWebRequestImpl when the original request is multipart. In the meantime a possible workaround is to override method newWebRequest of your application class and put the following code inside it: { Ser

Re: Nested form submit problem

2012-08-28 Thread Andrea Del Bene
I'm not 100% sure, but I think your inner form is submitted by the AjaxFormValidatingBehavior attached to textfield ertek. Try to remove it to see if the form is still submitted. Hi, I have the following use case. I have some questionnaires and a couple of questions belong to every questionnair

Re: read html file to string...

2012-09-11 Thread Andrea Del Bene
Hi, you can place HTML file next to page class, then use PackageTextTemplate PackageTextTemplate textTemplate = new PackageTextTemplate(pageClass, "yourHTMLfile.html"); textTemplate.getString() ; I have a fancy wicket app... I have a textarea on a page... I have an HTML file full of text.. I

Re: read html file to string...

2012-09-11 Thread Andrea Del Bene
...but if you don't like using your html file as a package resource you can place it in a web app folder and use ContextRelativeResource Hi, you can place HTML file next to page class, then use PackageTextTemplate PackageTextTemplate textTemplate = new PackageTextTemplate(pageClass, "yourHTML

JavaDoc for Wicket 6

2012-09-12 Thread Andrea Del Bene
I've seen that version 6.0.0 has adopted also a new structure for its distribution archives. So far I didn't find where the JavaDoc for this version can be downloaded . Are they available only online? - To unsubscribe, e-mail:

Re: multipart form problem - form validation fails

2012-09-19 Thread Andrea Del Bene
Which version of Wicket are you using? I've tested your code enabling file upload but it worked fine with both version 1.5.8 and 6.0.0 class AddProductForm extends Form { private FileUploadField photoField; public AddProductForm(String id, CompoundPropertyModel model) { super

Re: multipart form problem - form validation fails

2012-09-20 Thread Andrea Del Bene
also with version 1.5.7 I couldn't reproduce your error. I get an error because during form submission Wicket doesn't find field 'photo' of class Product, but that's perfectly normal. The following is the code I used for the test: public class HomePage extends WebPage { private static fi

Re: Reseting a textField of an upload form

2012-10-03 Thread Andrea Del Bene
Hi, can you show the code you use to clear the model object of the textfield? Hello, I have an upload form with a TextField and a FileUploadField. When the user fill the form and press an AjaxButton, it refreshes the RefreshingView listing the files already uploaded. What I would like to do is

Re: Reseting a textField of an upload form

2012-10-04 Thread Andrea Del Bene
The problem seems related to the HTML. I've tried to put the table inside the form and it works. Like this: [filename] [fileupload] type="submit" value="add"/>

Re: How to know the country of the user

2012-10-28 Thread Andrea Del Bene
You should try Session.get().getLocale(). By default Session returns the locale of the underlying HttpServletRequest. How can I know the country of the user that is connected to my wicket page? I only suppose to check the IP address with: String ipAddress = ((ServletWebRequest) RequestCycle.ge

Re: Sort ListChoice component

2012-10-29 Thread Andrea Del Bene
Take a look at component Palette. It has something similar to sort selected options. Hi all, how can I sort ListChoice elements with moveUp and moveDown button? Thanks M -- Dott. Marco Di Sabatino Di Diodoro Tel. +39 3939065570 Tirasa S.r.l. Viale D'Annunzio 267 - 65127 Pescara Tel +39 085911

Re: Wicket 6.2.0 and MultipartServletWebRequestImpl

2012-10-31 Thread Andrea Del Bene
Hi, the change introduced by WICKET-4752 caused some other problems so it was reverted in 6.2.0. If you want to obtain the old behavior you should use in our application class the code that has been removed from WebApplication class (see the diff indicated by Martin) Sorry, could you elabora

Re: Wicket 6.2.0 and MultipartServletWebRequestImpl

2012-10-31 Thread Andrea Del Bene
Yes it should be enough. Hello, after a second closer look I figured I should override newWebRequest in my WicketApplication extends WebApplication, right? So now I have: @Override public WebRequest newWebRequest(HttpServletRequest servletRequest, String filterPath) { WebRequest webRequest = supe

Re: any book about wicket 6?

2012-11-14 Thread Andrea Del Bene
What topics would you like to find in a hypothetical book on Wicket 6 :-)? On Tue, Nov 13, 2012 at 10:27 PM, Martin Grigorov wrote: > Hi, > > I'm not aware of such. > But that doesn't mean that someone doesn't write one in stealth mode. > > > On Tue, Nov 13, 2012 at 9:29 PM, Djalma Silva Junior <

Re: any book about wicket 6?

2012-11-16 Thread Andrea Del Bene
I didn't write an article on tree components yet :) , but I've built a very basic example for NestedTree. The code is quite simple and it uses both nodes and model from Swing package (like the old Tree component). You can find it here: https://github.com/bitstorm/Wicket-tutorial-examples/tree/

Re: Access to markup

2012-11-16 Thread Andrea Del Bene
Take a look at Component's method onComponentTagBody. One of its parameters is MarkupStream which provides access to previous tags (it has method getPreviousTag()). Is it possible to get access to the markup of preceding elements in a Component's rendering? Im wondering if I can detect the prese

Re: How to load javascript file in apache wicket?

2012-11-19 Thread Andrea Del Bene
Hi, which version of Wicket are you using? I think you should handle your js file as package resource or shared resource... - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-

Re: AJAX not working after migrating from wicket 1.5.5 to 6.3.0

2012-11-21 Thread Andrea Del Bene
What exactly is the problem with the new version of Wicket? Is the behavior not executed at all? I have a wicket application that implements a Form with multiple fields. AJAX form updating behavior onChange() is implemented so that a value change in one field will trigger reset of some other fiel

Re: adding swing Jframe inside Wicket webpage

2012-11-22 Thread Andrea Del Bene
No, there's no way to get what you are asking for. Hi , In my application, am using one open source tool to compare xml documents, this tool returns JtextPanes as a result , right now am putting these text panes in a Jframe and displaying Jframe. Now i want to show this Jframe inside wicket resp

Re: Is wicket-cdi native to Wicket 6.1 and upwards?

2012-11-26 Thread Andrea Del Bene
Hi, If you are using Wicket with a Tomcat-based server like TomEE maybe you could find helpful my example project on integrating OpenEJB and Wicket: https://github.com/bitstorm/Wicket-tutorial-examples/tree/master/CdiInjectionExample. Hey, http://devlearnings.wordpress.com/2011/05/15/apach

Re: Incorrect double slash when jsessionid included in link URL in 6.x

2012-12-10 Thread Andrea Del Bene
Can you open an issue with a quickstart project? I'm using the latest from git as of about 12 hours ago. I just did another git pull and it says it's still up to date so I've got the latest master source and I'm building the wicket jars from that. -Original Message- From: Sven Meier [ma

Re: TinyMCE ImageUploadPlugin problem

2012-12-10 Thread Andrea Del Bene
I think that the missing button is a bug while uploaded images are placed into temp dir. I don't know if there is a way to configure this path. Hi, I have a form with a textarea TinyMceBehavior attached. I would like to provide users to upload and include images in their articles. I did the foll

Re: TinyMCE ImageUploadPlugin problem

2012-12-18 Thread Andrea Del Bene
e.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Andrea Del Bene Abaco Informatica S.r.l. Via Montegrappa, 3 61121 Pesaro (IT) Tel. +39 0721 35425 Fax. +39 0721 32967 P.IVA 00933130411 Asso

Re: Attempting to establish session for static resources in Wicket 6

2012-12-23 Thread Andrea Del Bene
I don't remember quite well how it used to work with 1.5, but looking at your stacktrace I see you used some kind of redirection policy that involves class RestartResponseAtInterceptPageException. This class needs to build a permanent session as you can see in its method InterceptData.set: pub

Re: Static image

2013-01-08 Thread Andrea Del Bene
. I just found val img = new Image("img", new UrlResourceReference(new Url(listOfStrings, Charset.defaultCharset( Is the last example the preferred way of achieving this? Thanks in advance, René -- Andrea Del Bene Abaco Informatica S.r.l. Via Montegrappa, 3 61121 Pesaro

Wicket jobs in Europe

2013-01-10 Thread Andrea Del Bene
Hi everybody! I know this is not a technical topic, but I'd like to know if anybody knows a good job search engine for Wicket-related positions in Europe. I've already seen the wiki page about Wicket Employers, but maybe there are other sources I don't know yet :). Thank you. --

Re: Wicket jobs in Europe

2013-01-10 Thread Andrea Del Bene
still get email notifications when new jobs related to Wicket appear on Spain. Not many of them unfortunately... On Thu, Jan 10, 2013 at 7:44 PM, Andrea Del Bene wrote: Hi everybody! I know this is not a technical topic, but I'd like to know if anybody knows a good job search engine for Wicket-

Re: Ajax request stopped because of precondition check

2013-01-14 Thread Andrea Del Bene
1.8.23. Thanks, Oliver -- Andrea Del Bene Abaco Informatica S.r.l. Via Montegrappa, 3 61121 Pesaro (IT) Tel. +39 0721 35425 Fax. +39 0721 32967 P.IVA 00933130411 Associato AssoProvider CISCO Systems Partner PREMIER Certified ABANET is associated to RIPE (AS 12468) Http://www.abanet.it Questa

Re: Wicket HTML Cache

2013-01-17 Thread Andrea Del Bene
...or MarkupFactory.get().getMarkupCache().clear(); You need org.apache.wicket.settings.IMarkupSettings#getMarkupFactory().getMarkupCache().clear(); On Thu, Jan 17, 2013 at 5:58 PM, Tom Norton < tomwnorton.mailing.li...@gmail.com> wrote: --

Re: Missing FeedbackPanel : Component-targetted feedback message was left unrendered

2010-11-16 Thread Andrea Del Bene
Hi, have you tried moving FeedbackPanel out of fragment? You could put it at the end of the form like this: ... and then you could add it directly to form: form.add(new RedFeedbackPanel("feedback")); My Problem is the correct display of a feedbackpanel. The feedbackpanel is defined in

Re: Wicketter with ModalWindow

2010-11-16 Thread Andrea Del Bene
Hi! What's your problem, exactly? Can you display modal window or it doesn't open at all? On 16/11/10 11:02, thobile wrote: I have a link that I click and new Modal window is poping up, I am having difficulties on testing my new Modal window components. Basically I a using Modal window popup

Re: Wicketter with ModalWindow

2010-11-17 Thread Andrea Del Bene
same error, path does not exists, is the anything that I miss or doing wrong please help me. Thank you On Tue, Nov 16, 2010 at 7:03 PM, Andrea Del Bene-2 [via Apache Wicket] wrote: Hi! What's your problem, exactly? Can you display modal window or it doesn't open at all? On 16/11/10

Re: Missing FeedbackPanel : Component-targetted feedback message was left unrendered

2010-11-17 Thread Andrea Del Bene
Thanks for sharing your solution! Bye. I got the solution! Just adding setReuseItems(true) to the ListView and it's working! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: u

Re: ModalWindow update size

2010-11-18 Thread andrea del bene
Hi meduolis, in order to resize modal window you could try to use some JavaScript. Wicket keeps track of modal window on client side with variable Wicket.Window.current. To resize modal window you could write something like: var targetWindow = Wicket.Window.current.window; var targetContent

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 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 wicket:id =

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"> H

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 / [cell] / After 1.4.5 / [cell] / Please create

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 t

Re: ModalWindow update size

2010-11-27 Thread andrea del bene
t 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.or

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? I

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 th

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, For

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 added

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 su

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 u

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 org.apache.wicket.ajax.IAjaxIndi

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 thi

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 w

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. Hi I just disovered by chance that it's possible to use property expressions in normal elements which then get resolved against the next model found in the hierarchy. Unfortunately it seems to work a bit differ

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", "images/ima

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 that

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ş Thanks. Also i want to know if i remove an component from Java side final WebMarkupContainer delete = new WebMarkupContainer("delete"); add (delete ) after than remove(delete ); gives

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 AutoComple

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 . For example you can override onInitialize method and add something like this: MarkupParser markupParser = new MarkupPars

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
any suggestions ?? Thanks. 2011/2/2 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.PaletteP

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 no

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 me

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 butto

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: http://apache-wicket.1842946.n4.nabble.com/Us

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: users-un

Re: ListMultipleChoice Binding List Problem

2011-03-22 Thread Andrea Del Bene
Hi tech7, in these lines: IModel> allItemsModel = new PropertyModel>( 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 property model tries to resolve

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: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/

<    1   2   3   4   5   6   7   8   >