Re: [Wicket-user] Why add(IBehavior) is final?
I am definitely /not/ against removing final, but it is not going to work (not in general that is). Alberto's defense is that the user thinks he is working with a field, while in reality he is working with a panel. I assume that Alberto is using a panel because he wants some extra functionality around the field, say a button or a link. Anyway, now the user adds some behavior, say 'new SimpleAttributeModifier("style", "background-color: #d91")'. Now in the described setup only the field will get the new background, while the user probably also wanted to color the whitespace around it. As a user I would find this pretty confusing. In short: there is no way of hiding the fact that the component you are offering to a user is a composite, if you also want the user to have access to the inner components. So my solution would be to either expose the inner field through a getter, or write the addToField method that was discussed earlier. Regards, Erik. Eelco Hillenius schreef: > I could definitively live with removing final there. And maybe some > other methods too. > > Anyone against removing final from add(IBehavior)? > > Eelco > > > On 11/9/06, Alberto Bueno <[EMAIL PROTECTED]> wrote: > >> Hi, >> now I have this solution, but I don't like it for you reasons: >> >> - Now I have two methods to add a Behavior: add(IBehavior) and >> addToField(IBehavior), and for the users can be confuse. >> - I want to have a transparent component. The user doesn't have to know >> that he is working with a panel. This is working with a "field". If I have: >> >> MyField extends Panel{ >> public MyField(MarkupContainer parent, String id){ >> super(parent, id); >> >> new TextField(this, "myField"); >> } >> } >> >> For the user, MyField is a form Component, and if he add a new Behavior, >> the user thinks that the behavior is for the field, not for the panel. >> >> This is the idea... >> >> >> >>> Why don't you write in your panel: void addToField(Behavior b) {...}? >>> There is no need to corrupt the meaning of Wicket methods ;) >>> >>> Regards, >>> Erik. >>> >>> >>> Alberto Bueno schreef: >>> >>> Hi, I want to overwrite the add(IBehavior) method of the component, but this method is final. I want to use the same idea of AlternateParent when we add a new component. I have a panel, and I want to add a behavior in the panel, but the behavior is used in a field component that is in the panel. I don't want to say: panel.get("myField").add(new MyBehavior()); I want to say: panel.add(new MyBehavior()); and in the add() method of the panel say: public Component add(final IBehavior behavior) { get("myField").add(behavior); } Any idea to implement this functionality? Thanks -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Not sure how to use DatePicker component
On 11/10/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On 11/8/06, Carfield Yim <[EMAIL PROTECTED]> wrote: > > Two questons: > > 1) Can I initalized value of the datapicker according to what > > properties of javabean specificed? > > Some basic configuration options are supported through DatePickerSettings. > The value I refer to is the value of timestamp, in fact wicket already doen that but someone else do something wrong at DAO side and the getTimestamp method always return null. Which lead me think wicket datepicker need extra setup for that. > > 2) Look like the return of the javascript of date picket is localized, > > which is hard to parse at server side. Can I specific a custom output > > of date picker which is more easy to parse like "2006-11-09"? > > That would be: > > /** > * The format string that will be used to enter the date in the input > field. > * This format will be honored even if the input field is hidden. Use > * Javascript notation, like '%m/%d/%Y'. > */ > private String ifFormat = null; > > Use DatePicker#setDateConverter to align the two. > Thanks - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How can I set checkbox to be checked?
sorry, just find out that someone else do something wrong at DAO side and cause this problem. On 11/10/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > this is a completely wrong way of looking at it. > > the component controls its own properties in markup and in java. > > so under what condition is the checkbox checked? when its model object > equals Boolean.TRUE, so all you have to do is make sure that the model > object of the checkbox returns true when it renders and the checkbox will be > set. you do not need to know or worry about the "checked" property of the > checkbox, you need to worry about wiring it up through some model to a > property that can either be true or false > > -igor > > > > On 11/9/06, Carfield Yim <[EMAIL PROTECTED]> wrote: > > Yes, but what I need is the checkbox pre-set checked or not checked > > according to direction, I would like to have the HTML checkbox at the > > form checked if the property is true, and the HTML checkbox unchecked > > if the preperty is false. > > > > Which, should be same as having HTML template like > > > > wicket:id="property_checked"> > > wicket:id="checkbox"> > > > > For java code > > > > Foo foo = new Foo(); > > add(new CheckBox("checkbox", new PropertyModel(foo, "toBeOrNotToBe")); > > add(new Label("property_checked"), foo.toBeOrNotToBe ? "checked":""); > > > > However, you know, that is not working... > > > > On 11/9/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > > public class Foo { > > > public boolean toBeOrNotToBe = true; > > > } > > > > > > Foo foo = new Foo(); > > > add(new CheckBox("checkbox", new PropertyModel(foo, "toBeOrNotToBe")); > > > > > > So, you don't have to set anything... the checkbox is checked, and > > > when unchecked, the toBeOrNotToBe property of Foo will be set to > > > false. > > > > > > Martijn > > > > > > On 11/9/06, Carfield Yim <[EMAIL PROTECTED]> wrote: > > > > Can I set checkbox to be checked if the related java bean property is > true? > > > > > > > > > - > > > > Using Tomcat but need to do more? Need to support web services, > security? > > > > Get stuff done quickly with pre-integrated technology to make your job > easier > > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > ___ > > > > Wicket-user mailing list > > > > Wicket-user@lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > -- > > > href="http://www.thebeststuffintheworld.com/vote_for/wicket";>Vote > > > for http://www.thebeststuffintheworld.com/stuff/wicket";>Wicket > > > at the href="http://www.thebeststuffintheworld.com/";>Best Stuff in > > > the World! > > > > > > > - > > > Using Tomcat but need to do more? Need to support web services, > security? > > > Get stuff done quickly with pre-integrated technology to make your job > easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > - > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=26
Re: [Wicket-user] stateless pages in 1.3
On 11/9/06, Scott Swank <[EMAIL PROTECTED]> wrote: > Will Wicket 1.3 have the full stateless functionality of 2.0? I think that's the plan. Johan knows more. > If not, > what significant features will be unavailable in 1.3? And is there > any sort of a release timeframe for 1.3? No time frame yet. Imho, those changes alone warrant a release, and I can't wait to finally use them (I wanted them in 1.2 a long time ago, but we couldn't put them in as that would otherwise break binary compatibility). The thing that might take some time to get sorted out is that 1.3.0 will be our first Apache incubator release, so we have to go over all the legal issues and make sure we're doing it the proper way. I'm hoping we can get 1.3.0 out of the door early december. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] stateless pages in 1.3
Will Wicket 1.3 have the full stateless functionality of 2.0? If not, what significant features will be unavailable in 1.3? And is there any sort of a release timeframe for 1.3? Many thanks, Scott -- Scott Swank reformed mathematician - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How can I set checkbox to be checked?
this is a completely wrong way of looking at it.the component controls its own properties in markup and in java.so under what condition is the checkbox checked? when its model object equals Boolean.TRUE, so all you have to do is make sure that the model object of the checkbox returns true when it renders and the checkbox will be set. you do not need to know or worry about the "checked" property of the checkbox, you need to worry about wiring it up through some model to a property that can either be true or false -igorOn 11/9/06, Carfield Yim <[EMAIL PROTECTED]> wrote: Yes, but what I need is the checkbox pre-set checked or not checkedaccording to direction, I would like to have the HTML checkbox at theform checked if the property is true, and the HTML checkbox uncheckedif the preperty is false. Which, should be same as having HTML template likewicket:id="checkbox">For java code Foo foo = new Foo();add(new CheckBox("checkbox", new PropertyModel(foo, "toBeOrNotToBe"));add(new Label("property_checked"), foo.toBeOrNotToBe ? "checked":""); However, you know, that is not working...On 11/9/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:> public class Foo {> public boolean toBeOrNotToBe = true; > }>> Foo foo = new Foo();> add(new CheckBox("checkbox", new PropertyModel(foo, "toBeOrNotToBe"));>> So, you don't have to set anything... the checkbox is checked, and > when unchecked, the toBeOrNotToBe property of Foo will be set to> false.>> Martijn>> On 11/9/06, Carfield Yim <[EMAIL PROTECTED]> wrote: > > Can I set checkbox to be checked if the related java bean property is true?> >> > -> > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> > ___> > Wicket-user mailing list> > Wicket-user@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/wicket-user> -- > http://www.thebeststuffintheworld.com/vote_for/wicket">Vote> for http://www.thebeststuffintheworld.com/stuff/wicket">Wicket> at the http://www.thebeststuffintheworld.com/">Best Stuff in > the World!>> -> Using Tomcat but need to do more? Need to support web services, security?> Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user>-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How can I set checkbox to be checked?
Yes, but what I need is the checkbox pre-set checked or not checked according to direction, I would like to have the HTML checkbox at the form checked if the property is true, and the HTML checkbox unchecked if the preperty is false. Which, should be same as having HTML template like wicket:id="checkbox"> For java code Foo foo = new Foo(); add(new CheckBox("checkbox", new PropertyModel(foo, "toBeOrNotToBe")); add(new Label("property_checked"), foo.toBeOrNotToBe ? "checked":""); However, you know, that is not working... On 11/9/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > public class Foo { > public boolean toBeOrNotToBe = true; > } > > Foo foo = new Foo(); > add(new CheckBox("checkbox", new PropertyModel(foo, "toBeOrNotToBe")); > > So, you don't have to set anything... the checkbox is checked, and > when unchecked, the toBeOrNotToBe property of Foo will be set to > false. > > Martijn > > On 11/9/06, Carfield Yim <[EMAIL PROTECTED]> wrote: > > Can I set checkbox to be checked if the related java bean property is true? > > > > - > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > -- > http://www.thebeststuffintheworld.com/vote_for/wicket";>Vote > for http://www.thebeststuffintheworld.com/stuff/wicket";>Wicket > at the http://www.thebeststuffintheworld.com/";>Best Stuff in > the World! > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] 欢*迎来.电洽*谈
你好! 深圳市雄业贸易有限公司现有发*票优惠对外代/开,代开范围:商品销售, 商业,广告,运输,国际海运,其它服务业,餐饮业 ,建筑安装等,如贵公司需要请 与我司财/务联系,谢/谢合/作。 电话:135-4427-1956 联系人;黄先生 如果本信息打扰了您,我们向您表示歉意! - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to configure a HeaderContributor
Yes, but I don't know when I have to add the behavior. In the internalOnAttach I cannot add the behavior, because I want to add it only one time. I need to add the behavior before of the first rendering and I need to add it only one time... > Just add it later. As long as you add it before the component renders, > you're fine. > > Eelco > > > On 11/9/06, Alberto Bueno <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> I want to add a css file to a component, but this css can be defined by >> the user. For example: >> >> public class TabSet extends Panel implements >> IAlternateParentProvider{ >> >> private ResourceReference styleURI = new >> ResourceReference(ManagerStyleSheetFiles.class, "tabSet.css"); >> >> public TabSet(MarkupContainer parent, String id) { >> super(parent, id,new Model()); >> >> add(HeaderContributor.forCss(styleURI)); >> Toolbar toolbar= new Toolbar(this, "tabs"); >> >> } >> } >> >> and the user can do this: >> >>TabSet tabSet = new TabSet(form, "tabSet"); >>tabSet.setStyleURI(new >> ResourceReference(ManagerStyleSheetFiles.class, "main.css")); >> >> The problem is where or when can I add the HeaderContributor in the >> tabset to use the correct css file? >> Because if I add the HeaderContributor in the contructor, I cannot >> change it later. >> >> Any idea? >> >> Thanks >> >> >> >> - >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to configure a HeaderContributor
Just add it later. As long as you add it before the component renders, you're fine. Eelco On 11/9/06, Alberto Bueno <[EMAIL PROTECTED]> wrote: > Hi, > > I want to add a css file to a component, but this css can be defined by > the user. For example: > > public class TabSet extends Panel implements > IAlternateParentProvider{ > > private ResourceReference styleURI = new > ResourceReference(ManagerStyleSheetFiles.class, "tabSet.css"); > > public TabSet(MarkupContainer parent, String id) { > super(parent, id,new Model()); > > add(HeaderContributor.forCss(styleURI)); > Toolbar toolbar= new Toolbar(this, "tabs"); > > } > } > > and the user can do this: > >TabSet tabSet = new TabSet(form, "tabSet"); >tabSet.setStyleURI(new > ResourceReference(ManagerStyleSheetFiles.class, "main.css")); > > The problem is where or when can I add the HeaderContributor in the > tabset to use the correct css file? > Because if I add the HeaderContributor in the contructor, I cannot > change it later. > > Any idea? > > Thanks > > > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Group of components to be validated together
sure, the form alidator is responsible for setting error messages, so if you want it to only set one just do that-igorOn 11/9/06, Jon Renaut <[EMAIL PROTECTED]> wrote: Igor Vaynberg gmail.com> writes:>>> you want to use a form validatorsee IFormValidator and its hierarchy-igor>> On 11/9/06, Renaut, Jonathan E CTR DISA GIG-CS < > Jonathan.Renaut.ctr disa.mil> wrote:>>Can I then prevent the individual validation messages from printing? I don'twant to print a message for the components that fail, since the form validates if at least one component validates. And if all components fail, causing theform to fail, I don't want to print out "component 1 fails" then "component 2fails", etc. I just want to print out one message for the entire form failing to validate. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Group of components to be validated together
Igor Vaynberg gmail.com> writes: > > > you want to use a form validatorsee IFormValidator and its hierarchy-igor > > On 11/9/06, Renaut, Jonathan E CTR DISA GIG-CS < > Jonathan.Renaut.ctr disa.mil> wrote: > > > > > > > > > I have a form containing two CheckBoxMultipleChoice objects. I would like to validate them to ensure that something is checked. One can have nothing checked, but not both. In other words, it is okay if validation fails on one, but not if it fails on both. Is there an easy way to do this? > > Thanks > > > > > -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list > Wicket-user lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 Can I then prevent the individual validation messages from printing? I don't want to print a message for the components that fail, since the form validates if at least one component validates. And if all components fail, causing the form to fail, I don't want to print out "component 1 fails" then "component 2 fails", etc. I just want to print out one message for the entire form failing to validate. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Group of components to be validated together
you want to use a form validatorsee IFormValidator and its hierarchy-igorOn 11/9/06, Renaut, Jonathan E CTR DISA GIG-CS < [EMAIL PROTECTED]> wrote: I have a form containing two CheckBoxMultipleChoice objects. I would like to validate them to ensure that something is checked. One can have nothing checked, but not both. In other words, it is okay if validation fails on one, but not if it fails on both. Is there an easy way to do this? Thanks -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about DatePickerSettings
Try DatePickerSettings#getLanguageFromMap(Locale locale) Eelco On 11/8/06, Carfield Yim <[EMAIL PROTECTED]> wrote: > How can I change the language using? I've read > http://wicketframework.org/wicket-extensions/apidocs/wicket/extensions/markup/html/datepicker/DatePickerSettings.html#setLanguage(wicket.ResourceReference) > But I don't know how to create suitable ResourceReference for it - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Not sure how to use DatePicker component
On 11/8/06, Carfield Yim <[EMAIL PROTECTED]> wrote: > Two questons: > 1) Can I initalized value of the datapicker according to what > properties of javabean specificed? Some basic configuration options are supported through DatePickerSettings. > 2) Look like the return of the javascript of date picket is localized, > which is hard to parse at server side. Can I specific a custom output > of date picker which is more easy to parse like "2006-11-09"? That would be: /** * The format string that will be used to enter the date in the input field. * This format will be honored even if the input field is hidden. Use * Javascript notation, like '%m/%d/%Y'. */ private String ifFormat = null; Use DatePicker#setDateConverter to align the two. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Group of components to be validated together
Title: Group of components to be validated together I have a form containing two CheckBoxMultipleChoice objects. I would like to validate them to ensure that something is checked. One can have nothing checked, but not both. In other words, it is okay if validation fails on one, but not if it fails on both. Is there an easy way to do this? Thanks - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Why add(IBehavior) is final?
I could definitively live with removing final there. And maybe some other methods too. Anyone against removing final from add(IBehavior)? Eelco On 11/9/06, Alberto Bueno <[EMAIL PROTECTED]> wrote: > Hi, > now I have this solution, but I don't like it for you reasons: > > - Now I have two methods to add a Behavior: add(IBehavior) and > addToField(IBehavior), and for the users can be confuse. > - I want to have a transparent component. The user doesn't have to know > that he is working with a panel. This is working with a "field". If I have: > > MyField extends Panel{ > public MyField(MarkupContainer parent, String id){ > super(parent, id); > > new TextField(this, "myField"); > } > } > > For the user, MyField is a form Component, and if he add a new Behavior, > the user thinks that the behavior is for the field, not for the panel. > > This is the idea... > > > > Why don't you write in your panel: void addToField(Behavior b) {...}? > > There is no need to corrupt the meaning of Wicket methods ;) > > > > Regards, > > Erik. > > > > > > Alberto Bueno schreef: > > > >> Hi, > >> > >> I want to overwrite the add(IBehavior) method of the component, but this > >> method is final. > >> I want to use the same idea of AlternateParent when we add a new component. > >> I have a panel, and I want to add a behavior in the panel, but the > >> behavior is used in a field > >> component that is in the panel. > >> > >> I don't want to say: > >> panel.get("myField").add(new MyBehavior()); > >> > >> I want to say: > >> > >> panel.add(new MyBehavior()); > >> > >> and in the add() method of the panel say: > >> > >> public Component add(final IBehavior behavior) > >> { > >> get("myField").add(behavior); > >> } > >> > >> Any idea to implement this functionality? > >> > >> Thanks > >> > >> > > > > > > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Validation without form submit...
These methods were introduce specially for situations where you have to render messages at some other page than the current. The messages are deleted right after they are rendered. Try it, I think it solves your problem. Eelco On 11/9/06, Erik Brakkee <[EMAIL PROTECTED]> wrote: > No I didn't because the scope of the messages is of the page only. What > would be the correct point in the lifecycle of the page to use warn(), > info(), or error()? Apparently I am too early in invoking these methods. > > > On 11/8/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > Did you try info/warn/error on Session? > > > > Eelco > > > > > > On 11/8/06, Erik Brakkee <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > > > > I am still stuck with this problem. What I try to do is to use info(), > > > error(), and warn() to add messages to the page, and I want to do this > > > as soon as another page returns to my page using > > > setResponsePage(pageObject). Somehow, the messages I set in onAttach() > > > or > > > onBeforeRender are lost. > > > > > > Anyone have any ideas on how I should be solving this problem? > > > > > > Cheers > > > Erik > > > > > > On 11/1/06, Erik Brakkee < [EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > > > > > > > I have a form from displaying a number of items. The form also > displays some > > > > validation problems. The user can correct these problems by editing > items by > > > > clicking on a link and is then forwarded to another page using > > > > setResponsePage(...). After editing, the eidt page forwards back to > the same > > > > instance of the form page. > > > > > > > > Now I want to do validation as soon as this happens and add messages > to the > > > > page using info(), warn(), and error(). Nevertheless, I cannot get > this to > > > > work. I tried overriding onAttach() and onBeforeRender() but > apparently my > > > > messages are getting lost. What would be the correct way to trigger > this > > > > validation? Apparently I am too early in the lifecycle and the > messages are > > > > being reset after I set them. > > > > > > > > Cheers > > > > Erik > > > > > > > > > > > > > > > - > > > Using Tomcat but need to do more? Need to support web services, > security? > > > Get stuff done quickly with pre-integrated technology to make your job > easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > - > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Authentication Tomcat <-> Wicket
And if you use 2.0, you can set getSecuritySettings().setEnforceMounts(true), so that these mounted pages are only reachable using these paths. But as you got from the answers on this thread, URL based authorization schemes in not something we recommend for Wicket. It'll basically bring you back to page-level development again, whereas the whole point of Wicket is to provide a component based paradigm. Eelco On 11/9/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > you can use package mounting to mount all pages in your admin package to a > path, depends on how your classes are stored > > -igor > > > > On 11/9/06, Dmitry Kandalov <[EMAIL PROTECTED]> wrote: > > > > > > Erik van Oosten wrote: > > > > > > Wicket supports per component authorisation. You could take a look at > > > wicket-auth-roles-example (a small project available through svn). > > > In this project some components (pages) are marked. The mark indicates > > > which roles are required for the component. As long as the user does not > > > hit those components the application runs fine. As soon as the user does > > > hit such a component, the sign-in page is displayed. > > > > > > Erik. > > > > > > > Thanks for advice, example is good. But I have to use tomcat > authentication > > (not authorization). To make it work I have to declare > > . > > -- > > View this message in context: > http://www.nabble.com/Authentication-Tomcat-%3C-%3E-Wicket-tf2588672.html#a7254648 > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > > - > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] FW:sztr8866(事/宜)
TO:(经理/财务) 本公司享有税收优/惠政策,长期与国内各省市多家企业合/作, 在报税、做帐方面积累有丰富的经验,公司本着互惠互利的原则合/作 现在推出代/开发/票的业务: 我司代理的行业广泛,有普通国税、 运 输、建筑、广告、服务业等,税率特低,所用绝对真票,可先开具票查验后再付/款, (真诚希望与您合/作!敬请保留号码以备后用) 手机:13824313182陈先生 QQ:372749963 [EMAIL PROTECTED] - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] HeaderContributor javadocs...
Actually, instead of fixing the documentation, we could better fix the problem here. I'll look into it later today. Eelco On 11/9/06, Erik Brakkee <[EMAIL PROTECTED]> wrote: > Hi, > > > I just solved a problem where I used a headercontributor (following Eelco's > blog http://chillenious.wordpress.com/page/2/) using > > add(HeaderContributor.forJavaScript (getClass(), "script.js")); > > On some pages it turned out that this same resource was included twice with > different URLs. What happened was that I used > > new MyComponnt(parent, id) { > public void isRequired() { > return true; > } > }; > > Effectively creating a new component referring to the same resource. > > The problem was solved by using MyComponent.class instead of getClass(0 in > the component implementation. Shouldn't the javadocs say something about > this that it is advised to use MyComponent.class instead of getClass() > to avoid multiple inclusion of the same resource? > > Cheers > Erik > > > > > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] HeaderContributor javadocs...
attach it to a bug report on our jira-igorOn 11/9/06, Erik Brakkee <[EMAIL PROTECTED]> wrote: On 11/9/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: patches are welcome, even the javadoc ones :)How do I submit a patch? Couldn't find info on where to send it to. -igorOn 11/9/06, Erik Brakkee < [EMAIL PROTECTED] > wrote:Hi, I just solved a problem where I used a headercontributor (following Eelco's blog http://chillenious.wordpress.com/page/2/) usingadd(HeaderContributor.forJavaScript (getClass(), "script.js")); On some pages it turned out that this same resource was included twice with different URLs. What happened was that I used new MyComponnt(parent, id) { public void isRequired() { return true; }};Effectively creating a new component referring to the same resource. The problem was solved by using MyComponent.class instead of getClass(0 in the component implementation. Shouldn't the javadocs say something about this that it is advised to use MyComponent.class instead of getClass() to avoid multiple inclusion of the same resource?Cheers Erik -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] NiceURL and parameters with 'sensitive' characters
Can you confirm that fixes your problem and doesn't introduce new ones? And could you please open a bug report for this (http://issues.apache.org/jira/browse/WICKET, also so that it ends up in our change list). Cheers, Eelco On 11/9/06, jan_bar <[EMAIL PROTECTED]> wrote: > The URL is already URL decoded when it reaches servlet.doXXX(), so > AbstractRequestTargetUrlCodingStrategy.decodeParameters() should not call > URLDecode again. > > Jan > > "jan_bar" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi, > > > > I use nice URL with a parameter that contains a '+' character. The '+' is > > URLDecoded to space (' ') in > > AbstractRequestTargetUrlCodingStrategy.decodeParameters(), this is fine. > So > > I URLEncoded the parametr, so my nice URL looks like > > http://localhost/doSomething/someId/1%2b1 , but this URL is URLDecoded by > > servlet, so Wicket again sees it as someId/1+1, so the result is someId="1 > > 1". > > How can I pass the '+' as parameter? > > > > Thanks, Jan > > > > > > > > > > - > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] HeaderContributor javadocs...
On 11/9/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: patches are welcome, even the javadoc ones :)How do I submit a patch? Couldn't find info on where to send it to. -igorOn 11/9/06, Erik Brakkee < [EMAIL PROTECTED] > wrote:Hi, I just solved a problem where I used a headercontributor (following Eelco's blog http://chillenious.wordpress.com/page/2/) usingadd(HeaderContributor.forJavaScript (getClass(), "script.js")); On some pages it turned out that this same resource was included twice with different URLs. What happened was that I used new MyComponnt(parent, id) { public void isRequired() { return true; }};Effectively creating a new component referring to the same resource. The problem was solved by using MyComponent.class instead of getClass(0 in the component implementation. Shouldn't the javadocs say something about this that it is advised to use MyComponent.class instead of getClass() to avoid multiple inclusion of the same resource?Cheers Erik -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Padding in modal window
In firefox, it did not make the problem. It seem's to be IE centric. (Firefox is not more cute with a scroll bar, but at least, the window look correct.)On 11/9/06, Marc-Andre Houle <[EMAIL PROTECTED]> wrote: Hello group,I'm using a modal window to display some information. In the window, I got a table to make the display look prettier. The problem is that the window is really close to the border of the modal window. So I though that a padding around the table (of margin) would do the trick. The problem is that is I put a margin or a padding, the modal window is all weird. It seems something in the modal CSS does not handle well padding or margin. I included a screen shot of the problem (I didn't think it was worth making an executable example of this but I can provide one if needed) Here is the HTML of the panel included in the modal window : Something Something else Thanks in advance.P.S. : The problem can be seen in the top right of the modal window! ;) - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Padding in modal window
Hello group,I'm using a modal window to display some information. In the window, I got a table to make the display look prettier. The problem is that the window is really close to the border of the modal window. So I though that a padding around the table (of margin) would do the trick. The problem is that is I put a margin or a padding, the modal window is all weird. It seems something in the modal CSS does not handle well padding or margin. I included a screen shot of the problem (I didn't think it was worth making an executable example of this but I can provide one if needed) Here is the HTML of the panel included in the modal window : Something Something else Thanks in advance.P.S. : The problem can be seen in the top right of the modal window! ;) <> - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] 您好!合作项目报价
Title: 邮件主题 您好: 您好,泰和/投资股份(深圳)有限公司是一家定额纳税企业、现有各行业的普通销售发`票代.开,以及建筑业、运输业、广告业、等各行业服务票.据。如有需要欢迎来电洽谈咨询。请保留此信息、以备后用。 联系人:王伟 手机:13418655264 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] HeaderContributor javadocs...
patches are welcome, even the javadoc ones :)-igorOn 11/9/06, Erik Brakkee <[EMAIL PROTECTED] > wrote:Hi, I just solved a problem where I used a headercontributor (following Eelco's blog http://chillenious.wordpress.com/page/2/) usingadd(HeaderContributor.forJavaScript (getClass(), "script.js")); On some pages it turned out that this same resource was included twice with different URLs. What happened was that I used new MyComponnt(parent, id) { public void isRequired() { return true; }};Effectively creating a new component referring to the same resource. The problem was solved by using MyComponent.class instead of getClass(0 in the component implementation. Shouldn't the javadocs say something about this that it is advised to use MyComponent.class instead of getClass() to avoid multiple inclusion of the same resource?Cheers Erik -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Authentication Tomcat <-> Wicket
you can use package mounting to mount all pages in your admin package to a path, depends on how your classes are stored-igorOn 11/9/06, Dmitry Kandalov <[EMAIL PROTECTED]> wrote:Erik van Oosten wrote: >> Wicket supports per component authorisation. You could take a look at> wicket-auth-roles-example (a small project available through svn).> In this project some components (pages) are marked. The mark indicates > which roles are required for the component. As long as the user does not> hit those components the application runs fine. As soon as the user does> hit such a component, the sign-in page is displayed. >> Erik.>Thanks for advice, example is good. But I have to use tomcat authentication(not authorization). To make it work I have to declare.--View this message in context: http://www.nabble.com/Authentication-Tomcat-%3C-%3E-Wicket-tf2588672.html#a7254648Sent from the Wicket - User mailing list archive at Nabble.com.-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] setResponsepage keep data
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Try something along these lines... first page: add(new Link(id) { public void onClick() { setResponsePage(new SomePage(getPage()); } } the other page: public class SomePage extends Page { private Page page; public SomePage(Page back) { page = back; add(new Link("back") { public void onClick() { setResponsePage(page); } } } } Vincent Renaville wrote: > Dear, > > I try to make an application with different pages (extends WebPage). > The user can switch from a page to an other. > I try to implement a serialization solution, so when a person switch > from a page to an other and after that he wanst to comeback to a > previous page (with Link, not with go back button of IE) all the data is > still there event if he doesn't press the submit button. > > > > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user - -- Justin Lee http://www.antwerkz.com AIM : evan chooly Skype : evanchooly -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.1 (Cygwin) iD4DBQFFU1RJJnQfEGuJ90MRAyTEAJ9CAQk+Zbn68jD8U+9f7Qzy3NXv2wCWIr7s ZCUG4lGi92eQFx8Qt0OC1A== =MXFA -END PGP SIGNATURE- - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] AD:俊衡
您好; 深圳市俊衡贸易有限公司 本公司是一家常年主要以生产和销售为一体的定额纳税企业;长期以来享有国家优.惠政策, 与国内多家行业的公司有发/票业务往来,现公司有余额的发/票优.惠向外代/开。 1、普通.商品.销售发/票、运输业、广.告业、服务业、建筑业等行业发/票。 2、此信.息长期有效敬请保留,如有需要欢.迎来.电洽谈.咨询! (对于双方的合作关系绝对保密.确保真票.验证后付款) 电话:135 9013 1002 联系人:陈先生 [EMAIL PROTECTED] QQ:598426894 如果本信息打扰了您,我们向您表示歉意! - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to configure a HeaderContributor
Hi, I want to add a css file to a component, but this css can be defined by the user. For example: public class TabSet extends Panel implements IAlternateParentProvider{ private ResourceReference styleURI = new ResourceReference(ManagerStyleSheetFiles.class, "tabSet.css"); public TabSet(MarkupContainer parent, String id) { super(parent, id,new Model()); add(HeaderContributor.forCss(styleURI)); Toolbar toolbar= new Toolbar(this, "tabs"); } } and the user can do this: TabSet tabSet = new TabSet(form, "tabSet"); tabSet.setStyleURI(new ResourceReference(ManagerStyleSheetFiles.class, "main.css")); The problem is where or when can I add the HeaderContributor in the tabset to use the correct css file? Because if I add the HeaderContributor in the contructor, I cannot change it later. Any idea? Thanks - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Why add(IBehavior) is final?
Hi, now I have this solution, but I don't like it for you reasons: - Now I have two methods to add a Behavior: add(IBehavior) and addToField(IBehavior), and for the users can be confuse. - I want to have a transparent component. The user doesn't have to know that he is working with a panel. This is working with a "field". If I have: MyField extends Panel{ public MyField(MarkupContainer parent, String id){ super(parent, id); new TextField(this, "myField"); } } For the user, MyField is a form Component, and if he add a new Behavior, the user thinks that the behavior is for the field, not for the panel. This is the idea... > Why don't you write in your panel: void addToField(Behavior b) {...}? > There is no need to corrupt the meaning of Wicket methods ;) > > Regards, > Erik. > > > Alberto Bueno schreef: > >> Hi, >> >> I want to overwrite the add(IBehavior) method of the component, but this >> method is final. >> I want to use the same idea of AlternateParent when we add a new component. >> I have a panel, and I want to add a behavior in the panel, but the >> behavior is used in a field >> component that is in the panel. >> >> I don't want to say: >> panel.get("myField").add(new MyBehavior()); >> >> I want to say: >> >> panel.add(new MyBehavior()); >> >> and in the add() method of the panel say: >> >> public Component add(final IBehavior behavior) >> { >> get("myField").add(behavior); >> } >> >> Any idea to implement this functionality? >> >> Thanks >> >> > > - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] setResponsepage keep data
Dear, I try to make an application with different pages (extends WebPage). The user can switch from a page to an other. I try to implement a serialization solution, so when a person switch from a page to an other and after that he wanst to comeback to a previous page (with Link, not with go back button of IE) all the data is still there event if he doesn't press the submit button. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Can I tell the application use UTF-8 without change servlet container?
Wicket default is UTF-8. The problem is that e.g. Tomcat _requires_ some specific configuration as well. Wicket can do anything about it. Juergen On 11/9/06, Carfield Yim <[EMAIL PROTECTED]> wrote: > Hi, I would like to use UTF-8 whatever the servlet container setup, so > that I don't need to change that per installation of my application. > > I've take a look of > http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg19662.html > but that doesn't really look related. > > In past I will just create a new PrintWriter like - new > PrintWriter(new OutputStreamWriter(response.getoutputstream(), > Charsets.utf8()), true); > > and work on that PrintWriter, can I do similar thing in wicket? > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Validation without form submit...
No I didn't because the scope of the messages is of the page only. What would be the correct point in the lifecycle of the page to use warn(), info(), or error()? Apparently I am too early in invoking these methods. On 11/8/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: Did you try info/warn/error on Session?EelcoOn 11/8/06, Erik Brakkee <[EMAIL PROTECTED]> wrote:> Hi,>>> I am still stuck with this problem. What I try to do is to use info(), > error(), and warn() to add messages to the page, and I want to do this> as soon as another page returns to my page using> setResponsePage(pageObject). Somehow, the messages I set in onAttach()> or > onBeforeRender are lost.>> Anyone have any ideas on how I should be solving this problem?>> Cheers> Erik>> On 11/1/06, Erik Brakkee < [EMAIL PROTECTED]> wrote:> > Hi,> >> >> > I have a form from displaying a number of items. The form also displays some> > validation problems. The user can correct these problems by editing items by > > clicking on a link and is then forwarded to another page using> > setResponsePage(...). After editing, the eidt page forwards back to the same> > instance of the form page.> > > > Now I want to do validation as soon as this happens and add messages to the> > page using info(), warn(), and error(). Nevertheless, I cannot get this to> > work. I tried overriding onAttach() and onBeforeRender() but apparently my > > messages are getting lost. What would be the correct way to trigger this> > validation? Apparently I am too early in the lifecycle and the messages are> > being reset after I set them. > >> > Cheers> > Erik> >> >>> -> Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user>- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] HeaderContributor javadocs...
Hi, I just solved a problem where I used a headercontributor (following Eelco's blog http://chillenious.wordpress.com/page/2/) usingadd(HeaderContributor.forJavaScript (getClass(), "script.js")); On some pages it turned out that this same resource was included twice with different URLs. What happened was that I used new MyComponnt(parent, id) { public void isRequired() { return true; }};Effectively creating a new component referring to the same resource. The problem was solved by using MyComponent.class instead of getClass(0 in the component implementation. Shouldn't the javadocs say something about this that it is advised to use MyComponent.class instead of getClass() to avoid multiple inclusion of the same resource?Cheers Erik - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Authentication Tomcat <-> Wicket
Here is a rough outline. You'll need to study wicket-auth-roles-example to see how you can integrate this. You can put the the Wicket servlet behind 2 different url patterns. In your own session implementation you can access the http session and read the authenticated user and/or roles as was set by Tomcat. When authorisation is required and no user in the session, you can forward to a secured url with a RestartResponseAtInterceptPageException. Note that in this setup only the login page needs to be behind the secured url. Erik. Dmitry Kandalov schreef: > Erik van Oosten wrote: > >> Wicket supports per component authorisation. You could take a look at >> wicket-auth-roles-example (a small project available through svn). >> In this project some components (pages) are marked. The mark indicates >> which roles are required for the component. As long as the user does not >> hit those components the application runs fine. As soon as the user does >> hit such a component, the sign-in page is displayed. >> >> Erik. >> >> > > Thanks for advice, example is good. But I have to use tomcat authentication > (not authorization). To make it work I have to declare > . > -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CheckBox and GridView
YES, that worked... what a stupid mistake! ;-) Quoting Frank Bille <[EMAIL PROTECTED]>: > On 11/9/06, Flemming Seerup <[EMAIL PROTECTED]> wrote > >> public ThumbnailImageFragment(String id, final ImageReference >> reference, IModel >> itemModel) { >> super(id); >> >> CheckBox checkBox = new CheckBox("select", itemModel); >> add(checkBox); >> > > > Try to use Check instead of CheckBox. I think that is your problem :) > > http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/CheckGroup.html > > Frank > This message was sent using IMP, the Internet Messaging Program. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CheckBox and GridView
On 11/9/06, Flemming Seerup <[EMAIL PROTECTED]> wrote public ThumbnailImageFragment(String id, final ImageReferencereference, IModelitemModel) {super(id);CheckBox checkBox = new CheckBox("select", itemModel);add(checkBox); Try to use Check instead of CheckBox. I think that is your problem :)http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/CheckGroup.html Frank - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CheckBox and GridView
DataGridView is not related to GridView, but as more like a plain table. I need the features of GridView :-/ Quoting Frank Bille <[EMAIL PROTECTED]>: > I looked at DataGridView. Please take a look at that to see if it is what > you need (that has ICellPopulator). > > Frank > > > On 11/9/06, Flemming Seerup <[EMAIL PROTECTED]> wrote: >> >> CheckGroup sounds right ... but I'm not sure where ICellPopulator should >> be >> used. >> >> And I keep getting Invalid boolean value "MasterReference". somehow I >> missing a >> method to tell wicket if the checkbox should be checked, right? >> >> My code is currently: >> >> TestModel inputModel = new TestModel(); >> CheckGroup imageGroup = new CheckGroup( >> "imagesSelected", >> new PropertyModel(inputModel, "selected")); >> add(imageGroup); >> >> GridView gridView = new GridView("rows", provider) { >> private static final long serialVersionUID = 4252215707308269580L; >> >> protected void populateItem(Item item) { >> final ImageReference reference = (ImageReference) >> item.getModelObject(); >> log.info("adding thumbnail: " + reference); >> >> ThumbnailImageFragment thumbnail = new >> ThumbnailImageFragment( >> "thumbnail", >> reference, >> item.getModel()); >> item.add(thumbnail); >> } >> >> protected void populateEmptyItem(Item item) { >> ThumbnailEmptyFragment thumbnail = new >> ThumbnailEmptyFragment("thumbnail"); >> log.info("adding filler"); >> item.add(thumbnail); >> } >> }; >> >> gridView.setRows(3); >> gridView.setColumns(3); >> >> imageGroup.add(gridView); >> >> public ThumbnailImageFragment(String id, final ImageReference >> reference, IModel >> itemModel) { >> super(id); >> >> CheckBox checkBox = new CheckBox("select", itemModel); >> add(checkBox); >> >> BookmarkablePageLink imageLink = InboxDisplay.link("imagelink", >> reference); >> imageLink.add(new Image("image", >> getThumbnailResource(reference))); >> add(imageLink); >> >> BookmarkablePageLink textLink = InboxDisplay.link("textlink", >> reference); >> textLink.add(new Label("imagename", reference.getImage >> ().getUniqueName())); >> add(textLink); >> } >> >> >> >> Quoting Frank Bille <[EMAIL PROTECTED]>: >> > I have never used GridView myself, but how about putting a CheckGroup >> around >> > the GridView and then add a Check in the ICellPopulator? Something like >> > this: >> > >> > public class PojoForTellingWhichChecksHasBeenClicked { >> > private Set selectedChecks; >> > // Getters and setters >> > } >> > >> > PojoForTellingWhichChecksHasBeenClicked pojo = new >> > PojoForTellingWhichChecksHasBeenClicked(); >> > CheckGroup cg = new CheckGroup("checkGroup", new PropertyModel(pojo, >> > "selectedChecks")); >> > GridView gv = new GridView("gw", SOME_PARAMETERS); >> > cg.add(gv); >> > >> > And then a ICellPopulator: >> > >> > new ICellPopulator() { >> > public void populateItem(final Item cellItem, final String >> componentId, >> > final IModel rowModel) { >> > cellItem.add(new Check(componentId, rowModel)); >> > } >> > }; >> > >> > >> > Makes sense? >> > >> > Frank >> > >> > >> > On 11/9/06, Flemming Seerup <[EMAIL PROTECTED]> wrote: >> >> >> >> How do I use CheckBox in a GridView component, and find the seleted in >> the >> >> onSubmit method ? >> >> >> >> /Flemming >> >> >> >> >> >> >> >> This message was sent using IMP, the Internet Messaging Program. >> >> >> >> >> - >> >> Using Tomcat but need to do more? Need to support web services, >> security? >> >> Get stuff done quickly with pre-integrated technology to make your job >> >> easier >> >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> >> >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> >> ___ >> >> Wicket-user mailing list >> >> Wicket-user@lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> > >> >> >> >> >> This message was sent using IMP, the Internet Messaging Program. >> >> >> - >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job >> easier >> Download IBM WebSphere Application Server
Re: [Wicket-user] CheckBox and GridView
I looked at DataGridView. Please take a look at that to see if it is what you need (that has ICellPopulator).FrankOn 11/9/06, Flemming Seerup <[EMAIL PROTECTED]> wrote:CheckGroup sounds right ... but I'm not sure where ICellPopulator should be used.And I keep getting Invalid boolean value "MasterReference". somehow Imissing amethod to tell wicket if the checkbox should be checked, right?My code is currently: TestModel inputModel = new TestModel();CheckGroup imageGroup = new CheckGroup("imagesSelected",new PropertyModel(inputModel, "selected"));add(imageGroup); GridView gridView = new GridView("rows", provider) {private static final long serialVersionUID = 4252215707308269580L;protected void populateItem(Item item) {final ImageReference reference = (ImageReference) item.getModelObject();log.info("adding thumbnail: " + reference);ThumbnailImageFragment thumbnail = new ThumbnailImageFragment("thumbnail", reference,item.getModel());item.add(thumbnail);}protected void populateEmptyItem(Item item) {ThumbnailEmptyFragment thumbnail = new ThumbnailEmptyFragment("thumbnail"); log.info("adding filler");item.add(thumbnail);}};gridView.setRows(3);gridView.setColumns(3);imageGroup.add(gridView); public ThumbnailImageFragment(String id, final ImageReferencereference, IModelitemModel) {super(id);CheckBox checkBox = new CheckBox("select", itemModel);add(checkBox); BookmarkablePageLink imageLink = InboxDisplay.link("imagelink", reference);imageLink.add(new Image("image", getThumbnailResource(reference)));add(imageLink); BookmarkablePageLink textLink = InboxDisplay.link("textlink", reference);textLink.add(new Label("imagename", reference.getImage().getUniqueName()));add(textLink); }Quoting Frank Bille <[EMAIL PROTECTED]>:> I have never used GridView myself, but how about putting a CheckGroup around > the GridView and then add a Check in the ICellPopulator? Something like> this:>> public class PojoForTellingWhichChecksHasBeenClicked {> private Set selectedChecks;> // Getters and setters > }>> PojoForTellingWhichChecksHasBeenClicked pojo = new> PojoForTellingWhichChecksHasBeenClicked();> CheckGroup cg = new CheckGroup("checkGroup", new PropertyModel(pojo,> "selectedChecks")); > GridView gv = new GridView("gw", SOME_PARAMETERS);> cg.add(gv);>> And then a ICellPopulator:>> new ICellPopulator() {> public void populateItem(final Item cellItem, final String componentId, > final IModel rowModel) {> cellItem.add(new Check(componentId, rowModel));> }> };>>> Makes sense?>> Frank>>> On 11/9/06, Flemming Seerup < [EMAIL PROTECTED]> wrote: How do I use CheckBox in a GridView component, and find the seleted in the>> onSubmit method ? /Flemming >> >> This message was sent using IMP, the Internet Messaging Program. - >> Using Tomcat but need to do more? Need to support web services, security?>> Get stuff done quickly with pre-integrated technology to make your job>> easier>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> ___>> Wicket-user mailing list>> Wicket-user@lists.sourceforge.net>> https://lists.sourceforge.net/lists/listinfo/wicket-user>>>This message was sent using IMP, the Internet Messaging Program. -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Re: [Wicket-user] CheckBox and GridView
CheckGroup sounds right ... but I'm not sure where ICellPopulator should be used. And I keep getting Invalid boolean value "MasterReference". somehow I missing a method to tell wicket if the checkbox should be checked, right? My code is currently: TestModel inputModel = new TestModel(); CheckGroup imageGroup = new CheckGroup( "imagesSelected", new PropertyModel(inputModel, "selected")); add(imageGroup); GridView gridView = new GridView("rows", provider) { private static final long serialVersionUID = 4252215707308269580L; protected void populateItem(Item item) { final ImageReference reference = (ImageReference) item.getModelObject(); log.info("adding thumbnail: " + reference); ThumbnailImageFragment thumbnail = new ThumbnailImageFragment( "thumbnail", reference, item.getModel()); item.add(thumbnail); } protected void populateEmptyItem(Item item) { ThumbnailEmptyFragment thumbnail = new ThumbnailEmptyFragment("thumbnail"); log.info("adding filler"); item.add(thumbnail); } }; gridView.setRows(3); gridView.setColumns(3); imageGroup.add(gridView); public ThumbnailImageFragment(String id, final ImageReference reference, IModel itemModel) { super(id); CheckBox checkBox = new CheckBox("select", itemModel); add(checkBox); BookmarkablePageLink imageLink = InboxDisplay.link("imagelink", reference); imageLink.add(new Image("image", getThumbnailResource(reference))); add(imageLink); BookmarkablePageLink textLink = InboxDisplay.link("textlink", reference); textLink.add(new Label("imagename", reference.getImage().getUniqueName())); add(textLink); } Quoting Frank Bille <[EMAIL PROTECTED]>: > I have never used GridView myself, but how about putting a CheckGroup around > the GridView and then add a Check in the ICellPopulator? Something like > this: > > public class PojoForTellingWhichChecksHasBeenClicked { > private Set selectedChecks; > // Getters and setters > } > > PojoForTellingWhichChecksHasBeenClicked pojo = new > PojoForTellingWhichChecksHasBeenClicked(); > CheckGroup cg = new CheckGroup("checkGroup", new PropertyModel(pojo, > "selectedChecks")); > GridView gv = new GridView("gw", SOME_PARAMETERS); > cg.add(gv); > > And then a ICellPopulator: > > new ICellPopulator() { > public void populateItem(final Item cellItem, final String componentId, > final IModel rowModel) { > cellItem.add(new Check(componentId, rowModel)); > } > }; > > > Makes sense? > > Frank > > > On 11/9/06, Flemming Seerup <[EMAIL PROTECTED]> wrote: >> >> How do I use CheckBox in a GridView component, and find the seleted in the >> onSubmit method ? >> >> /Flemming >> >> >> >> This message was sent using IMP, the Internet Messaging Program. >> >> - >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job >> easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > This message was sent using IMP, the Internet Messaging Program. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] NiceURL and parameters with 'sensitive' characters
Ah. Sorry. Erik. jan_bar schreef: > Sure, have a look at the url in my original post :-) > > Jan - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] NiceURL and parameters with 'sensitive' characters
The URL is already URL decoded when it reaches servlet.doXXX(), so AbstractRequestTargetUrlCodingStrategy.decodeParameters() should not call URLDecode again. Jan "jan_bar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I use nice URL with a parameter that contains a '+' character. The '+' is > URLDecoded to space (' ') in > AbstractRequestTargetUrlCodingStrategy.decodeParameters(), this is fine. So > I URLEncoded the parametr, so my nice URL looks like > http://localhost/doSomething/someId/1%2b1 , but this URL is URLDecoded by > servlet, so Wicket again sees it as someId/1+1, so the result is someId="1 > 1". > How can I pass the '+' as parameter? > > Thanks, Jan > > > > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] NiceURL and parameters with 'sensitive' characters
Sure, have a look at the url in my original post :-) Jan "Erik van Oosten" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Did you try %2b ? > > Erik. > > jan_bar schreef: > > Hi, > > > > I use nice URL with a parameter that contains a '+' character. The '+' is > > URLDecoded to space (' ') in > > AbstractRequestTargetUrlCodingStrategy.decodeParameters(), this is fine. So > > I URLEncoded the parametr, so my nice URL looks like > > http://localhost/doSomething/someId/1%2b1 , but this URL is URLDecoded by > > servlet, so Wicket again sees it as someId/1+1, so the result is someId="1 > > 1". > > How can I pass the '+' as parameter? > > > > Thanks, Jan > > > > > -- > Erik van Oosten > http://www.day-to-day-stuff.blogspot.com/ > > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] NiceURL and parameters with 'sensitive' characters
Did you try %2b ? Erik. jan_bar schreef: > Hi, > > I use nice URL with a parameter that contains a '+' character. The '+' is > URLDecoded to space (' ') in > AbstractRequestTargetUrlCodingStrategy.decodeParameters(), this is fine. So > I URLEncoded the parametr, so my nice URL looks like > http://localhost/doSomething/someId/1%2b1 , but this URL is URLDecoded by > servlet, so Wicket again sees it as someId/1+1, so the result is someId="1 > 1". > How can I pass the '+' as parameter? > > Thanks, Jan > > -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Authentication Tomcat <-> Wicket
Erik van Oosten wrote: > > Wicket supports per component authorisation. You could take a look at > wicket-auth-roles-example (a small project available through svn). > In this project some components (pages) are marked. The mark indicates > which roles are required for the component. As long as the user does not > hit those components the application runs fine. As soon as the user does > hit such a component, the sign-in page is displayed. > > Erik. > Thanks for advice, example is good. But I have to use tomcat authentication (not authorization). To make it work I have to declare . -- View this message in context: http://www.nabble.com/Authentication-Tomcat-%3C-%3E-Wicket-tf2588672.html#a7254648 Sent from the Wicket - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] NiceURL and parameters with 'sensitive' characters
Hi, I use nice URL with a parameter that contains a '+' character. The '+' is URLDecoded to space (' ') in AbstractRequestTargetUrlCodingStrategy.decodeParameters(), this is fine. So I URLEncoded the parametr, so my nice URL looks like http://localhost/doSomething/someId/1%2b1 , but this URL is URLDecoded by servlet, so Wicket again sees it as someId/1+1, so the result is someId="1 1". How can I pass the '+' as parameter? Thanks, Jan - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CheckBox and GridView
are you sure you would not rather use CheckGroup and Check? might be much easier.-igorOn 11/8/06, Flemming Seerup < [EMAIL PROTECTED]> wrote:How do I use CheckBox in a GridView component, and find the seleted in the onSubmit method ?/FlemmingThis message was sent using IMP, the Internet Messaging Program.- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CheckBox and GridView
I have never used GridView myself, but how about putting a CheckGroup around the GridView and then add a Check in the ICellPopulator? Something like this:public class PojoForTellingWhichChecksHasBeenClicked { private Set selectedChecks; // Getters and setters}PojoForTellingWhichChecksHasBeenClicked pojo = new PojoForTellingWhichChecksHasBeenClicked();CheckGroup cg = new CheckGroup("checkGroup", new PropertyModel(pojo, "selectedChecks")); GridView gv = new GridView("gw", SOME_PARAMETERS);cg.add(gv);And then a ICellPopulator:new ICellPopulator() { public void populateItem(final Item cellItem, final String componentId, final IModel rowModel) { cellItem.add(new Check(componentId, rowModel)); }};Makes sense?FrankOn 11/9/06, Flemming Seerup < [EMAIL PROTECTED]> wrote:How do I use CheckBox in a GridView component, and find the seleted in the onSubmit method ?/FlemmingThis message was sent using IMP, the Internet Messaging Program.- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AJAX XML parse error in IE6
On 11/9/06, Stefan Lindner <[EMAIL PROTECTED]> wrote: > You can't replace , or using ajax in IE. It'sprobablyIE DOM bug. There's nothing we can do about it.Ahh! Thank you very much! That's a easy workaround!Maybe this is a point for a Wicket FAQ? The more people will use AJAX with wicket, the more this will lead to questions on the list.You are welcome to add it: http://cwiki.apache.org/WICKET/faqs.html :) Frank - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user