[Wicket-user] Optional components
I'm in need of 'optional' components, i.e. they exist in Java code but the web designer is allowed to omit them in the HTML template. Currently I'm using a base class (named OptionalPanel) that cooperates with the page: In Page#renderAll() all appropriate children are marked as being rendered, if not already rendered by Wicket. I'm not happy with the implementation though, as it seems to me more like a hack :(. What do you think - could Wicket include a solution for this? A tag interface? Or an #isOptional() on Component? Thanks Sven --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket 1.2-beta1 available
All,The first beta release of wicket 1.2 is available for download. Wicket 1.2 has many improvements and features over Wicket 1.1, including:Native, cross-platform AJAX support: use AJAX without having to write a single line of _javascript_. Wicket's AJAX cross-platform capabilities have been rated 'A' Render multiple components in one AJAX call, where each component can occupy any part of the pageImproved markup inheritance: panels, pages, header contributionsImproved and simplified internationalization (i18n) support, using wicket:message, better resource bundle lookup strategy Multiple form component validation, validate two or more fields that are relatedImproved form handling: clear form validation workflow that allows you to much easier defined required and type conversion attributes of a form component Nice URL support through URL mountingMarkup fragments (inline panels)Improved performance by replacing OGNL with our own object graph language parser Response filter support, added ServerTime and ServerClientTime filtersReloading of resource bundles in development modeImproved unit test support for your Wicket components and pages through the WicketTester, create unittests that run outside the container. Out-of-the-box AJAX components: paging navigator, link with fallback, auto-updater, AJAX form, AJAX submit buttons, etc.Improved authorization and authentication support, giving you the power to specify authorization at the component level. An example project featuring a role based, annotation framework is now part of the standard distribution. Spring support for injecting your business logic into your web pages in a non-intrusive manner, while still being able to use the convenient Wicket idiom for creating pages (using the Java new operator). Improved settings system: settings are now partitioned into logical groupings to make them easier to findNumerous bug fixes and minor improvementsThe upcoming final Wicket 1.2 release will be a major landmark in the history of Wicket and is highly anticipated.We have tried to keep API changes to a minimum, but had to change and remove some methods and classes. Wicket 1.2 will not be a drop-in replacement, though most of your application's pages and components should not be affected. There is a migration guide available on our wiki: Migrating to wicket-1.2This is the first beta release, so not considered production ready. Please help us iron out the last bugs by downloading and testing this beta release. Have fun!- the Wicket team-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1
Re: [Wicket-user] Optional components
One thing you can do is turn of the render check. Would that suffice? Eelco On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm in need of 'optional' components, i.e. they exist in Java code but the web designer is allowed to omit them in the HTML template. Currently I'm using a base class (named OptionalPanel) that cooperates with the page: In Page#renderAll() all appropriate children are marked as being rendered, if not already rendered by Wicket. I'm not happy with the implementation though, as it seems to me more like a hack :(. What do you think - could Wicket include a solution for this? A tag interface? Or an #isOptional() on Component? Thanks Sven --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Re: Re: Wicket 1.2 and wicket:header
Excellent work! I plan on giving this a whirl real soon :) Gili Eelco Hillenius wrote: I just commited improvements for header contributions. I created behavior HeaderContributor which allows you to contribute to the page header without being bound to the static class structure. Furthermore, this would be a good basis for cleaning up our ajax support; they now implement IHeaderContributor and have methods for writing to the header, but using this new behaviors are more strongly typed and all the filtering of double contributions is put in the behavior as an implementation detail. It can be used like: add(HeaderContributor.forCssReference(MyPanel.class, mystyle.css)); Preferably in constructors as their greatest value is for creating custom components still. Have fun with it, and as always be patient a few hours before it'll show up in annonymous CVS. Eelco On 3/6/06, jan_bar [EMAIL PROTECTED] wrote: Hi, I created standalone class out of WebMarkupWithAssociatedMarkup, it required just a small typing. The ctor now takes WebMarkupContainer (Form in my case), all occurences of 'this' now use the 'container', class HeaderPartContainer extends WebMarkupContainer and I have to add public setMyMarkupStream() that calls protected setMarkupStream(). Usage is similar like in Panel. To my surprice it works without further debugging/tweaking. Jan Juergen Donnerstag [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Yes, it is about having an extra markup file with Form (or any other Component) but ONLY wicket:head would be taken from that file. That used to work and it still does if you derive your component from WebMarkupWithAssociatedMarkup, but of course you can not use it with Form. I tried Jan's suggestion already and made it a helper class, but it would required a) plenty of parameters and b) we'd need to make a couple more methods public (or add even more parameter to the methd call). My first approach (though I didnt spend to much time on it) looked fairly ugly. renderHead(): That's actually where WebMarkupWithAssociatedContainer taps in (see Panel, Border) And I dont want to move all the stuff from WebMarkupContainerWithAssociatedMarkup into WebMarkupContainer. I dont think this pretty nice either. What we would need were extend java access model like you and Jon were discussing on Eclipsezone. Juergen On 3/6/06, jan_bar [EMAIL PROTECTED] wrote: For me it would be nice if WebMarkupContainerWithAssociatedMarkup is standalone class. I can put it as a member to my Form and use it in renderHead(). Jan Johan Compagner [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] But a form component (so not a panel with own markup) can contribute to a header just fine: public void renderHead(HtmlHeaderContainer container) But i guess the discussion is here that even for non own markup components we need to search for markup where the header part is in?? Or do i misunderstand the discussion we have here? The problem i have with that renderHead call is that i need to do some tricky stuff so that when i have 2 components on the same page the headers is not contributed twice But that is easy done with a boolean or thread local field johan On 3/6/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I agree with the inconvenience Jan has. I have an other example... I was working on a slider this weekend, based on the Yahoo slider javascript component. It would be nice to let this be a form component that can participate in form validation, population, etc, but also to use markup with this form, including header contribution. Currently, you either have to make the component a panel, and nest a form component in that and let that pass any interesting events thu to the parent, or you have to extend formcomponent and write a lot of duplicate code - the code that's now in both Panel and WebMarkupContainerWithAssociatedMarkup - yourself. It would be nice if there was an easier/ more elegant way. Eelco On 3/5/06, jan_bar [EMAIL PROTECTED] wrote: I will try to express myself better and I will add bug report if needed. In Wicket 1.1 I had a ValidatedForm class that inherits from Form. That class does client form validation (uses fvalidate scripts). The ValidatedForm needs to add the scripts (and css) to the Page markup where the form is used. In Wicket I created ValidateForm.html with wicket:head, put the scrripts there and use JavaScriptReference. With Wicket 1.2 (beta) it doesn't work. The reason is that Wicket doesn't read the associated markup for Form. I think I can create new class out of WebMarkupContainerWithAssociatedMarkup, add it as a member of my ValidatedForm and in onComponentTagBody() call renderAssociatedMarkup(). But there should be easier way. I think, that the same problem applies to FormComponent subclasses. If I want to tweak the Button with some clever scripts but use it as Button in Java, I can't. I hope I was clear enough, thanks, Jan Johan
Re: [Wicket-user] Wicket 1.2-beta1 available
On 3/7/06, Martijn Dashorst [EMAIL PROTECTED] wrote: All,The first beta release of wicket 1.2 is available for download. Wicket 1.2 has many improvements and features over Wicket 1.1, including:Woah - I kill my machine and dissapear for a few days (I still have a dead linux/development box currently) and a beta comes out - congrats! Can't wait to give it a full bashing over with.mark
Re: [Wicket-user] Hey, Need A Panel for DateSelection?
You are welcome :) Eelco On 3/7/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: aah Eelco i saw your tip on my blog. thanks On 3/6/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Owk. On 3/6/06, Nick Heudecker [EMAIL PROTECTED] wrote: I need to redo that DateSelector and TimeSelector component to use Models. Don't use it yet! :) On 3/6/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Thanks for your contribution! There is also a patch/ proposal in our RFE's. My plan is to make that part of wicket-examples, but not to have such a component as a standard delivered one. The problem with the three dropdowns solution is that that'll be a hard one to implement fully localized. And I think any component that we ship with wicket or wicket-extensions should be localizable. But putting such a component in wicket-examples would be a nice example of how to make custom components, and would give people the option of just copy 'n paste it for their own needs. Eelco On 3/6/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: Well this is no datepicker, its just a simple implementation of the 3 DropDown boxes. it's here... i made it for one application i am working on so you can share it with me pending the time the Wicket team releases one To use it is like: (Java) form.add(dateHidden = new HiddenField(dateField)); form.add(dateSelect = new DateSelectorPanel(datePanel, dateHidden)); (html) input wicket:id=dateField type=hidden/input div wicket:id=datePanel/div The idea i used is simply to inject a Date Object into a HiddenField. And Ensure that dateField is a java.util.Date property in your Form Model. Leave the rest to the Wicket magic. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Get version of Wicket from program
The Wicket version is available in the manifest file (it is put there automatically by maven). more MANIFEST.MF Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.5 Created-By: Apache Maven Built-By: martijn Package: wicket Build-Jdk: 1.4.2_09 Extension-Name: wicket Specification-Title: a Java web application framework. Specification-Vendor: Wicket developers Implementation-Title: wicket Implementation-Vendor: Wicket developers Implementation-Version: 1.2-beta1 Martijn On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: there are a couple of ways we can do this. there is wicket.properties which can house a wicket.version property, or we can create something like public class WickerVersion { public static final String MAJOR=blah; public static final String MINOR=blah; } we can use mvn filters to populate the values somehow. martijn do you know how we can get the version you are building from mvn script? and how mvn filtering works? which fields would we need? will a simple string do? do we need major/minor? -Igor On 3/6/06, jan_bar [EMAIL PROTECTED] wrote: Hi, how can I get Wicket version from my program? Something like: String Application.getVersion() In my opinion this is useful function. For instance when I write something, that might not work well in next version of Wicket, I can assert on Wicket version. Thanks, Jan --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)
Hi, setTrimValue flag would be great (maybe there should be settings for left/right trim ?). Model might be also a working solution, but somehow I feel that this kind of task belongs to upper layer. Ari S. - Original Message - From: Igor Vaynberg [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, March 06, 2006 7:11 PM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) this should be a flag on the textfield so you can call setTrimValue(boolean) what do others think? if not you can write a model that trims for you on setObject() -Igor On 3/6/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, What might be the simplest way to change behaviour of whole wicket application so that TextField have their input trimmed of blanks at end ? I tried to do this via converters (I have my own converter factory), but it didn't work because Converter.convert doesn't do anything if String is being assigned to String field in model (it uses isAssignableFrom for this check). Ari S. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] PageLink called request two times
Duplication of jsessionid was cancelled unnoticed. And changed WicketServlet as follows, onBeginRequest called just one time. WicketServlet#doGet if (queryString != null) { // bufferId = new StringBuffer(requestUri.length() + queryString.length() + 1).append( // requestUri).append(?).append(queryString).toString(); bufferId = new StringBuffer(requestUri.length() + queryString.length() + 1).append( requestUri).append(;jsessionid= + servletRequest.getRequestedSessionId()).append(?).append(queryString).toString(); } This solution method is correct, is? It seems that WebSphere users have this problem, don't Wicket correspond? Thank you. R.A -- View this message in context: http://www.nabble.com/PageLink-called-request-two-times-t1205926.html#a3277379 Sent from the Wicket - User forum at Nabble.com. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] PageLink called request two times
that is something websphere does.And it doesn't do that when we request with response.encodeUrl()Because that is what we do ask and that encoded url is used as the keythen it is send as a redirect. But then websphere is altering it. I will look if i can only use the query (behind the ? ) as the bufferid.johanOn 3/7/06, R.A [EMAIL PROTECTED] wrote:WebSphere's session id is, EPOC# + SessionKey + CloneID, and use HttpServletRequest#getRequestedSessionId to get this.When open WicketExamples - compref - wicket.markup.html.link.PageLink, inWicketServlet#doGet, getRequesetedSessionId's output isX15KLwX-1G5IVRAF91idJcZ:-1 and sessionId is X15KLwX-1G5IVRAF91idJcZ. Then clicked go to our private/ non bookmarkable page link,inWicketServlet#doGet, getRequesetedSessionId isX15KLwX-1G5IVRAF91idJcZ:-1;jsessionid=X15KLwX-1G5IVRAF91idJcZ:-1 and sessionId is X15KLwX-1G5IVRAF91idJcZ.How do this duplication remove?--View this message in context: http://www.nabble.com/PageLink-called-request-two-times-t1205926.html#a3274521 Sent from the Wicket - User forum at Nabble.com.---This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] PageLink called request two times
We just can't add hard jsessionid on that part.That wouldn't work for the rest of the world. Because tomcat doesn't add it if it sees that it can set a cookie.i fixed it by only using the query part. johanOn 3/7/06, R.A [EMAIL PROTECTED] wrote: Duplication of jsessionid was cancelled unnoticed.And changed WicketServlet as follows, onBeginRequest called just one time.WicketServlet#doGetif (queryString != null){//bufferId = new StringBuffer( requestUri.length() + queryString.length() +1).append(//requestUri).append(?).append(queryString).toString();bufferId = new StringBuffer(requestUri.length() + queryString.length () +1).append(requestUri).append(;jsessionid= +servletRequest.getRequestedSessionId()).append(?).append(queryString).toString();}This solution method is correct, is? It seems that WebSphere users have this problem, don't Wicket correspond?Thank you.R.A--View this message in context: http://www.nabble.com/PageLink-called-request-two-times-t1205926.html#a3277379Sent from the Wicket - User forum at Nabble.com.--- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Get version of Wicket from program
Do you know how to access that information? How do you get the jar file name a specific class has been loaded from? Juergen On 3/7/06, Martijn Dashorst [EMAIL PROTECTED] wrote: The Wicket version is available in the manifest file (it is put there automatically by maven). more MANIFEST.MF Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.5 Created-By: Apache Maven Built-By: martijn Package: wicket Build-Jdk: 1.4.2_09 Extension-Name: wicket Specification-Title: a Java web application framework. Specification-Vendor: Wicket developers Implementation-Title: wicket Implementation-Vendor: Wicket developers Implementation-Version: 1.2-beta1 Martijn On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: there are a couple of ways we can do this. there is wicket.properties which can house a wicket.version property, or we can create something like public class WickerVersion { public static final String MAJOR=blah; public static final String MINOR=blah; } we can use mvn filters to populate the values somehow. martijn do you know how we can get the version you are building from mvn script? and how mvn filtering works? which fields would we need? will a simple string do? do we need major/minor? -Igor On 3/6/06, jan_bar [EMAIL PROTECTED] wrote: Hi, how can I get Wicket version from my program? Something like: String Application.getVersion() In my opinion this is useful function. For instance when I write something, that might not work well in next version of Wicket, I can assert on Wicket version. Thanks, Jan --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Get version of Wicket from program
shouldn't wicketservlet.getClass().getResourceAsStream(/META-INF/MANIFEST.MF) work?johanOn 3/7/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:Do you know how to access that information?How do you get the jar file name a specific class has been loaded from?JuergenOn 3/7/06, Martijn Dashorst [EMAIL PROTECTED] wrote: The Wicket version is available in the manifest file (it is put there automatically by maven). more MANIFEST.MF Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.5 Created-By: Apache Maven Built-By: martijn Package: wicket Build-Jdk: 1.4.2_09 Extension-Name: wicket Specification-Title: a Java web application framework. Specification-Vendor: Wicket developers Implementation-Title: wicket Implementation-Vendor: Wicket developers Implementation-Version: 1.2-beta1 Martijn On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: there are a couple of ways we can do this. there is wicket.properties which can house a wicket.version property, or we can create something like public class WickerVersion { public static final String MAJOR=blah; public static final String MINOR=blah; } we can use mvn filters to populate the values somehow. martijn do you know how we can get the version you are building from mvn script? and how mvn filtering works? which fields would we need? will a simple string do? do we need major/minor? -Igor On 3/6/06, jan_bar [EMAIL PROTECTED] wrote: Hi, how can I get Wicket version from my program? Something like: String Application.getVersion() In my opinion this is useful function. For instance when I write something, that might not work well in next version of Wicket, I can assert on Wicket version. Thanks, Jan --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)
a trim flag on what?Form component? I don't like that what does it do for non text fields?trimming should belong in a model. For example a ModelWrapper where you put youre real models in.johan On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi,setTrimValue flag would be great (maybe there should be settingsfor left/right trim ?).Model might be also a working solution, but somehow I feel thatthis kind of task belongs to upper layer. Ari S.- Original Message -From: Igor Vaynberg [EMAIL PROTECTED]To: wicket-user@lists.sourceforge.netSent: Monday, March 06, 2006 7:11 PMSubject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)this should be a flag on the textfield so you can call setTrimValue(boolean) what do others think?if not you can write a model that trims for you on setObject()-IgorOn 3/6/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, What might be the simplest way to change behaviour of whole wicket application so that TextField have their input trimmed of blanks at end ? I tried to do this via converters (I have my own converter factory), but it didn't work because Converter.convert doesn't do anything if String is being assigned to String field in model (it uses isAssignableFrom for this check). Ari S. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user---This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] PageLink called request two times
Hi Johan, True. If you will fix it by only using the query part, I wait it in the pleasure. Thanks a lot!! Thank you. R.A -- View this message in context: http://www.nabble.com/PageLink-called-request-two-times-t1205926.html#a3277879 Sent from the Wicket - User forum at Nabble.com. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Request regarding Anchor by Link
Hi; second time I post this email, for some reason it didn't make it way to the group. I wanted to do something easy, which is I wanted to have a link that do some action by overriding onClick, but after the action is done, I don't want only to refresh the page I want it to jump to an Anchor in the same page. while this is easy, it involved hard code the anchor name in java code, so what I did is: @Override protected String getURL() { String url = super.getURL() + #someWhereInThePage; return url; } What I would suggest is to check the link href attribute, if the attribute has something behind # then it should do the above in the getURL of the super class, if the href has nothing or only #, it should not, so simple but I guess it's more wicket sense than what I'm doing now :) Hope you like it. P.S: Yah! Yah! Yah! @Override protected String getURL() { BufferString url = new BufferString(super.getURL()); url.append(#someWhereInThePage); return url.toString(); } :) just joking! -- Regards, Ali --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)
Hi, But simple validation is already on wicket level. Of course we could argue on this, but I really think that right place for simple input cleanup is the user interface layer: - Let's say I have a model, which has field called code. - If user types new value for this in a field, I (and even user, I think) excepts that invisible blanks at end of code are removed. It is very easy to accidentally put them there with copy paste, for example. - However, if I code something like this: m.setCode(ZAP ); I sure except that it is stored excactly as I wrote. Besides, who it would harm if TextField TextArea had a flag like this ? Nobody forces one to use it. Ari S. - Original Message - From: Johan Compagner [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, March 07, 2006 11:35 AM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) a trim flag on what? Form component? I don't like that what does it do for non text fields? trimming should belong in a model. For example a ModelWrapper where you put youre real models in. johan On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, setTrimValue flag would be great (maybe there should be settings for left/right trim ?). Model might be also a working solution, but somehow I feel that this kind of task belongs to upper layer. Ari S. - Original Message - From: Igor Vaynberg [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, March 06, 2006 7:11 PM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) this should be a flag on the textfield so you can call setTrimValue(boolean) what do others think? if not you can write a model that trims for you on setObject() -Igor On 3/6/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, What might be the simplest way to change behaviour of whole wicket application so that TextField have their input trimmed of blanks at end ? I tried to do this via converters (I have my own converter factory), but it didn't work because Converter.convert doesn't do anything if String is being assigned to String field in model (it uses isAssignableFrom for this check). Ari S. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Request regarding Anchor by Link
may be you make it a RFE. This way it will not be lost. Juergen On 3/7/06, Ali Zaid [EMAIL PROTECTED] wrote: Hi; second time I post this email, for some reason it didn't make it way to the group. I wanted to do something easy, which is I wanted to have a link that do some action by overriding onClick, but after the action is done, I don't want only to refresh the page I want it to jump to an Anchor in the same page. while this is easy, it involved hard code the anchor name in java code, so what I did is: @Override protected String getURL() { String url = super.getURL() + #someWhereInThePage; return url; } What I would suggest is to check the link href attribute, if the attribute has something behind # then it should do the above in the getURL of the super class, if the href has nothing or only #, it should not, so simple but I guess it's more wicket sense than what I'm doing now :) Hope you like it. P.S: Yah! Yah! Yah! @Override protected String getURL() { BufferString url = new BufferString(super.getURL()); url.append(#someWhereInThePage); return url.toString(); } :) just joking! -- Regards, Ali --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Get version of Wicket from program
On Tue, 2006-03-07 at 10:27 +0100, Juergen Donnerstag wrote: Do you know how to access that information? How do you get the jar file name a specific class has been loaded from? getClass().getProtectionDomain().getCodeSource().getLocation() gives you the location where the class was loaded from. I don't know in which situations the CodeSource may be null, though. Joni --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] OT? Tomcat not removing wicket.jar
I was having this similiar problem, I have a few apps on my isp (kattare incidentally) and I needed to redeploy each one without shutting the whole damn (pardon me) thing down. using the tomcat manager wasn't helping as it did not remove the WEB-INF/lib directory and was causing SEVERE: ClassNotFoundException while loading persisted sessions: java.lang.ClassNotFoundException : wicket.Page$4java.lang.ClassNotFoundException: wicket.Page$4 ...java.net forum suggested turning off the session persistence - here but that didn't work and the WEB-INF/lib was not deleted by tomcat, only shutting it down was I able to remove it on the command line as it is probably locked. another thread also on java.net mentioned something about setting anti-jar locking and anti-resource locking in the contect.xml for Tomcat which I thought might solve the problemso now, when I package my war file I include the META-INF/context.xml which when I cp onto the webapp dir deploys nicely without complaining... Context path=/myApp docBase=myApp reloadable=true unpackWAR=true override=true antiJARLocking=true antiResourceLocaking=true Manager className=org.apache.catalina.session.PersistentManager saveOnRestart=false //Contextn.b . according to context.xml doc on apache there are side effects to on jsp - but heck, I'm using wicket ! Is this the right way to go? I am using wicket1.1 and tomcat 5.5 JoshOn 8/26/05, Igor Vaynberg [EMAIL PROTECTED] wrote:This isnt just a development-time problem. This also happens when you are deploying a new version of your app, and if it's a hosted tomcat server youare screwed.-Igor
Re: [Wicket-user] OT? Tomcat not removing wicket.jar
typo - antiResourceLocking=trueOn 3/7/06, Joshua Lim [EMAIL PROTECTED] wrote:I was having this similiar problem, I have a few apps on my isp (kattare incidentally) and I needed to redeploy each one without shutting the whole damn (pardon me) thing down. using the tomcat manager wasn't helping as it did not remove the WEB-INF/lib directory and was causing SEVERE: ClassNotFoundException while loading persisted sessions: java.lang.ClassNotFoundException : wicket.Page$4java.lang.ClassNotFoundException: wicket.Page$4 ...java.net forum suggested turning off the session persistence - here but that didn't work and the WEB-INF/lib was not deleted by tomcat, only shutting it down was I able to remove it on the command line as it is probably locked. another thread also on java.net mentioned something about setting anti-jar locking and anti-resource locking in the contect.xml for Tomcat which I thought might solve the problemso now, when I package my war file I include the META-INF/context.xml which when I cp onto the webapp dir deploys nicely without complaining... Context path=/myApp docBase=myApp reloadable=true unpackWAR=true override=true antiJARLocking=true antiResourceLocaking=true Manager className=org.apache.catalina.session.PersistentManager saveOnRestart=false //Contextn.b . according to context.xml doc on apache there are side effects to on jsp - but heck, I'm using wicket ! Is this the right way to go? I am using wicket1.1 and tomcat 5.5 Josh On 8/26/05, Igor Vaynberg [EMAIL PROTECTED] wrote:This isnt just a development-time problem. This also happens when you are deploying a new version of your app, and if it's a hosted tomcat server youare screwed.-Igor
Re: [Wicket-user] OT? Tomcat not removing wicket.jar
interessting, can you test with only antiJARLocking ?because it seems to me that we have that specific problemjohanOn 3/7/06, Joshua Lim [EMAIL PROTECTED] wrote: typo - antiResourceLocking=true On 3/7/06, Joshua Lim [EMAIL PROTECTED] wrote:I was having this similiar problem, I have a few apps on my isp (kattare incidentally) and I needed to redeploy each one without shutting the whole damn (pardon me) thing down. using the tomcat manager wasn't helping as it did not remove the WEB-INF/lib directory and was causing SEVERE: ClassNotFoundException while loading persisted sessions: java.lang.ClassNotFoundException : wicket.Page$4java.lang.ClassNotFoundException: wicket.Page$4 ...java.net forum suggested turning off the session persistence - here but that didn't work and the WEB-INF/lib was not deleted by tomcat, only shutting it down was I able to remove it on the command line as it is probably locked. another thread also on java.net mentioned something about setting anti-jar locking and anti-resource locking in the contect.xml for Tomcat which I thought might solve the problemso now, when I package my war file I include the META-INF/context.xml which when I cp onto the webapp dir deploys nicely without complaining... Context path=/myApp docBase=myApp reloadable=true unpackWAR=true override=true antiJARLocking=true antiResourceLocaking=true Manager className=org.apache.catalina.session.PersistentManager saveOnRestart=false //Contextn.b . according to context.xml doc on apache there are side effects to on jsp - but heck, I'm using wicket ! Is this the right way to go? I am using wicket1.1 and tomcat 5.5 Josh On 8/26/05, Igor Vaynberg [EMAIL PROTECTED] wrote:This isnt just a development-time problem. This also happens when you are deploying a new version of your app, and if it's a hosted tomcat server youare screwed.-Igor
Re: [Wicket-user] Get version of Wicket from program
Codesource should never be null, if you class is in a jar file, codesource points to the jar. else it might point to a directory where your class files can be found (or in subdirs thereof). if none of the above is available it will point to the classfile itself. But perhaps Martijn can tell you how he did it, i know he did it for our project but can't seem to find where. Maurice On 3/7/06, Joni Suominen [EMAIL PROTECTED] wrote: On Tue, 2006-03-07 at 10:27 +0100, Juergen Donnerstag wrote: Do you know how to access that information? How do you get the jar file name a specific class has been loaded from? getClass().getProtectionDomain().getCodeSource().getLocation() gives you the location where the class was loaded from. I don't know in which situations the CodeSource may be null, though. Joni --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
AW: Re: [Wicket-user] Optional components
I'm aware of IDebugSettings#componentUseCheck. But with this setting I would loose the rendering check globally :(. I'd rather keep the check for most of my components. Sven One thing you can do is turn of the render check. Would that suffice? Eelco On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm in need of 'optional' components, i.e. they exist in Java code but the web designer is allowed to omit them in the HTML template. Currently I'm using a base class (named OptionalPanel) that cooperates with the page: In Page#renderAll() all appropriate children are marked as being rendered, if not already rendered by Wicket. I'm not happy with the implementation though, as it seems to me more like a hack :(. What do you think - could Wicket include a solution for this? A tag interface? Or an #isOptional() on Component? Thanks Sven --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] OT? Tomcat not removing wicket.jar
ahh checked it outantiResourceLocking copies the complete webapp to the java.io.tmpdir and makes that the docroot. So that you can copy jars over the original location just fineAnd i guess that is the location they monitor. antJarLocking does another trick: if (antiJARLocking) { ResourceEntry entry = (ResourceEntry) resourceEntries.get(name); try { String repository = entry.codeBase.toString(); if ((repository.endsWith(.jar)) (!(name.endsWith(.class { // Copy binary content to the work directory if not present File resourceFile = new File(loaderDir, name); url = ""> } } catch (Exception e) { // Ignore } }and on another place all resources inside a jar are just extracted to a dir.So they don't really load it from inside a jar. But always from disc.johan On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: interessting, can you test with only antiJARLocking ?because it seems to me that we have that specific problem johanOn 3/7/06, Joshua Lim [EMAIL PROTECTED] wrote: typo - antiResourceLocking=true On 3/7/06, Joshua Lim [EMAIL PROTECTED] wrote:I was having this similiar problem, I have a few apps on my isp (kattare incidentally) and I needed to redeploy each one without shutting the whole damn (pardon me) thing down. using the tomcat manager wasn't helping as it did not remove the WEB-INF/lib directory and was causing SEVERE: ClassNotFoundException while loading persisted sessions: java.lang.ClassNotFoundException : wicket.Page$4java.lang.ClassNotFoundException: wicket.Page$4 ...java.net forum suggested turning off the session persistence - here but that didn't work and the WEB-INF/lib was not deleted by tomcat, only shutting it down was I able to remove it on the command line as it is probably locked. another thread also on java.net mentioned something about setting anti-jar locking and anti-resource locking in the contect.xml for Tomcat which I thought might solve the problemso now, when I package my war file I include the META-INF/context.xml which when I cp onto the webapp dir deploys nicely without complaining... Context path=/myApp docBase=myApp reloadable=true unpackWAR=true override=true antiJARLocking=true antiResourceLocaking=true Manager className=org.apache.catalina.session.PersistentManager saveOnRestart=false //Contextn.b . according to context.xml doc on apache there are side effects to on jsp - but heck, I'm using wicket ! Is this the right way to go? I am using wicket1.1 and tomcat 5.5 Josh On 8/26/05, Igor Vaynberg [EMAIL PROTECTED] wrote:This isnt just a development-time problem. This also happens when you are deploying a new version of your app, and if it's a hosted tomcat server youare screwed.-Igor
[Wicket-user] PropertyResolver#setValue()
Is there a reason why a converter is not allowed to return null? See PropertyResolver (line 821): Object converted = converter.convert(value, getMethod.getReturnType()); if (converted == null value != null) { throw new ConversionException(Can't convert value: + value + to class: + getMethod.getReturnType() + for setting it on + object); } ??? Sven --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: Re: [Wicket-user] Optional components
May be a stupid question, but isVisible is not suitable? Juergen On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm aware of IDebugSettings#componentUseCheck. But with this setting I would loose the rendering check globally :(. I'd rather keep the check for most of my components. Sven One thing you can do is turn of the render check. Would that suffice? Eelco On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm in need of 'optional' components, i.e. they exist in Java code but the web designer is allowed to omit them in the HTML template. Currently I'm using a base class (named OptionalPanel) that cooperates with the page: In Page#renderAll() all appropriate children are marked as being rendered, if not already rendered by Wicket. I'm not happy with the implementation though, as it seems to me more like a hack :(. What do you think - could Wicket include a solution for this? A tag interface? Or an #isOptional() on Component? Thanks Sven --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Get version of Wicket from program
Basically the way Johan said is the way we retrieve the version of our own application.Our own application tries to retrieve the version number of the war archive, so that is a different usecase.Martijn On 3/7/06, Maurice Marrink [EMAIL PROTECTED] wrote: Codesource should never be null, if you class is in a jar file,codesource points to the jar.else it might point to a directory where your class files can be found(or in subdirs thereof). if none of the above is available it will point to the classfile itself.But perhaps Martijn can tell you how he did it, i know he did it forour project but can't seem to find where.MauriceOn 3/7/06, Joni Suominen [EMAIL PROTECTED] wrote: On Tue, 2006-03-07 at 10:27 +0100, Juergen Donnerstag wrote: Do you know how to access that information?How do you get the jar file name a specific class has been loaded from? getClass().getProtectionDomain().getCodeSource().getLocation() gives you the location where the class was loaded from. I don't know in which situations the CodeSource may be null, though. Joni --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1
Re: Re: [Wicket-user] Optional components
it is driven by the designer not the developerSo the designer removes some markup for that page.What i don't get is if that is the case. then what is the purpose of having that component in the page anyway? Is it added back in??johanOn 3/7/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:May be a stupid question, but isVisible is not suitable?Juergen On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm aware of IDebugSettings#componentUseCheck. But with this setting I would loose the rendering check globally :(. I'd rather keep the check for most of my components. Sven One thing you can do is turn of the render check. Would that suffice? Eelco On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm in need of 'optional' components, i.e. they exist in Java code but the web designer is allowed to omit them in the HTML template. Currently I'm using a base class (named OptionalPanel) that cooperates with the page: In Page#renderAll() all appropriate children are marked as being rendered, if not already rendered by Wicket. I'm not happy with the implementation though, as it seems to me more like a hack :(. What do you think - could Wicket include a solution for this? A tag interface? Or an #isOptional() on Component? Thanks Sven--- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
RE: [Wicket-user] Rendering DataTable or DataView (or model) as Excel sheet
On 3/6/06, Frank Silbermann [EMAIL PROTECTED] wrote: From 2006/02/01: Of greater concern is that if I try to download the Excel file a second time (clicking the download button again), I get an error.If from the error page I use my browser's back button, my page returns and the download button works again -- once. In other words, I must re-request my page between each download request, or I get an error.What is actually going on here, and how do I correct this behavior?Is it because I am using a submit button instead of a Link to trigger the download?How can I change my code to avoid invalidating the page which offered the download? im not sure why this happens. i can look into it if you reproduce it in a quickstart project. -Igor Im not sure what a quickstart project is. Do you mean a zipped minimal web application that demonstrates the behavior? /Frank
Re: [Wicket-user] Request regarding Anchor by Link
let me get this straightyou do a request to the server where the onClick is handledBut you dont send anything to the browser? Even if the browser does expect data?I guess it works in youre case because the page IS refreshed. But also jumped. Because do you set somewhere are EmptyRequestTarget in the onClick?johanOn 3/6/06, Ali Zaid [EMAIL PROTECTED] wrote:Hi;I wanted to do something easy, which is I wanted to have a link that do some action by overriding onClick, but after the action is done, Idon't want only to refresh the page I want it to jump to an Anchor inthe same page.while this is easy, it involved hard code the anchor name in java code, so what I did is:@Overrideprotected String getURL() {String url = "" + #someWhereInThePage;return url;}What I would suggest is to check the link href attribute, if the attribute has something behind # then it should do the above in thegetURL of the super class, if the href has nothing or only #, itshould not, so simple but I guess it's more wicket sense than what I'mdoing now :) Hope you like it.P.S: Yah! Yah! Yah!@Overrideprotected String getURL() {BufferString url = "" BufferString(super.getURL());url.append(#someWhereInThePage); return url.toString();}:) just joking!--Regards, Ali---This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] PropertyResolver#setValue()
so you have a case where the value is something but the converter converts it to null?This is more or less a check if conversion did happen.But i can remove it and let conversion exceptions be thrown inside the converter johanOn 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there a reason why a converter is not allowed to return null?See PropertyResolver (line 821): Object converted = converter.convert(value, getMethod.getReturnType());if (converted == null value != null){throw new ConversionException(Can't convert value: + value + to class: + getMethod.getReturnType() + for setting it on + object);}???Sven---This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Rendering DataTable or DataView (or model) as Excel sheet
MarkupContainer [Component id = 1, page = No Page, path =1.MyDataTable$1]] component id == 1, DataTable?It looks like a Item in the table that was removed.Which version do you use? Because there was an error that is recently fixed that sets the parents to the right values if a markupcontainer children did get rollbacked.Can you try with 1.2beta1?johan On 3/7/06, Frank Silbermann [EMAIL PROTECTED] wrote: On 3/6/06, Frank Silbermann [EMAIL PROTECTED] wrote: From 2006/02/01: Of greater concern is that if I try to download the Excel file a second time (clicking the download button again), I get an error.If from the error page I use my browser's back button, my page returns and the download button works again -- once. In other words, I must re-request my page between each download request, or I get an error.What is actually going on here, and how do I correct this behavior?Is it because I am using a submit button instead of a Link to trigger the download?How can I change my code to avoid invalidating the page which offered the download? im not sure why this happens. i can look into it if you reproduce it in a quickstart project. -Igor I'm not sure what a quickstart project is. Do you mean a zipped minimal web application that demonstrates the behavior? /Frank
Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)
You also could use a Converter for this i guess.johanOn 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote:Hi,But simple validation is already on wicket level. Of course we could argue on this, but I really think that right place for simpleinput cleanup is the user interface layer:- Let's say I have a model, which has field called code.- If user types new value for this in a field, I (and even user, I think) excepts that invisible blanks at end of code are removed. It isvery easy to accidentally put them there with copy paste, for example.- However, if I code something like this: m.setCode(ZAP ); I sure except that it is stored excactly as I wrote.Besides, who it would harm if TextField TextArea had a flaglike this ? Nobody forces one to use it.Ari S.- Original Message - From: Johan Compagner [EMAIL PROTECTED]To: wicket-user@lists.sourceforge.netSent: Tuesday, March 07, 2006 11:35 AM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)a trim flag on what?Form component?I don't like that what does it do for non text fields?trimming should belong in a model. For example a ModelWrapper where you put youre real models in.johanOn 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, setTrimValue flag would be great (maybe there should be settings for left/right trim ?). Model might be also a working solution, but somehow I feel that this kind of task belongs to upper layer. Ari S. - Original Message - From: Igor Vaynberg [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, March 06, 2006 7:11 PM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) this should be a flag on the textfield so you can call setTrimValue(boolean) what do others think? if not you can write a model that trims for you on setObject() -Igor On 3/6/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, What might be the simplest way to change behaviour of whole wicket application so that TextField have their input trimmed of blanks at end ? I tried to do this via converters (I have my own converter factory), but it didn't work because Converter.convert doesn't do anything if String is being assigned to String field in model (it uses isAssignableFrom for this check). Ari S. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] [wicket 1.1.1]FormTester clicking a specific button
Title: [wicket 1.1.1]FormTester clicking a specific button Hi How do I click a specific button using the test wicket framework? -regards Nino
Re: [Wicket-user] [wicket 1.1.1]FormTester clicking a specific button
Try this:FormTester formTester = wicketTester.newFormTester(false);formTester.setValue(myButton, whatever);formTester.submit() ;this should click the button with myButton wicketId. On 3/7/06, Nino Wael [EMAIL PROTECTED] wrote: Hi How do I click a specific button using the test wicket framework? -regards Nino -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
Re: [Wicket-user] Get version of Wicket from program
One way I've heard of is to do something along the lines of:- URL url = getClass().getResource( /wicket/SomeWicketClass.class); Now url is something like jar:file:/path/to/the/jar!/wicket/SomeWicketClass.class Now you have to simply strip off the !/wicket/... part and replace with !/META-INF/MANIFEST.MF then Manifest manifest = new Manifest(new URL(manifestPath).openStream()); (Something like that, anyway...) On 07/03/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Basically the way Johan said is the way we retrieve the version of our own application. Our own application tries to retrieve the version number of the war archive, so that is a different usecase. Martijn On 3/7/06, Maurice Marrink [EMAIL PROTECTED] wrote: Codesource should never be null, if you class is in a jar file, codesource points to the jar. else it might point to a directory where your class files can be found (or in subdirs thereof). if none of the above is available it will point to the classfile itself. But perhaps Martijn can tell you how he did it, i know he did it for our project but can't seem to find where. Maurice On 3/7/06, Joni Suominen [EMAIL PROTECTED] wrote: On Tue, 2006-03-07 at 10:27 +0100, Juergen Donnerstag wrote: Do you know how to access that information? How do you get the jar file name a specific class has been loaded from? getClass().getProtectionDomain().getCodeSource().getLocation() gives you the location where the class was loaded from. I don't know in which situations the CodeSource may be null, though. Joni --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
RE: [Wicket-user] onSelectionChanged() for Listmultiplechoice
Sorry my bad, misunderstood clients requirements. ListChoice is dropdown correct? Has anybody made an implementation that allows one to select if ListmutipleChoice should be multiple or single? Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Monday, March 06, 2006 9:43 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] onSelectionChanged() for Listmultiplechoice We have a on selectionchanged handler in the single selection list its called ListChoice. For multiply choice we don't have that yet. But would you have that? On every click you want to go to the server? johan On 3/6/06, Nino Wael [EMAIL PROTECTED] wrote: Has anyone implemented this? Preforable in a class that allows single selection and mutiple selections? -regards Nino
RE: [Wicket-user] Rendering DataTable or DataView (or model) as Excel sheet
I tried with the 1.2beta1; same problem. /Frank -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Tuesday, March 07, 2006 7:44 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Rendering DataTable or DataView (or model) as Excel sheet MarkupContainer [Component id = 1, page = No Page, path =1.MyDataTable$1]] component id == 1, DataTable? It looks like a Item in the table that was removed. Which version do you use? Because there was an error that is recently fixed that sets the parents to the right values if a markupcontainer children did get rollbacked. Can you try with 1.2beta1? johan On 3/7/06, Frank Silbermann [EMAIL PROTECTED] wrote: On 3/6/06, Frank Silbermann [EMAIL PROTECTED] wrote: From 2006/02/01: Of greater concern is that if I try to download the Excel file a second time (clicking the download button again), I get an error.If from the error page I use my browser's back button, my page returns and the download button works again -- once. In other words, I must re-request my page between each download request, or I get an error.What is actually going on here, and how do I correct this behavior?Is it because I am using a submit button instead of a Link to trigger the download?How can I change my code to avoid invalidating the page which offered the download? im not sure why this happens. i can look into it if you reproduce it in a quickstart project. -Igor I'm not sure what a quickstart project is. Do you mean a zipped minimal web application that demonstrates the behavior? /Frank Root cause: java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = 1, page = No Page, path = 1.MyDataTable$1]] at wicket.Component.getPage(Component.java:1033) at wicket.Component.hasErrorMessage(Component.java:1246) at wicket.markup.html.form.Form$14.component(Form.java:808) at wicket.MarkupContainer.visitChildren(MarkupContainer.java:670) at wicket.MarkupContainer.visitChildren(MarkupContainer.java:685) at wicket.MarkupContainer.visitChildren(MarkupContainer.java:685) at wicket.MarkupContainer.visitChildren(MarkupContainer.java:710) at wicket.markup.html.form.Form.anyFormComponentError(Form.java:804) at wicket.markup.html.form.Form.hasError(Form.java:505) at wicket.markup.html.form.Form.process(Form.java:702) at wicket.markup.html.form.Form.onFormSubmitted(Form.java:245) at java.lang.reflect.Method.invoke(Method.java:585) at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:162) at wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:74) at wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:62) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:818) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:851) at wicket.RequestCycle.step(RequestCycle.java:931) at wicket.RequestCycle.steps(RequestCycle.java:1005) at wicket.RequestCycle.request(RequestCycle.java:451) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208) at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:235) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Complete stack: wicket.WicketRuntimeException: Method onFormSubmitted of interface wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = exportToExcelForm, page
[Wicket-user] Re: Get version of Wicket from program
Hi, for me that WicketServlet.class.getResourceAsStream("/META-INF/MANIFEST.MF") returns MANIFEST.MF from the JRE. How can I get Wicket manifest? Is this method safe even if the Wicket.jar is part of WAR/EAR? Jan "Martijn Dashorst" [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]...Basically the way Johan said is the way we retrieve the version of our own application.Our own application tries to retrieve the version number of the war archive, so that is a different usecase.Martijn On 3/7/06, Maurice Marrink [EMAIL PROTECTED] wrote: Codesource should never be null, if you class is in a jar file,codesource points to the jar.else it might point to a directory where your class files can be found(or in subdirs thereof). if none of the above is available it will point to the classfile itself.But perhaps Martijn can tell you how he did it, i know he did it forour project but can't seem to find where.MauriceOn 3/7/06, Joni Suominen [EMAIL PROTECTED] wrote: On Tue, 2006-03-07 at 10:27 +0100, Juergen Donnerstag wrote: Do you know how to access that information?How do you get the jar file name a specific class has been loaded from? getClass().getProtectionDomain().getCodeSource().getLocation() gives you the location where the class was loaded from. I don't know in which situations the CodeSource may be null, though. Joni --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1
Re: [Wicket-user] Rendering DataTable or DataView (or model) as Excel sheet
Are you absolutely sure that that is wicket 1.2b1??Because the line numbers you show in the trace doesn't match mine.johanOn 3/7/06, Frank Silbermann [EMAIL PROTECTED] wrote: I tried with the 1.2beta1; same problem. /Frank -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Johan Compagner Sent: Tuesday, March 07, 2006 7:44 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Rendering DataTable or DataView (or model) as Excel sheet MarkupContainer [Component id = 1, page = No Page, path =1.MyDataTable$1]] component id == 1, DataTable? It looks like a Item in the table that was removed. Which version do you use? Because there was an error that is recently fixed that sets the parents to the right values if a markupcontainer children did get rollbacked. Can you try with 1.2beta1? johan On 3/7/06, Frank Silbermann [EMAIL PROTECTED] wrote: On 3/6/06, Frank Silbermann [EMAIL PROTECTED] wrote: From 2006/02/01: Of greater concern is that if I try to download the Excel file a second time (clicking the download button again), I get an error.If from the error page I use my browser's back button, my page returns and the download button works again -- once. In other words, I must re-request my page between each download request, or I get an error.What is actually going on here, and how do I correct this behavior?Is it because I am using a submit button instead of a Link to trigger the download?How can I change my code to avoid invalidating the page which offered the download? im not sure why this happens. i can look into it if you reproduce it in a quickstart project. -Igor I'm not sure what a quickstart project is. Do you mean a zipped minimal web application that demonstrates the behavior? /Frank Root cause: java.lang.IllegalStateException : No Page found for component [MarkupContainer [Component id = 1, page = No Page, path = 1.MyDataTable$1]] at wicket.Component.getPage(Component.java:1033) at wicket.Component.hasErrorMessage(Component.java:1246) at wicket.markup.html.form.Form$14.component(Form.java:808) at wicket.MarkupContainer.visitChildren(MarkupContainer.java:670) at wicket.MarkupContainer.visitChildren(MarkupContainer.java:685) at wicket.MarkupContainer.visitChildren(MarkupContainer.java:685) at wicket.MarkupContainer.visitChildren(MarkupContainer.java:710) at wicket.markup.html.form.Form.anyFormComponentError(Form.java:804) at wicket.markup.html.form.Form.hasError(Form.java:505) at wicket.markup.html.form.Form.process(Form.java:702) at wicket.markup.html.form.Form.onFormSubmitted(Form.java:245) at java.lang.reflect.Method.invoke(Method.java:585) at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:162) at wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:74) at wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:62) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:818) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:851) at wicket.RequestCycle.step(RequestCycle.java:931) at wicket.RequestCycle.steps(RequestCycle.java:1005) at wicket.RequestCycle.request(RequestCycle.java:451) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208) at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:235) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java :252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java :80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Complete
Re: [Wicket-user] onSelectionChanged() for Listmultiplechoice
No DropDownChoice is a dropdown box (single select of course)ListChoice is a List (single select)ListMultipleChoice is a List but multi select.Please look at the hierachy of the AbstractChoice class. johanOn 3/7/06, Nino Wael [EMAIL PROTECTED] wrote: Sorry my bad, misunderstood clients requirements. ListChoice is dropdown correct? Has anybody made an implementation that allows one to select if ListmutipleChoice should be multiple or single? Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Johan Compagner Sent: Monday, March 06, 2006 9:43 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] onSelectionChanged() for Listmultiplechoice We have a on selectionchanged handler in the single selection list its called ListChoice. For multiply choice we don't have that yet. But would you have that? On every click you want to go to the server? johan On 3/6/06, Nino Wael [EMAIL PROTECTED] wrote: Has anyone implemented this? Preforable in a class that allows single selection and mutiple selections? -regards Nino
Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)
i was also thinking a trim flag on the textfield and textarea only. are you opposed to that also Johan?-IgorOn 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: You also could use a Converter for this i guess.johanOn 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote:Hi,But simple validation is already on wicket level. Of course we could argue on this, but I really think that right place for simpleinput cleanup is the user interface layer:- Let's say I have a model, which has field called code.- If user types new value for this in a field, I (and even user, I think) excepts that invisible blanks at end of code are removed. It isvery easy to accidentally put them there with copy paste, for example.- However, if I code something like this: m.setCode(ZAP ); I sure except that it is stored excactly as I wrote.Besides, who it would harm if TextField TextArea had a flaglike this ? Nobody forces one to use it.Ari S.- Original Message - From: Johan Compagner [EMAIL PROTECTED]To: wicket-user@lists.sourceforge.netSent: Tuesday, March 07, 2006 11:35 AM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)a trim flag on what?Form component?I don't like that what does it do for non text fields?trimming should belong in a model. For example a ModelWrapper where you put youre real models in.johanOn 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, setTrimValue flag would be great (maybe there should be settings for left/right trim ?). Model might be also a working solution, but somehow I feel that this kind of task belongs to upper layer. Ari S. - Original Message - From: Igor Vaynberg [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, March 06, 2006 7:11 PM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) this should be a flag on the textfield so you can call setTrimValue(boolean) what do others think? if not you can write a model that trims for you on setObject() -Igor On 3/6/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, What might be the simplest way to change behaviour of whole wicket application so that TextField have their input trimmed of blanks at end ? I tried to do this via converters (I have my own converter factory), but it didn't work because Converter.convert doesn't do anything if String is being assigned to String field in model (it uses isAssignableFrom for this check). Ari S. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Get version of Wicket from program
heh, easier to let maven filter it into some static variable in some class i think :)-IgorOn 3/7/06, jan_bar [EMAIL PROTECTED] wrote: Hi, for me that WicketServlet.class.getResourceAsStream(/META-INF/MANIFEST.MF) returns MANIFEST.MF from the JRE. How can I get Wicket manifest? Is this method safe even if the Wicket.jar is part of WAR/EAR? Jan Martijn Dashorst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ...Basically the way Johan said is the way we retrieve the version of our own application.Our own application tries to retrieve the version number of the war archive, so that is a different usecase.Martijn On 3/7/06, Maurice Marrink [EMAIL PROTECTED] wrote: Codesource should never be null, if you class is in a jar file,codesource points to the jar.else it might point to a directory where your class files can be found(or in subdirs thereof). if none of the above is available it will point to the classfile itself.But perhaps Martijn can tell you how he did it, i know he did it forour project but can't seem to find where.MauriceOn 3/7/06, Joni Suominen [EMAIL PROTECTED] wrote: On Tue, 2006-03-07 at 10:27 +0100, Juergen Donnerstag wrote: Do you know how to access that information?How do you get the jar file name a specific class has been loaded from? getClass().getProtectionDomain().getCodeSource().getLocation() gives you the location where the class was loaded from. I don't know in which situations the CodeSource may be null, though. Joni --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1
Re: [Wicket-user] Re: Get version of Wicket from program
Yeah, it wouldn't hurt to have version info available *easy* some way :) Eelco On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: heh, easier to let maven filter it into some static variable in some class i think :) -Igor On 3/7/06, jan_bar [EMAIL PROTECTED] wrote: Hi, for me that WicketServlet.class.getResourceAsStream(/META-INF/MANIFEST.MF) returns MANIFEST.MF from the JRE. How can I get Wicket manifest? Is this method safe even if the Wicket.jar is part of WAR/EAR? Jan Martijn Dashorst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ... Basically the way Johan said is the way we retrieve the version of our own application. Our own application tries to retrieve the version number of the war archive, so that is a different usecase. Martijn On 3/7/06, Maurice Marrink [EMAIL PROTECTED] wrote: Codesource should never be null, if you class is in a jar file, codesource points to the jar. else it might point to a directory where your class files can be found (or in subdirs thereof). if none of the above is available it will point to the classfile itself. But perhaps Martijn can tell you how he did it, i know he did it for our project but can't seem to find where. Maurice On 3/7/06, Joni Suominen [EMAIL PROTECTED] wrote: On Tue, 2006-03-07 at 10:27 +0100, Juergen Donnerstag wrote: Do you know how to access that information? How do you get the jar file name a specific class has been loaded from? getClass().getProtectionDomain().getCodeSource().getLocation() gives you the location where the class was loaded from. I don't know in which situations the CodeSource may be null, though. Joni --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: Re: [Wicket-user] Optional components
I wouldn't be against a flag that says the whether component has to be rendered. The default should be true, in which case nothing changes from the way things are now, but if the flag returns false, it would be ignored by the components check. What do the other devs think of this? Eelco On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm aware of IDebugSettings#componentUseCheck. But with this setting I would loose the rendering check globally :(. I'd rather keep the check for most of my components. Sven One thing you can do is turn of the render check. Would that suffice? Eelco On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm in need of 'optional' components, i.e. they exist in Java code but the web designer is allowed to omit them in the HTML template. Currently I'm using a base class (named OptionalPanel) that cooperates with the page: In Page#renderAll() all appropriate children are marked as being rendered, if not already rendered by Wicket. I'm not happy with the implementation though, as it seems to me more like a hack :(. What do you think - could Wicket include a solution for this? A tag interface? Or an #isOptional() on Component? Thanks Sven --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Request regarding Anchor by Link
Yep. Sounds like a valueble feature. So please add it http://sourceforge.net/tracker/?group_id=119783atid=684978 Eelco On 3/7/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: may be you make it a RFE. This way it will not be lost. Juergen On 3/7/06, Ali Zaid [EMAIL PROTECTED] wrote: Hi; second time I post this email, for some reason it didn't make it way to the group. I wanted to do something easy, which is I wanted to have a link that do some action by overriding onClick, but after the action is done, I don't want only to refresh the page I want it to jump to an Anchor in the same page. while this is easy, it involved hard code the anchor name in java code, so what I did is: @Override protected String getURL() { String url = super.getURL() + #someWhereInThePage; return url; } What I would suggest is to check the link href attribute, if the attribute has something behind # then it should do the above in the getURL of the super class, if the href has nothing or only #, it should not, so simple but I guess it's more wicket sense than what I'm doing now :) Hope you like it. P.S: Yah! Yah! Yah! @Override protected String getURL() { BufferString url = new BufferString(super.getURL()); url.append(#someWhereInThePage); return url.toString(); } :) just joking! -- Regards, Ali --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: Re: [Wicket-user] Optional components
yeah, we could have a method isOptional() {return false;} that can be overridden if really needed.On 3/7/06, Eelco Hillenius [EMAIL PROTECTED] wrote:I wouldn't be against a flag that says the whether component has to be rendered. The default should be true, in which case nothing changesfrom the way things are now, but if the flag returns false, it wouldbe ignored by the components check.What do the other devs think of this? EelcoOn 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm aware of IDebugSettings#componentUseCheck. But with this setting I would loose the rendering check globally :(. I'd rather keep the check for most of my components. Sven One thing you can do is turn of the render check. Would that suffice? Eelco On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm in need of 'optional' components, i.e. they exist in Java code but the web designer is allowed to omit them in the HTML template. Currently I'm using a base class (named OptionalPanel) that cooperates with the page: In Page#renderAll() all appropriate children are marked as being rendered, if not already rendered by Wicket. I'm not happy with the implementation though, as it seems to me more like a hack :(. What do you think - could Wicket include a solution for this? A tag interface? Or an #isOptional() on Component? Thanks Sven--- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)
So before the input goes into the required/type conversion and validators we first trim itwhen that flag is set?. he also could just overwrite getInput() and trim the text when called.johan On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i was also thinking a trim flag on the textfield and textarea only. are you opposed to that also Johan?-Igor On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: You also could use a Converter for this i guess.johanOn 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote:Hi,But simple validation is already on wicket level. Of course we could argue on this, but I really think that right place for simpleinput cleanup is the user interface layer:- Let's say I have a model, which has field called code.- If user types new value for this in a field, I (and even user, I think) excepts that invisible blanks at end of code are removed. It isvery easy to accidentally put them there with copy paste, for example.- However, if I code something like this: m.setCode(ZAP ); I sure except that it is stored excactly as I wrote.Besides, who it would harm if TextField TextArea had a flaglike this ? Nobody forces one to use it.Ari S.- Original Message - From: Johan Compagner [EMAIL PROTECTED]To: wicket-user@lists.sourceforge.netSent: Tuesday, March 07, 2006 11:35 AM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)a trim flag on what?Form component?I don't like that what does it do for non text fields?trimming should belong in a model. For example a ModelWrapper where you put youre real models in.johanOn 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, setTrimValue flag would be great (maybe there should be settings for left/right trim ?). Model might be also a working solution, but somehow I feel that this kind of task belongs to upper layer. Ari S. - Original Message - From: Igor Vaynberg [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, March 06, 2006 7:11 PM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) this should be a flag on the textfield so you can call setTrimValue(boolean) what do others think? if not you can write a model that trims for you on setObject() -Igor On 3/6/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, What might be the simplest way to change behaviour of whole wicket application so that TextField have their input trimmed of blanks at end ? I tried to do this via converters (I have my own converter factory), but it didn't work because Converter.convert doesn't do anything if String is being assigned to String field in model (it uses isAssignableFrom for this check). Ari S. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)
i guess thats true. you can create a subclass TrimmingTextField that overrides getInput() and trims it.-IgorOn 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: So before the input goes into the required/type conversion and validators we first trim itwhen that flag is set?. he also could just overwrite getInput() and trim the text when called. johan On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i was also thinking a trim flag on the textfield and textarea only. are you opposed to that also Johan?-Igor On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: You also could use a Converter for this i guess.johanOn 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote:Hi,But simple validation is already on wicket level. Of course we could argue on this, but I really think that right place for simpleinput cleanup is the user interface layer:- Let's say I have a model, which has field called code.- If user types new value for this in a field, I (and even user, I think) excepts that invisible blanks at end of code are removed. It isvery easy to accidentally put them there with copy paste, for example.- However, if I code something like this: m.setCode(ZAP ); I sure except that it is stored excactly as I wrote.Besides, who it would harm if TextField TextArea had a flaglike this ? Nobody forces one to use it.Ari S.- Original Message - From: Johan Compagner [EMAIL PROTECTED]To: wicket-user@lists.sourceforge.netSent: Tuesday, March 07, 2006 11:35 AM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)a trim flag on what?Form component?I don't like that what does it do for non text fields?trimming should belong in a model. For example a ModelWrapper where you put youre real models in.johanOn 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, setTrimValue flag would be great (maybe there should be settings for left/right trim ?). Model might be also a working solution, but somehow I feel that this kind of task belongs to upper layer. Ari S. - Original Message - From: Igor Vaynberg [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, March 06, 2006 7:11 PM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) this should be a flag on the textfield so you can call setTrimValue(boolean) what do others think? if not you can write a model that trims for you on setObject() -Igor On 3/6/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, What might be the simplest way to change behaviour of whole wicket application so that TextField have their input trimmed of blanks at end ? I tried to do this via converters (I have my own converter factory), but it didn't work because Converter.convert doesn't do anything if String is being assigned to String field in model (it uses isAssignableFrom for this check). Ari S. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] AJAX Delay Modal Window
i dont know if this nice feature exists in Wicket AJAX support, maybe its already there, i dont know Its called AJAXDelayModalWindow or Splash Screen. I have seen very clumsy Ajax applications due to poor network situations and then there is no way for the user who does not and should notknow about AJAXto realize something is happening. so is there a feature like dat? maybe that allows Wicket developers to customize a panel that will be displayed when an Expected Ajax based process is going to take some time? OR what tip does one need to leverage the existing API to achieve that thanks --
Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)
but do we need this in core? its a trivial subclass, why not create it in your own codebase?if you guys want it in core you can have it, just asking.-IgorOn 3/7/06, Ryan Sonnek [EMAIL PROTECTED] wrote: +1 for this solution.this seems to be the cleanest implementation tome and puts the responsibility on the developer to *use* the correctcomponent.On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i guess thats true. you can create a subclass TrimmingTextField that overrides getInput() and trims it. -Igor On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: So before the input goes into the required/type conversion and validators we first trim it when that flag is set?. he also could just overwrite getInput() and trim the text when called.johan On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i was also thinking a trim flag on the textfield and textarea only. are you opposed to that also Johan? -Igor On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: You also could use a Converter for this i guess. johan On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, But simple validation is already on wicket level. Of course we could argue on this, but I really think that right place for simple input cleanup is the user interface layer: - Let's say I have a model, which has field called code. - If user types new value for this in a field, I (and even user, I think) excepts that invisible blanks at end of code are removed. It is very easy to accidentally put them there with copy paste, for example. - However, if I code something like this: m.setCode(ZAP ); I sure except that it is stored excactly as I wrote. Besides, who it would harm if TextField TextArea had a flag like this ? Nobody forces one to use it. Ari S. - Original Message - From: Johan Compagner [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, March 07, 2006 11:35 AM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) a trim flag on what? Form component? I don't like that what does it do for non text fields? trimming should belong in a model. For example a ModelWrapper where you put youre real models in. johan On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, setTrimValue flag would be great (maybe there should be settings for left/right trim ?). Model might be also a working solution, but somehow I feel that this kind of task belongs to upper layer. Ari S. - Original Message - From: Igor Vaynberg [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, March 06, 2006 7:11 PM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) this should be a flag on the textfield so you can call setTrimValue(boolean) what do others think? if not you can write a model that trims for you on setObject() -Igor On 3/6/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, What might be the simplest way to change behaviour of whole wicket application so that TextField have their input trimmed of blanks at end ? I tried to do this via converters (I have my own converter factory), but it didn't work because Converter.convert doesn't do anything if String is being assigned to String field in model (it uses isAssignableFrom for this check). Ari S. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AJAX Delay Modal Window
i havent gotten to implementing something like that yet.what i had in a prototype i wrote is a special link that in the onclick would show a gif that had an animation, and register an onsuccess handler with the ajax processor that would hide that gif. so it was like a busy indicator that would show up when the link was clicked and disappear when the page was updated. i dont know when i will have the time to get to it, maybe you can create it and share it.-IgorOn 3/7/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:i dont know if this nice feature exists in Wicket AJAX support, maybe its already there, i dont know Its called AJAXDelayModalWindow or Splash Screen. I have seen very clumsy Ajax applications due to poor network situations and then there is no way for the user who does not and should notknow about AJAXto realize something is happening. so is there a feature like dat? maybe that allows Wicket developers to customize a panel that will be displayed when an Expected Ajax based process is going to take some time? OR what tip does one need to leverage the existing API to achieve that thanks --
Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)
I don't think we need it in core. Maybe as an example somewhere. We have to get our users get used to working with custom components more, as that's one of the key points of Wicket imo :) Eelco On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: but do we need this in core? its a trivial subclass, why not create it in your own codebase? if you guys want it in core you can have it, just asking. -Igor On 3/7/06, Ryan Sonnek [EMAIL PROTECTED] wrote: +1 for this solution. this seems to be the cleanest implementation to me and puts the responsibility on the developer to *use* the correct component. On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i guess thats true. you can create a subclass TrimmingTextField that overrides getInput() and trims it. -Igor On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: So before the input goes into the required/type conversion and validators we first trim it when that flag is set?. he also could just overwrite getInput() and trim the text when called. johan On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i was also thinking a trim flag on the textfield and textarea only. are you opposed to that also Johan? -Igor On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: You also could use a Converter for this i guess. johan On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, But simple validation is already on wicket level. Of course we could argue on this, but I really think that right place for simple input cleanup is the user interface layer: - Let's say I have a model, which has field called code. - If user types new value for this in a field, I (and even user, I think) excepts that invisible blanks at end of code are removed. It is very easy to accidentally put them there with copy paste, for example. - However, if I code something like this: m.setCode(ZAP ); I sure except that it is stored excactly as I wrote. Besides, who it would harm if TextField TextArea had a flag like this ? Nobody forces one to use it. Ari S. - Original Message - From: Johan Compagner [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, March 07, 2006 11:35 AM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) a trim flag on what? Form component? I don't like that what does it do for non text fields? trimming should belong in a model. For example a ModelWrapper where you put youre real models in. johan On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, setTrimValue flag would be great (maybe there should be settings for left/right trim ?). Model might be also a working solution, but somehow I feel that this kind of task belongs to upper layer. Ari S. - Original Message - From: Igor Vaynberg [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, March 06, 2006 7:11 PM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) this should be a flag on the textfield so you can call setTrimValue(boolean) what do others think? if not you can write a model that trims for you on setObject() -Igor On 3/6/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, What might be the simplest way to change behaviour of whole wicket application so that TextField have their input trimmed of blanks at end ? I tried to do this via converters (I have my own converter factory), but it didn't work because Converter.convert doesn't do anything if String is being assigned to String field in model (it uses isAssignableFrom for this check). Ari S. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list
Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)
+1 for this solution. this seems to be the cleanest implementation to me and puts the responsibility on the developer to *use* the correct component. On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i guess thats true. you can create a subclass TrimmingTextField that overrides getInput() and trims it. -Igor On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: So before the input goes into the required/type conversion and validators we first trim it when that flag is set?. he also could just overwrite getInput() and trim the text when called. johan On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i was also thinking a trim flag on the textfield and textarea only. are you opposed to that also Johan? -Igor On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: You also could use a Converter for this i guess. johan On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, But simple validation is already on wicket level. Of course we could argue on this, but I really think that right place for simple input cleanup is the user interface layer: - Let's say I have a model, which has field called code. - If user types new value for this in a field, I (and even user, I think) excepts that invisible blanks at end of code are removed. It is very easy to accidentally put them there with copy paste, for example. - However, if I code something like this: m.setCode(ZAP ); I sure except that it is stored excactly as I wrote. Besides, who it would harm if TextField TextArea had a flag like this ? Nobody forces one to use it. Ari S. - Original Message - From: Johan Compagner [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, March 07, 2006 11:35 AM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) a trim flag on what? Form component? I don't like that what does it do for non text fields? trimming should belong in a model. For example a ModelWrapper where you put youre real models in. johan On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, setTrimValue flag would be great (maybe there should be settings for left/right trim ?). Model might be also a working solution, but somehow I feel that this kind of task belongs to upper layer. Ari S. - Original Message - From: Igor Vaynberg [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, March 06, 2006 7:11 PM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) this should be a flag on the textfield so you can call setTrimValue(boolean) what do others think? if not you can write a model that trims for you on setObject() -Igor On 3/6/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, What might be the simplest way to change behaviour of whole wicket application so that TextField have their input trimmed of blanks at end ? I tried to do this via converters (I have my own converter factory), but it didn't work because Converter.convert doesn't do anything if String is being assigned to String field in model (it uses isAssignableFrom for this check). Ari S. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This
Re: [Wicket-user] AJAX Delay Modal Window
:) On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i havent gotten to implementing something like that yet.what i had in a prototype i wrote is a special link that in the onclick would show a gif that had an animation, and register an onsuccess handler with the ajax processor that would hide that gif. so it was like a busy indicator that would show up when the link was clicked and disappear when the page was updated. i dont know when i will have the time to get to it, maybe you can create it and share it. -Igor On 3/7/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: i dont know if this nice feature exists in Wicket AJAX support, maybe its already there, i dont know Its called AJAXDelayModalWindow or Splash Screen. I have seen very clumsy Ajax applications due to poor network situations and then there is no way for the user who does not and should notknow about AJAXto realize something is happening. so is there a feature like dat? maybe that allows Wicket developers to customize a panel that will be displayed when an Expected Ajax based process is going to take some time? OR what tip does one need to leverage the existing API to achieve that thanks --
[Wicket-user] Re: Re: Get version of Wicket from program
Finally this works for me: URL url = "">url = "" URL("jar", "", url.toString() + "!/META-INF/MANIFEST.MF"); Manifest manifest = new Manifest(url.openStream()); Jan "Martijn Dashorst" [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]...we could check the manifest ourselves in wicket servlet or application.Martijn On 3/7/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Yeah, it wouldn't hurt to have version info available *easy* some way :) EelcoOn 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: heh, easier to let maven filter it into some static variable in some class i think :) -Igor On 3/7/06, jan_bar [EMAIL PROTECTED] wrote: Hi, for me that WicketServlet.class.getResourceAsStream("/META-INF/MANIFEST.MF") returns MANIFEST.MF from the JRE. How can I get Wicket manifest? Is this method safe even if the Wicket.jar is part of WAR/EAR? Jan "Martijn Dashorst" [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ... Basically the way Johan said is the way we retrieve the version of our own application. Our own application tries to retrieve the version number of the war archive, so that is a different usecase. Martijn On 3/7/06, Maurice Marrink [EMAIL PROTECTED] wrote: Codesource should never be null, if you class is in a jar file, codesource points to the jar. else it might point to a directory where your class files can be found (or in subdirs thereof). if none of the above is available it will point to the classfile itself. But perhaps Martijn can tell you how he did it, i know he did it for our project but can't seem to find where. Maurice On 3/7/06, Joni Suominen [EMAIL PROTECTED] wrote: On Tue, 2006-03-07 at 10:27 +0100, Juergen Donnerstag wrote: Do you know how to access that information?How do you get the jar file name a specific class has been loaded from? getClass().getProtectionDomain().getCodeSource().getLocation() gives youthe location where the class was loaded from. I don't know in which situations the CodeSource may be null, though. Joni --- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1
Re: Re: [Wicket-user] Optional components
I haven't understood the use case yet. I can read the request but haven't understood why it is necessary. Why should the markup vary from the java code? Juergen On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: yeah, we could have a method isOptional() {return false;} that can be overridden if really needed. On 3/7/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I wouldn't be against a flag that says the whether component has to be rendered. The default should be true, in which case nothing changes from the way things are now, but if the flag returns false, it would be ignored by the components check. What do the other devs think of this? Eelco On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm aware of IDebugSettings#componentUseCheck. But with this setting I would loose the rendering check globally :(. I'd rather keep the check for most of my components. Sven One thing you can do is turn of the render check. Would that suffice? Eelco On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm in need of 'optional' components, i.e. they exist in Java code but the web designer is allowed to omit them in the HTML template. Currently I'm using a base class (named OptionalPanel) that cooperates with the page: In Page#renderAll() all appropriate children are marked as being rendered, if not already rendered by Wicket. I'm not happy with the implementation though, as it seems to me more like a hack :(. What do you think - could Wicket include a solution for this? A tag interface? Or an #isOptional() on Component? Thanks Sven --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Fwd: [ wicket-Bugs-1442757 ] Ajax errors in a Border
Joseph, you change is wrong. You did add(new MyBorder(border)); // Made MyBorder public // add the clock component Clock clock = new Clock(clock, TimeZone.getTimeZone(America/Los_Angeles)); add(clock); but you must add the clock to the border like Border myBorder = new MyBorder(border; add(myBorder); Clock clock = new Clock(clock, TimeZone.getTimeZone(America/Los_Angeles)); border.add(clock); Juergen -- Forwarded message -- From: SourceForge.net [EMAIL PROTECTED] Date: Mar 7, 2006 5:55 PM Subject: [ wicket-Bugs-1442757 ] Ajax errors in a Border To: [EMAIL PROTECTED] Bugs item #1442757, was opened at 2006-03-03 17:10 Message generated for change (Comment added) made by weazelb0y You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=684975aid=1442757group_id=119783 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: core Group: 1.2 Status: Closed Resolution: Fixed Priority: 5 Submitted By: Joseph Toth (weazelb0y) Assigned to: Juergen Donnerstag (jdonnerstag) Summary: Ajax errors in a Border Initial Comment: If you wrap the Clock example in a Border you get the following error. SEVERE: wicket.ajax.AjaxRequestTarget$EncodingResponse java.lang.ClassCastException Mar 3, 2006 5:00:38 PM wicket.RequestCycle step SEVERE: Unable to determine markup for component: [Component id = clock, page = wicket.examples.ajax.builtin.ClockPage, path = 1:clock.Clock, isVisible = true, isVersioned = true] wicket.WicketRuntimeException: Unable to determine markup for component: [Component id = clock, page = wicket.examples.ajax.builtin.ClockPage, path = 1:clock.Clock, isVisible = true, isVersioned = true] at wicket.Component.initializeMarkupStream(Component.java:2839) at wicket.Component.doRender(Component.java:709) at wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:217) at wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:144) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:47) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:824) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:851) at wicket.RequestCycle.step(RequestCycle.java:931) at wicket.RequestCycle.steps(RequestCycle.java:1005) at wicket.RequestCycle.request(RequestCycle.java:451) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208) at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Mar 3, 2006 5:00:38 PM wicket.util.resource.UrlResourceStream init INFO: cannot convert url: jar:file:/home/jtoth/workspace-test/k/lib/wicket-1.2-SNAPSHOT.jar!/wicket/markup/html/pages/ExceptionErrorPage.html to file (URI is not hierarchical), falling back to the inputstream for polling Mar 3, 2006 5:00:38 PM wicket.markup.MarkupCache loadMarkupAndWatchForChanges INFO: Loading markup from jar:file:/home/jtoth/workspace-test/k/lib/wicket-1.2-SNAPSHOT.jar!/wicket/markup/html/pages/ExceptionErrorPage.html Mar 3, 2006 5:00:38 PM wicket.RequestCycle step SEVERE: wicket.ajax.AjaxRequestTarget$EncodingResponse java.lang.ClassCastException: wicket.ajax.AjaxRequestTarget$EncodingResponse at wicket.protocol.http.WebRequestCycle.getWebResponse(WebRequestCycle.java:99) at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:130) at wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:60) at
Re: Re: [Wicket-user] Optional components
Sven is the man to answer that I guess. I can imagine that he is providing a full component tree and that the designer chooses which part of that tree should actually be used. Quite dangerous, but might be usefull at times. Another thing we might consider is to hide the check itself behind a strategy interface. Eelco On 3/7/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: I haven't understood the use case yet. I can read the request but haven't understood why it is necessary. Why should the markup vary from the java code? Juergen On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: yeah, we could have a method isOptional() {return false;} that can be overridden if really needed. On 3/7/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I wouldn't be against a flag that says the whether component has to be rendered. The default should be true, in which case nothing changes from the way things are now, but if the flag returns false, it would be ignored by the components check. What do the other devs think of this? Eelco On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm aware of IDebugSettings#componentUseCheck. But with this setting I would loose the rendering check globally :(. I'd rather keep the check for most of my components. Sven One thing you can do is turn of the render check. Would that suffice? Eelco On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm in need of 'optional' components, i.e. they exist in Java code but the web designer is allowed to omit them in the HTML template. Currently I'm using a base class (named OptionalPanel) that cooperates with the page: In Page#renderAll() all appropriate children are marked as being rendered, if not already rendered by Wicket. I'm not happy with the implementation though, as it seems to me more like a hack :(. What do you think - could Wicket include a solution for this? A tag interface? Or an #isOptional() on Component? Thanks Sven --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net
Re: Re: [Wicket-user] Optional components
a strategy for a /debug/ check. dont you think this is a little overkill? :)-IgorOn 3/7/06, Eelco Hillenius [EMAIL PROTECTED] wrote:Sven is the man to answer that I guess. I can imagine that he is providing a full component tree and that the designer chooses whichpart of that tree should actually be used. Quite dangerous, but mightbe usefull at times. Another thing we might consider is to hide thecheck itself behind a strategy interface. EelcoOn 3/7/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: I haven't understood the use case yet. I can read the request but haven't understood why it is necessary. Why should the markup vary from the java code? Juergen On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: yeah, we could have a method isOptional() {return false;} that can be overridden if really needed. On 3/7/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I wouldn't be against a flag that says the whether component has to be rendered. The default should be true, in which case nothing changes from the way things are now, but if the flag returns false, it would be ignored by the components check. What do the other devs think of this? Eelco On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:I'm aware of IDebugSettings#componentUseCheck. But with this setting I would loose the rendering check globally :(.I'd rather keep the check for most of my components. Sven One thing you can do is turn of the render check. Would that suffice?EelcoOn 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm in need of 'optional' components, i.e. they exist in Java code but theweb designer is allowed to omit them in the HTML template. Currently I'm using a base class (named OptionalPanel) that cooperates withthe page: In Page#renderAll() all appropriate children are marked as beingrendered, if not already rendered by Wicket. I'm not happy with the implementation though, as it seems to me more like ahack :(. What do you think - could Wicket include a solution for this? A taginterface? Or an #isOptional() on Component? Thanks Sven --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: Re: [Wicket-user] Optional components
I think it is. But if Sven has a good use case we should see whether we can support it. Though you can also use AOP as a breakout I think... Eelco On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: a strategy for a /debug/ check. dont you think this is a little overkill? :) -Igor On 3/7/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Sven is the man to answer that I guess. I can imagine that he is providing a full component tree and that the designer chooses which part of that tree should actually be used. Quite dangerous, but might be usefull at times. Another thing we might consider is to hide the check itself behind a strategy interface. Eelco On 3/7/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: I haven't understood the use case yet. I can read the request but haven't understood why it is necessary. Why should the markup vary from the java code? Juergen On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: yeah, we could have a method isOptional() {return false;} that can be overridden if really needed. On 3/7/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I wouldn't be against a flag that says the whether component has to be rendered. The default should be true, in which case nothing changes from the way things are now, but if the flag returns false, it would be ignored by the components check. What do the other devs think of this? Eelco On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm aware of IDebugSettings#componentUseCheck. But with this setting I would loose the rendering check globally :(. I'd rather keep the check for most of my components. Sven One thing you can do is turn of the render check. Would that suffice? Eelco On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm in need of 'optional' components, i.e. they exist in Java code but the web designer is allowed to omit them in the HTML template. Currently I'm using a base class (named OptionalPanel) that cooperates with the page: In Page#renderAll() all appropriate children are marked as being rendered, if not already rendered by Wicket. I'm not happy with the implementation though, as it seems to me more like a hack :(. What do you think - could Wicket include a solution for this? A tag interface? Or an #isOptional() on Component? Thanks Sven --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Fwd: [ wicket-Bugs-1442757 ] Ajax errors in a Border
Ah, that explains it. In my incorrect case, shouldn't wicket throw an error since the hierarchy is incorrect? On 3/7/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: Joseph, you change is wrong. You did add(new MyBorder(border)); // Made MyBorder public // add the clock component Clock clock = new Clock(clock, TimeZone.getTimeZone(America/Los_Angeles)); add(clock); but you must add the clock to the border like Border myBorder = new MyBorder(border; add(myBorder); Clock clock = new Clock(clock, TimeZone.getTimeZone(America/Los_Angeles)); border.add(clock); Juergen -- Forwarded message -- From: SourceForge.net [EMAIL PROTECTED] Date: Mar 7, 2006 5:55 PM Subject: [ wicket-Bugs-1442757 ] Ajax errors in a Border To: [EMAIL PROTECTED] Bugs item #1442757, was opened at 2006-03-03 17:10 Message generated for change (Comment added) made by weazelb0y You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=684975aid=1442757group_id=119783 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: core Group: 1.2 Status: Closed Resolution: Fixed Priority: 5 Submitted By: Joseph Toth (weazelb0y) Assigned to: Juergen Donnerstag (jdonnerstag) Summary: Ajax errors in a Border Initial Comment: If you wrap the Clock example in a Border you get the following error. SEVERE: wicket.ajax.AjaxRequestTarget$EncodingResponse java.lang.ClassCastException Mar 3, 2006 5:00:38 PM wicket.RequestCycle step SEVERE: Unable to determine markup for component: [Component id = clock, page = wicket.examples.ajax.builtin.ClockPage, path = 1:clock.Clock, isVisible = true, isVersioned = true] wicket.WicketRuntimeException: Unable to determine markup for component: [Component id = clock, page = wicket.examples.ajax.builtin.ClockPage, path = 1:clock.Clock, isVisible = true, isVersioned = true] at wicket.Component.initializeMarkupStream(Component.java:2839) at wicket.Component.doRender(Component.java:709) at wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:217) at wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:144) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:47) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:824) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:851) at wicket.RequestCycle.step(RequestCycle.java:931) at wicket.RequestCycle.steps(RequestCycle.java:1005) at wicket.RequestCycle.request(RequestCycle.java:451) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208) at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Mar 3, 2006 5:00:38 PM wicket.util.resource.UrlResourceStream init INFO: cannot convert url: jar:file:/home/jtoth/workspace-test/k/lib/wicket-1.2-SNAPSHOT.jar!/wicket/markup/html/pages/ExceptionErrorPage.html to file (URI is not hierarchical), falling back to the inputstream for polling Mar 3, 2006 5:00:38 PM wicket.markup.MarkupCache loadMarkupAndWatchForChanges INFO: Loading markup from jar:file:/home/jtoth/workspace-test/k/lib/wicket-1.2-SNAPSHOT.jar!/wicket/markup/html/pages/ExceptionErrorPage.html Mar 3, 2006 5:00:38 PM wicket.RequestCycle step SEVERE: wicket.ajax.AjaxRequestTarget$EncodingResponse java.lang.ClassCastException: wicket.ajax.AjaxRequestTarget$EncodingResponse at
Re: [Wicket-user] Fwd: [ wicket-Bugs-1442757 ] Ajax errors in a Border
Yes, I think it should. Strange that it doesnt. Mind you doing me a favor? You downloaded CVS already, it contains plenty of unit tests. Based of any of these would you please create junit test for me (which fails as we'd expect an exception). Thanks Juergen On 3/7/06, Joe Toth [EMAIL PROTECTED] wrote: Ah, that explains it. In my incorrect case, shouldn't wicket throw an error since the hierarchy is incorrect? On 3/7/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: Joseph, you change is wrong. You did add(new MyBorder(border)); // Made MyBorder public // add the clock component Clock clock = new Clock(clock, TimeZone.getTimeZone(America/Los_Angeles)); add(clock); but you must add the clock to the border like Border myBorder = new MyBorder(border; add(myBorder); Clock clock = new Clock(clock, TimeZone.getTimeZone(America/Los_Angeles)); border.add(clock); Juergen -- Forwarded message -- From: SourceForge.net [EMAIL PROTECTED] Date: Mar 7, 2006 5:55 PM Subject: [ wicket-Bugs-1442757 ] Ajax errors in a Border To: [EMAIL PROTECTED] Bugs item #1442757, was opened at 2006-03-03 17:10 Message generated for change (Comment added) made by weazelb0y You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=684975aid=1442757group_id=119783 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: core Group: 1.2 Status: Closed Resolution: Fixed Priority: 5 Submitted By: Joseph Toth (weazelb0y) Assigned to: Juergen Donnerstag (jdonnerstag) Summary: Ajax errors in a Border Initial Comment: If you wrap the Clock example in a Border you get the following error. SEVERE: wicket.ajax.AjaxRequestTarget$EncodingResponse java.lang.ClassCastException Mar 3, 2006 5:00:38 PM wicket.RequestCycle step SEVERE: Unable to determine markup for component: [Component id = clock, page = wicket.examples.ajax.builtin.ClockPage, path = 1:clock.Clock, isVisible = true, isVersioned = true] wicket.WicketRuntimeException: Unable to determine markup for component: [Component id = clock, page = wicket.examples.ajax.builtin.ClockPage, path = 1:clock.Clock, isVisible = true, isVersioned = true] at wicket.Component.initializeMarkupStream(Component.java:2839) at wicket.Component.doRender(Component.java:709) at wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:217) at wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:144) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:47) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:824) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:851) at wicket.RequestCycle.step(RequestCycle.java:931) at wicket.RequestCycle.steps(RequestCycle.java:1005) at wicket.RequestCycle.request(RequestCycle.java:451) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208) at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Mar 3, 2006 5:00:38 PM wicket.util.resource.UrlResourceStream init INFO: cannot convert url: jar:file:/home/jtoth/workspace-test/k/lib/wicket-1.2-SNAPSHOT.jar!/wicket/markup/html/pages/ExceptionErrorPage.html to file (URI is not hierarchical), falling back to the inputstream for polling Mar 3, 2006 5:00:38 PM
[Wicket-user] Re:unsubscribe
** This email and its attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or em ail immediately and delete it! * - 原邮件 - 从: [EMAIL PROTECTED] 日期: 星期二, 三月 7日, 2006 下午10:36 主题: Wicket-user digest, Vol 1 #1891 - 3 msgs ---BeginMessage--- Send Wicket-user mailing list submissions to wicket-user@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/wicket-user or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of Wicket-user digest... Today's Topics: 1. RE: onSelectionChanged() for Listmultiplechoice (Nino Wael) 2. RE: [wicket 1.1.1]FormTester clicking a specific button (Nino Wael) 3. RE: Rendering DataTable or DataView (or model) as Excel sheet (Frank Silbermann) --__--__-- Message: 1 Subject: RE: [Wicket-user] onSelectionChanged() for Listmultiplechoice Date: Tue, 7 Mar 2006 15:06:49 +0100 From: Nino Wael [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Reply-To: wicket-user@lists.sourceforge.net This is a multi-part message in MIME format. --_=_NextPart_001_01C641F0.60C0A2AD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Sorry my bad, misunderstood clients requirements. ListChoice is dropdown = correct? Has anybody made an implementation that allows one to select if = ListmutipleChoice should be multiple or single? =20 Nino _ =20 From: [EMAIL PROTECTED] = [mailto:[EMAIL PROTECTED] On Behalf Of Johan = Compagner Sent: Monday, March 06, 2006 9:43 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] onSelectionChanged() for Listmultiplechoice =20 We have a on selectionchanged handler in the single selection list its = called ListChoice. For multiply choice we don't have that yet. But would you have that? On every click you want to go to the server? johan=20 On 3/6/06, Nino Wael [EMAIL PROTECTED] wrote: Has anyone implemented this? Preforable in a class that allows single = selection and mutiple selections? -regards Nino =20 --_=_NextPart_001_01C641F0.60C0A2AD Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable html xmlns:v=3Durn:schemas-microsoft-com:vml = xmlns:o=3Durn:schemas-microsoft-com:office:office = xmlns:w=3Durn:schemas-microsoft-com:office:word = xmlns:st1=3Durn:schemas-microsoft-com:office:smarttags = xmlns=3Dhttp://www.w3.org/TR/REC-html40; head META HTTP-EQUIV=3DContent-Type CONTENT=3Dtext/html; = charset=3Dus-ascii meta name=3DGenerator content=3DMicrosoft Word 11 (filtered medium) !--[if !mso] style v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} /style ![endif]--o:SmartTagType namespaceuri=3Durn:schemas-microsoft-com:office:smarttags = name=3DPersonName/ !--[if !mso] style st1\:*{behavior:url(#default#ieooui) } /style ![endif]-- style !-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:Times New Roman;} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:blue; text-decoration:underline;} p {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; font-size:12.0pt; font-family:Times New Roman;} span.EmailStyle19 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @page Section1 {size:595.3pt 841.9pt; margin:3.0cm 2.0cm 3.0cm 2.0cm;} div.Section1 {page:Section1;} -- /style /head body lang=3DDA link=3Dblue vlink=3Dblue div class=3DSection1 p class=3DMsoNormalfont size=3D2 color=3Dnavy face=3DArialspan = lang=3DEN-US style=3D'font-size:10.0pt;font-family:Arial;color:navy'Sorry my bad, = misunderstood clients requirements. ListChoice is dropdown correct? Has anybody made = an implementation that allows one to select if ListmutipleChoice should be multiple or =
Re: [Wicket-user] Wicket Quickstart + OSGi
I'm cc'ing the ops4j list, as they are the ones so far driving Wicket integration with OSGi. Comments below. On Mon, 2006-03-06 at 08:45 -0800, Eelco Hillenius wrote: It would be cool if Wicket came with OSGi support itself. ;-) Indeed, and we'd be happy to have Wicket support it better if we get good suggestions :) If you have any, please submit. Essentially, the OSGi standard provides for an HttpService. In practice, it is (or at least can be) implemented with Jetty. However, the exposed interface is a little different. http://www.knopflerfish.org/releases/1.3.2/javadoc/org/osgi/service/http/HttpService.html In my case, what I'm doing currently is not so different from what is posted here: http://wiki.ops4j.org/dokuwiki/doku.php?id=pax:wicket However, it seems to me that it may not be such a bad idea for Wicket to use the HttpService interface internally instead of directly using the Jetty API, even if Wicket does not use OSGi. It may be a bit more flexible, as the implementation could be changed later, not to mention that OSGi support would be pretty much automatic. But that's not really an important point. The REALLY cool feature that would be like a dream come true for me would be the ability to reuse panels and other components as reusable OSGi bundles. Currently, each application is a separate bundle and must include all the resources, so resources are packages multiple times, one for each of the bundles that use them. In the spirit of once and only once, it would be great to have only one bundle per component, or maybe one resource bundle that contains the components, or whatever. Unfortunately, though, I don't know the internals of either Wicket or OSGi well enough to give you any useful suggestions. I'm only a power user. ;-) Please let me know if I can provide you with any additional info. I'd also be glad to chip into this endeavour if it does go forward. Cheers, Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket Quickstart + OSGi
what would be great to start is for someone to setup a quickstart that actually launches from inside eclipse equinox with the appropriate eclipse project file/mvn pom. once all the setup is done, we (the committers and anyone else who is interested) can start hacking on it because you can provide us with specific usecases that are difficult. but until we have that base to test things out on i think its difficult to go forward. -Igor On 3/7/06, David Leangen [EMAIL PROTECTED] wrote: I'm cc'ing the ops4j list, as they are the ones so far driving Wicketintegration with OSGi.Comments below.On Mon, 2006-03-06 at 08:45 -0800, Eelco Hillenius wrote: It would be cool if Wicket came with OSGi support itself. ;-) Indeed, and we'd be happy to have Wicket support it better if we get good suggestions :) If you have any, please submit.Essentially, the OSGi standard provides for an HttpService. In practice, it is (or at least can be) implemented with Jetty. However, the exposedinterface is a little different. http://www.knopflerfish.org/releases/1.3.2/javadoc/org/osgi/service/http/HttpService.htmlIn my case, what I'm doing currently is not so different from what isposted here: http://wiki.ops4j.org/dokuwiki/doku.php?id=pax:wicketHowever, it seems to me that it may not be such a bad idea for Wicket touse the HttpService interface internally instead of directly using theJetty API, even if Wicket does not use OSGi. It may be a bit more flexible, as the implementation could be changed later, not to mentionthat OSGi support would be pretty much automatic. But that's not reallyan important point.The REALLY cool feature that would be like a dream come true for me would be the ability to reuse panels and other components as reusableOSGi bundles. Currently, each application is a separate bundle and mustinclude all the resources, so resources are packages multiple times, one for each of the bundles that use them. In the spirit of once and onlyonce, it would be great to have only one bundle per component, or maybeone resource bundle that contains the components, or whatever. Unfortunately, though, I don't know the internals of either Wicket orOSGi well enough to give you any useful suggestions. I'm only a poweruser. ;-)Please let me know if I can provide you with any additional info. I'd also be glad to chip into this endeavour if it does go forward.Cheers,Dave---This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Bookmarkable links
I thought I'd bring this up again, just in case... how old is the snapshot you are using? do you have the source attached? if so take a look at sourcecode for MarkupParserFactory, do you see the prepender added in the constructors? I'm using 20060227-0200. Yes, I did notice the PrependContextPathHandler class added to the filters. I finally figured out the reason for the problem I was having concerning prepending the context path to resources. Turns out that you were right: it was related to OSGi. Rather, to be more precise, the difference is that because I am using OSGi, the context path is not set in web.xml, which is, I believe, where Wicket expects to find it. My assumption is therefore that Wicket considered the path to be null, so ended up translating it as /. Now, I did notice something odd, that I wanted to point out just in case. Due to the above, I am now injecting the root context into my Wicket app by explicitly setting the root context. This effectively solves my problems for resources, but apparently creates another for my links. This may be a bug. What now happens is that links are rendered as: /contextRoot/contextRoot/link In other words, the context root is now being prepended twice to the links, ever since I explicitly set the context root in my application. I don't understand why links are treated one way, and resources another. I looked at the Wicket code, but nothing jumped out at me. Cheers, Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Customizing PrependContextPathHandler
Could somebody please tell me how the PrependContextPathHandler is intended to be overridden (if at all)? I would like to prepend my links with a static URL (like http://www.company.com/dir/;), and this looks like the place to do it. Thank you! --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Customizing PrependContextPathHandler
PrependContextPathHandler is fairly simple. I guess I would copy the code, make the modifications you want and register your handler with the application. Please see MarkupParserFactory on how to register the IMarkupFilter with the application. Juergen On 3/8/06, David Leangen [EMAIL PROTECTED] wrote: Could somebody please tell me how the PrependContextPathHandler is intended to be overridden (if at all)? I would like to prepend my links with a static URL (like http://www.company.com/dir/;), and this looks like the place to do it. Thank you! --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Customizing PrependContextPathHandler
It does sound like a weird problem though. Wouldn't the same problem show up for people installing the current version of Wicket in the root webcontext? As a side note: Wicket doesn't read the context path from web.xml, but gets it from the servlet API/ container. I'd expect this behaviour to be the same whether you are running a standalone servlet container or one embedded in OSGi... Eelco On 3/7/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: PrependContextPathHandler is fairly simple. I guess I would copy the code, make the modifications you want and register your handler with the application. Please see MarkupParserFactory on how to register the IMarkupFilter with the application. Juergen On 3/8/06, David Leangen [EMAIL PROTECTED] wrote: Could somebody please tell me how the PrependContextPathHandler is intended to be overridden (if at all)? I would like to prepend my links with a static URL (like http://www.company.com/dir/;), and this looks like the place to do it. Thank you! --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Customizing PrependContextPathHandler
As a side note: Wicket doesn't read the context path from web.xml, but gets it from the servlet API/ container. I'd expect this behaviour to be the same whether you are running a standalone servlet container or one embedded in OSGi... That's weird, because my call to getApplicationSettings().getContextPath () always returns / (which is incorrect) unless I explicitly set it to the correct value. When I do set it, it returns the correct value. That said, my PageLinks are correctly rendered when I DON'T set the context path, and the context path is doubly rendered when I do set it explicitly. Anyway, if nobody else is getting this, it must be my setup, so I'll deal with it. My work around is to not explicitly set the context path (so my Page links are rendered correctly) and I'll override PrependContextPathHandler to fetch my non-Page resources from a public URL. Thanks again for all your patience. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)
I tried to use Converter at first, of course. But it doesn't work, since string-string -conversion bypasses things. (read the end of this e-mail) Ari S. - Original Message - From: Johan Compagner [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, March 07, 2006 3:44 PM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) You also could use a Converter for this i guess. johan On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, But simple validation is already on wicket level. Of course we could argue on this, but I really think that right place for simple input cleanup is the user interface layer: - Let's say I have a model, which has field called code. - If user types new value for this in a field, I (and even user, I think) excepts that invisible blanks at end of code are removed. It is very easy to accidentally put them there with copy paste, for example. - However, if I code something like this: m.setCode(ZAP ); I sure except that it is stored excactly as I wrote. Besides, who it would harm if TextField TextArea had a flag like this ? Nobody forces one to use it. Ari S. - Original Message - From: Johan Compagner [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, March 07, 2006 11:35 AM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) a trim flag on what? Form component? I don't like that what does it do for non text fields? trimming should belong in a model. For example a ModelWrapper where you put youre real models in. johan On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, setTrimValue flag would be great (maybe there should be settings for left/right trim ?). Model might be also a working solution, but somehow I feel that this kind of task belongs to upper layer. Ari S. - Original Message - From: Igor Vaynberg [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, March 06, 2006 7:11 PM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) this should be a flag on the textfield so you can call setTrimValue(boolean) what do others think? if not you can write a model that trims for you on setObject() -Igor On 3/6/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, What might be the simplest way to change behaviour of whole wicket application so that TextField have their input trimmed of blanks at end ? I tried to do this via converters (I have my own converter factory), but it didn't work because Converter.convert doesn't do anything if String is being assigned to String field in model (it uses isAssignableFrom for this check). Ari S. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)
I forgot to mention that: Converter would have been my preferred solution, because with it I could have easily modified trimming behavour of all my user interface components. So if this can be made to work it would be great. Ari S. - Original Message - From: Johan Compagner [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, March 07, 2006 3:44 PM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) You also could use a Converter for this i guess. johan On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, But simple validation is already on wicket level. Of course we could argue on this, but I really think that right place for simple input cleanup is the user interface layer: - Let's say I have a model, which has field called code. - If user types new value for this in a field, I (and even user, I think) excepts that invisible blanks at end of code are removed. It is very easy to accidentally put them there with copy paste, for example. - However, if I code something like this: m.setCode(ZAP ); I sure except that it is stored excactly as I wrote. Besides, who it would harm if TextField TextArea had a flag like this ? Nobody forces one to use it. Ari S. - Original Message - From: Johan Compagner [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, March 07, 2006 11:35 AM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) a trim flag on what? Form component? I don't like that what does it do for non text fields? trimming should belong in a model. For example a ModelWrapper where you put youre real models in. johan On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, setTrimValue flag would be great (maybe there should be settings for left/right trim ?). Model might be also a working solution, but somehow I feel that this kind of task belongs to upper layer. Ari S. - Original Message - From: Igor Vaynberg [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, March 06, 2006 7:11 PM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) this should be a flag on the textfield so you can call setTrimValue(boolean) what do others think? if not you can write a model that trims for you on setObject() -Igor On 3/6/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, What might be the simplest way to change behaviour of whole wicket application so that TextField have their input trimmed of blanks at end ? I tried to do this via converters (I have my own converter factory), but it didn't work because Converter.convert doesn't do anything if String is being assigned to String field in model (it uses isAssignableFrom for this check). Ari S. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket Quickstart + OSGi
i think i speak for most committers when i say:equinox would be easier because it can be launched directly from the eclipse ide which we all use and the project's debug/run settings contain all the necessary bundles and configuration. so to launch from eclipse you just press the debug icon and presto. also if we are messing with having things in different bundles eclipse makes it easier. each bundle can be an eclipse project, and in the launch config you can select which bundles you want included through a simple checkbox gui. so its really easy to launch with different bundle sets. maybe it can be setup the same with felix i dont know. but the less tinkering we have to do with the miscaleneous issues the more time we have for the project itself.if it is easiest for you to get it going with felix lets do that first, and then later see how we can move it over to equinox, or maybe it will work just great with eclipse+felix w/out too much tinkering. -IgorOn 3/7/06, David Leangen [EMAIL PROTECTED] wrote: what would be great to start is for someone to setup a quickstart that actually launches from inside eclipse equinox with the appropriate eclipse project file/mvn pom. once all the setup is done, we (the committers and anyone else who is interested) can start hacking on it because you can provide us with specific usecases that are difficult. but until we have that base to test things out on i think its difficult to go forward.Ok, sounds like a plan.I'll see what I can put together. Using Felix as the OSGi containerwould probably be easiest.Cheers,Dave--- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)
Could someone also take a look at Converter so it could be used ? I mean this line in Converter.java: // Catch all cases where value is already the right type if (c.isAssignableFrom(value.getClass())) { return value; } This is some kind of a optimization, right ? But as a side effect it makes it impossible to do any conversion on textfield input if it is stored to String field in model (quite usual case, I think). Maybe just drop those lines ? Ari S. - Original Message - From: Eelco Hillenius [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, March 07, 2006 7:22 PM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) I don't think we need it in core. Maybe as an example somewhere. We have to get our users get used to working with custom components more, as that's one of the key points of Wicket imo :) Eelco On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: but do we need this in core? its a trivial subclass, why not create it in your own codebase? if you guys want it in core you can have it, just asking. -Igor On 3/7/06, Ryan Sonnek [EMAIL PROTECTED] wrote: +1 for this solution. this seems to be the cleanest implementation to me and puts the responsibility on the developer to *use* the correct component. On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i guess thats true. you can create a subclass TrimmingTextField that overrides getInput() and trims it. -Igor On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: So before the input goes into the required/type conversion and validators we first trim it when that flag is set?. he also could just overwrite getInput() and trim the text when called. johan On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i was also thinking a trim flag on the textfield and textarea only. are you opposed to that also Johan? -Igor On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: You also could use a Converter for this i guess. johan On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, But simple validation is already on wicket level. Of course we could argue on this, but I really think that right place for simple input cleanup is the user interface layer: - Let's say I have a model, which has field called code. - If user types new value for this in a field, I (and even user, I think) excepts that invisible blanks at end of code are removed. It is very easy to accidentally put them there with copy paste, for example. - However, if I code something like this: m.setCode(ZAP ); I sure except that it is stored excactly as I wrote. Besides, who it would harm if TextField TextArea had a flag like this ? Nobody forces one to use it. Ari S. - Original Message - From: Johan Compagner [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, March 07, 2006 11:35 AM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) a trim flag on what? Form component? I don't like that what does it do for non text fields? trimming should belong in a model. For example a ModelWrapper where you put youre real models in. johan On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, setTrimValue flag would be great (maybe there should be settings for left/right trim ?). Model might be also a working solution, but somehow I feel that this kind of task belongs to upper layer. Ari S. - Original Message - From: Igor Vaynberg [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, March 06, 2006 7:11 PM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) this should be a flag on the textfield so you can call setTrimValue(boolean) what do others think? if not you can write a model that trims for you on setObject() -Igor On 3/6/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, What might be the simplest way to change behaviour of whole wicket application so that TextField have their input trimmed of blanks at end ? I tried to do this via converters (I have my own converter factory), but it didn't work because Converter.convert doesn't do anything if String is being assigned to String field in model (it uses isAssignableFrom for this check). Ari S.
Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)
but is it really then a conversion? why run a Integer-Integer conversion or a String-String conversion? then you are really warping the converter into an input postprocessor. why not create a simple subclass of textfield and override getInput() ? -IgorOn 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Could someone also take a look at Converter so it could be used ?I mean this line in Converter.java:// Catch all cases where value is already the right typeif (c.isAssignableFrom(value.getClass())){ return value;}This is some kind of a optimization, right ? But as a side effectit makes it impossible to do any conversion on textfield inputif it is stored to String field in model (quite usual case, I think). Maybe just drop those lines ?Ari S.- Original Message -From: Eelco Hillenius [EMAIL PROTECTED]To: wicket-user@lists.sourceforge.netSent: Tuesday, March 07, 2006 7:22 PMSubject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) I don't think we need it in core. Maybe as an example somewhere. We have to get our users get used to working with custom components more, as that's one of the key points of Wicket imo :) Eelco On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: but do we need this in core? its a trivial subclass, why not create it in your own codebase? if you guys want it in core you can have it, just asking. -Igor On 3/7/06, Ryan Sonnek [EMAIL PROTECTED] wrote: +1 for this solution.this seems to be the cleanest implementation to me and puts the responsibility on the developer to *use* the correct component. On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i guess thats true. you can create a subclass TrimmingTextField that overrides getInput() and trims it. -Igor On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: So before the input goes into the required/type conversion and validators we first trim it when that flag is set?. he also could just overwrite getInput() and trim the text when called. johan On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i was also thinking a trim flag on the textfield and textarea only. are you opposed to that also Johan? -Igor On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote: You also could use a Converter for this i guess.johan On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, But simple validation is already on wicket level. Of course we could argue on this, but I really think that right place for simple input cleanup is the user interface layer: - Let's say I have a model, which has field called code. - If user types new value for this in a field, I (and even user, I think) excepts that invisible blanks at end of code are removed. It is very easy to accidentally put them there with copy paste, for example. - However, if I code something like this: m.setCode(ZAP ); I sure except that it is stored excactly as I wrote. Besides, who it would harm if TextField TextArea had a flag like this ? Nobody forces one to use it. Ari S. - Original Message - From: Johan Compagner [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, March 07, 2006 11:35 AM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning) a trim flag on what? Form component? I don't like that what does it do for non text fields? trimming should belong in a model. For example a ModelWrapper where you put youre real models in. johan On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, setTrimValue flag would be great (maybe there should be settings for left/right trim ?). Model might be also a working solution, but somehow I feel thatthis kind of task belongs to upper layer. Ari S. - Original Message -From: Igor Vaynberg [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Monday, March 06, 2006 7:11 PM Subject: Re: [Wicket-user] TextField and trimming blanks at end (and maybeat beginning) this should be a flag on the textfield so you can callsetTrimValue(boolean) what do others think? if not you can write a model that trims for you on setObject() -Igor On 3/6/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, What might be the simplest way to change behaviour of whole wicket application so that TextField have their input trimmed of blanks at end ? I tried to do this via converters (I have my own converter
Re: [Wicket-user] Wicket Quickstart + OSGi
Though felix is interesting too because we have several people using it and not everyone uses Eclipse (including the committers). Can we have both? :) Eelco On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i think i speak for most committers when i say: equinox would be easier because it can be launched directly from the eclipse ide which we all use and the project's debug/run settings contain all the necessary bundles and configuration. so to launch from eclipse you just press the debug icon and presto. also if we are messing with having things in different bundles eclipse makes it easier. each bundle can be an eclipse project, and in the launch config you can select which bundles you want included through a simple checkbox gui. so its really easy to launch with different bundle sets. maybe it can be setup the same with felix i dont know. but the less tinkering we have to do with the miscaleneous issues the more time we have for the project itself. if it is easiest for you to get it going with felix lets do that first, and then later see how we can move it over to equinox, or maybe it will work just great with eclipse+felix w/out too much tinkering. -Igor On 3/7/06, David Leangen [EMAIL PROTECTED] wrote: what would be great to start is for someone to setup a quickstart that actually launches from inside eclipse equinox with the appropriate eclipse project file/mvn pom. once all the setup is done, we (the committers and anyone else who is interested) can start hacking on it because you can provide us with specific usecases that are difficult. but until we have that base to test things out on i think its difficult to go forward. Ok, sounds like a plan. I'll see what I can put together. Using Felix as the OSGi container would probably be easiest. Cheers, Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket Quickstart + OSGi
i think i speak for most committers when i say: equinox would be easier because it can be launched directly from the eclipse ide which we all use and the project's debug/run settings contain all the necessary bundles and configuration. so to launch from eclipse you just press the debug icon and presto. Ok, makes sense. I'll see what I can do as soon as I can put together some free time. Cheers, Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket Quickstart + OSGi
On Tue, 2006-03-07 at 23:23 -0800, Eelco Hillenius wrote: Though felix is interesting too because we have several people using it and not everyone uses Eclipse (including the committers). Can we have both? :) :-) Actually, I wouldn't mind trying out Equinox. I'm using Oscar now, and am planning to migrate to Felix very soon. That's why I thought it would be easier for me. But, I'm interesting in getting something up and running from within Eclipse, so I'd like to try it out. Cheers, Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket Quickstart + OSGi
sure, others use felix and other ides, but i think in the beginning most contributions would have to come from us because we will be modifying core parts of wicket.as i said, the less time i have to spend on tinkering and setup the more time i have to spend on the actually coding. so yes felix would be nice, but equinox would be nicer.-IgorOn 3/7/06, Eelco Hillenius [EMAIL PROTECTED] wrote:Though felix is interesting too because we have several people using it and not everyone uses Eclipse (including the committers).Can we have both? :)EelcoOn 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i think i speak for most committers when i say: equinox would be easier because it can be launched directly from the eclipse ide which we all use and the project's debug/run settings contain all the necessary bundles and configuration. so to launch from eclipse you just press the debug icon and presto. also if we are messing with having things in different bundles eclipse makes it easier. each bundle can be an eclipse project, and in the launch config you can select which bundles you want included through a simple checkbox gui. so its really easy to launch with different bundle sets. maybe it can be setup the same with felix i dont know. but the less tinkering we have to do with the miscaleneous issues the more time we have for the project itself. if it is easiest for you to get it going with felix lets do that first, and then later see how we can move it over to equinox, or maybe it will work just great with eclipse+felix w/out too much tinkering. -Igor On 3/7/06, David Leangen [EMAIL PROTECTED] wrote: what would be great to start is for someone to setup a quickstart that actually launches from inside eclipse equinox with the appropriate eclipse project file/mvn pom. once all the setup is done, we (the committers and anyone else who is interested) can start hacking on it because you can provide us with specific usecases that are difficult. but until we have that base to test things out on i think its difficult to go forward. Ok, sounds like a plan. I'll see what I can put together. Using Felix as the OSGi container would probably be easiest. Cheers, Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ---This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket Quickstart + OSGi
Agreed. On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: sure, others use felix and other ides, but i think in the beginning most contributions would have to come from us because we will be modifying core parts of wicket. as i said, the less time i have to spend on tinkering and setup the more time i have to spend on the actually coding. so yes felix would be nice, but equinox would be nicer. -Igor On 3/7/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Though felix is interesting too because we have several people using it and not everyone uses Eclipse (including the committers). Can we have both? :) Eelco On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i think i speak for most committers when i say: equinox would be easier because it can be launched directly from the eclipse ide which we all use and the project's debug/run settings contain all the necessary bundles and configuration. so to launch from eclipse you just press the debug icon and presto. also if we are messing with having things in different bundles eclipse makes it easier. each bundle can be an eclipse project, and in the launch config you can select which bundles you want included through a simple checkbox gui. so its really easy to launch with different bundle sets. maybe it can be setup the same with felix i dont know. but the less tinkering we have to do with the miscaleneous issues the more time we have for the project itself. if it is easiest for you to get it going with felix lets do that first, and then later see how we can move it over to equinox, or maybe it will work just great with eclipse+felix w/out too much tinkering. -Igor On 3/7/06, David Leangen [EMAIL PROTECTED] wrote: what would be great to start is for someone to setup a quickstart that actually launches from inside eclipse equinox with the appropriate eclipse project file/mvn pom. once all the setup is done, we (the committers and anyone else who is interested) can start hacking on it because you can provide us with specific usecases that are difficult. but until we have that base to test things out on i think its difficult to go forward. Ok, sounds like a plan. I'll see what I can put together. Using Felix as the OSGi container would probably be easiest. Cheers, Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user