Re: [Wicket-user] ajax replace using a fragment

2006-11-27 Thread Igor Vaynberg

should work, create a quickstart

-igor


On 11/27/06, karthik Guru <[EMAIL PROTECTED]> wrote:


Hi All,

I'm using a fragment and added it to AjaxTarget from within a Panel in the
Page.
if  is placed in the Panel and Panel is specified as the
markup provider , then i get an exception saying that the fragment is not
found in the specified markup provider( i.e the Panel).

But if i move the  to the enclosing page and specify the
Page as the markup provider, it works!
Any reason why Panels cannot act as the Markup provider for fragments?

The fragment is accessed only from within the Panel and hence I wanted to
keep it there instead of moving it to the enclosing Page.

thanks!
karthik-
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] ajax replace using a fragment

2006-11-27 Thread karthik Guru

Hi All,

I'm using a fragment and added it to AjaxTarget from within a Panel in the
Page.
if  is placed in the Panel and Panel is specified as the
markup provider , then i get an exception saying that the fragment is not
found in the specified markup provider( i.e the Panel).

But if i move the  to the enclosing page and specify the
Page as the markup provider, it works!
Any reason why Panels cannot act as the Markup provider for fragments?

The fragment is accessed only from within the Panel and hence I wanted to
keep it there instead of moving it to the enclosing Page.

thanks!
karthik-
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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, 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 many cases.

Eelco


On 11/27/06, Nili Adoram <[EMAIL PROTECTED]> wrote:
> 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 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 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 parameters (sorting, filtering, paging params) ,
> >> and call setResponsePage with this page class and page parameters.
This
> >> constructs a bookmarkable page with fresh data.
> >> In addition this page contains an AjaxEventBehavior that refreshes
some
> >> of the page components once a minute.
> >> This all works great if only one browser tab is open.
> >>
> >> However, if two browser tabs are open simultaneously things go wrong:
> >> I open the Item List page in both tabs.
> >> I open the Item page in one tab and submit the form.
> >> I open the Item page in the second tab and submit the form.
> >> When ajax tries to refresh the first tab it fails to find the page
> >> (inside DefaultRequestTargetResolverStrategyresolveRenderedPage())
and
> >> 'page expired' page is displayed.
> >>
> >> getCallBackScript of AjaxEventBehavior is called with false for
> >> recordPageVersion and false for onlyTargetActivePage.
> >> If I modify onlyTargetActivePage to true one of the tabs stops
> >> refreshing after the aforementioned scenario.
> >>
> >> Any ideas how to avoid this page expired problem ?
> >>
> >> Thanks,
> >> Nili
> >>
> >>
-
> >> Take Surveys. Earn Cash. Influence the Future of IT
> >> Join SourceForge.net's Techsay panel and you'll get the chance to
share your
> >> opinions on IT & business topics through brief surveys - and earn
cash
> >>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >>
> >
> >
-
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
share your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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 many cases.

Eelco


On 11/27/06, Nili Adoram <[EMAIL PROTECTED]> wrote:
> 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 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 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 parameters (sorting, filtering, paging params) ,
> >> and call setResponsePage with this page class and page parameters. This
> >> constructs a bookmarkable page with fresh data.
> >> In addition this page contains an AjaxEventBehavior that refreshes some
> >> of the page components once a minute.
> >> This all works great if only one browser tab is open.
> >>
> >> However, if two browser tabs are open simultaneously things go wrong:
> >> I open the Item List page in both tabs.
> >> I open the Item page in one tab and submit the form.
> >> I open the Item page in the second tab and submit the form.
> >> When ajax tries to refresh the first tab it fails to find the page
> >> (inside DefaultRequestTargetResolverStrategyresolveRenderedPage()) and
> >> 'page expired' page is displayed.
> >>
> >> getCallBackScript of AjaxEventBehavior is called with false for
> >> recordPageVersion and false for onlyTargetActivePage.
> >> If I modify onlyTargetActivePage to true one of the tabs stops
> >> refreshing after the aforementioned scenario.
> >>
> >> Any ideas how to avoid this page expired problem ?
> >>
> >> Thanks,
> >> Nili
> >>
> >> -
> >> Take Surveys. Earn Cash. Influence the Future of IT
> >> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> >> your
> >> opinions on IT & business topics through brief surveys - and earn cash
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >>
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 :
> 
> 
> 
>
> and in the populateItem:
> MyPanel panel = new MyPanel(componentId);
> cellItem.add(panel);
>
> And in your panel constructor
> MyPanel()
> {
> add(new BookmarkablePageLink(componentId, Edit.class, new
> PageParameters(map)));
> add(new Label("mytext", "click here"));
> }
>
> If you wich to add several types of content in your cell (a link, an
> image, a blob, a form, ...), or if you wich to select a row and make
> actions, it may more interresting to use a ListView.
>

ListView look is more generic so I still feel DataTable is nice for my
case, and that work great. Only I need to add the label to the link
instead of panel

add(new BookmarkablePageLink("href", pageClass, new
PageParameters(parameters)).add(new Label("label", label)));

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 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 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 parameters (sorting, filtering, paging params) ,
>> and call setResponsePage with this page class and page parameters. This
>> constructs a bookmarkable page with fresh data.
>> In addition this page contains an AjaxEventBehavior that refreshes some
>> of the page components once a minute.
>> This all works great if only one browser tab is open.
>>
>> However, if two browser tabs are open simultaneously things go wrong:
>> I open the Item List page in both tabs.
>> I open the Item page in one tab and submit the form.
>> I open the Item page in the second tab and submit the form.
>> When ajax tries to refresh the first tab it fails to find the page
>> (inside DefaultRequestTargetResolverStrategyresolveRenderedPage()) and
>> 'page expired' page is displayed.
>>
>> getCallBackScript of AjaxEventBehavior is called with false for
>> recordPageVersion and false for onlyTargetActivePage.
>> If I modify onlyTargetActivePage to true one of the tabs stops
>> refreshing after the aforementioned scenario.
>>
>> Any ideas how to avoid this page expired problem ?
>>
>> Thanks,
>> Nili
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>> 
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>   

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 :
> 
> 
> 
>
> and in the populateItem:
> MyPanel panel = new MyPanel(componentId);
> cellItem.add(panel);
>
> And in your panel constructor
> MyPanel()
> {
> add(new BookmarkablePageLink(componentId, Edit.class, new
> PageParameters(map)));
> add(new Label("mytext", "click here"));
> }
>
> If you wich to add several types of content in your cell (a link, an
> image, a blob, a form, ...), or if you wich to select a row and make
> actions, it may more interresting to use a ListView.
>

