Re: [Wicket-user] Re: Remove a Behavior?

2006-01-27 Thread Eelco Hillenius
On second thought... can't you use the detach method of behaviours? This has the same effect as onEndRequest. Eelco On 1/26/06, Jim McLaughlin [EMAIL PROTECTED] wrote: That would be great. I would prefer my custom components know as little as possible about what the behavior needs to do.

Re: [Wicket-user] Question about ListView and read-only lists

2006-01-27 Thread David Leangen
Thanks so much for your help and patience! Cheers, Dave On Fri, 2006-01-27 at 00:13 -0800, Igor Vaynberg wrote: in populateItem(ListItem item) make sure you are adding components to the listitem by calling item.add(...) and not to the listview itself by calling add() -Igor On

Re: [Wicket-user] Linking the IRC channels

2006-01-27 Thread Martijn Dashorst
It would probably be best to claim #wicket for official wicket use. The vote on the 'executive board' was not clear with this regard though.Martijn On 1/27/06, Nick Heudecker [EMAIL PROTECTED] wrote: Can we get #wicket to link to ##wicket? I think it makes sense. -- Living a wicket

Re: [Wicket-user] wicket library abused

2006-01-27 Thread Gwyn Evans
You do need membership! Unfortunately, the bot's are now able to automatically look for the Create Account options to do so - There's some attempt at edit verification in place, which is catching some of it, but it's not getting it all... /Gwyn On 26/01/06, Frank Silbermann [EMAIL PROTECTED]

Re: [Wicket-user] Question about ListView and read-only lists

