wicket

Palette does not render arrows since Wicket 7.x.x

自古美人都是妖i 提交于 2019-12-11 13:55:37
问题 See this minimal demo at GitHub: https://github.com/ErikVerheul/PaletteBugDemo.git I expected that the code line palette.add(new DefaultTheme()); would do the trick. However, it did not. When changing the Wicket version to 6.20.0 all works fine. Did I miss something? help appreciated, Erik 回答1: Short answer : Remove your paragraph <p> and use a <div> instead of the <span> for the palette. Long answer The p paragraph cannot contain other block elements. In Wicket 6.x the palette uses a table

Spinner component in Wicket?

[亡魂溺海] 提交于 2019-12-11 13:13:36
问题 Where can I find a spinner component for Wicket?, including Maven repo and a source code example? 回答1: wicketstuff-minis has an implementation of a spinner. There is also a wicketstuff-minis-examples project The maven repos are: <dependency> <groupId>org.wicketstuff</groupId> <artifactId>minis</artifactId> <version>1.4.17.2</version> </dependency> and <dependency> <groupId>org.wicketstuff-examples</groupId> <artifactId>minis</artifactId> <version>1.4.17.2</version> </dependency> 回答2: Let your

problem with updating application with new data from database

别说谁变了你拦得住时间么 提交于 2019-12-11 12:45:38
问题 I have a web application that pulls data from the database then displays it. Now the problem I'm having is that every hour I want to do updates on the data in the database; this is done by a separate app, this all works fine. However, once this has happened and the user refreshes their web page, the new data isn't being displayed. I hope this makes sense. I'll provide some code from the app so that you see it better. My web app is written in netbeans using java and I have a persistence unit

Wicket basic implementation of wizard steps

会有一股神秘感。 提交于 2019-12-11 12:37:10
问题 is there any basic implementation wicket 6.20 provides for a step overview functionality like in this picture or like this if the other won't work? When looking at the documentation I couldn't find anything close to it, so I started by doing my own implementation like public List<String> getSteps(WizardModel model){ Iterator<IWizardStep> iterator = model.stepIterator(); List<String> steps = new ArrayList<String>(); for(int i = 1; iterator.hasNext(); i++){ steps.add(String.valueOf(i));

PageListView and dataset loading

好久不见. 提交于 2019-12-11 12:35:36
问题 The dataset I display using PageableListView can get very big and keeping the whole dataset as a model would be very inefficient. Is it possible to load for example only the set of IDs first and then load only the objects that are to be displayed on the current page? I use Wicket+Spring+Hibernate/JPA. Or is there a better approach to paging in this case? 回答1: The usual way to deal with that (at least for me) would be to perform: a first query to count the items and deduce the number of pages

Retrieve values of dynamically added inputs of a form in Wicket

僤鯓⒐⒋嵵緔 提交于 2019-12-11 12:16:02
问题 I am building a Wicket WebPage that dynamically builds a form with multiple different input types. It is possible to add textfileds, checkboxes and dropdownlists. The different inputs are added via a ListView and different Panel s for each type. The creation of the form works, but now I do not know how I can access the entered values in the onSubmit() method. This the constructor of my page: public AddJobPage(final PageParameters params) { super(params); final Workable w = WorkableManager

Wicket testing startPanel(Panel) and PageParameters - how to set them?

穿精又带淫゛_ 提交于 2019-12-11 11:36:06
问题 Currently I'm using the WicketTester's startPanel method to test my panels. Within these panels I often use PageParameters to access data, using getPage().getPageParameters(). However, the startPanel method does not initialize any page parameters for the DummyPage, nor does it offer me functionality to set page parameters. How do I set my page parameters during panel tests? 回答1: Is that really the way to do it? The startPanel already creates a dummy page for us, but without any page

wicket AjaxLink onclick not responding

荒凉一梦 提交于 2019-12-11 11:26:03
问题 I'm building a website with wicket. I have a modal window that opens from an ajaxlink from the main page. The problem is that when I added a CSS to my HTML code in order to make it more visible attractive, it stopped working. So now, when I click in the AjaxLink that opens the modal window, nothing happens and I can't figure out why. Any Ideas?? This is the code of the AjaxLink: AjaxLink privacyLink = new AjaxLink<Void>("privacylink") { @Override public void onClick(AjaxRequestTarget target)

Using panels instead of String in Autocompletetextfield

a 夏天 提交于 2019-12-11 10:29:53
问题 I am using Wicket to build an ui for a searchengine on a website. As the user is typing the results are shown in a dropdown. As I have a lot of different objects (with each a different display structure) I want to define several panels. So for each found item in the db, it gets the right panel and right structure. So for example : if the searchengine finds a user, it should show only name. When a picture is found, a thumbnail and a description, etc... Right now I am using the

How do I query the text of an element (Component) using WicketTester?

烈酒焚心 提交于 2019-12-11 10:22:57
问题 Rather than specifying the id-path for components to click in WicketTester I'd like to find the link with a specific text. I can use MarkupContainer.visitChildren to run through the tree, but can I get the actual rendered component text for each leaf - something like .innerHTML ? 回答1: Yes, see TagTester. It is part of WicketTester family. 来源: https://stackoverflow.com/questions/6413022/how-do-i-query-the-text-of-an-element-component-using-wickettester