How to get checkRequired() called in FormComponentPanel
Hi, I have implemented a date chooser custom component with 3 combined DropDownChoice components. Like http://blog.aparnachaudhary.net/2009/07/29/date-dropdownchoice-apache-wicket/ My overriding boolean checkRequired() is not called when the form is submitted. I then used FormComponentPanel with the same result. checkRequired() is called for all 3 contained DropDownChoice components but not for the containing custom component. I need this for a FeedbackBorder around the custom component that must indicate missing input. Any ideas? Many thanks, Bernard - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to send a URI with # as WicketAjaxGet argument
Hi, I've created a javascript function that should be called from javascript and processed as a wicket respond: String js=function setCompetenceNode(currgoaluri,currgoaltype,nodeid){var wcall=wicketAjaxGet ('+url+currGoalURI='+currgoaluri+'currGoalType='+currgoaltype+'nodeId='+nodeid, function(){},function(){})}; The first argument here is URI in the form like: http://intelleo.org/triplestore/bc_x#Organization/2af71336-13a9-4a1b-ae76-c58cdd221f7f The function setCompetenceNode gets all arguments fine, but the problem is in wicketAjaxGet. I'm trying to get it with final String currGoalURI=RequestCycle.get().getRequest().getParameter(currGoalURI); final String currGoalType=RequestCycle.get().getRequest().getParameter(currGoalType); final String nodeId=RequestCycle.get().getRequest().getParameter(nodeId); I just receive the part of the URI before # and all other arguments are null. Is there some way I can pass this URI as an argument? Thanks, Zoran -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-send-a-URI-with-as-WicketAjaxGet-argument-tp2301521p2301521.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Lambdas in Java Preview - Part 5: Apache Wicket
the url is not working -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Lambdas-in-Java-Preview-Part-5-Apache-Wicket-tp2297512p2301552.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Forums tools ready-to-use?
I need a tool for a Forum in my web site. I don't want use the classic php based tools, like phpForum, bbCode ecc. But I would use WICKET! Do you suggest me some wicket examples o ready-to-use forum tool? Or if it doesn't exist, please suggest some guestbook or similar way to posting message in a webpage. thank you. Paolo
Re: Lambdas in Java Preview - Part 5: Apache Wicket
It's working for me, or now is working. On 25 July 2010 15:42, always_rick sh...@hotmail.com wrote: the url is not working -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Lambdas-in-Java-Preview-Part-5-Apache-Wicket-tp2297512p2301552.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- AT®
Re: Best way to hide a component
I've done what you all recommended and the code is way tidier now! Thanks everyone! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Best-way-to-hide-a-component-tp2299412p2301736.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket archetype for hibernate 3.5 and spring 3
I created a Maven archetype for wicket application containing the following things: - Everything is configured using Spring 3 - Hibernate 3.5 is used for persistence - Example classes using JPA-style annotations - Example DAOs and base classes for CRUD-operations - Everything runs on an InRam-HSQL I will add some better unit tests this week. I added the Apache License so it should be compatible with Wicket. It is somewhat based on the original Wicket-Archetype. I hope I did everything right and didn't break any licenses. Grab your copy from: http://github.com/pflanzenmoerder/wicket-hibernate-archetype CU Jochen - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
statelessform and ajaxsubmitlink in the same page
Hi! I have a page with 1 statelessform and another form that use ajaxsubmitlink. I overrides the isStateless method to return false to avoid ajaxsubmitlink fail but when the normal form is submited wicket throws exception with text: ... deserializing proxy Is possible have a statelessform and ajaxsubmitlink in the same page? thanks!
[1.4.9] Ajax displayed label not compatible with IE6/7/8 if the label contains pre tag !
If a label is default invisible and is setVisible(true) in an AjaxButton.onSubmit() , and if that label containing prexxx/pre string, it will fail to render in IE 6/8 . IE6/8 report wicket-ajax.js has something wrong ... I don't have IE7 , but I think the result is the same : HTML form wicket:id=form input type=button value=failButton wicket:id=failButton / span wicket:id=failLabel/span /form Java Code : public class MainPage extends WebPage { private MultiLineLabel failLabel = new MultiLineLabel(failLabel); public MainPage() { failLabel.setVisible(false); failLabel.setOutputMarkupPlaceholderTag(true); FormVoid form = new FormVoid(form); add(form); form.add(failLabel); AjaxButton failButton = new AjaxButton(failButton) { @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { failLabel.setDefaultModel(new PropertyModelString(MainPage.this , failResult)); failLabel.setEscapeModelStrings(false); failLabel.setVisible(true); target.addComponent(failLabel); } }; form.add(failButton); } /** * Success in Firefox/Chrome , but fail in IE 6/8 (I don't have IE7) */ public String getFailResult() { return prefont color=\#ff\R/font/pre; } } In the code above , if I take away pre and /pre in getFailResult() , it works like a charm! I think it is a bug...
Re: [1.4.9] Ajax displayed label not compatible with IE6/7/8 if the label contains pre tag !
I have created a JIRA issue with quickstart file here : https://issues.apache.org/jira/browse/WICKET-2965 https://issues.apache.org/jira/browse/WICKET-2965 2010/7/26 smallufo small...@gmail.com HTML form wicket:id=form input type=button value=failButton wicket:id=failButton / span wicket:id=failLabel/span /form Java Code : public class MainPage extends WebPage { private MultiLineLabel failLabel = new MultiLineLabel(failLabel); public MainPage() { failLabel.setVisible(false); failLabel.setOutputMarkupPlaceholderTag(true); FormVoid form = new FormVoid(form); add(form); form.add(failLabel); AjaxButton failButton = new AjaxButton(failButton) { @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { failLabel.setDefaultModel(new PropertyModelString(MainPage.this , failResult)); failLabel.setEscapeModelStrings(false); failLabel.setVisible(true); target.addComponent(failLabel); } }; form.add(failButton); } /** * Success in Firefox/Chrome , but fail in IE 6/8 (I don't have IE7) */ public String getFailResult() { return prefont color=\#ff\R/font/pre; } } In the code above , if I take away pre and /pre in getFailResult() , it works like a charm! I think it is a bug...
Re: TextFieldInteger
When I supply Integer as the type, i get an error cannot cast Long to Integer D/ On Jul 22, 2010, at 5:01 PM, Josh Glassman wrote: There is also a constructor that will take a Class type as a parameter. On Thu, Jul 22, 2010 at 3:11 PM, T Ames tamesw...@gmail.com wrote: I think you have to use the setType(Integer.class) method on the TextField object. setType public final FormComponent file:///C:/Downloads/Java/wicket/apache-wicket-1.4.1/apidocs/org/apache/wicket/markup/html/form/FormComponent.htmlT file:///C:/Downloads/Java/wicket/apache-wicket-1.4.1/apidocs/org/apache/wicket/markup/html/form/FormComponent.html *setType*(java.lang.Class? type) Sets the type that will be used when updating the model for this component. If no type is specified String type is assumed. *Parameters:*type - *Returns:*this for chaining On Thu, Jul 22, 2010 at 1:50 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Has anybody succesfully used TextFieldInteger? I get an runtime exception trying to cast String to Integer. If supply (Integer.class) to the constructor then it is trying to case Long to Integer. D/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org