enable / disable MarkupContainer and all children

2007-10-09 Thread Matthijs Wensveen
Hi, I have a Panel (myPanel) containing some child components. When I say: myPanel.setEnabled(false); I want to disable the panel, but also disable all children. Preferably, I'd override setEnabled, but since it is final (sigh), this is impossible. A less elegant way to do it is to supply a pub

Re: how to forward request to an external URL

2007-10-09 Thread Matthijs Wensveen
For completeness sake: http://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html Igor Vaynberg wrote: requestcycle.setrequesttarget(new redirectrequesttarget(url)); -igor On 10/9/07, Nili Adoram <[EMAIL PROTECTED]> wrote: Hi all, Suppose I want to forward the HT

Re: new class reloading solution JavaRebel

2007-10-09 Thread Matthijs Wensveen
Looks promising. A lot of people here complain about having to restart jetty or tomcat every time they modify their classes. Too bad it's commercial :( Eelco Hillenius wrote: Hi people, I haven't tried it myself yet, but Jevgeni Kabanov (from Aranea framework[1]) just released 'JavaRebel' whi

Re: Subclassing WebRequestCodingStrategy

2007-10-09 Thread John Patterson
OK thanks, I have created https://issues.apache.org/jira/browse/ WICKET-1057 I think final is a great tool and if someone can point out a better way for me to do this please do. Cheers, John On 9 Oct 2007, at 17:19, Matej Knopp wrote: Well, as kind of our policy we make a lot of things f

Re: Subclassing WebRequestCodingStrategy

2007-10-09 Thread Matej Knopp
Well, as kind of our policy we make a lot of things final. But we do remove the final if someone has a good reason for it. :) Could you please create a jira issue with the finals you need to have removed? Thanks. -Matej On 10/10/07, John Patterson <[EMAIL PROTECTED]> wrote: > Also, there is spe

Re: Subclassing WebRequestCodingStrategy

2007-10-09 Thread John Patterson
Also, there is special case code in WebRequestCodingStrategy for a mount with a null path. This looks like a default mount and is what I want to use. But there is no way to add a mount with a null path as it is checked for. This class is so close to being extendable but not quite there.

Re: Dynamic Entity Classes

2007-10-09 Thread Joe Toth
Salve is interesting... One problem, user-module does not know about accounting-module. On Wed, 2007-10-10 at 00:30 +0200, Gerolf Seitz wrote: > heh, i knew this would come up ;) > > On 10/10/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > with Salve you can do it like this: > > > > UserB

Re: Subclassing WebRequestCodingStrategy

2007-10-09 Thread John Patterson
That is a huge class with lots of internal knowledge! It would be a nightmare to maintain and keep up to date with internal Wicket changes. All for one final keyword. The class seems to have been built with subclassing in mind but just this single final clause stops me being able to use

Re: Subclassing WebRequestCodingStrategy

2007-10-09 Thread John Patterson
Actually, urlCodingStrategyForPath would be preferable because that also must be overridden. I have just done this locally and so far seems to be all I need. On 9 Oct 2007, at 15:51, Matej Knopp wrote: I don't see why targetForRequest(RequestParameter) couldn't be non-final. Anyone objects

Re: Dynamic Entity Classes

2007-10-09 Thread Gerolf Seitz
heh, i knew this would come up ;) On 10/10/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > with Salve you can do it like this: > > UserBalance User.getBalance() { > return accountingService.getBalance (user); > } > > because your User domain object would have access to accountingService. > > s

Re: how to forward request to an external URL

2007-10-09 Thread Igor Vaynberg
requestcycle.setrequesttarget(new redirectrequesttarget(url)); -igor On 10/9/07, Nili Adoram <[EMAIL PROTECTED]> wrote: > > Hi all, > > Suppose I want to forward the HTTP request to some external url (NOT a > wicket page, e.g. a JSP page). > I want to end the request cycle at this point ( not in

Re: Example source code?

2007-10-09 Thread Igor Vaynberg
my suggestion is to learn how to use svn :) -igor On 10/9/07, Neil B. Cohen <[EMAIL PROTECTED]> wrote: > Is there a link where I can download sample wicket source code? Like for > the Wicket Phone book example? I don't use svn - are there instructions > somewhere that can tell me how to download

