Re: How to send a Java object to the ModalWindow

2016-10-21 Thread Iamuser
Hello, I know this is a long overdue thread, but could you please explain how you did it? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-send-a-Java-object-to-the-ModalWindow-tp2312589p4675862.html Sent from the Users forum mailing list archive at Nabble.com.

Re: AjaxLink cannot see updated model values

2016-10-13 Thread Iamuser
id onClick(AjaxRequestTarget target) { model.setObject(new TestBean()); TestForm.this.clearInput(); target.add(TestForm.this); } }; On Thu, Oct 13, 2016 at 4:52 PM, Martin Grigorov-4 [via Apache Wicket] < ml-node+s1842946n4675763...@n4.nabble.com> wrote: > On Thu, Oct 13, 2016 at 3:38 PM, Iam

Re: AjaxLink cannot see updated model values

2016-10-13 Thread Iamuser
Hello, Yes, adding the behavoiur AjaxFormComponentUpdatingBehavior on the text field, solved the issue. Thank you for solution. Now I'm facing following situation. When another link is clicked I need to clear the input fields (so my textfield). I have the following added, but the form just does

Re: AjaxLink cannot see updated model values

2016-10-12 Thread Iamuser
Hello, Yes, it is dynamic. Here is the complete code (html and java): ==My test bean== public class TestBean implements Serializable{ /** * */ private static final long serialVersionUID = 1L; private String name; private Stri

AjaxLink cannot see updated model values

2016-10-12 Thread Iamuser
Hi, I have a form backed by a model. In this form I have and editable textfield and a image. When clicking on the image I just need to write the value inserted in the textfield to the console. However, it does never display the updated value in the textfield. Here is the html: <#> Here is t

AutoCompleteTextField in input form does not display description, but id

2016-10-03 Thread Iamuser
Hello, I'm using wicket 7. I have a page with an input form. The first input field used to be a DropDownChoice. When user selected the description from the DropDownChoice, then the id was provided behind the scenes and on form save, the model bounded to the form was updated. The new requirement i

Wicket 6 - How to fill form based on listview selected row

2016-09-17 Thread Iamuser
Hello, I have a page with a : 1. a listview 2. an input form When first entering the page, the listview displays all the rows from a table, and the input form is empty. One of the columns inside the listview is a link component, that when clicked should refresh the model of the form and show th

Re: empty form input after submit

2016-08-09 Thread Iamuser
model or by passing a model >> into form2's constructor, so that you can change the contained model >> object without having to notify form2 of it. >> >> Have fun >> >> Sven >> >> >> On 31.07.2016 11:29, Iamuser wrote: >> >> >

Re: empty form input after submit

2016-08-03 Thread Iamuser
t once you select one from the list in > form1 - either by setting it into form2's model or by passing a model > into form2's constructor, so that you can change the contained model > object without having to notify form2 of it. > > Have fun > > Sven > > > On

Re: empty form input after submit

2016-07-31 Thread Iamuser
.setStatus(1); //do the insert } } On Sun, Jul 31, 2016 at 11:33 AM, Sven Meier [via Apache Wicket] < ml-node+s1842946n467524...@n4.nabble.com> wrote: > Seems like form2 is showing previous Raw input (which normally is cleared > on successful submit) or it is holding to the previous Mod

empty form input after submit

2016-07-31 Thread Iamuser
Hello, I'm using wicket 6 I have a page with 2 forms: form1 and form2. Form2 is an input form. After I provide input values for the Form2 and submit, in Form1 a listView is populated with a row containing those values. After each Form2 submit, Form2 is made invisible. Now one field in a line fro

ProgressBar not showing progress

2016-07-06 Thread Iamuser
Hello, I'm using Wicket 7 and I'm trying to do a test form with a progressbar on it. Here is my test java class and the html for it. The protected Progression getProgression() {..} is never called. The thread increments the progress variable, but as getProgressing is not being called, the progress

ProgressBar not drawing on the page

2016-07-05 Thread Iamuser
Hello, I'm using Wicket 7. I am trying to show a progress bar, while some files are being processed. The progress percent is showing fine on the page, however, the progressbar si now drawn on the page: Here is how it is showing:

Re: onsubmit gets called after page reload

2016-07-04 Thread Iamuser
Hello, Yes, and it works well, so thank you so much. On Mon, Jul 4, 2016 at 5:36 PM, Sven Meier [via Apache Wicket] < ml-node+s1842946n467502...@n4.nabble.com> wrote: > The form is checking whether there are any errors before invoking your > #onSubmit() method. > > Have you tried overriding #on

Re: onsubmit gets called after page reload

2016-07-04 Thread Iamuser
; List docList = documentsModel.getObject(); > setVisible(docList != null && docList.size() > 0); > } > > Have fun > Sven > > > > On 03.07.2016 21:36, Iamuser wrote: > > > Hello, > > Please help me with the following situation: >

onsubmit gets called after page reload

2016-07-03 Thread Iamuser
Hello, Please help me with the following situation: I'm using wicket 6. I have a page and a form. On this form I have an input, and when user hits Upload button, the list with the inputs should be updated. However, there is a strange behaviour: 1. when hitting the submit button, the onsubmit metho

Re: wicket:enclosure tag : header of table does not dissappear when list is empty.

