Re: [Wicket-user] Can I set the DropDownChoice to String[] or List instead of String?

2006-11-27 Thread Carfield Yim
On 11/24/06, Frank Bille [EMAIL PROTECTED] wrote: http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/ListChoice.html http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/ListMultipleChoice.html Thanks, and just found out one cool feature of ListMultipleChoice is that if the

Re: [Wicket-user] Who knows what happen to wicket Library ?

2006-11-27 Thread Juergen Donnerstag
It's up again. Sorry. Juergen On 11/27/06, JFC [EMAIL PROTECTED] wrote: http://www.wicket-library.com/ It seems this website is crashed? JFC Hsieh - Take Surveys. Earn Cash. Influence the Future of IT Join

[Wicket-user] ajax causes page to expire when 2 browser tabs are open with bookmarkable pages

2006-11-27 Thread Nili Adoram
Hi all, I have a 'Item editing' page containing a form. When the form is submitted I want to return to the 'Item List' page but with fresh data. In order to do that, after the form is submitted I look for the last instance of the Item List page in the page map, retrieve some of its page

Re: [Wicket-user] [Wicket-develop] [ wicket-Patches-1562130 ] File descriptor leak in URLResourceStream

2006-11-27 Thread Sebastiaan van Erk
[I sent this mail to wicket-develop as well, but I have not seen it there yet, is that list filtered?]. This is a workaround method for the wicket developers to solve the problem with Too many open files that a lot of people have been having. It's a bug in Sun's JarURLConnection (I reported

Re: [Wicket-user] [Wicket-develop] [ wicket-Patches-1562130 ] File descriptor leak in URLResourceStream

2006-11-27 Thread Johan Compagner
So instead of opening a connection inside the jar we just open a connection to the jar only. That would work for the app servers that uses the jar url connection but it won't help for example WebLogic and others. Because they use there own kind of thing.. johan On 11/27/06, Sebastiaan van Erk

[Wicket-user] Too many files open (not related to the other one, my guess)

2006-11-27 Thread Nino Wael
So we have a problem here where something that maybe tomcat or wicket are opening too many handles. The issue are triggered by: * An exception from wicket * Message from wicket that the page has expired * Usage of a specific component that uses AJAX (might be a exception in

Re: [Wicket-user] Unit test fragment

2006-11-27 Thread Carfield Yim
On 11/23/06, Carfield Yim [EMAIL PROTECTED] wrote: Usually I use following code to assert component under a Panel tester.assertComponent(DummyPanelPage.TEST_PANEL_ID+:+componentId, componentClass); However, it don't work with fragment, is that I need to do something special for

Re: [Wicket-user] Question about DataTable

2006-11-27 Thread Carfield Yim
On 11/14/06, Carfield Yim [EMAIL PROTECTED] wrote: Look like it is more easier to show a sortable and pagable table than using DataView. However if I need to show more than property from an object. Like a BookmarkablePageLink , How should I do? Look like I need to extended a custom

[Wicket-user] DropDownChoice question

2006-11-27 Thread Beto Siless
Hi everyone, I'm new to wicket and have a simple question: I want to display a dropdown choice but I don't want to bind the entire list of objects in it. Is there a simple way to bind a key-value pair and get into a property the selected Id and not the selected object (like .Net

Re: [Wicket-user] Databinder 1.0

2006-11-27 Thread Nathan Hamblen
Databinder 1.1 will use sessionFactory.getCurrentSession() within all models. The default behavior will be a ManagedSessionContext bound inside DataRequestCycle, but you can turn that off if you want to use JTA or Spring-managed transactions:

[Wicket-user] Ending up on the page that holds the Panel with the link I just clicked on (how about that for a catchy subject?)

2006-11-27 Thread Johannes Fahrenkrug
Hi, I have a best practice question: I have a page with several panels, each of them having a few Labels. This page shows a summary of the customer infos. Each panel has a Change link that opens a page to change the data. Since the panels can be embedded in different pages, I want to go back

Re: [Wicket-user] Too many open files

2006-11-27 Thread James Carnegie
Hi all, This problem has cropped up a couple of times on this list. Do you think we should add it to the Gotchas section of the wiki? just my 2 cents. :) /j. Flemming Boller wrote: I am glad to help you :-) On 11/27/06, *Nino Wael* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Re: [Wicket-user] Too many open files

2006-11-27 Thread Eelco Hillenius
On 11/27/06, James Carnegie [EMAIL PROTECTED] wrote: Hi all, This problem has cropped up a couple of times on this list. Do you think we should add it to the Gotchas section of the wiki? just my 2 cents. :) /j. We should. Eelco

