Re: chaning background

2008-05-16 Thread Jeremy Thomerson
If you want to add a reference to a CSS file, you can do it like this: add(HeaderContributor.forCss(new ResourceReference(YourBasePage.class, file.css, getWebSession().getLocale(), getWebSession().getStyle())); That will add a link in the HTML. If you wanted to add CSS directly from

Re: Swarm: Link authorization

2008-05-16 Thread Andrea Jahn
The DataPermission solution works :) Thanks Andrea *Von:* users@wicket.apache.org *Gesendet:* 15.05.08 16:06:54 *An:* users@wicket.apache.org *Betreff:* Re: Swarm: Link authorization Yes there are other solutions :) In this case you would use a DataPermission. Something like permission

Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2008-05-16 Thread Erik van Oosten
Chris, If you read the thread carefuly you can extract a quick fix. You'll need it as the core developers argumented against a quick bugfix release. Just checkout Wicket from SVN and apply the patch (2 lines in the Wicket filter). Its a pain, but if you can not wait... Regards, Erik. Chris

Re: Wicket Portlets in Liferay 5

2008-05-16 Thread Benjamin Ernst
Hi Thijs, thanks for your help, but you don't have to hurry. We faked the whole thing by running our Wicket-App inside an iFrame in Liferay. It is just for a showcase. So we don't need it right now. Thanks anyway, Benjamin On Thu, May 15, 2008 at 9:14 PM, Thijs Vonk [EMAIL PROTECTED] wrote:

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 Johan Compagner
It is not sync around session, for one thing the wicket Sessio object is not thread safe.. Same for shared resources those 2 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

Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2008-05-16 Thread Johan Compagner
Or get the snapshot build from or wicketstuff maven repo On 5/16/08, Erik van Oosten [EMAIL PROTECTED] wrote: Chris, If you read the thread carefuly you can extract a quick fix. You'll need it as the core developers argumented against a quick bugfix release. Just checkout Wicket from SVN and

Meetup in Stockholm/Sweden - 22/5

2008-05-16 Thread Daniel Frisk
On Thursday @ 4PM it's time for our next meetup in Stockholm. This time we have four Wicket related presentations and on top of that free beer and a poker tournament! :-) More information at http://wicket.jalbum.net and don't forget to drop me an e-mail to tell that you are coming. //

Re: Thread safety for components

2008-05-16 Thread Maurice Marrink
Like i said: details i am blissfully unaware of :) Thanks for clearing that up Johan. Maurice On Fri, May 16, 2008 at 8:53 AM, Johan Compagner [EMAIL PROTECTED] wrote: It is not sync around session, for one thing the wicket Sessio object is not thread safe.. Same for shared resources those 2

Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2008-05-16 Thread Martijn Dashorst
Has this fix been confirmed to help? If so, I'm +1 for releasing 1.3.4 Martijn On 5/16/08, Johan Compagner [EMAIL PROTECTED] wrote: Or get the snapshot build from or wicketstuff maven repo On 5/16/08, Erik van Oosten [EMAIL PROTECTED] wrote: Chris, If you read the thread carefuly

Re: wicket xml - add label as xml element atribute

2008-05-16 Thread Milan Křápek
Yeah, thanks a lot that was the thing I was searching for. But there is one more problem. When I do that this way, I get on the output something like: loc myAttritbute=attributeValue wicket:id=thisComponent/ Is there any way to remove wicket:id attribute from the output code?

Null pointer I don't understand

2008-05-16 Thread Mathias P.W Nilsson
I have this page class. When submitting the form via the AjaxButton I get a null pointer exception. It passes the instanceof in onSubmit but all data is null. I dont get this. In the LoadableDetachable model I do new CartItem and when displaying the page the first time I see the drop down choice

Re: Null pointer I don't understand

2008-05-16 Thread Mathias P.W Nilsson
I use getModel() it's an error. I have tried with getModelObject as well. -- View this message in context: http://www.nabble.com/Null-pointer-I-don%27t-understand-tp17269836p17269846.html Sent from the Wicket - User mailing list archive at Nabble.com.