2016-07-03 Thread Iamuser
On Jul 2, 2016 3:52 PM, "Iamuser" <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=4675010&i=0>> wrote: > > > Hello, > > > > I'm having the following issue: > > > > I have a form in which I need to upload files.

Re: Change column visibility or text based on combo selected value

2016-07-02 Thread Iamuser
Here is a test sample of how constructor for Form2 class looks like: Form2 should update both childId and parentName, when child changes in form1. However, I only get the childId updated; parentName does not change. public Form2(String id, IModel form1model) { super(id,model); Label lblChild = ne

Re: Change column visibility or text based on combo selected value

2016-07-02 Thread Iamuser
Hello, In the form2 I need to display values from other models than in form1, but that are dependent on the values from the form1 model. On Tue, Jun 28, 2016 at 4:42 PM, Sven Meier [via Apache Wicket] < ml-node+s1842946n4674974...@n4.nabble.com> wrote: > After form submit the whole page will

wicket:enclosure tag : header of table does not dissappear when list is empty.

2016-07-02 Thread Iamuser
Hello, I'm having the following issue: I have a form in which I need to upload files. I give path for file, and after hitting upload, a list with the uploaded files should appear. Each file from the list can be deleted. The problems I face is: When deleting all items in the list, the header of t

Re: jquery does not work in wicket?

2016-06-29 Thread Iamuser
icket Ajax components and/or behaviors then Wicket also will >> include jQuery.js in the final HTML that is sent to the browser. >> Remove your . >> >> Martin Grigorov >> Wicket Training and Consulting >> <a rel="nofollow" href="https://twitter

Re: Change column visibility or text based on combo selected value

2016-06-28 Thread Iamuser
Hi, Thank you for the help. Now the requirement has changes, to update form2 after the submit of form1. On form1: SubmitLink lnk = new SubmitLink("saveSubmitLink") { --- } form1.add(lnk); So, after the save of form1, I need to refresh the date on form2. Could you please advise? Thank you so much

Re: Change font and border based on value

2016-06-28 Thread Iamuser
tModelObject(); > if (value < 0 || value > 10) { > tag.append("style", "color:blue", ";"); > } else if (value == 4 || value == 5) { > tag.append("style", "color:red", ";"); > } > } > } > >

Change font and border based on value

2016-06-28 Thread Iamuser
Hello, I use wicket 6. I need to change the font and border of 6 input texts based on their value. For example: - if value is 4 or 5 - change the color to RED. - if value <0 or >10 - change the color to BLUE. In order to change the color I have used: new AttributeAppender("style", Model.of("colo

Re: jquery does not work in wicket?

2016-06-23 Thread Iamuser
Hi, I have e script element for Javascript and one for jquery. Please see below. http://www.w3.org/1999/xhtml"; xmlns:wicket=" http://wicket.apache.org/"; lang="en" xml:lang="en"> input.colorValuesRed { color: red; border: 2px solid red; } input.colorValuesGrey { col

jquery does not work in wicket?

2016-06-23 Thread Iamuser
Hi, I'm using wicket 6. I have the following requirement: to change the color of some input texts based on the value selected from a combobox and also on the values entered in these input texts. For examble: *if I select 'A' and type 1 in the input text, the font color should be red. *if I selec

Re: Change column visibility or text based on combo selected value

2016-06-22 Thread Iamuser
Hi, Thank you for the tip. One issue that I'm facing now is that the listView is in one form on the page (form1), and the table with the column is in another form on the same page (form2). =If in my form1 I call: itemSelect.add(new AjaxFormChoiceComponentUpdatingBehavior() { private static final

listview with check box does not update model when checked

2016-06-21 Thread Iamuser
Hi, I have 3 tables tb1 (id_tb1, description); tb2 (id_tb1, id_tb3); tb3(id_tb3, description); tb3 is a dictionary table, with 3 rows; I need a form where I can update, insert values in tb1. On this form there is a listview with checkboxes, that are bound to the tb3. When the user enters the fo

Change column visibility or text based on combo selected value

2016-06-20 Thread Iamuser
Hi, I'm using wicket 6. I have a combo and a table that contains a fixed number of rows and columns. Based on the value chosen inside the combo, the first column of the table should change it's text. Basically the first column contains in every cell, the same text, that needs to change when somet

Re: Component disabled if it contains data

2016-04-20 Thread Iamuser
Hello, Thank you all for the help. Is there a way to only rerender the two components (inputtext fields) and not all the page? So submit should remain like this: @Override protected void onSubmit() { //other stuff } The logic is that I should be able to commit changes only if

Re: Component disabled if it contains data

2016-04-20 Thread Iamuser
Hello, Thank you all for the help. Is there a way to only rerender the two components (inputtext fields) and not all the page? So submit should remain like this: @Override protected void onSubmit() { //other stuff } -- View this message in context: http://apache-wicket.1842946.n4.nab

Component disabled if it contains data

2016-04-19 Thread Iamuser
Hello, I'm using Wicket 6, with Java 1.7. I'm new to Wicket and I would like to know what is the best way to implement the following: -I have a webpage with several input fields bound to a db table, and a submit button. - two of the fields can be empty when submitting the changes to the db. - howev