Re: Only the first TextField in a repetition gets correct OnChangeAjaxBehavior with 1.5.1

2011-10-13 Thread Andrea Del Bene
Hi, can you attach the code you use to initialize ListView? Hi, Upgrading to wicket 1.5.1 from 1.4.18 my ajax updates stopped working. I have a page with a form. Inside the form there is a repetition (ListView) that among other things creates a text field for each item (ListItem). Each of

Re: Only the first TextField in a repetition gets correct OnChangeAjaxBehavior with 1.5.1

2011-10-13 Thread Andrea Del Bene
I've tried to reproduce your condition in a quickstart. The Java code is the following: ListString itemList = Arrays.asList(new String[]{red, blue, green, yellow}); final Label label; add(label = new Label(label, )); label.setOutputMarkupId(true);

Re: ListChoice and it's renderer

2011-10-15 Thread Andrea Del Bene
Hi, take a look at method AbstractChoice.appendOptionHtml. You can override it and manipulate the HTML as you desire. Hi All, I want to extend a simple listchoice component to also include a title attribute in the generated html code. So basically I want theoption tag to be generated like

Re: Can not locate error messages from property messages

2011-10-15 Thread Andrea Del Bene
Hi, are you sure that code 'getClass().getSimpleName() + . + errorKey' generates a valid key bundle? Hi; I am using a really simple property file, to display some validation errors, it used to work fine, but it stopped working, now I can't even get the simplest example to work. and I am

Re: onInitialize or Constructor

2011-10-19 Thread Andrea Del Bene
Hi, when onInitialize is called, component has already been inserted into its hierarchy so you can call getParent() or getPage() safely. Hi wicketeers ; Which is the recommended way of initializing page components: onInitialize() or Constructor ? regards. Josh.

Re: autocomplete js error in IE

2011-10-20 Thread Andrea Del Bene
Looks good for me also. Tested under IE 8, Windows XP. Works OK for me. No JS errors. Tested with IE9 in different browser modes and document modes. Including Quirks. Is it possible that it is some IE setting ? On Thu, Oct 20, 2011 at 2:49 PM, Ann Baertann.ba...@tvh.be wrote: A wicket

Re: autocomplete js error in IE

2011-10-20 Thread Andrea Del Bene
ooops, I was wrong. I got the same problem. I also see this error on the specified page with Internet Explorer 8 (WinXP SP3) It does not matter if I enable or disable the compatibility feature. Matt On 2011-10-20 13:54, Martin Grigorov wrote: Works OK for me. No JS errors. Tested with IE9 in

Re: reverse engineering a wicket application

2011-10-24 Thread Andrea Del Bene
Check WebApplication also for method getHomePage() or getSignInPageClass () to identify home and signin pages. Check the webApplication file you should be able to find the mounted pages there --Original Message-- From: roncking To: users@wicket.apache.org ReplyTo: users@wicket.apache.org

Re: Problem with Panel default model

2011-10-26 Thread Andrea Del Bene
Hi, does your page override onBeforeRender method? Can you show the code? Thank you. Upgrade to 1.5.2 did seem to resolve the issue with the last ajax request parameters being pushed onto the base url. However, testing that resolution exposed a further problem. I'm using a

Re: Modal Window with Ajax in Firefox

2011-10-26 Thread Andrea Del Bene
How do you close modal windows? Can you copy the code? mbinations and if combination is still available reservation process continue if not combination is removed from listview and user can choose another. If all combinations are not available than modal window is closed. This use case works

Re: An extensive RIA technology comparison matrix including Wicket

2011-10-26 Thread Andrea Del Bene
You missed the funniest row: UI programming on client-side. What does it mean Java, Javascript for GWT and Vaadin and just Javascript for Wicket? Does it mean that GWT and Vaadin run bytecode inside browser? Did they (re)invented applets :)? missing a green dot in Framework extensions are done

Re: An extensive RIA technology comparison matrix including Wicket

