wicket

How can I create a Wicket URL that hides its parameters?

ε祈祈猫儿з 提交于 2019-11-30 20:29:23
I'm currently creating a set of links with code like this: BookmarkablePageLink<CheeseMain> havarti = new BookmarkablePageLink<CheeseMain>("havarti", CheeseMain.class); havarti.setParameter("Title", "Havarti"); havarti.setParameter("Group", "cheeseName"); add(havarti); The URL that comes out has the format https://mysite.com/;jsessionid=B85EE5CB0349CCA2FE37AF76AB5C30C1?wicket:bookmarkablePage=:com.mycompany.cheese.CheeseMain&Title=Havarti&group=cheeseName . My problem is that I no longer want the URL for this link to be bookmarkable. Ideally, I would like it to be something simple like https:/

Administrating internationalized wicket applications

混江龙づ霸主 提交于 2019-11-30 18:24:51
问题 Is there a good/right way to maintain/administrate the internationalization of a Wicket application? At the moment there are several *.properties-files with the translations in it just as you do it in Wicket. Can you access these on runtime and change the values so that the changes take place without restarting the app? (Another way would be to store the values in a database but I just leave that for now.) 回答1: You can write your own implementation of IStringResourceLoader and register it

Increase the lock time for “After 1 minute the Pagemap null is still locked” Exception

﹥>﹥吖頭↗ 提交于 2019-11-30 14:21:48
org.apache.wicket.protocol.http.request.InvalidUrlException: org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is still locked by: Thread[http-8443-3,5,main], giving up trying to get the page for path: 3:timer Where is this 1 minute set? Is a wicket setting, or a tomcat? or ...? How can I modify this? biziclop Although I agree with Martijn's answer (you shouldn't keep users waiting for more than a minute), the timeout can be set by calling WebApplication.getRequestCycleSettings().setTimeout() on your application object. Example to set it to 3 Minutes: WebApplication.get

Simple way to use parameterised UI messages in Wicket?

只愿长相守 提交于 2019-11-30 12:22:52
Wicket has a flexible internationalisation system that supports parameterising UI messages in many ways. There are examples e.g. in StringResourceModel javadocs, such as this: WeatherStation ws = new WeatherStation(); add(new Label("weatherMessage", new StringResourceModel( "weather.${currentStatus}", this, new Model<String>(ws))); But I want something really simple , and couldn't find a good example of that. Consider this kind of UI message in a .properties file: msg=Value is {0} Specifically, I wouldn't want to create a model object (with getters for the values to be replaced; like

Is it difficult to make a mainly stateless web application with Wicket?

▼魔方 西西 提交于 2019-11-30 11:37:15
问题 I've been working with Wicket for month or two now, making simple web applications with it and getting used to models and so forth. Now I'd like to move forward and see if I can put what I've learned so far to use and create a medium/large web application. However, I haven't spent much time thinking about how to make pages stateless. If I understand correctly, making a stateless page is achieved by making the page bookmarkable and making sure that no stateful components are added to the page.

Apache Wicket vs Apache Click

孤街浪徒 提交于 2019-11-30 11:29:42
问题 What is the difference between Apache Wicket and Apache Click? Is Apache Click maintained? The latest release seems to be from Nov 2008 Thanks Achilleas 回答1: Click is actively developed and has recently graduated as an Apache Top Level Project. It is currently moving to its new domain at: http://click.apache.org. Once the migration is complete the next version, 2.1.0, will be released. Before comparing Click and Wicket do note that I am a committer at Apache Click but have evaluated Wicket a

For my next project, a web-app, should use scala+wicket or scala+lift?

╄→尐↘猪︶ㄣ 提交于 2019-11-30 11:03:58
问题 Given the various advantages of the Scala language I have decided to write my next web-application in Scala. However, should I be using Wicket or Lift? I am familiar with Wicket, and like it quite a bit, but know very little about Lift. Is learning Lift worth the effort in this context? In order words, how does Lift compare to Wicket? Given that the web-app will be in Scala, could using Lift make my life as a developer easier? 回答1: If you like Wicket, you should stick with what you know &

Programmatic use of Spring Security

女生的网名这么多〃 提交于 2019-11-30 10:24:18
问题 I am using Wicket with the Wicket Auth Project for my presentation layer and I have therefore integrated it with Spring Security. This is the method which is called by Wicket for authentication for me: @Override public boolean authenticate(String username, String password) { try { Authentication request = new UsernamePasswordAuthenticationToken( username, password); Authentication result = authenticationManager.authenticate(request); SecurityContextHolder.getContext().setAuthentication(result

using AutoCompleteTextField in wicket without String as the generic type

与世无争的帅哥 提交于 2019-11-30 10:05:59
This question follows this: handling to onchange event of AutoCompleteTextField in wicket I'm trying to use the AutoCompleteTextField with a custom class as the generic type, and to add an AjaxFormComponentUpdatingBehavior. What I mean is I want to have a AutoCompleteTextField<SomeClass> myAutoComplete = ...; and after that add a AjaxFormComponentUpdatingBehavior: myAutoComplete.add(new AjaxFormComponentUpdatingBehavior("onchange") { @Override protected void onUpdate(AjaxRequestTarget target) { System.out.println( "Value: "+getValue() ); } }); The problem is that for some reason, adding that

Wicket Label not updated / remains invisible

冷暖自知 提交于 2019-11-30 09:58:20
I am trying to implement Breadcrumb Navigation on a WebPage that exchanges a content Panel via ajax. It ends up looking like this: Home >> Page >> Panel Here is my page code: public MyPage() { super(); contentContainer = new WebMarkupContainer("contentContainer"); contentContainer.setOutputMarkupId(true); add(contentContainer); contentContainer.add(content = createContentPanel()); breadCrumbContainer = new WebMarkupContainer("breadcrumbContainer"); breadCrumbContainer.setOutputMarkupId(true); add(breadCrumbContainer); final AjaxLink panelLink = new AjaxLink("panelLink") { @Override public void