Re: Wasp

2008-05-25 Thread Maurice Marrink
On Fri, May 23, 2008 at 6:50 PM, Uwe Schäfer <[EMAIL PROTECTED]> wrote: > Maurice Marrink schrieb: > >> Yes that is exactly what wasp is for. > > cool, at least one thing i got right ;) > >> You can either extend WaspAuthorizationStrategy or >> ClassAuthorizationStrategy. The latter provides a basi

ModalWindow redirect after closing

2008-05-25 Thread Cristi Manole
Hello, I've searched the archives and it seams I'm looking exactly for this : https://issues.apache.org/jira/browse/WICKET-1368 Is there any workaround I could try? Tks, Cristi Manole

Re: missing something: getting AjaxCheckBox to recheck value from model as its redrawn?

2008-05-25 Thread Thomas Mäder
What value are you returning from the model? In CheckBox.java, I find this: final String value = getValue(); if (value != null) { try { if (Strings.isTrue(value)) { tag.put("checked", "checked");

Re: (Class>) casting troubles

2008-05-25 Thread Gwyn Evans
Yes, that's fine as long as you're aware of the GenericLink alternative, but if you're not, then when you auto-complete L[i[n[k]]], if you use LinkGeneric, it'll show up whereas if GenericLink, it won't. /Gwyn On Sat, May 24, 2008 at 9:51 PM, Matej Knopp <[EMAIL PROTECTED]> wrote: > I don't buy t

Re: filter for data in security layer

2008-05-25 Thread Maurice Marrink
On Sat, May 24, 2008 at 11:11 AM, Andrea Jahn <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > No I think(hope) I got it. I've implemented an example based on my earlier > created SecureLink example. > There's a DataView. The items area Locations. For each item a delete link is > created. Users with

RE: (Class>) casting troubles

2008-05-25 Thread Hoover, William
+1 This seems to be the best option so far. It's confusing to see a bunch of subclasses whose only purpose is to avoid generic type definitions. A separate dependency makes sense. If anyone is that concerned with having to define void generic types they can add the dependency. -Original Messa

why the datepicker sample doesn`t work

2008-05-25 Thread shrimpywu
i am useing wicket 1.3.3 and try to follow the sample as below HTML: Java: TextField dateField = new TextField("date", Date.class); dateField.setRequired(true); add(dateField); DatePicker dp = new DatePicker("datePicker", dateField); add(dp); but it complain do

Wicket i18n options

2008-05-25 Thread Erik van Oosten
Hi, As there was no complete overview of Wicket's i18n options (even Wicket in Action only lists a few), I decided to write an article on it. http://day-to-day-stuff.blogspot.com/2008/05/wicket-internationalization.html Feedback is welcome! Regards, Erik. -- Erik van Oosten http://day-to

Re: ModalWindow redirect after closing

2008-05-25 Thread James Carman
Have you tried using an on close handler to the window to do the redirect? On Sun, May 25, 2008 at 5:32 AM, Cristi Manole <[EMAIL PROTECTED]> wrote: > Hello, > > I've searched the archives and it seams I'm looking exactly for this : > https://issues.apache.org/jira/browse/WICKET-1368 > > Is there

Re: Wicket i18n options

2008-05-25 Thread Eirik Rude
This is a fantastic site. Excellent work Erik. I will definitely link to your site. Thanks, Eirik Rude http://www.i18now.com On Sun, May 25, 2008 at 9:09 AM, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Hi, > > As there was no complete overview of Wicket's i18n options (even Wicket in > Actio

Re: Wicket i18n options

2008-05-25 Thread Eyal Golan
Great stuff !! Thanks, Should be put in Wiki. On Sun, May 25, 2008 at 4:09 PM, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Hi, > > As there was no complete overview of Wicket's i18n options (even Wicket in > Action only lists a few), I decided to write an article on it. > > > http://day-to-day-

Re: Wicket i18n options

2008-05-25 Thread Uwe Schäfer
Eyal Golan schrieb: Great stuff !! Should be put in Wiki. +1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ModalWindow redirect after closing

2008-05-25 Thread Cristi Manole
yup. didn't work for me. did it work for you? On Sun, May 25, 2008 at 4:10 PM, James Carman <[EMAIL PROTECTED]> wrote: > Have you tried using an on close handler to the window to do the redirect? > > On Sun, May 25, 2008 at 5:32 AM, Cristi Manole <[EMAIL PROTECTED]> > wrote: > > Hello, > > > > I

Re: ModalWindow redirect after closing

2008-05-25 Thread Cristi Manole
I think the problem is you can't go out of the ajax target with the redirect. i'm sure i'm talking non-sense:) anyways, what i did is implement the page i wanned to redirect to as a panel and do the old replacewith stunt and replace the current panel (that creates the modal) with the new panel. si

Re: ModalWindow redirect after closing

2008-05-25 Thread James Carman
I got it to work for me. In my ajax button on my popup window contents, I close the window. Then, in the on window close handler, I do the redirect. On Sun, May 25, 2008 at 10:19 AM, Cristi Manole <[EMAIL PROTECTED]> wrote: > I think the problem is you can't go out of the ajax target with the >

Re: ModalWindow redirect after closing

2008-05-25 Thread Cristi Manole
i'll try that. tks! Cristi Manole On Sun, May 25, 2008 at 5:22 PM, James Carman <[EMAIL PROTECTED]> wrote: > I got it to work for me. In my ajax button on my popup window > contents, I close the window. Then, in the on window close handler, I > do the redirect. > > On Sun, May 25, 2008 at 10:1

Re: (Class>) casting troubles

2008-05-25 Thread Matej Knopp
I'm pretty sure it's not that difficult to look at the class hierarchy given that Link would extend GenericLink. I don't think this justifies the name, LinkGeneric just sounds too weird to me. -Matej On Sun, May 25, 2008 at 12:39 PM, Gwyn Evans <[EMAIL PROTECTED]> wrote: > Yes, that's fine as lon

Buehler? Packaged resources

2008-05-25 Thread David Nedrow
OK, I asked about this earlier, but maybe the question didn't make sense. Asking another, and perhaps better, way: What problems do packaged resources address? I'm unsure as to why I would encapsulate resources in the package, rather than using them as I normally would via the WEB-INF tree

Re: (Class>) casting troubles

2008-05-25 Thread John Patterson
Matej Knopp-2 wrote: > > I don't buy the autocompletion as argument. > Yeah it is a bit crap. -- View this message in context: http://www.nabble.com/%28Class%3C--extends-Page%3C-%3E%3E%29--casting-troubles-tp17355847p17459443.html Sent from the Wicket - User mailing list archive at Nabble.

Re: ModalWindow redirect after closing

2008-05-25 Thread Igor Vaynberg
instead of redirect you can just target.appendjavascript("window.location='"+urlfor(mypage.class/mypage)+"';"); -igor On Sun, May 25, 2008 at 6:10 AM, James Carman <[EMAIL PROTECTED]> wrote: > Have you tried using an on close handler to the window to do the redirect? > > On Sun, May 25, 2008 at

Re: Buehler? Packaged resources

2008-05-25 Thread Igor Vaynberg
On Sun, May 25, 2008 at 9:05 AM, David Nedrow <[EMAIL PROTECTED]> wrote: > > What problems do packaged resources address? they address encapsulation. suppose you want to use a 3rd party component in your webapp... in most other frameworks you would have to put the jar on the classpath, than copy

Re: Wicket i18n options

2008-05-25 Thread Scott Swank
+1 On Sun, May 25, 2008 at 6:44 AM, Eyal Golan <[EMAIL PROTECTED]> wrote: > Great stuff !! > Thanks, > Should be put in Wiki. > > > On Sun, May 25, 2008 at 4:09 PM, Erik van Oosten <[EMAIL PROTECTED]> > wrote: > >> Hi, >> >> As there was no complete overview of Wicket's i18n options (even Wicket i

Re: ModalWindow redirect after closing

2008-05-25 Thread Cristi Manole
nope, that does not work for sure. that's what i've been trying. On Sun, May 25, 2008 at 7:34 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > instead of redirect you can just > > > target.appendjavascript("window.location='"+urlfor(mypage.class/mypage)+"';"); > > -igor > > On Sun, May 25, 2008 at

Re: ModalWindow redirect after closing

2008-05-25 Thread Igor Vaynberg
what does it do? -igor On Sun, May 25, 2008 at 9:58 AM, Cristi Manole <[EMAIL PROTECTED]> wrote: > nope, that does not work for sure. that's what i've been trying. > > On Sun, May 25, 2008 at 7:34 PM, Igor Vaynberg <[EMAIL PROTECTED]> > wrote: > >> instead of redirect you can just >> >> >> target

Re: Wicket i18n options

2008-05-25 Thread Erik van Oosten
Eyal, Uwe, Scott, I won't stop you! Actually, when I was more then half way I realized that the wiki might have been a better place for this. But by then, it was too late to change the language and start over. Regards, Erik. Scott Swank wrote: +1 On Sun, May 25, 2008 at 6:44 AM, Eyal

decode() in WebRequestCodingStrategy

2008-05-25 Thread reikje
I am trying to implement a custom WebRequestCodingStrategy. In the decode methode, I would like to add some custom parameters in the RequestParameters object that is returned. I can add whatever I want in addBookmarkablePageParameters(..) - perfect. However, all of my parameters are completly igno

Re: ModalWindow redirect after closing

2008-05-25 Thread Cristi Manole
it asks the user for the confirmation (like pressing F5 when the modal is being displayed) maybe i was not certain, it works but not straight fw. On Sun, May 25, 2008 at 8:01 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > what does it do? > > -igor > > On Sun, May 25, 2008 at 9:58 AM, Cristi Man

Re: ModalWindow redirect after closing

2008-05-25 Thread Cristi Manole
where "certain" <=> "clear" On Sun, May 25, 2008 at 8:19 PM, Cristi Manole <[EMAIL PROTECTED]> wrote: > it asks the user for the confirmation (like pressing F5 when the modal is > being displayed) > > maybe i was not certain, it works but not straight fw. > > > On Sun, May 25, 2008 at 8:01 PM, Ig

Re: ModalWindow redirect after closing

2008-05-25 Thread Igor Vaynberg
have you tried window.top.location instead of window.location? never really tried to do this myself, just throwing out guesses -igor On Sun, May 25, 2008 at 10:19 AM, Cristi Manole <[EMAIL PROTECTED]> wrote: > where "certain" <=> "clear" > > On Sun, May 25, 2008 at 8:19 PM, Cristi Manole <[EMAIL

Re: why the datepicker sample doesn`t work

2008-05-25 Thread Tim Russell
Try dateField.add(new DatePicker()); I suspect you have a version mismatch -- using 1.2 examples for 1.3.3 Cheers, Tim On 25 May 2008, at 25/05/2008 1:54PM, shrimpywu wrote: i am useing wicket 1.3.3 and try to follow the sample as below HTML: Java: TextField dateField = new TextFi

Re: Detachable confusion

2008-05-25 Thread Maurice Marrink
Typically when using DataTables you let the IDataProvider use your dao. to return an iterator over the objects (users in this case) When you use SortableDataProvider You need to provide an ISortState. SingleSortState is a very basic implementation of this, you could build your own by wrapping a ma

Re: Testing components not added directly to page

2008-05-25 Thread Maurice Marrink
An easy way would be to check them against the expected html output. See for example WicketTestCase#assertResultPage Maurice On Fri, May 23, 2008 at 7:56 PM, Ryan O'Hara <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to test a component that is added to another component that is > added to th

Re: Problems disabling componets and submitting them to validation

2008-05-25 Thread Maurice Marrink
This sounds very strange. If you disable a component the model value will still be rendered to the html. disabled is used differently by different component components, for example a disabled textfield will add a disabled attribute to the html output but a disabled link will replace the tag with a

Re: ModalWindow redirect after closing

2008-05-25 Thread Cristi Manole
no, but since James Carman said his solution works, i'm fine with that and I'll use that. + i'm certain anything related to adding something the target won't work. On Sun, May 25, 2008 at 8:31 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > have you tried window.top.location instead of window.loc

Re: Benefit of JavaScriptReference, etc..?

2008-05-25 Thread Maurice Marrink
In the case of custom components there usually is a tight binding :) Using JSR allows you to neatly package everything in a jar and distribute your component. Not saying that is the only thing you should use it for, its just one usecase. Maurice On Sun, May 25, 2008 at 2:09 AM, David Nedrow <[EM

Re: Wicket i18n options

2008-05-25 Thread Scott Swank
You did the hard part. I'll put it in the wiki this weekend. - Scott On Sun, May 25, 2008 at 10:07 AM, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Eyal, Uwe, Scott, > > I won't stop you! > > Actually, when I was more then half way I realized that the wiki might have > been a better place for th

newbie swarm qs

2008-05-25 Thread Tim Russell
I'm trying to get a feel of how suitable swarm is for an application - particularly how much support for what we need is handled by swarm/ wasp and how much we need to write ourselves. swarm looks good, eg http://wicketstuff.org/confluence/display/STUFFWIKI/Getting+started+with+Swarm At the m

Re: Wicket i18n options

2008-05-25 Thread Eelco Hillenius
Excellent! I didn't even know about that new feature (nested tags nested in wicket:message). Is that really only in 1.4? Eelco On Sun, May 25, 2008 at 6:09 AM, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Hi, > > As there was no complete overview of Wicket's i18n options (even Wicket in > Action

Re: newbie swarm qs

2008-05-25 Thread Maurice Marrink
On Sun, May 25, 2008 at 8:40 PM, Tim Russell <[EMAIL PROTECTED]> wrote: > I'm trying to get a feel of how suitable swarm is for an application - > particularly how much support for what we need is handled by swarm/wasp and > how much we need to write ourselves. > swarm looks good, eg > http://wicke

Re: Buehler? Packaged resources

2008-05-25 Thread David Nedrow
On May 25, 2008, at 12:42 PM, Igor Vaynberg wrote: On Sun, May 25, 2008 at 9:05 AM, David Nedrow <[EMAIL PROTECTED]> wrote: What problems do packaged resources address? they address encapsulation. suppose you want to use a 3rd party component in your webapp... in most other frameworks you

Re: Wicket i18n options

2008-05-25 Thread Erik van Oosten
Eelco Hillenius wrote: Excellent! I didn't even know about that new feature (nested tags nested in wicket:message). Is that really only in 1.4? Eelco Its in the release notes! Actually, in my current project it is the reason for switching to 1.4 But we're having fun with the generics as wel

WicketTester : getHomePage returns Application

2008-05-25 Thread Izak Wessels
Could somebody please explain to me wicketTester.getApplication().getHomePage() returns a class that is an instance of my main Application class? The reason that I ask, is that I have a test case that ends up calling the constructor of the BookmarkablePageRequestTarget and it tries to check if P

Multi-window application problem

2008-05-25 Thread Jürgen Lind
Hi, I am currently evaluating Wicket for our next project and so far, Wicket has met or exceeded all my expectations. A very good and intuitive framework! However, for some time now, I am stuck with getting my test application to work in multi-window mode. The use-case is quite standard: I have

Re: Multi-window application problem

2008-05-25 Thread Igor Vaynberg
seems like a bug. please create a jira ticket with the quickstart attached. -igor On Sun, May 25, 2008 at 1:14 PM, Jürgen Lind <[EMAIL PROTECTED]> wrote: > Hi, > > I am currently evaluating Wicket for our next project and so far, Wicket has > met or exceeded all my expectations. A very good and i

Re: newbie swarm qs

2008-05-25 Thread Tim Russell
On 25 May 2008, at 25/05/2008 7:57PM, Maurice Marrink wrote: You need to assign principals to subjects yourself in the LoginContext, Swarm does not make any automatic assumptions for you. Ok. - can I set up two different ComponentPermissions for two instances of the same type of component

Re: Wicket i18n options

2008-05-25 Thread Eelco Hillenius
> Its in the release notes! Yeah, I should've read those better. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Wicket i18n options

2008-05-25 Thread Eelco Hillenius
On Sun, May 25, 2008 at 1:58 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: >> Its in the release notes! > > Yeah, I should've read those better. Though it surprises me that there would be anything other than generics in 1.4. The deal was very explicitly to only add generics in 1.4, and (other) ne

Wicket properties file

2008-05-25 Thread Cristi Manole
Hello, I have a page with a properties file associated with it and a panel with another properties file. When i display the panel on some page (with no properties), wicket works as expected : it loads the properties from the properties file associated with the panel. But when I have a modal wind

Re: Wicket properties file

2008-05-25 Thread Cristi Manole
correction : instead of But when I have a modal window displaying the panel on the page with an associated properties file, the *properties of the modal* will override those for the panel (obviously, those having the same name). -> properties of the page containing the modal On Mon, May 26, 2008

Re: WicketTester : getHomePage returns Application

2008-05-25 Thread Maurice Marrink
According to the code it returns a DummyHomePage which is most definitely a Page. Are you supplying WicketTester with an Application of your own? What wicket version are you running? Maurice On Sun, May 25, 2008 at 10:00 PM, Izak Wessels <[EMAIL PROTECTED]> wrote: > > Could somebody please explai

DropDownChoice and getting a form inside onSelectionChanged method

2008-05-25 Thread Jakub P. Nowak
Hello, In the following piece of code, I have a DropDownChoice instance which triggers specific actions (a page redirect) whenever its state changes. http://pastie.caboo.se/203169 Inside 'onSelectionChanged' method, I have to get form's content a user may have provided; namely 'number' and 'name

Re: Facebook Wicket Integration

2008-05-25 Thread caoanhkiet
Thanks for your reply. I found my error, you right that my client variable is error. Because my configure facebook is wrong. TH Lim wrote: > > Check why your client variable is null. I think the problem lies there. > > > caoanhkiet wrote: >> >> Hi, >> I have been following >> http://cwiki.apa

Re: Wicket i18n options

2008-05-25 Thread Erik van Oosten
Yes, it surprised me to. I guess the best way out is to add this to 1.3 as well :) Erik. Eelco Hillenius wrote: > Though it surprises me that there would be anything other than > generics in 1.4. The deal was very explicitly to only add generics in > 1.4, and (other) new features would go t