Re: Getting User from Session

2008-07-28 Thread Maurice Marrink
Yes, one of the ideas behind wicket is that you create your own custom wicketsession to access your session objects in a typesafe way. Using a propertymodel like Jeremy showed is a very elegant way of getting back that information. Maurice On Mon, Jul 28, 2008 at 9:39 PM, Jeremy Thomerson

Re: Page specific authorization

2008-07-28 Thread Maurice Marrink
Nope, no other info then class is available at that time since the component is not yet fully constructed it is to dangerous to pass that around even though we could. So use a custom check in the constructor of your subclass, that way you have access to all the information you need. Maurice On

Re: Having problem in modal window.setWindowClosedCallback

2008-07-27 Thread Maurice Marrink
There are some things not entirely clear from your code, that and the fact that i have never worked with radio or radiogroup before makes any answer i can give an estimated guess at most, but here goes :). What i gather from the code in radiogroup i would say that the value is automatically set

Re: Page specific authorization

2008-07-27 Thread Maurice Marrink
On Sun, Jul 27, 2008 at 4:30 PM, Benny Weingarten [EMAIL PROTECTED] wrote: Hello. First let me congratulate this forum - I have always gotten wonderful responses. In my application I have a bookmarkable picture viewing page. That page should only be viewed by users who have permission. The

Re: How to create a Popup Window with a submit Link (Or at least get the similiar functionality)?

2008-07-22 Thread Maurice Marrink
On Tue, Jul 22, 2008 at 7:51 PM, srizmi [EMAIL PROTECTED] wrote: Got a couple of questions: 1. BookmarkablePageLink - shouldn't events be exposed so that the target page [ page 2 in Joe's example ] is bookmarkable and still the user inputs could be passed as pageParameters?

Re: How to create a Popup Window with a submit Link (Or at least get the similiar functionality)?

2008-07-21 Thread Maurice Marrink
Try an AjaxSubmitLink. And make sure that page2 is using the models that page 1 uses to store the dates in. If you want to o back and forth between those 2 pages it is a good idea to pass a page reference between them so when they are serialized they don't get out of sync with each other. Maurice

Re: modal window navigation?

2008-07-20 Thread Maurice Marrink
For extra credit... what is the easiest way to make the modal window background darker? Do I need to extend the modal window and include a different CSS file? what is the best practice for this kind of thing? thanks! ryan Making the background darker is a bit tricky but it can be done in

Re: Field level Authorization strategy suggestions?

