Wicket JavaDoc - plz publish

2008-11-23 Thread Ned Collyer
Can something be set up to publish either the snapshot or rc1 javadocs to a public URL. Does the wicket version need to be final to be published to http://wicket.apache.org/docs/ I currently use -DdownloadSources - but its just not so great for navigating - especially if you want to cut/paste

Labelling/standard layout for form components.

2008-11-23 Thread Ned Collyer
I'm looking for suggestions on various ways of handling form layout - specifically auto generating labels for form components, and the associated markup surrounding the form fields. I've currently got a system in place that allows you to add the fields very simply, and then uses a technique

Re: Labelling/standard layout for form components.

2008-11-23 Thread Ned Collyer
My initial thinking is I'm thinking I'll have to roll my own form elements. -- View this message in context: http://www.nabble.com/Labelling-standard-layout-for-form-components.-tp20653187p20654098.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Wicket JavaDoc - plz publish

2008-11-24 Thread Ned Collyer
I would have some idea ... I'm using that plugin.. maven plugins have issues.. :) i think it stems from the lack of standard approach of writing the plugins, and even then - if you check the maven generated sites, so many pages can be unintentionally left blank!! The documentation on them is

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
I'm not sure how to get the textfield editor working on the property name of the user object - I am aware the CPM is trying to look at the id editor which is wrong :). -- View this message in context:

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
I'm going to be sourcing the labelText from a properties file relatve to the class of the modelObject (in this case it will be the User - eg, user.properties). If I use the binding, then I need to have scope to the CPM in java world... within the LabelledTextField - which is a shame, because it

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
Bupbow. - that Yields an exception because the FormComponentPanels model object is of type String - not user. editor = new TextFieldT(editor, new PropertyModelT(this, String.format(model.object.%s, id))); org.apache.wicket.WicketRuntimeException: No get method defined for class: class

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
FYI, you are awesome. Always obvious what the problem is after its fixed hey ;) igor.vaynberg wrote: then justmodel.object will do :) -igor -- View this message in context: http://www.nabble.com/Using-CompoundPropertyModel-with-FormComponentPanel-tp20697019p20710669.html Sent from

Re: Why does org.apache.wicket.authorization revolve around string tokens?

2008-11-27 Thread Ned Collyer
Interestingly we used a similar approach with using classes as pseudo enums. Not being able to extend enums is a bit suckfull. igor.vaynberg wrote: the problem is that the enum would have to live *inside* the wicketstuffauth code. so wicketstuffauth would be the library that would need to

Re: [VOTE] Consistent naming for Wicket Stuff projects

2008-11-27 Thread Ned Collyer
[X] YES - I would like consistent naming! Contrib is a bit lame... could be gift or present.. but again - they are all lame. wicket stuff seems good. Makes sense too. I was thinking of making a post about all these vote threads :) I'm personally not a fan, but i think a vote page on the wiki

Re: [VOTE] Consistent naming for Wicket Stuff projects

2008-12-01 Thread Ned Collyer
, 2008 at 6:52 AM, Ned Collyer [EMAIL PROTECTED] wrote: [X] YES - I would like consistent naming! -- View this message in context: http://www.nabble.com/-VOTE--Consistent-naming-for-Wicket-Stuff-projects-tp20726075p20785481.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: how to print only one validation message from a listview of radiobuttons

2008-12-04 Thread Ned Collyer
Should you be using a RadioChoice instead? novotny wrote: Hi, I have a ListView containing several RadioButtons.setRequired(true) (a Q A list) that are all required to be answered. However, if someone doesn't click on all of the radio buttons, I see three Please answer the question

Re: LoadableDetachableModel in Listview

2008-12-09 Thread Ned Collyer
jwcarman wrote: I like shadow much better. He was an awesome hedgehog hey ;) -- View this message in context: http://www.nabble.com/LoadableDetachableModel-in-Listview-tp20894115p20926225.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: LoadableDetachableModel in Listview

2008-12-09 Thread Ned Collyer
Well... as far as validators are concerned - there is some murky water. Depending on your design, the services/domain layer should include object validation - this allows you to expose services. The trick is getting these validators to be shared by the view layer AND the service layer. I'm not

