Re: [Wicket-user] Why add(IBehavior) is final?

2006-11-09 Thread Erik van Oosten
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

Re: [Wicket-user] Not sure how to use DatePicker component

2006-11-09 Thread Carfield Yim
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 DatePic

Re: [Wicket-user] How can I set checkbox to be checked?

2006-11-09 Thread Carfield Yim
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

Re: [Wicket-user] stateless pages in 1.3

2006-11-09 Thread Eelco Hillenius
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

[Wicket-user] stateless pages in 1.3

2006-11-09 Thread Scott Swank
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 --

Re: [Wicket-user] How can I set checkbox to be checked?

2006-11-09 Thread Igor Vaynberg
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 r

Re: [Wicket-user] How can I set checkbox to be checked?

2006-11-09 Thread Carfield Yim
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=

[Wicket-user] 欢*迎来.电洽*谈

2006-11-09 Thread dsgvdsbggf
你好! 深圳市雄业贸易有限公司现有发*票优惠对外代/开,代开范围:商品销售, 商业,广告,运输,国际海运,其它服务业,餐饮业 ,建筑安装等,如贵公司需要请 与我司财/务联系,谢/谢合/作。 电话:135-4427-1956 联系人;黄先生 如果本信息打扰了您,我们向您表示歉意! - Using Tomcat but need to do more? Need to support web ser

Re: [Wicket-user] How to configure a HeaderContributor

2006-11-09 Thread Alberto Bueno
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 c

Re: [Wicket-user] How to configure a HeaderContributor

2006-11-09 Thread Eelco Hillenius
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 implemen

Re: [Wicket-user] Group of components to be validated together

2006-11-09 Thread Igor Vaynberg
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, Renau

Re: [Wicket-user] Group of components to be validated together

2006-11-09 Thread Jon Renaut
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.

Re: [Wicket-user] Group of components to be validated together

2006-11-09 Thread Igor Vaynberg
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 hav

Re: [Wicket-user] Question about DatePickerSettings

