Re: The day Wicket became Apache Wicket 10 years ago!
Wooohooo:) Am 19. Juni 2017 9:19:03 nachm. schrieb Martijn Dashorst : Today marks the date 10 years ago that the Wicket project graduated from the Incubator to a fully fledged Apache project. The time flies when you're having fun! I would like to thank all our community members for their continued support and usage of Apache Wicket and pour one out for you! Here's a big Thank You for everyone reading this message, asking and answering questions, using Wicket in their projects and a special :beer: for all contributors to Wicket, past and present! Here's to another 10 years! Martijn Dashorst - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Christmas / new year [NON-BIZ]
Merry Christmas:) Mit AquaMail Android http://www.aqua-mail.com gesendet Am 24. Dezember 2016 2:46:34 nachm. schrieb Martin Grigorov : Merry Christmas ! On Dec 24, 2016 1:33 PM, "Tobias Soloschenko" < tobiassolosche...@googlemail.com> wrote: Hi all, I wish you a merry christmas and happy new year. :-) kind regards Tobias - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 2 different context paths using one single war file
Hi, why do you want that? What is the benefit of having the same application under two different path? Michael:) Am 9. Oktober 2015 05:03:18 MESZ, schrieb trlt : >I have developed a Wicket application (MyApplication.war), to be >deployed on >Apache + Tomcat. >It can be invoked using: http://hostname//MyApplication > >The application has 2 bookmarkable pages: >http://hostname/MyApplication/page1 >http://hostname/MyApplication/page2 > >I'd like to make page2 also available using a different hostname: >http://hostname2/department/page2 > >Using one single war file, how can I use the same source code in Wicket >to >serve the following 2 different URLs: > >http://hostname/MyApplication/page2 >http://hostname2/department/page2 > >Hoping someone in the user group can offer some help or suggestions. >Thanks! > > >-- >View this message in context: >http://apache-wicket.1842946.n4.nabble.com/2-different-context-paths-using-one-single-war-file-tp4672189.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 -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
Re: When should one use fragments?
Hi, You can refactor fragments into panel (and should do this, it is easy). I use fragments only if i want to hide components to the outside or reduce the count of files i have to open to solve something.. this happens only if i build some kind of prototype. If you have nothing to "hide" just use panels instead. If you want to avoid switching, you can make them invisible.. but it depends on your usecase.. Michael:) Am 21.01.2015 um 12:10 schrieb ChambreNoire: > Hello, > > I'm going over some old code and I have noticed that some devs are using > fragments to slice up views. For instance, one Panel only has a single > 'content' div and then the 3 different views are displayed by switching > between 3 Fragments with replaceWith(). This seems to me to break the 'avoid > changing the component hierarchy' best practice. My understanding was that > Fragments were mostly of use in ListView scenarios. > > Any thoughts on this and appropriate Fragment use in general? > > Thanks, > > CN > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/When-should-one-use-fragments-tp4669062.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: wicket form and browser back
AFAIK does a browser back bypass everything on the page. Maybe it is better to avoid paging if there is dependent state on different pages (use ajax instead and make it single-page). michael:) Am 01.10.13 10:53, schrieb Karl-Heinz Golz: Thank you, Martin, that works well. But next question: when a user goes back and forward via browser back and forward buttons, then already filled in fields will be empty (using Firefox). Is it possible to handle browser back the same way like form submit? That is, browser back causes a trip to the server and wicket gives controll to my application the same way it would be done when the user presses the submit button? Am 01.10.2013 09:59, schrieb Martin Grigorov:> Hi, Mark the page as non-versioned (Page.setVersioned(false)). This way there won't be previous version of page. When the user uses browser back button she will go to the previous page, not to the previous version of the current page. On Tue, Oct 1, 2013 at 9:35 AM, Karl-Heinz Golz wrote: hello, I know that is an ongoing discussion point for years but nevertheless I would like to ask you whether there are good solutions in the meantime. In my web application (WICKET 6.5) there is a quite big form and I want to detect and react when a user goes back to an older version of this form using the browser back button. When the user hits the submit button on that older version he will lose data. I would like to avoid that in some way. Suggestions and experiences are very welcome. Many thanks in advance Karl-Heinz - 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: Wicket merchandise
+1 for Martin Grigorov Hi Guys long time no see.. Apparently there are some money left on the wicket merchandise shop (http://www.cafepress.com/apachewicket).. So I suggest that it's time for the community to nominee and vote on who should have a cap, tshirt or coffee mug for their effort.. So if someone would gather nominees and handle the vote.. I'll send the merchandise to the lucky (or hard working) winner :) I'll follow on the side line.. - 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: "OutOfMemoryError: Java heap space" when i try to upload and show a hundred 100kb pics
Am 01.09.13 10:53, schrieb Giovanni: Martin Grigorov-4 wrote Hi, Read about Java memory settings (-Xms, -Xmx) Yes, I can increase heap space by settings, but is this a good approach? If displaying one 10Mb pic consumes 1.5Gb heap space - is this normal? Maybe there are other ways to solve this problem without increasing heap space by settings? I think there is a better solution if you do not have unlimited memory :). See http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ . You generate every image in your page render loop. This way the image data is stored in your page (which is bad). If you use a DynamichImageResource the image is created when the image request comes in. But you have to store your images somewhere else (remove this static list of buffered images) and refer to them with an ID. Michael - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket serialization concerns
Am 21.08.13 01:01, schrieb Michael Chandler: .. will expose me to a serialization error unless I put it in a Wicket model. Am I correct about this? There is nothing special about the serialization in Wicket. Wicket uses the default Java serialization. So every field not marked as transient will be serialized. As Martin said: watch out for non static inner classes or anon classes because you can not see the field which is created for any reference to something from the outer scope. To put your stuff behind a model has a benefit: if wicket is "done" with your page (response is written to the client) it will throw away anything changeable from your models. In your case the list of the entries from your database is flushed from memory. I would not recommend to put long living data into your components (which then must be serialize-able). You should put something like this into a cache. You can put everything needed to load you date from somewhere into an model. public class Customers extends LoadableDetachableModel> { @SpringBean CustomersDao dao; public Customers() { Injector.get().inject(this); } public List load() { return dao.allCustomers(); } } This way your component must not deal with anything else .. it will use model which provides the data:) Michael:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to resolve this java.util.ConcurrentModificationException
Am 06.08.13 20:03, schrieb saty: ...various wicket panels use this data-manager to request data that they need to display/update etc. I think it matters how you acces this data-manager from your panels. If you use something like this: Application.get().dataManager().doSomething(bla) you should not have any problems like that. So I think you are holding a reference to the data-manager as a field in your panel. This way its part of the object and will be serialized. You can put this kind of stuff in an LDM an overwrite the load()-method with Application.get().dataManager().doSomething(bla) This way your panel can use this model like any other model. Access to data is well protected using various synchronization techniques and have no problem in that. The problem seems to be, is somehow wicket is trying to serialize this LRUMAP which conflicts with application wring data to it at that same time. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-this-java-util-ConcurrentModificationException-tp4660273p4660730.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to resolve this java.util.ConcurrentModificationException
IMHO nothing in Application is serialized. But its far to easy to leak an instance of this LRU-Map into some components (anon classes). Can you provide some code or error message? Am 06.08.13 18:22, schrieb saty: I need to understand what and when Wicket tries to serialize stuff in a running wicket application. I am not able to fix this error and it keeps growing with more users starting to use the application. It does not affect the application usage but it keeps beaming error email. I am using LRU map to cache certain data being used in the application and that is a shared data in a static context not tied to any particular user. Why would wicket try to serialize this object, this should not be serialized at all. LRU map this is not synchronized and is not thread-safe and application code treats it that way but the serialization keeps generating concurrent modification exception as its obvious its trying to serialize this when something changes the map. if i declare this as transient, will this prevent wicket from serializing this map too, what are the possible repercussion in wicket application if i declare this transient. Thanks for your help. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-this-java-util-ConcurrentModificationException-tp4660273p4660725.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: Interesting article from Zeroturnaround
Am 31.07.13 19:24, schrieb Igor Vaynberg: unless youve built and maintained a real non-trivial application using all those frameworks how can you put numbers on them? I used Grails,Wicket,JSF,Spring Webflow and Struts in real non-trivial applications. I was involved in projects using GWT and JSF. I played around and talked with many other developers about Play and Vaadin. And still the only thing i have is an opinion about it:) But to put numbers on it, i can show where i see differences. And not only my numbers are different.. i put them on different places. I hope i can show my experience a little bit more quantified .. Its an opinion, not facts. In i will not put something in order.. such as "the winner is.. " because i think this is kind of useless. -igor On Wed, Jul 31, 2013 at 5:47 AM, Michael Mosmann wrote: Am 31.07.13 13:56, schrieb Andrea Del Bene: I don't agree with everything in it, but it's a good article anyway :) ... http://zeroturnaround.com/**rebellabs/the-curious-coders-** java-web-frameworks-**comparison-spring-mvc-grails-** vaadin-gwt-wicket-play-struts-**and-jsf/<http://zeroturnaround.com/rebellabs/the-curious-coders-java-web-frameworks-comparison-spring-mvc-grails-vaadin-gwt-wicket-play-struts-and-jsf/> I will take some time and put my own numbers (with some hopefully good explanations) in to the mix. So stay tuned:) --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org For additional commands, e-mail: users-h...@wicket.apache.org --**--**- To unsubscribe, e-mail: users-unsubscribe@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: Interesting article from Zeroturnaround
Am 31.07.13 13:56, schrieb Andrea Del Bene: I don't agree with everything in it, but it's a good article anyway :) ... http://zeroturnaround.com/rebellabs/the-curious-coders-java-web-frameworks-comparison-spring-mvc-grails-vaadin-gwt-wicket-play-struts-and-jsf/ I will take some time and put my own numbers (with some hopefully good explanations) in to the mix. So stay tuned:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket job market
I agree with you. The one thing i would say:if you want to have a nice presentation of vaadin,it comes out of the box,because thats a vaadin feature:nice presentation. No other framework has it such easy:) So lets start a competition... Michael:) manuelbarzi schrieb: >> I think, you should not compare wicket with vaadin. Wicket is not the >right >> answer for every project. Wicket does not compete with vaadin, >because >> wicket is a different hammer. The rise of "javascript apps" could >change the >> future of web development, but for such a project you should not use >wicket >> either. IMHO wicket is the better answer than struts, grails (if you >have a >> long term maintenance cycle), jsf... >> >> I think there are many wicket projects out there, but wicket is not >the so >> called cool stuff like grails, spring roo and so on... nothing a >developer >> likes to play with (which is IMHO a good thing). I think, this could >be >> changed with wicket 6 (jquery build-in)... but it is a long way. > >your loosing the focus pretended to be justify before: "marketing", >not tech. and many people "first see", later "think" :) > >nobody was comparing Wicket with Vaadin, neither technically and >neither in any other similar aspects. but you seem to defend so it in >your mail. Vaadin is just mentioned as a good example (like it or not) >that gains a lot of adepts just because of its "cool marketing >presentation" at its website (in terms of style, look & feel, and >"special effects"). that's all. so could be any other tech that >applies similar commercial strategies. > >just to give you an example: from many persons i know, who have >decision power in projects, and they have no idea about wicket, they >just say: "does wicket really have serious projects? is it actually >used? cause i see that GWT or Vaadin seem much more "worked", >professional, and nice". and you cannot pretend them to perfeclty >understand the differences between techs because they have no enough >technical skills to do so. sad (not really, is a nice feedback to >learn from) but true. > >Wicket is probably the best most of us have ever enjoyed before. but >let's be realistic, there's the nice paradox of "non competitive >presentation of this presentation framework" yet, to be sold to "not >enough tech skilled" people, who are decision makers. they just want >to see "nice cinema". then, why not adding that to Wicket site, and be >more "marketineers" too? > >i think we may all agree that in general, open-source projects in >Apache have a big lack of "cool presentation and marketing". and >marketing it is not a concept that goes against open-source, of >course. there are many nice open-source projects that do sell >them-selves well in their sites. > >one nice idea could be: why not opening a competition to create a more >"marketineer" presentation of Wicket tech? > >- >To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >For additional commands, e-mail: users-h...@wicket.apache.org -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
Re: Wicket job market
Am 04.02.2013 15:43, schrieb manuelbarzi: Play Framework, Apache Click, Stripes, Struts, JSF, Seam http://www.indeed.com/jobtrends?q=%22Play+Framework%22%2C+%22Apache+Click%22%2C+Stripes%2C+Struts%2C+JSF%2C+Seam What needs to be improved to get a wider adoption of Wicket ? IMO, "selling" Wicket as Vaadin does, may help a lot. I think, you should not compare wicket with vaadin. Wicket is not the right answer for every project. Wicket does not compete with vaadin, because wicket is a different hammer. The rise of "javascript apps" could change the future of web development, but for such a project you should not use wicket either. IMHO wicket is the better answer than struts, grails (if you have a long term maintenance cycle), jsf... I think there are many wicket projects out there, but wicket is not the so called cool stuff like grails, spring roo and so on... nothing a developer likes to play with (which is IMHO a good thing). I think, this could be changed with wicket 6 (jquery build-in)... but it is a long way. Michael - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What is wrong/missing in this code, model object deos not get set
Use AjaxFormSubmitBehavior,not AjaxEventBehavior.. Michael saty schrieb: >IAutoCompleteRenderer renderer = new >AbstractAutoCompleteTextRenderer() > { > private static final long serialVersionUID = 1L; > @Override > protected String getTextValue(Broker object) > { > return object.getBrokerCode() +"-" + > object.getDescription(); > } > > > }; > >final IModel brokerModel = new Model(); >final AutoCompleteTextField broker = new >AutoCompleteTextField("broker", brokerModel,renderer) > { > private static final long serialVersionUID = 1L; > @Override > protected Iterator getChoices(String input) > { > List choices = new ArrayList(10); >List brokers = getService().getBrokerList();//gets >brokers >for (final Broker brk : brokers) >{ >final String code = brk.getBrokerCode(); >if (code.toUpperCase().startsWith(input.toUpperCase())) >{ >choices.add(brk); >if (choices.size() == 10) >{ >break; >} >} >} >return choices.iterator(); > }}; > > form.add(broker); > > broker.add(new AjaxEventBehavior("onchange") > { > @Override > protected void onEvent(AjaxRequestTarget > target) { > > logger.info("AjaxEventBehavior::onchange: >"+brokerModel.getObject()); > //always prints null here??? > > } > > }); > >Thanks > > > >-- >View this message in context: >http://apache-wicket.1842946.n4.nabble.com/What-is-wrong-missing-in-this-code-model-object-deos-not-get-set-tp4656005.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 -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
Re: Wicket 6+ through JSONP "tunneling"
AFAIK a GTW app is nothing more then a script and a div tag on the client page.. dont know which protocoll GWT uses for server communication... MattyDE schrieb: >so Google-WebToolkit is able to communicate through JSONP with the >server? >Because i really have to ask the server for data (backend) > > > >-- >View this message in context: >http://apache-wicket.1842946.n4.nabble.com/Wicket-6-through-JSONP-tunneling-tp4655501p4655503.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 -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
Re: Wicket 6+ through JSONP "tunneling"
Maybe you should use GWT instead... Michael MattyDE schrieb: >We have to implement a Wicket-driven webapp which could be easily >included in >any other customer HTML-"WebPage" without a java-driven webserver >(could be >also php or only html or anything else). > >My first idea: iframe. But iframes are not allowed cause of accessibly >for >handicaped people. >My second one (and last): JSONP. So on customer-side the customer just >has >to include a script-Tag to our java-wicket-webserver and we let wicket >submit the rendered page output to json, transfering it back to the >customer, on which side the json would be unpacked, interpreted and >injected. > >But what is with the user-actions on this side. They all have to be >transfered through JSONP again back to our java-server and so on. > >Did anybody of you did this before? Any ideas how to "pack" the >rendered >page-markup in json (should i implement my own "WicketFilter"?) > >Thanks in Advance for any help, and apologise for my horrible English. > >Its not my mothers tongue. > >- Matt > > > >-- >View this message in context: >http://apache-wicket.1842946.n4.nabble.com/Wicket-6-through-JSONP-tunneling-tp4655501.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 -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
Re: Are Wicket models loaded concurrently ?
If you want to speedup thing, you should trigger some model loading as early as possible.. (It is too late, if a component calls IModel.getObject() (should return the right value)). Because wicket uses one thread per request you must use an other thread for loading. This way you could speedup a pageload for one user.. but not for more than one (you have to load it anyway) .. there is a good chance to make it worse. I think you choose a threaded model loading if most other options failed (use a cache, change the query, ...) Mm:) Hendy Irawan schrieb: > >Hi friends, > >If I have 5 Wicket (LoadableDetachable)models on a page, will Wicket >load >each model sequentially, or will the 5 models loaded concurrently ? > >We're using different servers for each database connection (MongoDB, >Neo4j, >etc.) so it will be a more effective use to load the models >concurrently. > >Thank you. > > > >-- >View this message in context: >http://apache-wicket.1842946.n4.nabble.com/Are-Wicket-models-loaded-concurrently-tp4655046p4655047.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 -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
Re: Illegal utf characters in ajax xml response
Am 15.12.2012 06:22, schrieb Martin Makundi: We could use AjaxSelfUpdatingTimerBehavior to iterate over most characters and see where it fails (which could be easily detected).. As today i only know of 0x1a as a bad one. Michael Mosmann OK, is possibly trivial: getRequestCycleSettings().addResponseFilter(new IResponseFilter() { @Override public AppendingStringBuffer filter(AppendingStringBuffer responseBuffer) { return responseBuffer; TODO if starts with xml strip illegal xml characters? } }); ? 2012/12/15 Martin Makundi Can you point me to an example for this? 2012/12/15 Martin Grigorov org.apache.wicket.response.filter.IResponseFilter is applied to both Ajax and normal responses. On Sat, Dec 15, 2012 at 7:02 AM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: Hi! Is there a setting/interceptor/filter that can be applied to filter out illegal utf characters from AjaxRequestTarget response? http://blog.mark-mclaren.info/2007/02/invalid-xml-characters-when-valid-utf8_5873.html Specifically wicket 1.4.x ** Martin -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/> - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Setup Wicket in Eclipse without need to re-initialize the whole servlet container
I have used run-jetty-run as eclipse plugin... If this is not enough, you should use jrebel. Michael mosmann "seba.wag...@gmail.com" schrieb: >Hi, > >we have set up Wicket in OpenMeetings and it is working fine! > >However the development cycle is pretty long: >Every change requires us to recompile and restart the servlet >container. >As we use Wicket + Spring + openJPA a restart takes around 20 seconds >+ compilations time, it takes around 30 seconds in total. >When working with UI components you regularly sit on your desk and >wait for this cycle to complete ;) > >Is there a way to develop and test Wicket more agile? >Is there some "Hot-plug" mechanism that does not require to reload the >whole servlet container with every change? > >Thanks! >Sebastian > >-- >Sebastian Wagner >https://twitter.com/#!/dead_lock >http://www.webbase-design.de >http://www.wagner-sebastian.com >seba.wag...@gmail.com > >- >To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >For additional commands, e-mail: users-h...@wicket.apache.org -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
Re: I think it's time for a new book.... Igor and Co ?
Am 27.07.2012 00:16, schrieb Igor Vaynberg: On Fri, Jul 27, 2012 at 12:20 AM, Bertrand Guay-Paquet wrote: Seeing how the previous book authors became less active after writing a book I think this is not a very good idea... :-/ Is this because the books didn't sell well enough? i can only speak for myself, define enough :) i agreed to work on the book knowing full well it was not going to sell a million copies. i wrote it so the community has an easily accessible resource. same for me.. but a german market differ from a more global one:) I don't know the authors personally and I don't know much about the publishing world so it could very well be another reason altogether. writing the book was a very long and a very exhausting effort, much much more then i thought it would be. when i was done the book was actually twice as long as what was published, but the publisher wanted me to trim it down to keep the cost low... they would have to charge more if the book had more pages :/ I had to come upfront with how much pages it would be in the end. The publisher made their calculation based on it, so the page count is more strict than some one may think. the combination of those two things has burned me out somewhat. at least enough to make me want to go play with other things for a while. -igor same for me, but more time has passed, so i would take the pain again:) maybe i am a fool:) Michael:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Image urls with CryptoMapper
Ok.. i think, wicket will parse the markup and rewrites the first img tag... Wicket can only do this, because its allready in the markup. Whatever comes out of an model will NOT be parsed by wicket, so its plain html (escaping switched off). The second image is more like your problem as the first. And AFAIK you have to come up with the need of rewriting you image references to absolute urls or to build image tags based on your html from your backend. You have to parse this html from your backend if you want something which can called a solution. Everything else is hope that it will work. If you want to know, how you can do this, i can help with some examples. -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. jchappelle schrieb: Well, in my actual live application I don't have that option. We are sending a query to a web service and part of the response from that web service has these image links embedded in it. So we are using a label to display them just as I am doing in the quickstart. As you can see in the quickstart, there is an ImagePanel which has a hard-coded image, which only lives in html and then a dynamic image, which is created within a wicket label. That ImagePanel is reused on both pages. The dynamic image on the second page shows a red x in the browser. In fact if you look at the src attribute you will see that wicket has modified the src attribute of the hard-coded img tag to this "../../../images/arrow-up-green.gif" however it left the other unchanged. Everything works if the CryptoMapper is not the root mapper. Josh On Thu, Jul 26, 2012 at 3:25 PM, michael mosmann [via Apache Wicket] < ml-node+s1842946n4650810...@n4.nabble.com> wrote: > I have some questions. How does the first img-tag on the second page > differ from the first one? Why dont you use a wicket image component? > > Mm:) > -- > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail > gesendet. > > > > jchappelle <[hidden > email]<http://user/SendEmail.jtp?type=node&node=4650810&i=0>> > schrieb: > > I went back and edited my post. It might not have come through the mailing > list but if you look at it from the nabble website it shows up. > > Josh > > On Thu, Jul 26, 2012 at 2:57 PM, michael mosmann [via Apache Wicket] < > [hidden email] <http://user/SendEmail.jtp?type=node&node=4650810&i=1>> > wrote: > > > Are you sure, that your panel markup works? I can not see any wicket Tag > > in it? > > -- > > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail > > gesendet. > > > > > > > > jchappelle <[hidden email]< > http://user/SendEmail.jtp?type=node&node=4650807&i=0>> > > schrieb: > > > > I'm hitting a problem with images not being found when using > CryptoMapper. > > I > > have 2 pages listed below. The dynamic image on the second page does not > > show but it does on the first page. I get to the second page by clicking > > the > > "Page 2" link on the first. The code below is from my quickstart I have > > created. It is pretty small so I figured why not list it here. Any help > is > > appreciated. > > > > > > public class Page1 extends WebPage > > { > > public Page1() > > { > > add(new ImagePanel("panel")); > > add(new AjaxLink("page2Link") > > { > > @Override > > public void onClick(AjaxRequestTarget target) > > { > > setResponsePage(Page2.class); > > } > > }); > > } > > } > > > > > > http://wicket.apache.org";> > > > > > > # Page 2 > > > > > > > > > > public class Page2 extends WebPage > > { > > public Page2() > > { > > add(new ImagePanel("panel")); > > } > > } > > > > > > http://wicket.apache.org";> > > > > > > > > > > > > > > public class ImagePanel extends Panel > > { > > public ImagePanel(String id) > > { > > super(id); > > > > add(new Label("dynamicImage", Model.of("Image Here: > > images/arrow-up-green.gif ")).setEscapeModelStrings(false)); > > } > > } > > > > > > http://www.w3.org/1999/xhtml"; > > xmlns:wicket="http://wicket.apache.org/";> > > > > Hard-Coded Image: images/arrow-up-green.gif > > Dynamic Image: > > > > > > > > public class WicketApplication extends WebApplication > > { > > @Override > > public Class getHomePage() > > { > > return Page1.class; > > } > > @Override > > public void init() > > { > > super.init(); > > setRootRequestMapper(new > > CryptoMapper(getRootRequestMapper(), this)); > > } > > } > > > > > > > > > > > > -- > > View this message in context: > > >
Re: Image urls with CryptoMapper
I have some questions. How does the first img-tag on the second page differ from the first one? Why dont you use a wicket image component? Mm:) -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. jchappelle schrieb: I went back and edited my post. It might not have come through the mailing list but if you look at it from the nabble website it shows up. Josh On Thu, Jul 26, 2012 at 2:57 PM, michael mosmann [via Apache Wicket] < ml-node+s1842946n4650807...@n4.nabble.com> wrote: > Are you sure, that your panel markup works? I can not see any wicket Tag > in it? > -- > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail > gesendet. > > > > jchappelle <[hidden > email]<http://user/SendEmail.jtp?type=node&node=4650807&i=0>> > schrieb: > > I'm hitting a problem with images not being found when using CryptoMapper. > I > have 2 pages listed below. The dynamic image on the second page does not > show but it does on the first page. I get to the second page by clicking > the > "Page 2" link on the first. The code below is from my quickstart I have > created. It is pretty small so I figured why not list it here. Any help is > appreciated. > > > public class Page1 extends WebPage > { > public Page1() > { > add(new ImagePanel("panel")); > add(new AjaxLink("page2Link") > { > @Override > public void onClick(AjaxRequestTarget target) > { > setResponsePage(Page2.class); > } > }); > } > } > > > http://wicket.apache.org";> > > > # Page 2 > > > > > public class Page2 extends WebPage > { > public Page2() > { > add(new ImagePanel("panel")); > } > } > > > http://wicket.apache.org";> > > > > > > > public class ImagePanel extends Panel > { > public ImagePanel(String id) > { > super(id); > > add(new Label("dynamicImage", Model.of("Image Here: > images/arrow-up-green.gif ")).setEscapeModelStrings(false)); > } > } > > > http://www.w3.org/1999/xhtml"; > xmlns:wicket="http://wicket.apache.org/";> > > Hard-Coded Image: images/arrow-up-green.gif > Dynamic Image: > > > > public class WicketApplication extends WebApplication > { > @Override > public Class getHomePage() > { > return Page1.class; > } > @Override > public void init() > { > super.init(); > setRootRequestMapper(new > CryptoMapper(getRootRequestMapper(), this)); > } > } > > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Image-urls-with-CryptoMapper-tp4650805.html > Sent from the Users forum mailing list archive at Nabble.com. > >_ > > To unsubscribe, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=4650807&i=1> > For additional commands, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=4650807&i=2> > > > >_ > If you reply to this email, your message will be added to the discussion > below: > > http://apache-wicket.1842946.n4.nabble.com/Image-urls-with-CryptoMapper-tp4650805p4650807.html > To unsubscribe from Image urls with CryptoMapper, click > here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4650805&code=amNoYXBwZWxsZUA0cmVkaS5jb218NDY1MDgwNXwtMTI5MjQyMjY0NQ==>; > . > NAML<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespa
Re: I think it's time for a new book.... Igor and Co ?
I would put the bell on the cat .. but maybe someone would join.. Mm:) -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. Igor Vaynberg schrieb: lol. my thoughts exactly :) -igor On Sun, Jul 22, 2012 at 12:53 PM, Josh Kamau wrote: > Who will bell <http://en.wikipedia.org/wiki/Belling_the_cat>; the cat ? > > On Sun, Jul 22, 2012 at 12:51 PM, Michael Mosmann wrote: > >> Had the same idea... >> -- >> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail >> gesendet. >> >> >> >> mlabs schrieb: >> >> The title would be ... 'Wicket Internals' ... >> Dive DEEPER into the parts other programmers never reach >> The inner workings of response cycles... what really happens ... >> Oh and esp the Ajax stuff... jQuery integration ... etc... >> >> TIA >> >> >> >> -- >> View this message in context: >> http://apache-wicket.1842946.n4.nabble.com/I-think-it-s-time-for-a-new-book-Igor-and-Co-tp4650687.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: I think it's time for a new book.... Igor and Co ?
Had the same idea... -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. mlabs schrieb: The title would be ... 'Wicket Internals' ... Dive DEEPER into the parts other programmers never reach The inner workings of response cycles... what really happens ... Oh and esp the Ajax stuff... jQuery integration ... etc... TIA -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/I-think-it-s-time-for-a-new-book-Igor-and-Co-tp4650687.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: Understanding Wicket redirect behavior
I am still working on this.. but it takes time. -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. Alec Swan schrieb: Anybody? On Sat, Jul 14, 2012 at 5:24 PM, Alec Swan wrote: > Is there a way in 1.4.x to avoid a 302 redirect to /lrm/ms/oid/123.0 > when the user opens /lrm/ms/oid/123? > > Thanks, > > Alec > > On Sat, Jul 14, 2012 at 5:09 PM, Alec Swan wrote: >> Michael, >> >> I integrated DisabledJSessionIDinUrlFilter code that you sent me and I >> still get a 302 redirect. The filter behaves the same as >> COOKIE Tomcat 7 configuration. >> >> In other words /lrm/ms/oid/123 is still redirected with 302 code to >> /lrm/ms/oid/../../ms/oid/123.0. Note that I no longer have jsessionid >> at the end of the URL. >> >> I think the core problem is that my page is versionable and therefore >> Wicket created the first version of the page and does a 302 redirect >> to it. >> >> Still struggling with this. >> >> Alec >> >> >> On Sat, Jul 14, 2012 at 3:48 PM, Michael Mosmann wrote: >>> Hi Alec, >>> >>> Ok.. so far for now: >>> - with wicket 1.4 removing the jessionID from URL should do the trick. >>> And AFAIK wicket 1.4 should not do any redirect after this. >>> - with wicket 1.5 the jsessionID is gone, BUT wicket 1.5 will do some >>> redirect from path/yourPage to path/yourPage?0 (0 or other - wicket >>> page version) >>> >>> Michael >>> >>> Am Samstag, den 14.07.2012, 14:47 -0600 schrieb Alec Swan: >>>> Thanks Michael. I read the first link before and the only thing that I >>>> didn't do (and probable cannot do) is make my pages stateless. >>>> >>>> As far as the second link to DisabledJSessionIDinUrlFilter.java, >>>> doesn't it just strip off JSESSIONID from the URL? Is there something >>>> that I missed? >>>> >>>> Thanks, >>>> >>>> Alec >>>> >>>> On Sat, Jul 14, 2012 at 2:38 PM, Michael Mosmann >>>> wrote: >>>> > Maybe this will help >>>> > >>>> > https://cwiki.apache.org/WICKET/seo-search-engine-optimization.html >>>> > >>>> > Or try this one: >>>> > >>>> > https://github.com/michaelmosmann/wicket-praxis/blob/master/de.wicketpraxis--pom/webapp/src/main/java/de/wicketpraxis/web/thema/howto/servletfilter/DisabledJSessionIDinUrlFilter.java >>>> > >>>> > Michael mosmann >>>> > >>>> > -- >>>> > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail >>>> > gesendet. >>>> > >>>> > >>>> > >>>> > Alec Swan schrieb: >>>> > >>>> > Thanks Josh, I upgraded to Tomcat7 and was able to disable cookies as >>>> > you suggested. It worked! This, however does not help me change 302 >>>> > redirect to 200. >>>> > >>>> > Is there any way I can make /lrm/ms/oid/123 return 200 just like >>>> > /lrm/network as explained in my original post? >>>> > >>>> > Thanks, >>>> > >>>> > Alec >>>> > >>>> > >>>> > On Sat, Jul 14, 2012 at 12:36 PM, Josh Kamau >>>> > wrote: >>>> >> I read somewhere that : >>>> >> >>>> >> When its first time you are accessing a page, tomcat doesnt know if >>>> >> cookies >>>> >> are supported.. so to be safe, it will embed the session id in the url. >>>> >> IF >>>> >> you then access another page, this time round tomcat knows what kind of >>>> >> browser its dealing with ... and if cookies are supported, it wont embed >>>> >> the session id in the url but will put it in a cookie.. >>>> >> >>>> >> Now to tell tomcat to always use the cookies , you add >>>> >> >>>> >> >>>> >> COOKIE >>>> >> >>>> >> >>>> >> >>>> >> In your web.xml file.. >>>> >> >>>> >> Cheers >>>> >> Josh >>>> >> >>>> >> On Sat, Jul 14, 2012 at 8:30 PM, Alec Swan wrote: >>>> >> >>>> >>> Hello, >>>> >>> >>>> >>> While working on my previous problem I found out that when I do a GET >>>> >>> to one of my bookmarkable pages, e.g. /lrm/ms/oid/123, I get a 302 >>>> >>> redirect to /lrm/ms/oid/../../ms/oid/123.0;jsessionid=xxx. However, >>>> >>> when I do a GET to /lrm/network I get a 200 response and jsessionid is >>>> >>> set as a cookie in the response.
Re: Understanding Wicket redirect behavior
Hi Alec, Ok.. so far for now: - with wicket 1.4 removing the jessionID from URL should do the trick. And AFAIK wicket 1.4 should not do any redirect after this. - with wicket 1.5 the jsessionID is gone, BUT wicket 1.5 will do some redirect from path/yourPage to path/yourPage?0 (0 or other - wicket page version) Michael Am Samstag, den 14.07.2012, 14:47 -0600 schrieb Alec Swan: > Thanks Michael. I read the first link before and the only thing that I > didn't do (and probable cannot do) is make my pages stateless. > > As far as the second link to DisabledJSessionIDinUrlFilter.java, > doesn't it just strip off JSESSIONID from the URL? Is there something > that I missed? > > Thanks, > > Alec > > On Sat, Jul 14, 2012 at 2:38 PM, Michael Mosmann wrote: > > Maybe this will help > > > > https://cwiki.apache.org/WICKET/seo-search-engine-optimization.html > > > > Or try this one: > > > > https://github.com/michaelmosmann/wicket-praxis/blob/master/de.wicketpraxis--pom/webapp/src/main/java/de/wicketpraxis/web/thema/howto/servletfilter/DisabledJSessionIDinUrlFilter.java > > > > Michael mosmann > > > > -- > > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. > > > > > > > > Alec Swan schrieb: > > > > Thanks Josh, I upgraded to Tomcat7 and was able to disable cookies as > > you suggested. It worked! This, however does not help me change 302 > > redirect to 200. > > > > Is there any way I can make /lrm/ms/oid/123 return 200 just like > > /lrm/network as explained in my original post? > > > > Thanks, > > > > Alec > > > > > > On Sat, Jul 14, 2012 at 12:36 PM, Josh Kamau wrote: > >> I read somewhere that : > >> > >> When its first time you are accessing a page, tomcat doesnt know if cookies > >> are supported.. so to be safe, it will embed the session id in the url. IF > >> you then access another page, this time round tomcat knows what kind of > >> browser its dealing with ... and if cookies are supported, it wont embed > >> the session id in the url but will put it in a cookie.. > >> > >> Now to tell tomcat to always use the cookies , you add > >> > >> > >> COOKIE > >> > >> > >> > >> In your web.xml file.. > >> > >> Cheers > >> Josh > >> > >> On Sat, Jul 14, 2012 at 8:30 PM, Alec Swan wrote: > >> > >>> Hello, > >>> > >>> While working on my previous problem I found out that when I do a GET > >>> to one of my bookmarkable pages, e.g. /lrm/ms/oid/123, I get a 302 > >>> redirect to /lrm/ms/oid/../../ms/oid/123.0;jsessionid=xxx. However, > >>> when I do a GET to /lrm/network I get a 200 response and jsessionid is > >>> set as a cookie in the response. > >>> > >>> /lrm/network is explicitly mounted as mountBookmarkablePage in > >>> Application.init(). We are using Tomcat 6.0 and Wicket 1.4.17. > >>> > >>> How can I make /lrm/ms/oid/123 return 200 just like /lrm/network? > >>> Should we somehow mountBookmarkablePage each such page which we have > >>> thousands of? Will upgrading to Wicket 1.5 help achieve this behavior? > >>> > >>> Thanks, > >>> > >>> Alec > >>> > >>>_ > > > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >>> For additional commands, e-mail: users-h...@wicket.apache.org > >>> > >>> > > > > _ > > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Understanding Wicket redirect behavior
Wait, i will check this again. AFAIK thats all you need. But i am not sure by now... Michael -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. Alec Swan schrieb: Thanks Michael. I read the first link before and the only thing that I didn't do (and probable cannot do) is make my pages stateless. As far as the second link to DisabledJSessionIDinUrlFilter.java, doesn't it just strip off JSESSIONID from the URL? Is there something that I missed? Thanks, Alec On Sat, Jul 14, 2012 at 2:38 PM, Michael Mosmann wrote: > Maybe this will help > > https://cwiki.apache.org/WICKET/seo-search-engine-optimization.html > > Or try this one: > > https://github.com/michaelmosmann/wicket-praxis/blob/master/de.wicketpraxis--pom/webapp/src/main/java/de/wicketpraxis/web/thema/howto/servletfilter/DisabledJSessionIDinUrlFilter.java > > Michael mosmann > > -- > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. > > > > Alec Swan schrieb: > > Thanks Josh, I upgraded to Tomcat7 and was able to disable cookies as > you suggested. It worked! This, however does not help me change 302 > redirect to 200. > > Is there any way I can make /lrm/ms/oid/123 return 200 just like > /lrm/network as explained in my original post? > > Thanks, > > Alec > > > On Sat, Jul 14, 2012 at 12:36 PM, Josh Kamau wrote: >> I read somewhere that : >> >> When its first time you are accessing a page, tomcat doesnt know if cookies >> are supported.. so to be safe, it will embed the session id in the url. IF >> you then access another page, this time round tomcat knows what kind of >> browser its dealing with ... and if cookies are supported, it wont embed >> the session id in the url but will put it in a cookie.. >> >> Now to tell tomcat to always use the cookies , you add >> >> >> COOKIE >> >> >> >> In your web.xml file.. >> >> Cheers >> Josh >> >> On Sat, Jul 14, 2012 at 8:30 PM, Alec Swan wrote: >> >>> Hello, >>> >>> While working on my previous problem I found out that when I do a GET >>> to one of my bookmarkable pages, e.g. /lrm/ms/oid/123, I get a 302 >>> redirect to /lrm/ms/oid/../../ms/oid/123.0;jsessionid=xxx. However, >>> when I do a GET to /lrm/network I get a 200 response and jsessionid is >>> set as a cookie in the response. >>> >>> /lrm/network is explicitly mounted as mountBookmarkablePage in >>> Application.init(). We are using Tomcat 6.0 and Wicket 1.4.17. >>> >>> How can I make /lrm/ms/oid/123 return 200 just like /lrm/network? >>> Should we somehow mountBookmarkablePage each such page which we have >>> thousands of? Will upgrading to Wicket 1.5 help achieve this behavior? >>> >>> Thanks, >>> >>> Alec >>> >>>_ > >>> 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: Understanding Wicket redirect behavior
Maybe this will help https://cwiki.apache.org/WICKET/seo-search-engine-optimization.html Or try this one: https://github.com/michaelmosmann/wicket-praxis/blob/master/de.wicketpraxis--pom/webapp/src/main/java/de/wicketpraxis/web/thema/howto/servletfilter/DisabledJSessionIDinUrlFilter.java Michael mosmann -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. Alec Swan schrieb: Thanks Josh, I upgraded to Tomcat7 and was able to disable cookies as you suggested. It worked! This, however does not help me change 302 redirect to 200. Is there any way I can make /lrm/ms/oid/123 return 200 just like /lrm/network as explained in my original post? Thanks, Alec On Sat, Jul 14, 2012 at 12:36 PM, Josh Kamau wrote: > I read somewhere that : > > When its first time you are accessing a page, tomcat doesnt know if cookies > are supported.. so to be safe, it will embed the session id in the url. IF > you then access another page, this time round tomcat knows what kind of > browser its dealing with ... and if cookies are supported, it wont embed > the session id in the url but will put it in a cookie.. > > Now to tell tomcat to always use the cookies , you add > > > COOKIE > > > > In your web.xml file.. > > Cheers > Josh > > On Sat, Jul 14, 2012 at 8:30 PM, Alec Swan wrote: > >> Hello, >> >> While working on my previous problem I found out that when I do a GET >> to one of my bookmarkable pages, e.g. /lrm/ms/oid/123, I get a 302 >> redirect to /lrm/ms/oid/../../ms/oid/123.0;jsessionid=xxx. However, >> when I do a GET to /lrm/network I get a 200 response and jsessionid is >> set as a cookie in the response. >> >> /lrm/network is explicitly mounted as mountBookmarkablePage in >> Application.init(). We are using Tomcat 6.0 and Wicket 1.4.17. >> >> How can I make /lrm/ms/oid/123 return 200 just like /lrm/network? >> Should we somehow mountBookmarkablePage each such page which we have >> thousands of? Will upgrading to Wicket 1.5 help achieve this behavior? >> >> Thanks, >> >> Alec >> >>_ >> 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: serialization
Am Montag, den 09.11.2009, 13:07 -0500 schrieb Sam Barrow: > protected void populateItem(final ListItem item) { > final Money price = > getPricingService().calculatePrice(item.getModelObject()); > add(new Label("price", price.toString())); > } is Money serializable? mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: When NOT to use models ?
Am Montag, den 26.10.2009, 10:24 +0200 schrieb Martin Makundi: > > Hmm, maybe I'm missing something, but if you want to have EVALUATED once per > > request, I think the following should be sufficient. (unless I'm missing > > somtething) > > I want a generic centrally managed solution. I don't want to cache > every model manually. we are using this one: http://www.wicket-praxis.de/blog/2009/01/03/modell-referenzen/ it's more like an model graph.. so you say IModel> dataFromDB=new LoadableDetachedModel() ... IModel countModel=new CascadingLoad..Model>(dataFromDB); add(new Label("counter",countModel)); countModel.detach() is called from Label, and dataFromDB.detach() is called fram countModel. Because it's generic you can use it everywhere.. mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Multiple AttributeModifier-s on a single tag
Hi, > I'm trying to add two AttributeModifiers on WebMarkupContainer and it > doesn't work. > Only one of them is working, the last added one. > Could anybody show me how to do it properly? maybe you should use AttributeAppender, not AttributeModifier mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: When NOT to use models ?
Am Freitag, den 23.10.2009, 15:06 +0300 schrieb Martin Makundi: > Hi! > > I have said that you might need to "cache" your model values, in some > performance situations. If you do not use models, you do not need same > kind of caching (because the value is fixed). Nevetheless, using > models results in cleaner code, but I am dreaming of a centralized > caching mechanism such that each model value would be evaluated only > one time per render / model change. evaluated only one time per render can be done with LoadableDetachedModel .. or do i miss some point? can you explain it a littly bit (a link to your original message?) mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket:enclosure ( setting visible when hidden on render )
Am Freitag, den 23.10.2009, 09:25 +0200 schrieb Swanthe Lindgren: > Try setOutputMarkupPlaceholderTag(true) on the component withing the > enclosure. i think, that's not enough.. maybe i am wrong, but yes, you should use a markup container for this kind of stuff.. > //Swanthe > > Douglas Ferguson wrote: > > I have a component that is wrapped with a wicket enclosure. > > > > When the page is rendered I set the component visible(false) which > > make the entire wicket enclosure hidden. > > > > Then I set visible(true) during runtime and at the component to the > > AjaxTarget. > > > > The component is not rendered. > > > > Is there a way to get this to work? Or do I have to explicitly add a > > markup container if i want to start with it hidden and then display > > later? > > > > D/ > > > > - > > 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
Wicket Component Overview
Hi, i did some wicket component diagram stuff (model, listener etc.) http://www.wicket-praxis.de/blog/2009/10/16/wicket-component-overview/ glad to see some reply on this.. mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax: Updating component outside Panel
Hi, > I have Index.java that displays a shopping cart from a custom shopping cart > panel (ShoppingCartPanel.java). This custom panel has a remove link for each > item, and clicking this removes the item from the list using Ajax. In > Index.java I also have a Checkout button that is set to visible when there's > items in the shopping cart. I need to refresh this component also using Ajax > when I press the remove link in the shopping cart panel, so that it is hidden > when the cart is empty. How do I update this component from my custom > shopping cart panel? Do I have to make the Checkout button a public variable > and refresh it using target.addComponent(Index.checkout) in > ShoppingCartPanel.java, or is there an easier and more elegant way to do this? .. you can visit each component on the current page and tell (interface) it, that someone has changed something.. the component can now decide to redraw itself. Ignore the text, the code should tell the story: http://books.google.de/books?id=9esdx8R-fJAC&lpg=PA104&ots=ajkIysVFup&dq=wicket%20AbstractAjaxEvent&pg=PA103#v=onepage&q=wicket%20AbstractAjaxEvent&f=false mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Handling Hibernate session (LazyInitializationException)
Am Freitag, den 18.09.2009, 00:35 +0200 schrieb Peter Ertl: > as an further improvement use salve to completely remove your > headache :-) > >http://code.google.com/p/salve thank you.. interesting stuff.. do you have any experience in combination with hibernate? mm:) > Am 17.09.2009 um 23:51 schrieb Michael Mosmann: > > > Hi, > > > >> (Solution with no Spring is > >> preferable). > > > > Use Spring, because it will limit your headache.. > > > > Maybe this is usefull: > > http://www.wicket-praxis.de/blog/download/ > > > > use Link behind "Praxisbuch Wicket Beispielcode" for a maven-based > > project with: > > - Spring (open session in view filter, @SpringBean-Annotation support, > > Hibernate UnitTest) > > - Hibernate (Hibernate Annotation Support) > > > > mm:) > > > > > > > > - > > 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: Handling Hibernate session (LazyInitializationException)
Hi, > (Solution with no Spring is > preferable). Use Spring, because it will limit your headache.. Maybe this is usefull: http://www.wicket-praxis.de/blog/download/ use Link behind "Praxisbuch Wicket Beispielcode" for a maven-based project with: - Spring (open session in view filter, @SpringBean-Annotation support, Hibernate UnitTest) - Hibernate (Hibernate Annotation Support) mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: bookmarkable pages from scala
Am Donnerstag, den 17.09.2009, 08:06 +0300 schrieb Haim Ashkenazi: > OK, I think I've found it. :) > > getResponsePage(Class) first links to a regular wicket url and only then > redirects to a bookmarkable one. This is why it didn't work when > invalidating the session :) Any Questions so far? I did not have time to answer yours this day.. mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: bookmarkable pages from scala
Hi, After Session.invalidate everything is cleaned up.. change your code from add (new SLink("gohome", {setResponsePage(classOf[HomePage])})) to add(new BookmarkablePageLing("gohome", classOf[HomePage])); and it will work.. mm:) p.s.: the javacode for SLink.. is add(new Link("gohome") { onClick() { setResponsePage(HomePage.class); } } .. so Url for this Link is not bookmarkable.. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: bookmarkable pages from scala
Am Mittwoch, den 16.09.2009, 16:32 +0300 schrieb Haim Ashkenazi: > Hi > > I'm trying to run setResponsePage with a class parameter. According to the > doc if I run: > setResponsePage(MyPage.class) some more code? mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Slides
Hi, > I have slides from my Wicket presentation last night here in St. Louis. On Page 20 you write "public Object getObject(Component component)" but "public Object setObject(Serializable object)" AFAIK "getObject(Component component)" is deprecated.. use "getObject()" .. (http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket +models was wrong.. i have fixed it) If you use wicket 1.4.x, you will benefit from improved model with generics .. new IModel() { public String getObject() { .. } .. } mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Displaying column totals for a DefaultDataTable
> Your code does work to display the number of columns in the dataTable, after > I changed dataTable.size() to dataTable.getRowCount(). It did help me in > getting started with writing my own toolbar. Ok.. id did it in this email client, which has very poor development support:) but it was good enough to show you the way:) .. > However, my table has several amount columns and I want to display the sum > of the amounts in each column at the bottom of that column. for the rows displayed or all rows in this columns? i think, you mean the second.. so it is not trivial, because you should not iterate over all entries to build up this numbers.. maybe this is a valid solution: you have somewhere a function which gives you the list of items.. maybe List MyEntity.getList(offset,count).. you need a function which returns on Instance of MyEntity filled whith sum for each property (select sum(prop1),sum(prop2)... -> MyEntity.setProp1(sum1) ..) than take a DataGridView .. see DataTable.java to get a picture of what you need.. so you can reuse the List of IColumn. if you have any further questions.. send some code. mm:) there are many good wicket books available .. do you have one? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Displaying column totals for a DefaultDataTable
Hi, > I have a DefaultDataTable with several amount colums. I need to display > a "Totals" row at the bottom of the table to show the column totals. > I have searched the forum, and only found suggestions to use > addBottomToolbar. correct.. > However, I don't know how to do this? Looking at Wicket's HeaderToolbar, > I see that I would need to pass the DataTable and the > SortableDataProvider to my TotalsToolbar. yes.. correct. > But, how would the toolbar get the data to display? public class TotalCounter extends AbstractToolbar { public TotalCounter(final DataTable dataTable) { IModel model=new LoadabledDetachedModel() { public Integer load() { return dataTable.size() } } WebMarkupContainer span = new WebMarkupContainer("span"); add(span); span.add(new AttributeModifier("colspan", true, new Model( String.valueOf(table.getColumns().length; span.add(new Label("count",model)); } > What would the html markup for this toolbar be like? > Would greatly appreciate if someone could please provide some sample > code. maybe this will work out of the box, but not sure.. (have a look into the wicket code.. .. it will help a lot) mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: RefreshingView not Refreshing
Hi, > Thanks, but I don't know what that implies. If you post a form, then wicket will get the current page from session and call the onSubmit() for the form component. Everything else is allready there.. the RV etc. If you reload a page, wicket will build the page again.. your old page is gone. So for instance if a model is not detached correctly, wicket will use old data (don't know if the problem is in this area). If you reload the page, everything is thrown away and build from scratch. So if your LDM is not bound to any component, detach() is never called.. the old stuff is used. So please send more code.. > Should I put the RV in the form? no.. > Should I use some Ajax so I can target.addComponent(RV) ? no.. because if it does not work without ajax, it will not work with it.. > And most of all, why did my other variation work? > It seems that the RV was being refreshed then. wich wicket version do you use? mm:) > -troy > > On Fri, Sep 11, 2009 at 2:47 AM, Michael Mosmann wrote: > > Hi, > > > >> I'm wondering why the small change (see comments) > >> to my RV causes it to not refresh automatically. > >> A browser refresh shows the changes. > > > > The Form submit does not call the page constructor, but a browser > > refresh does. > > > > mm:) > > > > > > > > - > > 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: Wicket timed events on page - how to?
Am Freitag, den 11.09.2009, 12:49 +0200 schrieb Tomasz Dziurko: > I am writing an application for testing users and two functionalities > I need to implement are: > 1. show/hide some components on the page after specified time (few seconds) > 2. redirect to next page after specified time > > I was wondering how to do this, I did some google search and seems I > need to extend AbstractAjaxTimerBehavior. Is it correct way or maybe > another, better solution exists? yes.. it is the correct way.. for 1. you can use AjaxSelfUpdatingTimerBehavior (extends AbstractAjaxTimerBehavior)... :) maybe it works for 2. too.. mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: RefreshingView not Refreshing
Hi, > I'm wondering why the small change (see comments) > to my RV causes it to not refresh automatically. > A browser refresh shows the changes. The Form submit does not call the page constructor, but a browser refresh does. mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Passing parameters from markup to panels
Am Donnerstag, den 10.09.2009, 14:03 +1000 schrieb Chris Colman: > > why? what is different between a 10 or a 50 item song panel? the > number > > of items? you should anyhow use a ListView which repeats the "her is > the > > song"-block as many times as you want to.. > > It is using a ListView - the desire was to provide an easy way for the > UI guy to specify a row count in the markup. ok.. i got this.. i would put it into an property file of the component where the SongPanel is used and put a ResourceModel as parameter to SongPanel > > > Let's say we make > > > > > > SongChartTop10Panel and SongChartTop50Panel > > > > > > (with .java and .html markup for each) > > > > > > Now he says he wants to make a top 20 list for one page and a top 40 > > > list for another page... the inefficiency and non OO nature of this > > > approach becomes apparent. > > > > why do you make this? > > They each derive from SongChartTopPanel and invoke the constructor with > a different row count - but without parameterization and using standard > simple wicket devices (i.e. not component resolvers) then we need a > separate markup and separate .java class for each panel that has a > different number of songs displayed. you can override getVariation to switch between markup.. so if you use the ResourceModel for this, this should be easy.. > > > If a simple parameter were able to be passed to the panel we could > reuse > > > that panel code to show anywhere from 1 to n songs. > > Yes but you'd still require a separate markup for each one I would think > - without going the with component resolver approach. i am not sure, that i understand this problem as it is.. so excuse, if my solutions does not fit.. > The web designer will have a nice 'Top 10' image above the panel so I > didn't want to put it in the hands of the user who might change the > rowcount to 13 or something. 'Top 13 songs around the country this week' > doesn't sound right - especially if the image above it says 'Top 10'. ok.. some code to show you my view of this problem and the solution (may not fit).. class SongPanel .. { SongPanel(String id,ResourceModel topCountAsStringModel) { final int count=getCountAsInt(topCountAsStringModel,10); IModel model=new LoadabledDetachModel() { load() { ... getSongs(count) } } add(new ListView("songs",model) {..} add(new Image("topImg",new ResourceReference(getClass(), "topImage", getLocale(), "top"+count))) } getVariation() { return "top"+count; } } SongPanel.html Top 10 (default) ... SongPanel_top50.html Top 50 ... ComponentA(String id) { add(new SongPanel("songs",new ResourceModel("songsInList","")); } ComponentA.properties: songsInList=10; ComponentB(String id) { add(new SongPanel("songs",new ResourceModel("songsInList","")); } ComponentB.properties: songsInList=50; .. if you enable autolink, then this image-stuff could be much easier, so the web design guy have much control and you have much OO as you can.. .. hope this will help a little mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Passing parameters from markup to panels
Am Dienstag, den 08.09.2009, 09:10 +1000 schrieb Chris Colman: > When my web designer guy wants control over whether he wants to place > either 10 songs or 50 songs into the 'top of the charts' panel I > consider that to be something that should definitely not be something we > have to make separate .java panel classes and markup to achieve. Ok.. maybe you can use this: In your Panel you can use getString("EntriesInMyPanel") and convert this to Integer. You have to put a "EntriesInMyPanel=10" in you MyPanel.properties-File, so that the web designer can change this, without changing the code. > To have to get a programmer to adjust code to change the number of items > displayed in a list would be the subject of thunderous laughter in any > desktop app development environment - but yet I see that web app > development changes all the rules about what's funny and what's not =) You can not always express some changes to a display in a simple Number.. especially in desktop development this could lead to a more complex rule: show me as many songs as far the fit into the space used by this component, but show at least 3 entries full and the rest in compressed form. I did not see any simple number in this. So IMHO you have to write code for this. By the way.. maybe the best person to choose the right number is the user. > We programmer propeller heads can do all the smarts on the Java side to > use a single 'SongChartPanel' to display any number of songs from a list > based on a single parameter - so long as we can get that parameter > somehow. It's still MVC because NO code exists in the presentation layer > - only a parameter is now able to be passed in. You can pass the Parameter into the Component as Parameter or as Model. But IMHO there is no advantage for a static solution like putting it into a markup- or a propertyfile. > .. and it's something > that directly affects the presentation side that he would want control > over. That gives him power. because html is limited in a way, that this "power" is necessary sometimes. but it's not a good idea. it's more a compromise. > Without this power I have to get the programmers to create a different > panel and markup for each different song chart panel even though the > code will be exactly the same except for the terminating condition of a > for loop. why? what is different between a 10 or a 50 item song panel? the number of items? you should anyhow use a ListView which repeats the "her is the song"-block as many times as you want to.. > That's not OO and it's not reusability. It would be funny if > it wasn't true! it is not true.. so i think you did not get the picture.. or we are misunderstanding each other.. > Let's say we make > > SongChartTop10Panel and SongChartTop50Panel > > (with .java and .html markup for each) > > Now he says he wants to make a top 20 list for one page and a top 40 > list for another page... the inefficiency and non OO nature of this > approach becomes apparent. why do you make this? > If a simple parameter were able to be passed to the panel we could reuse > that panel code to show anywhere from 1 to n songs. class SongChartPanel { public SongChartPanel(String id,final int numberOfSongs) { LoadableDetachedModel> songs=new LoadableDetachedModel>() { public List load() { return Songs.getTopX(numberOfSongs); } } add(new ListView("list",songs) { public void populateItem(ListItem item) { item.add(new Label("name",item.getModelObject().getSongName())); } }); } } If you change numberOfSongs to a Model.. the User could change the number (Form, Link,.. anything). mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Update ListView using ajax
Hmm,.. can you post your markup? this code does work with my own markup.. did you use or did you use .. do you see something in wicket-ajax-debug panel? any error-message? any ajax-response? > ...and im pretty sure that i already some code in previous version of wicket > and it work..but i dont know what im missing right now. maybe worst case i > will do is to go back to old version of wicket but i want the latest > version. if this does not work with wicket 1.4.1, then it does not work with any wicket version.. mm:) -- Michael Mosmann - http://www.wicket-praxis.de/blog - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Update ListView using ajax
Hi, > i think i already put it in the webmarkupcontainer and target the > markupcontainer. ok.. my fault.. sorry. can you post some more code.. i am not sure to see the full picture yet. > For no apparent reason the listview is not updating when i targeted it. im > using wicket 1.4.1. does it work without ajax? mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Update ListView using ajax
Am Sonntag, den 06.09.2009, 01:05 +0800 schrieb Eman Nollase: > Hello, > > For no apparent reason the listview is not updating when i targeted it. im > using wicket 1.4.1. The ListView ist replaced with it's childs. Therefore you can not update the ListView. The simple solution to this is a WebMarkupContainer around the ListView. mm:) -- Michael Mosmann http://www.wicket-praxis.de/blog/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
german wicket book example code
Hi, .. you can download (http://www.wicket-praxis.de/blog/download/) all code examples from my german wicket book ("praxisbuch wicket"). All you need is java and maven, so feel free to test it. Michael Mosmann - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: using a panel inside dropdown
Am Donnerstag, den 03.09.2009, 06:56 -0700 schrieb fachhoch: > Is this possible or not , please tell me if there is any option to put a > panel inside a dropdownchoice ? AFAIK you can not place any tag inside an select-Tag.. so you need some javascript-menu-stuff... .. don't know, if you can find something on wicketstuff.org mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataTable & NavigationToolbar visibility problem
> Using > wicket+wicket-extensions 1.4.0. How do I ensure that the nav toolbar > reappears properly when the number of results become pageable again? use wicket 1.4.1 as it's a bug in wicket 1.4.0 mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to detect model "leakage" into session
Am Mittwoch, den 26.08.2009, 21:29 +0200 schrieb Bas Gooren: > Hi all, > > My problem is as follows: I use LoadableDetachableModels throughout my > application, and have made sure I never use a model without it being attached > to a component to prevent models which never get their detach() method called. > Nonetheless, after hitting two fairly simple pages which list some database > data in my application, I get a 100kb session which is filled with literal > strings from model objects. > > I've fired up my (Eclipse) debugger and have stepped through all models on > one of the pages after setting a breakpoint on the pages onDetach() method. I > see all LoadableDetachableModels are detached, so I have no idea what's > causing this. > > What would be a good strategy for finding the source of this problem? IMHO this could be a solution to your problem: http://www.wicket-praxis.de/blog/2009/01/03/modell-referenzen/ CascadingLoadableDetachableModel will detach it's child so that for any used model detach will be called. mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Embedding a Wicket Page inside a DIV
Am Mittwoch, den 26.08.2009, 01:29 -0500 schrieb Avinash palicharla: > I have a page built in SpringMVC. I have a iFrame in this page that loads a > Wicket Page. I want to replace the iFrame with a DIV and load the Wicket > page inside the DIV using Ajax. good luck with this one.. does this page come from the same server? > I used Prototype to load the wicket page. The page loads but the wicket > javascript does not work anymore. I guess this is because the tag > from the wicket response is not processed. yes... 1) you can process the 2) you can fake it, if you include wicket-*.js in your page mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Regarding datepicker popup when inputfield pressed
Am Freitag, den 21.08.2009, 14:33 +0200 schrieb copenhag copenhagen: > Has no one really needed the calendar popup when the input field is > selected/pressed ? sorry.. (btw. IMHO it is annoying ..) i searched for some solution.. but i think you have to a) take a look into this yui magic b) ask on dev list for some infos about an extension of the current datepicker c) choose some different.. d) ..? mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: using hibernate pojo as model instead of dto
Am Donnerstag, den 20.08.2009, 18:59 -0700 schrieb fachhoch: > Is this is a good design or using DTO is a good desing ? it depends.. (IMHO there are only some situations where you can see some benefit in DTO) .. but you have to use LoadableDetachableModels or custom Model implementations to avoid LazyLoadingExceptions for short: --- request comes in { open session for hibernate in OSV } render compontent ask model for data model get it from hibernate with primary key render finished throw temporary data away call detach() on model model clears any reference to the hibernate object { close session for hibernate in OSV } response goes out --- mm:) > > > Mathias Nilsson wrote: > > > > You can use entities as models. Just use LoadableDetachableModels to avoid > > LazyLoadingExceptions > > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Regarding datepicker popup when inputfield pressed
Am Donnerstag, den 20.08.2009, 16:00 +0200 schrieb copenhag copenhagen: > Maybe it's because i am a new Wicket user, but i tried that, without any > luck. > > I can't figure out how the calendar is called when clicked on the icon, it's > pretty tricky for me how > it's done. IMHO yui is doing some magic stuff... maybe this will work DatePicker render something like --- initStart3 = function() { Wicket.DateTime.init( { --- to header.. where "Start3" is the WicketID of the input you should extend the input tag with -- onfocus="initStart3.showCalendar()" -- not testet.. mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Prefix URL for skinnable site
Am Donnerstag, den 20.08.2009, 15:55 +0200 schrieb Gianni: > On 20/ago/09, at 14:47, Michael Mosmann wrote: > > > > >> Where would be the right place to implement this functionality? > > > > I think, you should use MixedParamUrlCodingStrategy > > > > mm:) > > That's only going to work with bookmarkable pages though. Ok.. maybe HybridUrlCodingStrategy should help.. maybe i missed the point.. mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Prefix URL for skinnable site
> Where would be the right place to implement this functionality? I think, you should use MixedParamUrlCodingStrategy mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need Wicket Book
Am Dienstag, den 18.08.2009, 15:32 -0300 schrieb Marcel Bonnet: > Wicket in Action is really good, but it doesn't go too depper. If you have some questions, just ask. I would say: "visit my blog", but's only in german... (http://www.wicket-praxis.de/blog/) I also wrote a book about wicket (http://www.hanser.de/buch.asp?isbn=3-446-41909-8&area=Computer (but only in german language)) .. so back to my first point: If you have some questions about wicket, which go deeper, then feel free to ask. michael mosmann - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org