Re: underscores in java package name doesn't work

2008-11-24 Thread Steve Swinsburg
I'm using underscores in my package names and it works fine, Wicket 1.3.5 Java 1.5.0_16, Tomcat 5.5. Could be an issue introduced with Java 6/Tomcat 6? cheers, Steve --- Steve Swinsburg Portal Systems Developer Centre for e-Science Lancaster University Lancaster LA1 4YT email: [EMAIL

Re: [OT] wicket users around the world

2008-12-12 Thread Steve Swinsburg
First Australian to reply... so um, Australia! Working in the UK. On 12 Dec 2008, at 11:30, Martin Grigorov wrote: Sofia, Bulgaria El jue, 11-12-2008 a las 19:57 +0100, francisco treacy escribiĆ³: to know a little bit more of our great (and vast) community, i was just wondering if you're

Re: [OT] wicket users around the world

2008-12-12 Thread Steve Swinsburg
Even more off topic: Despite popular belief, Koala's are not bears - both are mammals but only the Koala is a marsupial ;) -steve On 12 Dec 2008, at 14:35, trames wrote: Toledo is nowhere near Australia or Austria although I think there are some kangaroos hopping around in our great

DropDownChoice with Model for data and HashMap of key/values

2008-12-12 Thread Steve Swinsburg
Hi all, I've been over all the DDC examples but am still stumped by this one. I have a model (pojo) which holds user preferences, the preference for each item being an Integer. ie public class UserPreferences { int preferenceOne; int preferenceTwo constructor getters and setters for

Re: DropDownChoice with Model for data and HashMap of key/values

2008-12-12 Thread Steve Swinsburg
ichoicerendererinteger() { Object getDisplayValue(integer object) { return choices.get((integer)object); } String getIdValue(integer object, int index) { return object.tostring(); } } -igor On Fri, Dec 12, 2008 at 9:46 AM, Steve Swinsburg s.swinsb...@lancaster.ac.uk wrote: Hi all, I've been over all the DDC

Re: DropDownChoice with Model for data and HashMap of key/values

2008-12-15 Thread Steve Swinsburg
to be in the choicerenderer. your domain model type is integer, ddcinteger looks like this: dropdownchoice(string id, imodelinteger model, imodellistinteger choices, ichoicerendererinteger renderer) -igor On Fri, Dec 12, 2008 at 10:36 AM, Steve Swinsburg s.swinsb...@lancaster.ac.uk wrote: Thanks

Re: updating text in labels using ajax?

2008-12-18 Thread Steve Swinsburg
The submit button for your form is the AjaxButton that Michael mentioned below. You use that instead of a normal button and in the onSubmit method you fire off your web services and any other stuff you need. You also have available the AjaxRequestTarget which you then 'add' the label to

Re: Round corners n' stuff? Possible Contribution?

2008-12-22 Thread Steve Swinsburg
The liquidcanvas seems to be working fine on Safari 3.2.1. I'm all for a jQuery plugin as they generally seems to be more cross browser compatible. There is also jQuery corners: http://www.atblabs.com/jquery.corners.html or the simple CSS you can apply yourself. .roundedThing {

Re: Applying Styles Through Java

2008-12-23 Thread Steve Swinsburg
You can do it in either but since its best to separate the display from the logic, keep it in the HTML. Exception is if you need to dynamically change the class etc. HTML: div class=someCSS wicket:id=someComponent stuff /div Java: look at AttributeAppender AttributeModifier that appends

Re: Form submission - Javascript alert dialog

