Re: [Wicket-user] error(...) No page found for component
copy on write has the advantage when it comes to iterating over the list. Only a real advantage when there would be many threads/ many reads, and adding is more expensive with this list. I would be surprised if this list gives a better performance. But we can benchmark it. Another disadvantage is that the Iterator of that list doesn't allow remove. Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] error(...) No page found for component
well, we do a lot of iterations. anytime formcomponent.isvalid() is called we iterate over messages to see if there are any for that component. in my apps that is called a couple of times per formcomponent per request. i went with copyonwrite because the iterator isnt synced at all. we dont selectively remove messages anywhere, so iterator.remove() not being supported is not a big deal for me. but of course if you profile it and get a better performance with something else feel free to change it, i just went with whatever i thought was going to give the best performance without doing any testing. -igor On 3/31/07, Eelco Hillenius [EMAIL PROTECTED] wrote: copy on write has the advantage when it comes to iterating over the list. Only a real advantage when there would be many threads/ many reads, and adding is more expensive with this list. I would be surprised if this list gives a better performance. But we can benchmark it. Another disadvantage is that the Iterator of that list doesn't allow remove. Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] AjaxFormSubmitBehavior : which event to use ?
Hi I'm using an AjaxFormSubmitBehavior to render a little indicator on the ongoing Ajax request. I've done it this way : class AjaxFormSubmitIndicator extends AjaxFormSubmitBehavior implements IAjaxIndicatorAware { public AjaxFormSubmitIndicator() { super(UserInscriptionForm.this, onclick); } public String getAjaxIndicatorMarkupId() { return imgContainer.getMarkupId(); } @Override protected void onSubmit(AjaxRequestTarget target) { target.addComponent(imgContainer); } } However, I've the image shown each time the user click somewhere on the form. It's really brief, for sure, but still it's kind of misleading/annoying. Moreover, I'm using a AjaxSubmitButton to submit this form. Can something be done to show the image indicator from it ? thanks in advance ZedroS - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] error(...) No page found for component
well, we do a lot of iterations. anytime formcomponent.isvalid() is called we iterate over messages to see if there are any for that component. in my apps that is called a couple of times per formcomponent per request. i went with copyonwrite because the iterator isnt synced at all. Ok, maybe I underestimated the number of reads. Didn't do any testing either. we dont selectively remove messages anywhere, so iterator.remove() not being supported is not a big deal for me. We would if we go for the idea of having all messages in the session. Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Radio.getValue?
On 4/1/07, Nino Wael [EMAIL PROTECTED] wrote: I do know that radio and check are directly attached to their imodel. But the imodel does not provide an alternate value for them. I just dont see why not to provide an ichoicerender on these components when providing it for the radiochoice and dropdown choice. ichoicerenderer exists for two reasons. one is to generate an id so that a specific imodel can be picked out of a list of imodels. two so that you can convert model object into some user string to display to the user. NEITHER of these apply to radio, so radio will not have an ichoicerenderer. We have no way of controlling the value of the radios when using this component. yes, you are not meant to have control over it - it is an implementation detail of that component. And since we cant overide the getValue we are either stuck or need to use another component. But that implicates some redesign, and it's a little late for that now on our project at least. why do people keep bring up arguments like this? it is very annoying. is it our fault that you are in this situation? you put yourself there. now you expect us to make our component worse for all our users so that you can get out of a corner you painted yourself into? Hmm this maybe something for wicket-stuff or extensions then.. or for your own code tree. it is easy to copy/paste radio into your own code and remove whatever final is in your way. since your code is imported first on the classpath it will simply override whatever wicket has, given you do not change package name and class name. -igor regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Igor Vaynberg Sent: Fri 30-03-2007 17:15 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Radio.getValue? radio and check do not take an ichoicerenderer because they do not need it. they do not traverse over a list of choices and try to look one up, they have the choice attached directly to them via imodel. -igor On 3/30/07, Nino Wael [EMAIL PROTECTED] wrote: That was whý I suggested that we could have another constructor that took an Ichoicerender. There are tons of places in other wicket core components that supply a constructor that takes the ichoicerender. SO I think it should be ok? I would really like that ichoicerenderer would be supported by every component where it makes sense... Should we move this do the dev list? regards Nino Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg Sendt: to 29-03-2007 19:11 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Radio.getValue? On 3/29/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Looking at that code, I don't understand why we even need: private short uuid = -1; as there is no code other than in getValue that changes the value, and that value can just be recreated everytime it is needed (as it is nothing more than a call to getPage().getAutoIndex()). Am I missing something here? yes, you are missing the fact that getautoindex() increments the index on every call that is why we cache it in the uuid var. WDYT? personally i dont like making getvalue non-final. this will patch this component for this kind of testing, but what about other components that do not have a stable name? are we going to have to start opening implementation details on all of them just because users want to test it with something static like httpunit? just my 2c. -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
[Wicket-user] Using existing jsp components
I'm trying to utilize Wicket in a new application. We initially were going to use jsf and decided to utilize wicket for its cleaner architecture and development model. Although, the abstraction from jsp is great, I'm now faced with the difficulty of having a bunch of reusable jsp tag libraries/components that I'd like to utilize. Short of requiring me to write a custom component that replicates the jsp tag library functionality, what would be the best way (and fastest due to time constraints) to integrate a current jsp tag library into a wicket application. Ilya - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] specifying html template
Hi, We all know that in Wicket for a given ExampleView.java we have an ExampleView.html associated markup. How can I dynamically specify the HTML template from my Java page? I'm exceptionally needing this: if (product.getReference().equals(C25-L)) { // trigger some code to use C25-L.html *instead* of ExampleView.html } I tried playing with setMarkupStream and newMarkupResourceStream but still no success. Didn't seem that complex, but I'm lost here. Any hints? Thanks! Francisco ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] specifying html template
there is an example of custom markup loading in wicket-examples. you might also want to search the list for getvariation() to see if that will fit your usecase -igor On 4/1/07, Francisco Treacy [EMAIL PROTECTED] wrote: Hi, We all know that in Wicket for a given ExampleView.java we have an ExampleView.html associated markup. How can I dynamically specify the HTML template from my Java page? I'm exceptionally needing this: if (product.getReference().equals(C25-L)) { // trigger some code to use C25-L.html *instead* of ExampleView.html } I tried playing with setMarkupStream and newMarkupResourceStream but still no success. Didn't seem that complex, but I'm lost here. Any hints? Thanks! Francisco -- Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponseshttp://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com . - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] specifying html template
I answer myself: VARIATIONS! Thanks anyway, Keep on with good work, Francisco - Message d'origine De : Francisco Treacy [EMAIL PROTECTED] À : wicket-user@lists.sourceforge.net Envoyé le : Dimanche, 1 Avril 2007, 22h35mn 33s Objet : specifying html template Hi, We all know that in Wicket for a given ExampleView.java we have an ExampleView.html associated markup. How can I dynamically specify the HTML template from my Java page? I'm exceptionally needing this: if (product.getReference().equals(C25-L)) { // trigger some code to use C25-L.html *instead* of ExampleView.html } I tried playing with setMarkupStream and newMarkupResourceStream but still no success. Didn't seem that complex, but I'm lost here. Any hints? Thanks! Francisco Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses. ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] complex user case
I have had a look at the AutoCompleteTextField component and although it looks promising, it will require some extended functionality. In particular if the getChoices(String input) method only returns one choice, then that value should be entered into the test field. What is the best approach to do this? Should I extend the AutoCompleteTextField to change AutoCompleteBehavior behaviour (presumably by changing the OnRequest(..) method somehow . Or should I add some Javascript magic to my Html Page (for me Javascript is pure magic!) What comes close is Wicket's autocompletion field. It works just like google's autocompletion. It is quite flexible and easy to use. Regards, Erik. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Radio.getValue?
I do know that radio and check are directly attached to their imodel. But the imodel does not provide an alternate value for them. I just dont see why not to provide an ichoicerender on these components when providing it for the radiochoice and dropdown choice. We have no way of controlling the value of the radios when using this component. And since we cant overide the getValue we are either stuck or need to use another component. But that implicates some redesign, and it's a little late for that now on our project at least. Hmm this maybe something for wicket-stuff or extensions then.. regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Igor Vaynberg Sent: Fri 30-03-2007 17:15 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Radio.getValue? radio and check do not take an ichoicerenderer because they do not need it. they do not traverse over a list of choices and try to look one up, they have the choice attached directly to them via imodel. -igor On 3/30/07, Nino Wael [EMAIL PROTECTED] wrote: That was whý I suggested that we could have another constructor that took an Ichoicerender. There are tons of places in other wicket core components that supply a constructor that takes the ichoicerender. SO I think it should be ok? I would really like that ichoicerenderer would be supported by every component where it makes sense... Should we move this do the dev list? regards Nino Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg Sendt: to 29-03-2007 19:11 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Radio.getValue? On 3/29/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Looking at that code, I don't understand why we even need: private short uuid = -1; as there is no code other than in getValue that changes the value, and that value can just be recreated everytime it is needed (as it is nothing more than a call to getPage().getAutoIndex()). Am I missing something here? yes, you are missing the fact that getautoindex() increments the index on every call that is why we cache it in the uuid var. WDYT? personally i dont like making getvalue non-final. this will patch this component for this kind of testing, but what about other components that do not have a stable name? are we going to have to start opening implementation details on all of them just because users want to test it with something static like httpunit? just my 2c. -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user winmail.dat- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user