Re: Problems with Autocomplete in 6.11.0
followed your patch, Jan, but the indicator was not hiding when deleting the input value (backspace key). so forced to hide the indicator on auto complete hiding [1]. for the moment it works, until the issue is solved in the original component. [1] wicket-autocomplete.js function hideAutoComplete(){ ... hideIndicator(); } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problems-with-Autocomplete-in-6-11-0-tp4661600p4661675.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
AutoCompleteTextField break in new wicket 6.10.0?
hi, after moving from wicket 6.9.1 to 6.10.0 caused all AutoCompleteTextFields to break up in the application (no results shown). also a quick test created from scratch with this component does not work. does anybody experience the same? thx -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-break-in-new-wicket-6-10-0-tp4661085.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
Re: AutoCompleteTextField break in new wicket 6.10.0?
sorry, i try to be more specific. after moving to wicket 6.10.0, it fails in two different cases: case 1: when adding this behavior: autoComplete.add(new AjaxFormComponentUpdatingBehavior(onKeyUp) { @Override protected void onUpdate(final AjaxRequestTarget target) { ... } } without it, it works fine. this code works fine up to wicket 6.9.1. case 2: no behaviors at all, still to be determined the problematic point; just multiple auto-completes on the view and wicket-ajax-debug complaining many times with output ERROR: Cannot find element with id: null (not clear yet it this has to be with the problem in the auto-complete, but these errors where not happening before in wicket 6.9.1). thx -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-break-in-new-wicket-6-10-0-tp4661085p4661088.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
Re: Wicket for Hybrid App
Create a native app for your phone that installs Tomcat, Jetty along with your Wicket webapp and whatever else you might nedd. Have your webapp on all those clients sync up with your central db whenever they come online :) how do you do explain that? running a fully compliant jvm in a smartphone, for instance? doesn't seem to have sense, at least nowadays for the moment.
Re: Free Wicket guide now available!
miracle! thanks for your egoism, Andrea; made us happy :)
Re: The best way for designers and Wicket developers to collaborate
i apply the same practice as igor. it works great for both sides, dev and des. once des already has the html model, dev creates the first integration to the object-tree, providing feedback to des, so dom-tree follows the same coherence (in case needed to correct some parts), and following are just test-error-correct cycles done by des at local environments running the app. . On Tue, Feb 19, 2013 at 11:18 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: they do not need to restart their local server to see changes. wicket automatically reloads html/css/js/etc. only changes to java files that cannot be hot-swapped require a server restart. but your designers wont be changing java files will they? -igor On Tue, Feb 19, 2013 at 12:44 PM, eugenebalt eugeneb...@yahoo.com wrote: Our designers say they don't want to run on the server. It's a lot of effort to restart the server to test every tweak; also, they're not familiar with the intricacies of our IDE and server. It's a lot more productive for them to have a direct set of files they can test in IE, which is how they've been working all along. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/The-best-way-for-designers-and-Wicket-developers-to-collaborate-tp4656560p4656570.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to contribute to the reference guide
Few people contacted me personally to ask how they can contribute to the reference guide. I've just added http://martin-g.github.com/wicket-reference-guide/howtohelp.html that explains the steps. Let me know if I can improve it. Or just me a patch ;-) is there the intention to deprecate the old wiki and/or reference guide [2] still being referred to by wicket site, and to replace all that outdated stuff with this new doc? it could result confusing to new incomers to follow it if it remains disgregated and spreaded on different web sources. [1] https://cwiki.apache.org/WICKET/reference-library.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket job market
The one thing i would say:if you want to have a nice presentation of vaadin,it comes out of the box,because thats a vaadin feature:nice presentation. No other framework has it such easy:) Vaadin efficiently speaks the language of emotions. So lets start a competition... Nice ;) but, i would add: caution! 1) Wicket decision makers may understand the same picture first. Their support is needed. 2) SoC. As Wicket very well does and promotes - that's the main reason it was created to - a Separation of Concerns should be accepted. Java side is for the engineers, Html side is for the designers (in the ideal case, we know). aligned with this same directive, it should be accepted that the expertise of marketineer skilled people is required to concentrate and contribute on Wicket marketing strategy. we are most engineers, implementors, so help from people that correctly dominates marketing should be recruited and accepted. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket job market
If someone feels good enough in web design - HTML+CSS, video making, everything that will make the site more attractive for both technical and non-technical people: the new site (unfinished) is at https://github.com/dashorst/wicket-site the current site is at: https://svn.apache.org/repos/asf/wicket/common/site/trunk i think this is missing what answered before. it is not only a question of HTML + CSS. it's also a marketing strategy that should be worked too, and this is not our area. would you accept that? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket job market
I think the problem is that most good software engineers see 'beauty' in the elegant component based, object oriented architecture of Wicket - we can all go oooh and h just thinking about how truly beautiful Wicket has been 'engineered'. We see beauty beyond the external presentation. People out in the real world however, or developers who don't get the oooh/aaah value from elegant design and architecture, are usually 'beauty is only skin deep' people - and given then don't care about elegant engineering 'under the hood' their evaluation of the 'goodness' of something is based totally on the appearance of the 'skin'. I think we have to grasp the concept that there are two different types of people and they're on opposite ends of the spectrum - the less 'engineering' someone is the more they crave 'funky look and feel'. Because of the above, and maybe I'm going out on a limb here, IMHO Wicket's much wider adoption is totally reliant on improving the Wicket website's 'looks' to newcomers on their first visit. as expressed before: emotions. e... motion motion movement. the nice emotions you experiment as an engineer on wicket, the same non-techs experiment on render-side. but at the end what moves you, and other people, the hole world: emotions. so let's speak that language at the non-dominated side yet, but not only in look feel (design), also in strategy (marketing). - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket job market
Reading the mails sent so far, I think Wicket should improve two aspects: -Its promotion -Support for stateless usage. The second point has already been indicated as a target for Wicket 7. The promotion stuff is probably the most challenging because many of Wicket supporters has technical skills rather than promotional. IMHO a first concrete and easy-to-do step to make Wicket more appealing is creating a Showcase link for left menu that points to live examples. In the current site live examples don't have enough visibility (just my two cents). We should also add some Wicket-stuff live examples to show some of the most eye-catching modules. you are opining projecting like an engineer, not as an expert in the promotion area you mention. insisting to the infinite: expertise on on how to focus not only the new look feel, but the contents, the information, what and how to be presented, is required. and this is not an engineer skill. engineers can help complementing it, but not exactly focusing it. moreover, with the help of this promotion (marketineer) expertise, there's no need to re-invent the wheel. just see how others - the competence - do well in this area, and learn from them, instead of rejecting that by other tech-thical reasons. expertise in tech-market to focus it required, watching the competence. as one ever said: it is very important WHAT, but more important HOW. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket job market
toolkits such as angular, backbone etc. One of the main reason why i started using wicket was my phobia for javascript. That phobia is no more. Infact i want more and more control over the javascript on my client. Does anyone else share the same sentiments? I am still a huge wicket fun and i use it in many projects. Josh. i think that the evolution of: - network speed - navigators capabilities (memory, processing speed, etc. provided by hardware advances) is creating the picture of java virtual machine in client-side but with html, css and javascript. you can see more and more heavy-duty web software being executed on navigators (client-side) with more and more load of dependencies (javascript resources an so on). so, at the end, executing a web-application will transform the something as similar as it was downloading an applet and running that piece on navigator. with the difference, for the moment, that all code downloaded is not crypted or compiled, but interpreted. it seems like a fish biting its tail. soon may be, we'll have javascript virtual machine's (already working in navigators, almost) downloading and running javascript applets (tons of code). - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket job market
I think, you should not compare wicket with vaadin. Wicket is not the right answer for every project. Wicket does not compete with vaadin, because wicket is a different hammer. The rise of javascript apps could change the future of web development, but for such a project you should not use wicket either. IMHO wicket is the better answer than struts, grails (if you have a long term maintenance cycle), jsf... I think there are many wicket projects out there, but wicket is not the so called cool stuff like grails, spring roo and so on... nothing a developer likes to play with (which is IMHO a good thing). I think, this could be changed with wicket 6 (jquery build-in)... but it is a long way. your loosing the focus pretended to be justify before: marketing, not tech. and many people first see, later think :) nobody was comparing Wicket with Vaadin, neither technically and neither in any other similar aspects. but you seem to defend so it in your mail. Vaadin is just mentioned as a good example (like it or not) that gains a lot of adepts just because of its cool marketing presentation at its website (in terms of style, look feel, and special effects). that's all. so could be any other tech that applies similar commercial strategies. just to give you an example: from many persons i know, who have decision power in projects, and they have no idea about wicket, they just say: does wicket really have serious projects? is it actually used? cause i see that GWT or Vaadin seem much more worked, professional, and nice. and you cannot pretend them to perfeclty understand the differences between techs because they have no enough technical skills to do so. sad (not really, is a nice feedback to learn from) but true. Wicket is probably the best most of us have ever enjoyed before. but let's be realistic, there's the nice paradox of non competitive presentation of this presentation framework yet, to be sold to not enough tech skilled people, who are decision makers. they just want to see nice cinema. then, why not adding that to Wicket site, and be more marketineers too? i think we may all agree that in general, open-source projects in Apache have a big lack of cool presentation and marketing. and marketing it is not a concept that goes against open-source, of course. there are many nice open-source projects that do sell them-selves well in their sites. one nice idea could be: why not opening a competition to create a more marketineer presentation of Wicket tech? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
little refactor moving onPopulate() to populate(), and make first called by second, and overridable?
hi, i would appreciate having the choice to do something on DataView.onPopulate (at end of populating process), but cannot override this method (final at RefreshingView). i know i have the choice to compare Item.getIndex() to DataView.getItemsPerPage() to determine the end of populating process, but what about getting this execution point by refactoring a bit, so: AbstractRepeater { @Override protected void onBeforeRender() { // onPopulate(); not anymore... populate(); ... } // protected abstract void onPopulate(); not anymore... protected abstract void populate(); } RefreshingView { @Override protected final void populate() { ... // do same stuff... ... onPopulate(); } protected void onPopulate() { // not final anymore, and overridable to do something on populating process ends } } moreover, using the method name populate to exactly do that, populate, when onBeforeRender seems to be more semantic-precise; and then, the same onBeforeRender responds to beforeRender, onPopulate now would respond to populate. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: little refactor moving onPopulate() to populate(), and make first called by second, and overridable?
sure, vineet, there are other ways... know that. the question focus more on providing a bit+ intuitiveness to code, but this fact may result quite relative, that's all. thx, anyway. . On Tue, Dec 18, 2012 at 2:17 PM, vineet semwal vineetsemwa...@gmail.com wrote: onpopulate() is called every time dataview/repeater is rendered,you can do the same thing after overriding onbeforerender, pseducode below new DataView(){ public void onbeforerender(){ super.onbeforerender(); //this will create/populate children too //now my code } } On Tue, Dec 18, 2012 at 5:36 PM, manuelbarzi manuelba...@gmail.com wrote: hi, i would appreciate having the choice to do something on DataView.onPopulate (at end of populating process), but cannot override this method (final at RefreshingView). i know i have the choice to compare Item.getIndex() to DataView.getItemsPerPage() to determine the end of populating process, but what about getting this execution point by refactoring a bit, so: AbstractRepeater { @Override protected void onBeforeRender() { // onPopulate(); not anymore... populate(); ... } // protected abstract void onPopulate(); not anymore... protected abstract void populate(); } RefreshingView { @Override protected final void populate() { ... // do same stuff... ... onPopulate(); } protected void onPopulate() { // not final anymore, and overridable to do something on populating process ends } } moreover, using the method name populate to exactly do that, populate, when onBeforeRender seems to be more semantic-precise; and then, the same onBeforeRender responds to beforeRender, onPopulate now would respond to populate. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal - 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: Session problem - object stays in after invalidate()
Which, when clicked, is performed, but in the second request, the User object, which set to null in my overriden signOut(), is back in my when are you exactly calling signOut? cant be deduced from your snippet and comment. Session.invalidateNow won't remove your custom session properties by itself, but only the Wicket components. session object. Not sure if the same obj, but the same values. may you debug and verify hashCode to validate same object or not - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: handling session expiration feedback when clicking on bookmarkablepagelink
it implies recording that user information somewhere. would prefer to avoid that. no chance to override or replace some piece of wicket api to handle this situation? . On Tue, Dec 27, 2011 at 4:10 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Manuel, I don't know right now if there is a pure Wicket solution but you can always use a session listener [1] to record remotes IPs of destroyed sessions and use that info decide whether to show a message or not. Cheers, Ernesto 1- http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSessionListener.html On Tue, Dec 27, 2011 at 3:14 PM, manuelbarzi manuelba...@gmail.com wrote: hi, this is wicket 1.4.19 ( cannot upgrade to 1.5). the scenary is: [1] when user is logged in [2] after inactive long time session expires [3] user clicks on bookmarkablepagelink [4] request handling automatically brings the user to homepage (default) if possible, what's the recommended way to intercept transition from step [3] to [4], so the application can - at least - detect this event and show the feedback information session expired to the user when homepage is loaded? (already known that bookmarkablepagelink is dispatched by the handling servlet) thky . - 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
handling session expiration feedback when clicking on bookmarkablepagelink
hi, this is wicket 1.4.19 ( cannot upgrade to 1.5). the scenary is: [1] when user is logged in [2] after inactive long time session expires [3] user clicks on bookmarkablepagelink [4] request handling automatically brings the user to homepage (default) if possible, what's the recommended way to intercept transition from step [3] to [4], so the application can - at least - detect this event and show the feedback information session expired to the user when homepage is loaded? (already known that bookmarkablepagelink is dispatched by the handling servlet) thky . - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Validating HTML 4
in HTML the link tag has no end tag. in XHTML the link tag must be properly closed. source: http://www.w3schools.com/tags/tag_link.asp . On Thu, Nov 10, 2011 at 9:29 AM, Martin Grigorov mgrigo...@apache.org wrote: So you say that br/ is valid but link / is not. Both of them are void elements. Why is this difference in handling them ? Can you provide a link to specification where they say that link / is invalid in HTML4 ? On Wed, Nov 9, 2011 at 7:26 PM, pgoiffon.wic...@free.fr wrote: pgoiffon.wic...@free.fr a écrit : I was convinced that HTML5 is still HTML, so auto-closed tags are invalid. I checked the html 5 draft recommandation this morning before answering and can't find anywhere that auto closed tags are valid. Found it ! http://www.w3.org/TR/html5/syntax.html#syntax-start-tag - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.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: Validating HTML 4
in HTML the link tag has no end tag may it be enough to confirm link/ is perfectly valid in html, and not the opposite. . On Thu, Nov 10, 2011 at 9:49 AM, Martin Grigorov mgrigo...@apache.org wrote: I'm interested in a specification saying that link / is invalid in HTML4. On Thu, Nov 10, 2011 at 10:39 AM, manuelbarzi manuelba...@gmail.com wrote: in HTML the link tag has no end tag. in XHTML the link tag must be properly closed. source: http://www.w3schools.com/tags/tag_link.asp . On Thu, Nov 10, 2011 at 9:29 AM, Martin Grigorov mgrigo...@apache.org wrote: So you say that br/ is valid but link / is not. Both of them are void elements. Why is this difference in handling them ? Can you provide a link to specification where they say that link / is invalid in HTML4 ? On Wed, Nov 9, 2011 at 7:26 PM, pgoiffon.wic...@free.fr wrote: pgoiffon.wic...@free.fr a écrit : I was convinced that HTML5 is still HTML, so auto-closed tags are invalid. I checked the html 5 draft recommandation this morning before answering and can't find anywhere that auto closed tags are valid. Found it ! http://www.w3.org/TR/html5/syntax.html#syntax-start-tag - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.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: DateTextField
wicket-extensions offers you a default pattern date conversion, while wicket-datetime forces you to determine one. . On Mon, Nov 7, 2011 at 1:57 PM, chrome1235 kemal.m...@gmail.com wrote: Hi, There are two DateTextField components. So, which I use it? org.apache.wicket.datetime.markup.html.form.DateTextField org.apache.wicket.extensions.markup.html.form.DateTextField thanks, kemal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DateTextField-tp3998533p3998533.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
Re: Form action from Form component
may you try extending overriding your form :? YourForm extends Form { ... ... onComponentTag(ComponentTag tag) { ... super.onComponentTag(tag); String action = tag.getString(action); ... } On Fri, Nov 4, 2011 at 3:06 PM, Brian Mulholland blmulholl...@gmail.comwrote: How do I get the value wicket is going to write out in the form action from the form component. The links have a getURL method, but I haven't seen an equivalent method for the form. Brian Mulholland - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Dynamically choosing component to add
MarkupContainer addOrReplace :? . On Mon, Oct 31, 2011 at 2:49 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hi, Was is the proper way to choose which panel to add to a page based on a model's object value? Currently, I directly access the model and check the value during construction of the page. However, this is wrong since a model's object shouldn't be accessed until component rendering (see thread LDMs load too early - hold outdated application data). One obvious approach is to add all possible panels to the page and override their isVisible() method to inspect the model objects. This seems like wasted processing and memory so I'd like to avoid it. The page's onConfigure() and onBeforeRender() methods are the candidates I can think of to inspect the model object's value and add the proper panel. Is one better or is there another solution? Are there other issues with this approach? Regards, Bertrand --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bookmarkable link within AjaxLazyLoadPanel
Your HTML didn't make it. Better return a Panel/Fragment that contains the link+label. it seems to be merged with the rich html mail. clicking on the link below (nabble post), the html is perfectly visible. may it be considered for next time ;-) View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bookmarkable-link-within-AjaxLazyLoadPanel-tp3943587p3943587.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
Re: AjaxTabbedPanel - intercept switching tabs
may you follow something like this: public class AjaxTabbedPanel extends TabbedPanel { public AjaxTabbedPanel(String id, ListITab tabs) { super(id, tabs); setOutputMarkupId(true); setVersioned(false); } @Override protected WebMarkupContainer newLink(String linkId, final int index) { return new AjaxFallbackLinkVoid(linkId) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { // TODO: check here setSelectedTab(index); if (target != null) { target.addComponent(AjaxTabbedPanel.this); } } }; } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Validating in form returns always error but textfield has a value
at which point are you pretending to call validate, what logic fires it? see no code if defaultFormProcessing is true (default) on submitting components, then all validation and form updating is executed automatically. On Tue, Oct 18, 2011 at 8:52 AM, rawe ralph.wey...@dachser.com wrote: Here are some code snippets. When clicking on a tree node I validate the form.. If no errors I update the form component models. The class MyMutableTreeNode extends DefaultMutableTreeNode. Each node references an own panel component. getNodeEntryDetail() returns the panel referenced by the node. Where is the difference to a SubmitLink call. If calling SubmitLink validation works fine and input values of the textfields in panel are filled. When calling validate() programmatic the input values are null. ?? ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validating-in-form-returns-always-error-but-textfield-has-a-value-tp3912361p3914396.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: Validating in form returns always error but textfield has a value
See also Wicket API Doc of Form: ( http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/html/form/Form.html Wicket API Doc ) /If you want you can call validate() to execute form validation, hasError() to find out whether validate() resulted in validation errors, and updateFormComponentModels() to update the models of nested form components./ the first two are working perfect, but not the programmatic way. this already well-known form procedure would work if you were submitting the form with a component implementing the IFormSubmittingComponent interface. Nevertheless I found a solution for my problem. I'm using a SubmitLink in my LinkTree component. For that I had to override the newLink() method of LinkTree. by default BaseTree.newLink is providing Link or AjaxLink, which doesn't implement IFormSubmittingComponent, required for a component that is able to submit a form. so, as guessed before, you were not submitting the form each time you were clicking on each tree node. now, using SubmitLink, it works, as it implements the mentioned interface. got it? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: UrlRenderer [1.5]: Why is absolute of relative Url ending with a [dot]?
Component.urlFor - calls - RequestCycle.urlFor - calls - UrlRenderer.renderUrl - if relative url, calls - UrlRenderer.renderRelativeUrl - which may append / return the misterious . . On Tue, Oct 18, 2011 at 2:50 PM, Per Newgro per.new...@gmx.ch wrote: Hi, i try to add a sitemap for my app. When i add the loc node in sitemap-url this way to my ListView code item.add(new Label(locNode, RequestCycle.get().getUrlRenderer().renderFullUrl(Url.parse(String.valueOf(urlFor(homePageClass, homePageParameters)); /code the generate xml looks like this code lochttp://localhost:8080/./loc /code I've debugged the code but don't get a real clue why this is adding a dot in relative url processing. Can someone please give me a hint? Thanks Per - 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: Weblogic deployment
Application.initializeComponents() may you try running wl in non-blank-spaces path? (zip:C:/Documents[16 charater here])...) . On Tue, Oct 18, 2011 at 3:31 PM, Wolfgang Schreiner wschrei...@csc.com wrote: Hi all, I am having problems deploying my web application on Weblogic 10.3.2. Everything works fine on 10.3.5 but I am running into the following exception when deploying on 10.3.2 - see below How can I resolve this? And when and where is wicket.properties loaded? Can't find references in the sources ... Thanks! 18.10.2011 14:17 Uhr MESZ Error HTTP BEA-101165 Could not load user def ined filter in web.xml: org.apache.wicket.protocol.http.WicketFilter. org.apache.wicket.WicketRuntimeException: java.net.URISyntaxException: Illegal c haracter in opaque part at index 16: zip:C:/Documents and Settings/schrewo3/Orac le/Middleware/user_projects/domains/test1/servers/AdminServer/tmp/_WL_user/edoc- web/11vfn0/war/WEB-INF/lib/wicket-core-1.5.0.jar!/wicket.properties at org.apache.wicket.application.AbstractClassResolver.getResources(Abst ractClassResolver.java:156) at org.apache.wicket.Application.initializeComponents(Application.java:4 90) at org.apache.wicket.Application.initApplication(Application.java:806) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:3 46) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:2 86) Truncated. see log file for complete stacktrace Caused By: java.net.URISyntaxException: Illegal character in opaque part at inde x 16: zip:C:/Documents and Settings/schrewo3/Oracle/Middleware/user_projects/dom ains/test1/servers/AdminServer/tmp/_WL_user/edoc-web/11vfn0/war/WEB-INF/lib/wick et-core-1.5.0.jar!/wicket.properties at java.net.URI$Parser.fail(URI.java:2809) at java.net.URI$Parser.checkChars(URI.java:2982) at java.net.URI$Parser.parse(URI.java:3019) at java.net.URI.init(URI.java:578) at java.net.URL.toURI(URL.java:918) Truncated. see log file for complete stacktrace - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: UrlRenderer [1.5]: Why is absolute of relative Url ending with a [dot]?
Matej, Igor? . On Tue, Oct 18, 2011 at 3:57 PM, Per Newgro per.new...@gmx.ch wrote: Thanks for reply manuel, sorry for being not clear on this. While debugging i've found that already. But why is this . be set. That's not clear to me. Per Am 18.10.2011 15:47, schrieb manuelbarzi: Component.urlFor - calls - RequestCycle.urlFor - calls - UrlRenderer.renderUrl - if relative url, calls - UrlRenderer.renderRelativeUrl - which may append / return the misterious . . On Tue, Oct 18, 2011 at 2:50 PM, Per Newgroper.new...@gmx.ch wrote: Hi, i try to add a sitemap for my app. When i add the loc node in sitemap-url this way to my ListView code item.add(new Label(locNode, RequestCycle.get().getUrlRenderer().renderFullUrl(Url.parse(String.valueOf(urlFor(homePageClass, homePageParameters)); /code the generate xml looks like this code lochttp://localhost:8080/./loc /code I've debugged the code but don't get a real clue why this is adding a dot in relative url processing. Can someone please give me a hint? Thanks Per - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: page expire / ajax error
it seems to be tomcat mixing/sharing user/session data/resources somewhere and reseting it on second start :? . On Tue, Oct 18, 2011 at 4:35 PM, Jonathan Locke jonathan.lo...@gmail.com wrote: I have two wicket applications running on the same box (my laptop, for example) with one on port 8880 and one on port 8881. Each application does ajax-self-updating. Now, if I start the first application, all is well and will stay well forever as far as I can tell. But the exact moment i start up the second application, the first application suddenly gets either a page expired error (under wicket 1.4) or an error regarding behaviors (under wicket 1.5). I've tried this over and over and it's not a fluke. Anyone have any idea what's going on? My best guess is that somehow Tomcat is misconfigured (I'm starting it embedded)? But how might that be? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/page-expire-ajax-error-tp3915594p3915594.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: can i get the selected value from DropdownChoice not in the onSubmit method of a form
add ajax behavior, listen to onchange event, and then capture the new value. . On Mon, Oct 17, 2011 at 12:18 PM, TimmyDeng dengxiaoxiax...@gmail.com wrote: I need to use DropdownChoice in a ModelWindow, but if i get the selected value in the onSubmit method of a form, the ModelWindow will be closed. Can you please tell me another way to get the selected value, not in the onSubmit method of a form -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/can-i-get-the-selected-value-from-DropdownChoice-not-in-the-onSubmit-method-of-a-form-tp3911558p3911558.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: can i get the selected value from DropdownChoice not in the onSubmit method of a form
please, note that wicket-users forum is plenty full of examples like this, so the forum, and so the official wicket-examples. a good suggestion is to deeply look there for an answer before posting. as suggested before, may you add onchangeajaxbehaviour to your dropdownchoice, as shown in the following example: html: html xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; body select wicket:id=select option value=volvoVolvo/option option value=saabSaab/option option value=mercedesMercedes/option option value=audiAudi/option /select /body /html java: @SuppressWarnings(serial) public class DropDownChoicePage extends WebPage { private Entity selected; public DropDownChoicePage() { ListEntity list = Arrays.asList(new Entity[] { new Entity(coco), new Entity(liso), new Entity(pata), new Entity(tero) }); DropDownChoiceEntity select = new DropDownChoiceEntity(select, new PropertyModelEntity(this, selected), list); select.setNullValid(true); select.add(new OnChangeAjaxBehavior() { private static final long serialVersionUID = 1L; @Override protected void onUpdate(AjaxRequestTarget target) { System.out.println(selected); } }); add(select); } public void setSelected(Entity selected) { this.selected = selected; } public class Entity implements Serializable { private String id; public Entity(String id) { this.setId(id); } public void setId(String id) { this.id = id; } public String getId() { return id; } public String toString() { return getId(); } } } On Mon, Oct 17, 2011 at 2:10 PM, TimmyDeng dengxiaoxiax...@gmail.com wrote: Thanks for your quick reply. However, if the dropdownchoice is not in a form, then the onSelectionChanged() method will not be executed. So cannot get the changed value. Do you have further suggestion? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/can-i-get-the-selected-value-from-DropdownChoice-not-in-the-onSubmit-method-of-a-form-tp3911558p3911802.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: Validating in form returns always error but textfield has a value
is the form submitted each time a node is changed? if not, then it could be normal you read nulls, as the values are still on browser, but havent flown to server. On Mon, Oct 17, 2011 at 5:11 PM, rawe ralph.wey...@dachser.com wrote: I'm using a LinkTree and to each node a panel is referenced. Both is embedded in a form component. The panels have textfields. When using a submit button or a SubmitLink the input of the textfields is valid and then also validation is valid. But: My intension is also to validate the form each time the node is changed. So I'm using the method form.validate() directly. But the textfields have all null input! -- validation error also when there is a value inside textfield. Why the (raw)input is not recognized (the textfield model is ok) ? what I'm doing wrong. How can I solve this problem? thank you for hints! Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validating-in-form-returns-always-error-but-textfield-has-a-value-tp3912361p3912361.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: Validating in form returns always error but textfield has a value
may you provide a code shot for review? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ajax form submit, loading gif and swap panels
may you try assembling wiquery to your web-app (http://code.google.com/p/wiquery/). it makes jquery integration trivial in wicket.. On Fri, Oct 7, 2011 at 1:22 PM, wholalotta ardaas...@gmail.com wrote: Any comment or documentation to learn how to call jquery function inside of this methot? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ajax-form-submit-loading-gif-and-swap-panels-tp3876326p3881810.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: Community tools
it sounds great, but why not fully concentrate on wicket. apache will adopt whatever magic-solution asa it'll be licence compliant, and affordable by resources and directives. for the moment this mailing list has been a very successful machine, and still has much to bring. outside, whatever wrapper (wicket-based or not, may be assembled to pull all posts, order and make them as far confortable-searcheable as low-patience eager-brains demand). as other expressed: markmail and nabble are pretty enough, and managing issues by mail - on smart or not phones - is simply a pleasure. . On Fri, Oct 7, 2011 at 12:43 PM, Josh Kamau joshnet2...@gmail.com wrote: On a light note: we can build our version of stackoverflow as a Q/A for wicket. We can build it in wicket and let everyone access the code. We can use it as a demo wicket application. Josh. On Fri, Oct 7, 2011 at 1:40 PM, Gaetan Zoritchak g.zoritc...@moncoachfinance.com wrote: I fully understand the risk of relying on an external and uncontrolled party. The best of breed solution would be to have SO like a Q A for wicket based on an open source implementation like Bert mentionned. For the mailing list, I think the advantage of reading the messages on his phone is less important than the gate of a partially closed system that requires a subscription by email. See on http://softwareandsilicon.com/chapter:2 # toc2 - Freedom of Access and - Weak Group Identity Markmail: The traffic is constantly increasing from 1999 until late 2009 early 2010 before being reduced significantly. I think the reason is due to the tool a little bit old. Even if the interface allows to search for messages, ergonomics and the quality of responses is not equivalent to what is available on intenet today. My point is not to criticize but to point out that this is negative for the adoption of wicket. Today when I choose a technology for a project, even though I prefer Wicket for its design, I have to sell the framework to a team that does not necessarily find it very sexy. Gaetan 2011/10/7 Martijn Dashorst martijn.dasho...@gmail.com The biggest issue with moving to Stack Overflow is that we deliver our community to an external party which can do anything with the questions, show stupid ads, etc. Have no mistake: stack exchange is a commercial venture. So one criterium is to be able to pull the plug on it whenever it goes sour. While the content of stack overflow is publicly available, it is not licensed with an Apache friendly license (http://creativecommons.org/licenses/by-sa/2.5/). This issue was the biggest hurdle SO needs to take to become a viable alternative for the user list at Apache. As for this list not being visible, you can always shop around for list archive providers. Nabble has a nice forum like interface, Mark mail provides awesome search tooling. Martijn On Fri, Oct 7, 2011 at 8:49 AM, Bert taser...@gmail.com wrote: I had a discussion about this with martin dashorst when we meet this year at a conference. Apparently, he does like the idea of a SO like QA site for wicket. But wicket being an Apache project, there are certain requirement if i recall our discussion correctly. One of the problems is the hosting of such a side. The mailing list, bugtracker, wicki,... are all hosted and maintained by the apache admins. Getting a new tool into there is not easy. One could host a solution outside of apache, but this opens questions about long term support of the infrastructure, privacy issues and so forth. There are a few opensource implementations available: http://gitorious.org/shapado (used by debian at http://ask.debian.net/ ) http://www.osqa.net/ I do like the SO style (never been a fan of mailing lists), but on the other side registering here is not much of a hassle. My 2 cent Bert On Fri, Oct 7, 2011 at 07:25, Josh Kamau joshnet2...@gmail.com wrote: I like the mail. Atleast i can get the answers even on my not so smart phone. Josh. On Fri, Oct 7, 2011 at 6:43 AM, Chris Colman chr...@stepaheadsoftware.comwrote: Source management and bugs are also outdated. The version on github is much better. I recently had to get up to speed with github. Not sure what all the fuss is about. The learning curve was about 20x that of Subversion and I'm still not confident about how to do things or whether what I'm doing is the 'right' thing to be doing. Subversion on the other hand is really easy to understand (and most developers already know it) and even though it has 'theoretical' shortcomings compared to a distributed VCS like git in practice I never saw any difference in performance or usage apart from git being a lot 'weirder' ;) My 2 cents, Gaetan - To unsubscribe, e-mail:
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? :) and keep patience while somentity is re-implementing stacko, making it os, waiting it's fully established and tested, convincing apache to adopt it, and finally saying aleluya. here some good intentions on the network, may worth attending on flowing time: http://www.webappers.com/2010/02/26/stack-overflow-like-open-source-qa-systems-for-download/ http://meta.stackoverflow.com/questions/30269/is-there-any-open-source-code-we-can-get-similar-to-stackoverflow http://code.google.com/p/stacked/ http://code.google.com/p/cnprog/ http://www.osqa.net/ (this one seems to convince... a bit?) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: pretty strange behavior with TextArea containing remaining output html code inside
tested on wicket 1.5.0 and paradoxically a single-closed textarea tag does validate as legal too, like in wicket 1.4.17/18, and renders correctly, contrary to wicket 1.4.17/18. issue https://issues.apache.org/jira/browse/WICKET-4094 On Wed, Sep 28, 2011 at 7:30 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: file a jira issue -igor On Wed, Sep 28, 2011 at 9:52 AM, manuelbarzi manuelba...@gmail.com wrote: right. may wicket html validation complain in future version for this particular case. low priority issue... . On Wed, Sep 28, 2011 at 6:42 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: per html spec textarea must have a closing tag... -igor On Wed, Sep 28, 2011 at 9:25 AM, manuelbarzi manuelba...@gmail.com wrote: TextArea is one-self-closed tag .../. should TextArea two-opening-closing tags ../... work fine. On Wed, Sep 28, 2011 at 6:18 PM, manuelbarzi manuelba...@gmail.com wrote: this error happens on this simple composite (wicket 1.4.17): Page |-Panel |-Form |-TextField |-TextField |-TextArea |-TextField |-TextField |-Button |-Button when just rendering this simple page (no logic implemented yet), the output html (reviewed on chrome and ie) renders ok until the TextArea, and then, inside the TextArea content (visible text), there's all the remaining of the output markup! switching TextArea to a simple TextField does render ok. known bug? - 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 - 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: pretty strange behavior with TextArea containing remaining output html code inside
sure, as you may have read, i already tested on wicket 1.5.0 and renders ok. but from the point of view of validation, a textarea cannot be a single-closed tag, is an illegal code, as it goes against the spec (igor). On Thu, Sep 29, 2011 at 9:49 AM, Martin Grigorov mgrigo...@apache.org wrote: This is improved in 1.5.0. We expand some HTML elements from name/ to name/name You are recommended to upgrade. On Thu, Sep 29, 2011 at 9:44 AM, manuelbarzi manuelba...@gmail.com wrote: tested on wicket 1.5.0 and paradoxically a single-closed textarea tag does validate as legal too, like in wicket 1.4.17/18, and renders correctly, contrary to wicket 1.4.17/18. issue https://issues.apache.org/jira/browse/WICKET-4094 On Wed, Sep 28, 2011 at 7:30 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: file a jira issue -igor On Wed, Sep 28, 2011 at 9:52 AM, manuelbarzi manuelba...@gmail.com wrote: right. may wicket html validation complain in future version for this particular case. low priority issue... . On Wed, Sep 28, 2011 at 6:42 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: per html spec textarea must have a closing tag... -igor On Wed, Sep 28, 2011 at 9:25 AM, manuelbarzi manuelba...@gmail.com wrote: TextArea is one-self-closed tag .../. should TextArea two-opening-closing tags ../... work fine. On Wed, Sep 28, 2011 at 6:18 PM, manuelbarzi manuelba...@gmail.com wrote: this error happens on this simple composite (wicket 1.4.17): Page |-Panel |-Form |-TextField |-TextField |-TextArea |-TextField |-TextField |-Button |-Button when just rendering this simple page (no logic implemented yet), the output html (reviewed on chrome and ie) renders ok until the TextArea, and then, inside the TextArea content (visible text), there's all the remaining of the output markup! switching TextArea to a simple TextField does render ok. known bug? - 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 - 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.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: pretty strange behavior with TextArea containing remaining output html code inside
Wicket doesn't act as (X)HTML validator. It never did. but if you forget some closing tag, /tr for instance, you might be sure it will complain... then why not validating other tags too, and fully validate (x)html. On Thu, Sep 29, 2011 at 9:56 AM, Martin Grigorov mgrigo...@apache.org wrote: Wicket doesn't act as (X)HTML validator. It never did. You may use https://github.com/dashorst/wicket-stuff-markup-validator for that On Thu, Sep 29, 2011 at 9:53 AM, manuelbarzi manuelba...@gmail.com wrote: sure, as you may have read, i already tested on wicket 1.5.0 and renders ok. but from the point of view of validation, a textarea cannot be a single-closed tag, is an illegal code, as it goes against the spec (igor). On Thu, Sep 29, 2011 at 9:49 AM, Martin Grigorov mgrigo...@apache.org wrote: This is improved in 1.5.0. We expand some HTML elements from name/ to name/name You are recommended to upgrade. On Thu, Sep 29, 2011 at 9:44 AM, manuelbarzi manuelba...@gmail.com wrote: tested on wicket 1.5.0 and paradoxically a single-closed textarea tag does validate as legal too, like in wicket 1.4.17/18, and renders correctly, contrary to wicket 1.4.17/18. issue https://issues.apache.org/jira/browse/WICKET-4094 On Wed, Sep 28, 2011 at 7:30 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: file a jira issue -igor On Wed, Sep 28, 2011 at 9:52 AM, manuelbarzi manuelba...@gmail.com wrote: right. may wicket html validation complain in future version for this particular case. low priority issue... . On Wed, Sep 28, 2011 at 6:42 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: per html spec textarea must have a closing tag... -igor On Wed, Sep 28, 2011 at 9:25 AM, manuelbarzi manuelba...@gmail.com wrote: TextArea is one-self-closed tag .../. should TextArea two-opening-closing tags ../... work fine. On Wed, Sep 28, 2011 at 6:18 PM, manuelbarzi manuelba...@gmail.com wrote: this error happens on this simple composite (wicket 1.4.17): Page |-Panel |-Form |-TextField |-TextField |-TextArea |-TextField |-TextField |-Button |-Button when just rendering this simple page (no logic implemented yet), the output html (reviewed on chrome and ie) renders ok until the TextArea, and then, inside the TextArea content (visible text), there's all the remaining of the output markup! switching TextArea to a simple TextField does render ok. known bug? - 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 - 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.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: filter feedback messages
how is your composite? page |-Form (with own FeedbackPanel) ||-Panel (with own FeedbackPanel) | |-Other stuff ? On Wed, Sep 28, 2011 at 11:33 AM, Miroslav F. mir...@seznam.cz wrote: hi folks, i have this problem: have panel: wicket:panel ba href=cart.htmlcart:/a/b span wicket:id=cartItems[0]/span items,nbsp;nbsp;nbsp;bspan wicket:id=cartPrice[0]/span $/b /span /div /wicket:panel then implementing class: package cz.mineralshop; import java.util.ArrayList; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.panel.Panel; @SuppressWarnings(serial) public class PanelCart extends Panel { public PanelCart(String id) { super(id); ArrayList cart = (new ModelPanelCart()).load(); this.add(new Label(cartItems, (new Integer(cart.size())).toString())); Integer cartPrice = new Integer(0); for(int i = 0; i cart.size(); i++) { ArrayList polozka = (ArrayList) cart.get(i); Integer cenaPolozky = new Integer((String) polozka.get(2)); cenaCelkova = cenaCelkova + cenaPolozky; } this.add(new Label(cartPrice, cenaCelkova.toString())); } } panel works fine (implementation is ugly, i know..) on one page i have form with validators, again works fine. problem is with panel above: it shows feedback messages of the form so final result is that on page i have feedback messages twice: in form (which is correct) and in panel above (which is wrong). i know it has what to do with feedback message filter - but how to set it for the panel? simply do: this.add(new FeedbackPanel(feedback, new ComponentFeedbackMessageFilter(this))); in PanelCart.class don't work. can you someone help me please? miro - 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: filter feedback messages
have you tried ContainerFeedbackMessageFilter instead? 2011/9/28 Miroslav F. mir...@seznam.cz: Page1 \ +--- PanelCart | +--- Form i know all fedback panels displays all feedback messages and i have to filter them. what i don't know is how to tell in PanelCart to display only messages produced in PanelCart and ignore others messages? -Original Message- From: manuelbarzi [mailto:manuelba...@gmail.com] Sent: 28. September 2011 11:51 To: users@wicket.apache.org Subject: Re: filter feedback messages how is your composite? page |-Form (with own FeedbackPanel) | |-Panel (with own FeedbackPanel) | |-Other stuff ? On Wed, Sep 28, 2011 at 11:33 AM, Miroslav F. mir...@seznam.cz wrote: hi folks, i have this problem: have panel: wicket:panel ba href=cart.htmlcart:/a/b span wicket:id=cartItems[0]/span items,nbsp;nbsp;nbsp;bspan wicket:id=cartPrice[0]/span $/b /span /div /wicket:panel then implementing class: package cz.mineralshop; import java.util.ArrayList; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.panel.Panel; @SuppressWarnings(serial) public class PanelCart extends Panel { public PanelCart(String id) { super(id); ArrayList cart = (new ModelPanelCart()).load(); this.add(new Label(cartItems, (new Integer(cart.size())).toString())); Integer cartPrice = new Integer(0); for(int i = 0; i cart.size(); i++) { ArrayList polozka = (ArrayList) cart.get(i); Integer cenaPolozky = new Integer((String) polozka.get(2)); cenaCelkova = cenaCelkova + cenaPolozky; } this.add(new Label(cartPrice, cenaCelkova.toString())); } } panel works fine (implementation is ugly, i know..) on one page i have form with validators, again works fine. problem is with panel above: it shows feedback messages of the form so final result is that on page i have feedback messages twice: in form (which is correct) and in panel above (which is wrong). i know it has what to do with feedback message filter - but how to set it for the panel? simply do: this.add(new FeedbackPanel(feedback, new ComponentFeedbackMessageFilter(this))); in PanelCart.class don't work. can you someone help me please? miro - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: filter feedback messages
what's the feedback message filter you've added to the form? 2011/9/28 Miroslav F. mir...@seznam.cz: yes. it doesn't matter if i do: this.add(new FeedbackPanel(feedback, new ComponentFeedbackMessageFilter(this))); or this.add(new FeedbackPanel(feedback, new ContainerFeedbackMessageFilter(this))); in PanelCart.class, panel still show messages produced in form. -Original Message- From: manuelbarzi [mailto:manuelba...@gmail.com] Sent: 28. September 2011 12:02 To: users@wicket.apache.org Subject: Re: filter feedback messages have you tried ContainerFeedbackMessageFilter instead? 2011/9/28 Miroslav F. mir...@seznam.cz: Page1 \ +--- PanelCart | +--- Form i know all fedback panels displays all feedback messages and i have to filter them. what i don't know is how to tell in PanelCart to display only messages produced in PanelCart and ignore others messages? -Original Message- From: manuelbarzi [mailto:manuelba...@gmail.com] Sent: 28. September 2011 11:51 To: users@wicket.apache.org Subject: Re: filter feedback messages how is your composite? page |-Form (with own FeedbackPanel) | |-Panel (with own FeedbackPanel) | |-Other stuff ? On Wed, Sep 28, 2011 at 11:33 AM, Miroslav F. mir...@seznam.cz wrote: hi folks, i have this problem: have panel: wicket:panel ba href=cart.htmlcart:/a/b span wicket:id=cartItems[0]/span items,nbsp;nbsp;nbsp;bspan wicket:id=cartPrice[0]/span $/b /span /div /wicket:panel then implementing class: package cz.mineralshop; import java.util.ArrayList; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.panel.Panel; @SuppressWarnings(serial) public class PanelCart extends Panel { public PanelCart(String id) { super(id); ArrayList cart = (new ModelPanelCart()).load(); this.add(new Label(cartItems, (new Integer(cart.size())).toString())); Integer cartPrice = new Integer(0); for(int i = 0; i cart.size(); i++) { ArrayList polozka = (ArrayList) cart.get(i); Integer cenaPolozky = new Integer((String) polozka.get(2)); cenaCelkova = cenaCelkova + cenaPolozky; } this.add(new Label(cartPrice, cenaCelkova.toString())); } } panel works fine (implementation is ugly, i know..) on one page i have form with validators, again works fine. problem is with panel above: it shows feedback messages of the form so final result is that on page i have feedback messages twice: in form (which is correct) and in panel above (which is wrong). i know it has what to do with feedback message filter - but how to set it for the panel? simply do: this.add(new FeedbackPanel(feedback, new ComponentFeedbackMessageFilter(this))); in PanelCart.class don't work. can you someone help me please? miro - 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 - 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
Re: filter feedback messages
form may need a filter too. 2011/9/28 Miroslav F. mir...@seznam.cz: i think that form doesn't need filter - or to be precise i don't want to filter messages in form. i only need to filter messages in panelcart (which extends panel): public class PanelCart extends Panel { public PanelCart(String id) { super(id); ...do_something... --- //this don't work, the panel still shows messages from another page components this.add(new FeedbackPanel(feedback, new ContainerFeedbackMessageFilter(this))); } } public class PageObjednavka extends PageBase { public PageObjednavka() { FormObject form = new FormObject(formOrder) { ...set_form... (own code) }; this.add(form); form.add(formOrderName.setRequired(true).add(StringValidator.lengthBetween(2 , 35))); //if validation faild show message from property file --- form.add(new FeedbackPanel(feedback)); } } public class PageBase extends WebPage { public PageBase() { this.add(new PanelCart(cart)); } -Original Message- From: manuelbarzi [mailto:manuelba...@gmail.com] Sent: 28. September 2011 12:22 To: users@wicket.apache.org Subject: Re: filter feedback messages what's the feedback message filter you've added to the form? 2011/9/28 Miroslav F. mir...@seznam.cz: yes. it doesn't matter if i do: this.add(new FeedbackPanel(feedback, new ComponentFeedbackMessageFilter(this))); or this.add(new FeedbackPanel(feedback, new ContainerFeedbackMessageFilter(this))); in PanelCart.class, panel still show messages produced in form. -Original Message- From: manuelbarzi [mailto:manuelba...@gmail.com] Sent: 28. September 2011 12:02 To: users@wicket.apache.org Subject: Re: filter feedback messages have you tried ContainerFeedbackMessageFilter instead? 2011/9/28 Miroslav F. mir...@seznam.cz: Page1 \ +--- PanelCart | +--- Form i know all fedback panels displays all feedback messages and i have to filter them. what i don't know is how to tell in PanelCart to display only messages produced in PanelCart and ignore others messages? -Original Message- From: manuelbarzi [mailto:manuelba...@gmail.com] Sent: 28. September 2011 11:51 To: users@wicket.apache.org Subject: Re: filter feedback messages how is your composite? page |-Form (with own FeedbackPanel) | |-Panel (with own FeedbackPanel) | |-Other stuff ? On Wed, Sep 28, 2011 at 11:33 AM, Miroslav F. mir...@seznam.cz wrote: hi folks, i have this problem: have panel: wicket:panel ba href=cart.htmlcart:/a/b span wicket:id=cartItems[0]/span items,nbsp;nbsp;nbsp;bspan wicket:id=cartPrice[0]/span $/b /span /div /wicket:panel then implementing class: package cz.mineralshop; import java.util.ArrayList; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.panel.Panel; @SuppressWarnings(serial) public class PanelCart extends Panel { public PanelCart(String id) { super(id); ArrayList cart = (new ModelPanelCart()).load(); this.add(new Label(cartItems, (new Integer(cart.size())).toString())); Integer cartPrice = new Integer(0); for(int i = 0; i cart.size(); i++) { ArrayList polozka = (ArrayList) cart.get(i); Integer cenaPolozky = new Integer((String) polozka.get(2)); cenaCelkova = cenaCelkova + cenaPolozky; } this.add(new Label(cartPrice, cenaCelkova.toString())); } } panel works fine (implementation is ugly, i know..) on one page i have form with validators, again works fine. problem is with panel above: it shows feedback messages of the form so final result is that on page i have feedback messages twice: in form (which is correct) and in panel above (which is wrong). i know it has what to do with feedback message filter - but how to set it for the panel? simply do: this.add(new FeedbackPanel(feedback, new ComponentFeedbackMessageFilter(this))); in PanelCart.class don't work. can you someone help me please? miro - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
pretty strange behavior with TextArea containing remaining output html code inside
this error happens on this simple composite (wicket 1.4.17): Page |-Panel |-Form |-TextField |-TextField |-TextArea |-TextField |-TextField |-Button |-Button when just rendering this simple page (no logic implemented yet), the output html (reviewed on chrome and ie) renders ok until the TextArea, and then, inside the TextArea content (visible text), there's all the remaining of the output markup! switching TextArea to a simple TextField does render ok. known bug? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: pretty strange behavior with TextArea containing remaining output html code inside
TextArea is one-self-closed tag .../. should TextArea two-opening-closing tags ../... work fine. On Wed, Sep 28, 2011 at 6:18 PM, manuelbarzi manuelba...@gmail.com wrote: this error happens on this simple composite (wicket 1.4.17): Page |-Panel |-Form |-TextField |-TextField |-TextArea |-TextField |-TextField |-Button |-Button when just rendering this simple page (no logic implemented yet), the output html (reviewed on chrome and ie) renders ok until the TextArea, and then, inside the TextArea content (visible text), there's all the remaining of the output markup! switching TextArea to a simple TextField does render ok. known bug? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: pretty strange behavior with TextArea containing remaining output html code inside
should a single closed textarea tag be a problem? neither html editor nor wicket markup validation complains about it. . On Wed, Sep 28, 2011 at 6:26 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: sounds like a problem with your html... -igor On Wed, Sep 28, 2011 at 9:18 AM, manuelbarzi manuelba...@gmail.com wrote: this error happens on this simple composite (wicket 1.4.17): Page |-Panel |-Form |-TextField |-TextField |-TextArea |-TextField |-TextField |-Button |-Button when just rendering this simple page (no logic implemented yet), the output html (reviewed on chrome and ie) renders ok until the TextArea, and then, inside the TextArea content (visible text), there's all the remaining of the output markup! switching TextArea to a simple TextField does render ok. known bug? - 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
Re: pretty strange behavior with TextArea containing remaining output html code inside
confirmed: a single self-closed textarea tag (textarea... /) makes rendering fail in this wicket version. it does not complain about textarea markup (neither html editor), but renders it containing the remaining html escaped inside, and setting a closing textarea tag at the end. only double opening-closing textarea tag (textarea../textarea) is supported. On Wed, Sep 28, 2011 at 6:25 PM, manuelbarzi manuelba...@gmail.com wrote: TextArea is one-self-closed tag .../. should TextArea two-opening-closing tags ../... work fine. On Wed, Sep 28, 2011 at 6:18 PM, manuelbarzi manuelba...@gmail.com wrote: this error happens on this simple composite (wicket 1.4.17): Page |-Panel |-Form |-TextField |-TextField |-TextArea |-TextField |-TextField |-Button |-Button when just rendering this simple page (no logic implemented yet), the output html (reviewed on chrome and ie) renders ok until the TextArea, and then, inside the TextArea content (visible text), there's all the remaining of the output markup! switching TextArea to a simple TextField does render ok. known bug? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: pretty strange behavior with TextArea containing remaining output html code inside
right. may wicket html validation complain in future version for this particular case. low priority issue... . On Wed, Sep 28, 2011 at 6:42 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: per html spec textarea must have a closing tag... -igor On Wed, Sep 28, 2011 at 9:25 AM, manuelbarzi manuelba...@gmail.com wrote: TextArea is one-self-closed tag .../. should TextArea two-opening-closing tags ../... work fine. On Wed, Sep 28, 2011 at 6:18 PM, manuelbarzi manuelba...@gmail.com wrote: this error happens on this simple composite (wicket 1.4.17): Page |-Panel |-Form |-TextField |-TextField |-TextArea |-TextField |-TextField |-Button |-Button when just rendering this simple page (no logic implemented yet), the output html (reviewed on chrome and ie) renders ok until the TextArea, and then, inside the TextArea content (visible text), there's all the remaining of the output markup! switching TextArea to a simple TextField does render ok. known bug? - 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
Re: creating a textarea with a radiobutton using Listview
that iterator you added has no much sense, as it represents only an item on the list, but not the list itself. moreover you don't need modifying components, but updating their models, as mentioned in mail before (may you study wicket models a bit more... see https://cwiki.apache.org/WICKET/working-with-wicket-models.html) may you apply OnChangeAjaxBehaviour on each checkbox, instead of adding a CheckGroup. here's the code before, modified to work as you need, deselecting other checkboxes when current one is selected: [2] java: public class CheckBoxListPage extends WebPage { private Form inputForm; public CheckBoxListPage() { final FeedbackPanel feedback = new FeedbackPanel(feedback); add(feedback); add(inputForm = new InputForm(inputForm)); } /** form for processing the input. */ private class InputForm extends Form { // holds NameWrapper elements private ListNameWrapper data; public InputForm(String name) { super(name); // add some dummy data data = new ArrayListNameWrapper(); data.add(new NameWrapper(one)); data.add(new NameWrapper(two)); data.add(new NameWrapper(three)); data.add(new NameWrapper(four)); // add a nested list view; as the list is nested in the form, the form will // update all FormComponent childs automatically. final ListViewNameWrapper listView = new ListViewNameWrapper(list, data) { protected void populateItem(ListItemNameWrapper item) { final NameWrapper wrapper = (NameWrapper)item.getModelObject(); item.add(new Label(name, wrapper.getName())); final CheckBox checkBox = new CheckBox(check, new PropertyModelBoolean(wrapper, selected)); item.add(checkBox); checkBox.add(new OnChangeAjaxBehavior() { @Override protected void onUpdate(AjaxRequestTarget target) { if (wrapper.getSelected()) { for (NameWrapper entity : data) { if (!entity.equals(wrapper)) { entity.setSelected(Boolean.FALSE); } } } target.addComponent(inputForm); } }); } }; listView.setReuseItems(true); add(listView); } public void onSubmit() { info(data: + data); // print current contents } } On Mon, Sep 26, 2011 at 12:06 PM, wholalotta ardaas...@gmail.com wrote: I tried the following but couldnt get into onUpdate method while debugging. I need to use checkgroup to be able to use AjaxFormChoiceComponentUpdatingBehavior. So I created a checkgroup and added the checkboxes into it. So I guess in each iteration I am creating one text area, one check group and one checkbox that is attached to that checkgroup. What I am trying to do is when I select a checkbox, I want to re-render only the checkboxes by iterating the item list one by one. But it seems if I do this I need to add ajaxbehaviour on to listview?? I think what I am trying to do in here is a little bit tricky and this is not Listview is created for am i right? I am definitely stucked. If I dont use Listview, I need to do this by putting more lines of code and I dont want to do that. ListView listView = new ListView(list, data) { @Override protected void populateItem(final ListItem item) { NameWrapper wrapper = (NameWrapper)item.getModelObject();
Re: Servlet and Wicket
i would suggest you, hohaeri, to do the migration progressively, by keeping your servlet-application living with your new wicket-application, while translating one by one your pages from the first to the latter, til finally have all your application fully migrated. if you have correctly done SoC in your current application (business objects, integration layer, components...) then moving from your servlet-app to the new wicket-app wouldn't be so painful. if this is not the case, then just re-do it all... probably it may worth it ;-) . On Tue, Sep 27, 2011 at 12:37 AM, noven_...@yahoo.com wrote: Hi.. I understood what your issue is. Just want to share my experience here. I used to convert my struts application to wicket. I found there were no easy way to solve this matter. Since wicket is component based, not rely on servlet to do an action. Finally, I ended this matter by recreating all the jsp page to wicket page one by one. The html dan css structure were still usable. Just need reform the page with wicket style. Other things like form action servlet, link, etc are not much usable except the business logic. The way jsp do page templating (e.g. tiles or sitemesh) was also not usable. In wicket we do inheritance or border to do page templating. My conclusion, this is not an easy thing to do. But if you really want to, you really need to spent time to reform your presentation. It can be a pain if your project is huge size. I know I didn't share any solution here, just shared my thoughts. Hope others have solution for you. Cheers, Noven Sent from my BlackBerry® smartphone from Sinyal Bagus XL, Nyambung Teruuusss...! -Original Message- From: koha...@gmail.com koha...@gmail.com Date: Mon, 26 Sep 2011 15:06:42 To: users@wicket.apache.org Reply-To: users@wicket.apache.org Subject: Re: Servlet and Wicket I am asking this question because I have reviewed all the books published on Wicket including the recent Wicket Cookbook, I have not seen any examples of how you can replace JSP with Wicket. I want to use Wicket in my current project but it would be cost prohibitive if I have to discard all the Servlet implementation. Now, my question is, how easy would it be to replace the JSP code with Wicket code. Or to ask it another way. Is it possible to reuse my current Servlet code and integrate it with Wicket for the UI. It would help to see examples of how to integrate Servlet code with Wicket. I hope this helps clearify things a bit. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Servlet-and-Wicket-tp3844944p3845548.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: creating a textarea with a radiobutton using Listview
First I created one checkbox and one textfield for each line. And when the user selects the checkbox I was able to set the related boolean values succesfuly. But I needed to put a restriction. Only one checkbox can be selected to submit the form in the followıng structure. Textarea checkbox Textarea checkbox Textarea checkbox Textarea checkbox Do I have to implement some javascrıpt code to block selecting more than one checkboxes in a form? you may investigate the possibility to add ajax behavior (AjaxFormChoiceComponentUpdatingBehavior) to checkboxes, so that when selecting an item, the rest are deselected (iterating on items list, excluding current selected item, and updating selection (model) on others to false). So I decided to put radiobutton instead of checkboxes..So you are saying that this cant be done neither radiobuttons nor checkboxes. this is Boolean.FALSE, i didn't say so. just briefed conceptually when radios vs checkboxes are commonly used. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: creating a textarea with a radiobutton using Listview
adminRadioGroup.add(new Radio(radioCheck, new Model(item.getIndex()+1))); you are associating an integer model to radioCheck, and providing the item index to it: instead, associate a boolean model to it, with its default value to FALSE (or TRUE, depending on your business). adminRadioGroup.add(new Radio(radioCheck, new Model(Boolean.FALSE), adminRadioGroup)); On Wed, Sep 21, 2011 at 9:36 PM, wholalotta ardaas...@gmail.com wrote: Hi manuelbarzi, Thanks for the usefull websites I reviewed all of them and I tried the following. I created a radiogroup but still i can select all radiobuttons right now..I just want to be able to select one radiobutton and set the boolean attribute true in related NameWrapper object. And also right now still cant understand how can i set a boolean value with radio buttons? İt gives me the index value of the radiobutton when i submit the form...I am a little bir stuck and cannot go forward public class FormInput extends WebPage { public FormInput() { final FeedbackPanel feedback = new FeedbackPanel(feedback); add(feedback); add(new InputForm(inputForm)); } private class InputForm extends Form { private List data; public InputForm(String name) { super(name); // add some dummy data data = new ArrayList(); data.add(new NameWrapper()); data.add(new NameWrapper()); data.add(new NameWrapper()); data.add(new NameWrapper()); ListView listView = new ListView(list, data) { @Override protected void populateItem(ListItem item) { NameWrapper wrapper = (NameWrapper)item.getModelObject(); item.add(new TextArea(name, new PropertyModel(wrapper, name))); final RadioGroup adminRadioGroup = new RadioGroup(radiogroup, new PropertyModel(wrapper, selected)); item.add(adminRadioGroup); adminRadioGroup.add(new Radio(radioCheck, new Model(item.getIndex()+1))); } }; listView.setReuseItems(true); add(listView); } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/creating-a-textarea-with-a-radiobutton-using-Listview-tp3829602p3831177.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
Re: creating a textarea with a radiobutton using Listview
i guess you are trying to use a Radio like a CheckBox (selected = true / false) right? if this is the case, then why don't you just use a CheckBox and css-style it like a Radio? Radio-s are commonly used to select between two or more values, and that's why RadioGroup provides the capability to group as many Radio-s as needed. below [1] is the wiki example modified for you to test this point and recreate this idea. it works fine, and as you'll see, it provides a boolean selection (true / false), by making use of two Radio-s. [1] html: html head titleTest/title /head body form wicket:id=inputForm id=inputForm fieldset legendCheckbox test/legend span wicket:id=list span wicket:id=nametest/span span wicket:id=radiogroup input wicket:id=check1 type=radio / input wicket:id=check2 type=radio / /span br /span input type=submit value=save / /fieldset /form div span wicket:id=feedback / /div /body /html java: package com.mycompany.view.list; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import org.apache.wicket.feedback.IFeedback; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.CheckBox; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.Radio; import org.apache.wicket.markup.html.form.RadioGroup; import org.apache.wicket.markup.html.list.ListItem; import org.apache.wicket.markup.html.list.ListView; import org.apache.wicket.markup.html.panel.FeedbackPanel; import org.apache.wicket.model.Model; import org.apache.wicket.model.PropertyModel; /** input web page. */ public class RadioListPage extends WebPage { public RadioListPage() { final FeedbackPanel feedback = new FeedbackPanel(feedback); add(feedback); add(new InputForm(inputForm)); } /** form for processing the input. */ private class InputForm extends Form { // holds NameWrapper elements private List data; public InputForm(String name) { super(name); // add some dummy data data = new ArrayList(); data.add(new NameWrapper(one)); data.add(new NameWrapper(two)); data.add(new NameWrapper(three)); data.add(new NameWrapper(four)); // add a nested list view; as the list is nested in the form, the form will // update all FormComponent childs automatically. ListView listView = new ListView(list, data) { protected void populateItem(ListItem item) { NameWrapper wrapper = (NameWrapper)item.getModelObject(); item.add(new Label(name, wrapper.getName())); final RadioGroup radioGroup = new RadioGroup(radiogroup, new PropertyModel(wrapper, selected)); item.add(radioGroup); radioGroup.add(new Radio(check1, new Model(Boolean.TRUE), radioGroup)); radioGroup.add(new Radio(check2, new Model(Boolean.FALSE), radioGroup)); } }; listView.setReuseItems(true); add(listView); } public void onSubmit() { info(data: + data); // print current contents } } /** * name is the wrapped object that could be your business object. * the selected property is just here to record whether the checkbox for * it was selected. */ private class NameWrapper implements Serializable { private String name; private Boolean selected = Boolean.FALSE; public NameWrapper(String wrapped) { this.name = wrapped; } public Boolean getSelected() { return selected; } public void setSelected(Boolean selected) { this.selected = selected; } public String getName() { return name; } public void setName(String wrapped) { this.name = wrapped; } public String
Re: creating a textarea with a radiobutton using Listview
may repeaters usage help you https://cwiki.apache.org/WICKET/listview-and-other-repeaters.html . On Wed, Sep 21, 2011 at 1:08 PM, wholalotta ardaas...@gmail.com wrote: Hi, I want to create a form which contains textareas and radiobuttons line by line like; Textarea Radiobutton Textarea Radiobutton My object to fill via a form contains two fields; public Class Line () { private String textInput; private Boolean isSelected; } My aim is to take some input from the user for the textareas and force user to set the boolean attributes of the object attached to the form true for only one of them. When I use checkbox, there is one problem, user can check all checkboxes and set the related boolean value as true. To eliminate this, I need to use radio. But in this time, When I use radiogroup, it doesnt allow me to put textareas between wicket radigroup tags. Because right now I am adding the textareas into the form and it says me that i need to add all components to this radiogroup instead of form. I do not want to display radiobuttons as a row or as a column. I want one textarea and one radibutton next to it which the radiobuttons are in the same group. How can I create this structure by using ListView. Right now I am thinking to get Listitem index value of the selected radiobutton and use it in a switch to set the boolean values of the fields. Any comments? Thanks Arda -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/creating-a-textarea-with-a-radiobutton-using-Listview-tp3829602p3829602.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: creating a textarea with a radiobutton using Listview
see if this doc on ListView + Checkboxes may give you a hint https://cwiki.apache.org/WICKET/listview-with-checkboxes.html . On Wed, Sep 21, 2011 at 2:18 PM, wholalotta ardaas...@gmail.com wrote: Thanks but still couldnt figure out how will i set the boolean values according to the selected radiobutton in List? Can I do something with the index value? Is it stored in radiogroup that I attached my List into? Accessing the cell/row index: protected void populateItem(ListItem item) { // cell index item.getIndex(); // row index ((Item)item.getParent().getParent()).getIndex(); } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/creating-a-textarea-with-a-radiobutton-using-Listview-tp3829602p3829760.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: creating a textarea with a radiobutton using Listview
yet another example on RadioGroup with DataView repeater https://cwiki.apache.org/WICKET/using-radiogroups.html . On Wed, Sep 21, 2011 at 3:44 PM, manuelbarzi manuelba...@gmail.com wrote: see if this doc on ListView + Checkboxes may give you a hint https://cwiki.apache.org/WICKET/listview-with-checkboxes.html . On Wed, Sep 21, 2011 at 2:18 PM, wholalotta ardaas...@gmail.com wrote: Thanks but still couldnt figure out how will i set the boolean values according to the selected radiobutton in List? Can I do something with the index value? Is it stored in radiogroup that I attached my List into? Accessing the cell/row index: protected void populateItem(ListItem item) { // cell index item.getIndex(); // row index ((Item)item.getParent().getParent()).getIndex(); } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/creating-a-textarea-with-a-radiobutton-using-Listview-tp3829602p3829760.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: DI in wicket
see also org.apache.wicket.spring.common.web.ExampleApplication in wicket-examples On Mon, Sep 19, 2011 at 9:20 PM, Sven Meier s...@meiers.net wrote: see https://cwiki.apache.org/WICKET/spring.html On 09/19/2011 09:08 PM, sakthi vel wrote: Hi All, I would like to know how to use Dependency Injection of Spring in wicket to get the database connection. The datasource is configured in the DAO class using the applicationcontext.xml. Could you tell how to call the DAO class without creating the object in the Page class. Any examples or reference site would be of great help. - 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: Wicket 1.5: request mapper to make all urls absolute
https://cwiki.apache.org/WICKET/how-to-do-things-in-wicket.html . On Mon, Sep 19, 2011 at 1:57 AM, Bas Gooren b...@iswd.nl wrote: After quite a lot of searching and testing, I've finally been able to get things working. In the end, I was able to solve my problem in the most logical place, which once again shows how great Wicket is! I've created an AbsoluteUrlRenderer (which extends the default UrlRenderer). What is a good place to share this code so other wicket users can save themselves the time? Op 16-9-2011 1:20, schreef Bas Gooren: Ok, I've been playing around with this, and it doesn't work. WebPageRenderer#respond() compares the current url to the target url. The current url is always normalized (without context path), so if my absolute mapper generates a target url which is absolute, and as such includes the context path and the filter path, wicket initiates a redirect. Then, on the next request, the exact same thing happens, so we end up in a redirect loop. It appears that the only way to achieve what I want is to override the UrlRenderer and it's method #renderRelativeUrl(). Basically, all that is required there is to prefix the context path and filter path. Op 15-9-2011 1:58, schreef Igor Vaynberg: that sounds correct. essentially this is the same as running the url through requestcycle.geturlrenderer().**renderFullUrl(url) but with a different prefix -igor On Wed, Sep 14, 2011 at 4:54 PM, Bas Goorenb...@iswd.nl wrote: Hi, Another wicket 1.5 migration question: In 1.4 we created a IRequestCodingStrategy decorator which, in encode(), translates all urls to be absolute. We did this by checking if the url started with /, and if not, removing all occurrences of ../ and ./. To handle being behind a reverse proxy, the constructor optionally accepted a prefix which was always prepended. In 1.5 it seems this could be implemented as an IRequestMapper which decorates the root mapper. However, since we are passed a Url instead of a String, and a lot has changed surrounding url generation, what is the best way to make all urls absolute? I'm thinking: - check Url.isAbsolute() - remove segments which are .. or . - prepend prefix segments Is this the correct way? Sebastian --**--** - To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.5: request mapper to make all urls absolute
cool. may you add this how-to code-example for wicket 1.4 too? coincidentally, i may need it to test something here... ;-) On Mon, Sep 19, 2011 at 1:48 PM, Bas Gooren b...@iswd.nl wrote: Ok, I've added it. See https://cwiki.apache.org/**confluence/display/WICKET/**Request+mappinghttps://cwiki.apache.org/confluence/display/WICKET/Request+mapping Or https://cwiki.apache.org/**WICKET/request-mapping.htmlhttps://cwiki.apache.org/WICKET/request-mapping.htmlwhen it's updated. Thanks for the pointer. Op 19-9-2011 9:09, schreef manuelbarzi: https://cwiki.apache.org/**WICKET/how-to-do-things-in-**wicket.htmlhttps://cwiki.apache.org/WICKET/how-to-do-things-in-wicket.html . On Mon, Sep 19, 2011 at 1:57 AM, Bas Goorenb...@iswd.nl wrote: After quite a lot of searching and testing, I've finally been able to get things working. In the end, I was able to solve my problem in the most logical place, which once again shows how great Wicket is! I've created an AbsoluteUrlRenderer (which extends the default UrlRenderer). What is a good place to share this code so other wicket users can save themselves the time? Op 16-9-2011 1:20, schreef Bas Gooren: Ok, I've been playing around with this, and it doesn't work. WebPageRenderer#respond() compares the current url to the target url. The current url is always normalized (without context path), so if my absolute mapper generates a target url which is absolute, and as such includes the context path and the filter path, wicket initiates a redirect. Then, on the next request, the exact same thing happens, so we end up in a redirect loop. It appears that the only way to achieve what I want is to override the UrlRenderer and it's method #renderRelativeUrl(). Basically, all that is required there is to prefix the context path and filter path. Op 15-9-2011 1:58, schreef Igor Vaynberg: that sounds correct. essentially this is the same as running the url through requestcycle.geturlrenderer().renderFullUrl(url) but with a different prefix -igor On Wed, Sep 14, 2011 at 4:54 PM, Bas Goorenb...@iswd.nl wrote: Hi, Another wicket 1.5 migration question: In 1.4 we created a IRequestCodingStrategy decorator which, in encode(), translates all urls to be absolute. We did this by checking if the url started with /, and if not, removing all occurrences of ../ and ./. To handle being behind a reverse proxy, the constructor optionally accepted a prefix which was always prepended. In 1.5 it seems this could be implemented as an IRequestMapper which decorates the root mapper. However, since we are passed a Url instead of a String, and a lot has changed surrounding url generation, what is the best way to make all urls absolute? I'm thinking: - check Url.isAbsolute() - remove segments which are .. or . - prepend prefix segments Is this the correct way? Sebastian --**--** - To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.orghttp://apache.org users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Display HTML in Label with validation
sure, but you can try customizing it. inside it you can find interesting things like HtmlDocumentParser, which you can modify to accomplish your needs. it works with a raw html string document, as you may need. . On Fri, Sep 16, 2011 at 12:17 PM, Daniel Stoch daniel.st...@gmail.com wrote: Thanks for your suggestion. But I need to validate a fragment of HTML, but it seems that HtmlDocumentValidator validates only whole documents. From my point of view the following texts are valid HTML fragments: - This is sample text - bThis is/b sample pparagraph/p -- Daniel On Thu, Sep 15, 2011 at 5:31 PM, manuelbarzi manuelba...@gmail.com wrote: may HtmlDocumentValidator help you. . On Thu, Sep 15, 2011 at 5:05 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, How to display dynamic HTML content on page which can be invalid (because this HTML is entered by a user). I can use Label.setEscapeModelStrings(false), but with invalid HTML content the page will not be rendered (because of HTML parsing error). So maybe I can use some of standard Wicket mechanisms to parse this HTML first to check if I can display it on page? There are some parsers within framework... -- Daniel - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
static validators feedback unrendered on page with multiple forms and feedback filtered
hi, got the following composite: page |-form1 | |-field1 | | |-StringValidator.MaximumLengthValidator [1] | |-feedbackPanel1(ComponentFeedbackMessageFilter(form1) [3]) |-form2 |-field2 | |-StringValidator.MaximumLengthValidator [2] |-feedbackPanel2(ComponentFeedbackMessageFilter(form2) [4]) when explicitly calling whatever feedback method (info, error) on submit of form1/form2 feedback messages do render ok. but when static validators [1]/[2] apply, and not pass, feedback messages are not rendered, and output console is: WARN - WebSession - Component-targetted feedback message was left unrendered. This could be because you are missing a FeedbackPanel on the page. Message: ... this happens when constructing feedback panels with message filters [3]/[4], required to permit forms differenciation on feedback output. in other case, validators feedback messages are rendered ok, but repeated on both feedback panels, which is not desirable. should any other settings be applied on composite to render static validators results on these filtered feedback panels? thank you ps this is wicket 1.4.17 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: GAE, DataView and performance
may you execute the query db in IDataProvider.iterator, instead of populateItem. see IDataProvider javadoc. . On Thu, Sep 15, 2011 at 3:16 PM, Chris Merrill ch...@webperformance.com wrote: I'm using Objectify for datastore access in GAE, though the problem would be the same if I was using the datastore API directly. For optimal performance, Google recommends doing batch requests to the datastore whenever possible - they say making the requests in parallel is much faster than serial. They also recommend retrieving keys instead of the entire entity whenever you may not need each entity right away - such as for a paginated list. I've seen some posts indicating that the performance improvement can be a factory of 10x - e.g. serially fetching 20 items will be 20x a single fetch, but fetching them in parallel might only be 2x a single fetch. I'm having difficulty seeing how I would follow those recommendations when using a DataView with PagingNavigator. My initial query for all the entities in the list should be for the keys, since only a fraction of the entities will be displayed at a time. However, since populateItem() is called serially for each list item, I cannot batch the requests that resolve the keys to their entities. For best performance, I need to get a callback when a group of items will be rendered so that I can fetch them all at once - and then call populateItem() with the resulting items one at a time. I'm guessing I'll need to dig into DataView and extend it, or perhaps roll my own implementation? As an example, here is my current, non-optimal, implementation: ListKeyMyEntity keys = db.getMyEntityKeys(); DataViewKeyMyEntity list = new DataViewKeyMyEntity(entity_list, new ListDataProviderKeyMyEntity(keys) { protected void populateItem(final ItemKeyMyEntity item) { KeyMyEntity key = item.getModel().getObject(); MyEntity entity = db.getMyEntity(key); add components for the entity } } list.setItemsPerPage(20); add(list); add(new PagingNavigator(paginator, list); The optimized version would perhaps look something like the example below, which resolves all the keys to their entities in one method and then the populateItem() expects the entity, rather than the key: ListKeyMyEntity keys = db.getMyEntityKeys(); DataViewKeyMyEntity list = new DataViewKeyMyEntity(entity_list, new ListDataProviderKeyMyEntity(keys) { protected ListMyEntity getPageOfEntities(ListKeyMyEntity keys) { return db.getEntitiesForKeys(keys); } protected void populateItem(final ItemMyEntity item) { MyEntity entity = item.getModel().getObject(); add components for the entity } } list.setItemsPerPage(20); add(list); add(new PagingNavigator(paginator, list); Anyone have any suggestions how I can do this without essentially re-implementing DataView? I probably should have looked further into the DataView code before posting...but the Wicket community seems to have already solved every other problem I've come across, so I though I'd ask here first : TIA! Chris -- - Chris Merrill | Web Performance, Inc. ch...@webperformance.com | http://webperformance.com 919-433-1762 | 919-845-7601 Web Performance: Website Load Testing Software Services - - 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: Panel Loop
may you need a RepeatingView. see javadoc. . On Thu, Sep 15, 2011 at 5:10 PM, Fred smiths...@hotmail.com wrote: Hello, I have a panel to which I want to add multiple items. I have put it into a loop and as long as I have only one panel I am good, with more than one it errorsI get why it errors, it has a panel with that name already, however I have no idea how to solve this. Can I create a list of the EmployeePanel and then somehow merge them together and then add? Here is what I am trying to do: for(People person : searchResponse.getAll()) { for(Employees employee : person.getEmployees()) { for(District dis : person.getDistrict()) { form.add(new EmployeePanel(people, employee, dis)); // make this a list instead??? } } } //now merge EmployeePanel list and add? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Panel-Loop-tp3815879p3815879.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: Display HTML in Label with validation
may HtmlDocumentValidator help you. . On Thu, Sep 15, 2011 at 5:05 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, How to display dynamic HTML content on page which can be invalid (because this HTML is entered by a user). I can use Label.setEscapeModelStrings(false), but with invalid HTML content the page will not be rendered (because of HTML parsing error). So maybe I can use some of standard Wicket mechanisms to parse this HTML first to check if I can display it on page? There are some parsers within framework... -- Daniel - 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: Free wicket from component hierarchy hell
your proposal is to wicket, what auto-generating-java-servlet-code is to a JSP (~ what a tied-and-deciding-designer-code was to a programmer-code in the past) that is, simply going back to hell :) why don't you stay on JSP domain, instead, sir? On Tue, Nov 9, 2010 at 1:47 PM, Matthias Keller matthias.kel...@ergon.chwrote: Hi Martin Isn't this exactly the reason we've got CSS? HTML shouldn't really be used for lookfeel and the size and placement of components can perfectly be defined using CSS classes. Matt On 2010-11-09 13:34, Martin Makundi wrote: Also making skins for different devices / screen sizes becomes easier. ** Martin 2010/11/9 Vitaly Tsaplinvitaly.tsap...@gmail.com: In simple cases it makes no difference. It makes real difference with some complex widgets (for example search components) that must be reused on many pages and they should render differently on each page depending on how much space and what context they are in. I don't like duplicating code even if it is gui code. Sounds like the first appealing argument slowly comming out of surrounding fuzz =)
Re: Free wicket from component hierarchy hell
may it be enough just create an independent simple html-code-processor-to-wicket-java-code-tool, that would auto-generate that tedious code you would like to avoid? a simple java-class-processor-tool may help for that... possible an eclipse-wicket-plugin-tool, if it doesn't already exists... On Thu, Nov 4, 2010 at 11:13 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Can you see the matrix? ;) If you have: html form wicket:id=form input wicket:id=input .../ /form /html public class MyPage extends WebPage { public MyPage () { add(new Form(form)); add(new TextField(input, model)); // Wicket could automatically handle parse hierarchy from markup } } ** Martin 2010/11/5 Martin Makundi martin.maku...@koodaripalvelut.com: 1. I want freedom inside panels. 2. Doubly defined hierarhices are redundant. Server-side hierarchy can be automatically deduced from markup hierarcy. Such tasks should be done by COMPUTER. Not coder. ** Martin 2010/11/5 Jonathan Locke jonathan.lo...@gmail.com: I think if you find component hierarchies to be hell, you probably aren't using Wicket right. Break things down into small reusable chunks using Panels and you will find everything gets much, much easier. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Free-wicket-from-component-hierarchy-hell-tp3027705p3027881.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: Free wicket from component hierarchy hell
Martin, isn't it all a matter of principles towards keeping a correct separation of concerns? one of the nice things of wicket is that java-code (programmer) and html-code (designer) are quite independent. only watching a wicket-java-file does a programmer deduce the structure and behaviour of the corresponding view, both things, without fully depending on inspecting html for understanding it all, in most cases. so, would your proposal tie programmers to requiring to watch the html-code to understand structure instead of a self-contained java-code. that's what old-fashioned frameworks do... On Tue, Nov 9, 2010 at 5:08 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: @Carl-Erik Reason why I haven't commented your enabledInHierarchy comment is because it would not afect it in any way. I hope the proposition will be clear when we have it ready. We are working on Igor's proposal. It will be interesting to see how you propose not affecting something that depends on the hierarchy when you remove the hierarchy. Sorry for miscommunicating.. we are not removing hierarcy. We are trying to automatically nest the components according to the hierarchy defined in markup. ** Martin Carl-Eric www.wicketbuch.de - 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
automatically delete|clean disk|file|page|store on server crash|restart
how can old pagestore files be automatically deleted when server restarts? in a crash, for example, in which old sessions left their pagestore files on disk
Re: Help with Wicket Adoption Numbers
struts is as c what wicket is as java (still beyond c++)
Re: Help with Wicket Adoption Numbers
may you take into account the new wicket-like framework, Apache Click, too, just passing the incubator now... as another alternative to compare with, but also to show the tendency - and then the present and future - of web presentation frameworks... ;) On Mon, Jan 11, 2010 at 1:12 PM, Per Lundholm per.lundh...@gmail.comwrote: Since the PHB like to stay on the safe side of the fence, make them feel safe with Wicket. Tell successtories about Wicket. Tell failstories about other systems. :-) /Per On Mon, Jan 11, 2010 at 10:06 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Lester, Right now I'm in a similar situation: I'm working for a company that wants to (possibly) change from struts 1.X to something else and it is my job present the choices to the developers and managers, so that they can decide which will be the next framework the company will adopt for WEB development. I'm also trying to get Wicket adopted over the other candidates but that won't be easy... I fully agree with Jonathan: the only thing PHBs care about is theirs own personal interests... So, they pay special attention to keep themselves on the safe side of the fence. Cheers, Ernesto On Mon, Jan 11, 2010 at 8:17 AM, Lester Chua cicowic...@gmail.com wrote: Jonathan, Bingo, I think you may have hit it on the spot. Igor, I have not managed to get a reply on how they determined Struts2 to be better supported compared to Wicket. But I suspect the list of a approved technologies is not very updated. I.e. the evaluation was probably done 2 years ago. Thanks for all the responses. The anecdotes and points made were very helpful and have helped out get out of my depression over the weekend. And I have written a long and hopefully thoughtful reply to the technical committee and will keep you guys posted. Lester Jonathan Locke wrote: honestly, your response is too thoughtful. these pointy haired bosses are self-serving. they don't care about training costs or developer pain and they don't really care if their org runs efficiently. what they care about is that if there is a failure, their choice didn't cause it. which is why the old saying goes nobody ever got fired for buying IBM. same seems to go for struts. an idiotic technology choice, but you won't get fired for making the same idiotic choice everyone else is making. Loritsch, Berin C. wrote: But why choose an inferior technology just because of its adoption numbers? The pointy haired bosses that do this believe in their heart of hearts that if you choose the same technology everyone else is using that they can turn thinking developers for mindless drones. It has more to do with avoiding training costs and rational thought, and more to do with trying to turn software development into an assembly line process. Reality never fits this mold, but it doesn't stop the pointy haired boss from trying. In this respect they are eternal optimists. -Original Message- From: leo.erlands...@tyringe.com [mailto:leo.erlands...@tyringe.com] Sent: Friday, January 08, 2010 4:09 AM To: users@wicket.apache.org Subject: Re: Help with Wicket Adoption Numbers Hi, We also had the same consideration when we chose Wicket. But why choose an inferior technology just because of it's Adoption Numbers? Also, Wicket is becoming more and more popular as people see the light :) Check out Jobs Trends (Relative Growth) here (JSF vs Struts vs Wicket): http://www.indeed.com/jobtrends?q=Struts%2C+JSF%2C+Wicketl=relative=1 We have a couple of hundred customers and so far the feedback is great both from our Developers and our Software Architects. Customers like that the GUIs are faster due to the simplicity of Ajax Adoption in Wicket. I also know that several large privately held companies in Sweden are using Wicket, as well as large Government Agencies (e.g. the Swedish Immigration Office). Sincerely yours Leo Erlandsson - 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
DiskPageStore file increasing to max size by only refreshing a HomePage
Hi, - the scenario is this: jmeter stress-testing (10 simultaneous users with no ramp-up and an infinite-loop cycle) a wicket application (extends SpringWebApplication) by only refreshing the HomePage. - the result is: observing the disk, the pagemap file for each session (10 items), there is an infinite increasing (about 10kb each one) up to arriving the 10MB (default max size for diskpagestore). opening the pagemap file (text editor) there is a repetition of the same HomePage serialized infinite times til arriving the max size allowed for the file... - the question is: why is this happening? shouldn't the pagemap only store the new pages, but only conserving one reference to a page that was already serialized? why is it serializing the same page (HomePage) to the infinite?
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
the url is this: http://localhost:9090/test/
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
if this is the behaviour by default, then, how do you avoid a DoS attack? i mean, to put an example, if a simple app like this receives thousand of users just refreshing the home page, then the pagestore will be overloaded... may this become a disk I/O overhead and its other possible consequences.
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
hmmm... but we are talking about something very basic: the home page! there's no way to avoid repetition of this page in pagestore? i guess pagestore does not repeat other internal pages (with extended url - not home page - if their are correctly independent, no new object references inside on each reload and so on, let's say) by following internal rules (based on object state and references), why couldn't it be applied a similar mechanism for the home page? On Thu, Jan 7, 2010 at 2:31 PM, Matej Knopp matej.kn...@gmail.com wrote: You have the exact same problem with every stateful application. If you want to avoid a DoS attack (which isn't really always possible) you need a good firewall. -Matej On Thu, Jan 7, 2010 at 2:29 PM, manuelbarzi manuelba...@gmail.com wrote: if this is the behaviour by default, then, how do you avoid a DoS attack? i mean, to put an example, if a simple app like this receives thousand of users just refreshing the home page, then the pagestore will be overloaded... may this become a disk I/O overhead and its other possible consequences. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
that good be great! dos attack is very rude scenario? ok, a more realistic scenario would be - as happens here - an app that has a very huge amount of users during only one week per year (about 40k users connecting to this app for subscriptions and checking some personal information). let's say 1k users just have fun refreshing the site... would it be possible to control pagestore size based on session and loggged-in users?
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
about unversioned, i have just done a quick test on wicket-examples helloworld, adding serialVersionUID (not informed in the examples) and the result is the same: pagestore file increasing to the infinite (max size of course :) stateless page is next, but limitations in this scenario should be taken into account, as expressed here in some post of this thread... On Thu, Jan 7, 2010 at 2:58 PM, Wilhelmsen Tor Iver toriv...@arrive.nowrote: hmmm... but we are talking about something very basic: the home page! Have you set it unversioned? How about trying to make it stateless? - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
session.size - pagemaps.size = http-session.size?
is this rule approx true? as far as it's described in the javadoc: [1] org.apache.wicket.Session.getSizeInBytes() Size of this session, including all the pagemaps it contains [2] org.apache.wicket.PageMap.getSizeInBytes() Size of this page map in bytes, including a sum of the sizes of all the pages it contains. [3] org.apache.wicket.Session.getPageMaps() A list of all PageMaps in this session. so iterating on pages obtained by [3] and adding each size with [2], then substracting this result to [1], does it provide the accurate size of wicket-session in http-session?
Re: Wicket architecture diagram?
hi, i am preparing a wicket architecture document for a project and i need a preliminary diagram asap. what is the result, is the diagram presented here by Subbu already corrected (ended) and presented somewhere? it's very important for this document. thanks jWeekend wrote: Jeremy, Yes, if you believe showing model on such a high level architectural diagram meant to depict how the major components hang together, then you should show IModel instead of LDM for sure. And it's true that newcomers need to understand models and can find this concept hard to grasp if they have not seen this sort of pattern before, but you don't need to show everything in the one diagram. Another comment about the diagram(s) I feel would be most useful (ones I would have benefited from when I first luckily stumbled upon Wicket) is that there should be a clear distinction between static and dynamic features of the framework, for consistency and to avoid confusion for the reader. I think this is a good start and you can also see some of the Wiki entries syl put on the Wiki even before he was working with us, like http://cwiki.apache.org/WICKET/request-cycle-and-request-cycle-processor.html this one . Regards - Cemal http://jWeekend.com jWeekend Jeremy Thomerson-5 wrote: While I agree that you could take out LDM specifically, I really think that you should replace it with IModel - I think it is critical to show that IModel is the abstraction between a component and where it gets it's data. This is the number one misundertstood thing that I find among those I teach. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Mar 26, 2009 at 6:44 AM, jWeekend jweekend_for...@cabouge.comwrote: Subbu, Thank you! I have a quick minute now, so I thought you'd appreciate a few crumbs of feedback before I can take a better look, hopefully late this evening. 0 - this is a great start! 1 - take out the LDM - this stretches the scope of the diagram beyond what it needs to show. 2 - if the level of abstraction is at a level which includes validators/converters etc (possibly form processing is better elaborated in a child diagram) ... I think we need to mention FormComponent explicitly. More soon, and I hope this will draw some comments from core devs and application developers. Regards - Cemal http://jWeekend.com jWeekend subbu_tce wrote: Based on my understanding, i just prepared a diagram. Wicket Contributors.. Please review and let me know your valuable feedback. http://www.nabble.com/file/p22717793/wicket%2Barchitecture.jpg Thanks, Subbu. jWeekend wrote: Jeremy, It's one of the first things I looked for when I first stumbled upon Wicket 2 years ago, and it is a common request from many architects and even some project managers evaluating Wicket. If the core devs come up with some rough (but correct) sketch they're all agreed on, even if it's just a first iteration, I'll get someone here to create a professional (maybe even glossy) version from that. Regards - Cemal http://jWeekend.com jWeekend Jeremy Thomerson-5 wrote: Has anyone done a nice Wicket architecture diagram? I know about the architecture chapter in WiA, but someone I know is looking for something more along the lines of: http://www.icesoft.com/developer_guides/icefaces/htmlguide/devguide/sys_architecture.html http://www.ociweb.com/jnb/jsfArchitecture.jpg Unfortunately, I'm no artist - so I can't help him much. I was hoping someone had already done something similar as part of a presentation somewhere. -- Jeremy Thomerson http://www.wickettraining.com -- View this message in context: http://www.nabble.com/Wicket-architecture-diagram--tp22683704p22720354.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 -- View this message in context: http://www.nabble.com/Wicket-architecture-diagram--tp22683704p23572347.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 features security plans for next version... already ended?
Hi, at wicket features security there is a mention about: There are plans for the next version of Wicket to add URL encryption to support highly secure web sites. is this already ended? please, let me know asap, i am preparing an architecture documentation to justify wicket at this point. thank you.
wicket features security plans for next version... already ended?
Hi, at wicket features security there is a mention about: There are plans for the next version of Wicket to add URL encryption to support highly secure web sites. is this already ended? please, let me know asap, i am preparing an architecture documentation to justify wicket at this point. thank you.
wicket features scalability, clustering plans for next version... already ended?
hi, again regarding wicket features scalability, clustering there is a mention about: The next version of Wicket will support client-side models for zero-state scalability. is this already released? please, let me know asap. thank you.