2009-01-05 Thread Steve Swinsburg
If you use an AjaxButton you can use the AjaxRequestTarget like so: AjaxButton submitButton = new AjaxButton(submit) { protected void onSubmit(AjaxRequestTarget target, Form form) { if(save(form)) { //successful }

Re: DropDownChoice onchange event with AjaxEventBehaviour

2009-01-07 Thread Steve Swinsburg
Can you post what you need to do. Does Step 2 take some time to complete? You could: do step 1 do step 2 and wait for response then do step 3 cheers, Steve On 7 Jan 2009, at 12:59, Yazeed Isaacs wrote: If I implement all 3 steps in the same onchange event, then step 3 would remove

FileUpload broken in Firefox 3.0.5

2009-01-09 Thread Steve Swinsburg
Hi all, Just testing an application I have written which works perfectly fine in Safari 3.2.1, but in Firefox 3.0.5 the FileUpload is failing. Some code: in form: //upload form component FileUploadField uploadField = new FileUploadField(picture); form.add(uploadField); in onSubmit() of

Re: Multiple Copies of One Wicket App

2009-01-09 Thread Steve Swinsburg
You're doing it backwards. Have one webapp which accepts the parameter at the end of the URL, not before. cheers, Steve On 9 Jan 2009, at 13:36, Sean W wrote: path: /ContextPath/wicket/BookmarkablePage It appears to me that using Wicket you cannot place anything in the path between

Re: FileUpload broken in Firefox 3.0.5

2009-01-09 Thread Steve Swinsburg
I can confirm that the same code works on Firefox 3.0.4 - I just ran it up on the older version. So its definitely the 3.0.5 update which has the issue. Any ideas? cheers, Steve On 9 Jan 2009, at 13:36, Steve Swinsburg wrote: Hi all, Just testing an application I have written

Re: FileUpload broken in Firefox 3.0.5

2009-01-12 Thread Steve Swinsburg
Interesting. I found my issue was related to attaching a Behaviour to an onblur event. It was clearing the FileUpload field for some reason. I've also noticed that FileUpload getContentType() doesn't always return properly when a file has been uploaded from IE (I've seen this issue with

Re: Advice on payment options with wicket

2009-01-14 Thread Steve Swinsburg
Submit the form as normal in Wicket, validate, etc, then craft a request to the external form and send your data that way. cheers, Steve On 14 Jan 2009, at 16:44, Mathias P.W Nilsson wrote: The main problem is the external form. I need to send the form to an external server. Since

skip item in populateItem of ListView

2009-01-15 Thread Steve Swinsburg
Hi all, I have a situation whereby certain conditions mean I need to skip an item that is being rendered in a ListView. ie inside the populateItem() method I do some processing and if that item fails, it shouldn't be rendered so I'd like to skip to the next item. I know I *could* process

setEnabled() adds markup. Another way of disabling a link?

2009-01-16 Thread Steve Swinsburg
Hi all, I have a link which, depending on certain conditions, I need unlinked (ie disabled). //link (if allowed, or none, just the label) Link link = new Link(link) { public void onClick() { setResponsePage(new ViewProfile((String)getModelObject())); } };

Re: setEnabled() adds markup. Another way of disabling a link?

2009-01-16 Thread Steve Swinsburg
, James Carman wrote: Override isVisible()? Or, do you want it to show text, just not be clickable? On Fri, Jan 16, 2009 at 12:51 PM, Steve Swinsburg s.swinsb...@lancaster.ac.uk wrote: Hi all, I have a link which, depending on certain conditions, I need unlinked (ie disabled). //link

Re: setEnabled() adds markup. Another way of disabling a link?

2009-01-16 Thread Steve Swinsburg
, 2009 at 11:57 AM, Steve Swinsburg s.swinsb...@lancaster.ac.uk wrote: Yeah It needs to show the label and not be clickable if there is no link, or link and the label if there is to be a link e.g. in Facebook, a search shows a user's name but it may or may not be clickable depending

different modal windows from same link or just multiple links?

2009-01-23 Thread Steve Swinsburg
Hi all, I have a situation where depending on some circumstances, any one of three different modal windows could be activated by clicking a single link, which itself changes. ie add/confirm/remove but only one can be visible at any one time. I don't want three links. Is there any way to

Re: different modal windows from same link or just multiple links?

2009-01-23 Thread Steve Swinsburg
Hi Daniel, Do you mind sharing some code? I would prefer to be using the same modal window if possible. cheers, Steve --- Steve Swinsburg Portal Systems Developer Centre for e-Science Lancaster University Lancaster LA1 4YT email: s.swinsb...@lancaster.ac.uk phone: +44 (0) 1524 594870

Re: Modal window position - always centred, even on long page

2009-01-27 Thread Steve Swinsburg
() { // your own version }; Hope this helps, German 2009/1/23 Steve Swinsburg s.swinsb...@lancaster.ac.uk Hi all, I have a fairly long page making use of Modal Windows, and any ModalWindow that I place onto this page always renders in the exact centre of the page (vertically). So

Re: passing values to own exception pages

2009-02-02 Thread Steve Swinsburg
can redirect to your error page passing in the exception. -igor On Mon, Feb 2, 2009 at 9:03 AM, Steve Swinsburg s.swinsb...@lancaster.ac.uk wrote: Hi all, I have specified some pages that I would like rendered in place of the Wicket exception pages, in deployment mode, like so: /* if Session

passing values to own exception pages

2009-02-02 Thread Steve Swinsburg
to the user (and it needs to be emailed etc). cheers, Steve --- Steve Swinsburg Portal Systems Developer Centre for e-Science Lancaster University Lancaster LA1 4YT email: s.swinsb...@lancaster.ac.uk phone: +44 (0) 1524 594870 smime.p7s Description: S/MIME cryptographic signature

Re: ajax submit of form caching images

2009-02-03 Thread Steve Swinsburg
SOLVED! used NonCachingImage instead of Image when rendering the component to add random guff to the end of the img src url. woo hoo! cheers, Steve On 3 Feb 2009, at 17:59, Steve Swinsburg wrote: Hi all, I have two search forms on the one page, one for searching by name, one

ajax submit of form caching images

2009-02-03 Thread Steve Swinsburg
Hi all, I have two search forms on the one page, one for searching by name, one for searching by interest. When either is submitted via Ajax, it gets the results and then repaints a ListView. This List View has an LDM that wraps the results. This is all working fine, the data is coming

Re: making a HTTP request directly in Wicket

2009-02-05 Thread Steve Swinsburg
a query url (GET). In my understanding POST must come from the client browser so it cannot be constructed by Wicket as such. ** Martin 2009/2/5 Steve Swinsburg s.swinsb...@lancaster.ac.uk: Hi all, just wondering if there is any API in Wicket that wraps up making a HTTP POST request directly (ie

urlFor and putClassAlias

2009-02-10 Thread Steve Swinsburg
Hi all,In my application I am generating a link to a page like so:final String url = "" style="color: #7f0055">class, null).toString(); and then that link is put in an email. However the link includes the package name:e.g.%3Fwicket%3AbookmarkablePage%3D%3Asome.package.name.goes.here.MyPageI have

Re: mountBookmarkablePage changes delimiter of PageParameters

2009-02-10 Thread Steve Swinsburg
Thanks Fabrizio I'll give it a go. Re having a default parameter, I found this that may help? Haven't tried it myself: use IndexedParamUrlCodingStrategy to mount your page. e.g. params.put(0, foo); params.put(1, bar); params.put(2, cux); will result in mountpoint/foo/bar/cux (in that order)

simple radiogroup with true/false and a propertymodel

2009-02-16 Thread Steve Swinsburg
Hi all, I can't figure out how the RadioGroup component works in Wicket My use case is this. I have a bunch of parameters which I need a true/ false answer for. So each group of choices (true or false) will map to a boolean parameter in my PropertyModel. What is wrong with this code:

building a wicket app with maven 1

2009-03-12 Thread Steve Swinsburg
Hi all, I have a need to backport my wicket app that builds perfectly in Maven2 to Maven1. I think I've adjusted all the pom.xml to project.xml correctly as all the classes and dependent jars looks like they are where they need to be, but on startup I get this:

Re: building a wicket app with maven 1

2009-03-13 Thread Steve Swinsburg
Adriano. I don't seem to need that for my Maven2 build though, is there a reason for that? I'll try that though. cheers, Steve On 12/03/2009, at 8:02 PM, Adriano dos Santos Fernandes wrote: Steve Swinsburg escreveu: Hi all, I have a need to backport my wicket app that builds perfectly

Re: optional link

2009-03-18 Thread Steve Swinsburg
If you still need the link text to appear, but not be linked, then you can do: link.isEnabled(false); This will surround the link with an em tag instead of the a tag. If you don't want any tag to be substituted, have this in your Application class:

wicket panels and parent class

2008-09-29 Thread Steve Swinsburg
Hi all, I'm a new Wicket user and am developing an application making use of Panels. The Panels are working, however I need to access some objects in the panel that are defined in the parent class and am not sure how to do this. e.g. MyProfile.java: String userId =

Re: wicket panels and parent class

2008-09-29 Thread Steve Swinsburg
it from the session. Michael Sparer wrote: getParent() ? Steve Swinsburg-2 wrote: Hi all, I'm a new Wicket user and am developing an application making use of Panels. The Panels are working, however I need to access some objects in the panel that are defined in the parent class

Re: wicket panels and parent class

2008-09-29 Thread Steve Swinsburg
Thanks everyone, I changed my constructor to accept the object I wanted and passed it in from the parent class. It's working now. cheers, Steve --- Steve Swinsburg Portal Systems Developer Centre for e-Science Lancaster University Lancaster LA1 4YT email: [EMAIL PROTECTED] phone: +44 (0

no title in ExternalLink

2008-10-17 Thread Steve Swinsburg
Hi all, I've just noticed a deficiency in the ExternalLink component that doesn't allow a 'title' field to be set in its constructor. This is a basic HTML attribute that all links should have (for accessibility and expected behaviour). Currently this is only achieved by using

AjaxButton - no label constructor?

2008-10-24 Thread Steve Swinsburg
an model for rendering the 'label' of the button (the value attribute of the input/button tag). I realise you can use setLabel to set the label after it's been declared but it just seems inconsistent. cheers, Steve --- Steve Swinsburg Portal Systems Developer Centre for e-Science Lancaster

birthday dropdown with month/leap year variances

2008-10-27 Thread Steve Swinsburg
Hi all, I am creating a set of dropdown choices for a user to enter their birthday on a profile. One for day of the month, one for month of the year, and one for year. However I want to be able to take into account months that have differing numbers of days, (ie some 30, some 31, some

Re: no title in ExternalLink

2008-10-28 Thread Steve Swinsburg
titleModel) { super(id); add(new AttributeModifier(title, true, titleModel)); } } Steve Swinsburg-2 wrote: Hi all, I've just noticed a deficiency in the ExternalLink component that doesn't allow a 'title' field to be set in its constructor. This is a basic HTML attribute

Re: wicket and 508 compilance

2008-10-28 Thread Steve Swinsburg
a short look at DDC? Instead of taking this narrow vision, perhaps start a discussion of how we can make accessibility easy to implement, while not raping our API? Martijn On Tue, Oct 28, 2008 at 4:23 PM, Steve Swinsburg [EMAIL PROTECTED] wrote: I alluded to this in a feature request for a new

Re: wicket and 508 compilance

2008-10-28 Thread Steve Swinsburg
Carman wrote: DropDownChoice On Tue, Oct 28, 2008 at 11:48 AM, Steve Swinsburg [EMAIL PROTECTED] wrote: What are you referring to when you say DDC? The Dewey Decimal System? Used by pretty much every library around the world making it really easy to find books? I'd call that accessible. So

Re: wicket and 508 compilance

2008-10-28 Thread Steve Swinsburg
For the Javadoc? (please stop being so vague!) No worries, I'll do this up and submit it into a general accessibility Javadoc improvement Jira ticket. Steve On 28 Oct 2008, at 15:57, Martijn Dashorst wrote: On Tue, Oct 28, 2008 at 4:48 PM, Steve Swinsburg [EMAIL PROTECTED] wrote: So

Re: wicket and 508 compilance

2008-10-28 Thread Steve Swinsburg
that exercise the new code. On Tue, Oct 28, 2008 at 12:02 PM, Steve Swinsburg [EMAIL PROTECTED] wrote: For the Javadoc? (please stop being so vague!) No worries, I'll do this up and submit it into a general accessibility Javadoc improvement Jira ticket. Steve On 28 Oct 2008, at 15:57, Martijn

Re: no title in ExternalLink

2008-10-28 Thread Steve Swinsburg
the title. This way you're forced to come up with a decent title - which in turn improves accessibility/usability. then you're not tempted to use a default constructor ... well just my two cents - if the JIRA goes through, I'll be fine with it too :-) Michael Steve Swinsburg-2 wrote: Hi all

FileUpload always null

2008-11-05 Thread Steve Swinsburg
Hi all, I'm having an odd problem in uploading a file where the result of: FileUpload upload = uploadField.getFileUpload(); is always null. I can't see what I've done wrong. Here's part of my onSubmit method which works for textfields, but not fileuploads. It's a normal fileupload by the

Re: FileUpload always null

2008-11-06 Thread Steve Swinsburg
, but its a normal form submit. Even when the form is always visible, ie no Javascript to show it, same thing. Any ideas? Thanks On 5 Nov 2008, at 18:33, Igor Vaynberg wrote: are there validation errors? -igor On Wed, Nov 5, 2008 at 10:14 AM, Steve Swinsburg [EMAIL PROTECTED] wrote: Hi

Re: FileUpload always null

2008-11-06 Thread Steve Swinsburg
to see what kind of model the form has and stuff like that. On Thu, Nov 6, 2008 at 5:58 AM, Steve Swinsburg [EMAIL PROTECTED] wrote: Nope, the form works fine, it just never reaches the line: System.out.println(2 - upload not null); Or do you mean HTML validation errors? Thats fine as well

Re: FileUpload always null

2008-11-06 Thread Steve Swinsburg
adding a FeedbackPanel to your form somewhere? Let's make sure there are no errors. On Thu, Nov 6, 2008 at 6:41 AM, Steve Swinsburg [EMAIL PROTECTED] wrote: Sure thing. Essentially, a POJO called UserProfile is a param of the constructor for the form. One thing that is probably the issue

Re: FileUpload always null

2008-11-06 Thread Steve Swinsburg
need to see what kind of model the form has and stuff like that. On Thu, Nov 6, 2008 at 5:58 AM, Steve Swinsburg [EMAIL PROTECTED] wrote: Nope, the form works fine, it just never reaches the line: System.out.println(2 - upload not null); Or do you mean HTML validation errors? Thats fine as well

Re: FileUpload always null

2008-11-06 Thread Steve Swinsburg
help there. like i said, set a breakpoint in getfileupload and see why it returns null. you can also try setting a breakpoint in form.onformsubmitted() and tracing how it is processing multipart. -igor On Thu, Nov 6, 2008 at 9:28 AM, Steve Swinsburg [EMAIL PROTECTED] wrote: Ok I generated

Re: FileUpload always null

2008-11-07 Thread Steve Swinsburg
Ok this is sorted out now. Turned out the RequestFilter from Sakai was altering fileuploads, had to make a change there so get past it. cheers, Steve On 6 Nov 2008, at 17:53, Steve Swinsburg wrote: Ok I just thought that using the WicketServlet rather than the WicketFilter might have

Re: RESTful Web Services with Wicket (and XStream)

2008-11-07 Thread Steve Swinsburg
Still slightly on topic, but do you know of a fast and efficient way to output JSON (some library like XStream perhaps) in the same method, rather than XML? cheers, Steve On 7 Nov 2008, at 04:05, Ned Collyer wrote: As you probably are aware - this is just outputting XML using

combining target.addComponent and javascript

2008-11-10 Thread Steve Swinsburg
Hi all, I am wanting to combine an AjaxRequestTarget addComponent call with a javascript call as well so that the component is added to the page by wicket, but displayed using a jQuery effect. The component adds to the page fine, but the jQuery effect doesn't seem to be working, the

Re: internationalising error messages

2008-11-11 Thread Steve Swinsburg
was under the understanding it was meant to cascade up the tree? Does Component's getString() method not cascade for properties? If they are both just as localisable, I'm happy ;) cheers, Steve On 11 Nov 2008, at 14:12, Jurrie Overgoor wrote: Steve Swinsburg wrote: That throws

Re: Overriding builtin error messages

2008-11-11 Thread Steve Swinsburg
) like the Form component does? cheers, Steve 4 (0) 1524 594870 On 11 Nov 2008, at 15:55, [EMAIL PROTECTED] wrote: How dynamic is your form's id? Shouldn't be static because of HTML reference? On Nov 11, 2008 1:53pm, Steve Swinsburg [EMAIL PROTECTED] wrote: I'd like to override

Overriding builtin error messages

2008-11-11 Thread Steve Swinsburg
I'd like to override the default form feedback messages (also so I can localise them). ie 'Upload must be less than' In Form.java I found this : // Resource key should be form-id.uploadTooLarge to // override default message But I'm still not sure how to override it in a Properties file if

Re: internationalising error messages

2008-11-11 Thread Steve Swinsburg
2008, at 13:24, James Carman wrote: Component has a getString() method that you can use to access its message bundle. On Tue, Nov 11, 2008 at 8:17 AM, Steve Swinsburg [EMAIL PROTECTED] wrote: Is there a way to internationalise the error messages? I'd like them to come from my resource bundle

internationalising error messages

2008-11-11 Thread Steve Swinsburg
Is there a way to internationalise the error messages? I'd like them to come from my resource bundle: error(new ResourceModel(error.empty.file.uploaded)); doesnt work and gives: Model:classname=[org.apache.wicket.model.ResourceModel] as the output. Alternatively I'll need to look at using a

Re: internationalising error messages

2008-11-11 Thread Steve Swinsburg
wrote: Steve Swinsburg wrote: Cool, ended up doing this: error(new StringResourceModel(error.empty.file.uploaded, this, null).getString()); Reckon thats the best solution? It's a bit heavier than just ResourceModel, for simple strings with no param substitution would it still be ok? I

Re: Issue with FileUpload.writeToTempFile()

2008-11-12 Thread Steve Swinsburg
Its just the line endings that are causing the issues with the formatting. There is an app called FLIP (http://ccrma-www.stanford.edu/~craig/utility/flip/ ) which I just used on both files and it reformatted with proper Unix file endings (it converts between all variants). I've attached the

Re: Overriding builtin error messages

2008-11-12 Thread Steve Swinsburg
wicket:id in markup matches the id you're giving the component... :-) Charlie. 2008/11/11 Steve Swinsburg [EMAIL PROTECTED] Ah so is the form-id in the docs the wicket:id which is static in the HTML or is it the markup id of the form which is dynamic? Does this then mean that in my

Re: Reading an attribute that is set in a CSS file as a class

2008-11-17 Thread Steve Swinsburg
the attribute in it and AttributeAppender that in? -Original Message- From: egolan74 [mailto:[EMAIL PROTECTED] Sent: Sun 11/16/2008 10:42 AM To: users@wicket.apache.org Subject: RE: Reading an attribute that is set in a CSS file as a class Steve Swinsburg-2 wrote: On your component

Re: Wicket portlet in uPortal 3.1.1

2009-11-24 Thread Steve Swinsburg
without knowing the specificities of uPortal. Are you using portlet 1.0 or 2.0? HTH, Pierre On Tue, Nov 24, 2009 at 6:16 AM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Hi all, I'm trying to get a portlet happening for uPortal 3.1.1 which is based on the Portlet API 1.0 spec

Re: Wicket portlet in uPortal 3.1.1

2009-11-24 Thread Steve Swinsburg
at 10:39 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Yep I've seen that page. uPortal is Portlet 1.0 based (Pluto). Do you mean add the same filters/listeners as a Wicket based application would normally use to the normal uPortal descriptors? Because a uPortal portlet can have

Re: Wicket portlet in uPortal 3.1.1

2009-11-24 Thread Steve Swinsburg
On Tue, Nov 24, 2009 at 11:21 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Thanks Pierre. Ok so a basic uPortal portlet doesn't need anything in web.xml. When you deploy, as part of the spec it must be run through the Pluto Assembly which writes the necessary config (also

Wicket portlet ClassCastException

2009-11-24 Thread Steve Swinsburg
Hi all, I have a Wicket portlet running in uPortal, and normal things like labels and images work, but for anything that submits data, ie a Link or Button, it throws a ClassCastException: org.apache.pluto.internal.impl.ActionResponseImpl cannot be cast to javax.portlet.RenderResponse It may be

Re: Ajax Panels Direction

2009-12-06 Thread Steve Swinsburg
Hi, Yes you can do the processing for the form in the onSubmit of the ajax submit button, then just replace the current panel with the new one. - outside your onSubmit hold a reference to your current panel: final Component thisPanel = this; - inside your onSubmit after processing the data:

Re: Location of html files

2009-12-06 Thread Steve Swinsburg
Jar? I don't know about you but my webapps build to a WAR and the compiled classes are in WEB-INF/classes/ *This* is the Maven default. If the idea is to create truly reusable components, then don't do it in the same project, create a supporting components project that *will* package as a

ObjectAutoCompleteField and specifying the fields from the object to use

2009-12-20 Thread Steve Swinsburg
Hi, I am using ObjectAutoCompleteField from WicketStuff and it looks like what I need for my scenario: I have an object list with a bunch of fields and when the user searches, it needs to match on a certain field and display the list of matches. The examples do this with a Car object with an

Re: ObjectAutoCompleteField and specifying the fields from the object to use

2009-12-20 Thread Steve Swinsburg
Nevermind. I ended up going with this approach where I could separate the values: http://cwiki.apache.org/WICKET/autocomplete-using-a-wicket-model.html I will add my code snippet to the page. cheers, Steve On 21/12/2009, at 11:57 AM, Steve Swinsburg wrote: Hi, I am using

Re: Location of css and js files

2009-12-21 Thread Steve Swinsburg
None of these solutions are going to do what the OP really needs since they all assume an app server is serving the pages. Presumably he wants the designer to be able to run up the static HTML in the browser, without running in a web application. You have a few options: 1. link the files as

Re: ObjectAutoCompleteField and specifying the fields from the object to use

2009-12-21 Thread Steve Swinsburg
On further investigation, the values aren't being separated after all. What is added to the textfield is what is submitted in the form. Is it possible to submit a different value than just the display text? thanks, Steve On 21/12/2009, at 1:54 PM, Steve Swinsburg wrote: Nevermind. I ended

opening modelwindow freezes IE8

2009-12-21 Thread Steve Swinsburg
Hi everyone, I've had a report from a user of a Wicket app, that when the AjaxLink to open a ModalWindow is clicked, the ModalWindow opens and the browser freezes. This is on IE8 and in Windows 7 or XP. However, running it in Compatibility Mode it seemed to work. Works ok in other browsers.

Re: ObjectAutoCompleteField and specifying the fields from the object to use

2009-12-21 Thread Steve Swinsburg
not sure, but you could try to set idProperty in ObjectAutoCompleteBuilder On Mon, Dec 21, 2009 at 10:54 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: On further investigation, the values aren't being separated after all. What is added to the textfield is what is submitted

Re: ObjectAutoCompleteField and specifying the fields from the object to use

2009-12-21 Thread Steve Swinsburg
Actually I have just found in the javadocs the AbstractObjectAutoCompleteRenderer which does the separation. I'll give that a go. cheers, Steve On 22/12/2009, at 10:54 AM, Steve Swinsburg wrote: I decided against using the ObjectAutoCompleteTextField because it was too restrictive

Re: ObjectAutoCompleteField and specifying the fields from the object to use

2009-12-21 Thread Steve Swinsburg
) { return p.getDisplayName(); } }; and then: builder.autoCompleteRenderer(renderer); Does what I want. Thanks for the tip! cheers, Steve On 22/12/2009, at 10:57 AM, Steve Swinsburg wrote: Actually I have just found in the javadocs

wicketstuff portlets - where did it go?

2009-12-30 Thread Steve Swinsburg
Hi all, The link from this page: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-portlets references this spot in SVN: http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-13/wicket-portlets which doesn't exist. Anyone know where it went or have a copy of it?

Re: wicketstuff portlets - where did it go?

2009-12-30 Thread Steve Swinsburg
Ah looks like I may have found it: http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/attic/wicket-portlets/ On 31/12/2009, at 5:18 PM, Steve Swinsburg wrote: Hi all, The link from this page: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-portlets references

Re: SV: wicketstuff portlets - where did it go?

2009-12-31 Thread Steve Swinsburg
Right I thought as much once I found the source. Unfortunately it doesn't provide the actual JSR168 implementations from Apache Portals Bridges Common which I was hoping for. Cheers ~ steve (sent from my ipod) On 31/12/2009, at 7:48 PM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: Ah

Re: Hello World Portlet

2010-01-03 Thread Steve Swinsburg
Hi Mansour, Thats just the Tomcat log, you should have a portal log that has the actual exception or error that occurred? cheers, Steve On 04/01/2010, at 3:32 PM, Mansour Al Akeel wrote: Sorry, Forgot to include the error message: Found web.xml Found WEB-INF/portlet.xml Attempting to

Re: Hello World Portlet

2010-01-03 Thread Steve Swinsburg
the issue, or something else when I was trying to run it as a web app. It's working anyway. Would it be a good idea to provide a maven archetype for wicket portlets ? On Mon, Jan 4, 2010 at 1:42 AM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi Mansour, Thats just the Tomcat log, you

Re: Hello World Portlet

2010-01-03 Thread Steve Swinsburg
they sould be. I am still new to wicket, but enjoying it already :) On Mon Jan 04,2010 04:52 pm, Steve Swinsburg wrote: Absolutely that would be great. BTW I assume this is Jetspeed 2 since its JSR286? On 04/01/2010, at 4:48 PM, Mansour Al Akeel wrote: I checked jetspeed.log

Re: Detecting an external change to the ModelObject of a Form

2010-01-05 Thread Steve Swinsburg
Good stuff, can you put this up on in Confluence with some code samples? http://cwiki.apache.org/WICKET/reference-library.html cheers, Steve On 05/01/2010, at 10:31 PM, Stijn Maller wrote: Oooops, in case some of you are baffled that this code would work, let me put your mind at ease, it

Re: RadioGroup with radio objects with same values

2010-01-06 Thread Steve Swinsburg
Hi, If its the first item in the list, set it to be selected one. A simple boolean could work here. cheers, Steve On 07/01/2010, at 2:04 AM, Kogel, Jonck-van-der wrote: Hi, I have a radiogroup that is built up dynamically, so I don't know ahead of time what the choices are going to be.

Re: Help with Wicket Adoption Numbers

2010-01-07 Thread Steve Swinsburg
On the wiki there are some pages to help your cause: http://cwiki.apache.org/WICKET/websites-based-on-wicket.html http://cwiki.apache.org/WICKET/products-based-on-wicket.html as well as blogs talking about Wicket, and lots more useful PR info: http://cwiki.apache.org/WICKET/index.html All the

Re: Wicket session not threadsafe?

2010-01-08 Thread Steve Swinsburg
The first thing to do would be to reproduce the issue in a dev environment, then try upgrading that environment to 1.3.7 and see if that solves the problem. There shouldn't be any API breaks in the 1.3 series so this should be a simple POM dependency version update. It might also be your

Re: Wicket session not threadsafe?

2010-01-08 Thread Steve Swinsburg
: unfortunately it is extremely difficult to reproduce in dev. Have tried it a lot. but the issue seems to happen vaer rare in a multi-user env. Thing is though ti happens rarely... it is a client facing issue and data integrity as promised is challenged. Steve Swinsburg-3 wrote: The first

JVM crash, Wicket class mentioned

2010-01-11 Thread Steve Swinsburg
Hi, This came up on another list I am part of, and being a member of this list, thought I'd ask here to see if this is a known fixed issue. This is with an app written using Wicket 1.3.0. Essentially, the JVM crashed with this error under Java 1.6, the same app runs fine under Java 1.5: # # A

Re: JVM crash, Wicket class mentioned

2010-01-11 Thread Steve Swinsburg
/01/2010, at 11:54 PM, Martin Makundi wrote: Hi! Did you try newer jvm build? ** Martin 2010/1/11 Steve Swinsburg steve.swinsb...@gmail.com: Hi, This came up on another list I am part of, and being a member of this list, thought I'd ask here to see if this is a known fixed issue

Re: JVM crash, Wicket class mentioned

2010-01-12 Thread Steve Swinsburg
remember having similar problems before and they were fixed by upgarding jvm (1.6.0_17 - 1.6.0_18 for example). ** Martin 2010/1/11 Steve Swinsburg steve.swinsb...@gmail.com: Hi Martin, I'll pass that on, but the JRE version is 1.6.0_17-b04 unless you mean the 14.3-b01 VM version

Re: making tinyMce TextArea readonly

2010-01-12 Thread Steve Swinsburg
Here's a class I created which extends the default TinyMCESettings class. I use this as my configuration and can customise it to my hearts content, adding and removing buttons: /** * A configuration class for the TinyMCE Wicket component, used by textareas. * If more are required for

clearing a TextField

2010-01-13 Thread Steve Swinsburg
Hello all, I have a list of items and an ajax form at the bottom so you can add items to the list, containing a single textfield and a submit button. On successful submit, the item is saved and the list is redrawn. Great! I want to clear the textfield though so new items can be added, since the

Re: clearing a TextField

2010-01-13 Thread Steve Swinsburg
unless it's really necessary On Thu, Jan 14, 2010 at 6:55 AM, Steve Swinsburg steve.swinsb...@gmail.comwrote: Hello all, I have a list of items and an ajax form at the bottom so you can add items to the list, containing a single textfield and a submit button. On successful submit

Re: Wicket Wizards and Hibernate

2010-01-14 Thread Steve Swinsburg
Hi, Once you have the object built up, you could reattach it to the session with saveOrUpdate() which will figure out if it needs to insert or update. This assumes you are using the Spring Hibernate wrapper templates. cheers, Steve On 14/01/2010, at 9:47 PM, Rodolfo Cartas wrote: Hi! I'm

urlFor works, but combined with mountBookmarkablePage it doesn't

2010-01-15 Thread Steve Swinsburg
Hi all, I have the following code which generates a URL to a page with some parameters: String url = urlFor(MyMessageView.class, new PageParameters(thread= + ad9697d2-8328-43b4-be28-ee677a88bc9a)).toString(); This generates a URL like so:

Re: urlFor works, but combined with mountBookmarkablePage it doesn't

2010-01-16 Thread Steve Swinsburg
Hi, Thanks for the tips. Unfortunately, the container I am deploying into is stripping the request parameters. I've had to code my own bookmarkable page link method for this container. cheers, Steve On 16/01/2010, at 12:36 AM, Martin Grigorov wrote: On Fri, 2010-01-15 at 22:29 +1100, Steve

Re: Image name changing in dev server

2010-01-19 Thread Steve Swinsburg
Can you use a ContextImage? On 20/01/2010, at 6:07 AM, vg...@osc.state.ny.us wrote: We do not need any naming rules. Thats why I am confused. My code is this inside a reating view. Image image = new Image(circle+i, /images/circlegray.JPG) In local enviornment it works fine but in

onAfterRender called twice in AjaxLazyLoadPanel

2010-01-20 Thread Steve Swinsburg
I have an AjaxLazyLoadPanel and want some javascript to fire after its loaded it's contents: I assumed I could override onAfterRender and add my javascript like so: add(new AjaxLazyLoadPanel(myPanel) { @Override public Component getLazyLoadComponent(String markupId) {

  1   2   3   >