Re: change (redirect) the markup html file
Thanks! But, I don't have a setStyle in WebPage-class, there is a setStyle-method only in ResourceReference? How could I use this? Daniel 2010/5/25 Jeremy Thomerson jer...@wickettraining.com: You could use style for this if you'd like, and use a PageParameter to set the style in the constructor (SomePage_style1.html, SomePage_style2.html) public SomePage(PageParameters params) { setStyle(params.get(style)); } On Tue, May 25, 2010 at 5:23 AM, Daniel Aschauer daniel.ascha...@gmail.comwrote: Hello! Maybe a simple question, but I didn't figured it out yet. I have a set of very simular mainly static pages, so I want to use one java class and depending on a given parameter use differnt html-markup files. Is there a method that does this kind of redirect or changes the name of the refered .html? Thanks alot, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
change (redirect) the markup html file
Hello! Maybe a simple question, but I didn't figured it out yet. I have a set of very simular mainly static pages, so I want to use one java class and depending on a given parameter use differnt html-markup files. Is there a method that does this kind of redirect or changes the name of the refered .html? Thanks alot, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Add new items to a list within a form by ajaxlink?
Hi! I am new here, and I am creating my first Webapplication with Wicket and already read through the whole book Wicket in action. But I still face some problem I could resolve: In a form, where I use a compound model I want to add some new Object to a list when a ajax link is clicked. The problem is that the container that contains the list (PropertyListView) will repaint and thus entries by the user are lost. I know might submit the form first and so might be able to update the model and reread it, but then I will have to skip the validation on other fields in the form. Can anyone help me out and give me some hint how this problem can be solved? Thanks alot for any help!!! Daniel this.participantlistview = new PropertyListViewBasisExhibitionParticipant(exhibition.participants) { @Override protected void populateItem(ListItemBasisExhibitionParticipant item) { item.add(new TextFieldString(name)); item.add(new TextFieldString(surname)); item.add(new DropDownChoiceString(role,BasisExhibitionParticipant.roles)); } }; this.participantlistcontainer = new WebMarkupContainer(participants); this.participantlistcontainer.add(participantlistview); this.participantlistcontainer.setOutputMarkupId(true); form.add(this.participantlistcontainer); form.add(new AjaxSubmitLink(add_participant) { @Override protected void onSubmit(AjaxRequestTarget target, Form form) { System.out.println(Participant is: + participantlistview.getModelObject().get(0).getName()); if (target != null) { target.addComponent(AddExhibition.this.participantlistcontainer); } } }.setDefaultFormProcessing(false)); - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org