Re: [Wicket-user] Page getting redirected when accessing from mail reply

2007-07-11 Thread Martijn Dashorst
On 7/11/07, David Leangen [EMAIL PROTECTED] wrote: Excellent! Thank you, this did indeed solve the problem and seems like a reasonable temporary workaround. I really must try to fix my setup so I can step through the wicket code during debugging... :-( mvn eclipse:eclipse

Re: [Wicket-user] What is AutoLinkResolver and why this error

2007-07-11 Thread Ayodeji Aladejebi
ok the error goes away when i remove the img.../ and i am using wicket 1.2.4 On 7/11/07, Juergen Donnerstag [EMAIL PROTECTED] wrote: From the javadoc /** * The AutoLinkResolver is responsible to handle automatic link resolution. Tags * are marked autolink by the MarkupParser for all tags

Re: [Wicket-user] Non-English Boolean Conversion

2007-07-11 Thread Eelco Hillenius
Thanks for the contribution Logi. Could you please open a JIRA issue for it? Thanks, Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your

Re: [Wicket-user] Editable grid

2007-07-11 Thread Maurice Marrink
Actually we have gone completely Ajax for the grid, so i have no idea what problems you are going to run into when using forms, especially in combination with a moving editor. our grid was based on a listview using wicket 1.2.6 but 1.3 might have better alternatives. Maurice On 7/11/07, Eelco

Re: [Wicket-user] Page getting redirected when accessing from mail reply

2007-07-11 Thread David Leangen
I really must try to fix my setup so I can step through the wicket code during debugging... :-( mvn eclipse:eclipse -DdownloadSources=true or mvn idea:idea -DdownloadSources=true And start your application in the debugger. Thanks for the tip, Martijn, I wish it were that simple.

Re: [Wicket-user] Page getting redirected when accessing from mail reply

2007-07-11 Thread Eelco Hillenius
The only drawback with my particular setup is that I need to actually create a bundle for the source and place it also in the target platform. That's too much work for a lazy person like me. ;-) I bet you could have done that in the time you wrote these replies! *cracks the whip* :) Eelco

Re: [Wicket-user] How to include *.htc files in css files?

2007-07-11 Thread rc.china
I have exactly the same problem and I am using wicket 1.2.6. I am certain that the htc file has been copied. If I include gif/css files, it is OK. And by look in http message, it is as follows: GET /mytest/nested/resources/wicket.examples.nested.MenuPanel/menupanel.css GET

Re: [Wicket-user] Page getting redirected when accessing from mail reply

2007-07-11 Thread David Leangen
I bet you could have done that in the time you wrote these replies! *cracks the whip* :) He he... you're probably right. And all the time I've spent asking other stupid questions, too. ;-) Eelco, how have your experiments with OSGi been coming along? Will that be included in your book?

Re: [Wicket-user] AuthorizeAction and !Role

2007-07-11 Thread Eelco Hillenius
Is there an elegant way to do the opposite of what the AuthorizeAction annotation was intended for? I have an unregister function that any user _except_ the admin user should be able to use. If the admin unregisters, I'm f*. Essentially, I'd really like to be able to do something like

Re: [Wicket-user] StringResourceModel feature or bug??

2007-07-11 Thread Murat Yücel
Hi Johan It is the same key and it is being called with the same component instance everytime. There are no locale added to the key. /Murat 2007/7/10, Johan Compagner [EMAIL PROTECTED]: is the string key 3 time exactly the same? or is the locale added to it and then stripped down? On

Re: [Wicket-user] How to include *.htc files in css files?

2007-07-11 Thread rc.china
I have do some further tests. This is the content of my original CSS file: body {background: #EEE; color: #000; behavior: url(csshover.htc);} /* WinIE behavior call */ ul.menu1 li.submenu li.submenu {background: url(submenu.gif) 95% 50% no-repeat;} 1)If I change like this (Just for test):

Re: [Wicket-user] How to include *.htc files in css files?