Re: [Wicket-user] Question about DataTable

2006-11-27 Thread Robert Jacolin
Carfield Yim a écrit : On 11/14/06, Carfield Yim [EMAIL PROTECTED] wrote: [snip] However, if I like to display a link, I will not work if I just add a BookmarkableLink like private static class OrderIdColumn extends AbstractColumn { public OrderIdColumn() {

Re: [Wicket-user] [Wicket-develop] [ wicket-Patches-1562130 ] File descriptor leak in URLResourceStream

2006-11-27 Thread Eelco Hillenius
On 11/27/06, Sebastiaan van Erk [EMAIL PROTECTED] wrote: [I sent this mail to wicket-develop as well, but I have not seen it there yet, is that list filtered?] The old dev list is shut down. You should have received a message stating this. Now that we're incubating Wicket, we moved the dev list

Re: [Wicket-user] Too many open files

2006-11-27 Thread Jean-Baptiste Quenot
* James Carnegie: This problem has cropped up a couple of times on this list. Do you think we should add it to the Gotchas section of the wiki? This issue is a real show stopper. Several users have reported to me with painful setting into production of Wicket apps. IMO we should

Re: [Wicket-user] [Wicket-develop] [ wicket-Patches-1562130 ] File descriptor leak in URLResourceStream

2006-11-27 Thread Eelco Hillenius
We could still apply this common case, and maybe test for the specific ones (web logic, which uses a zip variant, right?) if possible. WDYT Johan? Eelco On 11/27/06, Johan Compagner [EMAIL PROTECTED] wrote: So instead of opening a connection inside the jar we just open a connection to the jar

Re: [Wicket-user] [ wicket-Patches-1562130 ] File descriptor leak in URLResourceStream

2006-11-27 Thread Jean-Baptiste Quenot
* Johan Compagner: So instead of opening a connection inside the jar we just open a connection to the jar only. That would work for the app servers that uses the jar url connection but it won't help for example WebLogic and others. Because they use there own kind of thing.. We need to

Re: [Wicket-user] Too many files open (not related to the other one, my guess)

2006-11-27 Thread Eelco Hillenius
Could you please open an issue for this case? Thanks, Eelco On 11/27/06, Nino Wael [EMAIL PROTECTED] wrote: So we have a problem here where something that maybe tomcat or wicket are opening too many handles. The issue are triggered by: An exception from wicket Message from wicket

Re: [Wicket-user] Databinder 1.0

2006-11-27 Thread Mats Norén
Ah, ok, so by configuring a LSFB in Spring I could use databinder 1.1 in conjunction with all my other spring configured services? This factory bean will by default expose a transaction-aware SessionFactory proxy, letting data access code work with the plain Hibernate SessionFactory and its

Re: [Wicket-user] Too many open files

2006-11-27 Thread Eelco Hillenius
IMO we should disable the shaky code that reloads templates from JARs (shaky not because of Wicket, but because of the JVM), and provide a setting to *optionally* re-activate it for the few users that really need this. I'm also in favor of turning this off by default, but in a slightly

Re: [Wicket-user] Question about StringResourceModel

2006-11-27 Thread Nick Heudecker
I just had a chance to test notice.notice. Here's what I got: java.util.MissingResourceException: Unable to find resource: notice for component: regInProgress On 11/26/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Have you tried notice.notice=My text with ${foo} ? Martijn On 11/26/06,

Re: [Wicket-user] ajax causes page to expire when 2 browser tabs are open with bookmarkable pages

2006-11-27 Thread Eelco Hillenius
You should make sure those two tabs each have their own pagemap. Wicket tries as much as it can to do this automatically, but it helps if you do this manually as well. Eelco On 11/27/06, Nili Adoram [EMAIL PROTECTED] wrote: Hi all, I have a 'Item editing' page containing a form. When the

Re: [Wicket-user] Too many open files

2006-11-27 Thread Martijn Dashorst
On 11/27/06, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: provide a setting to *optionally* re-activate it for the few users that really need this. All users really need this when developing. We already have two modes for operation: development and deployment. It is not that hard to comprehend

Re: [Wicket-user] Too many open files

2006-11-27 Thread Eelco Hillenius
On 11/27/06, Martijn Dashorst [EMAIL PROTECTED] wrote: On 11/27/06, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: provide a setting to *optionally* re-activate it for the few users that really need this. All users really need this when developing. We already have two modes for operation:

Re: [Wicket-user] Wicket-Stuff: ProjectMantainers page updated

2006-11-27 Thread James McLaughlin
Sounds like a good idea. For now, let's put a link on the front page to each projects wiki. I am going to make an effort this week to theme the wiki similar to the current wicket-stuff. I am hoping to put a left panel in that provides navigation to each projects wiki. I'll get a backup/restore

Re: [Wicket-user] Wicket Stuff / Wiki

2006-11-27 Thread James McLaughlin
I would suggest sticking with moin until we know for sure it can't give us what we need. Also, I'm not sure we need to force the entire website on to the wiki. Let's leave that to the individual maintainers. I've added a rewrite rule to hide the /cgi-bin/moin.cgi under /wiki-stuff, per

[Wicket-user] WebResource URL?

2006-11-27 Thread Jonathan Sharp
I have a WebResource which generates a stylesheet (css). How can I get a url for this resource to pass in to the HeaderContributor.forCss() ? Cheers, -js - Take Surveys. Earn Cash. Influence the Future of IT Join

Re: [Wicket-user] wicked wicket words :)

2006-11-27 Thread Jonathan Sharp
When your application is set to production mode wicket tags will get stripped leaving just plain html. -js On 11/27/06, Francisco Treacy [EMAIL PROTECTED] wrote: Hi, I just wanted to know if it's indeed possible (and how) to change wicket control generated words such as :wicket:interface: ,

Re: [Wicket-user] wicked wicket words :)