getRequestCycle().urlFor(Class clazz, PageParameters pageParameters) bug?

2008-05-16 Thread pracha
Hi guys, Within a certain page that was invoked with PageParameters, I tried retrieving the absolute path to the URL for another page. However the getRequestCycle().urlFor(Class clazz, PageParameters pageParameters) method returned to me something like ../../verify/code/1234/agent/5678 with code

Re: Null pointer I don't understand

2008-05-16 Thread Martijn Dashorst
The full stack trace would be helpful Martijn On 5/16/08, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: I have this page class. When submitting the form via the AjaxButton I get a null pointer exception. It passes the instanceof in onSubmit but all data is null. I dont get this. In the

Re: wicket xml - add label as xml element atribute

2008-05-16 Thread Martijn Dashorst
http://www.google.com/search?q=remove+wicket+attribute+markup On 5/16/08, Milan Křápek [EMAIL PROTECTED] wrote: Yeah, thanks a lot that was the thing I was searching for. But there is one more problem. When I do that this way, I get on the output something like: loc

Re: Back button retrieving cached data even with proper headers.

2008-05-16 Thread Matej Knopp
Mount your page using HybridUrlCodingStrategy. -Matej On Fri, May 16, 2008 at 11:01 AM, gumnaam23 [EMAIL PROTECTED] wrote: Adding no-store to the Cache-Control header did the trick. According to Page.setHeaders() javadoc , Wicket already adds cache related headers

Re: Back button retrieving cached data even with proper headers.

2008-05-16 Thread gumnaam23
Adding no-store to the Cache-Control header did the trick. According to Page.setHeaders() javadoc , Wicket already adds cache related headers response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-cache, max-age=0, must-revalidate) Is there any particular reason why no-store

Re: Back button retrieving cached data even with proper headers.

2008-05-16 Thread Johan Compagner
no i am against no-store as default. back button should be quick. If the line is a bit slow then users get very very very (i would) annoyed if the back button takes a while because it connects back to the server. A back button shouldnt do that. I know we in wicket wants it to do it but from an

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

2008-05-16 Thread David Wicket
I just started learning Wicket. I have some experience with JSP+Spring. In Spring, based on a hidden id parameter from a form, I can use formBackingObject method to load the object. Spring combines a user's input in the form with the loaded object to form the latest version of this object and

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

2008-05-16 Thread Mathias P.W Nilsson
Thanks Jeremy that worked great -- View this message in context: http://www.nabble.com/chaning-background-tp17268044p17272824.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

PagingNavigator faster paging

2008-05-16 Thread Mathias P.W Nilsson
Hi! I'm using a Pageable List view to list my items. The problem is that it is to slow when there are many items In the database I have 2000 items and when I hit all of them the rendering is slow. This is because of translating, calculating and so on. To solve this I would like to do something

Re: PagingNavigator faster paging