2007-07-11 Thread Matej Knopp
It's probably a bug (or intended behavior) if IE. Wicket can't really control the http request the browser makes to get the .htc file. -Matej On 7/11/07, rc.china [EMAIL PROTECTED] wrote: I have do some further tests. This is the content of my original CSS file: body {background: #EEE; color:

Re: [Wicket-user] Are Wicket HTML Pages OO?

2007-07-11 Thread Martijn Dashorst
On 7/11/07, Ali Sakebi [EMAIL PROTECTED] wrote: Thanks for all responses and sorry if my question was irrelevant or wrong. Not wrong nor irrelevant, but we do get a lot of questions that are easily answered by searching the mailinglists, or just clicking on our site. There is a lot of bad

Re: [Wicket-user] StringResourceModel feature or bug??

2007-07-11 Thread Johan Compagner
add an issue to jira with a quickstart case On 7/11/07, Murat Yücel [EMAIL PROTECTED] wrote: Hi Johan It is the same key and it is being called with the same component instance everytime. There are no locale added to the key. /Murat 2007/7/10, Johan Compagner [EMAIL PROTECTED]: is the

[Wicket-user] ListViews dynamic Forms

2007-07-11 Thread Jan Kriesten
Hi! After I had some chit-chat ;-) with Almaw today already on IRC I still am looking for a solution fot the following problem: Consider the following Form: form input name=description type=text value= / (required=true) --- ListView: n times input name=images type=text value=xy/ input

[Wicket-user] Using a component more than once on a wicket page

2007-07-11 Thread Chris Colman
I have a wicket ID that displays a name. My wicket class adds a label component with the appropriate name. I use that name in the markup in the body and it works fine. I now wish to, additionally, use that name in the title tag so that the name appears in the caption of the browser but... wicket

Re: [Wicket-user] ListViews dynamic Forms

2007-07-11 Thread Jan Kriesten
Hi, update on this topic: I've found a workaround to update the ListViews childrens Models by walking the Components below ListView with an IVisitor and do a updateModel() on all FormComponents. The question remains, if there's a way to do this without updating the Model? Best regards, ---

Re: [Wicket-user] Using a component more than once on a wicket page

2007-07-11 Thread Martijn Dashorst
On 7/11/07, Chris Colman [EMAIL PROTECTED] wrote: Does this mean that I can't use the same component value more than once within a single page/component? Yes, or you need to resort to RepeatingView, ListView and its descendants. Is there a way to turn off reporting of this as an error? Is it

Re: [Wicket-user] Using a component more than once on a wicket page

2007-07-11 Thread Erik van Oosten
Note also that it /is/ possible to use a Model instance from more then 1 component. Erik. Martijn Dashorst wrote: On 7/11/07, Chris Colman [EMAIL PROTECTED] wrote: Does this mean that I can't use the same component value more than once within a single page/component? Yes, or you

Re: [Wicket-user] StringResourceModel feature or bug??

2007-07-11 Thread Murat Yücel
Hi Johan I have created a jira but i have closed it again. https://issues.apache.org/jira/browse/WICKET-742 The IStringResourceLoader was only called 3 times if debug was enabled. No problem when running in a deployment environment. This method was triggering the 3 calls

Re: [Wicket-user] WicketTester and Spring

2007-07-11 Thread Evan Chooly
yeah, I saw that which is great. The problem is still getting the environment set up so that spring, et. al, can find everything it needs to initialize the application context. I figured it out yesterday and am writing up a blog entry on it now. On 7/10/07, Ingram Chen [EMAIL PROTECTED] wrote:

Re: [Wicket-user] WicketTester and Spring

2007-07-11 Thread Evan Chooly
Here it is warts and all: http://www.antwerkz.com/wp/?p=1026 On 7/11/07, Evan Chooly [EMAIL PROTECTED] wrote: yeah, I saw that which is great. The problem is still getting the environment set up so that spring, et. al, can find everything it needs to initialize the application context. I

Re: [Wicket-user] What is AutoLinkResolver and why this error

2007-07-11 Thread Juergen Donnerstag
could please check it against 1.3 trunk. ALR has been changed in 1.3 quite a lot. It seems that you are using the very same Panel instance more than once. What happens if you remove img and add e.g. a Label. Do you get a similar exception? Juergen On 7/11/07, Ayodeji Aladejebi [EMAIL PROTECTED]