ListView look is more generic so I still feel DataTable is nice for my
case, and that work great. Only I need to add the label to the link
instead of panel

add(new BookmarkablePageLink("href", pageClass, new
PageParameters(parameters)).add(new Label("label", label)));

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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.
> 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
>
>
>
>
> On 11/27/06, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:
> > * 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 address the needs  of *most* users.  And for most users
> > it doesn't make any sense to reload templates from JAR files.
> > --
> >  Jean-Baptiste Quenot
> > aka  John Banana   Qwerty
> > http://caraldi.com/jbq/
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Too many open files

2006-11-27 Thread Eelco Hillenius
On 11/27/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> 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..

I've always been pro deployment as a default.

Eelco

> another thing. We need to check in jar files!! Please remember the osgi
> folks!!!
> But what sebastiaan in another thread proposed seems to work, i will
> implement that the coming days

Good to hear.

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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



On 11/27/06, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:


* 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 address the needs  of *most* users.  And for most users
it doesn't make any sense to reload templates from JAR files.
--
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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
folks!!!
But what sebastiaan in another thread proposed seems to work, i will
implement that the coming days

johan


On 11/27/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


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 makes so much
> > more sense to me.
>
> Because then you have to restart everytime you have altered a HTML,
> css, js, or properties file.

No, because when you're developing, you turn on the development
version, e.g. by providing a system arg when starting up or putting in
that web-xml parameter.

> Another thing is that you loose any
> debugging tools you have installed.

They should be used for development only. If you want to run your site
in development mode, that's fine, but let's just not make it a
default.

> Deployment is only needed when you
> package into a war. The quickstart is mainly used for development, and
> therefore it is very reasonable to make the default development, until
> you package your application.

The quickstart thing: that's fine, I don't care what you do with that.
I'm talking about the fact that Wicket itself by default runs in
development mode, which is just a bad idea (like I've argued before).

> Making this seamless in the building procedure is something that we
> can do, but hampering development just because of plain stupidity is
> not something I would like to enforce. If you enforce deployment as a
> default people will go around it, ask questions on the list and look
> at other frameworks because we don't have an easy development mode.

Well, now people have problems when they actually deploy! I rather
have them look a bit harder when they develop.

> So the proposal is: set development mode in the web.xml for
> quickstart. If *no* mode is set, then the default will be deployment.

Yes. If nothing is set explicitly, Wicket defaults to deployment mode.
And I don't care about what is done with the quickstart project. That
is probably used for just some testing and learning, so defaulting to
development sounds fine to me.

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Too many open files

2006-11-27 Thread Jan Mikkelsen
I have also been burnt by this and I would also prefer production mode 
to be default.
Jan

Eelco Hillenius wrote:
>> 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
> different way: I'd like Wicket to operate in production mode unless
> explicitly configured to operate in development mode.
>
> Eelco
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 PROTECTED]> wrote:


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 to the page I came from after submitting the page on
which I can change the data.
For example: I'm on the summary page, see a typo in the address, click
the "change" link within the address panel. A page that allows me to
change the address opens, I change the address, click "Save" and want to
end up on the summary page on which I clicked "Change" again. Of course
the contents of the address panel should show the updated address then.

What's the best way to do this?

Thank you!

- Johannes

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 <[EMAIL PROTECTED]> wrote:


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 dropdown)?

The solution that I'm using is implement an object called Option that
it's basically a key - value pair.

//properties
Option selectedUser

//DropDownChoice binding
List users = new ArrayList()
for(User user in UserDao.getUsers())
users.add(new Option(user.getId(), user.getName()));

DropDownChoice choice=new DropDownChoice("ddc", new PropertyModel(this,
"selectedUser"), users);

Is there a simpler way to do this? maybe I don't understand the whole
idea of wicket very well, but I really don't want to put big objects in
the model to display only a key - value pair.

Thanks in advance
Beto

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 an issue?

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 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]
> > wrote:
>
> I take the part about error pages back! Seems to be working. What a
> glorious day J
>
>
>
>

