Re: LazyInitializationException with CheckBoxMultipleChoice

2011-09-12 Thread Dan Retzlaff
Hi Florian, When constructing your CheckBoxMultipleChoice, use a PropertyModel(userModel, roles) for the model argument, and a new LDM that returns a list of all available UserRoles for the choices argument. Unless you need UserRole to be serializable for some other reason, I'd remove its

Adding StringResourceLoaders to ResourceSettings in Wicket 1.5

2011-09-12 Thread Mikko Pukki
Hi all, I encountered a problem while migrating from 1.4.x to 1.5. We have added some custom StringResourceLoaders to ResourceSettings in Application's init() like this: getResourceSettings().addStringResourceLoader(new BundleStringResourceLoader(tables)); Problem is that IResourceSetting's

Re: Adding StringResourceLoaders to ResourceSettings in Wicket 1.5

2011-09-12 Thread Martin Grigorov
getResourceSettings.getStringResourceLoaders().add(mine) On Mon, Sep 12, 2011 at 3:30 PM, Mikko Pukki mikko.pu...@syncrontech.com wrote: Hi all, I encountered a problem while migrating from 1.4.x to 1.5. We have added some custom StringResourceLoaders to ResourceSettings in Application's

ByteArrayResource.getResourceStream() in Wicket 1.5

2011-09-12 Thread Makoto Kameda
Hi there, I have a problem while migrating from 1.4 to 1.5. In 1.4 I have been using ByteArrayResource.getResourceStream() to download dynamically generated PDF and ZIP with a file name. Now it's removed in 1.5. So how can I change this code: 1.4: ByteArrayResource bar = new

Re: ByteArrayResource.getResourceStream() in Wicket 1.5

2011-09-12 Thread Martin Grigorov
RequestCycle.get().scheduleRequestHandlerAfterCurrent(new ResourceRequestHandler(bar, null)); On Mon, Sep 12, 2011 at 7:20 PM, Makoto Kameda makotopuenktl...@hotmail.com wrote: Hi there, I have a problem while migrating from 1.4 to 1.5. In 1.4 I have been using

Re: Apache Wicket releases Wicket 1.5

2011-09-12 Thread gilbertoca
Congratulations! Thanks Wicket team! Here[1], we have an template application(used for every new module) based in the 1.14.17 version. I would like to migrate that template but it depends on wicket-extensions[2] and wicketstuff-jasperreports[3] both are not released yet as you can see. Is there

Re: Apache Wicket releases Wicket 1.5

2011-09-12 Thread Martin Grigorov
http://repo1.maven.org/maven2/org/apache/wicket/wicket-extensions/1.5.0/ http://repo1.maven.org/maven2/org/wicketstuff/wicketstuff-jasperreports/1.5-RC7/ WicketStuff 1.5.0 will be released soon. But since Wicket 1.5.0 is actually RC7 without code changes they are fully compatible. On Mon, Sep

Re: weekly memory usage increase by 500 Mb problem

2011-09-12 Thread aksarben
Junit MIGHT reveal the problem, though I think you'll get much faster results by using a profiler (I've had good luck with JProfiler). -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/weekly-memory-usage-increase-by-500-Mb-problem-tp3798527p3808451.html Sent from the

Create a stand-alone link and get its URL

2011-09-12 Thread Alec Swan
Hello, We use a templating engine which generates parts of our pages. Templates can be included on any page. We need the engine to be able to generate a link which will display a report when clicked. I tried using the following code, but it returns null from RequestTarget.urlFor(..): public

Re: Create a stand-alone link and get its URL

2011-09-12 Thread Igor Vaynberg
create a resource and register it in shared resources, this will allow you to create a stable url. the filename and reportdata you will have to pass on the url. -igor On Mon, Sep 12, 2011 at 2:25 PM, Alec Swan alecs...@gmail.com wrote: Hello, We use a templating engine which generates parts

Storing component state information in session

2011-09-12 Thread Nelson Segura
Hello, Our app has several components that retain their state during a user session. Examples like: 1. Number of results per page in a pageable component. 2. State of a collapsible container. 3. Which tab is selected in a tabbed panel. In old JSP world this will be tracked in the user session

Re: Create a stand-alone link and get its URL

2011-09-12 Thread Alec Swan
I don't really need a stable URL. In fact, I would prefer if the link URL was session or page-specific so that it cannot be accessed by anybody unless they first accessed the page that contains the link. I would like to do something along the lines of the code in my original post. In other words,

Re: Storing component state information in session

2011-09-12 Thread Igor Vaynberg
use session's metadata facility to store the state. if you have a lot of these components you can store a mapkey,value under a single metadata key, just remember to make that code threadsafe. -igor On Mon, Sep 12, 2011 at 4:02 PM, Nelson Segura nsegu...@gmail.com wrote: Hello, Our app has

Re: Create a stand-alone link and get its URL

2011-09-12 Thread Igor Vaynberg
the problem is when you say build a url to an instance of this request target wicket doesnt hold on to the instance, nor does it have any way to recreate it. what you can do is add a behavior to the page and construct a url to that behavior. -igor On Mon, Sep 12, 2011 at 4:16 PM, Alec Swan

ajax and URLs

2011-09-12 Thread Alexander Gubin
Sorry, if this question had been answered before, I am writing and AJAX app and looking into way to modify browser location bar, when clicking on Ajax links. Currently I have two pages with a bunch on panels, and when I hit back button I would like to go to previous panel, not page. I see

Re: Create a stand-alone link and get its URL

2011-09-12 Thread Alec Swan
Our templating engine is the one that needs to generate the link by evaluating a template similar to a href='${var.reportLink}'Download/a. The engine does not have access to any Wicket components but can access Thread local properties, such as RequestCycle.get(). I guess we could add a behavior to