2008-07-19 Thread Maurice Marrink
Well, there are a couple directions you can take. 1 If the number of admin fields is relatively small you could try grouping those fields together in a panel for each page that has these admin fields and then simply apply your security to the panel instead of to the individual fields. (Works best

Re: swarm/wasp - using guest auto login

2008-07-18 Thread Maurice Marrink
Hmm, usually there is no need to change the guest permissions on the fly. In that case you can just implement ISecurePage on every page that needs to be secure and not on the guest pages. On Fri, Jul 18, 2008 at 10:14 AM, Gabriel Bucher [EMAIL PROTECTED] wrote: hi all, I did some test to

Re: Changing the DatePattern in DataTable

2008-07-16 Thread Maurice Marrink
Extend one of the defaultcolumns, like propertycolumn, and override onpopulateitem. Something like this: public void populateItem(Item item, String componentId, IModel model) { item.add(new Label(componentId, createLabelModel(model)) {

Re: modalWindow disable drag drop

2008-07-13 Thread Maurice Marrink
Not at the moment AFAIK. You could file an RFE. Maurice On Sat, Jul 12, 2008 at 9:38 PM, Beyonder Unknown [EMAIL PROTECTED] wrote: Hi Users, Is there a way to make the modalWindow unmovable? (disable the drag and drop?). Thanks, Allan -- The only constant in life is change.

Re: modal CloseButtonCallback returning old value

2008-07-08 Thread Maurice Marrink
If you have a quickstart someone could take a look at it. Maurice On Mon, Jul 7, 2008 at 9:43 PM, taygolf [EMAIL PROTECTED] wrote: Still having this issue. Can anyone tell me what it might be. I think it is a cache issue but I am really not sure Thanks T taygolf wrote: hey guys. I

Re: Binding property of a component

2008-07-08 Thread Maurice Marrink
Sorry, there is nothing currently in wicket that does what you want. PropertyModel might get you there partially but you would still need to hack a lot to get it working the way you want. Maybe there is an external library that does what you want, i don't know. But whatever solution you eventually

Re: PropertyModel implementing IComponentInheritedModel

2008-07-07 Thread Maurice Marrink
Have you seen BoundCompoundPropertyModel? It sounds like you are looking for that behavior. Maurice On Sun, Jul 6, 2008 at 9:42 AM, Thomas Kappler [EMAIL PROTECTED] wrote: Thanks, Johan. Perhaps I wasn't clear enough about the motivation. On Sun, Jul 6, 2008 at 6:51 AM, Johan Compagner

Re: Enable / Disable Container using AJAX

2008-07-03 Thread Maurice Marrink
AFAIK there is no is such thing as isEnabledInHierarchy like there is for visibility. You can however use an IVisitor to quickly traverse all child components of the container and set them to enabled / disabled. If you do this in the onBeforeRender of the container you get pretty much the behavior

Re: Set attributes on option in a DropDownChoice

2008-07-02 Thread Maurice Marrink
Use Select and SelectOption components http://jweekend.co.uk/dev/ArticlesPage/ Maurice On Wed, Jul 2, 2008 at 3:08 PM, Søren Andersen [EMAIL PROTECTED] wrote: This is my first post to this mailing-list, so I hope it's not too stupid. :-) I'm working on an application using DropDownChoice.

Re: Wicket Iolite, maven guru wanted

2008-07-01 Thread Maurice Marrink
I wouldn't presume calling myself a maven guru :) but i recently build an archetype myself too. I wonder why you have to use resource in your archetype. i get that your archetype is a maven multiproject but i don't see how using resource is better then using source. I am just guessing here but

Re: Junit Wicket tests in Wasp/Swarm environment

2008-06-30 Thread Maurice Marrink
Andrea 2008/6/20, Maurice Marrink [EMAIL PROTECTED]: In the teardown do tester.destroy() this will clean up everything. Maurice On Fri, Jun 20, 2008 at 10:16 AM, Andrea Jahn [EMAIL PROTECTED] wrote: Hi, Thank you very much for the Java solution :) ! I have also corrected the place

Re: New to Wicket: Confused with versions, wicket-extensions etc.

2008-06-30 Thread Maurice Marrink
On Mon, Jun 30, 2008 at 3:02 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: On Mon, Jun 30, 2008 at 2:57 PM, Maurice Marrink [EMAIL PROTECTED] wrote: Is there a date picker component available in the current version of Wicket or Wicket Extenstions? If so, where can I find it? If not, then where

Re: Swarm/Acegi and logging out

2008-06-30 Thread Maurice Marrink
You have to realize that both swarm and acegi keep a copy of the logged in user. So you have to logoff at 2 places. You could use a logoff page but imo it would be better to do the logging off in the link itself. Something like: Link logoff = new Link(logoff) {

Re: Swarm/Acegi and logging out

2008-06-30 Thread Maurice Marrink
original LoginContext and return it with getLogoffContext() call or does it not matter what Login Context I send to logoff? If so, is the current LogonContext saved somewhere in wicket already? Thanks, David Maurice Marrink wrote: You have to realize that both swarm and acegi keep a copy

Re: SecureTextField problem

2008-06-29 Thread Maurice Marrink
In version 1.3.0 inheritance is somewhat limited. It can only follow absolute paths. So unless your ${SecuredTextFieldOne} alias resolves to something like this: PageClass:panel1ID:panel2ID:textfieldID it will not work. This has been fixed in 1.3-SNAPSHOT where you can now use container classes

Re: AjaxLink in a DataView causing issues when loading multiple instance of the page

2008-06-29 Thread Maurice Marrink
This sounds like your page is living in the default pagemap where there should be a pagemap for each tab/window each with thee own instance of the page. can you confirm IPageSettings.getAutomaticMultiWindowSupport is on? If so you could take a look at WebPage$PageMapChecker and

Re: Error in test when use Include

2008-06-29 Thread Maurice Marrink
Just checking. Are you providing WicketTester with the correct path to your webapp root? If that is the case can you check if you can load other resources from that path. Maurice On Fri, Jun 27, 2008 at 10:13 AM, Tomasz Prus [EMAIL PROTECTED] wrote: Hi, when i included javascript: add(new

Re: Wicket-Security: What is the easiest way to switch user's principal behind the scenes?

2008-06-24 Thread Maurice Marrink
By default a logincontext only allows a single login, this can be changed by a constructor flag. To switch principals simply login a second time with the new context and logoff with the old context. the session will be preserved. Maurice On Tue, Jun 24, 2008 at 2:14 PM, Sergey Podatelev [EMAIL

Re: remember logged in user (using cookies ?)

2008-06-22 Thread Maurice Marrink
Take a look at how CookieValuePersister does it, basically the same as you. you can use it by calling setPersistent(true) on a formcomponent. Maurice On Sun, Jun 22, 2008 at 12:52 PM, Eyal Golan [EMAIL PROTECTED] wrote: OK. Regarding the NULL thing, I added this: Cookie userIdCookie

Re: Inheritance inside a Container

2008-06-21 Thread Maurice Marrink
Sounds Like a bug. Could you open up a jira request please and attach a quickstart showing this behavior. Thanks. Maurice On Fri, Jun 20, 2008 at 10:52 PM, smallufo [EMAIL PROTECTED] wrote: Hi , after a few try and errors , I can conclude how the problem occurs In the ChildPanel , if my code

Re: Junit Wicket tests in Wasp/Swarm environment

2008-06-19 Thread Maurice Marrink
init() { super.init(); } } 2008/6/18, Maurice Marrink [EMAIL PROTECTED]: You need to call super.init(). that will fix your swarm problems. as for spring i think you need: addComponentInstantiationListener(new SpringComponentInjector(this)); InjectorHolder.getInjector().inject

Re: Regarding Loacale

2008-06-19 Thread Maurice Marrink
Isn't the browser sending out a locale different from the os locale? Check your browser it should have some options for a preferred language or locale. Maurice On Thu, Jun 19, 2008 at 9:02 AM, Eyal Golan [EMAIL PROTECTED] wrote: Hi, I want to show my team mates the greatness of using wicket

Re: Wicket in an existing jaas-app

2008-06-19 Thread Maurice Marrink
Take a look at swarm, it has a jaas history. It should be dead simple to port it back to jaas again. http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security Maurice On Thu, Jun 19, 2008 at 12:10 PM, Jesper Åkesson [EMAIL PROTECTED] wrote: Hello! I have a webapplication built on

Re: Inheritance inside a Container

2008-06-19 Thread Maurice Marrink
What wicket version are you on? There was a bug about this but is has long been fixed. https://issues.apache.org/jira/browse/WICKET-1095 Maurice On Thu, Jun 19, 2008 at 9:40 PM, smallufo [EMAIL PROTECTED] wrote: Hello , I had exactly the same problem , and solved by searching to this post.

Re: Junit Wicket tests in Wasp/Swarm environment

2008-06-18 Thread Maurice Marrink
You need to call super.init(). that will fix your swarm problems. as for spring i think you need: addComponentInstantiationListener(new SpringComponentInjector(this)); InjectorHolder.getInjector().inject(this); Maurice On Wed, Jun 18, 2008 at 10:23 AM, Andrea Jahn [EMAIL PROTECTED] wrote: Hi,

Re: JUnit tests for Swarm

2008-06-17 Thread Maurice Marrink
Well it depends on what you want to test. with the 1.3-snapshots you can test independtly, see HiveTest which tests your policy file. you can expand on that to test if certain subjects have the permissions you expect them too, if all your pages are accounted for in the policy file, etc. But

Re: Wicket NTLM/Single-sign-on integration Question

2008-06-16 Thread Maurice Marrink
Using swarm, i usually let the default isAuthenticated methods intact and let the request be redirected to the loginpage where i check if a known third party has done the authentication for me, if so i automatically log the user in for wicket and redirect back to where i came from. You can

Re: Problem on resolving images path

2008-06-14 Thread Maurice Marrink
The following works for me using wicket 1.3.x. in web.xml: filter filter-nametabs/filter-name filter-class org.apache.wicket.protocol.http.WicketFilter /filter-class init-param param-nameapplicationClassName/param-name

Re: Cannot get rid of these error and warnings

2008-06-14 Thread Maurice Marrink
On Fri, Jun 13, 2008 at 12:31 PM, Cristi Manole [EMAIL PROTECTED] wrote: [1] I get these kind of errors quite often: there was an error cleaning up target [EMAIL PROTECTED] markupIdToComponent any idea what causes them? [i'm guessing it's a panel that gets updated to often for my server -

Re: Dynamic Form Data Retrieval

2008-06-14 Thread Maurice Marrink
In the Button.onSubmit do getForm.visitChildren(FormComponent.class, new IVisitor() { public Object component(Component component) { //do something with the models from the components here. } } Maurice On Fri, Jun 13, 2008 at 2:10 PM, wfroud [EMAIL PROTECTED] wrote: Hi All, I

Re: Modifying QuickStart to serve static content in embedded Jetty (was: RE: Tomcat 5.5.9 isn't running Quickstart)

2008-06-14 Thread Maurice Marrink
On Fri, Jun 13, 2008 at 3:56 PM, Frank Silbermann [EMAIL PROTECTED] wrote: OK, I did some experiments starting with a clean quicksort project. The images did appear. However, when I modified the web.xml to change from: filter-mapping filter-namewicket.myproject/filter-name

Re: HTTP Session creating at home page

2008-06-14 Thread Maurice Marrink
It seems that you homepage is stateless, wicket does not create a session for stateless pages to preserve server resources. You can force wicket to create a session for you by calling Session.get().bind() in your constructor (or any other place that is executed during a requestcycle). Maurice On

Re: PasswordTextField model?

2008-06-13 Thread Maurice Marrink
Actually the example does set a model for the password field. As shown in this snippet. //Set compound model on the form, inputfields will use that model too. super(id, new CompoundPropertyModel(new ValueMap())); // only remember username, not passwords add(new

Re: beginner question about models when having more than one component of the same type on the same page

2008-06-11 Thread Maurice Marrink
http://cwiki.apache.org/WICKET/newuserguide.html#Newuserguide-LocalizationandSkinningofApplications Maurice On Wed, Jun 11, 2008 at 8:49 AM, Martin Makundi [EMAIL PROTECTED] wrote: Can you paste the code for better insight into your problem? 2008/6/11 Peter Eriksson [EMAIL PROTECTED]: Hello,

Re: Wasp/Swarm: change LoginContext in Session

2008-06-11 Thread Maurice Marrink
Didn't we use custom actions for those locations? A user could have global or location permissions, right? In that case the permissions would be the same for each location. The only difference would be in the fact that the user has or does not have a location. which is checked by your

Re: Wasp/Swarm: change LoginContext in Session

2008-06-11 Thread Maurice Marrink
DummyLoginContext()); --- 2008/6/11, Maurice Marrink [EMAIL PROTECTED]: Didn't we use custom actions for those locations? A user could have global or location permissions, right? In that case the permissions would be the same for each location. The only difference would be in the fact

Re: Detect LoginPage redirection with swarm

2008-06-10 Thread Maurice Marrink
It should be fairly simple to show a message on the login page stating the user will be redirected to whichever page they were trying to visit. It would be a lot more difficult i think to show a warning prior to redirecting to the login paging. But as i understand it that is fortunately not what

Re: ComponentPropertyModel

2008-06-10 Thread Maurice Marrink
In all my years i have never used the ComponentPropertyModel. I always use the CompoundPropertyModel. public class MyPanel extends Panel { public MyPanel(String id, IModel model) { super(id, new CompoundPropertyModel(model)); add(new Label(name)); } } Maurice On Tue, Jun 10, 2008 at 2:49

Re: Help to choice a wicket component

2008-06-10 Thread Maurice Marrink
Sure you can, its just that most people use DataTable in some kind of search page, where you only show labels. But all you have to do is implement IColumn (or extend AbstractColumn) then you use anything you want. In our project we have a column showing an image. Maurice On Tue, Jun 10, 2008 at

Re: ModalWindow

2008-06-06 Thread Maurice Marrink
On Thu, Jun 5, 2008 at 5:27 PM, nanotech [EMAIL PROTECTED] wrote: Hi All, I am using panel inside a ModalWindow. I have few questions regarding Modal Window. 1. It seems that setInitialWidth(800) is not being honoured. No matter what size I set it comes out to be same size. Did you set a

Re: Refreshing a List view

2008-06-06 Thread Maurice Marrink
If that does not work you can also force the list to recreate all items by calling removeAll() after you have deleted the object. Maurice On Thu, Jun 5, 2008 at 7:39 PM, Sam Barnum [EMAIL PROTECTED] wrote: Ricky, what are you using as the model for your refreshing view? You should be using

Re: Item.getIndex() on DefaultDataTable

2008-06-06 Thread Maurice Marrink
On Thu, Jun 5, 2008 at 7:55 PM, Flavius [EMAIL PROTECTED] wrote: I'm using a DefaultDataTable and I want to get the index of the selected item. However the index always returns 0. Is this by design? new AbstractColumn(new Model(Test Label)) {

Re: DataProvider as model for AutoCompleteTextField?

2008-06-06 Thread Maurice Marrink
You can just wrap your dataprovider in a model, use the iterator to fill a temporary list and simply return that in your model. Optimally you would use a LDM or have a hook on your dataprovider (if you do not care about building a reusable model) to return the inner list of the provider. Maurice

Re: Wasp/Swarm: permisson for component of super class

2008-06-06 Thread Maurice Marrink
Well assuming you are only using a securewebmarkupcontainer to hide the entire menu if a user as no permissions for any of the pages accessible from that menu. Otherwise there really is no need since the links will be hidden. Then you have a couple of options. -Use a datapermission for each swmc

Re: Form validators expand in a ListView per each refresh

2008-06-05 Thread Maurice Marrink
Can't you use setReuseItems(true), that way the populate method will be called less frequently and thus will generate less validators. Don't use the removeall in combination with the reuse that will negate the effect :) Maurice On Thu, Jun 5, 2008 at 3:57 PM, Martin Makundi [EMAIL PROTECTED]

Re: setPageExpiredErrorPage(PageExpired.class) - Login page loaded instead of PageExpired page

2008-06-04 Thread Maurice Marrink
I thought it better to reply here, so everyone can find it back later :) As said before by default any self especting authorization strategy will redirect to a login page if it detects that the user is not authorized for the page / component currently being created. So the trick is to make sure

Re: wicket-auth-roles - Redirect to LoginPage instead of SessionExpiry Page

2008-06-04 Thread Maurice Marrink
See my reply in the other thread. Oh and next time could you keep it to one thread ;) thanks. Maurice On Wed, Jun 4, 2008 at 3:12 AM, mfs [EMAIL PROTECTED] wrote: Guys, I am using wicket-auth-roles which so far is working greaet serving all my purposes. Though I am stuck in this scenario

Re: Contructor model

2008-06-04 Thread Maurice Marrink
What do you mean? If your page accepts a certain model in its constructor you can do with it whatever you want. Any page (with or without empty constructor) can be created from within another page. Although typically you will do this on a link click or form submit. Just do setResponsePage(new

Re: Does wicket favor composite session obj?

2008-06-04 Thread Maurice Marrink
Mark the session as dirty. Wicket cannot detect if some property of a pojo has been updated in your session. By marking the session as dirty wicket will (re)save everything. Maurice On Wed, Jun 4, 2008 at 10:52 PM, smallufo [EMAIL PROTECTED] wrote: Thank you . It solves my confusion. But I

Re: Does wicket favor composite session obj?

2008-06-04 Thread Maurice Marrink
().getUser(); Here , user is still null. Why ? 2008/6/5 Maurice Marrink [EMAIL PROTECTED]: Mark the session as dirty. Wicket cannot detect if some property of a pojo has been updated in your session. By marking the session as dirty wicket will (re)save everything. Maurice On Wed, Jun 4, 2008

Re: Wicket-Security and Wicket 1.4

2008-06-03 Thread Maurice Marrink
The plan is to first get at least a beta out for 1.3.1 and then start working on 1.4. Given the amount of time i have been able to put into wasp and swarm lately it would not be feasible to actively develop 2 branches at the same time. Even with someone helping out on the 1.4 branch we would still

Re: setPageExpiredErrorPage(PageExpired.class) - Login page loaded instead of PageExpired page

2008-06-02 Thread Maurice Marrink
Looks like your security strategy is not allowing your pageexpired page to be instantiated. in that case it will try to render the login page. Note that this is default behavior both in wicket-auth-roles and swarm. Check the documentation for how to set your security strategy to allow wicket to

Re: getString, Label - Warn

2008-06-02 Thread Maurice Marrink
Make a model that does the getString in the getObject and give that model to your label. Maurice On Mon, Jun 2, 2008 at 2:15 PM, Fabien D. [EMAIL PROTECTED] wrote: Hi everybody, If I use this code : BookmarkablePageLink lien_accueil = new BookmarkablePageLink(accueil,

Re: tabbed pages not panels

2008-06-01 Thread Maurice Marrink
Just add your custom tabbar and a panel to your page. and let the tabbar know which panel it should update. Note that in the case of panels you should use Link in your tabbar component. Maurice On Sun, Jun 1, 2008 at 12:01 PM, cresc [EMAIL PROTECTED] wrote: Thanks Erik.. I understand ur

Re: split tabpanel navigation and panel content

2008-06-01 Thread Maurice Marrink
Well if you are talking about having other html elements between the tab bar and the content itself, then no you would have to write your own components. but using some css or overriding the default markup for the tabbedpanel you might be able to achieve the same visual effect. Maurice On Sun,

Re: Weird exceptions. Has anyone seen any exceptions like these

2008-06-01 Thread Maurice Marrink
Are you by any chance replacing components? This could happen if you let the ajax render a component that has been removed from the page. Maurice On Sun, Jun 1, 2008 at 7:32 PM, atul singh [EMAIL PROTECTED] wrote: Hi, As a result of code integration from various teams we have introduced some

Re: Swarm: SecureWebPage Access denied Message

2008-05-29 Thread Maurice Marrink
On Thu, May 29, 2008 at 12:57 AM, Monica D'Arcy [EMAIL PROTECTED] wrote: Hello, I am currently trying to implement some authorization/authentication using SWARM and am running into some problems. After Logging on with a class that extends the UsernamePasswordContext class, I attempt to

Re: WicketTester not picking up web.xml?

2008-05-28 Thread Maurice Marrink
According to the code (i took a quick peek) the path is only used for resource loading. it does not parse web.xml. You have 3 options: 1 override getHiveKey in the application you pass to WicketTester to return a fixed string. 2 override WicketTester.newServletContext to return a custom context

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 basic

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 global

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

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 the

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: 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

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

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 explain

Re: Wasp

2008-05-23 Thread Maurice Marrink
Hi Uwe, Yes that is exactly what wasp is for. You can either extend WaspAuthorizationStrategy or ClassAuthorizationStrategy. The latter provides a basic implementation to do component instantiation checks based on static fields available on the class. if you use java 1.5+ you could build your

Re: localization properties file

2008-05-22 Thread Maurice Marrink
That would be the easiest yes. Maurice On Thu, May 22, 2008 at 7:45 AM, Eyal Golan [EMAIL PROTECTED] wrote: Hi, If I want a centralized properties file for localization, where should I put it and how should I call it? Is it supposed to be in the same folder as my WebApplication class? Is is

Re: filter for data in security layer

2008-05-22 Thread Maurice Marrink
I am not sure i follow you. According to the log the user does not have the datapermission for the dropdown. I tried to set the permissions like in the explanation below, but that didn't work: // Welcome page permission ${ComponentPermission} ${front}.Welcome, inherit, render, global;

Re: Forum?

2008-05-21 Thread Maurice Marrink
On Wed, May 21, 2008 at 12:23 AM, Uwe Schäfer [EMAIL PROTECTED] wrote: Maurice Marrink schrieb: feel free, to convert me ;) I am not good at converting people, either you see the light or you don't :P *g* One of the strong points of swarm (imo ;)) is the ease with which it lets you

Re: How to localize each DropDownChoice separately?

2008-05-21 Thread Maurice Marrink
In the properties file for your page do: component1Id.nullValid=Choose type component2Id.nullValid=Choose date Instead of just the id you can also include the (partial) path, working your way to the top from the component you are trying to use. Maurice On Wed, May 21, 2008 at 8:08 PM, Martin

Re: Strange problem cancelling out of a modal

2008-05-20 Thread Maurice Marrink
Does your cancel button have default formprocessing set to false? Maurice On Tue, May 20, 2008 at 2:36 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I've got a strange problem cancelling out of a modal. Unless I make selections on all my form components inside that modal, it just won't close.

Re: Deployment vs development session

2008-05-20 Thread Maurice Marrink
No, that is not how it is supposed to work. Each user should always get his/her own session regardless. development mode is for quick reloading of markupfiles etc without redeploying. Not sure how you managed that but we use dev mode all the time and we have never seen this behavior. Maurice On

Re: Strange problem cancelling out of a modal

2008-05-20 Thread Maurice Marrink
at 8:34 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Not that I am aware of - don't know that setting. What would that do exactly? -Original Message- From: Maurice Marrink [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 12:02 AM To: users@wicket.apache.org Subject: Re: Strange

Re: Panel's LoadableDetachableModel not being loaded

2008-05-20 Thread Maurice Marrink
Or you can wrap the LDM in a CompoundPropertyModel and set that as the model of parent panel, that way your subpanels do not need to have there own model and they will trigger a load on the LDM. Maurice On Tue, May 20, 2008 at 6:23 PM, Johan Compagner [EMAIL PROTECTED] wrote: so you have Panel

Re: Strange problem cancelling out of a modal

2008-05-20 Thread Maurice Marrink
it - could you please point me in the right direction? Also, I assume setting this in the cancel button's event handler would be sufficient? Thanks for your input. -Original Message- From: Maurice Marrink [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 11:47 AM To: users

Re: Forum?

2008-05-20 Thread Maurice Marrink
Which security framework do you plan on using? ;) Maurice 2008/5/20 Uwe Schäfer [EMAIL PROTECTED]: hi i remember someone asking for a wicket based forum few weeks ago. i plan to build one within the next few months. is there anyone interested in contributing code, ideas, reviews, tests or

Re: Forum?

2008-05-20 Thread Maurice Marrink
On Tue, May 20, 2008 at 11:38 PM, Uwe Schäfer [EMAIL PROTECTED] wrote: Maurice Marrink schrieb: Which security framework do you plan on using? ;) *g* actually, it could use a homegrowkn one, which essentially is a bunch of interfaces (together with a trivial impl). sorry, that i did

Re: Automatic sign-on using HTTP headers

2008-05-19 Thread Maurice Marrink
You could take a look at http://wicketstuff.org/wicketsecurity/basichttp/ It does the same with standard http headers. Source http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security/examples/all_in_one/src/main/java/org/apache/wicket/security/examples/httplogin/basic

Re: Text handling in wicket

2008-05-18 Thread Maurice Marrink
http://cwiki.apache.org/WICKET/i18n.html Maurice On Sun, May 18, 2008 at 3:35 PM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hi! I have a lot of pages that have text description. ( Many lines of text) It can have css markup in with bold, color etc. My problem is that the site is

Re: filter for data in security layer

2008-05-18 Thread Maurice Marrink
On Sun, May 18, 2008 at 7:26 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: something like this should probably be filter inside the database not by some external filter which forces you to load the entire dataset. No that would be foolish, but that wasn't suggested. -igor On Sun, May 18, 2008

Re: SWARM Login

2008-05-17 Thread Maurice Marrink
Let me see if i understand you correct. If a user logs in to your site and then navigates away to a site/page not handled by your domain without logging off and thus keeping the session on the server. And then after a little while comes back to your domain (maybe he types the url again in the

Re: Wicket Visibility vs. CSS visibility

2008-05-17 Thread Maurice Marrink
I think everybody is missing the point that listview was intended to refresh itself entirely (all the items) on each render not just after a hide/show cycle. The reason for this is that you always want an up-to-date list. If you don't want this this behavior you can use setReuseItems(true); Or am

Re: Thread safety for components

2008-05-16 Thread Maurice Marrink
wicket synchronizes on the session. So only one request is processed at a time, (except for resources like images etc) So even ajax requests are synchronized. There might be some more details i am not aware of but this is in a nutshell our synchronization. Maurice On Fri, May 16, 2008 at 4:33

Re: Thread safety for components

2008-05-16 Thread Maurice Marrink
can be hit by multiply rerquest at once. Pages are threadsafe and that is not done by a big sync block, but by placing a barrier. See Session.getPage() there there is code that makes sure that 1 thread at a time gets a page from the session the rest just has to wait On 5/16/08, Maurice

Re: How does Wicket load an object and combine it with a user's web input? (newbie question)

2008-05-16 Thread Maurice Marrink
You do not need a hidden form parameter, wicket automatically resolves the form input with the component on the server side. On submit the model of the component is loaded and set with the new input. If you use a model such as LoadableDetachableModel, that knows how to get the latest object from

Re: Swarm: Link authorization

2008-05-15 Thread Maurice Marrink
Yes there are other solutions :) In this case you would use a DataPermission. Something like permission ${DataPermission} delete_product, enable; coupled with a DatasecurityCheck on your links like so: setSecurityCheck(new DataSecurityCheck(delete_product)); will do the trick. Maurice On Thu,

Re: ErrorPage won't render

2008-05-15 Thread Maurice Marrink
On a side note: Don't forget to overwrite isErrorPage() to return true. Maurice On Thu, May 15, 2008 at 3:46 PM, Johan Compagner [EMAIL PROTECTED] wrote: why should wicket handle exceptions like that, what kind? what should wicket do then? you should just be sure that you always can create

Re: wicket xml - add label as xml element atribute

2008-05-15 Thread Maurice Marrink
You can use setEscapeModelStrings(false) to not escape special characters. attributemodifiers to add attributes to tags or use onComponentTag for this Maurice On Thu, May 15, 2008 at 4:05 PM, Milan Křápek [EMAIL PROTECTED] wrote: Thanks, the XML code is fine, but I need to know how to do it

Re: Swarm: Authorization for WebMarkupContainer

2008-05-14 Thread Maurice Marrink
1.3.1-SNAPSHOT is an older version it has been renamed to follow wicket naming conventions to 1.3-SNAPSHOT. That is the major and minor versions will always be used to indicate the latest snapshot, this prevents users needing to change there pom whenever a new patch version has been released. I

Re: FYI: new wicket site

2008-05-14 Thread Maurice Marrink
nice :) one thing though: i went searching for uitjes and after clicking the volgende button a couple of times i selected one to show more details. Now when i use the browser backbutton or the terug link i always end up at the first page of my search results. I would have expected to return to

Re: Swarm: Authorization for WebMarkupContainer

2008-05-14 Thread Maurice Marrink
, inherit, render; permission ${ComponentPermission} ${myPackage}.ContainerPage2, enable; }; Argh, i am only just reading you are using 1.3.1-SNAPSHOT. You should be using 1.3-SNAPSHOT. That does it i am deleting those jars. Maurice On Tue, May 13, 2008 at 8:10 PM, Maurice Marrink [EMAIL

Re: Swarm: Authorization for WebMarkupContainer

2008-05-14 Thread Maurice Marrink
. Maurice On Tue, May 13, 2008 at 8:10 PM, Maurice Marrink [EMAIL PROTECTED] wrote: On Tue, May 13, 2008 at 6:48 PM, Andrea Jahn [EMAIL PROTECTED] wrote: Hi, I've changed to the 1.3.1-SNAPSHOT version. Therefore I have only replaced the constructor PolicyFileHiveFactory

  1   2   3   4   5   >