Re: Terracotta integration and issue sharing pagemaps

2008-12-10 Thread Ned Collyer
From a quick glance (and im not at all familiar with PageableListView - but am alright with their parent - ListView) Has it anything to do with not calling setReuseItems(true) on the list view itself? - Ie, its destroying the links, then recreating them each request? Rgds Ned Michael Oswell

Question re wicket:enclosure tag and resource resolution with wicket:message tags

2008-12-14 Thread Ned Collyer
I think it would be useful if the message resolution inside a wicket:enclosure used the child (or implicit child) as the component that is sent thru the localiser. This is the scenario OverviewPanel extends Panel wicket:panel wicket:enclosure child=productsListView table

Re: Question re wicket:enclosure tag and resource resolution with wicket:message tags

2008-12-15 Thread Ned Collyer
I can appreciate what it currently does - I just think it could be a little more convenient. It would still provide the default behavior, but allow keys to be translated with the child scope primarily - in the same way it allows visibility to be driven with the child scope. Thanks for your

Re: Round corners n' stuff? Possible Contribution?

2008-12-21 Thread Ned Collyer
FYI, I cannot see the liquid stuff with the latest firefox on osx leopard - its borked. Also looks like crap in safari :) Soo bring on the nifty - but I wouldn't waste your time on liquid canvas because I do not believe the browser support (currently) warrants your effort. I think it would

Re: Round corners n' stuff? Possible Contribution?

2008-12-22 Thread Ned Collyer
Ok - so I investigated a bit more - turns out I had a greasemonkey script messing with it. DOH. It looks beautiful :) - all works now. (and turns out safari is ok - i was under the impression example 7 was misbehaving). Sorry for the confusion. -- View this message in context:

Re: Is wicket:extend strictly required if including entire html child?

2008-12-22 Thread Ned Collyer
It is slightly ironic. Java, when we change default behaviour - we annotate methods with @Override. Its not a dissimilar solution. I can appreciate both decisions. Same same but different. What's the norm coding wise - what's more convenient? - I think when the answer is depends - you can go

Moments of awesome.

2009-01-05 Thread Ned Collyer
So, every once in a while - I get some buzz. Wicket is really .. well thought out.. great puzzle. Understanding it is an absolute blast. It's a great meld with Java. One of the missing ingredients. Today is full of wicket awesome. Thanks. -- View this message in context:

Need help editing a Map plz.

2009-01-19 Thread Ned Collyer
Hi Guys, I have a data construct which is as follows: Template MapString, ListConstraint fieldConstraints; The map is fieldname against a list of constraints. Eg, I might have firstName as the field, and the following constraints length between 2 and 16 characters mandatory alphas

RE: Need help editing a Map plz.

2009-01-19 Thread Ned Collyer
Got it licked - stuffed up the editors. Specifically I neglected convertInput because I happen to be an idiot. Thanks JT - I have the keyset stuff down already ;) I was just wondering why my constraints were instantiated, but when they were submitted their inner detail was nulled out. Makes

RE: Need help editing a Map plz.

2009-01-19 Thread Ned Collyer
No - i officially don't know what's wrong :) This is my snippet - ListString list = new ArrayListString(model.getObject().getConstraints().keySet()); // display any existing constraints form.add(new ListViewString(fields, list) { protected void

RE: Need help editing a Map plz.

2009-01-19 Thread Ned Collyer
Bleh - its one of those days. Changed the base of the form fields from FormComponentPanel back to Panel - and bobs ur uncle. Sorry for the list noise (recovering from holidays still). Ned Collyer wrote: No - i officially don't know what's wrong :) This is my snippet

Upgrading to 1.4-rc2 - bug with form tester?

2009-02-23 Thread Ned Collyer
Hi, I have the following - which was working on 1.4-rc1 FormTester formTester = wicketTester.newFormTester(panel:form); formTester.getForm().error(test error); formTester.submit(); With 1.4-rc1 this code would not execute the forms onSubmit() method, because an error

Re: Upgrading to 1.4-rc2 - bug with form tester?