2006-11-27 Thread Eelco Hillenius
One of the ideas behind IRequestCodingStrategy was to enable this. Unfortunately, the default implementation of this, WebRequestCodingStrategy leaks implementation details with it's public static strings. Surprise, surprise, these fields are used by other classes, this it wouldn't be able to

Re: [Wicket-user] wicked wicket words :)

2006-11-27 Thread Jonathan Sharp
Doh, I miss understood his question, dis-regard my previous reply. -js On 11/27/06, Eelco Hillenius [EMAIL PROTECTED] wrote: One of the ideas behind IRequestCodingStrategy was to enable this. Unfortunately, the default implementation of this, WebRequestCodingStrategy leaks implementation

Re: [Wicket-user] WebResource URL?

2006-11-27 Thread Eelco Hillenius
Just print out directly like this: add(new StringHeaderContributor(link rel=\stylesheet\ type=\text/css\ href=\ + RequestCycle.get().urlFor(myResource) + \ /)); Or something like that. Eelco On 11/27/06, Jonathan Sharp [EMAIL PROTECTED] wrote: I have a WebResource which generates a stylesheet

Re: [Wicket-user] Too many open files

2006-11-27 Thread Martijn Dashorst
On 11/27/06, Eelco Hillenius [EMAIL PROTECTED] wrote: We could add to the quickstart project's pom a filter that alters the mode from development to deployment when a war is built. But why not make deployment the default. Really, that makes so much more sense to me. Because then you have to

Re: [Wicket-user] Too many open files

2006-11-27 Thread Eelco Hillenius
On 11/27/06, Martijn Dashorst [EMAIL PROTECTED] wrote: On 11/27/06, Eelco Hillenius [EMAIL PROTECTED] wrote: We could add to the quickstart project's pom a filter that alters the mode from development to deployment when a war is built. But why not make deployment the default. Really, that

Re: [Wicket-user] Too many open files

2006-11-27 Thread Flemming Boller
I like this idea too. Perhaps Wicket should also output in the logs something like.. developement mode active, remember to switch to production mode when going live... That way I think you guys have covered every chance to help users of wicket. /Flemming On 11/27/06, Eelco Hillenius [EMAIL

Re: [Wicket-user] Too many open files

2006-11-27 Thread Flemming Boller
I would gladly added this information to the wiki pages if you can help me point me out which section would be a good place to add it. /Flemming On 11/27/06, James Carnegie [EMAIL PROTECTED] wrote: Hi all, This problem has cropped up a couple of times on this list. Do you think we should

Re: [Wicket-user] Too many open files

2006-11-27 Thread Eelco Hillenius
Perhaps Wicket should also output in the logs something like.. developement mode active, remember to switch to production mode when going live... We actually already do that. Maybe we could do it more obviously, though otoh you don't want Wicket to output too much either. Eelco

Re: [Wicket-user] Too many open files

2006-11-27 Thread Flemming Boller
Yes, but not the small addition (which might have helped others) Remember to switch to production mode (web.xml) or another way to signal that development mode is not good for production :-) /Flemming On 11/27/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Perhaps Wicket should also output

