RE: Wicket cannot find id in inner enclosure...but has no problem in outer one!!!
> Hi, can anyone tell me any other alternative of enclosure if the above > problem cant be bugged out?? You can do explicitly what the enclosure does more conveniently, by using a WebMarkupContainer where isvisible() delegates to the child's isVisible(). - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: How to embedded CheckBox in the DropDownChoice Options
> I want to embedded CheckBox in the DropDownChoice Options so that I can > select multi options in the page. Browsers render multiple-select controls differently, adding checkboxes to a DropDownChoice (single-select) makes no sense since the browser will be sending one value anyway. Look into using ListMultipleChoice or CheckBoxMultipleChoice when you need more than onle select value. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket 1.5 markup id for a reused TextField is the same
> In 1.4 version of wicket there was no impact, but in 1.5.5 the id is not > overwritten by wicket. Presumably they changed it so that it would work as a markup equivalent to setMarkupId(), though I haven't checked the changes list to verify that. :) - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Accessing .properties file
> Coiuld u please give me a sample of the code for the pom.xml for accessing > .properties file Not sure what you mean, you don't usually put code in pom.xml. Look into configuring the elements to include the correct file types and folders. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Accessing .properties file
> I am using netbeans for maven project(with added wicket framework) and i want > to access something.properties from a java class. Are the properties files not being put into the output jar/war files? Remember that Maven by default sets up a structure where *.java goes into src/main/java and everything else goes into src/main/resources. So the latter should have the something.properties file. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: log4j.properties
> Additionally you can put log4j.properties in its own jar and put it in > $tomcat/lib. That's the default for Tomcat 6+, but formally the location for shared classpath entries is defined in the property common.loader in $tomcat/conf/catalina.properties. So e.g. to "re-establish" the older structure with common/classes etc. you would edit this entry accordingly. - Tor Iver
RE: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc
> I want to know how to input date into database using form. I am using > Timestamp in mysql. The Wicket-related psrt of that question is that you use a TextField with a model, and you then get the model object value in onSubmit() and use normal SQL to insert or update. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: AjaxIndicatingDropDownChoice
> How do I change the cursor to Wait as long as the spinner is also spinning? Use CSS (cursor: progress;) for the element used as the busy indicator, either on id or on class with or without the :hover pseudoclass. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Could not find child with id: cart:prezzo in the wicket:enclosure
> Last cause: Could not find child with id: cart:prezzo in the wicket:enclosure You are running into an issue with repeaters: Their subelements have the index as part of the path, so the relative element id for the first row element would be "cart:0:prezzo" - and with no rows there is no element for the enclosure to test anyway My suggestion would be to replace the wicket:enclosure with a WebMarkupContainer where you test for the existence of any rows (e.g. cart.getModelObject().size() > 0) in isVisible(). - Tor Iver
RE: mouseover in wicket
> is possible to create mouseover and show tooltip (wicket panel with html) > when I move cursor over html element/text/link. Is there any way how to do it > in wicket? I have used the wicketstuff Mootip extensions to do that earlier, worked fine. Only drawback was that the MootipBehaviour constructors took String instead of IModel so we needed to "localize" at the time of adding them (not a problem in our case though). Note: So far we use Wicket 1.4, not tested this with 1.5. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Homepage runs 2 times if I mount it as /
> /;jsessionid=6730E8A6F6FED95C9AC24E7A37F3A35A?0 This is added by the web container in case the browser does not support cookies. It is added on the first response regardless, and also on subsequent ones if the browser does not accept cookies, or you turn it off (e.g. using cookies="false" in the context.xml for Tomcat) - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Serialize exceptions
> Hi I get a serialize exception in a panel of mine its correct that one of the > contained fields cannot be serialized, however this field are injected and > should not be touched by the checker, the field are marked with the @inject > annotation. I'm using guice for injection.. Any thing obvious wrong with this? Java serialization does not care for that annotation, only whether it is declared transient or sports the Serializable marker interface. Frankly it baffles me that they didn't just default to letting everything be serializable and let the programmer deal with stuff that's not supposed to be, since it otherwise just causes endless exceptions and adding an otherwise pointless interface inheritance... - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Control panels through Ajax
> I´m really new to web programming, so how should that solve my Problem? If I > got it right the mediator does only know the colleagues which would be Panels > in my case. But the methods of these colleague Panels are hidden because of > inheritance (myPanel is child of Panel). Could you describe this solution a > bit deeper? In general terms: class A extends Panel { private ABMediator mediator; //... add(new AjaxLink("theLink") { public void onClick(AjaxRequestTarget target) { mediator.callIntoB(target); }); } } class B extends Panel { // ... public methodForTheMediator(AjaxRequestTarget target) { // Do something target.addComponent(someBComponent); } } class ABMediator { private A a; private B b; // ... public void callIntoB(AjaxRequestTarget target) { b. methodForTheMediator(target); } } You could also leave out passing around the target and instead get it using AjaxRequestTarget.get(). As you see, the method invoked on B is public in this case. - Tor Iver
RE: Control panels through Ajax
> My problem is how to redirect the ajax target from one Panel to the other. If Panel A needs to invoke anything in Panel B then Panel A should have a reference to Panel B (or to a mediator object that knows about it), and send the AjaxRequestTarget (which applies to the entire Page's component structure) so that (the mediator or) Panel B can add the required component to it. http://en.wikipedia.org/wiki/Mediator_pattern - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Tree onClick() question...
> My question is why is target always null in the onClick handler? Typically that happens for AjaxFallback* components when the click is not an Ajax request, e.g. the user has disabled Javascript. In those cases target is null and the whole page will be rendered in the (normal) response. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: WICKET JAVASCRIPT
> Now , i am changing browser language from IE. I am able to get > message from properties file for label and another things. But i am still > unable to show above alert message in different languages. Can you solve > this problem. Please reply soon. Typically, you would do this by generating the Javascript in a model that can pick up resource strings e.g. String.format("alert('%s')",getString("session-timeout-message")) or using other string substitution mechanisms. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Customizing AjaxIndicatorAppender and indicator
> See org.apache.wicket.ajax.IAjaxIndicatorAware. With this you can provide > your own indicator which will be shown/hidden before/after the Ajax request I think the poster wants to use "visibility: hidden" instead of "display: none" for when it is not shown (the "taking up space" requirement). - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: How to skip a page on back button
> Is there any way to skip a page using back button. i.e. > Forward sequence: HomePage->Page1->Page2 If the link from Page1 to Page2 is a Javascript link that does a location.replace('url for Page2') the browser should not remember Page1 in the history, if memory serves. Removing from the PageMap is probably something you need to handle as a consequence of the link though. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Component specific JavaScript
> Thanks a lot. One last stupid question: is this supposed to work for Wicket > 1.4? Doubful, the event system was added in 1.5 - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: refresh and AjaxFallbackDefaultDataTable
> Thus the browser still shows the old version in the URL. But all future Ajax > requests are targetting a different page version than visible in the browser > URL :(. Can't you fix that with a getPage().dirty(); in the Ajax request handler? - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Serving different content depending on User Agent
> Could someone explain the meaning of the string argument to > Session.setStyle()? It's used in parsing resource names, and often in code as well, e.g. hiding detail views for mobile browsing. If you have a Locale of "no_NO" and a style of "mobile" Wicket will look for e.g. MyPage_mobile_no_NO.html etc. https://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Get the Wicket Session from HttpServletSession
> What about the part that would solve my problem -- > wicket:wicket.wicketapp:session , do I just use that or there is some higher > order function available :) WebApplication. getSessionAttributePrefix(WebRequest, String) seems to set it, but afterwards it's harder to get at: But once set you can get it using null values for the parameters. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Get the Wicket Session from HttpServletSession
> I dont understand why "WebSession" is not a derivative of the native session > and while from Wicket, one can access the raw session or request, the other > way round doesn't seem part of officially charted waters. Because a Wicket session can be stored elsewhere if you want. Storing it in the Http session is just the default. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Serving different content depending on User Agent
> I would like to know what is the best way to serve slightly different content > depending on the User Agent string coming from the browser. You can pick it up in Application.newRequestCycle() or WebApplication.newWebRequest(), and use it to pick a value for Session.setStyle() and then use that style in your template- and resource names. For more advanced selection of content, use the selected value in a custom URL mapper. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Problem DatePicker, ModalWindow and IE8
> When i put my mouse over one of those buttons (close or change month), i > don't have the "pointer" cursor and when i click it does nothing. Welcome to the wonderful world of IE compatibility mode. You probably need to add a DOCTYPE declaration to the top of your HTML: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; xmlns:wicket="http://wicket.apache.org";> ... - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket in a Dot Net World
> I don't suppose anyone has ported Wicket to .NET? What, and lose all the "non-designable" ASP.Net or Razor goodness? :) - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: MulitFileUploadField looses state after validation error
No, the only workaround is probably to do the FileUpload logic during validation, and "flag" the upload field as completed somehow (or just show that files have been uploaded) - Tor Iver -Original Message- From: Daniel Meier [mailto:meier_dan...@sunrise.ch] Sent: 6. februar 2012 14:34 To: users@wicket.apache.org Subject: MulitFileUploadField looses state after validation error Hi everyone Little advice needed: I have a Form with several TextField's and a MultiFileUploadField. If you select some files to upload and enter some text in the TextFields - after the submit everything is fine. Now if in case some TextField fire a validation error and the page is rendered again, you have to select the files to upload one more time. Is there any possibility to keep the state as long as validation errors occur? Btw same problem wit FileUploadField. Using wicket 1.5.3. thx - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Populate DropDownChoice, set Object Model and still keep "Please Select" option
> I tried using DropDownChoice.setNullValid(true); but that only works for the > dropdown choices in which no model has been set. Then you probably also need setRequired(false); Otherwise it will not show the null choice for non-null models. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Handling POST, PUT and DELETE from a resource
> Look into restlet.org Reference implementation for JAX-RS (ignore that it sorts under the "Glassfish" section, it runs fine in other containers too): http://jersey.java.net/ An older REST implementation that started before the JAX-RS spec but has been modified to conform (AFAIK): http://www.jboss.org/resteasy - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: It is not a good idea to reference the Session instance in models directly as it may lead to serialization problems.
// Indirection for PropertyModel object public class MySessionModel extends AbstractReadOnlyModel { public MySession getObject() { return (MySession) Session.get(); } } - Tor Iver -Original Message- From: Rahman USTA [mailto:rahman.usta...@gmail.com] Sent: 4. januar 2012 10:45 To: users@wicket.apache.org Subject: It is not a good idea to reference the Session instance in models directly as it may lead to serialization problems. Hi, i have a MySession. form.add(new TextField("name",new PropertyModel(((MySession)getSession())," user.name"))); I have a User user; in MySession, then initialized in constructor. my Goal is to save name and surname user's own session. i did it above, but warning ide me so that ; *WARN - AbstractPropertyModel - It is not a good idea to reference the Session instance in models directly as it may lead to serialization problems. If you need to access a property of the session via the model use the page instance as the model object and 'session.attribute' as the path.* How can i handle this normally. -- Rahman USTA Computer & Control Education Technologist 0-(531)-922-28-05 www.kodcu.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Freemarker+ExtJS vs Wicket questions
> Plus another problem I see is if I have to use separate > templates for each
RE: message internationalization
> The label components are not refreshed after changing locale. Do you know > why. My guess is that the labels are not using a Locale-aware model like ResourceModel, but instead have been set using construction-time getString() or the like. > Another problem is that when I change the locale I refresh the whole page. > (target.addComponent(instance);) where instance is my Page class. Remember that you need to use the AjaxFormComponent* classes in order to get form input values submitted to you. Also: try instead to repaint a subset of the page, e.g. wrap most stuff in a WebMarkupContainer. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: message internationalization
> When I enter first time on page I change my local to de-De. A better place to do that is in Application.newSession(). Or you can tell your browser to prefer de_DE and let Wicket pick up using Accept-Language: header (IIRC it does that for you). - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Regarding Reset
> 1.how do i use reset in java code.I have just declare a reset button in my > html which is working as expected but wana know is there any other > alternative of doin it. A HTML input of type="reset" will by default do nothing server-side but just reset input fields of a form to the initial values. As an alternative you could have a Wicket Button which resets the form inputs (remember to turn off default form processing). Unless you have updated stuff with Ajax, just re-rendering the Form will be equivalent to the browser-side reset. > 2.I am unable to use generics in my app,it shows error as this is supported > in 1.5 version.What do i need to do for this...? Do you mean Java 1.5 or Wicket 1.5? If you use Maven, ensure that the build section of the POM tells the compiler plugin to use 1.5 compatibility. If you use Eclipse, check the Java compiler compliance settings in the project properties. > 3.In case i am using a markup which has a text field inside a form,Then > the order of adding should it be like > wmc.add(textField); > form.add(wmc); The order does not matter, adding does not have any side-effects and the hierarchy matters when you get around to the lifecycle methods (processing, rendering etc.) later. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Handling ReplaceHandlerException on continueToOriginalDestination in wicket 1.5
> continueToOriginalDestination() does alway sthrow the replacehandler > exception. this is how that method works... In 1.5 perhaps, in 1.4 it returns false if it was not a redirect; that might be the cause of confusion. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Update Component on TextField Entry
> use the TextField component and add OnChangeAjaxBehavior to it, then > from inside onEvent() you can repaint the list. And remember to put a WebMarkupContainer around the repeater since repeaters cannot be addressed by Ajax (due to reused markup and resulting synthesized ids). - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Apache Wicket is a Flawed Framework
Ah, it's been a while since a JSF/JSP zealot bothered to annoy Wicket users. Now go away and cook up a tag library or five. - Tor Iver
RE: EOFException(java.net.SocketException: Connection reset by peer: socket write error)
> "*this.getRequestCycle().getOriginalResponse().setContentType("jpg");*" Looks wrong, typically the content type is a MIME content type, which has two components, e.g. "image/jpeg" - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Upgrading of Wicket application on server without losing state
> Is there a convenient way to shut down a wicket application so that it saves > its complete state to e.g. the filesystem and the next wicket app that boots > up initially reads the state from those files? anyone else handling server > upgrades differently and in a better way? Well, if you put the Wicket session in the Http session (which is the default if I'm not mistaken) then e.g. Tomcat will serialize the sessions to disk on a controlled shutdown, and reread them on startup. Keep in mind serialVersionUID etc. Then the sessions becaome the responsibility of the container. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: UTF-8 encoding RFE for warning?
> It's a known fact for me aswell now :) Note that even though properties files need to be in the "default" encoding, you can use non-iso-latin characters by way of the \u syntax, though a bit more cumbersome than "raw" Unicode characters. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: LDMs load too early - hold outdated application data.
> It seems to me that Wicket should detach its models again after events have > triggered, in addition to after rendering has completed. That > would reset > the state of all models to what the developer expects it to be before > rendering begins. That's nearly "always" - then you are just as well served with an AbstractReadOnlyModel that loads data on every call to getObject()... :) - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: CheckGroup losing state on invalid submission
> Environment: Wicket 1.5.1 I have the same happen in 1.4.19. It's as if the Check's input state is reset (to the CheckGroup model state? I.e. it perhaps checks the model and cannot find the Check's equivalent value there?). - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: PageMap locking...
> Once the user has clicked a link to another page (Or switched a tab if it is > a tabed page), is there a way to terminate the request to prevent a load on > the server for a page that will not be displayed? Normally: no, because these are separate requests. The first request will cancel only when it tries to write to the (now closed, unless keepalive is used) stream to the browser. > In a tabed page, is there a way to go to another tab without waiting for the > first tab to rendered? (As the tab link is waiting to the page map to be > relased...) You can alleviate the problem by delegating the long rendering operation to the AjaxLazyLoadPanel mechanism. Then the page itself is rendered quickly but with an indicator for the Ajax-loaded real panel rendering. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Drilling Application.getHomePage()
> Q / Problem) Since Application.getHomePage() returns Class > and in my case Multiple pages are mounted to point to the same WebPage. How > to I specify the Home Page. getHomePage() returns what Page to use for a request when the URL does not refer to a mounted Page or other RequestTarget. A default, if you will. Your mount points with different URLs for the class should handle the others. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: wicket + jasper reports
>URL resource = >getClass().getClassLoader().getResource("DOCOferta.jrxml"); An aside: This is the equivalent to getClass().getResource("/DOCOferta.jrxml"); i.e. a resource on the classpath root. Check your projects to see if the file is in the correct location to be included at runtime. If it works in tests but not otherwise, it can seem that the file is located in a project's src/test/resources (if you use Maven) instead of src/main/resources. - Tor Iver
RE: Community tools
> So what is the best way (official? permanent?) to link to a previous > response? Link to a posting on Nabble or one of the other mailinglist-aggregators out there perhaps? :) - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: serialization question
> Is there a hook point to serialization of components? We would like to > throw a WicketRuntimeException if we detect that we are about to attempt to > serialize out an attached (in our case Hibernate) entity rather than using a > LoadableDetachableModel and only serializing the id. I usually solve that problem by having a "LDM-like" model that has a transient (thus not serialized) reference to the actual object, and a load()-method using the id to get the actual object if null. But: Since you are in control over what types of models are used in the code, how do you end up with models that reference Hibernate objects in a way that will try and serialize them? - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: rendering component
> setVisible(false) , actually renders component but disables it via style sheet Isn't that the case only when you use setOutputPlaceholderTag(true)? For other cases, nothing is output AFAIK. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: CheckGroup Model
> How can I do this in a elegant way? Are you sure your Campo class implements equals() properly? Also remember it is better to pass the IModel> (that you will be using later to pick up the values) to the CheckGroup, e.g. in your case a PropertyModel based on where you read out the values now. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: session closed when adding CSSPackageResource
> When I do this : > new Model(q) > it creates an IModel for Questionnaire, doesn't it? I think he means to make a more dynamic model, e.g. public class QuestionnaireModel extends LoadableDetachabeModel { private String theKey; public QuestionnaireModel(String key) { theKey = key; } public Questionnaire load() { /* Get Hibernate session and load based on key */ } } This serializes the minimum amount of state to "recreate" the complex object. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: getInput and getDefaultModelObject and validation
> Is there a way to force a modelobject update on each individual field > and then do my form validation. It seems you want to use getConvertedInput(). Going via the model to get the converted value is just a detour when you are in a validator. If you push data to the model and then decide it is invalid, then your model will have invalid data, and if that is acceptable, what role does the validator fill then? You might as well do your checks in onSubmit() at that point... > if (textField1.getInput() == "creditCard") { You should be aware that this code will most likely fail. Look into equals(). - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: getInput and getDefaultModelObject and validation
> If I am using some form validator, I notice that getDefaultModelObject > does not have the value from the getInput. I am assume this > intentional. Is there a way to force wicket to update the modelObject? Yes, form component models are not updated until they pass validation, that is very intentional. :) (E.g. if you have a Date text field and someone types "beer", what would you expect to be written to the model?) > How and when does the modelobject get updated. When all validation succeeds and it progresses into a submit. > But if I weren't using ajax, is there a way to force wicket to update > the modelObject. That will happen automatically after validation passes. Validation should ideally only check inputs and give any errors. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: What does this syntax say?
> public IWrapModel wrapOnInheritance(Component component,Class > type) The Class parameter is only needed if you intend to do "new W();" or the like in the method (the Class is then something the compiler can grab hold of for calling the constructor). For just passing the type parameter to other generic classes it is not needed. The compiler sees the context (i.e. the left-hand side of an assignment) and if it cannot determine the type it will say "needs a cast" as a warning, but the code will compile since it's all Object anyway. - Tor Iver
RE: Ten things every Wicket programmer must know?
Also: * How to avoid excessive use of Labels and AttributeModifiers (with ResourceModels) just for l10n, by using wicket:message in the template instead * "compressing" code by use of ids matching property names combined with CompoundPropertyModel and/or PropertyListView - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Dialog Box is not replaced
> @Martin: after calling D1.replaceWith(D2), D1=D2 is done as well. Are you sure you call D2.setOutputMarkupId(true)? Otherwise the Wicket Ajax handler will not find the correct DOM element to replace. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Problem in ListView populateItem()
> I have one comma. I followed the same example in the book, which is > add(Label,IModel). But something's wrong. Strange example if so: Try instead add(new Label(id, model)); The Model is for the Label. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: dynamic DataTable
> Since TextArea can contain any SELECT statement, Column names, count can > change > every time. So I need a dynamic table that is compatible to view any SELECT > Statement result. Since you appear to have no need for performing updates or inserts, try ditching the DataTable in favour of using nested repeaters over the ResultSetMetaData column info and ResultSet rows instead. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: How can i redirect to a wicket page after executing an url-request?
> throw new > RestartResponseAtInterceptPageException(DashboardPage.class); Will you ever be returning from that (via continueToOriginalDestination())? If not, setResponsePage(DashboardPage.class) is better. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: How can i redirect to a wicket page after executing an url-request?
> HttpClient looks great. Do you know if i can execute the HttpMethod > without waiting for request to comeback? > Maybe an asynchronous way? There seems to be an async fork you can try: http://jfarcand.wordpress.com/2010/03/04/new-open-source-project-alert-a-new-asynchronous-http-client-library/ - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: How can i redirect to a wicket page after executing an url-request?
> *But* the link leads me to the solr response page. I know it's intended > by clicking a link to get directed to the called page, but i would like > to call the url and immediatly after that call i would like to redirect > to wicket page. Sounds like what you really want to do is use Apache commons-httpclient or the like to make a server-side call Solr (to trigger what you want), then show a Wicket page as normal. You do not always need to use a browser to perform a HTTP request you know... :) - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: ModalWindow
> I already used AjaxButton but it still show that popup. Do we have other > options? Do you have an onbeforeunload event handler that returns a value? That will trigger such a message as well. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Application with name 'xxxx' already exists.
> Hmm... there is just one, no more. :( You have run into a known Glassfish bug where WicketFilter.init() is called twice. A solution is to add a boolean "guard" in a WicketFilter subclass that only calls super.init() once. - Tor Iver
RE: WicketFilter.init() called twice with Glassfish
The first workaround we ended up using was something like: public class SafeWicketFilter extends WicketFilter { private boolean initWasAlreadyCalledSoYouShouldNotDoThisYouStupidGlassfish = false; @Override public void init(FilterConfig filterConfig) throws ServletException { synchronized(this) { if ( ! initWasAlreadyCalledSoYouShouldNotDoThisYouStupidGlassfish) { super.init(filterConfig); initWasAlreadyCalledSoYouShouldNotDoThisYouStupidGlassfish = true; } } } } The second workaround was to stop using Glassfish. :) - Tor Iver
RE: Getting A Random Localized Resource (CSS Image) Instead Of Page
From: Horacio Natyural [mailto:horacio.natyu...@gmail.com] > What are the implications of this error message? Wicket will ignore any overriding (on the Page level) of the property, only the component's own (and the Application's?) properties files will be used. E.g. if FooComponent.properties has fie=Some default and FooPage.properties has myfoocomponent.fie=Another value then calling getString("fie") in the constructor will return "Some default" because there is no FooPage in the hierarchy yet. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Forms across multiple panels
> How can one perform form field validation if the form fields are inside the > panels contained in the forms? Extend FormComponentPanel instead of Panel. That deals with the nesting. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: JavaScript enabled or disabled
You could add a Javascript/Ajax callback to a Page that sets e.g. a Session flag that says that Javascript is enabled. See http://stackoverflow.com/questions/162911/how-do-i-call-java-code-from-javascript-code-in-wicket for an example. Or you could try to implement what you need Javascript for using the AjaxFallback* components. mvh - Tor Iver Wilhelmsen, Arrive AS -Original Message- From: meduolis [mailto:meduol...@gmail.com] Sent: 21. mai 2011 12:51 To: users@wicket.apache.org Subject: JavaScript enabled or disabled Hi, is there any way to check if JS is enabled from wicket code? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/JavaScript-enabled-or-disabled-tp3540451p3540451.html Sent from the Users forum 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: How to bind object in Hashset to CompoundPropertyModel expression
> I haven't tried it and guaranteeing the ordering would need to be accounted > for. But its a potential direction. Another approach would be to change the Hibernate mapping from a to a since that will map to a List on the Java side. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: updating a label's model with ajax
My guess: You have forgotten to call myLabel.setOutputMarkupId(true) or myLabel.setOutputPlaceholderTag(true) so the Ajax framework cannot find the element in the DOM. mvh - Tor Iver Wilhelmsen, Arrive AS -Original Message- From: wmike1...@gmail.com [mailto:wmike1...@gmail.com] Sent: 16. mai 2011 03:58 To: users@wicket.apache.org Subject: updating a label's model with ajax Hi all, I'm looking to change the model of a label when a button is clicked. As of now, I'm using an ajax button and doing target.addComponent(myLabel) inside that button's onclick method. However, the text on the page doesn't change when the button is clicked. This label happens to be hidable, and when i hide it, then reshow it, the label is redisplayed with the new model. I'm doing something wrong. What is going on here? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/updating-a-label-s-model-with-ajax-tp3525221p3525221.html Sent from the Users forum 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: building dynamic charts in wicket
Sounds like a combo of a dynamic image resource component (using e.g. JFreeChart or the like) and an AjaxSelfUpdatingTimerBehavior is needed. mvh - Tor Iver Wilhelmsen, Arrive AS -Original Message- From: lambdad...@gmail.com [mailto:lambdad...@googlemail.com] Sent: 9. mai 2011 14:32 To: users@wicket.apache.org Subject: building dynamic charts in wicket Hi, I would like add an extra page to my Web application which shows a graph similar to jconsole or google charts (displaying time series analysis). It is required to be dynamic in nature which means the graph should update itself (using wicket ajax) as soon as the new new readings/metrics are available. Are there any efforts have been made so far relevant to this direction? cheers Daku - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: moving from development to deployment mode
Clean the web container work area or the unpacked application folder? This sounds like a case of the web container keeping old code around. mvh - Tor Iver Wilhelmsen, Arrive AS -Original Message- From: henry [mailto:henstri...@yahoo.com] Sent: 4. mai 2011 13:58 To: users@wicket.apache.org Subject: Re: moving from development to deployment mode Hi Moez, Am still getting the same message that my wicket is running in development mode. I added the code snippet below in my Application class @Override public String getConfigurationType() { return Application.DEPLOYMENT; } But still getting message *** WARNING: Wicket is running in DEVELOPMENT mode. *** > *** ^^^*** > *** Do NOT deploy to your live server(s) without changing this. *** > *** See Application#getConfigurationType() for more information. *** > what else can i do? Regards.. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/moving-from-development-to-deployment-mode-tp3495199p3495248.html Sent from the Users forum 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Serve Json in request and response
> I can use dopost and doget but how to handle Json request? JSON is just data representation, there are some Java libraries out there to deal with JSON formatted data (e.g. Jettison at http://jettison.codehaus.org/ or JSON.simple at http://code.google.com/p/json-simple/ ). But if you want to use the Jersey libraries directly they of course deal with Java-JSON mapping out of the box. If you somehow need to share info between Wicket and the REST services you should be able to put that into the HTTP session which would be shared between them. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: wicket tags
1) Why do you use immediate-child selectors (involving > ) instead of just child selectors (without the >)? The selector ".custom-component-class header" will work. 2) wicket namespace tags are removed in deployment mode (or if you tell markup settings to strip them), so wicket:child will disappear the same way wicket:panel does. 3) Look into approaches that involve less subclassing, the real problem is that design-time you will not see the entire HTML template as long as fractions are spread around due to child class markup. Even using wicket:fragment elements within the replaced element will make it easier to see the design. mvh - Tor Iver Wilhelmsen, Arrive AS -Original Message- From: kamiseq [mailto:kami...@gmail.com] Sent: 28. april 2011 11:14 To: users@wicket.apache.org Subject: wicket tags hi, this is more about how you guys working with wicket rather then a bug or something. and as Im relativelly new to wicket maybe you can help me out. I created panels that can be extended ie. my header usually I style the component in "offline" mode (without running the server) so I need to add some additional markup to mock it, plus I set wicket to strip wicket tags and override onComponentTag to set name of the tag (let say section) so it look like. my header so now the problem is that 1. I cannot use css selector like section.custom-component-class > header or I need to comment the wicket:panel tag on time I style component 2. wicket:child is not recognized as valid html tag so I cannot add style to it ie. display:none 3. surrounding wicket:child element with some html tag makes no sens why wicket tags couldnt be attributes so any valid html could have attribute like wicket:behavior="panel" or type="child" or something like that I know that this is not a big issue. probably designer should create html + css styles first and then developer turn it into the working code but with time things like that are annoying, so how do you work with such problems? pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __
RE: Custom head title on subpage
> I mean, how can i do in concrete class to provide a different title > depending on language. Your title model class could check Session.get().getLocale() to decide what text to return from getObject(). - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Form composed of Panel components
Look into org.apache.wicket.markup.html.form.FormComponentPanel - Tor Iver -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: 11. april 2011 15:08 To: users@wicket.apache.org Subject: Form composed of Panel components I have a complex form that I choose to break down into logical sub Panel components and then add them as children to the Form. The sub Panels themselves then have FormComponents like text fields and DropDownChoice components added to them. Will the normal validate/update mechanism simply work like that or do I need to override some methods in my Panel classes or make the Panel classes implement certain interfaces (eg., IFormVisitorParticipant etc.,)? Chris Colman - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: AttibuteModifier question
> 1. get the existing class value, Only when parsing the markup in onComponentTag(). - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Can i catch all urls ending with .php?
> i have to build a redirect page for urls ending with .php. > If i mount the page with "*.php" Path i get a 404. Sounds like something that is better handled with a traditional ServletFilter than anything Wicket. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: WicketRuntimeException
> Can somebody help me with this exception? What can be wrong am > desperate. What to look for? Typically, the real error is further down in the text that what you included. Common causes are: * Having a wicket:id the the HTML with no corresponding component * Adding a component without adding the wicket:id (inverse of the above) * Having both a component and a wicket:id but the nesting is wrong - Tor Iver
RE: Apache Wicket Cookbook Published!
> I have this book on order; I look forward to studying it. "Order", is that what you have when you do not just buy the PDF edition and open it in iBooks on your iPad - like I did? :) (Just for completeness I also clicked the "I want this for Kindle" link at Amazon to give a suggestion to aid those that prefer that channel for their e-books.) - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: issue with
> And idea how to avoid that behaviour? resetButton.setDefaultFormProcessing(false); - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: make link invisible via onclick
> is there a possibility to make a link invisible itself via onClick? > link.setVisible( false ); Sure: Just use "this" instead of "link", since "this" in the onClick() will be the anonymous object based on Link. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: WicketStuff artifacts naming strategy
> - jasperreports-1.4.16.jar > - jasperreports-3.7.2.jar > The first one is from WicketStuff, but still, it is confusing to see this. This one of my biggest peeves with Maven: It has this concept of a "groupId" to namespace artifacts in the repository, but this is of no consequence when the jar files appear in the classpath, since the groupId namespace is not part of the actual file name. A workaround could be to prefix the jar file name with the groupId namespace somehow. - Tor Iver
RE: open link in new window => target is null
> I have a similar issue.. can anyone please tell why the target parameter for > onClick of AjaxfallbackLink comes as null? It will be null for non-Ajax (i.e. the "fallback") requests when the user has Javascript disabled. In those cases the entire page will be redrawn anyway so there is no need to explicitly repaint subsets. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Drop Down Choice
> typing "T" would select "Two", but typing "Th" would select "Three". Is > this possible in Wicket? This is the way well-behaved modern browsers already work :) - Tor I. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Portlet Development with wicket
> Does wicket support development of portlets ? I cant find much information > by googling. Wicket 1.4 does (and it works fine at least in our context of using Liferay as container), apparently in 1.5 they are moving that functionality out from the main library. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Call urlFor(Class, PageParams) outside of request cycle
> We have a Quartz thread which periodically sends emails with a link to > a Wicket page. Calling RequestCycle.get().urlFor(Class, > PageParameters) doesn't work because the thread is not a part of > Wicket request cycle. Is there a way to ask Wicket to generate the URL > in this case? What you really want is to use a bookmarkable page mounted in the application, and create a URL string with the necessary parameters in the Quartz job. Or create a simple Wicket servlet that generates it for you, which you then call from the job using e.g. a standard URLConnection. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: [1.5.0-rc2] possible bug with danish characters
> I just noticed that after upgrading to rc2, my some of my texts like > "håndteret kald" when getting saved/posted becomes this: "hÃ¥ndteret kald".. Charset issue, they get posted as UTF-8; you probably either need to test for charset or assume UTF-8 across the board. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: [1.5 MIGRATION] State handling / inter-page events / versioning
> setResponsePage(new SomePage() { > @Override protected void onPreviousButtonClicked() { >setResponsePage(OriginalPage.this); > } >}); final PageReference pageRef = this.getPageReference(); setResponsePage(new SomePage() { @Override protected void onPreviousButtonClicked() { setResponsePage(pageRef.getPage()); } }); But you still have a reference in the synthesized class. So the best is to create a proper class that is nested but not a member class: private static class BackSomePage { private PageReference pageRef; public BackSomePage(PageReference pageRef) { this. pageRef = pageRef; } @Override protected void onPreviousButtonClicked() { setResponsePage(pageRef.getPage()); } } - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket Philosophy/Best Practice
> I tell people that I think you should let your Model and Model backing > object control the look and feel/display/content of your components. > Even visibility should be delegated to the model or model object and not > set by the component. Am I wrong here? Yes. :) The model should NOT care about the view, or even know one is there; a "controller" is supposed to manipulate the model, any view (if any) should just get the value from there and do any necessary formatting (e.g. using a converter to/from textual representation). For instance, why should a Model need to know the locale of a web user to produce a correct representation? Separation of concerns and all that. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: isValid and getFeedbackMessage
> Can i change TextField's (FormComponent) valid status and set a custom error > message from outside ? Like : Normally you write a validator that calls component.error() to set the error message, and add that validator to the FormComponent. As long as it has that error it will count as invalid. - Tor Iver
RE: DatePickerBehavior lost when toggling visibility
> A drop down box fires an AJAX request and the text field with the date > picker has an overridden isVisible() method. You have used setOutputMarkupPlaceholderTag(true) on the component that visibility is toggled for yes? - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Should Logger classes be transient?
> Just to know Why a static variable is not serializable? Because objects (instances) are serialized and static data belongs to the class and not instances. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SV: inter application communication in wicket
> Can anybody please throw some light on how two wicket applications, deployed > into the same container can interact with each other? The easiest is to just pass the parameters as normal path- or query parameters (strings) in the link. For more complex cases you can either try passing a JSON representation of an object, or use "cross-context" features in the container (e.g. in Tomcat you put a property in the context.xml file for the app to enable it) by getting the other application's ServletContext by path. If they are just going to share information in a manner not limited to the request, try putting it into JNDI from application A then picking it up in application B. Both the JNDI and cross-context approaches require the classes involved to be on a shared classpath, e.g. the container classpath. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SV: Apache Wicket : Please Help.
> 12/2/10 15:54:28:415 ICT] 0023 WebAppE [Servlet Error]-[Error > while finishing the connection]: java.lang.OutOfMemoryError Increase heap using the -Xmx parameter, or if that does not help look for common causes for runaway page stores like having Page pointers in other Pages instead of PageReferences. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SV: 1.5 integer textfield
> hmm that fixes it, it's because of generic limitations that we need to set > the class explicitly, correct? Yes, type information is only available at compile time, the compiler synthesizes generics use into explicit casting used at runtime. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SV: SV: Multiple wicket applications in a single WAR
> I don't think it is a good idea to have multiple applications in one > war. Wicket stores static state in ThreadLocals (Application, Session, > etc.). The ThreadLocal objects are static, yes, but the actual objects stored there are per thread and thus not static. > All apps in the same war share the same ClassLoader and thus the > same static ThreadLocal instances. There might be circumstances when the > state somehow gets messed up. If one thread can get at objects belonging to a different thread that would not be a "circumstance" but "a serious bug". > I'm sure this is the source of your > problems. So, either go for one app for all users or create two separate > war files. The Application instance is shared between all users, but in this case there is no user state in it, the difference is which Session class is used for factorizing the user Session, and which Pages are mounted (again, for factory purposes). - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SV: Multiple wicket applications in a single WAR
> BUMP... > > > Anyone? we run wicket 1.4.9 Any reason you use WicketServlet instead of WicketFilter? We use multiple apps in a war and that works fine in the filter case. In fact it seems that WicketServlet delegates to an internal WicketFilter anyway... - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to enable/disable an hierarchy?
> I could override onConfigure in every component, and read the field that > controls the enabling/disabling, but that would create a lot of boilerplate > code for the 80-90% of FormComponents/links that should be disabled. It > would be a lot cleaner to disable the parent, and only handle the ones I > want enabled. Sounds like you want to use a Component.IVisitor on the parent, which deals with enanbling/disabling subcomponents based on some state. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SV: PageableListView to work with Set
> I guess it expects only a List type object. I can work around this by > converting the Set into a List and then provide it but felt somehow this is > a limitation. How can I work with generic collections? > Any thoughts much appreciated No, because ordering requires the indexing a List has. In theory, you could make an IteratorView which uses the Iterator from a generic collection, but you would abandon things like paging, sorting etc. which rely on indexability. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SV: Painting a ListView in Ajax via a transparent container fails
> So this special component is designed to be aware of children components > only at the rendering time ( working with the markupStream ) and not at the > pre-rendering. As the ListView depends on pre-rendering logic, add an > transparent resolved component in ajax request target has no effect because > no children pre-rendering method will be invoked. Ah, that explains it! In this particular case the number of "real" top-level components is low enough that adding them explicitly is no big deal, so I now have an approach that seems to work. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SV: Painting a ListView in Ajax via a transparent container fails
> wicket:enclosure is not present if not visible (from browser > perspective). So it cannot be repainted. I think we are talking past each other: It was just an example of something that is a transparent container to a Wicket developer, though it is implemented using IComponentResolver instead of just a transparent markup container (as in my case in the quickstart where everything within the transparent container gets repainted except the ListView). Anyway, my problem was solved by eliminating the transparent container and just paint the panel and feedback-panel. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org