2011-10-26 Thread Andrea Del Bene
That's right but why they didn't include Java among languages you can use to program on client side with Wicket. It's a mystery! On Wed, Oct 26, 2011 at 10:02 PM, Andrea Del Benean.delb...@gmail.com wrote: You missed the funniest row: UI programming on client-side. What does it mean Java,

Re: Modal Window with Ajax in Firefox

2011-10-26 Thread Andrea Del Bene
Hi, I've tried to reproduce your issue but without success. The modal window closes correctly. I've used the last version of Firefox, the 7. Java code for my test page is the following: public class HomePage extends BasePage { private static final long serialVersionUID = 1L;

Re: An extensive RIA technology comparison matrix including Wicket

2011-10-28 Thread Andrea Del Bene
That's why I don't like a statement like UI programming on client-side with Java. You are just giving the impression of programming your GUI in Java, but in the end is a lot of JavaScript, and this doesn't help code maintenance as pointed out by Eelco . I know that GWT is good at mimicking

Re: Handling form ajax submit on enter key in form field

2011-11-01 Thread Andrea Del Bene
Hi, if your form has just one submitting button, pressing enter key on a field should submit it by default. Anyway, I would solve this problem using a JavaScript library like JQuery rather then using a Wicket Ajax behavior. Can you give us more details about your AjaxFormSubmitBehavior? Are

Re: How to clear PageMap in Wicket 1.5?

2011-11-02 Thread Andrea Del Bene
Have you tried session.invalidate()? If you have an AuthenticatedWebSession you can also use signOut() Hi Upon logging out we need to keep the current user's session to still display some information but we want to remove all previous pages from the PageMap (or however that is solved in

Re: Modal Window with Ajax in Firefox

2011-11-02 Thread Andrea Del Bene
window and it seems that javascript opens first window instead of new one. On 10/27/2011 12:36 AM, Andrea Del Bene wrote: Hi, I've tried to reproduce your issue but without success. The modal window closes correctly. I've used the last version of Firefox, the 7. Java code for my test page

Re: Closing modal window with keyboard

2011-11-08 Thread Andrea Del Bene
I don't think there something ready-to-use to do this. You can try implementing this with JavaScript, intercepting the right keyPress event and closing the modal window. This last code can be obtained from method ModalWindow.getCloseJavacriptInternal Hi, Is there a way to close modal window

Re: Modal Window with Ajax in Firefox

2011-11-09 Thread Andrea Del Bene
Hi, I think the best solution would be replace modal window's content instead of closing it and opening a new one. Considering your example you should completely remove notifierWindow. The new code for HomePage would be like this: public HomePage(final PageParameters parameters) {

Re: Dealing with 3 choice components

2011-11-16 Thread Andrea Del Bene
Hi, can you elaborate a little bit more what behavior you want to achieve? I mean, C becomes empty because A#onSelectionChanged sets its model to null. This should not be strange. I have a form with with 3 choice components: A) DropDownChoice B) DropDownChoice C) ListMultipleChoice The

Re: Dealing with 3 choice components

2011-11-16 Thread Andrea Del Bene
: On 11/16/2011 06:06 PM, Andrea Del Bene wrote: Hi, can you elaborate a little bit more what behavior you want to achieve? I mean, C becomes empty because A#onSelectionChanged sets its model to null. This should not be strange. Yes, sounds obvious to me too. But I found an examples with 2

Re: Wicket 1.5.2, stalls on one tomcat

2011-11-17 Thread Andrea Del Bene
Profile the stalled server with Visual VM? It should detect existing deadlocks... Hi I have a very strange problem. At a customers site we have 2 servers with 1 Tomcat 7 installed each. One day on one of the servers our application just stalled after loading the sign in page, when you click the

Re: Apache Wicket is a Flawed Framework

2011-11-18 Thread Andrea Del Bene
On 17/11/11 16:44, Eric Kizaki wrote: Violates MVC: It smashes view and controller code into the same Java file. You have code that regulates page flow and code that changes css attributes in the same file. Even Spring MVC had better separation of concerns. JSP/Servlets with Spring MVC is

Re: Newbie Questions: Getting Plain HTML

2011-11-27 Thread Andrea Del Bene
Hi Em, Hi Josh, thanks for your feedback! I already saw this Wiki-page yesterday. Well, the point is, that I want to include the markup *in* the markup (i.e. output it in some panel inside of a script-tag so that JavaScript is able to get the markup). So *while* you are rendering, you want

Re: Newbie Questions: Getting Plain HTML

2011-11-27 Thread Andrea Del Bene
On 11/27/2011 03:40 PM, Em wrote: Hi Andrea, thanks for sharing your information! My answers are in the content. Am 27.11.2011 14:52, schrieb Andrea Del Bene: I already saw this Wiki-page yesterday. Well, the point is, that I want to include the markup *in* the markup (i.e. output it in some

Re: Link Visited Color Doesn't Change, any ideas?

2011-11-29 Thread Andrea Del Bene
Probably this is due to Wicket links which contain informations on page version (it should be an incremental id). So each time you return to the same page Wicket generate different values for href attribute because version id has been incremented. That's way they seem not visited. When you

Re: Link Visited Color Doesn't Change, any ideas?

2011-11-29 Thread Andrea Del Bene
That's strange. BookmarkablePageLinks should generate a constant URL. Do you pass them any PageParameters in the constructor? Have you checked if links URL remains the same from a visit to your page to another? They are already BookmarkablePageLinks. -- View this message in context:

Re: Event or Notice when a ListView's Model changes

2011-12-04 Thread Andrea Del Bene
Hi, have you tried overriding onModelChanged()? You can fire event in this method. Hello, I have a Wicket ListView, who's Model is based on a select on a process-database. Users can initiate a (deploy-)process, and when the process is finished, a row is added in the database, and so also in

Re: Event or Notice when a ListView's Model changes

2011-12-04 Thread Andrea Del Bene
If you override listview's onBeforeRender you could check if finished processes' list contains version displayed by label and if so, you could update it. I'm sorry if my writing is confusing. But there isn't a label that outputs the state, because the list shows /only/ finished processes. Maybe

Re: check all checkbox to select all in data table

2011-12-13 Thread Andrea Del Bene
See component CheckboxMultipleChoiceSelector Hi.. I have included a check box panel as a column in datatable.Now i want a checkAll/uncheckAll checkbox which will check/uncheck the checkbox column.Please provide me with some idea . -- View this message in context:

Re: Auto refresh a WebPage

2011-12-16 Thread Andrea Del Bene
Hi, excuse me but what do you mean with cursor and class Second? but the cursor is not coming to the class Second time after 1 min.. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: Auto refresh a WebPage

2011-12-16 Thread Andrea Del Bene
You don't see anything appening inside Wicket Ajax Debug window? No request is performed after one minute? I mean while debugging I'm not at all getting the request to the class again -- View this message in context:

Re: Add items and then submit a form

2011-12-19 Thread Andrea Del Bene
Hi, nested form should work fine. I mean something like this: _ | main form | Name:.. | Lastname:... | | | | item (inner) form | | item number:... | | item number:... | | Add item button | |__ | | save button

Re: Add items and then submit a form

2011-12-19 Thread Andrea Del Bene
This is strange end should not happened: https://cwiki.apache.org/WICKET/nested-forms.html. Maybe the problem is on code side. Can you show the initialization code for the two forms? Yes, I have this layout. Is the first I tested. The problem with this is that when I click Add Item buttom

Re: Add items and then submit a form

2011-12-19 Thread Andrea Del Bene
I think this happens because you submit your forms with a simple HTML submit button, not mapped to a Wicket component. Try to explicitly add a submit component to the forms. I've added SubmitLink to both forms and forms are submitted as expected. HTML code: form wicket:id=form1 form

Re: Add items and then submit a form

2011-12-20 Thread Andrea Del Bene
This should not be a big deal. Wicket lets you put form submitting button outside form itself. All you have to do to make it work is to pass the form to component's constructor. HTML code: form wicket:id=form1 /form form wicket:id=form2 input type=submit value=form2 wicket:id=submit2/

Re: any idea where this error comes from?

2011-12-20 Thread Andrea Del Bene
On 20/12/11 09:38, cosmindumy wrote: Hi, I've got an error on production server and I cannot reproduce on my development machine. The error says : woUploadFilesContainer:calculateButton (path=inputForm:stepTwoUploadFilesContainer:calculateButton) is not visible

Re: ModalWindow does not close cleanly

2012-01-02 Thread Andrea Del Bene
On 01/03/2012 12:30 AM, Nelson Segura wrote: The shown flag is set up to false by window.close(), but it stays as true in the context of the parent page. This prevents the page from being opened a second time. Maybe something similar to how you cannot pass pages directly to a modal, but

Re: Serialize form for wicket ajax call

2012-01-13 Thread Andrea Del Bene
Hi, have a look at function Wicket.Form.doSerialize inside wicket-ajax.js. Try to debug it with your browser. I was trying to understand the wicket serialize method call. Does it serialize the entire form? Does it serialize fields that are NOT blank? I noticed that sometimes post body

Re: CompoundPropertyModel and FormComponent

2012-01-16 Thread Andrea Del Bene
Hi, I think you need to build a CompoundPropertyModel inside the component itself. Override onInitialize method of AddressPanel and try with something like this: @Override protected void onInitialize() { super.onInitialize(); setDefaultModel(new

Re: CompoundPropertyModel and FormComponent

2012-01-16 Thread Andrea Del Bene
Yes, I think you are doing it the Wicket way, but your snippet and mine should work. Do you modify components' model somewhere else? Which model do you get if you call getDefaultModel() inside oninitialize? Thanks for your reply. I've tried it but it still gave the same error. However I also

Re: CompoundPropertyModel and FormComponent

2012-01-18 Thread Andrea Del Bene
At this point I would override/debug method updateModel() inside AddressPanel to see if model's object is modified by this method . Just my 2 cents... Yes, I think you are doing it the Wicket way, but your snippet and mine should work. Do you modify components' model somewhere else? No, I

Re: How do I write my first Apache Wicket program on NetBeans IDE?

2012-01-19 Thread Andrea Del Bene
Don't forget to look at this: /http://netbeans.org/kb/68/web/quickstart-webapps-wicket.html./ If i were you i would learn how to create a project with maven first. Josh On Thu, Jan 19, 2012 at 12:53 PM, Ian Marshallianmarshall...@gmail.comwrote: The answer might depend in part upon which

Re: multiple forms on a panel, how to check for dirty?

2012-01-20 Thread Andrea Del Bene
What do you mean exactly with dirty form? I have multiple forms on a panel and checks for dirty are on form level. When I submit a form while others are still dirty, the panel is not treated as dirty. How to deal with that? -- View this message in context:

Re: Execute Javascript after components of a certain type render

2012-01-23 Thread Andrea Del Bene
Why not make an abstract MyPanel and provide an implementation of renderHead method (from IHeaderContributor)? I mean something like: public abstract class MyPanel extends Panel{ public void renderHead(Component component, IHeaderResponse response) {

Re: Execute Javascript after components of a certain type render

2012-01-23 Thread Andrea Del Bene
Your idea of using PostComponentOnBeforeRenderListener sounds good to me, but I didn't understand exactly what you do with this kind of listener. Once you have checked if component implements IMyPanel, I would call Application.getHeaderContributorListenerCollection() and I would add a header

Re: Cannot detect ModalWindow cancel

2012-02-01 Thread Andrea Del Bene
Hi Jered, this is a known issue, you can find more informations here: https://issues.apache.org/jira/browse/WICKET-3809 I have a ModalWindow where I need to know if the user saved in the WindowClosedCallback or if they chose to click the X to close the window. To do this in Wicket 1.4, I

Best way to clean all sessions

2012-02-06 Thread Andrea Del Bene
Hi, what is the best way to clean all sessions at once? I want to get rid of all sessions' data when I terminate Wicket application. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: Best way to clean all sessions

2012-02-06 Thread Andrea Del Bene
if I turn off Tomcat and turn it on later, pressing F5 I see the page I was on when I stopped Tomcat. I think is due to DiskDataStore which saves page versions into file. How can I clean Data Store files when Wicket Application is terminated? Hi, What exactly is not cleared ? See

Re: Best way to clean all sessions

2012-02-06 Thread Andrea Del Bene
It is exactly what I needed! Thank you! http://tomcat.apache.org/tomcat-7.0-doc/config/manager.html#Persistence_Across_Restarts - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: WICKET AJAX QUESTION

2012-02-06 Thread Andrea Del Bene
How are you attempting to clean textbox? For example you could clear textbox setting model object to empty string and adding textbox to AjaxRequestTarget. Hi, i have one textbox. we send the value of text box to listchoice. On add button , we used ajax. But i am unable to clear the textbox

Re: Serializing server objects

2012-02-06 Thread Andrea Del Bene
Hi, Wicket uses an implementation of org.apache.wicket.serialize.ISerializer to serialize all objects (pages, models, ecc...) The default serializer is based on standard classes ObjectOutputStream and ObjectInputStream. IModel implementations have nothing to do with the concrete ISerializer

Re: Serializing server objects

2012-02-06 Thread Andrea Del Bene
Yes, provided that the object returned by model implements java.io.Serializable. When you serialize an object (no matter if it is a Wicket page or a model or whatever else), you serialize also all its references. So when Wicket serializes a page or a component also its model and the object

Re: dynamic markup and components

2012-02-08 Thread Andrea Del Bene
Hi, I don't know if you might find this helpful, but if your component must generate a different markup from request to request, you should implements interface IMarkupCacheKeyProvider to avoid markup caching: /** * Must return null to avoid markup caching */ @Override

Re: StringResources in forms based on 'variation'

2012-02-12 Thread Andrea Del Bene
Hi, you can consider to use Style element used by Wicket for skinning application. For more information read this https://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html What I am trying to do is tailor the validator messages based on the variation. My scenario: Some

Re: AjaxLink.onClick() Not Triggered

2012-02-19 Thread Andrea Del Bene
Hi, at first glance I can't say what's wrong with your code, but you should try debugging wicketAjaxGet function with FireBug or some other dev tool. In this way you should find why there's no AJAX call. I have an Ajax link in a drop down menu, created like this: final

Stateless form broken with 1.5.4?

2012-02-22 Thread Andrea Del Bene
Hi, I've found a problem with the latest Wicket version (1.5.4) and stateless forms. Now the values of input fields are passed via GET parameters and are always appended to form's action attribute and it's not possible to change field's value after the first submit. You can reproduce the

Re: AjaxFormValidatingBehavior Submits Form When I Clicked Submit Button second Time

2012-02-22 Thread Andrea Del Bene
Hi, what kind of exception do you get the second time? Hi to everyone, i have added some jquery validation code to my page and add AjaxFormValidatingBehavior to my submit button.When i do not fill fields and click on submit button, it gives error next to each field and does not submit

Re: DropDownChoice selection won't update form fields

2012-02-23 Thread Andrea Del Bene
Hi, you can clean up your page using a CompundPropertyModel for your form and a Model for dropDownChoice. I would make a chain of models passing Model to CompoundPropertyModel: model = new Model(configType);//for dropDownChoice CompoundPropertyModel cpm = new CompoundPropertyModel(model)

Re: DropDownChoice selection won't update form fields

2012-02-23 Thread Andrea Del Bene
Maybe the problem is with resetButton. The code inside onSubmit breaks the model chain. If you want to reset form's field try just with form.setModelObject(new ConfigTypeDTO()); I jumped the gun on that one. It didn't work. I was still calling the old page from my menu. Once I fixed that and

Re: DropDownChoice selection won't update form fields

2012-02-23 Thread Andrea Del Bene
This is strange. Can you post the code of the full page? Once again, you make it simpler than I thought it would be. Thanks again. Finally, how do I reset the form from the onSubmit button of the form? I tried this: But it doesn't work. The form never gets reset. I'm able to get the updated

Re: DropDownChoice selection won't update form fields

2012-02-25 Thread Andrea Del Bene
Well, if it does its job I think it should be ok :) I got it working, but I'm not sure if the way I did it is correct. Here's the final code: -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-selection-won-t-update-form-fields-tp4413980p4417640.html

Re: AjaxFormSubmitBehaviour

2012-03-01 Thread Andrea Del Bene
Hi, isn't AjaxFormComponentUpdatingBehavior more suited for your need? Hi, I''ve upgraded my wicket application from 1.4.6 to 1.4.19. I was using AjaxFormSubmitBehaviour mainly because I need to respond to a change in a radiobox. One main difference was between the versions was the following:

Re: AjaxFormSubmitBehaviour

2012-03-01 Thread Andrea Del Bene
yes, for radio choice you should use AjaxFormChoiceComponentUpdatingBehavior. Anyway, have you tried setting default form processing to false on AjaxFormSubmitBehavior (setDefaultProcessing(false))? In this way you could save fields' value inside onSubmit() calling updateFormComponentModels()

Re: wicket wizard init

2012-03-05 Thread Andrea Del Bene
Hi, which line of your code throws NullPointerException? can you elaborate a little more on the purpose of function getAgreementText() ? hello, I have such a problem I develop wizard in which user enters some values in first step fields, then I need to use those values in a second step in a

Re: wicket wizard init

2012-03-06 Thread Andrea Del Bene
I think exception is thrown because you call your getTextFromDataBase inside step's constructor, when 'user.name' and 'user.surname' are still empty. You could try moving getAgreementText() from constructor to another method like Component.onConfigure. Andrea Del Bene-3 wrote Hi, which

Re: A Panel inside another Panel

2012-03-08 Thread Andrea Del Bene
Hi, can you show the complete stacktrace of the exception? I have an application structured such that I have 2 version for header panels. One for anonymous(HeaderPanel) users and one for authenticated(AuthenticatedHeaderPanel) users. Both of these are Panels included in their respective pages.

Re: A Panel inside another Panel

2012-03-08 Thread Andrea Del Bene
Your code seems good, I can't find any reason why it should not work. I've seen you have deployed your code on Google Appengine, maybe your problem is related with this running environment. Can you run you project locally and reproduce the problem? Here it is: Root cause:

Re: A Panel inside another Panel

2012-03-09 Thread Andrea Del Bene
Yes I did, it's a quite common solution with Wicket. I can show you my code but it doesn't differ so much from your. I've wrote a container panel with two sub panels: the upper one shows some information about a generic iter of certification, the lower one is the custom content of the page.

Re: Grouped ListView

2012-03-12 Thread Andrea Del Bene
Hi, you could use two nested ListView. You can write something like this in your markup: div class=group wicket:id=groupRepeater div class=item wicket:id=itemRepeater/div /div then in your code you can use component RepeatingView and WebMarkupContainer: RepeatingView view = new

Re: javascript and properties

2012-03-16 Thread Andrea Del Bene
Hi, if you are using a subclass of TextTemplate and its method interpolate(...), you can build an implementation of Map interface which searches for a given key among properties entries. For example you could use internally an instance of ResourceModel I'm creating a js template for each

Re: Same Variable Shared Before/After Form Submit

2012-03-19 Thread Andrea Del Bene
Hi, are you really sure you have to replicate field binding by hand? Have you considered to nest your widget model inside form model? Can you give further details about your problem? (To clarify why I'm doing this, I have a custom widget which I'm doing model-binding for. I need to

Re: Same Variable Shared Before/After Form Submit

2012-03-19 Thread Andrea Del Bene
I see. Unfortunately I've never worked with Adobe PDF-Form but I think you need to build some kind of object or converter to bridge the gap between FDF format and java world. Sorry, but I haven't any better idea :( I have a custom HTML object which is an Adobe PDF-Form (FDF). This widget is

Re: New guy's question about component refresh.

2012-03-20 Thread Andrea Del Bene
Hi, maybe you are missing the code to update the table with the data which should be the component with wicket:id=UpdateForm. First, thank you very much for your help. I do submit form with Ajax component. My question is, edit.close(ajaxRequestTarget) in Panel.Java, right? What about

Palette and localization

2012-03-22 Thread Andrea Del Bene
Hi, working with Palette component I've noticed that each options is localized with the following instruction from AbstractOptions: displayString = getLocalizer().getString(displayString, this, displayString); Is there any way to disable localization? I have a list of thousands of

Re: AjaxTabbedPanel - how to get at the tabs..?

2012-03-23 Thread Andrea Del Bene
Hi, you should use getTabs passing the index of the desired tab. in the debugger I see the tabs member of my AjaxTabbedPanel containing three items. but myTabPanel.get(2) returns null... What is the correct way to get a ref to a tab inside a tabbed panel? TIA -- View this message in context:

Re: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-26 Thread Andrea Del Bene
Hi, what exactly is your problem? What problems are you having so far? I am new to wicket and also to webframeworks. i am creating an app, which has a homepage and when a link is clicked, it should display a form which takes two dates and a string as input and retrieves data from database.

Re: POST parameters lost during InterceptException

2012-03-30 Thread Andrea Del Bene
Why not calling continueToOriginalDestination() after user has logged in? Do you think this could work? Hi, Try debugging at org.apache.wicket.RestartResponseAtInterceptPageException.InterceptData#set(). The post parameters should be preserved there and used later around line 200

Re: RadioGroup selections after validation failure problem

2012-04-02 Thread Andrea Del Bene
HI, try giving a model to your RadioGroup: final RadioGroupPresentation group = new RadioGroupPresentation(presentationSingleSelectGroup, new ModelPresentation()); Hi All, My company has just started evaluating Wicket on an app that allows users to select and merge multiple PowerPoint

Re: Handling nested form submission on enter

2012-04-11 Thread Andrea Del Bene
Hi, already tried form setDefaultButton method (see JavaDoc)? I have a nested form that works as expected when it's submit button (an IndicatingAjaxButton) is pressed but not when the user presses the enter key when one of it's form fields is focused. Is it possible to capture this enter key

Re: Handling nested form submission on enter

2012-04-11 Thread Andrea Del Bene
Well, I couldn't say why it doesn't work. Can you post some code of your nested forms? Thanks, I just did and the flow is the one desired, but for some reason the nested form field models are not updated with the field inputs when the submit buttons onSubmit() is called. Is there something

Re: Handling nested form submission on enter

2012-04-11 Thread Andrea Del Bene
It's like if JavaScript can't tell apart a form from another. Can you check the HTML generated for your page and see if forms have an unique id? On 04/11/2012 05:39 PM, Andrea Del Bene wrote: Well, I couldn't say why it doesn't work. Can you post some code of your nested forms? Sort of found

Re: How to minimize window ?

2012-04-17 Thread Andrea Del Bene
Hi, can you be more specific? What kind of window are you trying to minimize? A modal window? PS: btw, the corporate site of tsmc is built with Wicket :)? Dear All: I want to add a JS code into the following method to minimize the window, but it doesn't work.. Could anyone give me

Re: How to minimize window ?

2012-04-17 Thread Andrea Del Bene
|- |Andrea Del Bene | |adelb...@ciseonweb.it | | | | | | | |2012/04/17 下午 05:53

Re: Wicket 1.5 - new browser window support detection

2012-04-24 Thread Andrea Del Bene
AFAIK multi tabs/windows support is enabled by default, you don't need to do anything to enable it. Hi, I have a question about multi window (mutli tab) support in Wicket 1.5+. Many things changed .. like concept of IDs and versions... these are now only simple IDs, etc. My quetion is how do I

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

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

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: ... div wicket:id=page h1.../h2 p.../p div wicket:id=info /div h2Foo/h2 /div div wicket:id=fragment-1 h2Bar/h2 ul.../ul /div ... When adding fragment-1 (instance of Fragment) to page, it renders using Wicket 1.4.* as: ...

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)

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

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

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 RadioChoiceString(radioButton, new PropertyModelString(this, selected ),GENDER ).setSuffix()); Here I taken Gender as a list of values dynamically .

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

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

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

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

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

<    1   2   3   4   5   6   7   8   >