Re: Dynamic Entity Classes

2007-10-09 Thread Igor Vaynberg
with Salve you can do it like this: UserBalance User.getBalance() { return accountingService.getBalance (user); } because your User domain object would have access to accountingService. see http://salve.googlecode.com -igor On 10/9/07, Joe Toth <[EMAIL PROTECTED]> wrote: > This is a Hiberna

Re: Subclassing WebRequestCodingStrategy

2007-10-09 Thread John Patterson
Even just urlCodingStrategyForPath would be enough I think. On 9 Oct 2007, at 15:51, Matej Knopp wrote: I don't see why targetForRequest(RequestParameter) couldn't be non-final. Anyone objects? Matej On 10/9/07, John Patterson <[EMAIL PROTECTED]> wrote: Hi, I seem to be making progress with

Re: Subclassing WebRequestCodingStrategy

2007-10-09 Thread Matej Knopp
Thinking about it, probably better (and more solid) approach would be for you to copy the entire class (unless it references some package protected classes). -Matej On 10/9/07, John Patterson <[EMAIL PROTECTED]> wrote: > Just a bit more info on the problem... encoding allows me to override > the

Re: Subclassing WebRequestCodingStrategy

2007-10-09 Thread John Patterson
Just a bit more info on the problem... encoding allows me to override the equivalent method: rg.apache.wicket.IRequestTarget) */ public final CharSequence pathForTarget(IRequestTarget requestTarget) { // first check whether the target was mounted IRequ

Re: Subclassing WebRequestCodingStrategy

2007-10-09 Thread Matej Knopp
I don't see why targetForRequest(RequestParameter) couldn't be non-final. Anyone objects? Matej On 10/9/07, John Patterson <[EMAIL PROTECTED]> wrote: > Hi, > > I seem to be making progress with my custom URL scheme but have hit a > small wall. I have subclassed WebRequestCodingStrategy because I

Dynamic Entity Classes

2007-10-09 Thread Joe Toth
This is a Hibernate question, but Eelco's 'class reloading' post reminded me to ask on this list. I asked in the Hibernate forums, but received no responses. Maybe someone here has a similar problem or some thoughts/ideas. * The Problem Ok, so you have IoC where you inject services you want to u

Subclassing WebRequestCodingStrategy

2007-10-09 Thread John Patterson
Hi, I seem to be making progress with my custom URL scheme but have hit a small wall. I have subclassed WebRequestCodingStrategy because I want to keep the mountable page behaviour but just enhance it to return my own target if no mounts are found and default processing does not apply.

Re: Wicket Stuff

2007-10-09 Thread Ryan Sonnek
let's start with what error are you getting? On 10/9/07, anita nichols <[EMAIL PROTECTED]> wrote: > > I tried to create Sortable list using Wicket Stuff, but the > SortableListView give me an error. What do I do wrong here, below is the > code: > > import wicket.contrib.scriptaculous.*; > > > add(

Re: Custom URL strategy

2007-10-09 Thread John Patterson
Nice one. Cheers for your explanations. I am getting there slowly. On 9 Oct 2007, at 14:25, Matej Knopp wrote: Hi, see the response below On 10/9/07, John Patterson <[EMAIL PROTECTED]> wrote: Hi, As I am figuring out how to create my own IRequestCodingStrategy I have come across a few thin

Re: Custom URL strategy

2007-10-09 Thread Matej Knopp
Hi, see the response below On 10/9/07, John Patterson <[EMAIL PROTECTED]> wrote: > Hi, > > As I am figuring out how to create my own IRequestCodingStrategy I > have come across a few things which seem be suspicious IMHO. I could > be wrong with all of them but I thought I should bring them up...

Re: Custom URL strategy

2007-10-09 Thread John Patterson
Hi, As I am figuring out how to create my own IRequestCodingStrategy I have come across a few things which seem be suspicious IMHO. I could be wrong with all of them but I thought I should bring them up... These are all in WebRequestCodingStrategy This code... public final Reques

Re: Custom URL strategy

2007-10-09 Thread John Patterson
Thanks Matej, I went ahead and built a IRequestCodingStrategy that delegates the standard WebRequestCodingStrategy because I want my strategy to be used for every Bookmarkable page and not just ones that I mount. In fact my strategy needs to decide which Page is to be used _without_ using

Re: Wicket extension 1.3

2007-10-09 Thread Vit Rozkovec
Hi, the best way is to set up Maven and let it download all the required references. With maven, you can create quickstart project then and in its pom.xml add a dependency org.apache.wicket wicket-extensions 1.3.0-beta3 Regards Vitek anita nich

Re: 'tab' and 'enter' keyboard events.

2007-10-09 Thread Gerolf Seitz
do something like: don't know if you have to use onkeypress, onkeydown, onkeyup, but you get the idea. gerolf On 10/9/07, lizz <[EMAIL PROTECTED]> wrote: > > > I have a panel with some text fields and two buttons (button A and B) > I would like the 'ENTER' keyboard event to behave the same way a

Wicket extension

2007-10-09 Thread anita nichols
I got the wicket extension. Please disregard my question regarding the wicket extension anita

Wicket extension 1.3

2007-10-09 Thread anita nichols
Where can I get the Wicket 1.3 extension for my quickstart Where can I put those extension? Can I put it under Referenced Libraries? Thank you, Anita

Wicket Stuff

2007-10-09 Thread anita nichols
I tried to create Sortable list using Wicket Stuff, but the SortableListView give me an error. What do I do wrong here, below is the code: import wicket.contrib.scriptaculous.*; add(new SortableListView("item", items) { protected void populateItem(ListItem item)

'tab' and 'enter' keyboard events.

2007-10-09 Thread lizz
I have a panel with some text fields and two buttons (button A and B) I would like the 'ENTER' keyboard event to behave the same way as the 'tab' keyboard event (that is move on to the next text field) Currently button A is clicked when the the 'enter' key is pressed in a text field and I dont wan

Re: popup window using wicket

2007-10-09 Thread Swaroop Belur
Normally In wicket , the data that gets shown in ui components gets pulled from the models of the components. One way of doing ur reqt: After submitting the form containing the textfield ,just get its model value and use that value as a page parameter for example to render the base page again. wi

Re: Wicket Example

2007-10-09 Thread anita nichols
Thanks On 10/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > > instead of doing that, i'd suggest that you call the archetype correctly > with the right parameters then you should not need to change anything > afterwards : > > mvn *archetype*:create -DarchetypeGroupId=org.a

Re: AjaxFormChoiceComponentUpdatingBehavior doesn´t get event

2007-10-09 Thread Michael Laccetti
I suspect you need to do AjaxFormChoiceComponentUpdatingBehavior("onchange") { ... } or something similar. Mike SantiagoA wrote: I added an AjaxFormChoiceComponentUpdatingBehavior to my radioGroup. I thought it would handle the event, when a RadioButton is clicked. But when i click on a Radio

Re: AjaxFormChoiceComponentUpdatingBehavior doesn´t get event

2007-10-09 Thread Swaroop Belur
Try putting it on the radios instead of radio group . -swaroop On 10/9/07, SantiagoA <[EMAIL PROTECTED]> wrote: > > > I added an AjaxFormChoiceComponentUpdatingBehavior to my radioGroup. > I thought it would handle the event, when a RadioButton is clicked. > But when i click on a RadioButton th

new class reloading solution JavaRebel

2007-10-09 Thread Eelco Hillenius
Hi people, I haven't tried it myself yet, but Jevgeni Kabanov (from Aranea framework[1]) just released 'JavaRebel' which is a transparent class loading solution. It should work well with Wicket, since Wicket is a pure Java framework. Jevgeni is interested in user experiences and he'd like to writ

AjaxFormChoiceComponentUpdatingBehavior doesn´t get event

2007-10-09 Thread SantiagoA
I added an AjaxFormChoiceComponentUpdatingBehavior to my radioGroup. I thought it would handle the event, when a RadioButton is clicked. But when i click on a RadioButton the onUpdate-method is never reached. my Code: final RadioGroup radioGroup = new RadioGroup("group", new PropertyModel(th

Re: ModalWindow serialization problem

2007-10-09 Thread Benjamin Ernst
Sorry, I am quite busy right now. But I will find some time in the next days and than provide a quickstart. In the mean time we fixed the problem by saving the needed Objects in the Session-MetaData. And that seems to work. Thanks for your help! -Benjamin 2007/10/9, Matej Knopp <[EMAIL PROTECTE

Re: AutoCompleteTextField problem

2007-10-09 Thread Oliver Lieven
IMHO the AutoCompleteTextfield sets the value of your input field to the value selected in the autocomplete-list, but this is done via JavaScript and works only inside the browser. As long as you don't attach a special Ajax...Behaviour (eg. AjaxUpdateBehaviour) to your input field, the model wil

Re: Problem with form default button in IE

2007-10-09 Thread Christian Alejandro Marquez Grabia
After working some time on this, I got to fix the problem. Thanks anyway =), Christian On 10/8/07, Christian Alejandro Marquez Grabia <[EMAIL PROTECTED]> wrote: > > Hi all, and thanks in advanced for your attention. > > I'm having some problems with the default button in a form that is not > work

popup window using wicket

2007-10-09 Thread boyinamadhavi
Hi, please help me i have one popup window. That popup window contains one text field. how to get value from popup window to main window using apache wicket. thanks in advance madhavi -- View this message in context: http://www.nabble.com/popup-window-using-wicket-tf4594547.html#a13116633 Sent

Re: AutoCompleteTextField problem

2007-10-09 Thread Nino Saturnino Martinez Vazquez Wael
check this thread earlier today.. http://www.nabble.com/AutoCompleteTextfield---how-to-populate-two-input-fields-tf4592192.html#a13109510 Can you confirm that its not updated, have you debugged it? lizz wrote: I would like an auto complete text field for a class that implements Information

AutoCompleteTextField for problem

2007-10-09 Thread lizz
I would like an auto complete text field for a class that implements Information interface Address{ getCountry(); ... } I have a class Person that contains an address instance variable and getter and setter for that variable. (getAddress). I have some addresses and want to changes the persons

Re: Example source code?

2007-10-09 Thread Neil B. Cohen
Martijn Dashorst wrote: It is in the distribution. Read the readme that is contained inside, and look in the src sub dir. Martijn Missed that - thanks very much, nbc On 10/9/07, Neil B. Cohen <[EMAIL PROTECTED]> wrote: Is there a link where I can download sample wicket source code?

RE: Example source code?

2007-10-09 Thread Clay Lehman
SVN is super easy to use -- 1) Download TortoiseSVN (http://tortoisesvn.net/downloads) 2) make a folder (mine is "wicket-svn") 3) right click in the folder and go to SVN Checkout... 4) then put in the path to SVN and you will have all the code It's probably quicker and easier than any HTTP downlo

Re: Example source code?

2007-10-09 Thread Martijn Dashorst
It is in the distribution. Read the readme that is contained inside, and look in the src sub dir. Martijn On 10/9/07, Neil B. Cohen <[EMAIL PROTECTED]> wrote: > Is there a link where I can download sample wicket source code? Like for > the Wicket Phone book example? I don't use svn - are there i

Example source code?

2007-10-09 Thread Neil B. Cohen
Is there a link where I can download sample wicket source code? Like for the Wicket Phone book example? I don't use svn - are there instructions somewhere that can tell me how to download the code? thanks, nbc - To unsubscrib

how to forward request to an external URL

2007-10-09 Thread Nili Adoram
Hi all, Suppose I want to forward the HTTP request to some external url (NOT a wicket page, e.g. a JSP page). I want to end the request cycle at this point ( not include this URL inside my page). How can I simulate request.getRequestDispatcher(url).forward() within a wicket page? Thanks Nili

Re: Decouple parts of a form

2007-10-09 Thread Michael Sparer
Thanks a lot for your input guys, it really helped me a lot. I chose to use Kent's approach using a Validator that - by the way - could not be a static class as I had to access member variables outside the Validator. Thanks again and have a nice day Michael Kent Tong wrote: > > > Gerolf Seit

Question about rendering of the ModalWindow content

2007-10-09 Thread Alex Objelean
I've noticed that the content of the ModalWindow is being rendered even when the ModalWindow itself is not shown. I wonder if it is correct behavior. Any thoughts? Alex. -- View this message in context: http://www.nabble.com/Question-about-rendering-of-the-ModalWindow-content-tf4593821.html#a13

Re: ModalWindow serialization problem

2007-10-09 Thread Matej Knopp
More then 3 nested ModalWindows? Wow. Does this happen with the latest trunk? Also each modal window is supposed to by in own pagemap. Can you provide a quickstart? -Matej On 10/9/07, Benjamin Ernst <[EMAIL PROTECTED]> wrote: > Hi guys, > > we have a problem with some ModalWindows. We are using a

ModalWindow serialization problem

2007-10-09 Thread Benjamin Ernst
Hi guys, we have a problem with some ModalWindows. We are using a lot of them in our application and they are often nested in other ModalWindows. The problem is when we refer to the to the parent that creates the ModalWindow in this ModalWindow that parent-object is not same as the parent-object t

Re: Lazy loading pageable listview

2007-10-09 Thread Kent Tong
wfaler wrote: > > I have found a bunch of stuff around IDataProvider, DataView etc, but I > haven't found any meaningful examples that helps a great deal.. > Some sample code below. There is a whole chapter on this topic in my e-book (see my signature for location). public class LazyLoad exte

Re: Portlet howto

2007-10-09 Thread Patrick Gill
Ate Douma wrote: > > That was my initial attempt at it. > For Jetspeed, I have much improved/simplyfied this after I added > ResourceURL handling natively to the portal (internally), and I only need > to set a predefined > flag/parameter to tell it to use it (instead of creating a plain Render

Re: Decouple parts of a form

2007-10-09 Thread Kent Tong
Gerolf Seitz wrote: > > ditch the form and let CaptchaPanel extend FormComponentPanel. for the > captcha and do a check for the form in onBeforeRender (since it's not yet > added to the hierarchy in the constructor). > just use "getForm();" to check for the existence of an ancestor form. this >

Re: Portlet howto

2007-10-09 Thread Ate Douma
Patrick Gill wrote: Hi Ate and Charly, I'm working on the same thing. I'm currently using Liferay's implementation for ServletContextProvider (com.liferay.util.bridges.struts.LiferayServletContextProviderWrapper) . Ate Douma wrote: - in the LiferayToPortalBridgePortletResourceURLFactory you s

[RFE] Nested wicket:enclosure

2007-10-09 Thread Alex Objelean
Currently, wicket does not support nested wicket:enclosure tags. It would be very useful. What do you think? Thank you! Alex. -- View this message in context: http://www.nabble.com/-RFE--Nested-wicket%3Aenclosure-tf4593044.html#a13112204 Sent from the Wicket - User mailing list archive at Nabbl

Re: logout

2007-10-09 Thread Nino Saturnino Martinez Vazquez Wael
hhehe, using back browser in this case will just yield a page expired page, if you set it up you can tell it to show a login page instead... You might want to look into the simpleautorisation strategi here. tbt wrote: well it is the browser button that i'm concerned about :) I want it to be so

Re: Portlet howto

2007-10-09 Thread Patrick Gill
Hi Ate and Charly, I'm working on the same thing. I'm currently using Liferay's implementation for ServletContextProvider (com.liferay.util.bridges.struts.LiferayServletContextProviderWrapper) . Ate Douma wrote: > > - in the LiferayToPortalBridgePortletResourceURLFactory you seem to simply > g

Re: logout

2007-10-09 Thread tbt
well it is the browser button that i'm concerned about :) I want it to be something like a mail account where once you logout you can't use the back button in the browser to navigate inside the application(eg: yahoo mail). Nino.Martinez wrote: > > session.invalidate() and use setResponsePage t

Re: Wicket Example

2007-10-09 Thread Martijn Dashorst
On 10/9/07, anita nichols <[EMAIL PROTECTED]> wrote: > Ok I have my wicket 1.3 running smoothly, how do try the wicket example? Which example are we talking about? If it is the examples of the wicket website (i.e. the hello world, navomatic, drop down choice) then you can copy paste the code int

Re: Decouple parts of a form

2007-10-09 Thread Martijn Dashorst
Wicket allows nested forms because one component doesn't know if it is inside a form or not. This is typical for component frameworks that try to maximize component reuse and encapsulation. That the HTML spec says otherwise doesn't mean a lot to us, as we are looking at the Component part. The chi

Re: AutoCompleteTextfield - how to populate two input fields

2007-10-09 Thread Nino Saturnino Martinez Vazquez Wael
NP, waiting with excitement to hear if it works:) Oliver Lieven wrote: Thanks allot for your efforts and detailed answer! Sounds good, I'll give it a try. Nino.Martinez wrote: No what I meant was that when a user selects something in one of your auto complete fields they'll automatickly

Re: Decouple parts of a form

2007-10-09 Thread Gerolf Seitz
i agree with martin, ditch the form and let CaptchaPanel extend FormComponentPanel. for the captcha and do a check for the form in onBeforeRender (since it's not yet added to the hierarchy in the constructor). just use "getForm();" to check for the existence of an ancestor form. this method throws

Re: out of memory - wicket 1.2.6

2007-10-09 Thread Dipu Seminlal
we restart every time we redeploy. Dipu On 10/8/07, Jeremy Levy <[EMAIL PROTECTED]> wrote: > > Are you redeploying often with out restarting? > > Jeremy > > On 10/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> > wrote: > > > > At my former job, we had a memory leak not in our own

Re: Decouple parts of a form

2007-10-09 Thread martinf
Michael Sparer wrote: > > I know from the wicket 1.3 API that forms can be nested and I also know > that each form has to be submitted separately. > My problem therefore is that the captcha-form's onSubmit button doesn't > get called if someone submits the outside form (= the form the componen

Re: AutoCompleteTextfield - how to populate two input fields

2007-10-09 Thread Oliver Lieven
Thanks allot for your efforts and detailed answer! Sounds good, I'll give it a try. Nino.Martinez wrote: > > No what I meant was that when a user selects something in one of your > auto complete fields they'll automatickly select something in both, > might have been a little scares on infor

Re: Graceful handling of ajax after session expiration

2007-10-09 Thread Andrew Klochkov
Shouldn't we create a JIRA issue for that? leok wrote: I looked into this a bit more, and it looks like WebRequestCycleProcessor.resolve(RequestCycle, RequestParameters) always checks to see if an Ajax request is being made before a Page gets to be instantiated and stored in the session. If the

Re: Google Maps and AJAX

2007-10-09 Thread martinf
Hi, how shure are you that its google not responding, have you been debugging in into the http calls? http://tamperdata.mozdev.org/ or http://livehttpheaders.mozdev.org/ might be usefull for that. Loading googles javascript is a twostep process first is the call to http://maps.google.com/maps?fi

Re: Custom URL strategy

2007-10-09 Thread Matej Knopp
IIRC WebRequestCodingStrategy is used for non-mounted pages only and it delegates the encoding/decoding for mounted pages to IRequestTargetUrlCodingStrategy. -Matej On 10/9/07, John Patterson <[EMAIL PROTECTED]> wrote: > Hi, > > I want to build a custom url encoder fro bookmarkable pages and have