2008-05-16 Thread lars vonk
Ì am not sure about Pagenavigator (is this an existing Wicket class? I can't find it). We have implemented what you describe using DataView and by implementing the IDataProvider to do the call to Hibernate with the given first and count passed in the method *Iterator iterator(int first, int

Re: PagingNavigator faster paging

2008-05-16 Thread Martijn Dashorst
Don't use the PageableListView, but use DataView with an IDataProvider. Martijn On 5/16/08, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hi! I'm using a Pageable List view to list my items. The problem is that it is to slow when there are many items In the database I have 2000 items

Re: Back button retrieving cached data even with proper headers.

2008-05-16 Thread gumnaam23
I guess you are right. But in an Ajax world, there really is no other way around the problem, is there ? Johan Compagner wrote: no i am against no-store as default. back button should be quick. If the line is a bit slow then users get very very very (i would) annoyed if the back button

Re: PagingNavigator faster paging

2008-05-16 Thread Mathias P.W Nilsson
Thanks! I used this but I don't think it is any faster class ItemProvider implements IDataProvider{ private static final long serialVersionUID = 1L; public Iterator iterator(int first, int count) { return getItemDao().getItems(getFilters(),

Re: PagingNavigator faster paging

2008-05-16 Thread Meindert Deen
You can use PagingNavigation to page trough everything in the DB: http://www.wicketstuff.org/wicket13/repeater/;jsessionid=1A8942B5B6C08E39348C4E8923DB32CB?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.repeater.PagingPage That way you don't get everything from the database all the time.

Re: PagingNavigator faster paging

2008-05-16 Thread Mathias P.W Nilsson
Yes, I use the page navigator. -- View this message in context: http://www.nabble.com/PagingNavigator-faster-paging-tp17272873p17274891.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: PagingNavigator faster paging

2008-05-16 Thread Mathias P.W Nilsson
I was unclear with the class. I use PagingNavigation with my dataProvider but it's still to slow. Must be something else. -- View this message in context: http://www.nabble.com/PagingNavigator-faster-paging-tp17272873p17274937.html Sent from the Wicket - User mailing list archive at

Re: IChoiceRenderer: RadioGroup CheckBoxMultipleChoice

2008-05-16 Thread Igor Vaynberg
why dont you just implement equals/hashcode on MyObjectOption??? -igor On Fri, May 16, 2008 at 5:14 AM, Hoover, William [EMAIL PROTECTED] wrote: Here is an example of what I'm referring to: class MyObject { private Long id; private MyObjectOption myObjectOption;

Re: Back button retrieving cached data even with proper headers.

2008-05-16 Thread Matej Knopp
Unfortunately that's not how it works now. So if you have ajax application and don't want to get weird problems on back button the only way now is to send the no-store header. -Matej On Fri, May 16, 2008 at 3:15 PM, Johan Compagner [EMAIL PROTECTED] wrote: i think that is more a problem of the

Image from resource outside tomcat container

2008-05-16 Thread Mathias P.W Nilsson
Hi! I have placed all my images in a folder outside my web application container to preserve the images when I deploy. My problem now is that to get an image I go thru my FileResourceServlet and writes the image. In every request to my FileResourceServlet I make a request to the database to get

CheckGroup selection loss in Wizard

2008-05-16 Thread Till Wenzinger
Hi, In the second step of a Wizard, I am loosing selections of a CheckGroup if I am going back to the first step using the Previous Button and return using the Next Button. Consider the following code: public class CheckBug extends WebPage { public CheckBug() { final Wizard wizard =

Re: Image from resource outside tomcat container

2008-05-16 Thread Michael Sparer
why do you make a request to the database? in our app, we use a servletfilter to get the resources from harddisk ... without hitting the wicket filter Mathias P.W Nilsson wrote: Hi! I have placed all my images in a folder outside my web application container to preserve the images when

RE: IChoiceRenderer: RadioGroup CheckBoxMultipleChoice

2008-05-16 Thread Hoover, William
yes, that will work in my example, but what if MyObjectOption is not part of my namespace? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 10:14 AM To: users@wicket.apache.org Subject: Re: IChoiceRenderer: RadioGroup CheckBoxMultipleChoice why

access input-value of textfield via ajax before form-submit

2008-05-16 Thread Oliver Mahnke
Hi, i am new to wicket and have a question: is it possible to access the input-value of a textfield embedded in a form via ajax before the form is submitted? I have a second textfield which should display the input-value of the first when the focus leaves tf one. Therefore i connected the

Re: Image from resource outside tomcat container

2008-05-16 Thread Mathias P.W Nilsson
Really for now I do this for url FileResourceServlet?fileResourceId=101 Else I need to do this. FileResourceServlet?path=very...veryvery.long...pathforthefile How do you know wich file to fetch? -- View this message in context:

Re: access input-value of textfield via ajax before form-submit

2008-05-16 Thread Ryan Gravener
see AjaxFormComponentUpdatingBehavior. 2008/5/16 Oliver Mahnke [EMAIL PROTECTED]: Hi, i am new to wicket and have a question: is it possible to access the input-value of a textfield embedded in a form via ajax before the form is submitted? I have a second textfield which should display the

Source code inconsistency in Check/CheckGroup

2008-05-16 Thread Till Wenzinger
Hi, According to the source code of Wicket 1.3.3, Check#onComponentTag(ComponentTag) performs the following: CheckGroup group = (CheckGroup)findParent(CheckGroup.class); ... if (group.wantOnSelectionChangedNotifications()) { ... } The CheckGroup

Re: CheckGroup selection loss in Wizard

2008-05-16 Thread Igor Vaynberg
i think that is intended. going back is like cancelling the current screen. if that was changed thenyou would have to have a valid current screen before you could go back, which is not something a user would expect imho. -igor On Fri, May 16, 2008 at 7:47 AM, Till Wenzinger [EMAIL PROTECTED]

Re: Image from resource outside tomcat container

2008-05-16 Thread Igor Vaynberg
you need to set proper caching headers and have your servlet implement an efficient HEAD support. -igor On Fri, May 16, 2008 at 7:43 AM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hi! I have placed all my images in a folder outside my web application container to preserve the images when

Re: Source code inconsistency in Check/CheckGroup

2008-05-16 Thread Igor Vaynberg
they are in the same package -igor On Fri, May 16, 2008 at 8:05 AM, Till Wenzinger [EMAIL PROTECTED] wrote: Hi, According to the source code of Wicket 1.3.3, Check#onComponentTag(ComponentTag) performs the following: CheckGroup group =

Re: CheckGroup selection loss in Wizard

2008-05-16 Thread Till Wenzinger
Hi, In my application, the check boxes are selected by default. According to my understanding, this loss of default settings is unexpected. I mentioned the following Check code: if (group.hasRawInput()) { final String[] input =

RE: IChoiceRenderer: RadioGroup CheckBoxMultipleChoice

2008-05-16 Thread Hoover, William
I agree, but there are some cases where it will not be possible to implement equals/hashcode on the model object. I would be more of a proponent to have as much consistency across components as possible- which would mean that ICoiceRenderer would be available, but not enforced, in any component

Re: CheckGroup selection loss in Wizard

2008-05-16 Thread Igor Vaynberg
when the components are first created there are no request parameters, they load their model object and initialize themselves to that. -igor On Fri, May 16, 2008 at 8:25 AM, Till Wenzinger [EMAIL PROTECTED] wrote: Hi, In my application, the check boxes are selected by default. According to

Re: IChoiceRenderer: RadioGroup CheckBoxMultipleChoice

2008-05-16 Thread Igor Vaynberg
if you use an ldm in choice/choicegroup then you should have instance equality available since you will probably load the objects from the same place, so during request processing they are consistent. as far as choicerenderer, i dont think thats a good idea, what do you do with getdisplayvalue()?

RE: IChoiceRenderer: RadioGroup CheckBoxMultipleChoice

2008-05-16 Thread Hoover, William
It could be left as is and use the display value as expected (i.e. input type=checkbox id=ID_VALUE value=DISPLAY_VALUE /). Another option would be to have an identifier renderer: public interface IChoiceRenderer extends IIdentifierRenderer { Object getDisplayValue(Object object); }

Re: IChoiceRenderer: RadioGroup CheckBoxMultipleChoice

2008-05-16 Thread Igor Vaynberg
afaik value is not used in checkbox or radio, not even sure that its valid to have it. iidentfierrenderer is a bad name since the id isnt actually rendered... -igor On Fri, May 16, 2008 at 9:07 AM, Hoover, William [EMAIL PROTECTED] wrote: It could be left as is and use the display value as

RE: IChoiceRenderer: RadioGroup CheckBoxMultipleChoice

2008-05-16 Thread Hoover, William
It is valid to have a value on a checbox/radio http://www.w3.org/TR/html401/interact/forms.html#h-17.4 I agree that the name of the interface needs to be addressed. The concept is what I was attempting to convey. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent:

Form validation and .properties

2008-05-16 Thread Blackbird
Hi, I am very interested in form validation as shown in the FormInput example at wicketstuff (http://wicketstuff.org/wicket13/forminput/) I also came upon this page (http://cwiki.apache.org/WICKET/form-validation-messages.html) in the wicket reference website. - This last web page reads Some

Zip files containing ready to deploy wicketstuff examples

2008-05-16 Thread Blackbird
Hi, are there zip files of each example available at wicketstuff? Some examples have many files, including configuration files (.properties, .xml) It would be helpful to see how all these file should be organized ideally (directory hierarchy). Sorry if I've missed it. -- View this message in

Not rendering DataGrid if empty

2008-05-16 Thread nitinkc
Currently the DataGrid outputs a datatable with column headers and a message 'No Records Found' if the datalist is empty. Does anyone know if it is possible to render the datatable only if the list is not empty? Setting the visibility to 'false' is not an option as the markup is not rendered in

Re: Not rendering DataGrid if empty

2008-05-16 Thread Matej Knopp
setVisible is possible, but you have to call setOutputMarkupPlaceholderTag(true) on it. -Matej On Fri, May 16, 2008 at 6:44 PM, nitinkc [EMAIL PROTECTED] wrote: Currently the DataGrid outputs a datatable with column headers and a message 'No Records Found' if the datalist is empty. Does

Re: Not rendering DataGrid if empty

2008-05-16 Thread Ryan Gravener
Override the isVisible method of your component for which you do not want to render. @Override boolean isVisible() { return dp.size()!=0; } On Fri, May 16, 2008 at 12:44 PM, nitinkc [EMAIL PROTECTED] wrote: Currently the DataGrid outputs a datatable with column headers and a message

Javascript + wicket

2008-05-16 Thread nanotech
Hi, I want to know what are the different approaches that I can take in Wicket to solve this simple problem. Consider there are two radio buttons and they both have corresponding text fields in front of them. I want to enable /disable the other text fields when the radio button is selected.

Wicket tags and IE6

2008-05-16 Thread John Krasnay
I've just noticed a specific problem with Wicket tags interfering with IE6. I have a page that uses the jqModal plugin for jQuery to display a popup div. It works fine on FF, but on IE6 the overlay (the semi-transparent div that blocks out the rest of the page while the popup is active) pushes the

Re: Wicket tags and IE6

2008-05-16 Thread Ryan Gravener
You can place getMarkupSettings().setStripWicketTags(true); into your Application.init(). I believe these are automatically stripped when you are in deployment mode. On Fri, May 16, 2008 at 1:33 PM, John Krasnay [EMAIL PROTECTED] wrote: I've just noticed a specific problem with Wicket tags

Re: Account Activation Email generation and response processing: any design example?

2008-05-16 Thread Matthew Young
You may also want to have a enum/int to represent what kind of token it is. New user, new email, forgot password, etc.. To have a field in the user-account table to store this value? Or do you mean to send this as part of the activation URL? And what is the purpose to have this? On Thu, May

Re: Account Activation Email generation and response processing: any design example?

2008-05-16 Thread Matthew Young
What is the advantage of using message digest over uuid? Isn't message digest not guaranteed to be unique where as UUID is always unique? On Thu, May 15, 2008 at 7:39 PM, Martin Makundi [EMAIL PROTECTED] wrote: You could also just use a md5 hashkey with content specific to the account:

Re: Account Activation Email generation and response processing: any design example?

2008-05-16 Thread Martin Makundi
The benefit in digest is that the user (or another user) cannot fabricate it... so easily. ** Martin 2008/5/16 Matthew Young [EMAIL PROTECTED]: What is the advantage of using message digest over uuid? Isn't message digest not guaranteed to be unique where as UUID is always unique? On Thu,

SWARM Login

2008-05-16 Thread greeklinux
Hello, I am using Wicket 1.3.3 with SWARM 1.3.0. I have pages with a common layout (secure and not secure). I can login and see the secure pages. Now I want to achieve to be automaticaly redirected to user home when a user is accessing the domain and logged in before... I think I have to add a

Re: RequiredBorder being applied multiple times in ajax calls

2008-05-16 Thread Sam Barnum
Awesome, that works! I forgot that you can always get the request from that ThreadLocal. Thanks a ton Gerolf, this doesn't seem too hacky. -- Sam Barnum 360 Works On May 15, 2008, at 10:58 AM, Gerolf Seitz wrote: On Thu, May 15, 2008 at 6:25 PM, Sam Barnum [EMAIL PROTECTED] wrote: *

Re: Not rendering DataGrid if empty

2008-05-16 Thread nitinkc
That works. Thanks Matej! Matej Knopp-2 wrote: setVisible is possible, but you have to call setOutputMarkupPlaceholderTag(true) on it. -Matej On Fri, May 16, 2008 at 6:44 PM, nitinkc [EMAIL PROTECTED] wrote: Currently the DataGrid outputs a datatable with column headers and a

Re: Form validation and .properties

2008-05-16 Thread Ryan Gravener
The page does a pretty good job explaining how the .properties work. If you have global properties, you want them to go in your MyApplication.properties file which sits right along MyApplication.java. For cases where you only need specific properties for a component, place the properties file

Re: Account Activation Email generation and response processing: any design example?

2008-05-16 Thread greeklinux
Hello, yes you can create an activation column that stores a hash value that is created by UUID or MD5. Then send this data in an activation url to the user email. The url can be mounted (nice url) to a Page, which gets the PageParameters. Then you can validate the hash value. MYoung wrote:

OK, more JPA questions

2008-05-16 Thread David Nedrow
There doesn't seem to be one recommended way to inject/use JPA-based utility archives in Wicket. It looks as though most of it is based around Spring, which is fine, yet adds another app layer. I've generated a tiny Derby db using the JPA facilities provided by MyEclipse. The sources can

Re: Wicket tags and IE6

2008-05-16 Thread John Krasnay
Yeah, that's the easy fix I mentioned, and it indeed fixes the problem. jk On Fri, May 16, 2008 at 01:43:07PM -0400, Ryan Gravener wrote: You can place getMarkupSettings().setStripWicketTags(true); into your Application.init(). I believe these are automatically stripped when you are in

Re: OK, more JPA questions

2008-05-16 Thread Igor Vaynberg
there are basically two things that you need no matter what web framework you are integrating with: 1) a way to lookup your dao singleton you can do this with servletcontextlistener, a lazy init static lookup on the dao itself, keep it in some other singleton like the wicket application

Wicket Visibility vs. CSS visibility

2008-05-16 Thread Kirk Israel
If I have a component with a nested ListView, and I make the parent component go away for a bit with setVisible, the List will be reconstructed from scratch? Is the understanding that for Wicket Invisible means the component objects (Labels, etc) have Gone Away? What are the advantages of that?

Select a directory in a textfield

2008-05-16 Thread Oncle Zebulon
Hi everybody, I am a newbie with wicket and i would like to know if there is a way to select a directory in a textfield ? I know that with the input tag (type=file), it's not possible, but maybe with wicket...? any ideas ? -- View this message in context:

Re: Wicket Visibility vs. CSS visibility

2008-05-16 Thread Jonathan Locke
You should use isVisible when possible. The notion of component's visibility has to do with whether the component renderers or not. So yes, the list will be reconstructed from scratch. If you're doing something Ajaxy, this might not be what you want. I personally wish that the Ajax

Re: Wicket Visibility vs. CSS visibility

2008-05-16 Thread Eelco Hillenius
If you wanted to just a cosmetic, DHTM/CSS display: none type of visibility, is there something you can do other than making a new AttributeModifier (with a custom Visibility Model kind of thing) or a SimplleAttributeModifier with a CSS display:none String there? Well, if the component isn't

Re: Select a directory in a textfield

2008-05-16 Thread James Carman
A directory where? On the client machine? What will you do with that directory when you've selected it? On Fri, May 16, 2008 at 6:55 PM, Oncle Zebulon [EMAIL PROTECTED] wrote: Hi everybody, I am a newbie with wicket and i would like to know if there is a way to select a directory in a

Re: Select a directory in a textfield

2008-05-16 Thread Scott Swank
Are you thinking about some sort of file upload? It's not at all clear what you're trying to accomplish. On Fri, May 16, 2008 at 5:30 PM, James Carman [EMAIL PROTECTED] wrote: A directory where? On the client machine? What will you do with that directory when you've selected it? On Fri,

Re: Wicket Visibility vs. CSS visibility

2008-05-16 Thread Kirk Israel
On Fri, May 16, 2008 at 7:34 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: If you wanted to just a cosmetic, DHTM/CSS display: none type of visibility, is there something you can do other than making a new AttributeModifier (with a custom Visibility Model kind of thing) or a

Re: Wicket Visibility vs. CSS visibility

2008-05-16 Thread Jonathan Locke
Again, you probably shouldn't be setting state like this, and you can create a generic hiding behavior for now that should solve most of your problems. All that is at stake here is really just convenience, not the programming model. On the other hand, this is a very common problem so it might

Re: Wicket Visibility vs. CSS visibility

2008-05-16 Thread Jonathan Locke
Of course there are many good counterarguments to this. There are already a lot of methods in Component, you can do this without any changes and it may be confusing to have a concept of hidden on top of the existing visible concept. Jonathan Locke wrote: Again, you probably shouldn't be

Nested form submission quirk/anomaly

2008-05-16 Thread Ritz123
Hi, I have 3 nested forms inside main wrapper form. The idea is, each panels have their own forms, just in case one wanted to use the panels individually. And when used inside 1 bigger scope page individual forms will be nested inside the bigger scoped (main form). I have a submit button on the

Re: Account Activation Email generation and response processing: any design example?

2008-05-16 Thread Sam Stainsby
On Fri, 16 May 2008 21:15:34 +0300, Martin Makundi wrote: The benefit in digest is that the user (or another user) cannot fabricate it... so easily. Just send a large random number that is unique on the server. Keep a copy and compare with what the recipient sends back. Simple - no need for

Re: Wicket Visibility vs. CSS visibility

2008-05-16 Thread Jonathan Locke
by the way, don't forget that behaviors are reusable components too. there can be advantages to encapsulating your hiding/showing logic in a behavior. this can actually lead to less of this manual manipulation you're talking about than the solution you seem to want. and because the logic is

RE: Thread safety for components

2008-05-16 Thread Brill Pappin
Does that mean that under heavy load, hitting the index page for instance, I can expect clients to block as each request is processed? Have anyone tested this on a site with heavy traffic? - Brill -Original Message- From: Johan Compagner [mailto:[EMAIL PROTECTED] Sent: Friday, May 16,

Re: Thread safety for components

2008-05-16 Thread Eelco Hillenius
On Fri, May 16, 2008 at 7:50 PM, Brill Pappin [EMAIL PROTECTED] wrote: Does that mean that under heavy load, hitting the index page for instance, I can expect clients to block as each request is processed? Yes, requests to pages/ components that belong to the same pagemap in a session are

RE: Thread safety for components

2008-05-16 Thread Brill Pappin
Ahh... I was getting worried that it synchronous per page-resource (as opposed to per client), the last person could be waiting for a while! So essentially it's single threaded per client (or session) which is pretty much par for the course, and not a problem that I can see :) - Brill Pappin

Using ResourceReference in osgi bundle

2008-05-16 Thread james yong
Hi, I have a javascript file inside a osgi bundle. ResourceReference is used to refer to that file. When running the application, the following exception occurs when the resourceReference's renderhead method is run. java.lang.NullPointerException at

RE: Thread safety for components

2008-05-16 Thread Jonathan Locke
I wouldn't spend too much time worrying about the possibility of a mistake that big at this point! There are 20 programmers on this project at this point and almost all of them are architects with many years of experience. Wicket is being used by many thousands of users on hundreds if not