2009-02-23 Thread Ned Collyer
Perhaps this is the problem? https://issues.apache.org/jira/browse/WICKET-2019 I'll change my test to have an invalid field. Ned Collyer wrote: Hi, I have the following - which was working on 1.4-rc1 FormTester formTester = wicketTester.newFormTester(panel:form

NPE thrown from CheckBoxMultipleChoice when submitting a form.

2009-02-25 Thread Ned Collyer
After update to rc2 - I am getting an NPE on a CheckBoxMultipleChoice when submitting a form. The NPE is thrown from the same area that the following Jira addresses. https://issues.apache.org/jira/browse/WICKET-1270 This patch does not appear in 1.4-rc2. The stack I'm getting is Caused by:

Question re: style and variation

2009-03-02 Thread Ned Collyer
Hi, I have browsed/read the previous threads regarding this topic and read the wiki on styling and localisation - but its inconclusive as to how this should be tackled. I have my app running on multiple domains. Each domain - when you hit it, sets a style into the session - so they appear to

Re: Question re: style and variation

2009-03-02 Thread Ned Collyer
Yep :). I at least 1 thought on this matter. Currently, I have a webapp module - which will have my components in it, and my components variants. I have pushed all i18n into properties files - which is working thus far. I allow the clients to customise their HTML from another folder - ie,

Re: Question re: style and variation

2009-03-03 Thread Ned Collyer
IMO, the brackets approach works because it clearly separates each of the sections. It is a bit ugly, but its still simple. Can't please everyone all of the time, but we can try to give the clients the right stuff, and the devs the power to build it :). yeah, not to mention it might get quiet

Re: Question re: style and variation

2009-03-04 Thread Ned Collyer
What I'm trying to do at the moment (and the purpose of starting this thread) is creating custom form fields, that have different types of HTML depending on the variant. So I could do new LabelledTextField(banana) { public String getVariation() { return complex; } } new

RE: [PROPOSAL] Use path in URL when target is instance of BookmarkablePageRequestTarget

2008-07-01 Thread Ned Collyer
A possible added bonus to this that it *might* be possible to catch a session expired, and re-login to the bookmarkable page. -- View this message in context: http://www.nabble.com/-PROPOSAL--Use-path-in-URL-when-target-is-instance-of-BookmarkablePageRequestTarget-tp18188845p18228914.html Sent

Re: addResourceFolder in unit tests

2008-07-11 Thread Ned Collyer
Witold Czaplewski wrote: i'm trying to use a custom ResourceStreamLocator to place the markup files in another directory. It is based on this wiki entry: http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html#ControlwhereHTMLfilesareloadedfrom-InWicket1.3 The

IFormValidator - I need some clarification please

2008-07-16 Thread Ned Collyer
I've written some code that allow spring to validate objects for me using the org.springframework.validation.Validator interface. I've also got some code that maps the ValidationErrors back to wicket fields. The spring validators take an entire object rather than field by field. My question

Re: IFormValidator - I need some clarification please

2008-07-16 Thread Ned Collyer
Thanks Lars, That's the same *conclusion* I had come to :) I'll have to override process I think (provided thats what's setting the form elements back to the backing model). The validators and the domain objects live in a module that has no wicket dependencies, and I am not in a position to be

Re: IFormValidator - I need some clarification please

2008-07-16 Thread Ned Collyer
Yep, cool. Thanks Igor. Will see how I go :) igor.vaynberg wrote: you will have to at least use wicket's type conversion validators unless your beans only have string properties. -igor -- View this message in context:

Re: IFormValidator - I need some clarification please

2008-07-16 Thread Ned Collyer
So this is how i solved it - basically preserving wickets functionality as much as I could, and only changing it in the event i have a spring validator. on my AbstractForm i did the following: public void setSpringValidator(Validator validator) { this.validator = validator; }

How to handle conditional ordering of components

2008-07-21 Thread Ned Collyer
Hi, What's the best way of doing simple reordering of components? For example: I have a form which is - firstname surname -- and I want to change it to the following based on some condition (ie, a checkbox being selected) - surname, firstname - Obviously

Re: How to identify if any of a page's components failed validation after a submit