>
> *From:* [EMAIL PROTECTED]
>  [mailto:
> [EMAIL PROTECTED]
> ] *On Behalf Of
> *Nino Wael
> *Sent:* 27. november 2006 14:58
>
> *To:* wicket-user@lists.sourceforge.net
> 
> *Subject:* Re: [Wicket-user] Too many open files
>
>
>
> Yeah, its in DEPLOYMENT mode… NO it wasn't L We changed it on the
> way because, our "NICE" error pages aren't shown in DEPLOYMENT mode.
>
>
>
> THANKS, this fixes our trouble with too many files open(at least on
> my local machine, haven't tested it on the server yet)!
>
>
>
> Althought now, our Error pages aren't show. However that's not for
> this thread.
>
>
>
>
>
> THANKS AGAIN.
>
>
>
> Regards Nino
>
>
>
>

>
> *From:* [EMAIL PROTECTED]
>  [mailto:
> [EMAIL PROTECTED]
> ] *On Behalf Of
> *Flemming Boller
> *Sent:* 27. november 2006 14:12
> * To:* wicket-user@lists.sourceforge.net
> 
> *Subject: * Re: [Wicket-user] Too many open files
>
>
>
> Hi Nino
>
>
>
> I also have this "feature" with open files, but found in a earlier
> post that it could be fixed with putting Wicket into PRODUCTION
> configuration. Either in web.xml or in the code.
>
>
>
> Have you tried this?
>
>
>
>
>
> /Flemming
>
>
>
> On 11/27/06, *Nino Wael* < [EMAIL PROTECTED]
> > wrote:
>
> Ok, that helps a bit. But where in server.xml should I write the
lines?
>
>
>
> Should I add a specific context for my wicket application eg like:
>
>
>
>  antiResourceLocking="1" antiJarLocking="1" />
>
>
>
> And if I take it from my web.xml as stated below:
>
>
>
>  antiResourceLocking="1" antiJarLocking="1" />
>
>
>
>
>
> Or are there a general switch?
>
>
>
>
>
> Regards Nino
>
>
>
>

>
> *From:* [EMAIL PROTECTED]
>  [mailto:
> [EMAIL PROTECTED]
> ] *On Behalf Of
> *Johan Compagner
> *Sent:* 27. november 2006 12:24
> * To:* wicket-user@lists.sourceforge.net
> 
> * Subject:* Re: [Wicket-user] Too many open files
>
>
>
> that is the web.xml
> you should configure it in the server.xml (see the url i sent in
> that information about the server.xml configuration)
>
> On 11/27/06, *Nino Wael *< [EMAIL PROTECTED]
> > wrote:
>
> Hi Johan or others able to answer.
>
>
>
> How do I encorporate this, into the web.xml, where should I place it
> in the below xml? Sorry for such a novice question..
>
>
>
>
>
> 
>
> 
>   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3
//EN"
>
>   "http://java.sun.com/dtd/web-app_2_3.dtd"; >
>
>
>
> < web-app >
>
>
>
>< context-param >
>
>   < param-name > local.sas.foundation.services
> 
>
>   < param-value >
> /conf/sas_metadata_source_omr_testsrv.properties 
>
>
>
>
>
>
>
>< listener >
>
>   < listener-class >
>
com.sas.jobindsats.businesslogic.biplatform.FoundationServicesContextListener
> 
>
>
>
>
>
>
>
>< listener >
>
>   < listener-class >
> com.sas.jobindsats.businesslogic.JobindsatsBruger 
>
>
>
>
>
>< servlet >
>
>   < servlet-name > VersionInfo 
>
>   < servlet-class >
> wicket.protocol.http.WicketServlet 
>
>   < init-param >
>
>  < param-name > applicationClassName
> 
>
>  < param-value >
> com.sas.jobindsats.ui.version.info.VersionInfoApplication  param-value >
>
>   
>
>   < load-

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 PROTECTED]> wrote:


> 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
different way: I'd like Wicket to operate in production mode unless
explicitly configured to operate in development mode.

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 makes so much
> > more sense to me.
>
> Because then you have to restart everytime you have altered a HTML,
> css, js, or properties file.

No, because when you're developing, you turn on the development
version, e.g. by providing a system arg when starting up or putting in
that web-xml parameter.

> Another thing is that you loose any
> debugging tools you have installed.

They should be used for development only. If you want to run your site
in development mode, that's fine, but let's just not make it a
default.

> Deployment is only needed when you
> package into a war. The quickstart is mainly used for development, and
> therefore it is very reasonable to make the default development, until
> you package your application.

The quickstart thing: that's fine, I don't care what you do with that.
I'm talking about the fact that Wicket itself by default runs in
development mode, which is just a bad idea (like I've argued before).

> Making this seamless in the building procedure is something that we
> can do, but hampering development just because of plain stupidity is
> not something I would like to enforce. If you enforce deployment as a
> default people will go around it, ask questions on the list and look
> at other frameworks because we don't have an easy development mode.

Well, now people have problems when they actually deploy! I rather
have them look a bit harder when they develop.

> So the proposal is: set development mode in the web.xml for
> quickstart. If *no* mode is set, then the default will be deployment.

Yes. If nothing is set explicitly, Wicket defaults to deployment mode.
And I don't care about what is done with the quickstart project. That
is probably used for just some testing and learning, so defaulting to
development sounds fine to me.

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 restart everytime you have altered a HTML,
css, js, or properties file. Another thing is that you loose any
debugging tools you have installed. Deployment is only needed when you
package into a war. The quickstart is mainly used for development, and
therefore it is very reasonable to make the default development, until
you package your application.

Making this seamless in the building procedure is something that we
can do, but hampering development just because of plain stupidity is
not something I would like to enforce. If you enforce deployment as a
default people will go around it, ask questions on the list and look
at other frameworks because we don't have an easy development mode.

So the proposal is: set development mode in the web.xml for
quickstart. If *no* mode is set, then the default will be deployment.
When the application is packaged for war, using maven (or ant?) then
we will filter the property and make it deployment.

This way we cover the basics: development from the IDE is still
development, and building the package (WAR) will choose deployment as
a default.

Martijn

-- 
http://www.thebeststuffintheworld.com/vote_for/wicket";>Vote
for http://www.thebeststuffintheworld.com/stuff/wicket";>Wicket
at the http://www.thebeststuffintheworld.com/";>Best Stuff in
the World!

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WebResource URL?

2006-11-27 Thread Eelco Hillenius
Just print out directly like this:

add(new StringHeaderContributor("));

Or something like that.

Eelco

On 11/27/06, Jonathan Sharp <[EMAIL PROTECTED]> wrote:
> 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 SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 details with it's public
static strings. Surprise, surprise, these fields are used by other
classes, this it wouldn't be able to replace this properly.

Please open up a feature request to fix this. It's quite sloppy as it
is now, so for that reason alone it would be good to fix.

Eelco


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: , and all other *wicket* stuff all over the place
(I've
> already stripped out wicket html tags and attributes).
>
> Eg. to put :application:stuff: instead. Because I shall not want to
expose
> to the end-user I'm using Wicket. Although I'm aware it's a good
propaganda
> strategy :)
> I know it was discussed a couple of days ago, but I didn't get precisely
how
> to change it. What should I override?
>
> Thanks again,
> Cheers,
> Francisco
>
>  
>  Découvrez une nouvelle façon d'obtenir des réponses à toutes vos
questions
> ! Profitez des connaissances, des opinions et des expériences des
> internautes sur Yahoo! Questions/Réponses.
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 replace this properly.

Please open up a feature request to fix this. It's quite sloppy as it
is now, so for that reason alone it would be good to fix.

Eelco


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: , and all other *wicket* stuff all over the place (I've
> already stripped out wicket html tags and attributes).
>
> Eg. to put :application:stuff: instead. Because I shall not want to expose
> to the end-user I'm using Wicket. Although I'm aware it's a good propaganda
> strategy :)
> I know it was discussed a couple of days ago, but I didn't get precisely how
> to change it. What should I override?
>
> Thanks again,
> Cheers,
> Francisco
>
>  
>  Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions
> ! Profitez des connaissances, des opinions et des expériences des
> internautes sur Yahoo! Questions/Réponses.
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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: , and all other *wicket* stuff all over the place (I've
already stripped out wicket html tags and attributes).

Eg. to put :application:stuff: instead. Because I shall not want to expose
to the end-user I'm using Wicket. Although I'm aware it's a good propaganda
strategy :)
I know it was discussed a couple of days ago, but I didn't get precisely
how to change it. What should I override?