Re: [Wicket-user] Too many open files

2006-11-27 Thread Eelco Hillenius
On 11/27/06, Flemming Boller [EMAIL PROTECTED] wrote: Yes, but not the small addition (which might have helped others) Remember to switch to production mode (web.xml) or another way to signal that development mode is not good for production :-) Fair enough. Anyone in the game for opening up

Re: [Wicket-user] DropDownChoice question

2006-11-27 Thread Igor Vaynberg
ive ran into this a couple of times myself. there are two options pass in a list of ids as the model and have ichoicerenderer resolve the id to the text string or work with pojos and have the model perform the conversion from object to id and from id to object -igor On 11/27/06, Beto Siless

Re: [Wicket-user] Ending up on the page that holds the Panel with the link I just clicked on (how about that for a catchy subject?)

2006-11-27 Thread Igor Vaynberg
in the address panel changelink.onclick() { setresponsepage(new EditAddrPage(getPage(), addr)); } in edit address page EditAddrPage { EditAddrPage(final Page back, Addr addr) { saveLink.onclick() { savechange(); setresponstpage(back); }}} -igor On 11/27/06, Johannes Fahrenkrug [EMAIL

Re: [Wicket-user] Too many open files

2006-11-27 Thread Johan Compagner
ha! why is everybody so pro deployment mode as default? When i was busy doing the changes in that area (adding the system property and so on) i asked and wanted to have deployment as default but back then i was vetoed.. another thing. We need to check in jar files!! Please remember the osgi

Re: [Wicket-user] [ wicket-Patches-1562130 ] File descriptor leak in URLResourceStream

2006-11-27 Thread Johan Compagner
No we as a framework should think about ALL users not MOST users. And we have quit a lot OSGI users as far as i know. And we should work in that environment as good as we can. So we need to check jars. And besides that we don't know it everytime that it is a jar.. It is just and url.. johan

Re: [Wicket-user] [ wicket-Patches-1562130 ] File descriptor leak in URLResourceStream

2006-11-27 Thread Eelco Hillenius
We need a default that works for most users and via options something that works for all. If we have something that by default works for all, that's all the better. Eelco On 11/27/06, Johan Compagner [EMAIL PROTECTED] wrote: No we as a framework should think about ALL users not MOST users.

Re: [Wicket-user] Question about DataTable

2006-11-27 Thread Carfield Yim
How customize your cell table : You may create a panel which contains only your link : wicket:panel a wicket:id=mylinkspan wicket:id=mytext/span/a /wicket:panel and in the populateItem: MyPanel panel = new MyPanel(componentId); cellItem.add(panel); And in your panel constructor

Re: [Wicket-user] ajax causes page to expire when 2 browser tabsare open with bookmarkable pages

2006-11-27 Thread Nili Adoram
How do I do that? How do I recognize that an instance of that page is currently active within a different browser tab? Should I explore all page maps? Thanks, -- Nili Eelco Hillenius wrote: You should make sure those two tabs each have their own pagemap. Wicket tries as much as it can to do

Re: [Wicket-user] Question about DataTable

2006-11-27 Thread Igor Vaynberg
you add the link to the panel/fragment and then add that into the cell -igor On 11/27/06, Carfield Yim [EMAIL PROTECTED] wrote: How customize your cell table : You may create a panel which contains only your link : wicket:panel a wicket:id=mylinkspan wicket:id=mytext/span/a

Re: [Wicket-user] ajax causes page to expire when 2 browser tabsare open with bookmarkable pages

2006-11-27 Thread Eelco Hillenius
There's a trick in Wicket that tries to match the window name and the page map name. This works in many cases. You'll find the script in class WebPage, and if you use links with popup specs and a proper page map etc, or e.g. open a new tab and paste your current URL in, you'll find it works in

Re: [Wicket-user] ajax causes page to expire when 2 browser tabsare open with bookmarkable pages

2006-11-27 Thread Igor Vaynberg
whatever does not work, can you reproduce it in a quickstart so we can debug it? -igor On 11/27/06, Eelco Hillenius [EMAIL PROTECTED] wrote: There's a trick in Wicket that tries to match the window name and the page map name. This works in many cases. You'll find the script in class WebPage,