2008-07-23 Thread Ned Collyer
er... form.hasError()? form.onError()? What do you mean by page? - are there lots of forms on the page all with errors? -- View this message in context: http://www.nabble.com/How-to-identify-if-any-of-a-page%27s-components-failed-validation-after-a-submit-tp18599562p18605378.html Sent from

Re: Wicket 1.4M3 migration

2008-07-23 Thread Ned Collyer
I've just converted over a project to 1.4-m3 from m1. I skipped m2 because of the drastic changes between 1, 2 and 3. I must say, I think generics at a component level - when I initially started using it felt like unneeded overhead - but it became more and more useful. now that I've

Re: Wicket 1.4M3 migration

2008-07-23 Thread Ned Collyer
Thinking about this - generifying panel would probably fix it - or i can just make my own base panel with generics. Ned Collyer wrote: I've just converted over a project to 1.4-m3 from m1. I skipped m2 because of the drastic changes between 1, 2 and 3. I must say, I think generics

Internationalisation with custom folder

2008-07-28 Thread Ned Collyer
Hi, I'm currently using wicket 1.4-m1 I need to be able to partially override a properties file. Eg, Classpath: Application.properties key1=123 key2=456 Filesystem: Application.properties key2=444 key3=555 This should result in a resource which is like this Application.properties

Re: Internationalisation with custom folder

2008-07-28 Thread Ned Collyer
Not as simple as I'd hoped... Looks like I need to copy/paste all of PropertiesFactory and reimplement IPropertiesFactory with my mods. Oh well :| -- View this message in context: http://www.nabble.com/Internationalisation-with-custom-folder-tp18705254p18705484.html Sent from the Wicket -

Why does Settings.setResourceFinder null out resourceStreamLocator?

2008-07-31 Thread Ned Collyer
I found it strange that my custom resource stream locator was forcibly nullified when running tests. Is this a bug? or by design. -- View this message in context: http://www.nabble.com/Why-does-Settings.setResourceFinder-null-out-resourceStreamLocator--tp18748752p18748752.html Sent from the

Re: Wicket merchandise?

2008-08-20 Thread Ned Collyer
A tshirt with Use IComponentBorder would be rad. Nino.Martinez wrote: We talked about this a loong time ago. But theres a service CafePress.com (could have been there then aswell )which fairly easy lets you produce wicket merchandise.. So do the community want mugs caps and

how to use AjaxRequestTarget in conjunction with a FormComponent.AbstractVisitor?

2008-08-21 Thread Ned Collyer
I have a form that has its elements treated with various things (required text, labels etc) - these get added by a FormComponent.AbstractVisitor in the onBeforeRender of the form. In the form I have a AjaxFormComponentUpdatingBehavior which adds another panel into the form when certain

Re: how to use AjaxRequestTarget in conjunction with a FormComponent.AbstractVisitor?

2008-08-21 Thread Ned Collyer
fields in their own form and nest that with its own visitor - just feels a bit nasty. Timo Rantalaiho wrote: On Wed, 20 Aug 2008, Ned Collyer wrote: In the form I have a AjaxFormComponentUpdatingBehavior which adds another panel into the form when certain conditions are met. This new panel has

Re: how to use AjaxRequestTarget in conjunction with a FormComponent.AbstractVisitor?

2008-08-21 Thread Ned Collyer
Does anyone have any more opinions on this? Can you share your wisdom Igor? :) What I have at hte moment is public class DefaultFormVisitor extends FormComponent.AbstractVisitor implements Component.IVisitor, Serializable { } and I manually add this visitor in the onbeforerender of the ajax

Re: Inline-pdf generated on the fly using DynamicWebResource - Showing Custom FileName on File - Save As

2008-08-22 Thread Ned Collyer
Firstly - sorry for my initial post - i didnt see the inline bit in the subject - so I wasn't very helpful. You could also use a MixedParamUrlCodingStrategy and mount the page as http://[host-name]/wap/[id]/[filename] - then you can put in a check that the filename matches the ID (ie, its a

RE: Form with tabbed panel: Tracking changes

