Re: Re: CSS and Javascript Problems
Thanks.. all good now. On 2008-03-05 07:50:06 -0700, "Hoover, William " <[EMAIL PROTECTED]> said: According to the http://maven.apache.org/guides/introduction/introduction-to-the-standard- directory-layout.html they should reside in src/main/webapp [snip] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CSS and Javascript Problems
oh ya... and all the css and javascript is static, meaning that it doesn't have to be referenced in code, but either way On 2008-03-05 07:36:43 -0700, Andy Czerwonka <[EMAIL PROTECTED]> said: currently my code is in src/main/java and my css, images and scripts are all in src/main/resources/css, src/main/resources/images and src/main/resources/script respectively. The maven build put all the resources at the root, which is of course the issue. What's standard practice for wicket applications to follow? On 2008-03-05 07:29:14 -0700, Andy Czerwonka <[EMAIL PROTECTED]> said: http://cwiki.apache.org/WICKET/javascript-and-css-support.html This page does not talk about how this is done in 1.3.1 and I'm having trouble getting the HTML pages to find my CSS and Javascript. Can someone point me in the right direction please? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CSS and Javascript Problems
currently my code is in src/main/java and my css, images and scripts are all in src/main/resources/css, src/main/resources/images and src/main/resources/script respectively. The maven build put all the resources at the root, which is of course the issue. What's standard practice for wicket applications to follow? On 2008-03-05 07:29:14 -0700, Andy Czerwonka <[EMAIL PROTECTED]> said: http://cwiki.apache.org/WICKET/javascript-and-css-support.html This page does not talk about how this is done in 1.3.1 and I'm having trouble getting the HTML pages to find my CSS and Javascript. Can someone point me in the right direction please? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CSS and Javascript Problems
http://cwiki.apache.org/WICKET/javascript-and-css-support.html This page does not talk about how this is done in 1.3.1 and I'm having trouble getting the HTML pages to find my CSS and Javascript. Can someone point me in the right direction please? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTML files location
That works for serving up pages but it doesn't when I add images within the parallel directoy. For some reason the images aren't found in the subdirectory. "Al Maw" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The easiest thing to do is to keep src/main/webapp as-is and put your > stuff in a parallel directory structure in src/main/resources. > > E.g. more src/main/java/com/yourcompany/foo.css to > src/main/resource/com/yourcompany/foo.css > > On 10/02/2008, Andy Czerwonka <[EMAIL PROTECTED]> wrote: >> I used the maven quickstart. I want move my HTML, images, javascript, >> etc., to some other location so that it's not mixed up with the source as >> I'd like to expose ONLY that code to the creative folks. I followed >> these instructions: >> >> http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html#ControlwhereHTMLfilesareloadedfrom-InWicket1.3 >> >> It says src/main/webapp should be changed, so I changed it to >> src/main/html. I'm not sure I understand what's happening here as it >> seams to serve up my pages, but my test break using WicketTester. Also, >> when I drop in images (src/main/html/images) they don't get picked up. >> Is there a best-practice for this? Clearly I'm doing something wrong - >> just not sure how do deal with it. >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTML files location
I used the maven quickstart. I want move my HTML, images, javascript, etc., to some other location so that it's not mixed up with the source as I'd like to expose ONLY that code to the creative folks. I followed these instructions: http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html#ControlwhereHTMLfilesareloadedfrom-InWicket1.3 It says src/main/webapp should be changed, so I changed it to src/main/html. I'm not sure I understand what's happening here as it seams to serve up my pages, but my test break using WicketTester. Also, when I drop in images (src/main/html/images) they don't get picked up. Is there a best-practice for this? Clearly I'm doing something wrong - just not sure how do deal with it.
Re: Scrollbar in popup window?
Is there a way to do it within a div right on a page? "palun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > How do I get vertical scrollbar in a popup window with (too) long content? > Popup is created like so: > > add(new BookmarkablePageLink("instrLink", InstructionsPopupPage.class, > params).setPopupSettings(popupSettings)); > > The purpose is to show a rather long information text in a separate window > whenever user clicks an info icon. Content is static html. If anyone has > comments / suggestions on how to best do this from a wicket app, please > let > me know. > > Many thanks > /ulf > -- > View this message in context: > http://www.nabble.com/Scrollbar-in-popup-window--tp15182160p15182160.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Article: Introducing Apache Wicket
"Nick Heudecker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It's finally up: > http://www.theserverside.com/news/thread.tss?thread_id=48234 > > Thanks to the various reviewers that helped improve both the content and > quality of the article, including Martijn, Eelco, Igor, Gerolf and Talios. > Nice work Nick. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Label is driving me a *little* crazy
"Igor Vaynberg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > why does it work for everyone else and not you? could you paste the > entire stack trace? > > -igor > Because I'm an idiot. Sorry group - my Eclipse environment was messed up and it wasn't building properly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Label is driving me a *little* crazy
Did something change in 1.3? http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.FormPage This simple example doesn't work for me either. I get a 1. [MarkupContainer [Component id = feedback, page = ca.arcticpenguin.mff.NewListingPage, path = 0:newListingForm:feedback.FeedbackPanel, isVisible = true, isVersioned = false]]I don't understand how a simple example is not working. I'm copying http://wicketstuff.org/wicket13/forminput/ and again, issues rendering the labels. It comes from the property file, and I'm assuming the properties file is automatically "hooked up" given I don't see any code that references it. "Erik van Oosten" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Try removing the id attributes from the markup. Wicket likes to generate > this for itself. > You'll also need to add a FormLabel (or something named like that) to the > element. > > Regards, > Erik. > > > Andy Czerwonka wrote: >> I found this thread: >> >> http://www.mail-archive.com/users@wicket.apache.org/msg04400.html >> >> I have written similair code, but I'm getting an exception. Clearly my >> markup is wrong, but I can't for the life of me unnderstand why? When I >> inspect the code, the page contains the right things. I'm a wicket >> newbie to be sure, so apologies if it's a silly question. >> >> Here's the java snippet (similair to the java on the above thread) >> >> private void buildForm() { >> >> RequiredTextField nameTextField = new RequiredTextField("name"); >> >> nameTextField.setLabel(new Model("Business Name")); >> >> add(nameTextField); >> >> addFieldLabel(this, nameTextField); >> >> add(new Button("saveButton")); >> >> } >> >> >> protected FormComponentLabel addFieldLabel(final MarkupContainer >> container, final FormComponent formComponent) { >> >> SimpleFormComponentLabel label = new >> SimpleFormComponentLabel(formComponent.getId() + "Label", >> >> formComponent); >> >> container.add(label); >> >> return label; >> >> } >> >> The markup is as follows: >> >> >> >> >> >> > id="nameLabel">[nameLabel] >> >> >> >> >> >> >> >> >> >> The error looks like: >> >> 1. [MarkupContainer [Component id = nameLabel, page = >> ca.arcticpenguin.mff.NewListingPage, path = >> 0:newListingForm:nameLabel.SimpleFormComponentLabel, isVisible = true, >> isVersioned = false]] >> >> >> >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Label is driving me a *little* crazy
I found this thread: http://www.mail-archive.com/users@wicket.apache.org/msg04400.html I have written similair code, but I'm getting an exception. Clearly my markup is wrong, but I can't for the life of me unnderstand why? When I inspect the code, the page contains the right things. I'm a wicket newbie to be sure, so apologies if it's a silly question. Here's the java snippet (similair to the java on the above thread) private void buildForm() { RequiredTextField nameTextField = new RequiredTextField("name"); nameTextField.setLabel(new Model("Business Name")); add(nameTextField); addFieldLabel(this, nameTextField); add(new Button("saveButton")); } protected FormComponentLabel addFieldLabel(final MarkupContainer container, final FormComponent formComponent) { SimpleFormComponentLabel label = new SimpleFormComponentLabel(formComponent.getId() + "Label", formComponent); container.add(label); return label; } The markup is as follows: [nameLabel] The error looks like: 1. [MarkupContainer [Component id = nameLabel, page = ca.arcticpenguin.mff.NewListingPage, path = 0:newListingForm:nameLabel.SimpleFormComponentLabel, isVisible = true, isVersioned = false]] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse Debug Wicket Problem
Thanks. I found out the hard way - basically built my .metatdata from scratch and did a diff. Anyway, I removed it as my editor and all is good. For me though, it makes the WicketBench plugin useless. "OliZilla" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I saw this in the the WicketBench eclipse plugin FAQ a while back: > > "Q: Debugging doesn't work right any more if the default editor is Wicket > Editor. While debugging the line of code that is executed by a thread is > not > shown in the editor window anymore. > > A: Yes, this is a known bug. It is not possible to fix this easily in > current eclipse versions..." > > ref: http://www.laughingpanda.org/mediawiki/index.php/Wb-FAQ > http://www.laughingpanda.org/mediawiki/index.php/Wb-FAQ > > > -- > View this message in context: > http://www.nabble.com/Eclipse-Debug-Wicket-Problem-tp15031033p15042362.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse Debug Wicket Problem
http://www.nabble.com/Source-not-found-in-debug-window-td14102828s177.html "Andy Czerwonka" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] For some reason, when I launch my tests in debug, Eclipse can't seem to attach my source properly. It can't highlight the current line. Has anyone seen this? I see this post has had a similair if not exact issue but without resolve. Help please? I'm using Q4E Maven plugin within Eclipse. Could this be the issue? -- Andy Czerwonka - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Eclipse Debug Wicket Problem
For some reason, when I launch my tests in debug, Eclipse can't seem to attach my source properly. It can't highlight the current line. Has anyone seen this? I see this post has had a similair if not exact issue but without resolve. Help please? I'm using Q4E Maven plugin within Eclipse. Could this be the issue? -- Andy Czerwonka