wicket

Wicket 6 NonCachingImage not displayed in HTML

风流意气都作罢 提交于 2019-12-12 01:28:51
问题 I'm really stumped with this one: This is my method to create a dynamic image. private Image createImage(final String id, final byte[] imageData){ NonCachingImage chartImage=new NonCachingImage(id) { private static final long serialVersionUID = 1L; @Override protected IResource getImageResource() { return new DynamicImageResource(){ private static final long serialVersionUID=1L; @Override protected byte[] getImageData(Attributes attributes) { String myImageStr = new StringBuffer(

Populate Listitem with comboboxes and editables labes and preserve the state of each object in lines

不羁的心 提交于 2019-12-12 00:57:07
问题 For avoid waste your time, this is a question for apache wicket and scala developers, thanks. I have created a listView with method populateList, that fills a list of customers meetings with the respective manager responsible for each line according the figure bellow: Two problems here: When a new new item is created, only the fields (labels) dateBegin and dateEnd are preserved with previous assigned values, I lost the values of Manager DropDownChoice and the Detail TextField in last line of

What is latest proven-that-works combination of Liferay and Wicket?

北城以北 提交于 2019-12-11 23:42:28
问题 I just tried Wicket 1.5.6 and Liferay 6.1.0 combination and that is not working out of the box, at least not for me. https://cwiki.apache.org/WICKET/wicket-examples-as-portlets.html says that examples.war should work without any problem, but for me it tells after deploy that 11:53:17,096 ERROR [render_portlet_jsp:154] java.lang.IllegalStateException: filter path was not configured at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:164) at org.apache.wicket

wicket download output stream

感情迁移 提交于 2019-12-11 18:52:37
问题 I want to download csv file , i take the response content and write to it , apprently wicket write after me and the content iam getting is the page html where it should be my csv I have seen in the example the usage of throw new AbortException(); I am using version 6.7 , do you know if my version wicket has somthing instead of it ? or rather I am doing somthing wrong .... can you please help me ... add(new Link<Void>("export") { @Override public void onClick() { WebResponse response =

Transient wicket form field ignored

≡放荡痞女 提交于 2019-12-11 18:48:25
问题 so I have an entity called "User" @Entity(name = "user") @Audited public class User extends DataObjectAudit { private static final long serialVersionUID = 1L; private Set<UserProjectCenterRole> roles = new HashSet<UserProjectCenterRole>(); private RoleTypeEnum role = null; @OneToMany(mappedBy = "user", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.DELETE, CascadeType.SAVE_UPDATE }) @Filters({ @Filter(name = "deletedFilter"

Is there a way to pass hidden values in Wicket?

时间秒杀一切 提交于 2019-12-11 17:59:04
问题 As described in Wicket redirect: how to pass on parameters and keeps URLs "pretty"?, there are a variety of options for passing parameters in Wicket. However, all of the methods listed on that page use the URL to transmit parameter information. Is there a class that's similar to the PageParameters class except that it hides the information it's transmitting? I don't care about bookmarkability, but I do care about URLs like http://www.example.com/example.html?uniqueId=309308&superSecretValue

Pre tag giving blank line if no data sent from wicket

混江龙づ霸主 提交于 2019-12-11 16:24:36
问题 I'm trying to display some data using pre tag. Sometimes it won't get any data from the wicket. In that case, it should not show anything on the page. Instead, it is displaying a blank line. Please help on how to prevent the blank line from the page. And I'm sure it is producing because of pre tag <div> <a wicket:id="Data" class="text-white">Click to View</a> <pre wicket:id="Label" class="text-white bg-dark"></pre> </div> 回答1: on Wicket side you can make the component invisible if its model

Data comes from list but does not seen onto the page

一曲冷凌霜 提交于 2019-12-11 14:12:05
问题 I am trying to take data & display that data by using component Label but that data does not seen onto page all labels are in table-row & row increses here but row doesnt get label package com.cerebrum.pages; import java.util.ArrayList; import java.util.List; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.list.ListItem; import org.apache.wicket.markup.html.list.ListView; import org.apache.wicket.model

Feedback panel added but does not show all messages

余生颓废 提交于 2019-12-11 13:59:43
问题 I have some basic form when you type email, old password, new password and repeat new pass for your profile modify. What I'm trying to achive is to display feedback msg when pass is wrong. A piece of code looks like this: public class EditProfileForm extends Form<Void> { private static final long serialVersionUID = 1L; // El-cheapo model for form private final ValueMap properties = new ValueMap(); private ModalWindow modalWindow; @SpringBean UserManager userManager; @SpringBean Validator

Apache Wicket: Injecting dependencies in form validators (using Guice)

拜拜、爱过 提交于 2019-12-11 13:58:48
问题 (This is basically a follow on this question.) I need to access the DB service layer in one of my form validators (to make sure the email is not already taken when registering a new user). I tried the following (some input-fields omitted for brevity): public class RegistrationPage extends WebPage { @Inject private UserService userService; public RegistrationPage() { add(new FeedbackPanel("feedback")); TextField<String> email = new TextField<String>("email", Model.of("")); ... email.add(new