2006-01-27 Thread David Leangen
Sorry for so many question in one day. :-( Ok, all is well with the ListView. I am looking into a few other things now. First, DataProvider/DataView as you suggested, and that looks very interesting. The problem is--unless I am totally misunderstanding the idea--that it seems that this

Re: [Wicket-user] wicket library abused

2006-01-27 Thread Gwyn Evans
Yes - it was just when I did set it up, I think that you I were the only Wiki users! It's not been left for any reason, just until recently I'd not appreciated that admins got any extra facilities that were actually needed... The main thing I need to know is the Wiki usernames - I've added

Re: [Wicket-user] Question about ListView and read-only lists

2006-01-27 Thread David Leangen
By the way, it seems to me that it would be useful to have access to the index of the list. WDYT? I know I need it, and it looks like I'll have to do some kind of workaround to get it. This is the code from ListView: protected void internalOnBeginRequest() { // Loop through the

Re: [Wicket-user] Question about ListView and read-only lists

2006-01-27 Thread Martijn Dashorst
The dataview doesn't perform a lookup in the database for each element, only if you implement it that way.You givie it an IDataProvider which sports two methods:size()and iterator()The size should give the count of /all/ elements in the resultset, even if you are paging the results. The iterator

[Wicket-user] XsltTransfomerBehavior on ListView

2006-01-27 Thread Raluca Iordache
Hi! I am using the XsltTransfomerBehavior (nice feature!) on Panel and on Border. First I tried to use it on a ListView (in API it is written that it can be added to ANY component) but it did not work, because the String that should contain the markup of the component is not correct. In

Re: [Wicket-user] CRUD and state

2006-01-27 Thread Mats Norén
Sure! public class ShowCircularPage extends BasePage { private Page backPage; public ShowCircularPage(Page backPage, long circularId) { this.backPage = backPage; DetachableCircularModel model = new DetachableCircularModel(circularId, getCircularDao());

Re: [Wicket-user] XsltTransfomerBehavior on ListView

2006-01-27 Thread Juergen Donnerstag
On 1/27/06, Raluca Iordache [EMAIL PROTECTED] wrote: Hi! I am using the XsltTransfomerBehavior (nice feature!) on Panel and on Border. First I tried to use it on a ListView (in API it is written that it can be added to ANY component) but it did not work, because the String that should

Re: [Wicket-user] CRUD and state

2006-01-27 Thread Johan Compagner
If I start over and do:circular (displays the list)edit - circular?path=1 (displays show view)edit -circular?path=2 (displays edit view)save -circular?path=1 (displays the same show view as before and NOT updated) why would it change?You just set a backpage back as the response.Is that page really

Re: [Wicket-user] CRUD and state

2006-01-27 Thread Mats Norén
On 1/27/06, Johan Compagner [EMAIL PROTECTED] wrote: If I start over and do: circular (displays the list) edit - circular?path=1 (displays show view) edit - circular?path=2 (displays edit view) save - circular?path=1 (displays the same show view as before and NOT updated) why

[Wicket-user] Image, path=X and jsessionid

2006-01-27 Thread Gili
Hi, Can we modify the default behavior of the Image component (the relevant code is inside its onComponentTag()) such that it always appends jsessionid onto its SRC url? As previously discussed, currently we general identical URLs across sessions, the browser caches these images, but

Re: [Wicket-user] Image, path=X and jsessionid

2006-01-27 Thread Martijn Dashorst
-1This is very specific to your case, not a general Wicket case. Setting the cache timeout the same as the session timeout seems like a better way to do this.Martijn On 1/27/06, Gili [EMAIL PROTECTED] wrote: Hi,Can we modify the default behavior of the Image component (the relevantcode is inside

Re: [Wicket-user] Image, path=X and jsessionid

2006-01-27 Thread Juergen Donnerstag
jsessionid is handled by the servlet container and IMO we shouldn't add/remove/modify it at all. Besides according to the spec a cookie could also be used for jessionid. Juergen On 1/27/06, Gili [EMAIL PROTECTED] wrote: Hi, Can we modify the default behavior of the Image component (the

Re: [Wicket-user] Image, path=X and jsessionid

2006-01-27 Thread Gili
Adding a cache timeout will not help because the problem is the browser-cache, not the server cache. What I am trying to do is say to the browser: cache this image for the scope of this session, because when the browser is restarted path=X will be reset to 0 and whatever images were cached

Re: [Wicket-user] Image, path=X and jsessionid

2006-01-27 Thread Gili
The problem is that the browser cache operates strictly on the image URL, regardless of any cookie values. If we don't explicitly add JSESSIONID onto its URL, then the browser will mistakenly think two images from different sessions are equal because their URL is equal. Gili Juergen

Re: [Wicket-user] Image, path=X and jsessionid

2006-01-27 Thread Johan Compagner
Use it as a SharedResource so not a component resource.Then don't set http cache headers.But do make the resource cacheable so that it caches on lastmodification date.johan On 1/27/06, Gili [EMAIL PROTECTED] wrote: The problem is that the browser cache operates strictly on the imageURL, regardless

Re: [Wicket-user] CRUD and state

2006-01-27 Thread Johan Compagner
If you want the page to know that the page must version itself because of a model changethen you have to let the page know that (call public final void modelChanging()/ public final void modelChanged())But in youre case the page that has the changed data is the edit page. And the backpage (Where

Re: [Wicket-user] Image, path=X and jsessionid

2006-01-27 Thread Gili
So then let me ask you the question from a different point of view. When *is* it correct to use a component resource? Gili Johan Compagner wrote: Use it as a SharedResource so not a component resource. Then don't set http cache headers. But do make the resource cacheable so that it caches

Re: [Wicket-user] explicitly remove page

2006-01-27 Thread Ingram Chen
I tried getPageMap().removePage(this) and found one critical problem:After I explicitly remove page, then navigate through 4~5 pages I got below exception:27-01-06 22:58:53,563 ERROR wicket.protocol.http.WebRequestCycle - java.lang.NullPointerException at wicket.PageMap.remove(PageMap.java:310)

Re: [Wicket-user] CRUD and state

2006-01-27 Thread Mats Norén
Correct! Thanks a million. I must say that the model abstraction gets me confused from time to time. :) It works as expected now. /Mats --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop!

[Wicket-user] Re: Remove a Behavior?

2006-01-27 Thread Jim McLaughlin
That would work except that I still have the problem of removing the behavior from the list while the list is being iterated. Also, this uses the api in a way that doesn't match up with the wicket documentation, and I know that will cause some grief down the road. thx, jim Eelco Hillenius

Re: [Wicket-user] Question about ListView and read-only lists

2006-01-27 Thread Igor Vaynberg
already there.in populateItem(ListItem item) {you can use item.getIndex();-IgorOn 1/27/06, David Leangen [EMAIL PROTECTED] wrote:By the way, it seems to me that it would be useful to have access to the index of the list. WDYT?I know I need it, and it looks like I'll have to do some kind

Re: [Wicket-user] explicitly remove page

2006-01-27 Thread Igor Vaynberg
ok plugged that.-IgorOn 1/27/06, Ingram Chen [EMAIL PROTECTED] wrote: I tried getPageMap().removePage(this) and found one critical problem:After I explicitly remove page, then navigate through 4~5 pages I got below exception:27-01-06 22:58:53,563 ERROR wicket.protocol.http.WebRequestCycle -

Re: [Wicket-user] Image, path=X and jsessionid

2006-01-27 Thread Eelco Hillenius
-1. We're not building a servlet container here. Eelco On 1/27/06, Gili [EMAIL PROTECTED] wrote: Hi, Can we modify the default behavior of the Image component (the relevant code is inside its onComponentTag()) such that it always appends jsessionid onto its SRC url? As

[Wicket-user] IntelliJ 5.0.2: error opening wicket-quickstart.ipr

2006-01-27 Thread Todd Patrick
When I follow the steps on: http://wicket.sourceforge.net/wicket-quickstart/intellij.html I receive the following error message when I open the project (wicket-quickstart.ipr): Cannot load module: File path\wicket-kickstart.iml does not exist Would you like to remove the module from the

[Wicket-user] DatePicker wicket 1.1 IE 6.0 with HTTPS synchronization / blocking issues

2006-01-27 Thread Robert McClay
Users of our https site using IE 6 have reported that pages that use a DatePicker seem to stall on downloading the images for the datepicker. I've verified and it happens when the images aren't in the browser cache -- sometimes it takes forever to download the images. Haven't noticed the same

Re: [Wicket-user] DatePicker wicket 1.1 IE 6.0 with HTTPS synchronization / blocking issues

2006-01-27 Thread Martijn Dashorst
Can you see the requests stalling in the server logs?As for 1.2: the resource requests will not pass a blocking section. This is hard to achieve in Wicket 1.1, which is one of the reasons we (mainly Eelco) replaced the internal request processing in Wicket 1.2MartijnOn 1/27/06, Robert McClay

[Wicket-user] Re: DatePicker wicket 1.1 IE 6.0 with HTTPS synchronization / blocking issues

2006-01-27 Thread Robert McClay
When the session times out I can get a boat load of these exceptions (1 per stalled thread I assume), which leads me to believe the thread stalls when the resource is requested, if they're all requested simultaneously. I'm going to hunt for a quick way to adjust DatePicker to get its resources

[Wicket-user] mountBookmarkablePage and resource paths

2006-01-27 Thread Gili
Hi, Any idea why mountBookmarkablePage does not affect resource paths? That is, in the old implementation putClassAlias() would affect both such that I could refer to: /WicketServlet/resources/myPageAlias/myImage.jpg now I have to refer to:

Re: [Wicket-user] explicitly remove page

2006-01-27 Thread Ingram Chen
yeh, it works now !Thanks !On 1/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote: ok plugged that.-Igor On 1/27/06, Ingram Chen [EMAIL PROTECTED] wrote: I tried getPageMap().removePage(this) and found one critical problem:After I explicitly remove page, then navigate through 4~5 pages I got below