[Wicket-user] beginners question: wicket and sessions

2006-08-13 Thread Korbinian Bachl
Hi,   i have a small problem in understanding the way sessions are used in wicket. Whenever i access any new wicket app (even HelloWorld) it gives me a SID, so i know i have a (http servlet) session. However, using the http.session is not the wicket way, and the wiki just tells: Custom Sess

Re: [Wicket-user] beginners question: wicket and sessions

2006-08-13 Thread Johan Compagner
No you dont have to have getters and setters but that is just a nice approache.How else would you get your data?And it is better to have a setter if the data can be changed because in the set you can call: dirty() which is for us a trigger to reset our session object in the the http session object

Re: [Wicket-user] A problem with BookmarkablePageLink

2006-08-13 Thread Johan Compagner
Hmm when you specify the root AND the wicket servlet mapped to /*  then yessomething goes wrong. I fixed this for 1.2.2 but this is not really the recommended approacheYou can run in the root just fine but don't specify the wicket servlet to /* That is only the best way for 2.0 where we have a fil

[Wicket-user] Two feedback panels on one page

2006-08-13 Thread Predrag Spasojevic
Hi,   I have a page with 2 panels. Each panel has its own form and feedback panel. When any validator fails the same messages are displayed on both feedback panels.   I have looked into wicket source code and in the class FeedbackMessageModel there is a method for getting feedback messages:    publ

Re: [Wicket-user] Form-question

2006-08-13 Thread Mats Norén
What I want the following code to do is to iterate all propertyTypes and create or lookup the appropriate property on my Person-object and create a TextField for each one. I've defined a model for the propertyTypes and a model for a TeamPerson-object which contains my Person. Everything works fin

Re: [Wicket-user] beginners question: wicket and sessions

2006-08-13 Thread Igor Vaynberg
wicket's session object is stored inside http session. the getters and setters there are to make your code cleaner then using http session's map:object->object which is pretty ugly - so instead you use typesafe getters and setters. and as johan pointed out whenever you modify wicket's session objec

Re: [Wicket-user] Two feedback panels on one page

2006-08-13 Thread Igor Vaynberg
final Form form=.new FeedbackPanel("foo", new IFeedbackMessageFilter() {    boolean accept(FeedbackMessage message) {    // messages reported on the session have a null reporter    if ( message.getreporter()!=null) { // only accept messages coming from the ch

Re: [Wicket-user] Two feedback panels on one page

2006-08-13 Thread Predrag Spasojevic
Why it isn't FeedbackPanel's default behavior?   I think that the common use is one FeedbackPanel per form, not per page  On 8/13/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: final Form form=.new FeedbackPanel("foo", new IFeedbackMessageFilter() {    boolean accept(FeedbackMessage message) {  

[Wicket-user] 优惠代开各类发票!

2006-08-13 Thread szgw1717sz
贵公司负责人(经理/财务)您好: 我是深圳市中信实业有限公司;每月有增值税电脑发票、海关缴款书和普通商品销售税发票 (电脑运输、其它服务,广告,租赁业)优惠向外代开或合作,点数较低.更希望能够有机会与 贵公司合作!如贵司在发票的真伪方面有任何疑虑或担心,可上网查证或我司直接与贵司去税务 局抵扣核对.彼此合作一次,必成永久朋友!多谢合作!如有打扰,敬请原谅。 此信息长期有效,如须进一步洽商: 详情请电(24小时业务热线):013424331717 [EMAIL PROTECTED] 联系人:陈志荣 顺祝商祺!

[Wicket-user] open link in new window...

2006-08-13 Thread Erik Brakkee
Hi, I am using wicket 1.2.1 and it is not detecting the opening of a new browser window. Here is the situation. On my home page I have two links. The two links forward the user to the same page but with different information to display. Here is what I do: 1. open the home page 2. right-click on

[Wicket-user] 优惠代开各类发票!

2006-08-13 Thread szgw1717sz
贵公司负责人(经理/财务)您好: 我是深圳市中信实业有限公司;每月有增值税电脑发票、海关缴款书和普通商品销售税发票 (电脑运输、其它服务,广告,租赁业)优惠向外代开或合作,点数较低.更希望能够有机会与 贵公司合作!如贵司在发票的真伪方面有任何疑虑或担心,可上网查证或我司直接与贵司去税务 局抵扣核对.彼此合作一次,必成永久朋友!多谢合作!如有打扰,敬请原谅。 此信息长期有效,如须进一步洽商: 详情请电(24小时业务热线):013424331717 [EMAIL PROTECTED] 联系人:陈志荣 顺祝商祺!

Re: [Wicket-user] open link in new window...

2006-08-13 Thread Johan Compagner
works fine for me as far as i can seethe right click on the first show tracks on map opens: http://gpstracks.wamblee.org/gpstracks/app?wicket:bookmarkablePage=wicket-0:wicket.quickstart.TrackMapPage and that is with a redirect. So that is fine.But how do you get the state (which track to display) t

Re: [Wicket-user] Two feedback panels on one page

2006-08-13 Thread Igor Vaynberg
well, its not the default because this is a tiny subset of what wicket's feedback system is capable of.now if it is a common usecase in your app you can craete a BoundedFeedbackPanel given the code i gave you previously. its a 10 line component that you can then reuse in your app - this is the powe

Re: [Wicket-user] DatePicker with SimpleDateFormat

2006-08-13 Thread kurt heston
Johan, Thanks for the help. Settled on this: final DateConverter conv = new DateConverter(); final SimpleDateFormat sdf = new SimpleDateFormat("MM/yy"); conv.setDateFormat(Locale.getDefault(), sdf); TextField exp = new RequiredTextField("expiration") { public ICon