2008-08-24 Thread Ned Collyer
I have adapted forms with flair, however I've found that the onbeforerender of the form is not executed when its contents are updated with ajax. It will depend on your impl i guess. Kai Mütz wrote: Nino Saturnino Martinez Vazquez Wael wrote: Look at Ivisitor and add one to the form, that

FileUpload - need to set a model to get updateModel working?

2008-09-03 Thread Ned Collyer
I have a form with a CompoundPropertyModel. One of the fields inside this model is a FileUpload. Why do I need to pass a dummy model, (or the current model) through to the FileUploadField - is this an oversight? I cannot find details surrounding the private hasExplicitModel boolean in

Re: FileUpload - need to set a model to get updateModel working?

2008-09-03 Thread Ned Collyer
the inputstream into the cpm, thats how cpms work... if you set hasexcplicitmodel(false) then the model will not be updated, instead you will have to call getfileupload() yourself. what exactly are you trying to do? -igor On Tue, Sep 2, 2008 at 11:22 PM, Ned Collyer [EMAIL PROTECTED] wrote

Re: please review my CompoundPropertyModel use

2008-10-07 Thread Ned Collyer
You should be able to do Form form = new Form(form, new CompoundPropertyModel(MyPojo)); page.add(form); form.add(new MyFormComponent(myProperty)); See http://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-CompoundPropertyModels dukehoops wrote: The

Re: please review my CompoundPropertyModel use

2008-10-07 Thread Ned Collyer
Perhaps I don't understand your use case. I'm using CPM all over the shop, and letting auto CPM propagation take care of itself. If the property is obtained from some other way, then obviously you would need to supply it to the form field - in the same way there are multi constructors for most

How can I use the wicketdate-time stuff with DateTime on my model?

2008-10-07 Thread Ned Collyer
Its a requirement for me that my domain entities have DateTime. I'd like to use wicket-datetime (as described here) http://www.nabble.com/my-domain-model-and-Joda-Time-td15660961.html#a15660961 I can see its internals are all DateTimey which is AWESOME!! What is the easiest / quickest way of

Re: How can I use the wicketdate-time stuff with DateTime on my model?

2008-10-09 Thread Ned Collyer
I was hoping to wait for the next milestone to see what the fallout of all the generics mods are. The change between m1, m2, and m3 were significant. Is it staying as it is in m3? (Ive checked the generics page on the wiki). Rgds Ned Martijn Dashorst wrote: First, please upgrade to

Re: How can I use the wicketdate-time stuff with DateTime on my model?

2008-10-10 Thread Ned Collyer
Yeah i saw that (the patch file and zips). Interesting stuff. I ended up getting the source from svn, and just replacing Date with DateTime. The datatype features a lot more than I'd expected. I'm normally the type of person who likes rollin their own components, but I just don't have the

Pages or components... how do u decide?

2008-10-16 Thread Ned Collyer
The system I'm building at the moment has almost everything pushed down into components. Most of the functionality is achieved by a single base page which takes a component in its constructor. For Bookmarkable pages, I extend this base page, and pass a component to the super. How do _you_

Re: format in wicket generated html?

2008-10-16 Thread Ned Collyer
Use firebug. Beyonder Unknown wrote: Hi Guys, I was wondering if there's a way that wicket can generate the html in with indentation? Right now, when we view-source our wicket page in the browser, it generates the html without tabs. All lines are left-aligned. Thanks in advance.

Re: Pages or components... how do u decide?

2008-10-19 Thread Ned Collyer
? Are you not using markup inheritance? On Thu, Oct 16, 2008 at 5:16 PM, Ned Collyer [EMAIL PROTECTED] wrote: The system I'm building at the moment has almost everything pushed down into components. Most of the functionality is achieved by a single base page which takes a component in its

Re: Pages or components... how do u decide?

2008-10-20 Thread Ned Collyer
I use those annotations - they are awesome :) If you could annotate a panel to be bookmarkable.. that'd be interesting. So the panel COULD be embeded into other components, or used standalone as a page. Currently I achieve this by creating a new page class which instantiates and passes the

Re: Pages or components... how do u decide?

