[Wicket-user] relative resources(css/images...) in HTML

2006-02-28 Thread smallufo
Hi , I am new to Wicket.I learn Wicket from the three tutorials in JavaLobby .In the third tutorial : Let Components Contribute to the Header Section( http://www.javalobby.org/java/forums/t61002.html )The author added to PersonPanel.html script language=_javascript_ src="">the src="" seems should

[Wicket-user] Re: DatePicker not work for 1.2RC3 ?

2006-05-03 Thread smallufo
Sorry to bother you .It worked again .I don't know the reason , maybe browser's script loading problem2006/5/4, smallufo [EMAIL PROTECTED] :HiAnybody has problem about DatePicker on 1.2 RC3 ?It worked on 1.2 RC2 , but after I upgrade to 1.2 RC3 (both wicket and wicket-extensions) , it doesn't

[Wicket-user] DatePicker not work for 1.2RC3 ?

2006-05-03 Thread smallufo
HiAnybody has problem about DatePicker on 1.2 RC3 ?It worked on 1.2 RC2 , but after I upgrade to 1.2 RC3 (both wicket and wicket-extensions) , it doesn't work , the calendar doesn't pop-up anymore...Anybody has this problem too ?

[Wicket-user] What's the purpose of PackageResource.bind in IInitializer ?

2006-05-10 Thread smallufo
HiCan somebody explain the purpose of PackageResource.bind() in IInitializer ?I tried to remove PackageResource.bind(application , Foo.class , bar.gif) in IInitializerand ... keeps the following code intact in Page/Panel add(new Image(myImage , new PackageResourceReference(Foo.class,

[Wicket-user] Custom component inheritance

2006-05-13 Thread smallufo
HiI have a custom component (form) that extends PanelI want to extend my custom panel and add some field and overide the onSubmit() method.But I found I have to duplicate the whole HTML content.I feel this will increase the complexity of future maintaince. Is there a better way to handle this ?

Re: [Wicket-user] Custom component inheritance

2006-05-13 Thread smallufo
, this is the difference...2006/5/13, Johan Compagner [EMAIL PROTECTED]:use markup inheritance for this. As far as i know this should work for panels also http://www.wicket-wiki.org.uk/wiki/index.php/Markup_inheritance johanOn 5/13/06, smallufo [EMAIL PROTECTED] wrote: HiI have a custom component (form

[Wicket-user] Google Web Toolkit integration ?

2006-05-16 Thread smallufo
Google Web Toolkit - Build AJAX apps in the Java language released on 5/16/2006 http://code.google.com/webtoolkit/ It seems powerful and slick Anybody has any idea to integrate it to wicket ? --- Using Tomcat but need to do more? Need to

[Wicket-user] In markup inheritance , child surrounded by a Box

2006-05-22 Thread smallufo
Hi I am learning Markup Inheritance . According to this article : http://www.javalobby.org/java/forums/t69357.html In the Base.html div id=body wicket:child / /div I want the child content surrounded by a BoxBorder , so I change to : span wicket:id = bodyBorder

[Wicket-user] 1.2rc4 -- 1.2 : Markup of type 'html' for component 'foo.bar' not found

2006-05-25 Thread smallufo
Hi , after I updated my wicket libraries from 1.2rc4 to 1.2 , my app shows this error message : Markup of type 'html' for component 'foo.bar' not found , Enable debug messages for wicket.util.resource to get a list of all filenames tried: [Page class = foo.bar.MyPage, id = 0] But when I added

Re: [Wicket-user] 1.2rc4 -- 1.2 : Markup of type 'html' for component 'foo.bar' not found

2006-05-25 Thread smallufo
of your failure? Eelco On 5/25/06, smallufo [EMAIL PROTECTED] wrote: Hi , after I updated my wicket libraries from 1.2rc4 to 1.2 , my app shows this error message : Markup of type 'html' for component 'foo.bar' not found , Enable debug messages for wicket.util.resource to get a list of all

[Wicket-user] Custom FormComponent or Panel with complex validation ?

2006-06-11 Thread smallufo
I have an object that want to embed it in a form. My custom object has its complicated validation mechanism (not just validators in wicket.markup.html.form.validation.*) , what should I do ? For example : MyDatePicker , that will check if you pickup February , and it will check if 'day' is

Re: [Wicket-user] Custom FormComponent or Panel with complex validation ?

2006-06-12 Thread smallufo
Thank you. I did not really mean DatePicker I just take MyDatePicker for example , because it has cross-field validation ( If month==FEB , day =28 for average year ; day=29 for leap year) My custom object structure and validation is more complicated , not related to DatePicker. I just want to

Re: [Wicket-user] Custom FormComponent or Panel with complex validation ?

2006-06-12 Thread smallufo
I think I shouldn't use FormValidator , because MyDatePicker is not a form ; MyDatePicker is embed in a form , with other fields included , such as username , password , title ...etc. The cool thing about how components are nested and form components work in Wicket, is that you can nest

Re: [Wicket-user] Custom FormComponent or Panel with complex validation ?

2006-06-12 Thread smallufo
Thanks , this is exactly what I was doing...my first post in the thread , method 1 :1.Make MyDatePicker extends Panel ,and write MyDatePickerValidator implements IFormValidator so , I can use :form.add(myDatePicker);form.add(myDatePickerValidator);Is it correct ???If it is correct , it seems

Re: [Wicket-user] Custom FormComponent or Panel with complex validation ?

2006-06-14 Thread smallufo
2006/6/13, Eelco Hillenius [EMAIL PROTECTED]: I thought this way has some flaw , because it decoupled myDatePicker and myDatePickerValidator , Other programmer may form.add(myDatePicker); and forget to form.add(myDatePickerValidator); You can hide adding that validator in your component too. Of

Re: [Wicket-user] Custom FormComponent or Panel with complex validation ?

2006-06-15 Thread smallufo
Thanks. It seems I overlooked the findParent method... But I have another question. Is it a good idea to add the validator-binding-code in onBeforeRender() ? Yes , in Wicket 2 , the hierarchy is known at construction time . But in wicket 1.2 , is there any better way to solve it ? 2006/6/15,

Re: [Wicket-user] Eclipse don't copy .html to output folder

2006-07-04 Thread smallufo
Eclipse 3.2 Project - Properties - Java Compiler - Building - Enable project specific settings - Output folder - Filtered Resources remove *.html done! 2006/7/4, John Patterson [EMAIL PROTECTED]: This sounds like the problem I came across a few weeks ago:

Re: [Wicket-user] VOTE: how should localized attributes work?

2006-08-03 Thread smallufo
2[x] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash

[Wicket-user] mountBookmarkablePage not working ?

2006-11-01 Thread smallufo
Hi , I have a question about mountBookmarkablePage...I don't know why mountBookmarkablePage() not work on my application...I did add the code in my WebApplication : mountBookmarkablePage(/ViewItem , ViewItem.class);But when I call add(new BookmarkablePageLink(link , ViewItem.class , pps)...It

Re: [Wicket-user] mountBookmarkablePage not working ?

2006-11-01 Thread smallufo
Hi , I am using wicket 1.2.2 + Spring 2.0 + Hibernate 3.2 + Resin 2.1.16 + JavaEE5The code is as simple as any example.I don't know if it is Resin that cause this problem ...Anybody using Resin without this problem ??? 2006/11/2, Igor Vaynberg [EMAIL PROTECTED]: seems like that should work, what

Re: [Wicket-user] mountBookmarkablePage not working ?

2006-11-01 Thread smallufo
sorry , I found the problemIt's not related to wicket , it's related to eclipse for not compiling the latest version.Sorry for bother you :p2006/11/2, Igor Vaynberg [EMAIL PROTECTED]:not sure what to tell you, it works fine over here http://www.wicket-library.com/wicket-examples/niceurldont think

[Wicket-user] wicket + spring's OpenSessionInViewFilter still LazyInitializationException

2006-11-01 Thread smallufo
HiI am using Wicket 1.2.2 + Spring 2.0 + Hibernate 3.2 (same problem with Spring 1.2.8 + Hibernate 3.0.5)I added OpenSessionInViewFilter in web.xml but still get LazyInitializationExceptionHere is my settings : web.xml : context-param param-namecontextConfigLocation/param-name

Re: [Wicket-user] wicket + spring's OpenSessionInViewFilter still LazyInitializationException

2006-11-01 Thread smallufo
2006/11/2, Johan Compagner [EMAIL PROTECTED]: when was that object really loaded?In the outmost page... In the same request? Or was it hold on to it between a request?johanNo , it's not the same request. (pass to another page or PagingNavigator)Is it where the problem starts?Any way to solve this

Re: [Wicket-user] Header contribution not always rendered

2007-01-31 Thread smallufo
I got the same problem with 1.2.4 2006/11/11, Matej Knopp [EMAIL PROTECTED]: That's weird. Which wicket version are you using? Seems that Wicket 1.x has already become 1.3 and the latest revision is 473519. Wicket 1.2 has it's own branch now. Are you sure you're using the apache repository?

[Wicket-user] How to getParameters() after using mountBookmarkablePage() ?

2007-03-12 Thread smallufo
Before using mountBookmarkablePage() , parameters are presented as ?var1=avar2=b ... I can get a map of parameters by getRequest().getRequestParameters().getParameters(); After using mountBookmarkablePage() , parameters are translated to spider-friendly style : /var1/a/var2/b and

Re: [Wicket-user] How to getParameters() after using mountBookmarkablePage() ?

2007-03-12 Thread smallufo
2007/3/12, RĂ¼diger Schulz [EMAIL PROTECTED]: Use the constructor WebPage(wicket.PageParameters). There you get all parameters as a map, no matter if the page was mounted or not. Thank you But compoments seem still cannot direct get parameterMap from

Re: [Wicket-user] How to getParameters() after using mountBookmarkablePage() ?

2007-03-12 Thread smallufo
2007/3/12, RĂ¼diger Schulz [EMAIL PROTECTED]: Hello, you could pass the whole map to your components. Hello , this is what I want to avoid. I have a compoment : 'LanguageBar' , which 'appends' language=Chinese or language=English or...whatever to current ParameterMap is. So I wrote this :

Re: [Wicket-user] Wicket mailing lists no more archived ?

2007-03-12 Thread smallufo
Hi will the wicket package name change in the future ? eg: org.apache.wicket.* ... 2007/3/12, Martijn Dashorst [EMAIL PROTECTED]: On 3/12/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Having played with the nabble search engine I can already tell that it rocks ! :) Yeah, it is pretty decent.

Re: [Wicket-user] url mounting and PageParameters

2007-05-11 Thread smallufo
Hi There is already a jira issue here (1.2.x) : http://issues.apache.org/jira/browse/WICKET-400 2007/5/9, Igor Vaynberg [EMAIL PROTECTED]: still, the query string params should be merged. please file a jira issue if you are using 1.3 -igor On 5/9/07, Lowell Kirsh [EMAIL PROTECTED]