Thanks again,
Cheers,
Francisco

--
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions
! Profitez des connaissances, des opinions et des expériences des
internautes sur Yahoo! 
Questions/Réponses
.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[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 SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 Upayavira's suggestion. Let me know if you see any problems.

thx,
jim

On 11/24/06, Korbinian Bachl <[EMAIL PROTECTED]> wrote:


As far as i understood, this is just for organisation, not for the Website
itself.


> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Im Auftrag
> von Upayavira
> Gesendet: Freitag, 24. November 2006 15:34
> An: wicket-user@lists.sourceforge.net
> Betreff: Re: [Wicket-user] Wicket Stuff / Wiki
>
> Korbinian Bachl wrote:
> > Hi,
> >
> > some days ago, Eelco and others had the idea to bring the
> wicket stuff
> > page to a wiki, so updates wold be easier. Hwoever, what
> wiki system
> > should be used? - I personally are quite new to thse and
> have only got
> > a small experience with JOOMLA and Typo3 (4.0) so far.
> >
> > Anyone who knows some? Any good/bad reputations about these?
>
> Erm, hasn't someone already installeg Moin on SourceForge.
>
> A little bit of URL guessing took me to:
>
> http://wicket-stuff.sourceforge.net/cgi-bin/moin.cgi
>
> (Don't know if SF allow rewrite rules in .htaccess files.
> Would be nice to have one or two in front of this...)
>
> Regards, Upayavira
>
> --
> ---
> Take Surveys. Earn Cash. Influence the Future of IT Join
> SourceForge.net's Techsay panel and you'll get the chance to
> share your opinions on IT & business topics through brief
> surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge
&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 going
too. For orphaned projects, I think we should send another mail to the list
regarding projects w/o maintainers. Once we have determined projects are
orphaned but still viable, let's ask for volunteers to take them over.

jim

On 11/26/06, Filippo Diotalevi <[EMAIL PROTECTED]> wrote:


On 11/22/06, James McLaughlin <[EMAIL PROTECTED]> wrote:
> Great. I'm thinking maybe we need a second ProjectStatus page, since I
> believe the amount of status info is going to grow. This would have info
> such as Notes, Current Versions,  Maven  support, and possibly a TODO
list
> for each project. Or each project can have a project status page, but I
> would still like one summary page to see it all at a glance. What d you
> think?

Hi James (sorry for the late answer.. I was abroad & not connected to
the internet) I agree with you: there are a lot of data to collect
and, overall, a lot of things to do.
I'm in favour of creating a single page for each project with all the
details we need *and* a todolist for each project. Each of this page
eventually might become the "official" page of the project, if we
decide to use the wiki as website.

I see also that there are a lot of projects whose mantainer is
unknown... I think we should clearly decide what to do with them,
because abandoned projects will rapidly become unusable with 1.3 and
2.0

--
  Filippo

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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: development and deployment. It is not that hard to
> comprehend is it?

No, no-one actually needs reloading from the jar. Reloading as it
works for most people is done via another connection. And we can test
on what kind of connection it is.

> If you have to explicitly set it, what prevents you from deploying it
> to production anyway?
>
> 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.

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 is it?

If you have to explicitly set it, what prevents you from deploying it
to production anyway?

We could add to the quickstart project's pom a filter that alters the
mode from development to deployment when a war is built.

Martijn

-- 
http://www.thebeststuffintheworld.com/vote_for/wicket";>Vote
for http://www.thebeststuffintheworld.com/stuff/wicket";>Wicket
at the http://www.thebeststuffintheworld.com/";>Best Stuff in
the World!

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 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 parameters (sorting, filtering, paging params) ,
> and call setResponsePage with this page class and page parameters. This
> constructs a bookmarkable page with fresh data.
> In addition this page contains an AjaxEventBehavior that refreshes some
> of the page components once a minute.
> This all works great if only one browser tab is open.
>
> However, if two browser tabs are open simultaneously things go wrong:
> I open the Item List page in both tabs.
> I open the Item page in one tab and submit the form.
> I open the Item page in the second tab and submit the form.
> When ajax tries to refresh the first tab it fails to find the page
> (inside DefaultRequestTargetResolverStrategyresolveRenderedPage()) and
> 'page expired' page is displayed.
>
> getCallBackScript of AjaxEventBehavior is called with false for
> recordPageVersion and false for onlyTargetActivePage.
> If I modify onlyTargetActivePage to true one of the tabs stops
> refreshing after the aforementioned scenario.
>
> Any ideas how to avoid this page expired problem ?
>
> Thanks,
> Nili
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> I'm using Wicket 1.2.3, but tried it with 1.2.2 as well.  The output I
get
> is exactly what's in the properties file.  No parameter replacement is
> performed.
>
>
> On 11/26/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> > To the best of my knowledge this should work, as it is an exact copy
> > from the javadoc. Can you be more specific to what version of Wicket
> > you're using, and what you /do/ get on the browser window?
> >
> > Martijn
> >
> > On 11/26/06, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> > > I'm trying to get the following working and I'm not having much
luck:
> > >
> > >
> > > IModel model = new LoadableDetachableModel() {
> > > protected Object load() {
> > > return session.getRegistrationToken ().getPerson();
> > > }
> > > };
> > >
> > > add(new  Label("notice", new StringResourceModel("notice",
> > > this, model)));
> > >
> > >
> > > notice=You currently have a registration in progress for
> > >  ${firstName} ${lastName}.
> > > Any thoughts?  Thanks for your time.
> > >
> > > -Nick
> > >
> > >
> > >
>
-
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > > opinions on IT & business topics through brief surveys - and earn
cash
> > >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> >
> >
> > --
> >  href="http://www.thebeststuffintheworld.com/vote_for/wicket
> ">Vote
> > for  href="http://www.thebeststuffintheworld.com/stuff/wicket";>Wicket
> > at the http://www.thebeststuffintheworld.com/";>Best Stuff in
> > the World!
> >
> >
>
-
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>


--
http://www.thebeststuffintheworld.com/vote_for/wicket";>Vote
for http://www.thebeststuffintheworld.com/stuff/wicket
">Wicket
at the http://www.thebeststuffintheworld.com/";>Best Stuff in
the World!

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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
different way: I'd like Wicket to operate in production mode unless
explicitly configured to operate in development mode.

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 getCurrentSession() method, while
still being able to participate in current Spring-managed
transactions: with any transaction management strategy, either local
or JTA / EJB CMT, and any transaction synchronization mechanism,
either Spring or JTA. Furthermore, getCurrentSession() will also
seamlessly work with a request-scoped Session managed by
OpenSessionInViewFilter/Interceptor"

Thanks for the pointer!

/M


On 11/27/06, Nathan Hamblen <[EMAIL PROTECTED]> wrote:
> 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:
>
> http://www.springframework.org/docs/api/org/springframework/orm/hibernate3/LocalSessionFactoryBean.html
>
> Nathan
>
> Mats Norén wrote:
> > Congrats! :)
> > Btw, how difficult would it be to reuse the different models from
> > within a Spring based solution?
> > The project I'm working on uses Spring for different kinds of services
> > (JBPM, Email etc) and there is a need to keep things in the same place
> > so to speak but I really like the different Hibernate models you've
> > created
> >
> > /Mats
> >
> > On 11/22/06, Nathan Hamblen <[EMAIL PROTECTED]> wrote:
> >> It's solid, as far as we can tell. :)
> >>
> >> There's some new documentation on the site that I hope is helpful to
> >> Wicket beginners, regardless of their plans for persisting data. It's an
> >> overview of IModel, why it's important, and how it helps with persistence:
> >> http://databinder.net/manual/
> >>
> >> Nathan
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 that the page has expired
> Usage of a specific component that uses AJAX (might be a exception in there
> somewhere)
>
>
>
> Our application has around 950 open handles on startup and that goes a bit
> up when visiting misc pages. But when any of the above happens handles are
> increased until the server dies.
>
>
>
> From what I can see now I can replicate some of the problem on my local
> machine which are windows xp, server are win 2003. On local machine handles
> goes up but at some point are cut down(and goes up again), this does not
> happen on server it just continues to rise until death occursL
>
>
>
> Does anybody have something that can help?
>
>
>
> Regards Nino
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 address the needs  of *most* users.  And for most users
it doesn't make any sense to reload templates from JAR files.
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 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 <[EMAIL PROTECTED]> wrote:
> > [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 it). The workaround should solve the problems even in
> > development mode.
> >
> > Hi,
> >
> > When you open an URL connection to an entry in a jar, you get a
> > JarURLConnection. The JarURLConnection in the package
> > sun.net.www.protocol.jar has an internal field
> >
> > /* the url connection for the JAR file */
> > private URLConnection jarFileURLConnection;
> >
> > which you cannot access in any way. When you ask for the last modified
> > time, the JarURLConnection will ask for the header field
> > "last-modified", which in turn will ask the jarFileURLConnection for the
> > that header field, which in turn will cause the initializeHeaders() call
> > in FileURLConnection, which in turn calls connect() and opens the file
> > (even though for the last modified header that is quite unnecessary).
> > The way to close the file is to call getInputStream().close() on the
> > jarFileURLConnection field, but unfortunately you can't since it is
> hidden.
> >
> > There is a very simple workaround though. In code:
> >
> > URL url = new URL("jar:file:jarfile.jar!Entry.class");
> > URLConnection connection = url.openConnection();
> > if (connection instanceof JarURLConnection) {
> > JarURLConnection jarUrlConnection =
> (JarURLConnection)
> > connection;
> > URL jarFileUrl = jarUrlConnection.getJarFileURL();
> > URLConnection jarFileConnection =
> > jarFileUrl.openConnection();
> > long lastModified =
> jarFileConnection.getLastModified();
> > jarFileConnection.getInputStream
> ().close();
> > System.out.println("last modified=" + new
> > Date(lastModified));
> > }
> >
> > [note: you could probably do something like a while (connection
> > instanceof JarURLConnection) for jars in jars, but I haven't tested that
> > yet].
> >
> > In other words, to get the last modified time of a jar file *entry*, we
> > just get the last modified time of the jar *file*.  (Note that in the
> > current Sun implementation that's what it does anyway). This makes sense
> > since you cannot change a part of the jar file without changing the jar
> > file itself. Now we do have the input stream to actual jar file, and we
> > can close it.
> >
> > I'm sure there's an even better implementations that does not open the
> > jar file in the first place, but this should be fine for most purposes
> > and at least it kills the file descriptor leak.
> >
> > Regards,
> > Sebastiaan
> >
> > Johan Compagner wrote:
> > > As i said before. we can apply this patch, but there is one problem
> > > and that is OSGI wicket solutions.. That do jar updates by just
> > > dropping them in a running system
> > > How are we going to test that?
> > >
> > > Can you test something else? ( i also will try to test that)
> > >
> > > comment out this code:
> > >
> > > try
> > > {
> > > connection.getInputStream().close();
> > > }
> > > catch (Exception ex)
> > > {
> > > // ignore
> > > }
> > >
> > > because if i look in the debugger it seems to me that lastmodified
> > > doesn't really open a stream.. (but i can be wrong i have to test this
> > > further)
> > > But if that is not the case then we do here to much! we open the
> > > inputstream and the resources while we are trying to close it..
> > >
> > > johan
> > >
> > >
> > > On 9/20/06, * SourceForge.net* <[EMAIL PROTECTED]
> > > > wrote:
> > >
> > > Patches item #1562130, was opened at 2006-09-20 13:57
> > > Message generated for change (Tracker Item Submitted) made by Item
> > > Submitter
> > > You can respond by visiting:
> > >
> https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1562130&group_id=119783
> > > <
> https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1562130&group_id=119783>
> > >
> > > Please note that this message will contain a full copy of the
> > > comment thread,
> > > i

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  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.
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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
over to wicket-dev at incubator.apache.org (send an email to
wicket-dev-subscribe at incubator.apache.org to subscribe). The user
list will follow in due time.

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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() {
>super(new Model("OrderId"), "OrderId");
>}
>
>private static final long serialVersionUID = 1L;
>
>public void populateItem(Item cellItem, String componentId,
>IModel model) {
>final Order order = (Order) model.getObject(cellItem);
>final Map map = new HashMap();
>map.put("orderid", order.getOrderId().toString());
>cellItem.add(new BookmarkablePageLink(componentId,
>Edit.class, new PageParameters(map)));
>}
>}
>
>It just display a text call "[cell]". How can I solve this?
>  
>
How customize your cell table :
You may create a panel which contains only your link :