2006-11-09 Thread Eelco Hillenius
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(

Re: [Wicket-user] Not sure how to use DatePicker component

2006-11-09 Thread Eelco Hillenius
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 p

[Wicket-user] Group of components to be validated together

2006-11-09 Thread Renaut, Jonathan E CTR DISA GIG-CS
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

Re: [Wicket-user] Why add(IBehavior) is final?

2006-11-09 Thread Eelco Hillenius
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 method

Re: [Wicket-user] Validation without form submit...

2006-11-09 Thread Eelco Hillenius
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 bec

Re: [Wicket-user] Authentication Tomcat <-> Wicket

2006-11-09 Thread Eelco Hillenius
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 t

[Wicket-user] FW:sztr8866(事/宜)

2006-11-09 Thread dvfrb
 TO:(经理/财务)   本公司享有税收优/惠政策,长期与国内各省市多家企业合/作, 在报税、做帐方面积累有丰富的经验,公司本着互惠互利的原则合/作 现在推出代/开发/票的业务:   我司代理的行业广泛,有普通国税、 运 输、建筑、广告、服务业等,税率特低,所用绝对真票,可先开具票查验后再付/款,  (真诚希望与您合/作!敬请保留号码以备后用)  手机:13824313182陈先生    QQ:372749963  [EMAIL PROTECTED]

Re: [Wicket-user] HeaderContributor javadocs...

2006-11-09 Thread Eelco Hillenius
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.wordpres

Re: [Wicket-user] HeaderContributor javadocs...

2006-11-09 Thread Igor Vaynberg
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 < [

Re: [Wicket-user] NiceURL and parameters with 'sensitive' characters

2006-11-09 Thread Eelco Hillenius
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 UR

Re: [Wicket-user] HeaderContributor javadocs...

2006-11-09 Thread Erik Brakkee
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

Re: [Wicket-user] Padding in modal window

2006-11-09 Thread Marc-Andre Houle
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

[Wicket-user] Padding in modal window

2006-11-09 Thread Marc-Andre Houle
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 prob

[Wicket-user] 您好!合作项目报价

2006-11-09 Thread 票据
Title: 邮件主题 您好:     您好,泰和/投资股份(深圳)有限公司是一家定额纳税企业、现有各行业的普通销售发`票代.开,以及建筑业、运输业、广告业、等各行业服务票.据。如有需要欢迎来电洽谈咨询。请保留此信息、以备后用。 联系人:王伟   手机:13418655264  --

Re: [Wicket-user] HeaderContributor javadocs...

2006-11-09 Thread Igor Vaynberg
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"));

Re: [Wicket-user] Authentication Tomcat <-> Wicket

2006-11-09 Thread Igor Vaynberg
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-examp

Re: [Wicket-user] setResponsepage keep data

2006-11-09 Thread Justin Lee
-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(P

[Wicket-user] AD:俊衡

2006-11-09 Thread 陈生
  您好;        深圳市俊衡贸易有限公司    本公司是一家常年主要以生产和销售为一体的定额纳税企业;长期以来享有国家优.惠政策, 与国内多家行业的公司有发/票业务往来,现公司有余额的发/票优.惠向外代/开。 1、普通.商品.销售发/票、运输业、广.告业、服务业、建筑业等行业发/票。 2、此信.息长期有效敬请保留,如有需要欢.迎来.电洽谈.咨询! (对于双方的合作关系绝对保密.确保真票.

[Wicket-user] How to configure a HeaderContributor

2006-11-09 Thread Alberto Bueno
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 TabS

Re: [Wicket-user] Why add(IBehavior) is final?

2006-11-09 Thread Alberto Bueno
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

[Wicket-user] setResponsepage keep data

2006-11-09 Thread Vincent Renaville
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

Re: [Wicket-user] Can I tell the application use UTF-8 without change servlet container?

2006-11-09 Thread Juergen Donnerstag
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 cha

Re: [Wicket-user] Validation without form submit...

2006-11-09 Thread Erik Brakkee
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

[Wicket-user] HeaderContributor javadocs...

2006-11-09 Thread Erik Brakkee
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 happen

Re: [Wicket-user] Authentication Tomcat <-> Wicket

2006-11-09 Thread Erik van Oosten
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 s

Re: [Wicket-user] CheckBox and GridView

2006-11-09 Thread Flemming Seerup
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 ch

Re: [Wicket-user] CheckBox and GridView

2006-11-09 Thread Frank Bille
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 i

Re: [Wicket-user] CheckBox and GridView

2006-11-09 Thread Flemming Seerup
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, Fle

Re: [Wicket-user] CheckBox and GridView

2006-11-09 Thread Frank Bille
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 "Master

Re: [Wicket-user] CheckBox and GridView

2006-11-09 Thread Flemming Seerup
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: ---

Re: [Wicket-user] NiceURL and parameters with 'sensitive' characters

2006-11-09 Thread Erik van Oosten
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 tec

Re: [Wicket-user] NiceURL and parameters with 'sensitive' characters

2006-11-09 Thread jan_bar
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 '+' cha

Re: [Wicket-user] NiceURL and parameters with 'sensitive' characters

2006-11-09 Thread jan_bar
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

Re: [Wicket-user] NiceURL and parameters with 'sensitive' characters

2006-11-09 Thread Erik van Oosten
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 > ht

Re: [Wicket-user] Authentication Tomcat <-> Wicket

2006-11-09 Thread Dmitry Kandalov
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 a

[Wicket-user] NiceURL and parameters with 'sensitive' characters

2006-11-09 Thread jan_bar
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 UR

Re: [Wicket-user] CheckBox and GridView

2006-11-09 Thread Igor Vaynberg
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 ?/Flemming-

Re: [Wicket-user] CheckBox and GridView

2006-11-09 Thread Frank Bille
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}PojoForTellingWhichChecksHasBeenCl

Re: [Wicket-user] AJAX XML parse error in IE6

2006-11-09 Thread Frank Bille
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 mor