Re: DropDownChoice with RequiredTextField

2013-08-28 Thread Vignesh Palanisamy
Thanks. its working... On Wed, Aug 28, 2013 at 11:56 AM, James Selvakumar wrote: > Try calling form.modelChanged() before you add the component to the ajax > target. > > > On Mon, Aug 12, 2013 at 9:37 AM, Vignesh Palanisamy > wrote: > > > Hi, > > > > i had a CompoundPropertyModel form. > > In th

AjaxChannel usage

2013-08-28 Thread Steve Lowery
I would like to have my file upload requests on my site, which take much longer than a normal request, go through a different mechanism. I'd like the user to still be able to click around the site and work while the file is uploading and then when it finishes, I can pop up an "All Done" type dialo

Display Loading When Busy Navigator and DataView

2013-08-28 Thread dhongyt
Currently I have two panels. I have one panel that is handling code that is like a PagingNavigator(custom coded) And another panel that is handling the DataView. I'm currently trying to figure out the best way to show that the DataView results are pulling data from the database when they click on

Re: Thread safety of various Wicket classes?

2013-08-28 Thread sc_wicket
Thanks. Makes sense On Wed, Aug 28, 2013 at 3:10 PM, Sven Meier [via Apache Wicket] wrote: >>Given that behaviors are stateless, why is it discouraged to share them? > Behaviors can be stateless, but they don't need to be. > You can share them between components in the same page. But sharing beh

Re: Thread safety of various Wicket classes?

2013-08-28 Thread Sven Meier
Given that behaviors are stateless, why is it discouraged to share them? Behaviors can be stateless, but they don't need to be. You can share them between components in the same page. But sharing behaviors (or models) between pages is not possible, because each page is serialized separately.

Re: Thread safety of various Wicket classes?

2013-08-28 Thread sc_wicket
I'm trying to understand how Wicket deals with thread-safety. >From Wicket in Action by Martijn Dashorst & Eelco Hillenius "You never have to worry about thread-safety as long as you keep two things in mind: * Never share component object instances, models, and behaviors

Re: Directory Listings

2013-08-28 Thread Sven Meier
Wicket expects the path to end in a wildcard. Note that using WicketFilter instead of WicketServlet is recommended. Sven On 08/28/2013 05:07 PM, alessio wrote: Thanks, so basically the /* mapping should not interfere with non-Wicket requests? In other words, static content as well as potentia

Re: Directory Listings

2013-08-28 Thread alessio
Thanks, so basically the /* mapping should not interfere with non-Wicket requests? In other words, static content as well as potential directory listings (respectively related error messages if disabled) will always be passed on and served by the underlying application server (be it WebSphere or T

Re: Directory Listings

2013-08-28 Thread Sven Meier
Wicket passes such requests back to the default handler Yes, see WicketServlet#fallback() whether Wicket actually returns directory listings at all? No, it doesn't. Regards Sven On 08/28/2013 03:40 PM, alessio wrote: Hi, I am using Wicket 1.5.3 in a WebSphere context and encountered an

Re: Link to last version of stateful page

2013-08-28 Thread Sven Meier
You can use a PageReference: PageReference reference = page.getPageReference(); Page page = reference.getPage(); Regards Sven On 08/28/2013 03:21 PM, junixar wrote: I have a number of stateful pages with some state for each page. For example each page has already submitted form. How ca

Re: Link to last version of stateful page

2013-08-28 Thread Wolfgang
Hi Junixar! You have to give the Page Object to the new Class like: onClick() { setResponsePage(new MyPage(Frontpage.this))} This should help. Greetings On 2013-08-28 15:21, junixar wrote: I have a number of stateful pages with some state for each page. For example each page has already submi

Directory Listings

2013-08-28 Thread alessio
Hi, I am using Wicket 1.5.3 in a WebSphere context and encountered an interesting behaviour which I dont fully understand. My application uses a /* mapping to WicketServlet and the application generally works fine. However I wonder what happens to static content (images, ) which is requested

Link to last version of stateful page

2013-08-28 Thread junixar
I have a number of stateful pages with some state for each page. For example each page has already submitted form. How can I organize a menu with links to last versions of these stateful pages? Should I store anywhere (may be in the session) reference to appropriate object for each page? If I use

Re: How to get URLs for images with in a WebApp

2013-08-28 Thread Andun Sameera
Hi, It was a issue with my IDE integration. I am running the webapp via Tomcat in IntellijIDEA. It runs the wicket application in the bin folder of Tomcat. Thus some issue arises. Then I tried manually with Tomcat. Then it works. Thanks! On Wed, Aug 28, 2013 at 4:59 PM, Andun Sameera wrote: >

Re: How to get URLs for images with in a WebApp

2013-08-28 Thread Andun Sameera
Hi Maxim, I tried that method. In my web app I can access a image using this url, http://localhost:8080/ClipArts/images.jpeg Then I tried, ((WebApplication) WebApplication.get()).getServletContext().getRealPath("ClipArts") ((WebApplication) WebApplication.get()).getServletContext().getRealPath(

Re: How to get URLs for images with in a WebApp

2013-08-28 Thread Maxim Solodovnik
((WebApplication) WebApplication.get()).getServletContext() .getRealPath("images") On Wed, Aug 28, 2013 at 6:11 PM, Andun Sameera wrote: > Hi All, > > I have a use case like this which needs some help. There is folder in my > web app called images. There are some images in that folder which are

How to get URLs for images with in a WebApp

2013-08-28 Thread Andun Sameera
Hi All, I have a use case like this which needs some help. There is folder in my web app called images. There are some images in that folder which are dynamically added. In my application, I want to list down URLs for all these images. Can any one give me some hints ? Thanks! -- Regards Andun S

Re: AW: AW: AW: Styling tags

2013-08-28 Thread Lucio Crusca
In data martedì 27 agosto 2013 15:58:52, francois meillet ha scritto: > try that > > > > > > Maybe that would work to some extent, but it would have at least the following issues: 1. it wouldn't pass HTML validation ( must