Re: [Wicket-user] ListViews dynamic Forms

2007-07-11 Thread Igor Vaynberg
if you enable listview.reuseitems(true) your values should stick. make addbutton.defaultformprocessing(false). the idea here is that reuseitems will cause the comeponentpath of textfields not change - which will cause their name attribute not to change also - which will cause them to pick up the

Re: [Wicket-user] StringResourceModel feature or bug??

2007-07-11 Thread Johan Compagner
why is that triggering 3 times? what is the difference? the log statement? On 7/11/07, Murat Yücel [EMAIL PROTECTED] wrote: Hi Johan I have created a jira but i have closed it again. https://issues.apache.org/jira/browse/WICKET-742 The IStringResourceLoader was only called 3 times if debug

Re: [Wicket-user] StringResourceModel feature or bug??

2007-07-11 Thread Eelco Hillenius
On 7/11/07, Johan Compagner [EMAIL PROTECTED] wrote: why is that triggering 3 times? what is the difference? the log statement? public String toString() { return getString(); } - This

Re: [Wicket-user] Using a component more than once on a wicket page

2007-07-11 Thread Eelco Hillenius
Is there a way to turn off reporting of this as an error? Is it really an error to bind to a component more than once in a markup unit? Yes it is an error to bind a component *instance* more than once. Though you can turn that off (and is turned off in deployment mode):

Re: [Wicket-user] Refreshing hibernate models

2007-07-11 Thread David Bernard
IMHO, because data are not managed (calculated/updated) by your application, you could : * refresh Service from RDBMS when reports are submitted, but in this case you forgot unsaved modification into Service (maybe you could do a partial refresh if you extract computed property into an

[Wicket-user] How to read HTTP headers in WebPage

2007-07-11 Thread Goran Novak
Hi. How can I read http header from a subclass of WebPage? In javax.servlet.http.HttpServlet I could get http header from javax.servlet.http.HttpServletRequest.getHeader(headerName) wicket.Request doesn't have similar method. And I can't find another way to do it. -- Goran -- View this

Re: [Wicket-user] How to read HTTP headers in WebPage

2007-07-11 Thread Igor Vaynberg
((webrequest)getrequest()).gethttpservletrequest() -igor On 7/11/07, Goran Novak [EMAIL PROTECTED] wrote: Hi. How can I read http header from a subclass of WebPage? In javax.servlet.http.HttpServlet I could get http header from javax.servlet.http.HttpServletRequest.getHeader(headerName)

Re: [Wicket-user] How to get HTML source code from a wicket page

2007-07-11 Thread Tremelune
Is there another example somewhere besides the one that extends WebApplication? I'd like to encapsulate all of this into a simple object that took a Page and some params, and I imagine WicketTester is the way to get that done. I just can't seem to get rendered HTML into the StringResponse...

Re: [Wicket-user] Using a component more than once on a wicket page

2007-07-11 Thread Johan Compagner
i dont think you can, because we really depend on one to onw mapping currently, but i gues juergen knows more on that (for example markup index) On 7/11/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Is there a way to turn off reporting of this as an error? Is it really an error to bind to a

Re: [Wicket-user] Using a component more than once on a wicket page

2007-07-11 Thread Eelco Hillenius
On 7/11/07, Johan Compagner [EMAIL PROTECTED] wrote: i dont think you can, because we really depend on one to onw mapping currently, but i gues juergen knows more on that (for example markup index) Yes you can. Index:

Re: [Wicket-user] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-07-11 Thread Jean-Baptiste Quenot
* Watter: 1) I realized that ContextLoader which is the reported as the classloader when I do a Session.class.getClassloader() right before the error occurs is actually a Spring class. For some reason I was thinking that it was a standard Java class loader. I am using

Re: [Wicket-user] How to get HTML source code from a wicket page

2007-07-11 Thread Tremelune
I can get it to fire from within my app's main WebApplication, but how can I get at the render String of HTML from outside of WebApplication. ie, in a Page or Panel that doesn't have access to the mounted URIRequestTargetUrlCodingStrategy? This is where I thought WicketTester would come into

