wicket security

2008-04-20 Thread NTS
Hi, I am trying Swarm on a test project as per http://wicketstuff.org/confluence/display/STUFFWIKI/Swarm+and+Acegi+HowTo I got the source and build it in eclipse. When I started the server, I am getting injection problem. I checked the libraries and they are newer than that specified in the

Wicket Security

2008-04-20 Thread NTS
Hi, I am trying Swarm on a test project as per http://wicketstuff.org/confluence/display/STUFFWIKI/Swarm+and+Acegi+HowTo I got the source and build it in eclipse. When I started the server, I am getting injection problem. I checked the libraries and they are newer than that specified in the

Re: SWARM OR wicket-auto-roles ?

2008-04-20 Thread Stephan Koch
I just got started with SWARM, but imho it would be fairly easy to do what you want. You would have to provide an implementation of LoginContext that checks against your auth token in the LoginContext#login() method, and a login page that takes the auth token as a parameter. In the login page,

FileUploadField loses user input when form validation fails

2008-04-20 Thread Zach Cox
We have a large form that contains two FileUploadFields along with many other text fields. If validation fails on one of those other text fields, the form is re-rendered along with feedback messages. When the form is re-rendered, the file path name that the user specified for the

Re: checkboxes and Link

2008-04-20 Thread Mathias P.W Nilsson
Thanks but this will add a checkbox to select all not a link. I want to select all with a link and not a checkbox -- View this message in context: http://www.nabble.com/checkboxes-and-Link-tp16757399p16795205.html Sent from the Wicket - User mailing list archive at Nabble.com.

Wicket saving files

2008-04-20 Thread Mathias P.W Nilsson
Hi! I'm using the getServletContext().getRealPath( / ) for saving uploaded images, xml and so on for my wicket application. My problem is that when I deploy my application all this files will be deleted. How can I save my files in an external folder within wicket and load, show images in

RequiredValidator

2008-04-20 Thread Sergey Podatelev
Hello Wicket people, I'm sorry for the dumb question, but I've failed to find the solution myself. The problem is that I want a custom RequiredValidator message, but when I add a RequiredValidator=My happy message in the RegisterPage.properties file, nothing changes. The system sees the file

multiple DropDownChoice

2008-04-20 Thread i ii
is example available for multiple DropDownChoice where one menu changes value in other? i look at http://wicketstuff.org/wicket13/ but see no example

Re: RequiredValidator

2008-04-20 Thread Mathias P.W Nilsson
What version of wicket are you using. From the 1.2 snapshot wich was a while ago = This validator has been deprecated in favor of FormComponent.setRequired(boolean) Validator that ensures a component has a non-null and non-empty value. If the component's value is

Re: RequiredValidator

2008-04-20 Thread Sergey Podatelev
Yep, that was it. Thanks a bunch, now I gotta enhance my googling skills. On Sun, Apr 20, 2008 at 8:20 PM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: What version of wicket are you using. From the 1.2 snapshot wich was a while ago = This validator has

Re: checkboxes and Link

2008-04-20 Thread Michael Sparer
then look at the code CheckGroupSelector generates, it's no hard work to add a link instead of a checkbox. in the oncomponenttag method change the checkComponentTag to a and the checkComponentTagAttribute to whatever you like. use the same javascript in the onclick attribute and append a return

Re: Wicket saving files

2008-04-20 Thread Michael Sparer
You can save your images to whatever folder you like on your hard disk, if that folder is outside of your webapp root context they won't be deleted on re-deploy. I believe the problem you're facing is serving the static content. i'd suggest to either let apache serve the images (if you're using

Re: multiple DropDownChoice

2008-04-20 Thread Per Newgro
Am Sonntag, 20. April 2008 18:19:33 schrieb i ii: is example available for multiple DropDownChoice where one menu changes value in other? i look at http://wicketstuff.org/wicket13/ but see no example You could do this in your model. Both ddcs could point to same business model. If a selection

Re: FileUploadField loses user input when form validation fails

2008-04-20 Thread Igor Vaynberg
i dont think you can, that is a security feature of the browser. -igor On Sun, Apr 20, 2008 at 7:48 AM, Zach Cox [EMAIL PROTECTED] wrote: We have a large form that contains two FileUploadFields along with many other text fields. If validation fails on one of those other text fields, the

Form submit with a FileUploadField appears not to work

