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 : > 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 > wrote: > >> 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 PropertyListView("exhibition.participants") { @Override protected void populateItem(ListItem item) { item.add(new TextField("name")); item.add(new TextField("surname")); item.add(new DropDownChoice("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