Re: Saving a component in session

2010-09-27 Thread Ernesto Reinaldo Barreiro
What you want to achieve is been able to click on your labels (created via wicket:translation key=home:nameField) 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

Re: onmouseover menu

2010-09-27 Thread Johan Haleby
Thanks for your suggestion. I can't seem to use Wiquery because when I add the tooltip behavior I cannot drag and drop the component anymore. The other approach fails with an exception java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = 1]] when

Re: onmouseover menu

2010-09-27 Thread Johan Haleby
I've managed to avoid the exceptionchanging the onBind method's AttributeModifier from a standard Model to a LoadableDetachableModel, e.g. getComponent().add(new AttributeModifier(onmouseover, true, new LoadableDetachableModelCharSequence() { @Override

Re: onmouseover menu

2010-09-27 Thread Ernesto Reinaldo Barreiro
I'm not following you on the drag-drop part? What is stopping to work? If you can't use wiQuery you can simply copy and paste the code remove the wiQuery dependency and include the needed JavaScript and CSS using standard wicket machinery . Ernesto On Mon, Sep 27, 2010 at 9:40 AM, Johan Haleby

Re: Preventing warnAboutFormComponentInsideEnclosure log entries

2010-09-27 Thread Ian Marshall
Thanks Igor. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Preventing-warnAboutFormComponentInsideEnclosure-log-entries-tp2549176p2715101.html Sent from the Users forum mailing list archive at Nabble.com.

setEnabled(true) doesn't enable a subcomponent

2010-09-27 Thread Ludodo
Hello, I've 2 components ComponentA ComponentB. ComponentB extends ComponentA. ComponentA.html looks like this : wicket:panel form wicket:id=form ... wicket:child / /form /wicket:panel and ComponentB looks like this : wicket:extend

Re: onmouseover menu

2010-09-27 Thread Johan Haleby
I'm using wicket-dnd to allow for drag and drop of the rows in the datatable. When I'm adding the TooltipBehavior to my component I can no longer drag and drop the rows. If I remove it, I can dnd again. -- View this message in context:

Re: setEnabled(true) doesn't enable a subcomponent

2010-09-27 Thread Alexander Morozov
Hi! Did you try to override isEnabled method on the button ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setEnabled-true-doesn-t-enable-a-subcomponent-tp2715172p2715313.html Sent from the Users forum mailing list archive at Nabble.com.

Re: setEnabled(true) doesn't enable a subcomponent

2010-09-27 Thread Ludodo
Yes I did and it didn't works either. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setEnabled-true-doesn-t-enable-a-subcomponent-tp2715172p2715340.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Saving a component in session

2010-09-27 Thread Alexandru Artimon
Hello, Thanks for the idea, I didn't know that I can get a callback url for the AbstractAjaxBehavior. It seems to be working now. I came across a small issue with Firefox 4(beta7): when the Ajax response arrives in the browser, usually Wicket runs the javascript embeded in the response.

Re: Saving a component in session

2010-09-27 Thread Ernesto Reinaldo Barreiro
Alexandru, Glad to hear I was of some help:-) I haven't tried FF4b7 myself. Regards, Ernesto On Mon, Sep 27, 2010 at 3:24 PM, Alexandru Artimon aarti...@dgfoundation.org wrote:  Hello, Thanks for the idea, I didn't know that I can get a callback url for the AbstractAjaxBehavior. It seems

Re: setEnabled(true) doesn't enable a subcomponent

2010-09-27 Thread Igor Vaynberg
in wicket the enabled status is controlled by the entire hierarchy. in order for a component to be enabled so must be all of its parents, all the way to the page. there are many reasons to do it this way and we will not change it. i suggest you either move the link out or disable on a more

Re: sanity check request for fix regarding the dreaded PageExpiredException

2010-09-27 Thread Igor Vaynberg
you can try it and see if it works for your particular usecases. there may still be some edges that will break, like links you actually want to run against an older version of the page because they depend on the component hierarchy that existed then, etc. -igor On Fri, Sep 24, 2010 at 7:56 AM,

Re: setEnabled(true) doesn't enable a subcomponent

2010-09-27 Thread Jeremy Thomerson
If you want everything in the form disabled except the link, use a visitor on the form to disable everything but the link. All parents of the link must be enabled. Jeremy Thomerson http://wickettraining.com -- sent from my smart phone, so please excuse spelling, formatting, or compiler errors

RE: sanity check request for fix regarding the dreaded PageExpiredException

2010-09-27 Thread Alex Rass
Igor's is 100% right Plus you are forgetting that if you use the default page url constructor - it goes by interface number which will/may change after a redeploy. So your lost url bullet can be fixed if you use some url creation strategy that solidifies in it enough of the path that you can

assert redirected wicket page

2010-09-27 Thread Antonio Mauriello
In a wicket page I do at some stage a pageRedirect to another wicket page, let say to MyWicketPage.class from the test side it seems I can only check: wicketTester.assertRenderedPage(RedirectPage.class); is there a way to assert which is the actual redirected page? I mean like

Possible to Set Multiple Columns in CheckGroup?

2010-09-27 Thread Shelli Orton
Hi, Is there a way to set the number of columns that a CheckGroup will render the checkboxes? I have a group with 13 boxes and I would like to render it in two columns (one of 7 and one of 6). Thanks! Shelli - To unsubscribe,

Re: Possible to Set Multiple Columns in CheckGroup?

2010-09-27 Thread Igor Vaynberg
since you control the markup of CheckGroup/Check components you can align them however you like, yourself. -igor On Mon, Sep 27, 2010 at 10:04 AM, Shelli Orton shelli.or...@sjrb.ca wrote: Hi, Is there a way to set the number of columns that a CheckGroup will render the checkboxes?  I have a

Re: automatically sizing modal window

2010-09-27 Thread andrea del bene
Hi Martin, what I'd like to have is a window that automatically adjusts its height and width in order to ensure that all its content it's always visible without scrollbars. I think it could be done with some JavaScript code. Do you think it's possible to implement such behavior? Thank you

Re: automatically sizing modal window

2010-09-27 Thread MZemeck
Sounds like a nice feature, however be careful, if the content is too large the close button may be off-screen and make it impossible to close. So maybe it should auto adjust within the bounds of the screen... From: andrea del bene andrea.on@libero.it To: users@wicket.apache.org

why is there no redirectToIntercept *Target*

2010-09-27 Thread Eike Kettner
Hi! I found two methods redirectToInterceptPage(Class) and redirectToInterceptPage(Page). I was wondering why there is no overloaded method with a IRequestTarget as argument. I'd like to use this with a custom request target, that's why i stumbled into this. So I like to do something like this:

Re: automatically sizing modal window

2010-09-27 Thread Martin Grigorov
patches are welcome especially if they work cross-browser ;-) On Mon, Sep 27, 2010 at 11:23 PM, mzem...@osc.state.ny.us wrote: Sounds like a nice feature, however be careful, if the content is too large the close button may be off-screen and make it impossible to close. So maybe it should

bookmarkablePage strategy change?

2010-09-27 Thread Alex Rass
I have been doing: webApplication.mountBookmarkablePage(/bob, pageClass); for quite some time. And when things got dynamic, it was: http://site.com/bob?wicket:interface=:0 Did something change in recent releases? Bug? Or did I nuke some important encoding strategy line some place by

Modular XHTML DTD for Wicket?

2010-09-27 Thread Ichiro Furusato
I brought this up previously under Wicket pages are invalid XHTML on Thu, 16 Sep 2010 13:11:06 +1200 but the conversation got sidetracked by a solution to a question I'd asked without addressing an offer I'd made. Would anyone be interested in replacing the misnamed and incomplete XHTML DTD used

RE: bookmarkablePage strategy change?

2010-09-27 Thread Alex Rass
Trying to debug my problem where after a form submission on a bookmarked URL, it loses the mountedPage part and just keeps the ?wicket parameter... ran into a new problem: Any reason that for build 4.12 source doesn't match the binaries? Set a breakpoint on WebRequestCodingStrategy in the

RE: bookmarkablePage strategy change?

2010-09-27 Thread Alex Rass
Ok, after reading and debugging, seems that bookmarkable page does indeed drop the source page. Is there a way to fix that? So that after I submit the form on that page, I get to keep my bob: site.com/bob?wickiet=::1:: ??? If there's a way to do that, I'd be a happy camper. Even if it requires