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

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

wicketstuff tinymce for Wicket 1.3.5/6

2009-07-17 Thread Steve Swinsburg
Hi all, What's the version of TinyMCE from wicketstuff thats recommended for 1.3.5 or 1.3.6? I only see 1.3-SNAPSHOT in the Maven repo but am not too keen on putting a SNAPSHOT jar into production. dependency groupIdorg.wicketstuff/groupId

Re: wicketstuff tinymce for Wicket 1.3.5/6

2009-07-17 Thread Steve Swinsburg
Ok so I was including the 1.3-SNAPSHOT version in testing, added the TinyMCEBehaviour to my textarea, everything built fine, but it did nothing. No markup was rendered either, nor anything in the logs. Is it broken right now? Tending towards making my own component if this one doesn't work.

Re: getting child items of a ListView ListItem

2009-07-13 Thread Steve Swinsburg
Ok thats working nicely, the ModalWindow callback is inside the onClick of the Link in the Item and using one instance of a MW per list instead of one per item. Thanks for your help Martin :) Regards. On 12 Jul 2009, at 18:45, Martin Makundi wrote: BTW::: SHOW AFTER initializing

Re: getting child items of a ListView ListItem

2009-07-12 Thread Steve Swinsburg
Steve Swinsburg steve.swinsb...@gmail.com: Yeah that sounds like what I need. I need to update some text in a span thats inside my ListItem once I do some processing. Thanks, Steve On 11 Jul 2009, at 10:16, Martin Makundi wrote: ListView returns an iterator of ListItems Each ListItem

getting child items of a ListView ListItem

2009-07-11 Thread Steve Swinsburg
Hi all, I have a ListView and need to be able to get some child items of a particular ListItem, ie some spans, so that I can update their Models. How can I target some markup elements inside the ListItem container (ie TR tag)? Thanks, Steve

Re: getting child items of a ListView ListItem

2009-07-11 Thread Steve Swinsburg
listItem.get(component_id); Does this sound like what you were looking for? ** Martin 2009/7/11 Steve Swinsburg steve.swinsb...@gmail.com: Hi all, I have a ListView and need to be able to get some child items of a particular ListItem, ie some spans, so that I can update their Models. How can I

Re: getting child items of a ListView ListItem

2009-07-11 Thread Steve Swinsburg
: It would be better design to make the span update itself using an abstract readnly model: new Label(automatic, new AbstractReadOnlyModelString() { public String getObject() { return whatever value you need + getSession().getCurrentValueOrState(); } });. ** Martin 2009/7/11 Steve Swinsburg

Re: getting child items of a ListView ListItem

2009-07-11 Thread Steve Swinsburg
itself using an abstract readnly model: new Label(automatic, new AbstractReadOnlyModelString() { public String getObject() { return whatever value you need + getSession().getCurrentValueOrState(); } });. ** Martin 2009/7/11 Steve Swinsburg steve.swinsb...@gmail.com: Yeah that sounds like

Re: getting child items of a ListView ListItem

2009-07-11 Thread Steve Swinsburg
design to make the span update itself using an abstract readnly model: new Label(automatic, new AbstractReadOnlyModelString() { public String getObject() { return whatever value you need + getSession().getCurrentValueOrState(); } });. ** Martin 2009/7/11 Steve Swinsburg steve.swinsb...@gmail.com

Re: getting child items of a ListView ListItem

2009-07-11 Thread Steve Swinsburg
update itself using an abstract readnly model: new Label(automatic, new AbstractReadOnlyModelString() { public String getObject() { return whatever value you need + getSession().getCurrentValueOrState(); } });. ** Martin 2009/7/11 Steve Swinsburg steve.swinsb...@gmail.com: Yeah that sounds

Re: getting child items of a ListView ListItem

2009-07-11 Thread Steve Swinsburg
AbstractReadOnlyModelString() { public String getObject() { return whatever value you need + getSession().getCurrentValueOrState(); } });. ** Martin 2009/7/11 Steve Swinsburg steve.swinsb...@gmail.com: Yeah that sounds like what I need. I need to update some text in a span thats inside my

what's too big for a session size?

2009-06-15 Thread Steve Swinsburg
Hi all, I'm monitoring my Wicket app via the RequestLogger and going through making improvements where needed. I am wondering what the size of a session would be before it is considered too large? Is the value given in the 'sessionsize' attribute of the logging output a reasonable way to

page load timer

