wicket

AppFuse + wicket: No qualifying bean of type [org.hibernate.SessionFactory]

让人想犯罪 __ 提交于 2019-12-13 19:25:40
问题 I have a small application written in AppFuse (multi-modular project). I want to try to use the Apache Wicket to make some kind of UI. Since AppFuse is based on Spring I found a tutorial for using Spring and Wicket together. I setted up the Wicket project using quickstart from the Wicket page. Whenever I try to run the Wicket app I get this error (full stack trace is at the end of the post): org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personClubDao'

Wicket AjaxButton and javascript condition

有些话、适合烂在心里 提交于 2019-12-13 19:12:41
问题 I am new with Wicket framework, so I don't know if this is possible. I want that when I click on submit button of form (in Java it's AjaxButton) javascript confirmation dialog pops up, but when I click No, it always calls method onSubmit of this button. What am I doing wrong? Here my code: AjaxButton submit; add(submit = new AjaxButton("ajaxSubmitProduct"){ private static final long serialVersionUID = 1L; @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag);

Weld injection failing when calling a method from an super/abstract class with Wicket

眉间皱痕 提交于 2019-12-13 18:58:42
问题 I am having a problem with weld-wicket. When @Inject-ing an EJB that inherits from an abstract class, if I attempt to call a method from the abstract class I get an ejb-ref error. However if I call a method from the concrete class it works perfectly. I can override methods and call them, and I can delegate an overridden method to the abstract class (having the overridden method call super.method()) and that works. Is there some sort of configuration I have to do to the abstract class? Thanks.

IE always sending the same jsessionid over time (using Java Wicket)

余生长醉 提交于 2019-12-13 18:57:44
问题 I have an application that I'm hosting on a local environment and am experiencing a very strange problem that occurs only in IE. The other browsers I've tested with (Chrome and Firefox) don't seem to reproduce the problem. I'm using Wicket 1.5.0 snapshot. In the application I've got a dispatch page that validates initial requests and take further action upon validation. In it I've got: setResponsePage(Canvas.class, pageParams); MyCustomSession.get().bind(); and in Canvas page upon calling

Different set of validators for AjaxFormComponentUpdatingBehavior and form submission

烂漫一生 提交于 2019-12-13 17:18:49
问题 In Wicket, I have written a AjaxFeedbackComponent component that takes a regular form component (such as a TextField) and feedback field and provides validation with instant feedback as the user types. I use it for user registration, for example, to validate the minimum password length, or a duplicate username etc (similar to the Twitter signup page). For, I have registered a AjaxFormComponentUpdatingBehavior with the form component and update the feedback field with the ajax request:

Java wicket dataprovider for large tables size

笑着哭i 提交于 2019-12-13 14:20:54
问题 I'm developing a wicket front-end for an EJB3 java application with MySQL database. The website mostly is submitting forms and showing tables. For these tables I prefer to create IDataProviders which work very nice with AjaxPagingNavigation. But I have a few tables which are quite large and the size function of the IDataProvider becomes a bit tricky to implement. Usually I use a count for the query and this performs good in most cases but I have a few large table where a count takes too long

Wicket DropDownChoice NOT working correctly with PropertyModels

旧城冷巷雨未停 提交于 2019-12-13 14:03:42
问题 I have been trying to debug why my DropDownChoice in a simple form with just the DropDown and a Submit Button hasn't been working correctly for hours now. It has a very weird behaviour. Where the first value selected in the drop down choice is sent successfully to the server after which any other choice select is not updated by the model. ie if I have a List persons, and I select the 2nd person, it submits this successfully. However, on select of another person and trying to submit it again

Apache wicket: how to update model after validation error

微笑、不失礼 提交于 2019-12-13 12:16:22
问题 I have form with dateTimeField, and ListView. ListView looks like that: final ListView<String> countryView = new ListView<String>("country", model.<List<String>>bind("country")) { @Override protected void populateItem(final ListItem<String> item) { final String country = item.getModelObject(); item.add(new ValidationDisplayableLabel("country", country, new String[] { modelPath })); item.add(new AjaxLink("deleteLink") { @Override public void onClick(AjaxRequestTarget target) { model.getObject(

wicket 1.5 not found error message

一笑奈何 提交于 2019-12-13 08:36:01
问题 I made a ComponentFeedbackPanel for my inputs where I display message for form components. I have inputs for pass change, where you type your old pass, new pass and repeat new pass: final PasswordTextField oldPass = createOldPassField(); final PasswordTextField newPass = createNewPassField(); final PasswordTextField newPassRepeat = createNewPassRepeatField(); add( oldPass ); add( newPass ); add( newPassRepeat ); final ComponentFeedbackPanel oldPassFeedbackPanel = new ComponentFeedbackPanel

checkbox in pageablelistview in wicket

亡梦爱人 提交于 2019-12-13 07:44:32
问题 private ArrayList<MFRList> list; private ArrayList<STUList> list1 = new ArrayList<STUList>(); public ResultPage(PageParameters params) throws APIException { Form form = new Form("form"); PageableListView view = new PageableListView("view", list, 10) { @Override public void onConfigure() { super.onConfigure(); setVisible(list.size() > 0); } @Override protected void populateItem(ListItem item) { final StuList stu= (StuList) item.getModelObject(); item.add(new CheckBox("check", item.getModel()))