Re: Scala DSL for Wicket
Just wanted to share my experience playing a little more with Scala and Wicket> A few minutes ago I got this excelent code: I know it is too simple, and it can be accomplished as well in Java with static imports. But still, for my project it's being great (and cool) to do such things. object btnEditar extends Button("btnEditar") { override def onSubmit() = { -/* show fields */ -camposForm.setVisibilityAllowed(true) -btnSalvar.setVisibilityAllowed(true) -cancelar.setVisibilityAllowed(true) - -/* hide them */ -camposTela.setVisibilityAllowed(false) -btnEditar.setVisibilityAllowed(false) +show(camposForm, btnSalvar, cancelar) +hide(camposTela, btnEditar) } } add(btnEditar) Methods show/hide are imported as "import code.DSLWicket._" *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Wed, Jul 27, 2011 at 4:53 PM, Bruno Borges wrote: > Thanks Martin, > > There was only a small little problem in your code. The correct syntax is: > > def label[T](id: String, model: IModel[T] = null): Label = { val label > = new Label(id, model); add(label); label } > > The suggestions were updated on Gist. > > *Bruno Borges* > www.brunoborges.com.br > +55 21 76727099 > > > > On Wed, Jul 27, 2011 at 3:55 PM, Martin Grigorov wrote: > >> Idea for simplification: use named parameters. >> For example >> def label[T](id: String, model: IModel[T]): Label = { val label = new >> Label(id, model); add(label); label } >> would become >> def label[T](id: String, model = _ : IModel[T]): Label = { val label = >> new Label(id, model); add(label); label } >> >> this way you'll have just one declaration of label function which will >> handle the current three >> >> additionally you may add a pimp: >> implicit def ser2model[S :< Serializable](ser: S): IModel[S] = >> Model.of(ser) >> >> now even when you pass String as second param to label() it will be >> converted to IModel >> >> On Wed, Jul 27, 2011 at 9:11 PM, Martin Grigorov >> wrote: >> > Take a look at scala.swing.* sources. >> > >> > On Wed, Jul 27, 2011 at 8:34 PM, Bruno Borges >> wrote: >> >> Can some Scala expert help me to make this DSL available as PML (pimp >> my >> >> library)? >> >> >> >> I've tried to code it that way but things didn't quite worked out the >> way >> >> they should. >> >> >> >> The reason is that for every Wicket object I create, I must extend the >> trait >> >> DSLWicket >> >> >> >> >> >> >> >> *Bruno Borges* >> >> www.brunoborges.com.br >> >> +55 21 76727099 >> >> >> >> >> >> >> >> On Wed, Jul 27, 2011 at 2:30 PM, Bruno Borges > >wrote: >> >> >> >>> Not really. >> >>> >> >>> The method onSubmit() of button is void, as well onClick(), so there's >> no >> >>> need for the function be passed as () => Unit or anything else. >> >>> >> >>> I made a few changes to it and updated on Gist. >> >>> >> >>> I've also uploaded a page that uses this DSL at >> >>> https://gist.github.com/1109919 >> >>> >> >>> Take a look >> >>> >> >>> *Bruno Borges* >> >>> www.brunoborges.com.br >> >>> +55 21 76727099 >> >>> >> >>> >> >>> >> >>> On Wed, Jul 27, 2011 at 2:22 PM, Scott Swank > >wrote: >> >>> >> I think you do want Unit, which as I understand it is closest >> equivalent to "void" in Scala. >> >> http://www.scala-lang.org/api/current/scala/Unit.html >> >> Scott >> >> On Wed, Jul 27, 2011 at 10:14 AM, Bruno Borges < >> bruno.bor...@gmail.com> >> wrote: >> > No, the function must return void, not another function (unit). >> > >> > But there's also the option of () => Nothing. Which one should I >> use for >> > this case? >> > >> > *Bruno Borges* >> > www.brunoborges.com.br >> > +55 21 76727099 >> > >> > >> > >> > On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov < >> mgrigo...@apache.org >> >wrote: >> > >> >> def button(id: String, submit: () => Void): Button = { >> >> >> >> it should be () => Unit, no ? >> >> >> >> On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov < >> mgrigo...@apache.org >> > >> >> wrote: >> >> > Adding some usage examples at the bottom will help us evaluate >> it. >> >> > >> >> > Why not add type to >> >> > def textField(id: String): TextField[_] = { val field = new >> >> > TextField(id); add(field); field } >> >> > to become >> >> > def textField[T](id: String): TextField[T] = { val field = new >> >> > TextField[T](id); add(field); field } >> >> > >> >> > usage: textField[Int](someId) >> >> > >> >> > with using implicit Manifest for T you can also can >> automatically set >> >> > the type: field.setType(m.erasure) >> >> > >> >> > On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges < >> bruno.bor...@gmail.com> >> >> wrote: >> >> >> I've been playing with Wicket and Scala and I thought this >> could be >> >> added t
Re: wicketstuff tinymce development
W dniu 2011-07-27 17:27, jbrookover pisze: Michal Letynski wrote: Is here anyone who is currently doing something with tinymce wicketstuff project ? I saw that in current version we are not able to add more then one instance of tiny in one page. I've recently made some commits to the tinymce wicketstuff package on GitHub, if you want to call that "currently doing something." :) You are certainly able to add more than one instance on a page. We use this package heavily throughout our applications and it works well, including Ajax, spellcheck, and multiple configuration settings. You can do this with current implementation ? Or you did some changes ? According to: http://tinymce.moxiecode.com/tryit/multiple_configs.php Mode should be switched to "textareas" our current implementation provide "exact" only. Jake -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketstuff-tinymce-development-tp3698059p3698489.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: Technical Limit on Mount Points
On my own investigation :- WebRequestCodingStrategy$MountsMap : /** backing map */ private final TreeMapmap; ... that decides the data structure for the mounts, imo/ - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Technical-Limit-on-Mount-Points-tp3699113p3700408.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 and xml
I will store data in xml files and then store it in database when I retrieve it again, I have to use XSLT to transform it to xhtml file. Whether, i have to use wicket+java for the transformation in the server side or by using javascript in client side. Since both of them are applicable what to chose which will be the most efficient one. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-and-xml-tp3700330p3700331.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
wicket and xml
I have to manage content for that i am planning to use xml and cms. I will store xml documents in the database. So, i am wondering how can a cms help since we have to edit only xml files. So what to do. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-and-xml-tp3700330p3700330.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: How can i get inline styles of div in runtime?
I guess the simplest way is to encode the property you want in the AJAX callback URL. e.g. someComponent.add(new AjaxEventBehavior("someEvent") { protected void onEvent(AjaxRequestTarget target) { String encodedPropertyValue = getRequest().getQueryParameters().getParameterValue("parameter").toString(); } public CharSequence getCallbackUrl() { return super.getCallbackUrl() + "¶meter='+Wicket.$(\"" + someComponent.getMarkupId() + "\").someProperty+'"; } }); On Wed, Jul 27, 2011 at 11:57 AM, accord wrote: > Hi, > > For example, i did something with my div by javascripts and changed it's > width, height, left, top or others attributes. > So, how can i get this values in wicket : width=x .. ? for example by click > button or when it's some event come: onmouseup, but the event not of this > div, the event from some other component. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/How-can-i-get-inline-styles-of-div-in-runtime-tp3698773p3698773.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 > > -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Validation problem - OnError event everytime I submit
Are you adding the feedback panel to the ajax request target in,both onSubmit and onError? If so, it should tell you what error is making you get to the onError method. On 2011 7 27 21:50, "phaedoland" wrote: > Hello everyone, > > I'm a newbie using this wicket framework. I'm developing a user registration > form, which works quite fine. But when it comes to validate certain fields, > there is no way to have this form behaving as I wish. > > My textfields are simple *TextField* and some of them have the > *setRequired *set to true. I also have an *AjaxButton *which submits the > form. To show the validation messages, I use the *FeedbackPanel*, but I want > to show a message next to each invalid field. > > This button has the the *onSubmit *and *onError *methods overriden. > > The thing is, once I submit the form and there is a validation error, even > if I fulfill all the fields, I get the same error. (onError method is always > called). > > Please, could you help me? > > Thank you very much. > > Daniel. > > > -- > View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validation-problem-OnError-event-everytime-I-submit-tp3696379p3696379.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 >
How can i get inline styles of div in runtime?
Hi, For example, i did something with my div by javascripts and changed it's width, height, left, top or others attributes. So, how can i get this values in wicket : width=x .. ? for example by click button or when it's some event come: onmouseup, but the event not of this div, the event from some other component. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-can-i-get-inline-styles-of-div-in-runtime-tp3698773p3698773.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
Validation problem - OnError event everytime I submit
Hello everyone, I'm a newbie using this wicket framework. I'm developing a user registration form, which works quite fine. But when it comes to validate certain fields, there is no way to have this form behaving as I wish. My textfields are simple *TextField* and some of them have the *setRequired *set to true. I also have an *AjaxButton *which submits the form. To show the validation messages, I use the *FeedbackPanel*, but I want to show a message next to each invalid field. This button has the the *onSubmit *and *onError *methods overriden. The thing is, once I submit the form and there is a validation error, even if I fulfill all the fields, I get the same error. (onError method is always called). Please, could you help me? Thank you very much. Daniel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validation-problem-OnError-event-everytime-I-submit-tp3696379p3696379.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: RFC: Ten things every Wicket programmer must know?
My Top 10 (some already mentioned): 1. Use LoadableDetachableModels 2. DefaultModels get detached otherwise you need to detach your model manually (as Dan mentioned) 3. Setup components to pull in their data and state, typically via models. This includes pulling in a components isVisible/enables/list entries 4. Feel comfortable with anonymous inner classes, the inline code helps readability, just don't get so comfortable you never refactor it into its own separate class once it gets large (if it doesn't fit on your screen anymore) 5. Make sure your component hierarchy matches your markup hierarchy: did you add the component in your java code? Did you add it to the correct parent (form, repeater, page)? 6. Understand the Form processing lifecycle: Check required, converter, validation, update models, onSubmit/onError. 7. Using Ajax? Understand the difference between AjaxEventBehavior and AjaxFormComponentUpdatingBehavior (the second triggers form processing on the field) 8. Clean up your page layout using markup inheritance 9. The covariant get() methods for WebApplication and Session are super useful, create your own version in your own Application and Session to clean up your class casts. 10. Speaking of cleaning up casts... using Generics on your components (and models) are worth it. And feel free to use if there is no underlying model or object (I typically do that with Links, Buttons and simple Forms that I'm not setting a specific model on). These things are all fresh in my mind since I'm teaching Wicket this week. ;) Good luck on the article Jeremy! -Clint On Wed, Jul 27, 2011 at 8:46 PM, Dan Retzlaff wrote: > 1. Wicket's IOC integrations are really easy to get started with, but there > are some gotchas. Since they inject serializable proxies* *to dependencies > instead of the dependencies themselves, the dependency gets > retrieved/created from Guice/Spring each time a page is deserialized. > Therefore, it's very important that you never inject anything that's meant > to maintain state across requests. This took a while for us to learn. > > 2. Also related to serialization, after one year of working with Wicket I > have a new fear/respect for the "final" keyword on local variables. > Generally speaking, any non-trivial, non-Component object should not be > serialized and should therefore not be marked final and used by an > anonymous > inner class. Alarm bells start going off for me when I see that a developer > has made such an object final. > > 3. Setting a default model on a component means it will get detached for > you. If you have a model that isn't any component's default model, you need > to detach it yourself. > > Good luck with your article! > > Dan > > On Wed, Jul 27, 2011 at 4:30 PM, Ben Tilford wrote: > > > 1. How "static" resources work. For a newcomer this can be > > shocking/frustrating. > > 2. Models are a context that holds a reference to a model. > > > > > > On Wed, Jul 27, 2011 at 5:21 PM, Scott Swank > > wrote: > > > > > Jeremy, > > > > > > I just threw together the following, which indicates that at least to > > > me Models are worth 3 of your 10 items. > > > > > > 1. Most components have a backing object of some sort. This object is > > > referenced via a Model. Significantly, the type of the component and > > > the model match (e.g. Label has an IModel). > > > 2. These objects live in the session and are managed in the session by > > > wicket, so that when the component goes out of scope the object is > > > removed from the session by wicket. > > > 3. Because domain objects are often too large to store in the session > > > there is a LoadableDetachableModel that is responsible for loading the > > > object whenever it is needed in a request and then flushing it at the > > > end of the request via detach(). > > > > > > Cheers, > > > Scott > > > > > > On Wed, Jul 27, 2011 at 3:29 PM, Jeremy Thomerson > > > wrote: > > > > Hello all, > > > > > > > > I'm writing an article for a Java magazine and would like to include > > in > > > it > > > > a list of "ten things every Wicket programmer must know". Of course, > I > > > have > > > > my list, but I'd be very curious to see what you think should be on > > that > > > > list from your own experience. Or, put another way, maybe the > question > > > > would be "what I wished I knew when I started Wicket" - what tripped > > you > > > up > > > > or what made you kick yourself later? > > > > > > > > Please reply back if you have input. Please note that by replying, > > you > > > > are granting me full permission to use your response as part of my > > > article > > > > without any attribution or payment. If you disagree with those > terms, > > > > please respond anyway but in your response mention your own terms. > > > > > > > > Best regards, > > > > > > > > -- > > > > Jeremy Thomerson > > > > http://wickettraining.com > > > > *Need a CMS for Wicket?
Re: RFC: Ten things every Wicket programmer must know?
Hi! I don't recall who the author is and the page is currently down (500 server error), but http://www.small-improvements.com/10-things-about-apache-wicket-i-love is a post I enjoyed reading earlier this year. Regards, Bertrand On 27/07/2011 6:29 PM, Jeremy Thomerson wrote: Hello all, I'm writing an article for a Java magazine and would like to include in it a list of "ten things every Wicket programmer must know". Of course, I have my list, but I'd be very curious to see what you think should be on that list from your own experience. Or, put another way, maybe the question would be "what I wished I knew when I started Wicket" - what tripped you up or what made you kick yourself later? Please reply back if you have input. Please note that by replying, you are granting me full permission to use your response as part of my article without any attribution or payment. If you disagree with those terms, please respond anyway but in your response mention your own terms. Best regards, - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice updates onchange event.
Show the code for savedReportsDropDownList. I suspect you aren't using a Model. Also a couple of tweaks to your code. Your calls to 'setChoices' indicate a 'pushing data' approach. Like you are setting the lists in those components instead of using models there to. I think that is where you are hitting your snag. Include the html for your 'displaySortingPanel' please. -Clint On Wed, Jul 27, 2011 at 4:19 PM, Archana wrote: > private DropDownChoice > savedReportsDropDown;savedReportsDropDown = new > > DropDownChoice("profileDropDown",savedReportsDropDownList); > savedReportsDropDown.setChoiceRenderer(new > ChoiceRenderer("reportName", "cstmReportId")); > savedReportsDropDown.setOutputMarkupId(true); > savedReportsDropDown.setOutputMarkupPlaceholderTag(true); > savedReportsDropDown.add(new AjaxFormComponentUpdatingBehavior("onchange"){ > > >private static final long serialVersionUID = 1L; > >@Override >protected void onUpdate(AjaxRequestTarget target) { > >try { > TrackingProfileVO trackingProfileVOFromDB = gets the value from > DB. > > > trackingProfileVO.setReportLabel(trackingProfileVOFromDB.getReportLabel()); > > trackingProfileVO.setProfileDesc(trackingProfileVOFromDB.getProfileDesc()); > > > trackingProfileVO.setShipmentSearch(trackingProfileVOFromDB.getShipmentSearch()); > trackingProfileVO.getLstSelectedSHVReportColumn().clear(); > > > trackingProfileVO.getLstSelectedSHVReportColumn().addAll(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); > trackingProfileVO.getSortFirstColumnList().clear(); > trackingProfileVO.getSortSecondColumnList().clear(); > trackingProfileVO.getSortThirdColumnList().clear(); > > > trackingProfileVO.getSortFirstColumnList().addAll(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); > > > trackingProfileVO.getSortSecondColumnList().addAll(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); > > > trackingProfileVO.getSortThirdColumnList().addAll(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); > > trackingProfileVO.setShareFlag(trackingProfileVOFromDB.isShareFlag()); > shareFlag.setDefaultModel(new > Model(trackingProfileVOFromDB.isShareFlag())); > if(trackingProfileVOFromDB.getResultsPerPage() != null){ > > > trackingProfileVO.setResultsPerPage(trackingProfileVOFromDB.getResultsPerPage()); > resultsPerPage.setModel(new > Model(trackingProfileVOFromDB.getResultsPerPage())); > } > > > trackingProfileVO.getLstSHVReportColumn().removeAll(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); > > > > > displaySortingPanel.getSortFirst().setChoices(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); > > > displaySortingPanel.getSortSecond().setChoices(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); > > > displaySortingPanel.getSortThird().setChoices(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); > > trackingProfileVO.setSortFirst(trackingProfileVOFromDB.getSortFirst()); > > trackingProfileVO.setSortSecond(trackingProfileVOFromDB.getSortSecond()); > > trackingProfileVO.setSortThird(trackingProfileVOFromDB.getSortThird()); > displaySortingPanel.getSortFirst().setDefaultModel(new > Model(trackingProfileVO.getSortFirst())); > displaySortingPanel.getSortSecond().setDefaultModel(new > Model(trackingProfileVO.getSortSecond())); > displaySortingPanel.getSortThird().setDefaultModel(new > Model(trackingProfileVO.getSortThird())); > displaySortingPanel.setDefaultModel(new > Model(trackingProfileVO)); > target.appendJavascript("Ricola.init( '#" + > displaySortingPanel.getMarkupId()+ "' );"); > > target.appendJavascript("Ricola.init( '#" + > displaySortingPanel.getSortFirst().getMarkupId()+ "' );"); > target.appendJavascript("Ricola.init( '#" + > displaySortingPanel.getSortSecond().getMarkupId()+ "' );"); > target.appendJavascript("Ricola.init( '#" + > displaySortingPanel.getSortThird().getMarkupId()+ "' );"); > > target.addComponent(displaySortingPanel.getSortFirst()); > target.addComponent(displaySortingPanel.getSortSecond()); > target.addComponent(displaySortingPanel.getSortThird()); > > target.addComponent(displaySortingPanel); > target.addComponent(form); >} catch (SHVServiceException e) { > >LOG.error("createSavedReportsDropDown() : Exception",e); >} > > >} > >@Override >protected IAjaxCallDecorator getAjaxCallDecorator() { > >return new AjaxCallDecorator() { >private static final long serialVersionUID = 1L; > >@Override >public CharSequence decorateScript(CharSequence script) { > >final StringBuffer scriptBuffer = new StringBuffer(); > > scriptBuffer.append("Ricola.page.showPleaseWait('Processing');"); >scriptBuffer.ap
Re: RFC: Ten things every Wicket programmer must know?
1. Wicket's IOC integrations are really easy to get started with, but there are some gotchas. Since they inject serializable proxies* *to dependencies instead of the dependencies themselves, the dependency gets retrieved/created from Guice/Spring each time a page is deserialized. Therefore, it's very important that you never inject anything that's meant to maintain state across requests. This took a while for us to learn. 2. Also related to serialization, after one year of working with Wicket I have a new fear/respect for the "final" keyword on local variables. Generally speaking, any non-trivial, non-Component object should not be serialized and should therefore not be marked final and used by an anonymous inner class. Alarm bells start going off for me when I see that a developer has made such an object final. 3. Setting a default model on a component means it will get detached for you. If you have a model that isn't any component's default model, you need to detach it yourself. Good luck with your article! Dan On Wed, Jul 27, 2011 at 4:30 PM, Ben Tilford wrote: > 1. How "static" resources work. For a newcomer this can be > shocking/frustrating. > 2. Models are a context that holds a reference to a model. > > > On Wed, Jul 27, 2011 at 5:21 PM, Scott Swank > wrote: > > > Jeremy, > > > > I just threw together the following, which indicates that at least to > > me Models are worth 3 of your 10 items. > > > > 1. Most components have a backing object of some sort. This object is > > referenced via a Model. Significantly, the type of the component and > > the model match (e.g. Label has an IModel). > > 2. These objects live in the session and are managed in the session by > > wicket, so that when the component goes out of scope the object is > > removed from the session by wicket. > > 3. Because domain objects are often too large to store in the session > > there is a LoadableDetachableModel that is responsible for loading the > > object whenever it is needed in a request and then flushing it at the > > end of the request via detach(). > > > > Cheers, > > Scott > > > > On Wed, Jul 27, 2011 at 3:29 PM, Jeremy Thomerson > > wrote: > > > Hello all, > > > > > > I'm writing an article for a Java magazine and would like to include > in > > it > > > a list of "ten things every Wicket programmer must know". Of course, I > > have > > > my list, but I'd be very curious to see what you think should be on > that > > > list from your own experience. Or, put another way, maybe the question > > > would be "what I wished I knew when I started Wicket" - what tripped > you > > up > > > or what made you kick yourself later? > > > > > > Please reply back if you have input. Please note that by replying, > you > > > are granting me full permission to use your response as part of my > > article > > > without any attribution or payment. If you disagree with those terms, > > > please respond anyway but in your response mention your own terms. > > > > > > Best regards, > > > > > > -- > > > Jeremy Thomerson > > > http://wickettraining.com > > > *Need a CMS for Wicket? Use Brix! http://brixcms.org* > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > >
Re: RFC: Ten things every Wicket programmer must know?
1. How "static" resources work. For a newcomer this can be shocking/frustrating. 2. Models are a context that holds a reference to a model. On Wed, Jul 27, 2011 at 5:21 PM, Scott Swank wrote: > Jeremy, > > I just threw together the following, which indicates that at least to > me Models are worth 3 of your 10 items. > > 1. Most components have a backing object of some sort. This object is > referenced via a Model. Significantly, the type of the component and > the model match (e.g. Label has an IModel). > 2. These objects live in the session and are managed in the session by > wicket, so that when the component goes out of scope the object is > removed from the session by wicket. > 3. Because domain objects are often too large to store in the session > there is a LoadableDetachableModel that is responsible for loading the > object whenever it is needed in a request and then flushing it at the > end of the request via detach(). > > Cheers, > Scott > > On Wed, Jul 27, 2011 at 3:29 PM, Jeremy Thomerson > wrote: > > Hello all, > > > > I'm writing an article for a Java magazine and would like to include in > it > > a list of "ten things every Wicket programmer must know". Of course, I > have > > my list, but I'd be very curious to see what you think should be on that > > list from your own experience. Or, put another way, maybe the question > > would be "what I wished I knew when I started Wicket" - what tripped you > up > > or what made you kick yourself later? > > > > Please reply back if you have input. Please note that by replying, you > > are granting me full permission to use your response as part of my > article > > without any attribution or payment. If you disagree with those terms, > > please respond anyway but in your response mention your own terms. > > > > Best regards, > > > > -- > > Jeremy Thomerson > > http://wickettraining.com > > *Need a CMS for Wicket? Use Brix! http://brixcms.org* > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: RFC: Ten things every Wicket programmer must know?
Jeremy, I just threw together the following, which indicates that at least to me Models are worth 3 of your 10 items. 1. Most components have a backing object of some sort. This object is referenced via a Model. Significantly, the type of the component and the model match (e.g. Label has an IModel). 2. These objects live in the session and are managed in the session by wicket, so that when the component goes out of scope the object is removed from the session by wicket. 3. Because domain objects are often too large to store in the session there is a LoadableDetachableModel that is responsible for loading the object whenever it is needed in a request and then flushing it at the end of the request via detach(). Cheers, Scott On Wed, Jul 27, 2011 at 3:29 PM, Jeremy Thomerson wrote: > Hello all, > > I'm writing an article for a Java magazine and would like to include in it > a list of "ten things every Wicket programmer must know". Of course, I have > my list, but I'd be very curious to see what you think should be on that > list from your own experience. Or, put another way, maybe the question > would be "what I wished I knew when I started Wicket" - what tripped you up > or what made you kick yourself later? > > Please reply back if you have input. Please note that by replying, you > are granting me full permission to use your response as part of my article > without any attribution or payment. If you disagree with those terms, > please respond anyway but in your response mention your own terms. > > Best regards, > > -- > Jeremy Thomerson > http://wickettraining.com > *Need a CMS for Wicket? Use Brix! http://brixcms.org* > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: resource problem..
A quick solution, in case anyone's interested: 1) In your HTML: replace your stylesheet reference as below. 2) In your Java: add(new StyleSheetReference("stylesheet", SomeClass.class, "file.css")); 3) The .CSS file and the SomeClass.java must be in the same folder. Replace with any class which resides in the same folder as the .CSS file. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/resource-problem-tp3697765p3700056.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: url for images from database
This works for me, in case anyone's interested in a simple solution. I have a ListView which outputs Books (their Title, Author, etc., and also a Book Image which is a JPG stored in a DB), all per row, based on a POJO called "Book" which stores all this info. "Book" also has a byte[] for the Image field. add(new ListView("books", books) { @Override protected void populateItem(ListItem li) { Book b = (Book) li.getModelObject(); li.add(new Label("bookId", b.getBookId().toString())); li.add(new Label("bookTitle", b.getBookTitle())); li.add(new Label("bookAuthors", b.getBookAuthors())); li.add(new Label("bookPrice", Integer.toString(b.getBookPrice(; // add book image ByteArrayResource resourceBookImg = new ByteArrayResource("image/jpeg", b.getBookImg()); TechBooksApplication.get().getSharedResources().add("img" + li.getIndex(), resourceBookImg); Image imgBook = new Image("bookImg", resourceBookImg); li.add(imgBook); } }); Maybe this isn't quite what Miroslav wants, but for me I don't need to re-format URLs, so this is working fine for me. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/url-for-images-from-database-tp3657615p3700046.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
RFC: Ten things every Wicket programmer must know?
Hello all, I'm writing an article for a Java magazine and would like to include in it a list of "ten things every Wicket programmer must know". Of course, I have my list, but I'd be very curious to see what you think should be on that list from your own experience. Or, put another way, maybe the question would be "what I wished I knew when I started Wicket" - what tripped you up or what made you kick yourself later? Please reply back if you have input. Please note that by replying, you are granting me full permission to use your response as part of my article without any attribution or payment. If you disagree with those terms, please respond anyway but in your response mention your own terms. Best regards, -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
Re: resource problem..
Sorry, but where should this renderHead() be overridden? I am working with a WebPage, and I couldn't find an overridable method there. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/resource-problem-tp3697765p3699932.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: DropDownChoice updates onchange event.
Here is the code: private DropDownChoice savedReportsDropDown; savedReportsDropDown = new DropDownChoice("profileDropDown",savedReportsDropDownList); savedReportsDropDown.setChoiceRenderer(new ChoiceRenderer("reportName", "cstmReportId")); savedReportsDropDown.setOutputMarkupId(true); savedReportsDropDown.setOutputMarkupPlaceholderTag(true); savedReportsDropDown.add(new AjaxFormComponentUpdatingBehavior("onchange"){ private static final long serialVersionUID = 1L; @Override protected void onUpdate(AjaxRequestTarget target) { try { TrackingProfileVO trackingProfileVOFromDB = gets the value from DB. trackingProfileVO.setReportLabel(trackingProfileVOFromDB.getReportLabel()); trackingProfileVO.setProfileDesc(trackingProfileVOFromDB.getProfileDesc()); trackingProfileVO.setShipmentSearch(trackingProfileVOFromDB.getShipmentSearch()); trackingProfileVO.getLstSelectedSHVReportColumn().clear(); trackingProfileVO.getLstSelectedSHVReportColumn().addAll(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); trackingProfileVO.getSortFirstColumnList().clear(); trackingProfileVO.getSortSecondColumnList().clear(); trackingProfileVO.getSortThirdColumnList().clear(); trackingProfileVO.getSortFirstColumnList().addAll(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); trackingProfileVO.getSortSecondColumnList().addAll(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); trackingProfileVO.getSortThirdColumnList().addAll(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); trackingProfileVO.setShareFlag(trackingProfileVOFromDB.isShareFlag()); shareFlag.setDefaultModel(new Model(trackingProfileVOFromDB.isShareFlag())); if(trackingProfileVOFromDB.getResultsPerPage() != null){ trackingProfileVO.setResultsPerPage(trackingProfileVOFromDB.getResultsPerPage()); resultsPerPage.setModel(new Model(trackingProfileVOFromDB.getResultsPerPage())); } trackingProfileVO.getLstSHVReportColumn().removeAll(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); displaySortingPanel.getSortFirst().setChoices(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); displaySortingPanel.getSortSecond().setChoices(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); displaySortingPanel.getSortThird().setChoices(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); trackingProfileVO.setSortFirst(trackingProfileVOFromDB.getSortFirst()); trackingProfileVO.setSortSecond(trackingProfileVOFromDB.getSortSecond()); trackingProfileVO.setSortThird(trackingProfileVOFromDB.getSortThird()); displaySortingPanel.getSortFirst().setDefaultModel(new Model(trackingProfileVO.getSortFirst())); displaySortingPanel.getSortSecond().setDefaultModel(new Model(trackingProfileVO.getSortSecond())); displaySortingPanel.getSortThird().setDefaultModel(new Model(trackingProfileVO.getSortThird())); displaySortingPanel.setDefaultModel(new Model(trackingProfileVO)); target.appendJavascript("Ricola.init( '#" + displaySortingPanel.getMarkupId()+ "' );"); target.appendJavascript("Ricola.init( '#" + displaySortingPanel.getSortFirst().getMarkupId()+ "' );"); target.appendJavascript("Ricola.init( '#" + displaySortingPanel.getSortSecond().getMarkupId()+ "' );"); target.appendJavascript("Ricola.init( '#" + displaySortingPanel.getSortThird().getMarkupId()+ "' );"); target.addComponent(displaySortingPanel.getSortFirst()); target.addComponent(displaySortingPanel.getSortSecond()); target.addComponent(displaySortingPanel.getSortThird()); target.addComponent(displaySortingPanel); target.addComponent(form); } catch (SHVServiceException e) { LOG.error("createSavedReportsDropDown() : Exception",e); } } @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { private static final long serialVersionUID = 1L; @Override public CharSequence decorateScript(CharSequence script) { final StringBuffer scriptBuffer = new StringBuffer(); scriptBuffer.append("Ricola.page.showPleaseWait('Processing');"); scriptBuffer.append(script); return scriptBuffer.toString(); } }; } }); - Thanks & Regards, Archana
Re: DropDownChoice updates onchange event.
private DropDownChoice savedReportsDropDown;savedReportsDropDown = new DropDownChoice("profileDropDown",savedReportsDropDownList); savedReportsDropDown.setChoiceRenderer(new ChoiceRenderer("reportName", "cstmReportId")); savedReportsDropDown.setOutputMarkupId(true); savedReportsDropDown.setOutputMarkupPlaceholderTag(true); savedReportsDropDown.add(new AjaxFormComponentUpdatingBehavior("onchange"){ private static final long serialVersionUID = 1L; @Override protected void onUpdate(AjaxRequestTarget target) { try { TrackingProfileVO trackingProfileVOFromDB = gets the value from DB. trackingProfileVO.setReportLabel(trackingProfileVOFromDB.getReportLabel()); trackingProfileVO.setProfileDesc(trackingProfileVOFromDB.getProfileDesc()); trackingProfileVO.setShipmentSearch(trackingProfileVOFromDB.getShipmentSearch()); trackingProfileVO.getLstSelectedSHVReportColumn().clear(); trackingProfileVO.getLstSelectedSHVReportColumn().addAll(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); trackingProfileVO.getSortFirstColumnList().clear(); trackingProfileVO.getSortSecondColumnList().clear(); trackingProfileVO.getSortThirdColumnList().clear(); trackingProfileVO.getSortFirstColumnList().addAll(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); trackingProfileVO.getSortSecondColumnList().addAll(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); trackingProfileVO.getSortThirdColumnList().addAll(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); trackingProfileVO.setShareFlag(trackingProfileVOFromDB.isShareFlag()); shareFlag.setDefaultModel(new Model(trackingProfileVOFromDB.isShareFlag())); if(trackingProfileVOFromDB.getResultsPerPage() != null){ trackingProfileVO.setResultsPerPage(trackingProfileVOFromDB.getResultsPerPage()); resultsPerPage.setModel(new Model(trackingProfileVOFromDB.getResultsPerPage())); } trackingProfileVO.getLstSHVReportColumn().removeAll(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); displaySortingPanel.getSortFirst().setChoices(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); displaySortingPanel.getSortSecond().setChoices(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); displaySortingPanel.getSortThird().setChoices(trackingProfileVOFromDB.getLstSelectedSHVReportColumn()); trackingProfileVO.setSortFirst(trackingProfileVOFromDB.getSortFirst()); trackingProfileVO.setSortSecond(trackingProfileVOFromDB.getSortSecond()); trackingProfileVO.setSortThird(trackingProfileVOFromDB.getSortThird()); displaySortingPanel.getSortFirst().setDefaultModel(new Model(trackingProfileVO.getSortFirst())); displaySortingPanel.getSortSecond().setDefaultModel(new Model(trackingProfileVO.getSortSecond())); displaySortingPanel.getSortThird().setDefaultModel(new Model(trackingProfileVO.getSortThird())); displaySortingPanel.setDefaultModel(new Model(trackingProfileVO)); target.appendJavascript("Ricola.init( '#" + displaySortingPanel.getMarkupId()+ "' );"); target.appendJavascript("Ricola.init( '#" + displaySortingPanel.getSortFirst().getMarkupId()+ "' );"); target.appendJavascript("Ricola.init( '#" + displaySortingPanel.getSortSecond().getMarkupId()+ "' );"); target.appendJavascript("Ricola.init( '#" + displaySortingPanel.getSortThird().getMarkupId()+ "' );"); target.addComponent(displaySortingPanel.getSortFirst()); target.addComponent(displaySortingPanel.getSortSecond()); target.addComponent(displaySortingPanel.getSortThird()); target.addComponent(displaySortingPanel); target.addComponent(form); } catch (SHVServiceException e) { LOG.error("createSavedReportsDropDown() : Exception",e); } } @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { private static final long serialVersionUID = 1L; @Override public CharSequence decorateScript(CharSequence script) { final StringBuffer scriptBuffer = new StringBuffer(); scriptBuffer.append("Ricola.page.showPleaseWait('Processing');"); scriptBuffer.append(script); return scriptBuffer.toString(); } }; } }); - Thanks & Regards, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-up
Re: DropDownChoice updates onchange event.
Hi, attach the code from onUpdate(AjaxRequestTarget target) method. This should be responsible of changing order. I mean to say before the onUpdate was executed the DropDownChoice contains in the order of (A, B, C, D). But after the execution of onUpdate() the DropDownChoice contains in the order of (D, B, A, C) which is totally a new order. I have not updated the sequence of the elements. But still the order changed. How can I make the DropDownChoice to diaplay the elements in the order of (A, B, C, D). - Thanks& Regards, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699383.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: DropDownChoice updates onchange event.
The DropDownChoice should respect the list sequence, show some code so we can track the source of the problem. On Wed, Jul 27, 2011 at 3:16 PM, Archana wrote: > I mean to say before the onUpdate was executed the DropDownChoice contains in > the order of (A, B, C, D). > But after the execution of onUpdate() the DropDownChoice contains in the > order of (D, B, A, C) which is totally a new order. I have not updated the > sequence of the elements. But still the order changed. How can I make the > DropDownChoice to diaplay the elements in the order of (A, B, C, D). > > - > Thanks & Regards, > Archana > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699383.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 > > -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Scala DSL for Wicket
Thanks Martin, There was only a small little problem in your code. The correct syntax is: def label[T](id: String, model: IModel[T] = null): Label = { val label = new Label(id, model); add(label); label } The suggestions were updated on Gist. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Wed, Jul 27, 2011 at 3:55 PM, Martin Grigorov wrote: > Idea for simplification: use named parameters. > For example > def label[T](id: String, model: IModel[T]): Label = { val label = new > Label(id, model); add(label); label } > would become > def label[T](id: String, model = _ : IModel[T]): Label = { val label = > new Label(id, model); add(label); label } > > this way you'll have just one declaration of label function which will > handle the current three > > additionally you may add a pimp: > implicit def ser2model[S :< Serializable](ser: S): IModel[S] = > Model.of(ser) > > now even when you pass String as second param to label() it will be > converted to IModel > > On Wed, Jul 27, 2011 at 9:11 PM, Martin Grigorov > wrote: > > Take a look at scala.swing.* sources. > > > > On Wed, Jul 27, 2011 at 8:34 PM, Bruno Borges > wrote: > >> Can some Scala expert help me to make this DSL available as PML (pimp my > >> library)? > >> > >> I've tried to code it that way but things didn't quite worked out the > way > >> they should. > >> > >> The reason is that for every Wicket object I create, I must extend the > trait > >> DSLWicket > >> > >> > >> > >> *Bruno Borges* > >> www.brunoborges.com.br > >> +55 21 76727099 > >> > >> > >> > >> On Wed, Jul 27, 2011 at 2:30 PM, Bruno Borges >wrote: > >> > >>> Not really. > >>> > >>> The method onSubmit() of button is void, as well onClick(), so there's > no > >>> need for the function be passed as () => Unit or anything else. > >>> > >>> I made a few changes to it and updated on Gist. > >>> > >>> I've also uploaded a page that uses this DSL at > >>> https://gist.github.com/1109919 > >>> > >>> Take a look > >>> > >>> *Bruno Borges* > >>> www.brunoborges.com.br > >>> +55 21 76727099 > >>> > >>> > >>> > >>> On Wed, Jul 27, 2011 at 2:22 PM, Scott Swank >wrote: > >>> > I think you do want Unit, which as I understand it is closest > equivalent to "void" in Scala. > > http://www.scala-lang.org/api/current/scala/Unit.html > > Scott > > On Wed, Jul 27, 2011 at 10:14 AM, Bruno Borges < > bruno.bor...@gmail.com> > wrote: > > No, the function must return void, not another function (unit). > > > > But there's also the option of () => Nothing. Which one should I use > for > > this case? > > > > *Bruno Borges* > > www.brunoborges.com.br > > +55 21 76727099 > > > > > > > > On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov < > mgrigo...@apache.org > >wrote: > > > >> def button(id: String, submit: () => Void): Button = { > >> > >> it should be () => Unit, no ? > >> > >> On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov < > mgrigo...@apache.org > > > >> wrote: > >> > Adding some usage examples at the bottom will help us evaluate > it. > >> > > >> > Why not add type to > >> > def textField(id: String): TextField[_] = { val field = new > >> > TextField(id); add(field); field } > >> > to become > >> > def textField[T](id: String): TextField[T] = { val field = new > >> > TextField[T](id); add(field); field } > >> > > >> > usage: textField[Int](someId) > >> > > >> > with using implicit Manifest for T you can also can automatically > set > >> > the type: field.setType(m.erasure) > >> > > >> > On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges < > bruno.bor...@gmail.com> > >> wrote: > >> >> I've been playing with Wicket and Scala and I thought this could > be > >> added to > >> >> the wicket-scala project at WicketStuff. > >> >> > >> >> What do you guys think? > >> >> > >> >> https://gist.github.com/1109603 > >> >> > >> >> > >> >> *Bruno Borges* > >> >> www.brunoborges.com.br > >> >> +55 21 76727099 > >> >> > >> > > >> > > >> > > >> > -- > >> > Martin Grigorov > >> > jWeekend > >> > Training, Consulting, Development > >> > http://jWeekend.com > >> > > >> > >> > >> > >> -- > >> 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.
Re: url for images from database
I guess my question is a little simpler than Miroslav's because I don't need to modify the URLs. I don't need to mount anything. I just need a dynamic image display from a byte[], I don't care which URL Wicket uses. How can I construct a DynamicImageResource from a byte[], and give it to the Wicket Image component? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/url-for-images-from-database-tp3657615p3699594.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: Scala DSL for Wicket
I started on something sililar about a month ago. Havnt had time to work on it for a few weeks but maybe it would be usable by someone. https://github.com/btilford/wicketstuff-core/branches/scala-wicket-builder There's also a groovy builder if you browse my other repos. sent from mobile On Jul 27, 2011 12:56 PM, "Martin Grigorov" wrote: > Idea for simplification: use named parameters. > For example > def label[T](id: String, model: IModel[T]): Label = { val label = new > Label(id, model); add(label); label } > would become > def label[T](id: String, model = _ : IModel[T]): Label = { val label = > new Label(id, model); add(label); label } > > this way you'll have just one declaration of label function which will > handle the current three > > additionally you may add a pimp: > implicit def ser2model[S :< Serializable](ser: S): IModel[S] = Model.of(ser) > > now even when you pass String as second param to label() it will be > converted to IModel > > On Wed, Jul 27, 2011 at 9:11 PM, Martin Grigorov wrote: >> Take a look at scala.swing.* sources. >> >> On Wed, Jul 27, 2011 at 8:34 PM, Bruno Borges wrote: >>> Can some Scala expert help me to make this DSL available as PML (pimp my >>> library)? >>> >>> I've tried to code it that way but things didn't quite worked out the way >>> they should. >>> >>> The reason is that for every Wicket object I create, I must extend the trait >>> DSLWicket >>> >>> >>> >>> *Bruno Borges* >>> www.brunoborges.com.br >>> +55 21 76727099 >>> >>> >>> >>> On Wed, Jul 27, 2011 at 2:30 PM, Bruno Borges wrote: >>> Not really. The method onSubmit() of button is void, as well onClick(), so there's no need for the function be passed as () => Unit or anything else. I made a few changes to it and updated on Gist. I've also uploaded a page that uses this DSL at https://gist.github.com/1109919 Take a look *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Wed, Jul 27, 2011 at 2:22 PM, Scott Swank wrote: > I think you do want Unit, which as I understand it is closest > equivalent to "void" in Scala. > > http://www.scala-lang.org/api/current/scala/Unit.html > > Scott > > On Wed, Jul 27, 2011 at 10:14 AM, Bruno Borges > wrote: > > No, the function must return void, not another function (unit). > > > > But there's also the option of () => Nothing. Which one should I use for > > this case? > > > > *Bruno Borges* > > www.brunoborges.com.br > > +55 21 76727099 > > > > > > > > On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov < mgrigo...@apache.org > >wrote: > > > >> def button(id: String, submit: () => Void): Button = { > >> > >> it should be () => Unit, no ? > >> > >> On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov < mgrigo...@apache.org > > > >> wrote: > >> > Adding some usage examples at the bottom will help us evaluate it. > >> > > >> > Why not add type to > >> > def textField(id: String): TextField[_] = { val field = new > >> > TextField(id); add(field); field } > >> > to become > >> > def textField[T](id: String): TextField[T] = { val field = new > >> > TextField[T](id); add(field); field } > >> > > >> > usage: textField[Int](someId) > >> > > >> > with using implicit Manifest for T you can also can automatically set > >> > the type: field.setType(m.erasure) > >> > > >> > On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges < > bruno.bor...@gmail.com> > >> wrote: > >> >> I've been playing with Wicket and Scala and I thought this could be > >> added to > >> >> the wicket-scala project at WicketStuff. > >> >> > >> >> What do you guys think? > >> >> > >> >> https://gist.github.com/1109603 > >> >> > >> >> > >> >> *Bruno Borges* > >> >> www.brunoborges.com.br > >> >> +55 21 76727099 > >> >> > >> > > >> > > >> > > >> > -- > >> > Martin Grigorov > >> > jWeekend > >> > Training, Consulting, Development > >> > http://jWeekend.com > >> > > >> > >> > >> > >> -- > >> 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 >> > > > > -- > Martin Grigorov > jWeekend > Training, Con
Re: DropDownChoice updates onchange event.
I am using a Arraylist. - Thanks & Regards, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699493.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: Scala DSL for Wicket
Idea for simplification: use named parameters. For example def label[T](id: String, model: IModel[T]): Label = { val label = new Label(id, model); add(label); label } would become def label[T](id: String, model = _ : IModel[T]): Label = { val label = new Label(id, model); add(label); label } this way you'll have just one declaration of label function which will handle the current three additionally you may add a pimp: implicit def ser2model[S :< Serializable](ser: S): IModel[S] = Model.of(ser) now even when you pass String as second param to label() it will be converted to IModel On Wed, Jul 27, 2011 at 9:11 PM, Martin Grigorov wrote: > Take a look at scala.swing.* sources. > > On Wed, Jul 27, 2011 at 8:34 PM, Bruno Borges wrote: >> Can some Scala expert help me to make this DSL available as PML (pimp my >> library)? >> >> I've tried to code it that way but things didn't quite worked out the way >> they should. >> >> The reason is that for every Wicket object I create, I must extend the trait >> DSLWicket >> >> >> >> *Bruno Borges* >> www.brunoborges.com.br >> +55 21 76727099 >> >> >> >> On Wed, Jul 27, 2011 at 2:30 PM, Bruno Borges wrote: >> >>> Not really. >>> >>> The method onSubmit() of button is void, as well onClick(), so there's no >>> need for the function be passed as () => Unit or anything else. >>> >>> I made a few changes to it and updated on Gist. >>> >>> I've also uploaded a page that uses this DSL at >>> https://gist.github.com/1109919 >>> >>> Take a look >>> >>> *Bruno Borges* >>> www.brunoborges.com.br >>> +55 21 76727099 >>> >>> >>> >>> On Wed, Jul 27, 2011 at 2:22 PM, Scott Swank wrote: >>> I think you do want Unit, which as I understand it is closest equivalent to "void" in Scala. http://www.scala-lang.org/api/current/scala/Unit.html Scott On Wed, Jul 27, 2011 at 10:14 AM, Bruno Borges wrote: > No, the function must return void, not another function (unit). > > But there's also the option of () => Nothing. Which one should I use for > this case? > > *Bruno Borges* > www.brunoborges.com.br > +55 21 76727099 > > > > On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov >>> >wrote: > >> def button(id: String, submit: () => Void): Button = { >> >> it should be () => Unit, no ? >> >> On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov >>> > >> wrote: >> > Adding some usage examples at the bottom will help us evaluate it. >> > >> > Why not add type to >> > def textField(id: String): TextField[_] = { val field = new >> > TextField(id); add(field); field } >> > to become >> > def textField[T](id: String): TextField[T] = { val field = new >> > TextField[T](id); add(field); field } >> > >> > usage: textField[Int](someId) >> > >> > with using implicit Manifest for T you can also can automatically set >> > the type: field.setType(m.erasure) >> > >> > On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges < bruno.bor...@gmail.com> >> wrote: >> >> I've been playing with Wicket and Scala and I thought this could be >> added to >> >> the wicket-scala project at WicketStuff. >> >> >> >> What do you guys think? >> >> >> >> https://gist.github.com/1109603 >> >> >> >> >> >> *Bruno Borges* >> >> www.brunoborges.com.br >> >> +55 21 76727099 >> >> >> > >> > >> > >> > -- >> > Martin Grigorov >> > jWeekend >> > Training, Consulting, Development >> > http://jWeekend.com >> > >> >> >> >> -- >> 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 > -- 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
Re: url for images from database
Fresh new description how to do that in Wicket 1.5: http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ On Tue, Jul 26, 2011 at 3:38 PM, eugenebalt wrote: > I have the exact same problem. I have Images coming from the DB, along with > other stuff, and I need to display them, per row, as , similar to how > Amazon.com lists their books next to book title, etc. > > Is there an easy way to do it? Very common problem. Can someone show what > the HTML and Java should look like to support this dynamic image display? > > Thanks > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/url-for-images-from-database-tp3657615p3695546.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 > > -- 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
Re: DropDownChoice updates onchange event.
I am using a List. - Thanks & Regards, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699387.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: DropDownChoice updates onchange event.
I mean to say before the onUpdate was executed the DropDownChoice contains in the order of (A, B, C, D). But after the execution of onUpdate() the DropDownChoice contains in the order of (D, B, A, C) which is totally a new order. I have not updated the sequence of the elements. But still the order changed. How can I make the DropDownChoice to diaplay the elements in the order of (A, B, C, D). - Thanks & Regards, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699383.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: DropDownChoice updates onchange event.
What type of collection are you using in the model object? On Wed, Jul 27, 2011 at 2:09 PM, Martin Grigorov wrote: > I didn't see the question. > > On Wed, Jul 27, 2011 at 8:42 PM, Archana.AA > wrote: > > Hi All, > > > > I am using a DropDownChoice with a list of values. The choice list come > from > > DB in a sorted order. > > When I new AjaxFormComponentUpdatingBehavior("onchange") event, the > > onUpdate(AjaxRequestTarget target) method is excecuted and it updates > some > > values. After this method executed, choice list is sequence in the > > DropDownChoice changes. I am not updating the sequence any where in the > > onUpdate(). > > > > I am very new to wicket. So I am not able to understand where I am going > > wrong. Please help me out to resolve this. > > > > Thanks in advance. > > > > - > > Thanks, > > Archana > > -- > > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699271.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 > > > > > > > > -- > 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 > >
Re: Scala DSL for Wicket
Take a look at scala.swing.* sources. On Wed, Jul 27, 2011 at 8:34 PM, Bruno Borges wrote: > Can some Scala expert help me to make this DSL available as PML (pimp my > library)? > > I've tried to code it that way but things didn't quite worked out the way > they should. > > The reason is that for every Wicket object I create, I must extend the trait > DSLWicket > > > > *Bruno Borges* > www.brunoborges.com.br > +55 21 76727099 > > > > On Wed, Jul 27, 2011 at 2:30 PM, Bruno Borges wrote: > >> Not really. >> >> The method onSubmit() of button is void, as well onClick(), so there's no >> need for the function be passed as () => Unit or anything else. >> >> I made a few changes to it and updated on Gist. >> >> I've also uploaded a page that uses this DSL at >> https://gist.github.com/1109919 >> >> Take a look >> >> *Bruno Borges* >> www.brunoborges.com.br >> +55 21 76727099 >> >> >> >> On Wed, Jul 27, 2011 at 2:22 PM, Scott Swank wrote: >> >>> I think you do want Unit, which as I understand it is closest >>> equivalent to "void" in Scala. >>> >>> http://www.scala-lang.org/api/current/scala/Unit.html >>> >>> Scott >>> >>> On Wed, Jul 27, 2011 at 10:14 AM, Bruno Borges >>> wrote: >>> > No, the function must return void, not another function (unit). >>> > >>> > But there's also the option of () => Nothing. Which one should I use for >>> > this case? >>> > >>> > *Bruno Borges* >>> > www.brunoborges.com.br >>> > +55 21 76727099 >>> > >>> > >>> > >>> > On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov >> >wrote: >>> > >>> >> def button(id: String, submit: () => Void): Button = { >>> >> >>> >> it should be () => Unit, no ? >>> >> >>> >> On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov >> > >>> >> wrote: >>> >> > Adding some usage examples at the bottom will help us evaluate it. >>> >> > >>> >> > Why not add type to >>> >> > def textField(id: String): TextField[_] = { val field = new >>> >> > TextField(id); add(field); field } >>> >> > to become >>> >> > def textField[T](id: String): TextField[T] = { val field = new >>> >> > TextField[T](id); add(field); field } >>> >> > >>> >> > usage: textField[Int](someId) >>> >> > >>> >> > with using implicit Manifest for T you can also can automatically set >>> >> > the type: field.setType(m.erasure) >>> >> > >>> >> > On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges < >>> bruno.bor...@gmail.com> >>> >> wrote: >>> >> >> I've been playing with Wicket and Scala and I thought this could be >>> >> added to >>> >> >> the wicket-scala project at WicketStuff. >>> >> >> >>> >> >> What do you guys think? >>> >> >> >>> >> >> https://gist.github.com/1109603 >>> >> >> >>> >> >> >>> >> >> *Bruno Borges* >>> >> >> www.brunoborges.com.br >>> >> >> +55 21 76727099 >>> >> >> >>> >> > >>> >> > >>> >> > >>> >> > -- >>> >> > Martin Grigorov >>> >> > jWeekend >>> >> > Training, Consulting, Development >>> >> > http://jWeekend.com >>> >> > >>> >> >>> >> >>> >> >>> >> -- >>> >> 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
Re: DropDownChoice updates onchange event.
I didn't see the question. On Wed, Jul 27, 2011 at 8:42 PM, Archana.AA wrote: > Hi All, > > I am using a DropDownChoice with a list of values. The choice list come from > DB in a sorted order. > When I new AjaxFormComponentUpdatingBehavior("onchange") event, the > onUpdate(AjaxRequestTarget target) method is excecuted and it updates some > values. After this method executed, choice list is sequence in the > DropDownChoice changes. I am not updating the sequence any where in the > onUpdate(). > > I am very new to wicket. So I am not able to understand where I am going > wrong. Please help me out to resolve this. > > Thanks in advance. > > - > Thanks, > Archana > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699271.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 > > -- 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
Re: wicketstuff tinymce development
I would like to point out that tinymce in wicketstuff 1.5 branch needs some love too. It is not yet ported to wicket 1.5. Attila 2011/7/27 jbrookover > > Michal Letynski wrote: > > > > Is here anyone who is currently doing something with tinymce wicketstuff > > project ? I saw that in current version we are not able to add more then > > one instance of tiny in one page. > > > > I've recently made some commits to the tinymce wicketstuff package on > GitHub, if you want to call that "currently doing something." :) > > You are certainly able to add more than one instance on a page. We use > this > package heavily throughout our applications and it works well, including > Ajax, spellcheck, and multiple configuration settings. > > Jake > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/wicketstuff-tinymce-development-tp3698059p3698489.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 > >
DropDownChoice updates onchange event.
Hi All, I am using a DropDownChoice with a list of values. The choice list come from DB in a sorted order. When I new AjaxFormComponentUpdatingBehavior("onchange") event, the onUpdate(AjaxRequestTarget target) method is excecuted and it updates some values. After this method executed, choice list is sequence in the DropDownChoice changes. I am not updating the sequence any where in the onUpdate(). I am very new to wicket. So I am not able to understand where I am going wrong. Please help me out to resolve this. Thanks in advance. - Thanks, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699271.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: Scala DSL for Wicket
Can some Scala expert help me to make this DSL available as PML (pimp my library)? I've tried to code it that way but things didn't quite worked out the way they should. The reason is that for every Wicket object I create, I must extend the trait DSLWicket *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Wed, Jul 27, 2011 at 2:30 PM, Bruno Borges wrote: > Not really. > > The method onSubmit() of button is void, as well onClick(), so there's no > need for the function be passed as () => Unit or anything else. > > I made a few changes to it and updated on Gist. > > I've also uploaded a page that uses this DSL at > https://gist.github.com/1109919 > > Take a look > > *Bruno Borges* > www.brunoborges.com.br > +55 21 76727099 > > > > On Wed, Jul 27, 2011 at 2:22 PM, Scott Swank wrote: > >> I think you do want Unit, which as I understand it is closest >> equivalent to "void" in Scala. >> >> http://www.scala-lang.org/api/current/scala/Unit.html >> >> Scott >> >> On Wed, Jul 27, 2011 at 10:14 AM, Bruno Borges >> wrote: >> > No, the function must return void, not another function (unit). >> > >> > But there's also the option of () => Nothing. Which one should I use for >> > this case? >> > >> > *Bruno Borges* >> > www.brunoborges.com.br >> > +55 21 76727099 >> > >> > >> > >> > On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov > >wrote: >> > >> >> def button(id: String, submit: () => Void): Button = { >> >> >> >> it should be () => Unit, no ? >> >> >> >> On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov > > >> >> wrote: >> >> > Adding some usage examples at the bottom will help us evaluate it. >> >> > >> >> > Why not add type to >> >> > def textField(id: String): TextField[_] = { val field = new >> >> > TextField(id); add(field); field } >> >> > to become >> >> > def textField[T](id: String): TextField[T] = { val field = new >> >> > TextField[T](id); add(field); field } >> >> > >> >> > usage: textField[Int](someId) >> >> > >> >> > with using implicit Manifest for T you can also can automatically set >> >> > the type: field.setType(m.erasure) >> >> > >> >> > On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges < >> bruno.bor...@gmail.com> >> >> wrote: >> >> >> I've been playing with Wicket and Scala and I thought this could be >> >> added to >> >> >> the wicket-scala project at WicketStuff. >> >> >> >> >> >> What do you guys think? >> >> >> >> >> >> https://gist.github.com/1109603 >> >> >> >> >> >> >> >> >> *Bruno Borges* >> >> >> www.brunoborges.com.br >> >> >> +55 21 76727099 >> >> >> >> >> > >> >> > >> >> > >> >> > -- >> >> > Martin Grigorov >> >> > jWeekend >> >> > Training, Consulting, Development >> >> > http://jWeekend.com >> >> > >> >> >> >> >> >> >> >> -- >> >> 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: Scala DSL for Wicket
Not really. The method onSubmit() of button is void, as well onClick(), so there's no need for the function be passed as () => Unit or anything else. I made a few changes to it and updated on Gist. I've also uploaded a page that uses this DSL at https://gist.github.com/1109919 Take a look *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Wed, Jul 27, 2011 at 2:22 PM, Scott Swank wrote: > I think you do want Unit, which as I understand it is closest > equivalent to "void" in Scala. > > http://www.scala-lang.org/api/current/scala/Unit.html > > Scott > > On Wed, Jul 27, 2011 at 10:14 AM, Bruno Borges > wrote: > > No, the function must return void, not another function (unit). > > > > But there's also the option of () => Nothing. Which one should I use for > > this case? > > > > *Bruno Borges* > > www.brunoborges.com.br > > +55 21 76727099 > > > > > > > > On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov >wrote: > > > >> def button(id: String, submit: () => Void): Button = { > >> > >> it should be () => Unit, no ? > >> > >> On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov > >> wrote: > >> > Adding some usage examples at the bottom will help us evaluate it. > >> > > >> > Why not add type to > >> > def textField(id: String): TextField[_] = { val field = new > >> > TextField(id); add(field); field } > >> > to become > >> > def textField[T](id: String): TextField[T] = { val field = new > >> > TextField[T](id); add(field); field } > >> > > >> > usage: textField[Int](someId) > >> > > >> > with using implicit Manifest for T you can also can automatically set > >> > the type: field.setType(m.erasure) > >> > > >> > On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges > > >> wrote: > >> >> I've been playing with Wicket and Scala and I thought this could be > >> added to > >> >> the wicket-scala project at WicketStuff. > >> >> > >> >> What do you guys think? > >> >> > >> >> https://gist.github.com/1109603 > >> >> > >> >> > >> >> *Bruno Borges* > >> >> www.brunoborges.com.br > >> >> +55 21 76727099 > >> >> > >> > > >> > > >> > > >> > -- > >> > Martin Grigorov > >> > jWeekend > >> > Training, Consulting, Development > >> > http://jWeekend.com > >> > > >> > >> > >> > >> -- > >> 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: Scala DSL for Wicket
I think you do want Unit, which as I understand it is closest equivalent to "void" in Scala. http://www.scala-lang.org/api/current/scala/Unit.html Scott On Wed, Jul 27, 2011 at 10:14 AM, Bruno Borges wrote: > No, the function must return void, not another function (unit). > > But there's also the option of () => Nothing. Which one should I use for > this case? > > *Bruno Borges* > www.brunoborges.com.br > +55 21 76727099 > > > > On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov wrote: > >> def button(id: String, submit: () => Void): Button = { >> >> it should be () => Unit, no ? >> >> On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov >> wrote: >> > Adding some usage examples at the bottom will help us evaluate it. >> > >> > Why not add type to >> > def textField(id: String): TextField[_] = { val field = new >> > TextField(id); add(field); field } >> > to become >> > def textField[T](id: String): TextField[T] = { val field = new >> > TextField[T](id); add(field); field } >> > >> > usage: textField[Int](someId) >> > >> > with using implicit Manifest for T you can also can automatically set >> > the type: field.setType(m.erasure) >> > >> > On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges >> wrote: >> >> I've been playing with Wicket and Scala and I thought this could be >> added to >> >> the wicket-scala project at WicketStuff. >> >> >> >> What do you guys think? >> >> >> >> https://gist.github.com/1109603 >> >> >> >> >> >> *Bruno Borges* >> >> www.brunoborges.com.br >> >> +55 21 76727099 >> >> >> > >> > >> > >> > -- >> > Martin Grigorov >> > jWeekend >> > Training, Consulting, Development >> > http://jWeekend.com >> > >> >> >> >> -- >> 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: Scala DSL for Wicket
Read the manual again ;-) On Wed, Jul 27, 2011 at 8:14 PM, Bruno Borges wrote: > No, the function must return void, not another function (unit). > > But there's also the option of () => Nothing. Which one should I use for > this case? > > *Bruno Borges* > www.brunoborges.com.br > +55 21 76727099 > > > > On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov wrote: > >> def button(id: String, submit: () ⇒ Void): Button = { >> >> it should be () => Unit, no ? >> >> On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov >> wrote: >> > Adding some usage examples at the bottom will help us evaluate it. >> > >> > Why not add type to >> > def textField(id: String): TextField[_] = { val field = new >> > TextField(id); add(field); field } >> > to become >> > def textField[T](id: String): TextField[T] = { val field = new >> > TextField[T](id); add(field); field } >> > >> > usage: textField[Int](someId) >> > >> > with using implicit Manifest for T you can also can automatically set >> > the type: field.setType(m.erasure) >> > >> > On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges >> wrote: >> >> I've been playing with Wicket and Scala and I thought this could be >> added to >> >> the wicket-scala project at WicketStuff. >> >> >> >> What do you guys think? >> >> >> >> https://gist.github.com/1109603 >> >> >> >> >> >> *Bruno Borges* >> >> www.brunoborges.com.br >> >> +55 21 76727099 >> >> >> > >> > >> > >> > -- >> > Martin Grigorov >> > jWeekend >> > Training, Consulting, Development >> > http://jWeekend.com >> > >> >> >> >> -- >> 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 >> >> > -- 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
Re: Scala DSL for Wicket
No, the function must return void, not another function (unit). But there's also the option of () => Nothing. Which one should I use for this case? *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov wrote: > def button(id: String, submit: () ⇒ Void): Button = { > > it should be () => Unit, no ? > > On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov > wrote: > > Adding some usage examples at the bottom will help us evaluate it. > > > > Why not add type to > > def textField(id: String): TextField[_] = { val field = new > > TextField(id); add(field); field } > > to become > > def textField[T](id: String): TextField[T] = { val field = new > > TextField[T](id); add(field); field } > > > > usage: textField[Int](someId) > > > > with using implicit Manifest for T you can also can automatically set > > the type: field.setType(m.erasure) > > > > On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges > wrote: > >> I've been playing with Wicket and Scala and I thought this could be > added to > >> the wicket-scala project at WicketStuff. > >> > >> What do you guys think? > >> > >> https://gist.github.com/1109603 > >> > >> > >> *Bruno Borges* > >> www.brunoborges.com.br > >> +55 21 76727099 > >> > > > > > > > > -- > > Martin Grigorov > > jWeekend > > Training, Consulting, Development > > http://jWeekend.com > > > > > > -- > 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 > >
Technical Limit on Mount Points
Hi, I fave a ton of possible dynamic content where for each content I have to associate a Mount Point. im thinking of a strategy to do that efficiently. To cater to it, following questions: 1). What decides the technical limit to the number of Mount points possible? (Does it load all the mount points into memory, or applies some sort of caching that can use persistence if required)? Example usage per mount point: application.mount(new MixedParamUrlCodingStrategy(myPageX, pageTemplateClass, new String[]{"pageId"})); 2). Would a considerable number of Mount points degrade performance? thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Technical-Limit-on-Mount-Points-tp3699113p3699113.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: Scala DSL for Wicket
def button(id: String, submit: () ⇒ Void): Button = { it should be () => Unit, no ? On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov wrote: > Adding some usage examples at the bottom will help us evaluate it. > > Why not add type to > def textField(id: String): TextField[_] = { val field = new > TextField(id); add(field); field } > to become > def textField[T](id: String): TextField[T] = { val field = new > TextField[T](id); add(field); field } > > usage: textField[Int](someId) > > with using implicit Manifest for T you can also can automatically set > the type: field.setType(m.erasure) > > On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges wrote: >> I've been playing with Wicket and Scala and I thought this could be added to >> the wicket-scala project at WicketStuff. >> >> What do you guys think? >> >> https://gist.github.com/1109603 >> >> >> *Bruno Borges* >> www.brunoborges.com.br >> +55 21 76727099 >> > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > -- 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
Re: Scala DSL for Wicket
Adding some usage examples at the bottom will help us evaluate it. Why not add type to def textField(id: String): TextField[_] = { val field = new TextField(id); add(field); field } to become def textField[T](id: String): TextField[T] = { val field = new TextField[T](id); add(field); field } usage: textField[Int](someId) with using implicit Manifest for T you can also can automatically set the type: field.setType(m.erasure) On Wed, Jul 27, 2011 at 6:26 PM, Bruno Borges wrote: > I've been playing with Wicket and Scala and I thought this could be added to > the wicket-scala project at WicketStuff. > > What do you guys think? > > https://gist.github.com/1109603 > > > *Bruno Borges* > www.brunoborges.com.br > +55 21 76727099 > -- 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
Re: Target.addComponent - Single Container vs Multiple Components
At server side it is basically the same. At client side (javascript) repainting just one component should be faster. On Wed, Jul 27, 2011 at 6:25 PM, jbrookover wrote: > I come across this scenario quite a bit. Say I have a Container/Fragment/etc > with several (~10) child components, and I'm using Ajax to toggle the > visibility of a small set (~4) of those children. The other children are > unchanged by the Ajax call. > > Are there a performance (or other) considerations between: > > target.addComponent(container); > > and > > target.addComponent(child1); > target.addComponent(child2); > target.addComponent(child3); > target.addComponent(child4); > > The first option is much cleaner, but will (I presume) run the > onBeforeRender/onConfigure/etc methods of all 10 the children. On the other > hand, the second method might have some client-side javacript overhead and > or other Ajax-y overhead that I'm not aware of. > > Thoughts? > > Thanks! > > Jake > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Target-addComponent-Single-Container-vs-Multiple-Components-tp3698864p3698864.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 > > -- 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
Scala DSL for Wicket
I've been playing with Wicket and Scala and I thought this could be added to the wicket-scala project at WicketStuff. What do you guys think? https://gist.github.com/1109603 *Bruno Borges* www.brunoborges.com.br +55 21 76727099
Target.addComponent - Single Container vs Multiple Components
I come across this scenario quite a bit. Say I have a Container/Fragment/etc with several (~10) child components, and I'm using Ajax to toggle the visibility of a small set (~4) of those children. The other children are unchanged by the Ajax call. Are there a performance (or other) considerations between: target.addComponent(container); and target.addComponent(child1); target.addComponent(child2); target.addComponent(child3); target.addComponent(child4); The first option is much cleaner, but will (I presume) run the onBeforeRender/onConfigure/etc methods of all 10 the children. On the other hand, the second method might have some client-side javacript overhead and or other Ajax-y overhead that I'm not aware of. Thoughts? Thanks! Jake -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Target-addComponent-Single-Container-vs-Multiple-Components-tp3698864p3698864.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
wicket 1.5 xml/doctype/html header: xhtml vs html5
>From https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html, are these still the desired tags for the start of a wicket html file? http://www.w3.org/1999/xhtml"; xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"; xml:lang="en" lang="en"> and ; http://www.w3.org/1999/xhtml"; xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd"; xml:lang="en" lang="en"> Of these two options, which is preferred? Why would I choose the xml start (versus DOCTYPE)? Does either choice impact the use of HTML 5? Thanks, -Doug -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-1-5-xml-doctype-html-header-xhtml-vs-html5-tp3698608p3698608.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: Static Files (CSS, JPG) not Found by Wicket in HTML
Trust me! ;-) See the javadoc of org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler On Wed, Jul 27, 2011 at 4:52 PM, Peter Ertl wrote: >> Actually you just have to use "css/styles.css" and Wicket will >> "relativize" it for you. >> There is a special IMarkupFilter for that. > > but only if wrap it inside > > this will not work for resources in src/main/webapp but only for package > resources > > without the markup will just be rendered as-is and wicket will > not even touch it. this is the standard behavior for static html with hrefs. > > Am 27.07.2011 um 15:40 schrieb Martin Grigorov: > >> On Wed, Jul 27, 2011 at 3:54 PM, Peter Ertl wrote: >>> if your login page is mounted to path '/login/authenticate' and the >>> application is deployed to web application context '/myapp' your page will >>> be available at >>> >>> /myapp/login/authenticate >>> >>> and the css in src/main/webapp/styles.css must be referenced from your page >>> via >>> >>> 1) ../../css/styles.css >>> >>> or >>> >>> 2) /myapp/css/styles.css >>> >>> 1) is bad since the IDE is not capable of tracking the resources referenced >>> from your markup. also changing your page mount can easily break your page. >> Actually you just have to use "css/styles.css" and Wicket will >> "relativize" it for you. >> There is a special IMarkupFilter for that. >>> 2) is bad since changing the deployment context name will break your app. >>> also you need to know the deploment context name. >>> >>> when using resources in packages all these issues will not affect you at >>> all. >>> >>> the 'magic' you talk about is probably not using . In that >>> case the link is unchanged (wicket does not even touch that link) and will >>> work when you mount your pages to urls being not deeper than one level >>> >>> e.g. /login, /logout, /foobar >>> >>> it will not work with nested urls or url's that contain indexed parameters >>> >>> e.g. /user/id/123 >>> >>> Am 27.07.2011 um 14:31 schrieb Peter Karich: >>> Am 27.07.2011 14:21, schrieb Peter Ertl: > You can put your resources in src/main/webapp but I would not recommend > to do so (they will work by using an absolute path with the correct web > app context) but it's quite ugly *imho* no, you can just reference them via css/style.css eg. if you have src/main/webapp/css and wicket will do the magic for you... - 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
Re: Static Files (CSS, JPG) not Found by Wicket in HTML
Can I do, in my Application class, getResourceSettings().addResourceFolder(this.getServletContext().getContextPath()) ? The theory being, that all folders (src and web) will be added as resource folders, and my img and css files will be found. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Static-Files-CSS-JPG-not-Found-by-Wicket-in-HTML-tp3697146p3698590.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: Static Files (CSS, JPG) not Found by Wicket in HTML
> Actually you just have to use "css/styles.css" and Wicket will > "relativize" it for you. > There is a special IMarkupFilter for that. but only if wrap it inside this will not work for resources in src/main/webapp but only for package resources without the markup will just be rendered as-is and wicket will not even touch it. this is the standard behavior for static html with hrefs. Am 27.07.2011 um 15:40 schrieb Martin Grigorov: > On Wed, Jul 27, 2011 at 3:54 PM, Peter Ertl wrote: >> if your login page is mounted to path '/login/authenticate' and the >> application is deployed to web application context '/myapp' your page will >> be available at >> >> /myapp/login/authenticate >> >> and the css in src/main/webapp/styles.css must be referenced from your page >> via >> >> 1) ../../css/styles.css >> >> or >> >> 2) /myapp/css/styles.css >> >> 1) is bad since the IDE is not capable of tracking the resources referenced >> from your markup. also changing your page mount can easily break your page. > Actually you just have to use "css/styles.css" and Wicket will > "relativize" it for you. > There is a special IMarkupFilter for that. >> 2) is bad since changing the deployment context name will break your app. >> also you need to know the deploment context name. >> >> when using resources in packages all these issues will not affect you at all. >> >> the 'magic' you talk about is probably not using . In that case >> the link is unchanged (wicket does not even touch that link) and will work >> when you mount your pages to urls being not deeper than one level >> >> e.g. /login, /logout, /foobar >> >> it will not work with nested urls or url's that contain indexed parameters >> >> e.g. /user/id/123 >> >> Am 27.07.2011 um 14:31 schrieb Peter Karich: >> >>> Am 27.07.2011 14:21, schrieb Peter Ertl: You can put your resources in src/main/webapp but I would not recommend to do so (they will work by using an absolute path with the correct web app context) but it's quite ugly *imho* >>> >>> no, you can just reference them via css/style.css eg. if you have >>> src/main/webapp/css >>> and wicket will do the magic for you... >>> >>> - >>> 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: Static Files (CSS, JPG) not Found by Wicket in HTML
On Wed, Jul 27, 2011 at 3:54 PM, Peter Ertl wrote: > if your login page is mounted to path '/login/authenticate' and the > application is deployed to web application context '/myapp' your page will be > available at > > /myapp/login/authenticate > > and the css in src/main/webapp/styles.css must be referenced from your page > via > > 1) ../../css/styles.css > > or > > 2) /myapp/css/styles.css > > 1) is bad since the IDE is not capable of tracking the resources referenced > from your markup. also changing your page mount can easily break your page. Actually you just have to use "css/styles.css" and Wicket will "relativize" it for you. There is a special IMarkupFilter for that. > 2) is bad since changing the deployment context name will break your app. > also you need to know the deploment context name. > > when using resources in packages all these issues will not affect you at all. > > the 'magic' you talk about is probably not using . In that case > the link is unchanged (wicket does not even touch that link) and will work > when you mount your pages to urls being not deeper than one level > > e.g. /login, /logout, /foobar > > it will not work with nested urls or url's that contain indexed parameters > > e.g. /user/id/123 > > Am 27.07.2011 um 14:31 schrieb Peter Karich: > >> Am 27.07.2011 14:21, schrieb Peter Ertl: >>> You can put your resources in src/main/webapp but I would not recommend to >>> do so (they will work by using an absolute path with the correct web app >>> context) but it's quite ugly *imho* >> >> no, you can just reference them via css/style.css eg. if you have >> src/main/webapp/css >> and wicket will do the magic for you... >> >> - >> 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
Re: wicketstuff tinymce development
Michal Letynski wrote: > > Is here anyone who is currently doing something with tinymce wicketstuff > project ? I saw that in current version we are not able to add more then > one instance of tiny in one page. > I've recently made some commits to the tinymce wicketstuff package on GitHub, if you want to call that "currently doing something." :) You are certainly able to add more than one instance on a page. We use this package heavily throughout our applications and it works well, including Ajax, spellcheck, and multiple configuration settings. Jake -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketstuff-tinymce-development-tp3698059p3698489.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: Static Files (CSS, JPG) not Found by Wicket in HTML
I was assuming you use maven 'src/main/java' and 'src/main/webapp' see http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html If you don't use maven you have to choose the corresponding directory in your build / IDE environment... Am 27.07.2011 um 15:08 schrieb eugenebalt: > Guys, I tried creating new folders under src/, naming them main/ and then > webapp/ under main/, with img and css subdirectories, but that didn't work > either, I don't know why. It was supposed to find it automatically. > > But anyway, I don't want to reorganize my project structure. It's an > existing NetBeans project and I have dependencies in it, e.g. web.xml. > > So my question, how can I get Wicket to display my static resources > referenced in HTML based on my *existing* structure, which I described in > the first post? What is the Java code for that? > > I need to be able to reference img src="[img]" for example. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Static-Files-CSS-JPG-not-Found-by-Wicket-in-HTML-tp3697146p3698424.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: Static Files (CSS, JPG) not Found by Wicket in HTML
Guys, I tried creating new folders under src/, naming them main/ and then webapp/ under main/, with img and css subdirectories, but that didn't work either, I don't know why. It was supposed to find it automatically. But anyway, I don't want to reorganize my project structure. It's an existing NetBeans project and I have dependencies in it, e.g. web.xml. So my question, how can I get Wicket to display my static resources referenced in HTML based on my *existing* structure, which I described in the first post? What is the Java code for that? I need to be able to reference img src="[img]" for example. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Static-Files-CSS-JPG-not-Found-by-Wicket-in-HTML-tp3697146p3698424.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: Dialog Box is not replaced
> @Martin: after calling D1.replaceWith(D2), D1=D2 is done as well. Are you sure you call D2.setOutputMarkupId(true)? Otherwise the Wicket Ajax handler will not find the correct DOM element to replace. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Static Files (CSS, JPG) not Found by Wicket in HTML
put the images in an package and use wicket:link properly ... no need to mount at all Am 27.07.2011 um 14:45 schrieb Dmitriy Ivanov: > Miroslav, is there way to achive some kind of "whole package mounting" > without explicit mounting of each image? > > 2011/7/27 Miroslav F. > >> Use structure: >> .src >> .java >> ..com >> ...myapp >> ...[HTML & Java go here] >> ...img >> ...css >> ...somethink else you would like >> >> In img dir put Images.class, in css put Styles.class and so on, for >> example: >> package com.myapp.images; >> public class Images{ >> } >> >> Then in WebApplication.init() do: >> mountSharedResource("/img/myimage.jpg", new ResourceReference(Images.class, >> "myimage.jpg").getSharedResourceKey()); >> >> and in html file do: >> >> >> No need to do something else in html. >> >> Hope this helps. >> >> Miro >> >> >> >> >>> -Original Message- >>> From: eugenebalt [mailto:eugeneb...@yahoo.com] >>> Sent: Wednesday, 27. July 2011 00:04 >>> To: users@wicket.apache.org >>> Subject: Static Files (CSS, JPG) not Found by Wicket in HTML >>> >>> My project structure looks like this: >>> >>> .src >>> .java >>> ..com >>> ...myapp >>> ...[HTML & Java go here] >>> >>> .web >>> .img >>> .css >>> .WEB-INF >>> >>> >>> In my HTML, when I reference "img/image.jpg" or >>> "css/main.css", these files are not found. I also tried >>> "/img/image.jpg" and "/css/main.css" and that doesn't work either. >>> >>> Thanks >>> >>> >>> -- >>> View this message in context: >>> http://apache-wicket.1842946.n4.nabble.com/Static-Files-CSS-JP >> G-not-Found-by-Wicket-in-HTML-tp3697146p3697146.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 >> >> > > > -- > WBR, Джонсон. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Static Files (CSS, JPG) not Found by Wicket in HTML
if your login page is mounted to path '/login/authenticate' and the application is deployed to web application context '/myapp' your page will be available at /myapp/login/authenticate and the css in src/main/webapp/styles.css must be referenced from your page via 1) ../../css/styles.css or 2) /myapp/css/styles.css 1) is bad since the IDE is not capable of tracking the resources referenced from your markup. also changing your page mount can easily break your page. 2) is bad since changing the deployment context name will break your app. also you need to know the deploment context name. when using resources in packages all these issues will not affect you at all. the 'magic' you talk about is probably not using . In that case the link is unchanged (wicket does not even touch that link) and will work when you mount your pages to urls being not deeper than one level e.g. /login, /logout, /foobar it will not work with nested urls or url's that contain indexed parameters e.g. /user/id/123 Am 27.07.2011 um 14:31 schrieb Peter Karich: > Am 27.07.2011 14:21, schrieb Peter Ertl: >> You can put your resources in src/main/webapp but I would not recommend to >> do so (they will work by using an absolute path with the correct web app >> context) but it's quite ugly *imho* > > no, you can just reference them via css/style.css eg. if you have > src/main/webapp/css > and wicket will do the magic for you... > > - > 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: Static Files (CSS, JPG) not Found by Wicket in HTML
Miroslav, is there way to achive some kind of "whole package mounting" without explicit mounting of each image? 2011/7/27 Miroslav F. > Use structure: > .src > .java > ..com > ...myapp > ...[HTML & Java go here] > ...img > ...css > ...somethink else you would like > > In img dir put Images.class, in css put Styles.class and so on, for > example: > package com.myapp.images; > public class Images{ > } > > Then in WebApplication.init() do: > mountSharedResource("/img/myimage.jpg", new ResourceReference(Images.class, > "myimage.jpg").getSharedResourceKey()); > > and in html file do: > > > No need to do something else in html. > > Hope this helps. > > Miro > > > > > > -Original Message- > > From: eugenebalt [mailto:eugeneb...@yahoo.com] > > Sent: Wednesday, 27. July 2011 00:04 > > To: users@wicket.apache.org > > Subject: Static Files (CSS, JPG) not Found by Wicket in HTML > > > > My project structure looks like this: > > > > .src > > .java > > ..com > > ...myapp > > ...[HTML & Java go here] > > > > .web > > .img > > .css > > .WEB-INF > > > > > > In my HTML, when I reference "img/image.jpg" or > > "css/main.css", these files are not found. I also tried > > "/img/image.jpg" and "/css/main.css" and that doesn't work either. > > > > Thanks > > > > > > -- > > View this message in context: > > http://apache-wicket.1842946.n4.nabble.com/Static-Files-CSS-JP > G-not-Found-by-Wicket-in-HTML-tp3697146p3697146.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 > > -- WBR, Джонсон.
Re: wicketstuff tinymce development
Hi, Post a message on the dev list with your github username requesting commit access and you can be added. If you want to get started right away you can fork the wicketstuff/core project on github, make changes to your fork and then submit a pull request to get your changes incorporated back into the main project. Regards, Mike New account is needed. On Wed, Jul 27, 2011 at 12:57 PM, Michal Letynski wrote: Hi. Is here anyone who is currently doing something with tinymce wicketstuff project ? I saw that in current version we are not able to add more then one instance of tiny in one page. I want to change it. I saw that wicket-stuff was moved to git, accounts from svn was copied or should i ask for new one ? Regards, Michal - 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: Static Files (CSS, JPG) not Found by Wicket in HTML
Am 27.07.2011 14:21, schrieb Peter Ertl: > You can put your resources in src/main/webapp but I would not recommend to do > so (they will work by using an absolute path with the correct web app > context) but it's quite ugly *imho* no, you can just reference them via css/style.css eg. if you have src/main/webapp/css and wicket will do the magic for you... - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Dialog Box is not replaced
D2 replaces D1, but D1 is reassigned to D2, so there is no need to target.add(D2) It is hard to help you with the information you give us. On Wed, Jul 27, 2011 at 3:17 PM, Tejash Tarun wrote: > @Martin: after calling D1.replaceWith(D2), D1=D2 is done as well. > > > On Wed, Jul 27, 2011 at 4:29 PM, Martin Grigorov wrote: > >> See org.apache.wicket.Component.replaceWith(Component) javadoc. >> It says: Usage: component = >> component.replaceWith(replacement); >> >> On Wed, Jul 27, 2011 at 1:34 PM, Tejash Tarun wrote: >> > Hi Martin, >> > >> > It is a panel. >> > >> > On Wed, Jul 27, 2011 at 3:45 PM, Martin Grigorov > >wrote: >> > >> >> What is the type of this DialogBox ? Is it a Panel or a ModalWindow? >> >> >> >> On Wed, Jul 27, 2011 at 11:34 AM, Tejash Tarun >> >> wrote: >> >> > Hi, >> >> > >> >> > In my page I have two dialog box say D1 and D2. >> >> > >> >> > When clicking some link D1 should come, and it is happening. It is a >> >> > confirmation dialog box. >> >> > >> >> > Now when I click ok button in D1 then D2 should be shown by replacing >> D1. >> >> > >> >> > code is >> >> > >> >> > D1.replaceWith(D2); >> >> > ajaxRequestTarget.add(D1); >> >> > ajaxRequestTarget.add(D2); >> >> > >> >> > But nothing is happening on the screen. >> >> > >> >> > Looking forward for some suggestions and answer. >> >> > Thanks in advance. >> >> > >> >> > Regards, >> >> > Tejash >> >> > >> >> >> >> >> >> >> >> -- >> >> 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 >> >> >> >> >> > >> >> >> >> -- >> 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 >> >> > -- 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
Re: Static Files (CSS, JPG) not Found by Wicket in HTML
You can put your resources in src/main/webapp but I would not recommend to do so (they will work by using an absolute path with the correct web app context) but it's quite ugly *imho* My suggestion is: Put them somewhere in your package hierarchy below src/main/java where it fits best. Caveat: When the package is not below in inside the package of the page referring to it, e.g. 'com.mycompany.pages.login.LoginPage' refers to 'com.mycompany.global.css#styles.css' you need to enable parent resources with IResourceSettings#setParentFolderPlaceholder(...) (read the javadoc for detailed explanation) You also you need to wrap your html references with e.g. If you miss to enable parent resources the CSS href will get crippled by the browser (sic) and not work at all. Alternatively you can refer to resources from java using e.g. IHeaderResponse#renderCSSReference in the appropriate places of your code. For that to work you usually need an 'anchor' class that resides in the same package as the resource to refer to it. cheers Peter Am 27.07.2011 um 12:44 schrieb Miroslav F.: > Use structure: > .src > .java > ..com > ...myapp > ...[HTML & Java go here] > ...img > ...css > ...somethink else you would like > > In img dir put Images.class, in css put Styles.class and so on, for example: > package com.myapp.images; > public class Images{ > } > > Then in WebApplication.init() do: > mountSharedResource("/img/myimage.jpg", new ResourceReference(Images.class, > "myimage.jpg").getSharedResourceKey()); > > and in html file do: > > > No need to do something else in html. > > Hope this helps. > > Miro > > > > >> -Original Message- >> From: eugenebalt [mailto:eugeneb...@yahoo.com] >> Sent: Wednesday, 27. July 2011 00:04 >> To: users@wicket.apache.org >> Subject: Static Files (CSS, JPG) not Found by Wicket in HTML >> >> My project structure looks like this: >> >> .src >> .java >> ..com >> ...myapp >> ...[HTML & Java go here] >> >> .web >> .img >> .css >> .WEB-INF >> >> >> In my HTML, when I reference "img/image.jpg" or >> "css/main.css", these files are not found. I also tried >> "/img/image.jpg" and "/css/main.css" and that doesn't work either. >> >> Thanks >> >> >> -- >> View this message in context: >> http://apache-wicket.1842946.n4.nabble.com/Static-Files-CSS-JP > G-not-Found-by-Wicket-in-HTML-tp3697146p3697146.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: Dialog Box is not replaced
@Martin: after calling D1.replaceWith(D2), D1=D2 is done as well. On Wed, Jul 27, 2011 at 4:29 PM, Martin Grigorov wrote: > See org.apache.wicket.Component.replaceWith(Component) javadoc. > It says: Usage: component = > component.replaceWith(replacement); > > On Wed, Jul 27, 2011 at 1:34 PM, Tejash Tarun wrote: > > Hi Martin, > > > > It is a panel. > > > > On Wed, Jul 27, 2011 at 3:45 PM, Martin Grigorov >wrote: > > > >> What is the type of this DialogBox ? Is it a Panel or a ModalWindow? > >> > >> On Wed, Jul 27, 2011 at 11:34 AM, Tejash Tarun > >> wrote: > >> > Hi, > >> > > >> > In my page I have two dialog box say D1 and D2. > >> > > >> > When clicking some link D1 should come, and it is happening. It is a > >> > confirmation dialog box. > >> > > >> > Now when I click ok button in D1 then D2 should be shown by replacing > D1. > >> > > >> > code is > >> > > >> > D1.replaceWith(D2); > >> > ajaxRequestTarget.add(D1); > >> > ajaxRequestTarget.add(D2); > >> > > >> > But nothing is happening on the screen. > >> > > >> > Looking forward for some suggestions and answer. > >> > Thanks in advance. > >> > > >> > Regards, > >> > Tejash > >> > > >> > >> > >> > >> -- > >> 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 > >> > >> > > > > > > -- > 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 > >
Re: Dialog Box is not replaced
See org.apache.wicket.Component.replaceWith(Component) javadoc. It says: Usage: component = component.replaceWith(replacement); On Wed, Jul 27, 2011 at 1:34 PM, Tejash Tarun wrote: > Hi Martin, > > It is a panel. > > On Wed, Jul 27, 2011 at 3:45 PM, Martin Grigorov wrote: > >> What is the type of this DialogBox ? Is it a Panel or a ModalWindow? >> >> On Wed, Jul 27, 2011 at 11:34 AM, Tejash Tarun >> wrote: >> > Hi, >> > >> > In my page I have two dialog box say D1 and D2. >> > >> > When clicking some link D1 should come, and it is happening. It is a >> > confirmation dialog box. >> > >> > Now when I click ok button in D1 then D2 should be shown by replacing D1. >> > >> > code is >> > >> > D1.replaceWith(D2); >> > ajaxRequestTarget.add(D1); >> > ajaxRequestTarget.add(D2); >> > >> > But nothing is happening on the screen. >> > >> > Looking forward for some suggestions and answer. >> > Thanks in advance. >> > >> > Regards, >> > Tejash >> > >> >> >> >> -- >> 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 >> >> > -- 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
RE: Static Files (CSS, JPG) not Found by Wicket in HTML
Use structure: .src .java ..com ...myapp ...[HTML & Java go here] ...img ...css ...somethink else you would like In img dir put Images.class, in css put Styles.class and so on, for example: package com.myapp.images; public class Images{ } Then in WebApplication.init() do: mountSharedResource("/img/myimage.jpg", new ResourceReference(Images.class, "myimage.jpg").getSharedResourceKey()); and in html file do: No need to do something else in html. Hope this helps. Miro > -Original Message- > From: eugenebalt [mailto:eugeneb...@yahoo.com] > Sent: Wednesday, 27. July 2011 00:04 > To: users@wicket.apache.org > Subject: Static Files (CSS, JPG) not Found by Wicket in HTML > > My project structure looks like this: > > .src > .java > ..com > ...myapp > ...[HTML & Java go here] > > .web > .img > .css > .WEB-INF > > > In my HTML, when I reference "img/image.jpg" or > "css/main.css", these files are not found. I also tried > "/img/image.jpg" and "/css/main.css" and that doesn't work either. > > Thanks > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Static-Files-CSS-JP G-not-Found-by-Wicket-in-HTML-tp3697146p3697146.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: wicketstuff tinymce development
New account is needed. On Wed, Jul 27, 2011 at 12:57 PM, Michal Letynski wrote: > Hi. > Is here anyone who is currently doing something with tinymce wicketstuff > project ? I saw that in current version we are not able to add more then one > instance of tiny in one page. I want to change it. I saw that wicket-stuff > was moved to git, accounts from svn was copied or should i ask for new one ? > > Regards, > Michal > > > > - > 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
Re: Dialog Box is not replaced
Hi Martin, It is a panel. On Wed, Jul 27, 2011 at 3:45 PM, Martin Grigorov wrote: > What is the type of this DialogBox ? Is it a Panel or a ModalWindow? > > On Wed, Jul 27, 2011 at 11:34 AM, Tejash Tarun > wrote: > > Hi, > > > > In my page I have two dialog box say D1 and D2. > > > > When clicking some link D1 should come, and it is happening. It is a > > confirmation dialog box. > > > > Now when I click ok button in D1 then D2 should be shown by replacing D1. > > > > code is > > > > D1.replaceWith(D2); > > ajaxRequestTarget.add(D1); > > ajaxRequestTarget.add(D2); > > > > But nothing is happening on the screen. > > > > Looking forward for some suggestions and answer. > > Thanks in advance. > > > > Regards, > > Tejash > > > > > > -- > 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 > >
Re: Dialog Box is not replaced
What is the type of this DialogBox ? Is it a Panel or a ModalWindow? On Wed, Jul 27, 2011 at 11:34 AM, Tejash Tarun wrote: > Hi, > > In my page I have two dialog box say D1 and D2. > > When clicking some link D1 should come, and it is happening. It is a > confirmation dialog box. > > Now when I click ok button in D1 then D2 should be shown by replacing D1. > > code is > > D1.replaceWith(D2); > ajaxRequestTarget.add(D1); > ajaxRequestTarget.add(D2); > > But nothing is happening on the screen. > > Looking forward for some suggestions and answer. > Thanks in advance. > > Regards, > Tejash > -- 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
Re: Dialog Box is not replaced
Hi Andrea, Thanks for replying. But if I add only parent to the target then D1 goes but D2 is not appearing. On Wed, Jul 27, 2011 at 2:28 PM, Andrea Del Bene wrote: > Hi, > > try adding to ajaxRequestTarget the parent component instead of D1 and D2. > > > Hi, >> >> In my page I have two dialog box say D1 and D2. >> >> When clicking some link D1 should come, and it is happening. It is a >> confirmation dialog box. >> >> Now when I click ok button in D1 then D2 should be shown by replacing D1. >> >> code is >> >> D1.replaceWith(D2); >> ajaxRequestTarget.add(D1); >> ajaxRequestTarget.add(D2); >> >> But nothing is happening on the screen. >> >> Looking forward for some suggestions and answer. >> Thanks in advance. >> >> Regards, >> Tejash >> >> > > --**--**- > To unsubscribe, e-mail: > users-unsubscribe@wicket.**apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
wicketstuff tinymce development
Hi. Is here anyone who is currently doing something with tinymce wicketstuff project ? I saw that in current version we are not able to add more then one instance of tiny in one page. I want to change it. I saw that wicket-stuff was moved to git, accounts from svn was copied or should i ask for new one ? Regards, Michal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Dialog Box is not replaced
Hi, try adding to ajaxRequestTarget the parent component instead of D1 and D2. Hi, In my page I have two dialog box say D1 and D2. When clicking some link D1 should come, and it is happening. It is a confirmation dialog box. Now when I click ok button in D1 then D2 should be shown by replacing D1. code is D1.replaceWith(D2); ajaxRequestTarget.add(D1); ajaxRequestTarget.add(D2); But nothing is happening on the screen. Looking forward for some suggestions and answer. Thanks in advance. Regards, Tejash - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Dialog Box is not replaced
Hi, In my page I have two dialog box say D1 and D2. When clicking some link D1 should come, and it is happening. It is a confirmation dialog box. Now when I click ok button in D1 then D2 should be shown by replacing D1. code is D1.replaceWith(D2); ajaxRequestTarget.add(D1); ajaxRequestTarget.add(D2); But nothing is happening on the screen. Looking forward for some suggestions and answer. Thanks in advance. Regards, Tejash
Re: resource problem..
Use #renderHead(IHeaderResponse response) { response.renderCssReference(new PackageResourceReference(WebConsoleApplication.class, "resources/style.css")); } On Wed, Jul 27, 2011 at 10:20 AM, mlabs wrote: > I declare a base markup page like so: > > > > My Wicket App > > href="resources/com.mycompany.webconsole.app.WebConsoleApplication/resources/style.css"/> > > > and I have my style.css file in a folder under the app folder that contains > the WebConsoleApplication class... > > the CSS doesn't seem to get picked up... > > examining the rendered page in firebug I see that the href has been > magically changed to : > > href="../resources/com.mycompany.webconsole.app.WebConsoleApplication/resources/style.css"/> > > the '../' is screwing me up here but I have no idea why it gets rendered > like that > > any ideas? > > apologies in advance if this is a dumb question > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/resource-problem-tp3697765p3697765.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 > > -- 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
resource problem..
I declare a base markup page like so: My Wicket App and I have my style.css file in a folder under the app folder that contains the WebConsoleApplication class... the CSS doesn't seem to get picked up... examining the rendered page in firebug I see that the href has been magically changed to : the '../' is screwing me up here but I have no idea why it gets rendered like that any ideas? apologies in advance if this is a dumb question -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/resource-problem-tp3697765p3697765.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