2008-04-20 Thread Doug Leeper
I just recently upgraded to 1.3.3 from 1.3.2 as there was a bug that was fixed in 1.3.2 (https://issues.apache.org/jira/browse/WICKET-1442) that I was getting. However, in my AjaxButton.onSubmit( AjaxRequestTarget target, Form form ) when I call my FileUploadField.getFileUpload() it is always

Re: Form submit with a FileUploadField appears not to work

2008-04-20 Thread Igor Vaynberg
fileuploadfields are not supported with ajax -igor On Sun, Apr 20, 2008 at 10:12 AM, Doug Leeper [EMAIL PROTECTED] wrote: I just recently upgraded to 1.3.3 from 1.3.2 as there was a bug that was fixed in 1.3.2 (https://issues.apache.org/jira/browse/WICKET-1442) that I was getting.

Re: Form submit with a FileUploadField appears not to work in a Modal Window

2008-04-20 Thread Michael Sparer
the problem is that you cannot upload a file by means of ajax. you'll have to use something like a hidden iframe that takes care of the file upload. as far as i know this topic has already been discussed on the mailing list, i also think in the wicketstuff (or wicket extensions) project there's

Re: multiple DropDownChoice

2008-04-20 Thread Michael Sparer
what about that one: http://wicketstuff.org/wicket13/ajax/choice.1 ;-) regards, Michael i ii wrote: is example available for multiple DropDownChoice where one menu changes value in other? i look at http://wicketstuff.org/wicket13/ but see no example - Michael Sparer

Re: checkboxes and Link

2008-04-20 Thread Mathias P.W Nilsson
Thanks I have looked at it and this is what I got so far protected void onComponentTag(ComponentTag tag) { checkComponentTag(tag, a); checkComponentTagAttribute(tag, href, #); CheckGroup group = (CheckGroup)findParent(CheckGroup.class);

Re: Wicket saving files

2008-04-20 Thread Mathias P.W Nilsson
No you are perfectly right. I have now Springed a path into the wicket that holds the folder for my external folder. The problem arises when trying to show an image in the wicket applet from the folder but I see you are suggesting to get it via a servlet. I'll have to look into this for testing

Customize TinyMCE init settings

2008-04-20 Thread Zach Cox
I'm using the wicket-contrib-tinymce package and need to configure some of the settings that go into the init JavaScript: tinyMCE.init({ //settings from TinyMCESettings.toJavaScript are put here }); Specifically I need to set the content_css setting to get the same styles in the editor as on

Re: multiple DropDownChoice

2008-04-20 Thread Frank Bille
http://wicketstuff.org/wicket13/ajax/choice On Sun, Apr 20, 2008 at 6:19 PM, i ii [EMAIL PROTECTED] wrote: is example available for multiple DropDownChoice where one menu changes value in other? i look at http://wicketstuff.org/wicket13/ but see no example

Dynamic Wizards

2008-04-20 Thread Michael Laccetti
Quick question about the dynamic wizard: is passing in the model via constructor the only way to share a model between model steps? Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Wicket saving files

2008-04-20 Thread Jeremy Thomerson
What has worked very well for us is to have all of the static uploaded content (pictures, documents, movies) saved elsewhere on the server, as you have done, and then served by Apache. If you don't use Apache as a frontend (or whatever plain HTTP server), then I believe you can still serve it

Re: clarification on page versioning

2008-04-20 Thread Jeremy Thomerson
Another option is to add both panels, and have each override isVisible(). This makes the Login and CurrentProfile panels smarter, and keeps their logic more encapsulated (allowing these panels to be used elsewhere without having to copy-paste the logic about being signed in). i.e: // remove your

RE: multiple DropDownChoice

2008-04-20 Thread i ii
thank you Date: Sun, 20 Apr 2008 21:32:48 +0200 From: [EMAIL PROTECTED] To: users@wicket.apache.org Subject: Re: multiple DropDownChoice http://wicketstuff.org/wicket13/ajax/choice On Sun, Apr 20, 2008 at 6:19 PM, i ii [EMAIL PROTECTED] wrote: is example available for multiple

Re: Session created every time

2008-04-20 Thread mfs
Ah i see..i thought ExternalLink was statefull, how can one tell if a particular is stateless or otherwise, by looking at the definiton of the components ? Thanks anyways.. igor.vaynberg wrote: you dont have any stateless components on that page... -igor On Sat, Apr 19, 2008 at 10:12

Re: Session created every time

2008-04-20 Thread mfs
Also i am bind() to make it permanent..i hope there are no implications to it.. mfs wrote: Ah i see..i thought ExternalLink was statefull, how can one tell if a particular is stateless or otherwise, by looking at the definiton of the components ? Thanks anyways.. igor.vaynberg

Reuse Link in Wicket

2008-04-20 Thread Mathias P.W Nilsson
I want to reuse a Link in wicket. I have a link that set response page to another class. I will have the same link for image and label. In some rare occations I can't add the image and label to the link but I want to use the link for both the label and the image. Is this possible? -- View this

Re: Panel problem

2008-04-20 Thread neo anderson
Does this mean the Panel class itsself can not contain another Panel component inside its own class? For instance, A.html wicket:panel div wicket:id=accordionMenu/ /wicket:panel A.class public class A extends Panel{ public A(String id){ super(id); ...

Re: Panel problem

2008-04-20 Thread Igor Vaynberg
a panel can contain any other panel, but it has to be attached to empty tags since the whole point of the panel is to inject what goes between the tags. -igor On Sun, Apr 20, 2008 at 4:09 PM, neo anderson [EMAIL PROTECTED] wrote: Does this mean the Panel class itsself can not contain another

Re: Reuse Link in Wicket

2008-04-20 Thread Igor Vaynberg
subclass link and implement onclick in the subclass -igor On Sun, Apr 20, 2008 at 3:05 PM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: I want to reuse a Link in wicket. I have a link that set response page to another class. I will have the same link for image and label. In some rare

How to test setResponsePage

2008-04-20 Thread Ned Collyer
Hi, I'd like to unit test a setResponsePage from inside one of my panels using the wicket tester. I have an EditPanel, which on submit of its form calls setResponsePage(SomeComplexPage.class, someParameters) I only want to test the Panel's behaviour (ie, does the form behave correctly, are the

Re: How to test setResponsePage

2008-04-20 Thread Ned Collyer
For those that are interested, I've extended the wicketTester with this method public void assertNextPageIs(final Class clazz) { final IPageFactory pageFactory = getApplication().getSessionSettings().getPageFactory(); getApplication().getSessionSettings().setPageFactory(new

Re: How to test setResponsePage

2008-04-20 Thread Frank Bille
You could also look at the RequestCycle and check that a BookmarkablePageRequestTarget was set with correct page class. Frank On Mon, Apr 21, 2008 at 7:33 AM, Ned Collyer [EMAIL PROTECTED] wrote: For those that are interested, I've extended the wicketTester with this method public