and in the populateItem:
MyPanel panel = new MyPanel(componentId);
cellItem.add(panel);

And in your panel constructor
MyPanel()
{
add(new BookmarkablePageLink(componentId, Edit.class, new 
PageParameters(map)));
add(new Label("mytext", "click here"));
}

If you wich to add several types of content in your cell (a link, an 
image, a blob, a form, ...), or if you wich to select a row and make 
actions, it may more interresting to use a ListView.

-- 
Robert JACOLIN
M2M
ANYWARE TECHNOLOGIES
Tél : +33 (0)5.61.00.06.56
Fax : +33 (0)5 61 00 51 46
www.anyware-tech.com


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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] 
> > wrote:
> 
> I take the part about error pages back! Seems to be working. What a
> glorious day J
> 
>  
> 
> 
> 
> *From:* [EMAIL PROTECTED]
>  [mailto:
> [EMAIL PROTECTED]
> ] *On Behalf Of
> *Nino Wael
> *Sent:* 27. november 2006 14:58
> 
> *To:* wicket-user@lists.sourceforge.net
> 
> *Subject:* Re: [Wicket-user] Too many open files
> 
>  
> 
> Yeah, its in DEPLOYMENT mode… NO it wasn't L We changed it on the
> way because, our "NICE" error pages aren't shown in DEPLOYMENT mode.
> 
>  
> 
> THANKS, this fixes our trouble with too many files open(at least on
> my local machine, haven't tested it on the server yet)!
> 
>  
> 
> Althought now, our Error pages aren't show. However that's not for
> this thread.
> 
>  
> 
>  
> 
> THANKS AGAIN.
> 
>  
> 
> Regards Nino
> 
>  
> 
> 
> 
> *From:* [EMAIL PROTECTED]
>  [mailto:
> [EMAIL PROTECTED]
> ] *On Behalf Of
> *Flemming Boller
> *Sent:* 27. november 2006 14:12
> * To:* wicket-user@lists.sourceforge.net
> 
> *Subject: * Re: [Wicket-user] Too many open files
> 
>  
> 
> Hi Nino
> 
>  
> 
> I also have this "feature" with open files, but found in a earlier
> post that it could be fixed with putting Wicket into PRODUCTION
> configuration. Either in web.xml or in the code.
> 
>  
> 
> Have you tried this?
> 
>  
> 
>  
> 
> /Flemming
> 
>  
> 
> On 11/27/06, *Nino Wael* < [EMAIL PROTECTED]
> > wrote:
> 
> Ok, that helps a bit. But where in server.xml should I write the lines?
> 
>  
> 
> Should I add a specific context for my wicket application eg like:
> 
>  
> 
>  antiResourceLocking="1" antiJarLocking="1" />
> 
>  
> 
> And if I take it from my web.xml as stated below:
> 
>  
> 
>  antiResourceLocking="1" antiJarLocking="1" />
> 
>  
> 
>  
> 
> Or are there a general switch?
> 
>  
> 
>  
> 
> Regards Nino
> 
>  
> 
> 
> 
> *From:* [EMAIL PROTECTED]
>  [mailto:
> [EMAIL PROTECTED]
> ] *On Behalf Of
> *Johan Compagner
> *Sent:* 27. november 2006 12:24
> * To:* wicket-user@lists.sourceforge.net
> 
> * Subject:* Re: [Wicket-user] Too many open files
> 
>  
> 
> that is the web.xml
> you should configure it in the server.xml (see the url i sent in
> that information about the server.xml configuration)
> 
> On 11/27/06, *Nino Wael *< [EMAIL PROTECTED]
> > wrote:
> 
> Hi Johan or others able to answer.
> 
>  
> 
> How do I encorporate this, into the web.xml, where should I place it
> in the below xml? Sorry for such a novice question..
> 
>  
> 
>  
> 
> 
> 
>  
>   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> 
>   "http://java.sun.com/dtd/web-app_2_3.dtd"; >
> 
>  
> 
> < web-app >
> 
>
> 
>< context-param >
> 
>   < param-name > local.sas.foundation.services
> 
> 
>   < param-value >
> /conf/sas_metadata_source_omr_testsrv.properties 
> 
>
> 
>  
> 
>
> 
>< listener >
> 
>   < listener-class >
> 
> com.sas.jobindsats.businesslogic.biplatform.FoundationServicesContextListener
> 
> 
>
> 
>  
> 
>
> 
>< listener >
> 
>   < listener-class >
> com.sas.jobindsats.businesslogic.JobindsatsBruger 
> 
>
> 
>
> 
>< servlet >
> 
>   < servlet-name > VersionInfo 
> 
>   < servlet-class >
> wicket.protocol.http.WicketServlet 
> 
>   < init-param >
> 
>  < param-name > applicationClassName
> 
> 
>  < param-value >
> com.sas.jobindsats.ui.version.info.VersionInfoApplication  par

[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 to the page I came from after submitting the page on 
which I can change the data.
For example: I'm on the summary page, see a typo in the address, click 
the "change" link within the address panel. A page that allows me to 
change the address opens, I change the address, click "Save" and want to 
end up on the summary page on which I clicked "Change" again. Of course 
the contents of the address panel should show the updated address then.

What's the best way to do this?

Thank you!

- Johannes

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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:

http://www.springframework.org/docs/api/org/springframework/orm/hibernate3/LocalSessionFactoryBean.html

Nathan

Mats Norén wrote:
> Congrats! :)
> Btw, how difficult would it be to reuse the different models from
> within a Spring based solution?
> The project I'm working on uses Spring for different kinds of services
> (JBPM, Email etc) and there is a need to keep things in the same place
> so to speak but I really like the different Hibernate models you've
> created
> 
> /Mats
> 
> On 11/22/06, Nathan Hamblen <[EMAIL PROTECTED]> wrote:
>> It's solid, as far as we can tell. :)
>>
>> There's some new documentation on the site that I hope is helpful to
>> Wicket beginners, regardless of their plans for persisting data. It's an
>> overview of IModel, why it's important, and how it helps with persistence:
>> http://databinder.net/manual/
>>
>> Nathan


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[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 dropdown)?

The solution that I'm using is implement an object called Option that
it's basically a key - value pair.

//properties
Option selectedUser

//DropDownChoice binding
List users = new ArrayList()
for(User user in UserDao.getUsers())
users.add(new Option(user.getId(), user.getName()));

DropDownChoice choice=new DropDownChoice("ddc", new PropertyModel(this,
"selectedUser"), users);

Is there a simpler way to do this? maybe I don't understand the whole
idea of wicket very well, but I really don't want to put big objects in
the model to display only a key - value pair.

Thanks in advance
Beto

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] wicked wicket words :)