2008-10-21 Thread Ned Collyer
Their constructor :) Nav Che wrote: Ned, But then how do u pass parameters across the panels??? //nav -- View this message in context: http://www.nabble.com/Pages-or-components...-how-do-u-decide--tp20016807p20100652.html Sent from the Wicket - User mailing list archive at

Re: Basic print.css question

2008-11-06 Thread Ned Collyer
Yep, wrong place to paste for CSS probs That being said, given your CSS rule: div#footer ul#navlist, #noprint { display: none; } its expecting navlist to be in the footer, but is not. its expecting noprint to be an id, but it is not (its a class). Feel free to ask wicket questions :) Sorry

Re: RESTful Web Services with Wicket (and XStream)

2008-11-06 Thread Ned Collyer
As you probably are aware - this is just outputting XML using XStream. This is a one way data feed. I'm using XStream - but chose a different tech for our REST components because wicket is not RESTy. I'd be interested if you can make this 2 way web service, and support POST, GET, PUT and

Re: image link inside of table problem

2008-11-11 Thread Ned Collyer
if you have em's wrapped around the link, its probably disabled. Eg, from if(poll.getStatus().equals(VidgetStatus.ACTIVE)) deleteLink.setEnabled(false); Rgds Ned itayh wrote: Hi Charlie, You are correct, I removed some not relevant data. Here

Re: wicket 1.4 - Localizer getCacheKey BUG

2008-11-11 Thread Ned Collyer
I'm in the process of updating to 1.4m3. The following is resulting in the same cache key for each item. (which did not happen in 1.4m1) ListView createLinks = new ListViewLink(createLinks, links) { protected void populateItem(ListItemLink item) { Link link =

Re: wicket 1.4 - Localizer getCacheKey BUG

2008-11-11 Thread Ned Collyer
actually.. found out what it was (and the example i gave was incorrect - oops). the new Localizer#getCacheKey(String, Component) assumes that for a given key in the markup, there will only ever be a single translation. I have my own resource resolver, which allows for resolution of the keys

Filtering (textfilter) and other DataTable examples?!

2008-11-18 Thread Ned Collyer
Can someone please post or link to an example of how the filters are meant to work with the data table. Specifically TextFilter or TextFilteredPropertyColumn. I've done some poking around, but its escaping me. I've added the elements to my page - but I'm having little luck. The javadoc is

RE: Filtering (textfilter) and other DataTable examples?!

2008-11-18 Thread Ned Collyer
Thanks very much. Wicket just gets better and better hey ;) Kai Mütz wrote: Ned Collyer mailto:[EMAIL PROTECTED] wrote: Can someone please post or link to an example of how the filters are meant to work with the data table. Specifically TextFilter or TextFilteredPropertyColumn

FormComponentPanel - ajaxifying

2009-06-05 Thread Ned Collyer
Hi, I have a FormComponentPanel which contains several select boxes. selectTitle/select selectModel/select selectTransmission/select I'd like to be able to be able to do the following - but not sure how to achieve it. MyAwesomeComponent extends FormComponentPanel new

Nested forms not working in wizard.

