Datatable with filter: string inpput for numeric columns
I have a datatable with a filter. It works fine, but.. I have numeric columns. I want the user to enter a String instead of a number. This is because we add more functions to the input so the user can enter more filter commands like >10&<20 Now this is not possible in the filter. Who can help Example Customer number Name >100&<1010 __ 1001 Smith 1008 Wesson -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Datatable-with-filter-string-inpput-for-numeric-columns-tp4650566.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Radiobutton example with Ajax needed
It helped me! Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Radiobutton-example-with-Ajax-needed-tp4650454p4650479.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Radiobutton example with Ajax needed
I desperatly need a ajax radio button. I tried some example like the one from http://reachmnadeem.wordpress.com/2011/08/15/wicket-ajax-radio/ but nothing is working like I want it to do. My radiobuttons must have an initial value and i want to know how to read that value (the display value has another text). Who can supply me with a working example. (I struggle with the initial setting and reading of it) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Radiobutton-example-with-Ajax-needed-tp4650454.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to set initial value and read value from a ValueMap
I created a ajax radiogroup. It works fine but.. how can i set it initial value and how can I set/read the outcome? In other words: what do I do in OpdrPageInput?? Example code: setDefaultModel(new CompoundPropertyModel(input)); form.add(new AjaxRadioPanel("eerstewerkdag", getWerkdagList(), "name") { private static final long serialVersionUID = 1L; @Override protected void onRadioSelect(AjaxRequestTarget target, ValueMap newSelection) { //List getWerkdagList System.out.println("You have selected " + newSelection.getString("name")); if (target!=null)target.add(eerstewerkdag); if (newSelection.getString("name").compareTo("Op datum")==0){ eerstewerkdag.setVisible(true); }else{ eerstewerkdag.setVisible(false); } } }); private List getWerkdagList(){ List map = new ArrayList(); map.add(werkdagOptie("In overleg")); map.add(werkdagOptie("Zo snel mogelijk")); map.add(werkdagOptie("Op datum")); return map; } /** * * @param personName * @return */ private ValueMap werkdagOptie(String personName) { ValueMap map = new ValueMap(); map.put("name", personName); return map; } @See http://reachmnadeem.wordpress.com/2011/08/15/wicket-ajax-radio/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-set-initial-value-and-read-value-from-a-ValueMap-tp4650430.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DatePicker does not work in IE9
Try this in your html document on the first line http://www.w3.org/1999/xhtml"; xmlns:wicket="http://wicket.apache.org";> -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DatePicker-does-not-work-in-IE9-tp4650428p4650429.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to read message properties that has parameters into a program
I have a program that's gonna send an email confirmation to a customer. The email text is stored in a property file. How can I read these values with substitution parameters? I'm aware of getString("key") but that has has parameters Example of one property: mail01=Dear {customer}, we confirm ... blablabla What Java code do I need to use? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-read-message-properties-that-has-parameters-into-a-program-tp4650410.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: image from outside web application directory
Martin could you give me an example of this? I my website i want to upload jpgt pictures from clients. I already store them on another location but i can't show the pictures on my website -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/image-from-outside-web-application-directory-tp4650379p4650393.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: image from outside web application directory
Martin could you give me an example of this? I my website i want to upload jpgt pictures from clients. I already store them on another location but i can't show the pictures on my website -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/image-from-outside-web-application-directory-tp4650379p4650392.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
image from outside web application directory
I need to show images from c:/pictures on my website. I searched and searched and there should be something on old.nabble but that link is giving null pointer results. Who can help? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/image-from-outside-web-application-directory-tp4650379.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax hide/show does not work
It works now, thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-hide-show-does-not-work-tp4650267p4650271.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Ajax hide/show does not work
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 Test # Show 1 # Show 2 Kijk eens naar Panel1 Je kijkt naar panel2 final WebMarkupContainer panel1 = new WebMarkupContainer("panel1"); private boolean toon1; public HidePage(){ add(panel1); panel1.setVisible(false); panel1.setOutputMarkupId(true); add(toon1()); } private AjaxLink toon1() { AjaxLink link1 = new AjaxLink("link1"){ private static final long serialVersionUID = 1L; public void onClick(AjaxRequestTarget target) { System.out.println("link 1 "+!toon1); panel1.setVisible(true); target.add(panel1); } }; return link1; } private AjaxLink toon2() { AjaxLink link2 = new AjaxLink("link2"){ private static final long serialVersionUID = 1L; public void onClick(AjaxRequestTarget target) { System.out.println("link 2 "+!toon2); panel1.setVisible(false); target.add(panel1); } }; return link2; } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-hide-show-does-not-work-tp4650267.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Ajax does not update my webcontainer
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 newUser (and vv) Initial i show both parts in orde to see any reaction but it does no react at all I my dos box i see: behavior not enabled; ignore call. Behavior org.apache.wicket.ajax.markup.html.AjaxLink$1@10e5e03 at component [ [Component id = bestaandeGebruiker]] I have no idea what to do # # * == @SuppressWarnings("rawtypes") private AjaxLink nieuweGebruikerLink() { AjaxLink nieuweGebruiker = new AjaxLink("nieuweGebruiker"){ private static final long serialVersionUID = 1L; public void onClick(AjaxRequestTarget target) { System.out.println("nieuweGebruikerLink"); newUserSetVisible(true); target.add(newUser); target.add(existingUser); } }; return nieuweGebruiker; } @SuppressWarnings("rawtypes") private AjaxLink bestaandeGebruiker() { @SuppressWarnings("unchecked") AjaxLink bestaandeGebruiker = new AjaxLink("bestaandeGebruiker"){ private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { System.out.println("bestaandeGebruiker"); newUserSetVisible(false); target.add(newUser); target.add(existingUser); } }; return bestaandeGebruiker; } private void newUserSetVisible(boolean show){ newUser.setVisible(show); existingUser.setVisible(!show); } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-does-not-update-my-webcontainer-tp4650259.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need a link in a dataview filter column
Hi, first; i need the download option for each row in the table, Not in the filter. In my Java program i did: @SuppressWarnings({ "unchecked", "rawtypes", "serial" }) public TextFilteredPropertyColumn getLink(String header,String sort,String field) { return new TextFilteredPropertyColumn(new Model(header), sort, field) { @Override public void populateItem(final Item> item, final String componentId, final IModel rowModel){ PdfLinkPanel panel = new PdfLinkPanel(componentId, new Model(""+rowModel)); item.add(panel); } @Override public String getCssClass() { return "text"; }; }; } And in PdfLinkPanel # public class PdfLinkPanel extends Panel { public PdfLinkPanel(String id, IModel model) { super(id); super(id); DownloadLink downloadLink = new DownloadLink("downloadLink",new File("mann_oe.pdf")); Label label = new Label("outputText","Factuur"); add( downloadLink ); downloadLink.add(label); But instead of a link in my column table i only see this[cell] It does work but does not show the invoice number as a link (just only the constant [cell] ) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-a-link-in-a-dataview-filter-column-tp4649688p4649691.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Need a link in a dataview filter column
Hi, in my datatable i use different columns with filters. One of those columns contain a invoice number I want to show a pdf if a user click this row Example Order invoice 1001 123401<--- This column must be clicable. After click it must open a pdf with 123401.pdf Who can help? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-a-link-in-a-dataview-filter-column-tp4649688.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Filtercolumn and bigdecimal formatter
It worked! Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Filtercolumn-and-bigdecimal-formatter-tp4649624p4649646.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Replace goandclear with images
How can I replace the text in the goAndClearFilter with a png? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Replace-goandclear-with-images-tp4649640.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
inputcolumn for Filtercolumn in datatable uses to much space
Default the input uses size=""20" but for some colums that is too much. How can i specify the size from Java? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/inputcolumn-for-Filtercolumn-in-datatable-uses-to-much-space-tp4649638.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Filtercolumn and bigdecimal formatter
I make my column with @SuppressWarnings({ "unchecked", "rawtypes" }) private TextFilteredPropertyColumn getVerkoopprijs() { return new TextFilteredPropertyColumn( new Model("Verkoopprijs"), "verkoopprijs", "verkoopprijs") { @Override public String getCssClass() { return "numeric"; }; }; } But I can not find any propriate method. Do you have an example? Currenty my output is: for 1 euro 1 but i want to display the amount always 2 decimals: 1,00 for 1,50 1,50 1,50 etc -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Filtercolumn-and-bigdecimal-formatter-tp4649624p4649637.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Filtercolumn and bigdecimal formatter
Hi, I spent hours and hours but can't find any solution: I have a datatable with a filter. I want to filter on a BigDecimal field. However the output is presented as is. For example euro 1 instead of 1,00 euro. I always want to show the amount with two decimals. Who can help? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Filtercolumn-and-bigdecimal-formatter-tp4649624.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Filtercolumn and bigdecimal formatter
Hi, I spent hours and hours but can't find any solution: I have a datatable with a filter. I want to filter on a BigDecimal field. However the output is presented as is. For example euro 1 instead of 1,00 euro. I always want to show the amount with two decimals. Who can help? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Filtercolumn-and-bigdecimal-formatter-tp4649623.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Datatable with selection row below the header
I need a table like datatable, only one difference: t must has input fields on the second row where the user can enter his selections. Who has an example for this? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Datatable-with-selection-row-below-the-header-tp4605644.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
no input when using a link
I made a login form. The user can click on the link "I forgot my password" In the program I want to read the input email address field. But it is always empty. When I use the ok button i can read the email field succesfully. What to do? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/no-input-when-using-a-link-tp4400550p4400550.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Dataview TextField problem
I made a dataview with a textfield. Whatever I do, the screen value is never read. I looked for hours on the internet and it drives me crazy.. .. please help. dataView = new DataView("pageable", new OpdrachtVOProvider()){ private static final long serialVersionUID = 1L; @Override protected void populateItem(final Item item) { final OpdrachtVO opdrachtVO = item.getModelObject(); item.add(getSaveBod()); item.add(getCancelBod()); item.add(new TextField ("opdrachtBod", new PropertyModel(opdrachtVO,"opdrachtBod" ))); System.out.println("===>"+"gevonden id = "+opdrachtVO.getId()+" "+opdrachtVO.getOpdrachtBod()); item.add(new Label("id", "" + opdrachtVO.getId())); item.add(new Label("korteOmschrijving",opdrachtVO.getKorteOmschrijving())); //item.add(new Label("cat", "" + getMsg(""+opdrachtVO.getCategorie().getId(; item.add(new Label("omschrijvingKlus",opdrachtVO.getOmschrijvingKlus())); item.add(new Label("plaats",opdrachtVO.getPlaats() ) ); item.add(new Label("postcode",""+opdrachtVO.getPostcode())); item.add(new Label("gezien",""+opdrachtVO.getAantalKeerGezien())); item.add(new Label("geboden",""+opdrachtVO.getAantalKeerGeboden())); item.add(AttributeModifier.replace("class", new AbstractReadOnlyModel(){ private static final long serialVersionUID = 1L; @Override public String getObject(){ return (item.getIndex() % 2 == 1) ? "even" : "odd"; } })); } }; [dataview navigator]> * ["korteOmschrijving"] * ["id"]> ["omschrijvingKlus"] *Plaats *["plaats"] *Postcode: *["postcode"] Aantal keren gezien: ["gezien"] Aantal keren geboden: ["geboden"] Uw bod -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dataview-TextField-problem-tp4238430p4238430.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
update a shoppinglist
I'm new to Wicket and now creating my first application. I find it difficult to decide which repeater i should choose on a shopping list where a user can change the number of items he or she wants. I choose a DataView because it can be used with paging. However I can't find out how to read the value of the quantity input field. Examples Book, How to cook on the Italian Way quantity X price 10,95price 0,00 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/update-a-shoppinglist-tp4232903p4232903.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org