2009-06-12 Thread Steve Swinsburg
Hi all, I vaguely remember seeing a component or setting that times how long it takes to completely render a page then outputs the result in a Label, can someone point me in the right direction? Or is it as simple as just setting the start time in my BasePage, then checking again at the

Re: page load timer

2009-06-12 Thread Steve Swinsburg
Thats the one I was after. A question though, what units are the measurements displayed in? time/totaltime in milliseconds, session size in bytes? thanks, Steve On 12 Jun 2009, at 16:54, Igor Vaynberg wrote: getRequestLoggerSettings().setRequestLoggerEnabled(true); -igor On Fri, Jun 12,

Re: Disabling component again with AjaxCheckBox

2009-05-31 Thread Steve Swinsburg
Call doUpdateConfirmButton() when the page first loads so you can set it up initially, then again when the checkbox is clicked as you already do. cheers, Steve On 31/05/2009, at 7:40 AM, Rick Gruber-Riemer wrote: Hi I have a checkbox which must be checked for the user to be able to

Re: Storing css and image files

2009-05-27 Thread Steve Swinsburg
I don't see the issue that you all seem to be experiencing but I can offer some advice: CSS, Javascript, images etc should be stored in the webapp directory NOT mixed in with the rest of the classes and HTML. Your CSS can then get at them easily if you are using any background images etc.

Re: Storing css and image files

2009-05-27 Thread Steve Swinsburg
change (say new image version) would have to be done within java instead of just having to change the template. thanks! vasya On Wed, May 27, 2009 at 7:20 AM, Steve Swinsburg s.swinsb...@lancaster.ac.uk wrote: I don't see the issue that you all seem to be experiencing but I can offer some

Re: closing a ModalWindow from a forms onSubmit?

2009-05-26 Thread Steve Swinsburg
Brill this is what I do for a window of mine, it has a few buttons and the parent page needs to know what one was clicked. Doing it in the button's onSubmit works. I pass an object into the ModalWindow's constructor, which was initialised in the parent page, then I set a property into an

Re: DownloadLink (Javadoc)

2009-05-25 Thread Steve Swinsburg
Hi David, You can get the Javadoc either by building it yourself from source via 'mvn javadoc:javadoc' or by issuing 'mvn eclipse:eclipse - DdownloadJavadocs=true' which will get the Javadoc and adjust your Eclipse classpath to link it up. cheers, Steve On 25/05/2009, at 10:54 PM,

Re: Wicket in Php

2009-05-21 Thread Steve Swinsburg
Only if you call it Picket! Sound cool, massive job. On 21 May 2009, at 11:43, Martin Sachs wrote: Hi, wicket in php is a very cool idea. It occurred to me that we can start a port the wicket to a php Framework. I dont know a php-Framework with features like wicket have. Many

Re: What is the correct way to include the Wicket DTD?

2009-05-20 Thread Steve Swinsburg
So how do you include a DOCTYPE definition as well, since that has a DTD associated with it. I just did some experimenting as I had my pages as the wicket.sourceforge.net one previously: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; html

Re: What is the correct way to include the Wicket DTD?

2009-05-20 Thread Steve Swinsburg
Or are you suggesting we replace the w3 dtd with the wicket one that incorporates it? cheers, Steve On 20 May 2009, at 16:17, Steve Swinsburg wrote: So how do you include a DOCTYPE definition as well, since that has a DTD associated with it. I just did some experimenting as I had my

Re: Tools for Managing a Wicket Project

2009-05-19 Thread Steve Swinsburg
You can get Eclipse to auto refresh if you modify files externally. Check preferences. cheers, Steve On 19/05/2009, at 1:15 AM, John Armstrong wrote: I always have to do a 'Refresh' when changing the HTML. Its quite painful.. I tend to author the bulk of my html in an external editor

Re: Bug in RequestUtils.toAbsolutePath?

2009-05-18 Thread Steve Swinsburg
It's available in HttpServletRequest as well. cheers, Steve On 18 May 2009, at 10:37, Martin Makundi wrote: Ah.. so it is even worse... I need the http://www.mycompany.com; - part. ** Martin 2009/5/18 Marat Radchenko slonopotamusor...@gmail.com:

Re: Nested form bug?

2009-05-13 Thread Steve Swinsburg
I think Igor meant for you to post some code. cheers, Steve On 13 May 2009, at 17:27, Martin Makundi wrote: Ok, I was hoping someone has experienced the same stacktrace. I will try to reproduce the bug still, maybe I find something. ** Martin 2009/5/13 Igor Vaynberg

Re: DropDownChoice with ChoiceRender problem