2009-07-06 Thread Ned Collyer
I am currently running wicket 1.4-rc2 I have nested forms setup in the wizard. One of my steps is as follows. code public class MyStep1 extends WizardStep { public MyStep1(final CompoundPropertyModelCampaign campaignModel) { super(Step 1, Wow bananas); add(new Form(form) {

Re: Nested forms not working in wizard.

2009-07-06 Thread Ned Collyer
...@gmail.com wrote: Is the form nested in the other form in html. I remember vaguely something about it needs to be nested, wicket then rewrites it or something like that.. How does the resulting html look like? 2009/7/6 Ned Collyer ned.coll...@gmail.com: I am currently running wicket 1.4-rc2 I have

FileUploads - keep them around for multiple requests...

2009-07-16 Thread Ned Collyer
I'm building a wizard. It has 3 steps. Persistence occurs for all my models after the completion of the 3rd step. Each step has a number of forms. Each form is brought in dynamically from 3rd party jars. This works great so far. The exception to the rule is FileUploads - as these are only

Re: Nested forms not working in wizard.

2009-07-16 Thread Ned Collyer
something similar, but my part are working.. It's pretty hard digesting without code.. :( 2009/7/7 Ned Collyer ned.coll...@gmail.com: The nesting is - The outer form is inside the wizard, then I have an inner form inside one of the steps. Sorry, I cant show you the output of the html - I scrapped

wicket:link - Can I override how it determines current page?

2008-01-17 Thread Ned Collyer
Basically I want to do the following in my base abstract Page (or Panel - it makes little difference). Eg. wicket:link a href=MyHome.htmlHome br / a href=MyPage.html?id=1Page 1 br / a href=MyPage.html?id=2Page 2 /wicket:link Now this is fine - it generates the links on the page (and

Re: ListView + reusing Items

2008-01-20 Thread Ned Collyer
Martijn Dashorst wrote: And according to me you are the first person in a while to encounter such a thing... Nah, some of us just do workarounds, or begrudgingly add the urgly method call ;). I must admit having something so simple like adding components to a list, and them not working

Link to last version of a page of a given type/class.

2008-01-21 Thread Ned Collyer
Hi, I may be overlooking something, however I am having a bit of trouble linking to the last current version of a page unless I use the method outlined by igor, which isn't practical for what I am trying to achieve (see his method below from

Re: Link to last version of a page of a given type/class.

2008-01-21 Thread Ned Collyer
Hi Johan, Thank you for the reply. This suggestion will work, but it seems like something that the framework should do automatically. The whole maintaining state thing is meant to maintain state between requests without the extra dev overhead of manually plugging stuff into, and pulling out of

Re: bookmarkable link keep recreate the objects.

2008-01-21 Thread Ned Collyer
Eelco Hillenius wrote: If you're still unconvinced, take a look at org.apache.wicket.examples.staticpages in wicket-examples; it might do what you want. Eelco This sounds like very similar question to

Reloading component on each request.

2008-01-22 Thread Ned Collyer
I have the circumstance where I have a sidebar panel on the left hand side of my site that I want to reflect the current state of the system - regardless of the state of the components in the middle. It will do a data lookup based on an id given to the component in its constructor, and should

Re: Reloading component on each request.

2008-01-22 Thread Ned Collyer
igor.vaynberg wrote: you can try using a repeater like a listview, and also make sure you are using detachable models. perhaps if you gave more description of what the component looks like/what it does and a screenshot that could help us help you more. -igor Hi Igor, thanks for the

Re: Reloading component on each request.

2008-01-22 Thread Ned Collyer
Thank you :) I'll give it a try. - pretty busy on other things, but will try it out asap! -- View this message in context: http://www.nabble.com/Reloading-component-on-each-request.-tp15017178p15033866.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Maintain page state on a panel added as a listItem

2008-01-25 Thread Ned Collyer
ListView is appropriate, just make sure you set the setReuseItems to true. Other repeaters may well work too, but ListView is the most obvious choice, so might as well use it. (I'm a wicket noobie, and had the same problem a few days back) Edvin Syse wrote: Hi Ned, Thanks a lot, that

Wicket Security - runtime ACLs and Groups help plz

2008-01-26 Thread Ned Collyer
With wicket security (either wasp/swarm, or wicket-auth-roles) can things like Roles and Permissions be created through a web interface? Eg, I need a system whereby I can add new roles (or principals) through the web interface, and define their permission to a ACLs which are determined by which

Re: Wicket Security - runtime ACLs and Groups help plz

2008-01-28 Thread Ned Collyer
Thank you for the detail of your answer. I'll have a look into it asap - other work matters are pressing :( Mr Mean wrote: There is no example application (that i know of) showing what you want. Let me recap what i think you want: You have an application (probably with a basic set of

Re: Simple edit form and models

2008-01-31 Thread Ned Collyer
You may be interested in something like the bean editor webcast linked from here http://herebebeasties.com/2007-08-17/wicket-bean-editor/ With a bit of customisation you should be able to bend it to suit your needs for any of your pojos. Rgds Ned Constantin Y wrote: First of all I want to

Hotswap HTML not working.

2008-02-09 Thread Ned Collyer
Hi, I've searched this forum for answers and come up short :| even tho the question has been posed before. I'm running DEVELOPMENT mode on 1.3.1 through the Start class provided in the maven archetype. I run this through intellij 7, but changes to my pages (eg, HomePage.html) are not coming

Re: Hotswap HTML not working.

2008-02-09 Thread Ned Collyer
It's ... quite obvious now that I think about it some more. Your prompt replies are always appreciated. The bit that threw me was bb.setWar(src/main/webapp); I just glossed over it assuming it was pointing all resources at my src/main by magic :) Now the hard part... bending idea to my whim.

Re: Hotswap HTML not working.

2008-02-09 Thread Ned Collyer
Ned Collyer wrote: Now the hard part... bending idea to my whim. (unless u know off the top of ur head how to automate this copy). ripped from http://www.jroller.com/dashorst/entry/intellij_idea_experiences - specifically a comment by Ali in IDEA you can simulate save+compile of eclipse

Mounting a CompressedResource

2008-02-11 Thread Ned Collyer
I was hoping to compress my stylesheet and have it available at /style/mystyle.css I'm having a great deal of difficulty getting this working. - i can successfully get it on resource/mypackage.MyClass/whatver, but this is not appropriate. I've searched this forum and google, and i guess what

WicketTester gives No WebApplicationContext found: no ContextLoaderListener registered

2008-02-10 Thread Ned Collyer
Hi, In one of my pages, i need to invoke a method from my web application. My application class is as follows public class MyApp extends WebApplication { private Thing thing; public void init() { // Attach the component injector - ie, enable spring for this application.

Re: WicketTester gives No WebApplicationContext found: no ContextLoaderListener registered

2008-02-10 Thread Ned Collyer
4 minutes? You're getting slower! That kind of worked. I'm not fond of having to reinitialise all the things I set inside init, so i've moved this method out to a protected void initSpring(). Thanks for your help. Rgds Ned igor.vaynberg wrote: try the Spring page on the wiki, it shows

Best way of dashboard panels to be customised as part of a user profile.

2008-02-15 Thread Ned Collyer
Hi, If i have a dashboard (kinda like how Jira has its dashboards), if i want to persist the arrangement of panels, and the type .. what are my options? At the moment I'm thinking of using a list of widgets which will consist of the fully qualified dashboard widget class name, and a list of

Re: Accessing prototype scoped panel beans using @SpringBean annotation

2008-02-22 Thread Ned Collyer
Stefan Fußenegger wrote: Hi Tom, I'd suggest not to use Spring to manage panels. You should rather create a new panel for every page and request. You should use Spring to manage your services and inject those into your panels. Best regards, Stefan Hi Stephan :) (I work with Tom)

Re: Accessing prototype scoped panel beans using @SpringBean annotation

2008-02-23 Thread Ned Collyer
Kent Tong wrote: I don't know why you feel this hacky. It looks clean and easy to me: It works, and the implementation is nice and easy BUT... Spring is meant to be the factory :). Isn't that a big part of why we use spring? -- View this message in context:

Re: Accessing prototype scoped panel beans using @SpringBean annotation

2008-02-23 Thread Ned Collyer
This is close to the solution we are currently using ;) Thanks for the info on the Classes object. Rgds Ned Kent Tong wrote: public class TestPage extends WebPage { @SpringBean(name = panelFactory) private PanelFactory panelFactory; public TestPage() {

Groovy Wicket Builder

2008-02-26 Thread Ned Collyer
I'm wondering if this thing has been abandoned. It looked very promising, and I love the trimmed down syntax of the builder. as shown here: http://wicketstuff.org/confluence/display/STUFFWIKI/WicketBuilder -- View this message in context:

Re: Query of wicket capabilties for website

2008-02-27 Thread Ned Collyer
Oh boy are you in for a treat. http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html Different css ... or markup.. or language... possibly determined by user preference... or whatever you like. Bobby Quninne wrote: There is a requirement that the website can be

Re: How to view SetQuestionaire like ListView uses List

2008-03-01 Thread Ned Collyer
Just on Set's. if its unordered - then you can have a potential problem for your users. In the domain model it might make perfect sense that something is a Set - but just be wary that a user generally expects order, not randomness. wiki wrote: Hi I have a set of questionaires I know how

  1   2   >