2006-11-27 Thread Francisco Treacy
Hi, I just wanted to know if it's indeed possible (and how) to change wicket 
control generated words such as
:wicket:interface: , and all other *wicket* stuff all over the place (I've 
already stripped out wicket html tags and attributes).

Eg. to put :application:stuff: instead. Because I shall not want to expose to 
the end-user I'm using Wicket. Although I'm aware it's a good propaganda 
strategy :)
I know it was discussed a couple of days ago, but I didn't get precisely how to 
change it. What should I override?

Thanks again,
Cheers,
Francisco








___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 AbstractColumn. Where can I find samples of
> doing that?
>
Just get another issue about having custom cell at DataTable.

If I just like to format the output, it is can be done using custom
AbstractColumn like

private static class WhenClosedColumn extends AbstractColumn {
public WhenClosedColumn() {
super(new Model("WhenClosed"), "WhenClosed");
}
public void populateItem(Item cellItem, String componentId,
IModel model) {
final Order order = (Order) model.getObject(cellItem);
cellItem.add(new Label(componentId,
Formatter.format(order.getWhenClosed(;
}
}

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() {
super(new Model("OrderId"), "OrderId");
}

private static final long serialVersionUID = 1L;

public void populateItem(Item cellItem, String componentId,
IModel model) {
final Order order = (Order) model.getObject(cellItem);
final Map map = new HashMap();
map.put("orderid", order.getOrderId().toString());
cellItem.add(new BookmarkablePageLink(componentId,
Edit.class, new PageParameters(map)));
}
}

It just display a text call "[cell]". How can I solve this?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 testing fragment?
>
Repost one more time in case anyone know the solution of testing a fragment?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[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 
there somewhere)

 

Our application has around 950 open handles on startup and that goes a bit up 
when visiting misc pages. But when any of the above happens handles are 
increased until the server dies.

 

>From what I can see now I can replicate some of the problem on my local 
>machine which are windows xp, server are win 2003. On local machine handles 
>goes up but at some point are cut down(and goes up again), this does not 
>happen on server it just continues to rise until death occurs:-(

 

Does anybody have something that can help?

 

Regards Nino

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 <[EMAIL PROTECTED]> wrote:


[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 it). The workaround should solve the problems even in
development mode.

Hi,

When you open an URL connection to an entry in a jar, you get a
JarURLConnection. The JarURLConnection in the package
sun.net.www.protocol.jar has an internal field

/* the url connection for the JAR file */
private URLConnection jarFileURLConnection;

which you cannot access in any way. When you ask for the last modified
time, the JarURLConnection will ask for the header field
"last-modified", which in turn will ask the jarFileURLConnection for the
that header field, which in turn will cause the initializeHeaders() call
in FileURLConnection, which in turn calls connect() and opens the file
(even though for the last modified header that is quite unnecessary).
The way to close the file is to call getInputStream().close() on the
jarFileURLConnection field, but unfortunately you can't since it is
hidden.

There is a very simple workaround though. In code:

URL url = new URL("jar:file:jarfile.jar!Entry.class");
URLConnection connection = url.openConnection();
if (connection instanceof JarURLConnection) {
JarURLConnection jarUrlConnection = (JarURLConnection)
connection;
URL jarFileUrl = jarUrlConnection.getJarFileURL();
URLConnection jarFileConnection =
jarFileUrl.openConnection();
long lastModified = jarFileConnection.getLastModified();
jarFileConnection.getInputStream().close();
System.out.println("last modified=" + new
Date(lastModified));
}

[note: you could probably do something like a while (connection
instanceof JarURLConnection) for jars in jars, but I haven't tested that
yet].

In other words, to get the last modified time of a jar file *entry*, we
just get the last modified time of the jar *file*.  (Note that in the
current Sun implementation that's what it does anyway). This makes sense
since you cannot change a part of the jar file without changing the jar
file itself. Now we do have the input stream to actual jar file, and we
can close it.

I'm sure there's an even better implementations that does not open the
jar file in the first place, but this should be fine for most purposes
and at least it kills the file descriptor leak.

Regards,
Sebastiaan

Johan Compagner wrote:
> As i said before. we can apply this patch, but there is one problem
> and that is OSGI wicket solutions.. That do jar updates by just
> dropping them in a running system
> How are we going to test that?
>
> Can you test something else? ( i also will try to test that)
>
> comment out this code:
>
> try
> {
> connection.getInputStream().close();
> }
> catch (Exception ex)
> {
> // ignore
> }
>
> because if i look in the debugger it seems to me that lastmodified
> doesn't really open a stream.. (but i can be wrong i have to test this
> further)
> But if that is not the case then we do here to much! we open the
> inputstream and the resources while we are trying to close it..
>
> johan
>
>
> On 9/20/06, *SourceForge.net* <[EMAIL PROTECTED]
> > wrote:
>
> Patches item #1562130, was opened at 2006-09-20 13:57
> Message generated for change (Tracker Item Submitted) made by Item
> Submitter
> You can respond by visiting:
>
https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1562130&group_id=119783
> <
https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1562130&group_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: None
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: Jean-Baptiste Quenot (quenotj)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: File descriptor leak in URLResourceStream
>
> Initial Comment:
> See discussion at
>
http://www.nabble.com/File-descriptor-leak-in-DEVELOPMENT-mode-tf2280488.html#a6334936
> <
http://www.nabble.com/File-descriptor-leak-in-DEVELOPMENT-mode-tf2280488.html#a6334936
>
>
> A file descriptor leak is observed in DEVELO

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 it). The workaround should solve the problems even in 
development mode.

Hi,

When you open an URL connection to an entry in a jar, you get a
JarURLConnection. The JarURLConnection in the package
sun.net.www.protocol.jar has an internal field

/* the url connection for the JAR file */
private URLConnection jarFileURLConnection;

which you cannot access in any way. When you ask for the last modified
time, the JarURLConnection will ask for the header field
"last-modified", which in turn will ask the jarFileURLConnection for the
that header field, which in turn will cause the initializeHeaders() call
in FileURLConnection, which in turn calls connect() and opens the file
(even though for the last modified header that is quite unnecessary).
The way to close the file is to call getInputStream().close() on the
jarFileURLConnection field, but unfortunately you can't since it is hidden.

There is a very simple workaround though. In code:

URL url = new URL("jar:file:jarfile.jar!Entry.class");
URLConnection connection = url.openConnection();
if (connection instanceof JarURLConnection) {
JarURLConnection jarUrlConnection = (JarURLConnection)
connection;
URL jarFileUrl = jarUrlConnection.getJarFileURL();
URLConnection jarFileConnection =
jarFileUrl.openConnection();
long lastModified = jarFileConnection.getLastModified();
jarFileConnection.getInputStream().close();
System.out.println("last modified=" + new
Date(lastModified));
}

[note: you could probably do something like a while (connection 
instanceof JarURLConnection) for jars in jars, but I haven't tested that 
yet].

In other words, to get the last modified time of a jar file *entry*, we
just get the last modified time of the jar *file*.  (Note that in the
current Sun implementation that's what it does anyway). This makes sense
since you cannot change a part of the jar file without changing the jar
file itself. Now we do have the input stream to actual jar file, and we
can close it.

I'm sure there's an even better implementations that does not open the
jar file in the first place, but this should be fine for most purposes
and at least it kills the file descriptor leak.

Regards,
Sebastiaan

Johan Compagner wrote:
> As i said before. we can apply this patch, but there is one problem
> and that is OSGI wicket solutions.. That do jar updates by just 
> dropping them in a running system
> How are we going to test that?
>
> Can you test something else? ( i also will try to test that)
>
> comment out this code:
>
> try
> {
> connection.getInputStream().close();
> }
> catch (Exception ex)
> {
> // ignore
> }
>
> because if i look in the debugger it seems to me that lastmodified 
> doesn't really open a stream.. (but i can be wrong i have to test this 
> further)
> But if that is not the case then we do here to much! we open the 
> inputstream and the resources while we are trying to close it..
>
> johan
>
>
> On 9/20/06, *SourceForge.net* <[EMAIL PROTECTED] 
> > wrote:
>
> Patches item #1562130, was opened at 2006-09-20 13:57
> Message generated for change (Tracker Item Submitted) made by Item
> Submitter
> You can respond by visiting:
> 
> https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1562130&group_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: None
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: Jean-Baptiste Quenot (quenotj)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: File descriptor leak in URLResourceStream
>
> Initial Comment:
> See discussion at
> 
> http://www.nabble.com/File-descriptor-leak-in-DEVELOPMENT-mode-tf2280488.html#a6334936
> 
> 
>
> A file descriptor leak is observed in DEVELOPMENT mode,
> as resources are reloaded every second, and also in
> DEPLOYMENT mode when serving resources.  This leads to
> an OS error "Too many files open", quickly in
> DEVELOPMENT (a few hours), and slowly in DEPLOYMENT.
>
> Even if the real fix has to occur in the JDK (or t

[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 parameters (sorting, filtering, paging params) ,
and call setResponsePage with this page class and page parameters. This 
constructs a bookmarkable page with fresh data.
In addition this page contains an AjaxEventBehavior that refreshes some 
of the page components once a minute.
This all works great if only one browser tab is open.

However, if two browser tabs are open simultaneously things go wrong:
I open the Item List page in both tabs.
I open the Item page in one tab and submit the form.
I open the Item page in the second tab and submit the form.
When ajax tries to refresh the first tab it fails to find the page 
(inside DefaultRequestTargetResolverStrategyresolveRenderedPage()) and 
'page expired' page is displayed.

getCallBackScript of AjaxEventBehavior is called with false for  
recordPageVersion and false for onlyTargetActivePage.
If I modify onlyTargetActivePage to true one of the tabs stops 
refreshing after the aforementioned scenario.

Any ideas how to avoid this page expired problem ?

Thanks,
Nili

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 list I press into the constructor is not List, it
will persist the type.

However, if you use this API carelessly and think the List return from
the form is always List. Then you will get strangle null
pointer exception when you operate with the list instead of
ClassCastException as when I expect, as java will surpress the
ClassCastException sliencely and just return null to caller.

Not sure if the above information help anyone using this API

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user