Re: [Wicket-user] How to get HTML source code from a wicket page

2007-07-11 Thread Jean-Baptiste Quenot
* Tremelune: I'm having a great deal of trouble getting this to fire. How does one accomplish this in the middle of, say, some run-of-the-mill Wicket page? If I do something like this, I get an error that /pages has already been mounted (which it has, during my app's initialization). I also

Re: [Wicket-user] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-07-11 Thread Watter
Jean-Baptiste Quenot-3 wrote: * Watter: 1) I realized that ContextLoader which is the reported as the classloader when I do a Session.class.getClassloader() right before the error occurs is actually a Spring class. For some reason I was thinking that it was a standard

Re: [Wicket-user] Refreshing hibernate models

2007-07-11 Thread Tauren Mills
David, Thanks for the feedback. At first I thought the formula hibernate feature was very handy, but now that I'm seeing the drawbacks to it, I think I'm going to dump it. I think I'll add the actual jdbc logic to getCountReports, getAvgQuestion1, etc. In the long run, that should be easier to

Re: [Wicket-user] How to get HTML source code from a wicket page

2007-07-11 Thread Tremelune
There we go. I've pretty much got this, thanks to everyone. Here's a helper class I drummed up--It's not fully tested, doesn't handle both HTML text, and doesn't take parameters yet. I'll try and post a new thread (maybe even on the wiki?) when I get those details hashed out. For now, this is a

Re: [Wicket-user] How to get HTML source code from a wicket page

2007-07-11 Thread Eelco Hillenius
On 7/11/07, Tremelune [EMAIL PROTECTED] wrote: There we go. I've pretty much got this, thanks to everyone. Here's a helper class I drummed up--It's not fully tested, doesn't handle both HTML text, and doesn't take parameters yet. I'll try and post a new thread (maybe even on the wiki?) when

[Wicket-user] JPA Annotation Validation

2007-07-11 Thread Craig Lenzen
Unless I was dreaming this the other night I swear someone announced that they created a wicket stuff project that added form validation based on JPA annotations of a domain model? Was I dreaming, if not I can't seem to find the project in wicket stuff. Thanks Craig -- View this message in

[Wicket-user] Dead? addComponentInstantiationListener(new SpringComponentInjector(this));

2007-07-11 Thread Tremelune
I recently went from 1.3-snapshot to 1.3-beta2 and the following line of code now won't compile: addComponentInstantiationListener(new SpringComponentInjector(this)); I'm sure there is a simple solution to this, but I've sniffed around this forum and looked for clues in the 1.3-beta2 source

[Wicket-user] stateless wicket?

2007-07-11 Thread James Law
Hi, On the features page of the wicket webpage, there is some indication that a stateless, client side wicket will appear at some point. i guess eliminating the session usage that typically occurs with wicket. Could someone elaborate on how this will be accoomplished, and if this is a 1.3

Re: [Wicket-user] Dead? addComponentInstantiationListener(new SpringComponentInjector(this));

2007-07-11 Thread Nick Heudecker
This might be caused by a missing wicket-ioc JAR in your project. I think sometime between before beta2, a new IOC project was introduced. If you're compiling from SVN, this should be another project directory. On 7/11/07, Tremelune [EMAIL PROTECTED] wrote: I recently went from

Re: [Wicket-user] Dead? addComponentInstantiationListener(new SpringComponentInjector(this));

2007-07-11 Thread Tremelune
Bingo, thanks. I'll add that to my mavenization...That threw me for a loop! This might be caused by a missing wicket-ioc JAR in your project. I think sometime between before beta2, a new IOC project was introduced. If you're compiling from SVN, this should be another project directory. --

Re: [Wicket-user] Dead? addComponentInstantiationListener(new SpringComponentInjector(this));

2007-07-11 Thread Igor Vaynberg
On 7/11/07, Tremelune [EMAIL PROTECTED] wrote: Bingo, thanks. I'll add that to my mavenization...That threw me for a loop! you dont need to reference it directly in your pom, its transient from wicket-spring - just need to rebuild your project with mvn eclipse:eclipse -igor This might

Re: [Wicket-user] JPA Annotation Validation

