Re: Saving a component in session

2010-09-26 Thread Ernesto Reinaldo Barreiro
What you want to achieve is been able to click on your labels (created via ) and replace then with some editable components? If so, maybe you could do it as follows. 1-Place some abstract ajax behavior (AAB) on your "base" page so that you have some unique context to submit back changes on your l

Re: modalWindow setContent

2010-09-26 Thread Alexander Morozov
check this: modalWindow.setContent(new SearchResults(modalWindow .getContentId(), modalWindow, resultModel)); /* FIXME use ModalWindow.show(target) instead target.addComponent(modalWindow, "modal"); */ logger.info("hey hey"); modalWindow.show(target); -- View this message in c

Re: RESTful URLS with AJAX tabbed panel

2010-09-26 Thread Jeremy Thomerson
On Mon, Sep 27, 2010 at 12:29 AM, Todd Nine wrote: > Hi all, > We've built several tabbed panels, and we're in the process of converting > them over the AjaxTabbedPanel subclasses. We really want RESTful URLS in > our system, we're accomplishing this with mountpath on different pages as > diffe

RESTful URLS with AJAX tabbed panel

2010-09-26 Thread Todd Nine
Hi all, We've built several tabbed panels, and we're in the process of converting them over the AjaxTabbedPanel subclasses. We really want RESTful URLS in our system, we're accomplishing this with mountpath on different pages as different tabs are selected. Is it possible to configure the AJAXT

Re: Wicket javascript callback get variable

2010-09-26 Thread Igor Vaynberg
the ajax post is executed *asynchronously*. alert first will be displayed after that asynchronous call completes. the code right after the wicketAjaxPost - the second alert - is executed right away. -igor On Sun, Sep 26, 2010 at 2:36 PM, goody44 wrote: > > Hi guys, > I'm trying to call wicket fr

Re: Is it a good practice to use intern() in all ids ?

2010-09-26 Thread Jeremy Thomerson
> > I wouldn't do that. You'll most likely run into performance issues. > Duplicate strings should only arise with the use of new String(). Explicitly > calling intern() could cause an unexpected amount of memory usage in > PermGen. I think you have this backwards. As James mentioned on this thr

Re: Is it a good practice to use intern() in all ids ?

2010-09-26 Thread Richard Frovarp
On 9/25/2010 8:53 PM, smallufo wrote: I am using a profiler to analyze an OOM heap-dump file , and find tons of duplicated Strings . These strings are mostly IDs of wicket components or PropertyModel's expression ... I wonder if it a good practice to "intern()" all these Strings ? such as : pr

Wicket javascript callback get variable

