Re: What IDE best fits with Wicket?
I'm using Q4E, and although it has some flaws, it works very good with maven Brill Pappin wrote: > > What are you using instead? > > - Brill > > On 24-Feb-09, at 12:45 PM, James Carman wrote: > >> +1! We had an awful lot of trouble getting it to work for us. >> >> On Tue, Feb 24, 2009 at 12:38 PM, Martijn Dashorst >> wrote: >>> m2eclipse is absolutely worthless for anything beyond a quickstart. >>> It >>> is constantly reparsing poms, grinding eclipse to a halt. It failed >>> to >>> generate the right project dependencies for our multimodule project >>> that consists of 2 multimodule child projects. It failed miserably to >>> uninstall, needing me to axe my eclipse installation. >>> >>> In short: my experience (and that of my co-workers) with m2eclipse is >>> that it is far from ready for prime time. >>> >>> Martijn >>> >>> On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin >>> wrote: I should add something about the Eclipse maven plugins... don't go for the official eclipse Q4 plugin... use the "Maven Integration 4 Eclipse" plugin (and actually the development version if your jiggy with it, it works and gets updated/fixed way more often). If your on Netbeans, I think Maven will generate Netbeans project files for you as well (it will do so for eclipse), so you could actually flip back and forth if you wanted. - Brill Pappin On 23-Feb-09, at 5:19 PM, Pierre Goupil wrote: > +1, I like Wicket Bench. And with M2Eclipse, you have the full > sources & > JavaDoc just by adding Wicket as a dependency, which is very > convenient. > But > don't expect Wicket Bench to do too much, it's just a small, > useful tool. > > Pierre > > >> Hi, I use Eclipse with Wicket Bench plugin and it works very fine. > > -- > Sans amis était le grand maître des mondes, > Eprouvait manque, ce pour quoi il créa les esprits, > Miroirs bienveillants de sa béatitude. > Mais au vrai, il ne trouva aucun égal, > Du calice du royaume total des âmes > Ecume jusqu'à lui l'infinité. > > (Schiller, "l'amitié") - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >>> -- >>> Become a Wicket expert, learn from the best: http:// >>> wicketinaction.com >>> Apache Wicket 1.3.5 is released >>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/What-IDE-best-fits-with-Wicket--tp22168133p22243831.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: GSoC ideas for 09
Better tree component maybe? "C. Bergström" wrote: > > > Hi Everyone! > > A year ago I bugged dashorst about why Wicket didn't participate in the > 08 GSoC.. This year I've been brainstorming on ideas and want to see > what others think could be useful projects for Wicket. > > Thanks > > ./Christopher > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/GSoC-ideas-for-09-tp22198339p22204797.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: how to avoid value set to null if value of textfield gets deleted
If you retrieve the string using getModelObjectAsString() you will never receive a null, because that method converts nulls to "" SantiagoA wrote: > > A null value won´t work for me, because I have to Map these values via > Castor to XML and as result null values were deleted in Castor. > At this point I need an empty String to make sure the value is mapped in > Castor. > > Thanks for the proposal anyway, > the solution above (Ernestos proposal) works fine for me! > > > > jensiator wrote: >> >> My experience is that null values a nice to use. What if you have a >> optional email field? When the user starts to write something the email >> validation kicks in. I think a lot of wickets validators uses Null in >> that case. And I have used that i JSP/Struts programming to. I think its >> better to handle the null values when you later use the model to do >> something. >> >> Jens Alenius >> >> >> >> > > -- View this message in context: http://www.nabble.com/how-to-avoid-value-set-to-null-if-value-of-textfield-gets-deleted-tp22198221p22204778.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: DropDownChoice without preselection and without 'Please choose one'
I guess that if you simply override the dropdownchoice i18n property value for that component/page with a plain "" it may work. DropDownChoice property key for "Please choose one" is "null", or at least i remember that. -- View this message in context: http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22120391.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: Problem with multiple AjaxLazyLoadPanel and DynamicImageResource
igor.vaynberg wrote: > > create a quickstart and attach it to a jira issue so we can take a look. > > -igor > > > I've created a quickstart with page and panel code.+ https://issues.apache.org/jira/browse/WICKET-2100 https://issues.apache.org/jira/browse/WICKET-2100 Thankyou so much -- View this message in context: http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21981558.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: Problem with multiple AjaxLazyLoadPanel and DynamicImageResource
igor.vaynberg wrote: > > try calling image.setversioned(false) > > -igor > > Thanks for you answer but this does not solve my problem. If i have only one jfreechart image my workaround of reimplementing ALLP solves partially the problem. But when the grid page has two Jfreechart images, the second does not load. When my reimplementation of ALLP calls target.addComponent(getPage()) the second image loads but the ALLP rows that are inside an ALLP does not load properly (sometimes no one loads and sometimes two or three loads). This is a very rude solution, i think, and i accept any ideas. I'm stuck with this :( (maybe i want to do a too fashion web page with wicket ?) -- View this message in context: http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21972743.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
Problem with multiple AjaxLazyLoadPanel and DynamicImageResource
Well, i will try to explain the situation as good as i can. We have a grid with multiple AjaxLazyLoadPanel(ALLP) that load a query each one. One of the ALLP is a ListView with an ALLP into each row (each row is a different query). This enviroment works very well. The problem comes with a ALLP with a Jfreechart image inside. When wicket loads the image, i think it changes the state of the page from "domready" to "load", and this makes that the rest of the ALLP don't load properly. I fix it making a new implementation of ALLP for that image. The new version substitutes the call of response.renderOnDomReadyJavascript(getCallbackScript().toString()); to a new call of response.renderOnLoadJavascript(getCallbackScript().toString());. With the new call the image loads at the end. But i still have a problem. The rows do not load because they will load at end and changing the javascript event from render to load does not fix anything. Any ideas? -- View this message in context: http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21939285.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
Forcing HybridUrlCodingStrategy version change
I've trying to make an ajax undo implementation into a wicket page. Is there any way to force HybridUrlCodingStrategy version change? I want that some (or all) of the ajax enabled components could change the wicket page version so the users could press the web browser back button in order to undo their last change. Thank you -- View this message in context: http://www.nabble.com/Forcing-HybridUrlCodingStrategy-version-change-tp19429257p19429257.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring 2.5 and Wicket, our vision about integration (a few explanations)
igor.vaynberg wrote: > > anywho. why even talk about this? there is absolutely nothing stopping > you from doing this is there? > > -igor > Of course not. I only want to expose another way of doing something. -- View this message in context: http://www.nabble.com/Spring-2.5-and-Wicket%2C-our-vision-about-integration-tp16930960p16977391.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Spring 2.5 and Wicket, our vision about integration (a few explanations)
Well, I appreciate all the comments, but i want to explain things about how we work here. In our vision about how a wicket + spring + hibernate should be, in 99% of cases only services are injected into controller layer. There are no reason to make reusable components that calls a service, because that's the model layer, and it's very unusual that you can reuse the model. There are no reason to make reusable jars that have dependencies with the model layer. Also, the services in our common applications would be, at the most, twenty services. Twenty services in a real very big application. Our common application has about ten services. I respect all your visions about how a right architecture must be, but our vision is different. -- View this message in context: http://www.nabble.com/Spring-2.5-and-Wicket%2C-our-vision-about-integration-tp16930960p16953853.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Spring 2.5 and Wicket, our vision about integration
This posts is about the vision that my colleague Daniel Fernández and me have about how should be the integration between Wicket and Spring, using the new annotation functionalities provided by Spring 2.5. The @SpringBean approach is very useful, but its magic about a transient attribute that is not transient make us fell uncomfortable. Four main steps are needed in this approach: 1) Change applicationClassname web.xml parameter to: applicationFactoryClassName org.apache.wicket.spring.SpringWebApplicationFactory 2) Declare the application class as a Spring bean (Spring 2.5 way) @Component public class MyApplication extends WebApplication 3) Declare into the application class the services with the correct Spring 2.5 annotations @Autowired private AaaService aaaService; 4) Add getters for the services public AaaService getAaaService(){ return this.aaaService; } For convenience, you can add a static get() method to retrieve the casted application class public static MyApplication get() { return (MyApplication) Application.get(); } So you can retrieve the service from any page with a simple MyApplication.get().getAaaService() As the applications class is not serializable, there are no need to make transient magic. What do you think about this approach? -- View this message in context: http://www.nabble.com/Spring-2.5-and-Wicket%2C-our-vision-about-integration-tp16930960p16930960.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [vote] Release 1.4 with only generics and stop support for 1.3
+1 -- View this message in context: http://www.nabble.com/-vote--Release-1.4-with-only-generics-and-stop-support-for-1.3-tp16090054p16095578.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemoryError: Java heap space
igor.vaynberg wrote: > > erm, if all your OfferListModel do is have something in load() then > why do you subclass it instead of the LDM directly? > > -igor > > First you have to think that i can't touch the service. The abstract LoadableDetachableModel retrieves a instance of a TO containing eigth List, each one containing the Offer objects that have a common state. Each implementation of OfferListModel retieves a different List from the object that abstract class loads. I don't mind if it loads eight times the entire object because i have Hibernate second level cache and it only retrieves one time from DB the objects. While we were talking i found the problem. The ListView implementation had two Label objects that contained two PropertyModels. I didn't know that PropertyModel stores the object, i thought that it only only stores the value of the field. This object is very heavy, and the pages was storing two heavy objects for each ListItem instance. Thanks for your help! -- View this message in context: http://www.nabble.com/OutOfMemoryError%3A-Java-heap-space-tf4950580.html#a14177708 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemoryError: Java heap space
igor.vaynberg wrote: > > looks like your page has a reference to some huge object which causes > a problem when the page is serialzed - so maybe that loadable > detachable model of yours is not very detachable... > > > -igor > I don't know what i'm doing wrong. I have a abstract detachable model: private abstract class OfferListModel extends LoadableDetachableModel{ @Override protected Object load() { String stateAsString = stateDropDown.getModelObjectAsString(); Integer year = (Integer) yearDropDown.getModelObject(); String userAsString = userDropDown.getModelObjectAsString(); if (StaticComboLists.OFFER_STATE_ALL.equals(stateAsString)) { stateAsString = null; } if (StaticComboLists.USER_FILTER_ALL.equals(userAsString)) { userAsString = null; }else { userAsString = getSignInSession().getUser().getLogin(); } OffersListParameters parameters = new OffersListParameters(userAsString, year, stateAsString); ClassifiedOffersList offersList = offersService.findOffers(parameters); return offersList; } } And eight implementations of it, like this one: private class BeingPreparedOfferListModel extends OfferListModel{ private static final long serialVersionUID = -1772413039827980131L; @Override protected Object load() { ClassifiedOffersList offersList = (ClassifiedOffersList) super.load(); return offersList.getBeingPrepared(); } } Each instance is used like this: BeingPreparedOfferListModel beingPreparedOfferListModel = new BeingPreparedOfferListModel(); beingPreparedContainer = new DisabledIfEmptyMarkupContainer("beingPreparedContainer", beingPreparedOfferListModel); beingPreparedContainer.add(new beingPreparedOfferListView("beingPreparedListView",beingPreparedOfferListModel)); Where the ListView has a reference to a detachable model, and DisabledIfEmptyMarkupContainer has a reference also to the DetachableModel: public class DisabledIfEmptyMarkupContainer extends WebMarkupContainer{ private static final long serialVersionUID = 8749215642567364820L; private LoadableDetachableModel model; public DisabledIfEmptyMarkupContainer(String id, LoadableDetachableModel model) { super(id); this.model = model; setOutputMarkupPlaceholderTag(true); } @SuppressWarnings("unchecked") @Override protected void onBeforeRender() { super.onBeforeRender(); if (((Collection) model.getObject()).isEmpty()) { add(new VisibilityFalseAttributeModifier()); }else { add(new VisibilityTrueAttributeModifier("block")); } model.detach(); } } Is something wrong that i can't see? -- View this message in context: http://www.nabble.com/OutOfMemoryError%3A-Java-heap-space-tf4950580.html#a14177105 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OutOfMemoryError: Java heap space
Hi, I have a memory problem on my wicket app. It's being developed, so there is no reason for a memory problem. The class that throws this exception has a intensive use of LoadableDetachableModel. 2007-12-05 16:56:12,032 ERROR [[WicketApplication]] (StandardWrapperValve.java:253) - Servlet.service() para servlet WicketApplication lanzó excepción java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Unknown Source) at java.io.ByteArrayOutputStream.write(Unknown Source) at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source) at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at org.apache.wicket.util.io.IObjectStreamFactory$1.writeObjectOverride(IObjectStreamFactory.java:65) at java.io.ObjectOutputStream.writeObject(Unknown Source) at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1085) at org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:198) at org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:708) at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:337) at org.apache.wicket.Session.requestDetached(Session.java:1360) at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1019) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1266) at org.apache.wicket.RequestCycle.request(RequestCycle.java:489) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:343) at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:139) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:183) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) Reasons? -- View this message in context: http://www.nabble.com/OutOfMemoryError%3A-Java-heap-space-tf4950580.html#a14174603 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form componen validation on invisible components
Alex Objelean wrote: > > There is a difference between a hidden component and invisible component. > When component is not visible, it's markup is not rendered, thus the > component is not validated. On the other hand, the hidden (in terms of > css: visibility='hidden') means that markup is rendered and validated. > > Regards, > Alex. > > Thanks. And, in wicket terms, ¿how can i make the textField within a WebMarkupContainer hidden when a button is pressed? ¿Can I change WebMarkupContainer css visibility from Wicket Java code? -- View this message in context: http://www.nabble.com/Form-componen-validation-on-invisible-components-tf4896386.html#a14024582 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Form componen validation on invisible components
Hi, I have a form with three WebMarkupContainers that show/hide some parts of the form. Inside the form there are three buttons used to change WebMarkupConatiners visibility. I need validation when the user press submit button, but visitor for form components does not check validation when the component is hidden. ¿Any solutions? -- View this message in context: http://www.nabble.com/Form-componen-validation-on-invisible-components-tf4896386.html#a14023391 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]