2007-07-11 Thread Craig Lenzen
Has anyone made heavy use of this project yet? Any issues or concerns? -Craig igor.vaynberg wrote: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-hibernate-behavior/ -igor On 7/11/07, Craig Lenzen [EMAIL PROTECTED] wrote: Unless I was dreaming this the

Re: [Wicket-user] StringResourceModel feature or bug??

2007-07-11 Thread Murat Yücel
Yes that is correct Eelco. The toString method is called getString, which will fetch the i18n message again. I havent looked at why the magic number is three instead of two, but it doesnt matter as long as the feature isnt a bug :) 2007/7/11, Eelco Hillenius [EMAIL PROTECTED]: On 7/11/07,

[Wicket-user] Using a component more than once on a wicket page

2007-07-11 Thread Chris Colman
On 7/11/07, Johan Compagner [EMAIL PROTECTED] wrote: i dont think you can, because we really depend on one to onw mapping currently, but i gues juergen knows more on that (for example markup index) Yes you can. body span wicket:id=mainNavigation/ span wicket:id=message

Re: [Wicket-user] StringResourceModel feature or bug??

2007-07-11 Thread Eelco Hillenius
Yes that is correct Eelco. The toString method is called getString, which will fetch the i18n message again. I havent looked at why the magic number is three instead of two, but it doesnt matter as long as the feature isnt a bug :) My reply was actually to point out to Johan what caused

Re: [Wicket-user] Pages vs. Panels

2007-07-11 Thread Erik Dreyer
Interesting topic. After reading a few posts talking about the merits of replacing panels and whatnot, I decided to try to develop an application that has one page and essentially ALL requests will be AJAX based. I thought it would be interesting to try to create a webapp that functions as

Re: [Wicket-user] JPA Annotation Validation

2007-07-11 Thread Ryan Sonnek
I may be biased, but i'm using these annotations on a production/live site and they've made my life easier. no more hibernate exceptions bubbling up to the screen because a field was left blank. On 7/11/07, Craig Lenzen [EMAIL PROTECTED] wrote: Has anyone made heavy use of this project yet?

Re: [Wicket-user] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-07-11 Thread Watter
Jean-Baptiste Quenot-3 wrote: * Watter: 1) I realized that ContextLoader which is the reported as the classloader when I do a Session.class.getClassloader() right before the error occurs is actually a Spring class. For some reason I was thinking that it was a standard

Re: [Wicket-user] JPA Annotation Validation

2007-07-11 Thread Craig Lenzen
Fair enough Ryan, but one question for you. Does this only work with the @Length and @NotNull annotations or does it also work with the attributes of the @Column annotation (nullable and length)? Thanks Craig Ryan Sonnek-2 wrote: I may be biased, but i'm using these annotations on a

Re: [Wicket-user] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-07-11 Thread Watter
Watter wrote: Jean-Baptiste Quenot-3 wrote: * Watter: 1) I realized that ContextLoader which is the reported as the classloader when I do a Session.class.getClassloader() right before the error occurs is actually a Spring class. For some reason I was thinking that it

Re: [Wicket-user] Wicket with JExcel

2007-07-11 Thread Edi
Hello Ayodeji Aladejebi and all, Please help me the regarding below feature. thanking you Regards edi Edi wrote: Thank you for all valuable solutions, Consider I have one xls file with lot of data. How can I paginate that xls file and Search the particular column data in the document

Re: [Wicket-user] ugrade from wicket 1.2.4 to 1.3.0

2007-07-11 Thread kenixwong
ok... i will take a look for it.. thanks . Have a nice day ;) Juergen Donnerstag wrote: wicket wiki is good source for information: http://cwiki.apache.org/WICKET/migrate-13.html Juergen On 7/11/07, kenixwong [EMAIL PROTECTED] wrote: hi, any impact if i ugrade from wicket 1.2.4

Re: [Wicket-user] Navigator customization

2007-07-11 Thread nazeem
I have the same case where I wanted to customize the navigation toolbar to add few action menu items as well. So I have written my own version of AjaxFallbackCustomDataTable by just copying the AjaxFallbackDefaultDataTable code in to my package and renaming. There I have commented all addition of