wicket

Architecture Question: GWT or Vaadin to create Desktop Application?

霸气de小男生 提交于 2019-12-03 15:56:45
We're planning on creating a feedreader as a windows desktop- and iPad application . As we want to be able to show Websites AND to run (our own) JavaScript in this application, we thought about delivering the application as HTML/CSS/JavaScript, just wrapped by some .NET control or a Cocoa Touch webbrowser component. So the task at hand is to find out which framework to use to create the HTML/CSS/JS files to embed in the application. For the development of the HTML/CSS/JavaScript we would be happy to use Vaadin, GWT, or some other framework, as we're a lot better with Java than with JS. We

Stateless Apache Wicket stateless pages/requests

时光毁灭记忆、已成空白 提交于 2019-12-03 13:36:50
问题 So I was reading another question under the Wicket tag comparing Apache Wicket and Apache Click. A concise explanation, in my opinion. I am more familiar with the Wicket world than the Click world. One of the comments I read was that you can make stateless Wicket pages. I started to think about this and couldn't figure out a way to make a request or a page request for something stateless. This could certainly come in handy in some situations. So how does one start to use Wicket without state?

How to open ModalDialog on PageLoad

旧街凉风 提交于 2019-12-03 12:39:20
How can I open a modal dialog on PageLoad() , in the constructor of the WebPage and without the AjaxRequestTarget , with Wicket? I couldn't find a way to open it without an Ajax request, but it's perfectly possible to open it when the page is loaded, with a simple behavior: HomePage.java public class HomePage extends WebPage { public HomePage(PageParameters pageParameters) { super(pageParameters); ModalWindow modal = new ModalWindow("modal"); modal.add(new OpenWindowOnLoadBehavior()); modal.setPageCreator(new ModalWindow.PageCreator() { @Override public Page createPage() { return new

GWT vs Apache Wicket

浪子不回头ぞ 提交于 2019-12-03 11:49:45
Both GWT and Wicket are stateful, java object oriented based. GWT is completely client based with features like javascript optimization, CSS optimization, and I'm pretty new to Apache Wicket. The more I read about Wicket the more similar it feels to GWT. So I guess the question is - What are the differences between GWT and Wicket? Or am I comparing apples to oranges? Don Roby It is pretty much apples to oranges. This wiki entry summarizes some of the similarities and differences, and the start of a strategy for using them together, which I think is an interesting idea. Wicket is primarily a

Why is my Hibernate Query returning stale data?

谁都会走 提交于 2019-12-03 09:13:08
Quick Version Basically, I'm updating a Hibernate Table and subsequent queries are loading a stale value. Detailed Version Hibernate (3.3.1.GA) and EhCache (2.4.2). Persisted Book object with a List<PageContent> of pages and I'm adding a page to the middle of this book. I'm using Databinder/Wicket, though I do not think that is related. public void createPageContent(Book book, int index) { Databinder.getHibernateSession().lock(book, LockMode.UPGRADE); PageContent page = new PageContent(book); book.addPage(page, index); CwmService.get().flushChanges(); // commits the transaction } The

How do I call Java code from JavaScript code in Wicket?

安稳与你 提交于 2019-12-03 08:56:30
问题 If I can do this, how do I call Java code (methods for instance) from within JavaScript code, in Wicket. 回答1: erk. The correct answer would be ajax call backs. You can either manually code the js to hook into the wicket js, or you can setup the callbacks from wicket components in java. For example, from AjaxLazyLoadPanel: component.add( new AbstractDefaultAjaxBehavior() { @Override protected void respond(AjaxRequestTarget target) { // your code here } @Override public void renderHead

How to send binary multipart formdata as base64? [duplicate]

最后都变了- 提交于 2019-12-03 08:09:27
Possible Duplicate: How can you encode to Base64 using Javascript? I have a web application based on Java, Wicket and JQuery which has a function to enable users to upload files (images, pdfs, rtf) through multipart/form-data. Our web security infrastructure does filtering of all http traffic to pick up possibly malicious content e.g. XSS attacks, SQL injection, buffer overruns etc The filter doesn't distinguish between normal text input fields and file data so it picks up false positives from many uploaded binary files, preventing those files from being uploaded. I cannot change the security

Getting a Wicket text box's value in an AJAX onchange event

旧巷老猫 提交于 2019-12-03 08:06:14
问题 When a user enters a number in a Wicket text field, I need to capture the value entered on an AJAX onchange event. How can I do this? 回答1: Use an OnChangeAjaxBehavior, and your component model will be updated automatically. You can query the value by using component.getDefaultModelObject() add(new TextField<String>(id, someModel) .add(new OnChangeAjaxBehavior(){ private static final long serialVersionUID = 2462233190993745889L; @Override protected void onUpdate(final AjaxRequestTarget target)

Wicket Drag and drop functionality for adding an image

天大地大妈咪最大 提交于 2019-12-03 07:43:37
I'm making a wicket app that can manage some options for a cashdesk app. One of the options is to change the image of a selected Product . The user(manager) can choose from the already present images in the database (SQL) when this option is selected, or add a new image if the desired image is not present. Don't mention the test names and awesome images (it's still in test-fase) I prefer to see the adding of an image achieved by Drag and Drop html5 demo [dnd-upload] (From the desktop into the browser) I'm currently using Wicket-6.2.0 and wicket-dnd 0.5.0 and i can't seem to get this working!

Does it make sense to use Google Web Toolkit (GWT) as a full-blown Java web framework?

余生颓废 提交于 2019-12-03 07:28:08
问题 I am interested in the possibility that GWT could serve as the basis for my entire presentation layer. I would be interested to know if anyone has tried this successfully - or unsuccessfully - and could persuade or unpersuade me from attempting this. 回答1: I worked with GWT about a year ago. At the time it seemed like a great idea, with a number of caveats: I had "gotcha" problems with some parts of the API, that were probably related to the fact that you're coding as if you're in java when in