2010-09-26 Thread Matthew Goodson
Hi guys, I'm trying to call wicket from javascript. I have figured out how to do this but its not quite behaving as I expect. On the code below I would expect the success handler (alert('first')) to be fired before the alert('second') but this doesn't prove to be the case. wicketAjaxPost('"+behave

Wicket javascript callback get variable

2010-09-26 Thread goody44
Hi guys, I'm trying to call wicket from javascript. I have figured out how to do this but its not quite behaving as I expect. On the code below I would expect the success handler (alert('first')) to be fired before the alert('second') but this doesn't prove to be the case. wicketAjaxPost('"+beha

Re: Saving a component in session

2010-09-26 Thread Igor Vaynberg
see if you can access the markupstring in onbeforerender(), iterate it, and add the necessary components there. -igor On Sun, Sep 26, 2010 at 11:40 AM, Mihai Postelnicu wrote: > Any idea how can we approach this differently ? we need a component spawned > in html (because we have some default tr

Using resource to generate client site URLS to an HTTP reference

2010-09-26 Thread Todd Nine
Hi all, We need to use resources slightly different than the standard ResourceReference. Our resources will not reside on the same host as our application. These resources will be hosted by our static content system. As a result, I need the following urls generated. /assets/ For example, duri

Re: Using WicketTester to verify table content refreshed by AJAX event

2010-09-26 Thread Alec Swan
Hello, I decided to take another look at this problem and noticed that AJAX-based refreshing of a page with a DataView changes the path of the DataView's first element. For example, when the page is first rendered, the path of the first row in the DataView is "referrals:1". After the DataView is r

Re: Clear cached key Localizer

2010-09-26 Thread Mathias Nilsson
Added this to remove all keys regardless of the component /** * Remove every key from cache regardless of the component * @param key the resource key */ public void clearCachedKeys(final String key){ if( cache == null ) return; It

Re: modalWindow setContent

2010-09-26 Thread cabra
Hi this is part of my code. Something like that: final DateTimeField from = new DateTimeField("start", new Model()); add(from); final DateTimeField till = new DateTimeField("end", new Model()); add(

Re: modalWindow setContent

2010-09-26 Thread Mathias Nilsson
I'm not entire sure what you want to achive. This example is to open a new window that extends WebPage. You don't need to call setContent. public class HomePage extends WebPage { private static final long serialVersionUID = 1L; private String content; // This is a variable to

Auto injecting params as bean values

2010-09-26 Thread Todd Nine
Hi all, I've been working with the wicketstuff annotations to perform path mounting and property mapping. I have the following annotations on my page. @MountPath(path = "api/1.0/messagemedia") @MountMixedParam(parameterNames = { "phone", "message", "id", "status", "dateReceived" }) @MountQueryS

Re: Saving a component in session

2010-09-26 Thread Mihai Postelnicu
Any idea how can we approach this differently ? we need a component spawned in html (because we have some default translatable text in the html that we have to enclose and also acts as the key) with callbacks and two states (edit mode and read only, much like ajaxeditablelablel). Any idea is w

Re: modalWindow setContent

2010-09-26 Thread cabra
Hi all. Thank you for replies but this is not what i want. The problem is that as I understood I should do like this modal.setcontent and then add(modal) but i need to do modal.setcontent after form is submitted. will this work or not? -- View this message in context: http://apache-wicket.184

Re: modalWindow setContent

2010-09-26 Thread Mathias Nilsson
http://wicketstuff.org/wicket14/ajax/ http://wicketstuff.org/wicket14/ajax/ Click on ModalWindow for example -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/modalWindow-setContent-tp2714385p2714490.html Sent from the Users forum mailing list archive at Nabble.com.

Re: modalWindow setContent

2010-09-26 Thread Alexander Morozov
Hi You need to add modal window placeholder tag on the page and call, attach ModalWindow instance to it and call modalWindowInstance.show(target) within onSubmit(AjaxRequestTarget target) method on the submit button. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com

Re: automatically sizing modal window

2010-09-26 Thread Martin Grigorov
Additionally ModalWindow is highly configurable via CSS. On Sun, Sep 26, 2010 at 5:34 PM, Martin Grigorov wrote: > Can you give more information about this feature, please. > Either here or in the ticket. > What are the current obstacles? How do you want it to be? Etc. > > > On Sun, Sep 26, 2010

Re: automatically sizing modal window

2010-09-26 Thread Martin Grigorov
Can you give more information about this feature, please. Either here or in the ticket. What are the current obstacles? How do you want it to be? Etc. On Sun, Sep 26, 2010 at 3:49 PM, andrea del bene wrote: > On 09/25/2010 02:30 PM, Fernando Wermus wrote: > >> I would like so much this feature. I

modalWindow setContent

2010-09-26 Thread cabra
Hi all. on my page i have search form. All i need is: user makes some input and then presses search button, and on this button click form should be submitted and modalwindow with search results should uppear. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/modalWindow

Re: automatically sizing modal window

2010-09-26 Thread andrea del bene
On 09/25/2010 02:30 PM, Fernando Wermus wrote: I would like so much this feature. It is so important to me! On Sat, Sep 25, 2010 at 5:51 AM, Josh Kamau wrote: Hi guys, Is there are way to ensure that a modal window automatically sizes to fit the available content? the default size seems

Re: Saving a component in session

2010-09-26 Thread Igor Vaynberg
it can modify hierarchy, but the components it adds only exist during the render phase - so those components cannot receive callbacks or hold state. -igor On Sat, Sep 25, 2010 at 10:41 PM, Alexander Morozov wrote: > > So IComponentResolver cannot modify component hierarchy. Right ? And there is

Re: announcing Granite - a Wicket-Scala-DB4O web application stack

2010-09-26 Thread Sam Stainsby
You could still have couchdb as a database, and also there is the beginnings of an object store layer tucked away in an experimental API, but I think we will stick with DB4O for the primary database. Once you see the ease with which you can store use DB4O, you will see why eg (in Scala sorry):