2009-05-12 Thread Steve Swinsburg
What a legend! On 6 May 2009, at 19:46, James Carman wrote: Darn it, Steve on Sakai! ;) Glad to help! On Wed, May 6, 2009 at 2:38 PM, Phillip Rhodes spamsu...@rhoderunner.com wrote: Thanks for the solution. I found this post here (so the reader is getting off easy:)

Re: Maven setup

2009-05-06 Thread Steve Swinsburg
Hi, The dependency is wrong. It should be: dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version1.3.5/version /dependency cheers, Steve On 6 May 2009, at 11:47, Frank Tegtmeyer wrote: Hi, does anybody have a Wicket quickstart

Re: Putting HTML files in src/main/webapp

2009-05-05 Thread Steve Swinsburg
On 05/05/2009, at 1:28 AM, Alan Garfield wrote: The hack I have with maven at the moment properly constructs the war by copying all the .html files into the classes folder for Wicket to find... What 'hack' do you need for Maven to include the HTML in the classes directory?

Re: Putting HTML files in src/main/webapp

2009-05-05 Thread Steve Swinsburg
: http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html All of this information is readily available; first search item for the configuration, quickstart for pom. Steve On 5 May 2009, at 10:11, Alan Garfield wrote: On Tue, 2009-05-05 at 08:32 +0100, Steve Swinsburg

Re: Putting HTML files in src/main/webapp

2009-05-05 Thread Steve Swinsburg
: On Tue, 2009-05-05 at 12:33 +0100, Steve Swinsburg wrote: Alan, The fragment of XML from the pom that I posted IS in the Wicket Quickstart generated via mvn archetype:generate. It's also in the pom when you use the helper code available here: http://wicket.apache.org/quickstart.html Hence why

Re: https://issues.apache.org/jira/browse/WICKET-847

2009-04-28 Thread Steve Swinsburg
The fix version for that issue says 1.3.5 so unless people use Jira incorrectly, it's in 1.3.5. Likewise for the previous issue that people want to hold up the 1.3.6 release for, it has a fix version of 1.3.6 so should be in 1.3.6 already. --Steve On 28/04/2009, at 6:48 AM, Douglas

Re: https://issues.apache.org/jira/browse/WICKET-847

2009-04-28 Thread Steve Swinsburg
is incorrect. But Igor's comment seems to indicate that it WAS fixed. I don't know which is true, but whoever really wants to know should just try it and see - and then comment on the jira to make it clear. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Apr 28, 2009 at 2:26 AM, Steve

Re: Redirect to a static pdf in popup/new tab

2009-04-28 Thread Steve Swinsburg
Could you use PopupSettings to specify it should be a new window and just process whatever you need in the onClick() of the link? cheers, Steve On 28 Apr 2009, at 17:11, Warren Bell wrote: I have a situation where a user needs to click on many links on one page and display many static

Re: ModalWindow Position

2009-04-22 Thread Steve Swinsburg
Hi, I use a javascript function to move it and then a target.appendJavascript() to call it. This is for an iframe but should work for you. Every now and then I notice a very tiny delay in the appearance of the ModalWindow and the movement of it to its final location. if you can fix that

back button, deserialisation and readObject()

2009-04-02 Thread Steve Swinsburg
All, I have some questions regarding deserialization. On a page in my application, I click a link which takes me to a different page, then click 'back', and try to do something on the original page, but get NPE's whenever any of my transient fields are called. A simple example: private

Re: back button, deserialisation and readObject()

2009-04-02 Thread Steve Swinsburg
Dashorst wrote: magic word for loggers: static and your assumption is correct: if you don't do anything, you'll get NPE's when you reference a transient field on an object that has been deserialized. Martijn On Thu, Apr 2, 2009 at 1:17 PM, Steve Swinsburg s.swinsb...@lancaster.ac.uk wrote: All

Constructor not being called when Back button clicked

2009-04-01 Thread Steve Swinsburg
Hi all, I have a Page and on that page a Form which submits via Ajax. In this page's constructor I added a debug statement that prints a message when the constructor is called (for testing). I then submit the form, click away, then click Back and in Safari 4 for Mac, the page is

Re: Constructor not being called when Back button clicked

2009-04-01 Thread Steve Swinsburg
Yup, got that in but the problem still exists, the constructor is not being called when the browser goes back to that page. It *could* be because my Wicket app is running in an iframe (sucks, but unavoidable) so the request params are being screwed up and Wicket is not initialising the

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:

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

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:

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:

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)

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

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

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

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

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

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

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

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

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

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

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

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

<    1   2   3   >