dynamic crumb trail

2010-09-22 Thread Luther Baker
I have a default template page that contains a ul implementation of a crumb trail. Therefore, the base class template has both the open and close tags of the list element. A few links in the crumb trail are manage by the template class - but I'd like to be able to add a few from the child pages.

Error integrating with Hibernate and Spring

2010-07-26 Thread Luther Baker
I'm sure I'm doing something incorrectly. For the most part, I copied the Spring config file from http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/ but upon startup, I'm getting the following error. Specifically, I can't find where the listener type [wicketApplication] is

JNDI and mvn test

2009-12-07 Thread Luther Baker
I'm executing the standard Wicket maven archetype's test target and it is having trouble finding my JNDI datasource. *mvn jetty:run* works just fine but when I execute the *mvn test* target from within m2eclipse, I get a huge stracktrace with the following excerpt: Caused by:

Apache License in the Prototype

2009-12-03 Thread Luther Baker
Not a huge thing but would it make sense to remove the licenses ... entry from the wicket prototype? licenses license nameThe Apache Software License, Version 2.0/name urlhttp://www.apache.org/licenses/LICENSE-2.0.txt/url

Re: Absolute static file references

2009-10-25 Thread Luther Baker
to the end of each resource url, and then have an apache-side cache to cache and serve everything under /resources/. alternatively see how ContextImage works if you want to serve your own stuff out of webapp folder. -igor On Sat, Oct 24, 2009 at 10:53 AM, Luther Baker lutherba...@gmail.com wrote

Absolute static file references

2009-10-24 Thread Luther Baker
Have another question about serving up CSS (JS, img, etc) files statically: a) I'd like to have the option to serve my CSS up statically via an apache proxy. I'd also like to avoid serving CSS requests up via the wicket filter - even if served up by Jetty - as I think it will scale just a bit

Re: Ad Hoc URL Mapping

2009-10-12 Thread Luther Baker
-restful-urls 2009/10/12 Luther Baker lutherba...@gmail.com I'd like to use a RESTful URL style where the page parameters are not necessarily at the far right of the URL. For starters, I understand the basics of Indexed and/or MixedParam url mounting to convert this: /issues/list

Ad Hoc URL Mapping

2009-10-11 Thread Luther Baker
I'd like to use a RESTful URL style where the page parameters are not necessarily at the far right of the URL. For starters, I understand the basics of Indexed and/or MixedParam url mounting to convert this: /issues/list?project=*myapp*max=*14* to this: /issues/list/*myapp*/*14*

Re: vps hosting for wicket app

2009-10-06 Thread Luther Baker
Linode - my personal favorite, http://journal.dedasys.com/2008/11/24/slicehost-vs-linode Slicehost - good reputation ServInt - great experience, great service, very fast boxes, a bit pricey A2 Hosting - very inexpensive AWS (Amazon E2) - easy setup and teardown and full image control -Luther

Re: Slides

2009-09-12 Thread Luther Baker
, 2009 at 9:54 PM, Luther Baker lutherba...@gmail.com wrote: I have slides from my Wicket presentation last night here in St. Louis. I can't say how helpful they'd be for folks that weren't there but I'd be happy to submit them for posting somewhere in the Wicket WIKI pages. -Luther

Re: Slides

2009-09-12 Thread Luther Baker
Sweet. Thanks Michael. I'll fix that now. I'm quite open to suggestions to tighten the deck up so please don't hesitate to comment. -Luther On Sat, Sep 12, 2009 at 3:25 AM, Michael Mosmann mich...@mosmann.de wrote: Hi, I have slides from my Wicket presentation last night here in St.

Slides

2009-09-11 Thread Luther Baker
I have slides from my Wicket presentation last night here in St. Louis. I can't say how helpful they'd be for folks that weren't there but I'd be happy to submit them for posting somewhere in the Wicket WIKI pages. -Luther

dzone refcard

2009-07-06 Thread Luther Baker
Is anyone aware of a wicket refcardhttp://refcardz.dzone.com/refcardz/core-java-concurrencyinitiative? Thoughts? -Luther

Re: dzone refcard

2009-07-06 Thread Luther Baker
at 12:44 PM, Paolo Di Tommaso paolo.ditomm...@gmail.com wrote: It would be nice -- paolo On Mon, Jul 6, 2009 at 6:07 PM, Luther Baker lutherba...@gmail.com wrote: Is anyone aware of a wicket refcardhttp://refcardz.dzone.com/refcardz/core-java-concurrency initiative? Thoughts

Re: dzone refcard

2009-07-06 Thread Luther Baker
, Luther Baker wrote: Sounds good. I'm giving a Wicket presentation herehttp://java.ociweb.com/javasig/in September and it would be nice to hand something like that out. Also, I've seen decks here before ... is there a central place where such presentations are collected. I'll look back through

Re: localizer and variables

2009-06-29 Thread Luther Baker
OjO, Ideally, strings or text that users actually see and interact with are candidates for i18n. javascript, markup ids, onclick attributes and the like need not be i18n. This kind of text can strictly be considered part of your codebase. Remember, strings exist in the i18n properties files to

dls, divs and ps and the ListView

2009-06-28 Thread Luther Baker
Wicket 1.4-rc2 Marking up a ListView with dls, divs or ps has different results. Specifically, p doesn't wrap children correctly. If the outer/parent tags of a ListView are dl, all is well. If they are divs, all is well ... but with p --- the closing /p occurs right away - before the rest of the

Re: guice-injection on page vs. components

2009-06-24 Thread Luther Baker
For what it's worth ... I use Guice injection across the entire codebase. Pages get Services Services get Daos Daos get connections ... etc I even inject utility classes as needed and can't say I've had any problems. -Luther On Wed, Jun 24, 2009 at 11:38 AM, Aaron Dixon atdi...@gmail.com

Extending AutoLinkResolver

2009-06-20 Thread Luther Baker
Is there a programmatic way to override or submit an AutoLink Resolver? For instance, I'd like to resolve something like link href='xxx'differently (e.g.: prepend the app context instead of prepending resources/classpath ... to look in the web root directory instead of the classpath). link

Re: Feedback Messages Not Getting Displayed When Using AjaxSubmitLink

2009-06-19 Thread Luther Baker
I'm not at a computer to try this ... but I do this all the time so it definitely works like you're hoping. You've posted alot of code so its a bit difficult to trace what is commented out and what is not ... but starting with your original post, uncomment the following: final

Re: [OFF TOPIC] Java desktop applications

2009-06-15 Thread Luther Baker
I'd agree with Chris too. Swing apps can really attack a different a class of problems ... a completely different solution space. And in that regard - I think Swing (and/or strict desktop GUI development) would be a beneficial understanding/perspective to have in your toolbelt. I find this

wicket:message on an attribute

2009-06-14 Thread Luther Baker
Is there a way to use wicket:message on markup attributes? Pseudo something like this? li title='wicket:message key=category/' Thanks, -Luther

Re: wicket:message on an attribute

2009-06-14 Thread Luther Baker
want Wicket to provide an attribute with a value that's the result of a resource lookup. Maarten On Sun, Jun 14, 2009 at 5:04 PM, Luther Baker lutherba...@gmail.com wrote: Is there a way to use wicket:message on markup attributes? Pseudo something like this? li title='wicket:message

Re: refresh page

2009-06-12 Thread Luther Baker
mount the page with hybridurlcodingstrategy and your problems will go away. Flawless Victory! Thanks everybody, -Luther

Re: refresh page

2009-06-12 Thread Luther Baker
Ok, so that 'almost' wraps this up. HypbridUrlCodingStrategy works perfectly for the Ajax-added data. My last problem is related to the form fields. In AjaxFallbackButton.onSubmit ... I clean out the input that holds the value I've just added to the database and redisplayed in a list to the user.

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Luther Baker
Admittedly - it may not be standard, easy or necessarily intuitive ... but CSS ain't all bad is it? :) http://www.mezzoblue.com/zengarden/alldesigns/ -Luther On Fri, Jun 12, 2009 at 10:34 AM, Johan Compagner jcompag...@gmail.comwrote: css is really crap (until i really can use box-sizing:

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Luther Baker
As an aside, I think the art-form takes a great stride forward every time we arrive at a framework that, by its very use, improves general design and implementation. For example, I think the concepts around Spring are a huge step forward. Most young developers don't understand what *dependencies*

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Luther Baker
On Fri, Jun 12, 2009 at 5:57 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Those designs aren't what make me like CSS - most of them are necessarily-filled with hacks to make them work, especially across browsers. Sure. My comment was a joking plea to Johan to reconsider CSS :)

refresh page

2009-06-11 Thread Luther Baker
If I add a few values to a page div ala an Ajax button - and the user hits refresh on the page, the new values I've added go away. The user is completing a form - but hasn't formally submitted the form yet - so there is nothing stored in the database yet. The browser naturally re-renders the

Re: refresh page

2009-06-11 Thread Luther Baker
but in the form included information back into the fields when the site is rendered) ... Does that make sense ... or I am not understanding the question ;) - dg -Ursprüngliche Nachricht- Von: Luther Baker [mailto:lutherba...@gmail.com] Gesendet: Donnerstag, 11. Juni 2009 13:27 An: users

Re: refresh page

2009-06-11 Thread Luther Baker
user's adding a few values (tags, categories) to the screen with Ajax buttons and I need to make sure that information survives browser behaviors like page refreshes. Thanks, -Luther On Thu, Jun 11, 2009 at 7:07 AM, Luther Baker lutherba...@gmail.com wrote: I think you're right - I would need

Re: JPA EntityManager storage

2009-06-10 Thread Luther Baker
at 1:04 PM, Luther Baker lutherba...@gmail.com wrote: Indeed, it can seem *spooky* to start writing code at the ThreadLocal level ... but remember, threads are created, assigned, collected and reused by the server - unless explicitly created by the application (which is highly discouraged

Re: JPA EntityManager storage

2009-06-10 Thread Luther Baker
Indeed, it can seem *spooky* to start writing code at the ThreadLocal level ... but remember, threads are created, assigned, collected and reused by the server - unless explicitly created by the application (which is highly discouraged), they are managed by the server. That said, the server

Re: AW: AW: wicket on java server

2009-06-10 Thread Luther Baker
If you're actually serious ... this might get you started - either way. How Tomcat Works: A Guide to Developing Your Own Java Servlet Container - http://my.safaribooksonline.com/097521280X -Luther On Wed, Jun 10, 2009 at 5:54 PM, Sam Stainsby s...@sustainablesoftware.com.au wrote:

Re: JPA EntityManager storage

2009-06-09 Thread Luther Baker
Maybe this link will help: https://www.hibernate.org/43.html in the class JpaUtil. I don't like this approach because it depends on the implicit assumption that each request is handled in a thread (this depends on Wicket implementation details, therefor I dislike it) This assumption is not

Re: JPA EntityManager storage

2009-06-09 Thread Luther Baker
Careful, that link got mangled: goog_1244383468413https://www.hibernate.org/43.html Hope this helps, -Luther On Tue, Jun 9, 2009 at 7:10 AM, Luther Baker lutherba...@gmail.com wrote: Maybe this link will help: https://www.hibernate.org/43.html in the class JpaUtil. I don't like

Re: JPA EntityManager storage

2009-06-09 Thread Luther Baker
attaching Hibernate is easier via vanilla java than via Spring configuration. attaching Hibernate is [even eaiser with Guice]! :) On Tue, Jun 9, 2009 at 7:59 AM, James Carman jcar...@carmanconsulting.comwrote: On Tue, Jun 9, 2009 at 8:39 AM, Martin Makundimartin.maku...@koodaripalvelut.com

Ajax and LoadableDetachableModel

2009-06-09 Thread Luther Baker
Quick question regarding a blog engine I'm working on: my user is editing a blog Post and gets to the Category section. Category is implemented with a DropDownChoice and LoadableDetachableModel. For convenience - I also have a simple TextField that, when filled out, implicitly creates a new

Re: Ajax and LoadableDetachableModel

2009-06-09 Thread Luther Baker
wrote: Did you explicitly detach the model? Regards, Linda Luther Baker wrote: Quick question regarding a blog engine I'm working on: my user is editing a blog Post and gets to the Category section. Category is implemented with a DropDownChoice and LoadableDetachableModel

Re: Ajax and LoadableDetachableModel

2009-06-09 Thread Luther Baker
AM, Luther Baker lutherba...@gmail.com wrote: In my submit handler - I invoke a service to first a) the save category and then b) save the post. I put a message into the feedback panel and add the feedback panel and the drop down to the target. It is off an AjaxFallbackbutton ... so, no, I

Ajax Buttons and Form?

2009-06-07 Thread Luther Baker
I'm saving a 'Post', like a blog post, and JPA's merge function doesn't update the object in place but rather, returns an object reflecting the new database fields (like id if it were set). In my application, I'd like to manage insert / update by setting this new 'Post' as the model for my form.

wicket:link - wicket:context

2009-06-06 Thread Luther Baker
I'd like to consider writing a component similar to wicket:link. I don't think wicket:link actually does the dirty work. My cursory view at the source suggests that wicket:link sets a flag and some other classes update the actual path printed to the page. Is this an established or documented

Re: Dynamic green or red UL background for FeedbackPanel

2009-06-05 Thread Luther Baker
the same. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Jun 5, 2009 at 12:53 AM, Luther Baker lutherba...@gmail.com wrote: Yep - that is what I'm asking - and Javascript would be fine. I guess it'd also be nice if, say, I could do something directly in Java. Explicitly

Re: Dynamic green or red UL background for FeedbackPanel

2009-06-05 Thread Luther Baker
; border: 1px solid #900; color: #900; } div.info ul.feedbackPanel { /* color scheme on explicit info */ border: 1px solid #090; background-color: #efe; color: #090; } On Fri, Jun 5, 2009 at 1:14 AM, Luther Baker lutherba...@gmail.com wrote: Thanks ... I will try to apply

Dynamic green or red UL background for FeedbackPanel

2009-06-04 Thread Luther Baker
I have a minor question regarding the FeedbackPanel. I'd like to have the panel display a subtle red background on ERROR and a subtle green background on INFO. Obviously there can be more than one LI - but assuming its all errors or info ... using css on the LI isn't enough. For instance, the LI

Re: Dynamic green or red UL background for FeedbackPanel

2009-06-04 Thread Luther Baker
you're saying is that if ANY of them are an error message, that you want the whole UL to be red? If so, you could do that in JS. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Jun 4, 2009 at 11:58 PM, Luther Baker lutherba...@gmail.com wrote: I have a minor question regarding

Re: OT: ESB

2009-06-03 Thread Luther Baker
No experience with Camel but have a bit of Mule experience. It has a few buggy spots but we've managed to work around them ... (ActiveMQ is not without its share of bugs ...) Mule requires you to sign up on their website for access to any significant information ... after which, they will call

Re: Does Link work with browser BACK button?

2009-05-31 Thread Luther Baker
easy. Make a change and you can see all the obvious things break. Its much more like putting together a lego set. Things just fit into place. /dd dd class=dateline2009/05/26 Luther Baker/dd /dl

Re: Spring Autowired and @SpringBean

2009-05-31 Thread Luther Baker
igor.vaynb...@gmail.comwrote: have you read the wicket spring wiki page? you have to install the spring component injector for this to work. -igor On Sun, May 31, 2009 at 1:15 PM, Luther Baker lutherba...@gmail.com wrote: I'm working on a project with Spring/Wicket integration. I have most

Long content

2009-05-31 Thread Luther Baker
I'm working on an application something akin to blog posts. A 'Post' has a title, date, tags, a category ... and *content*. For most of the 'smaller' properties in a 'Post', I use a Label as the component and that works just fine - but for much larger datasets, say, content, I feel odd using

Re: Long content

2009-05-31 Thread Luther Baker
it gave me room for pause. Thanks for the quick response Vasu. -Luther On Sun, May 31, 2009 at 10:49 PM, Vasu Srinivasan vasy...@gmail.com wrote: How about MultiLineLabel ? On Sun, May 31, 2009 at 10:43 PM, Luther Baker lutherba...@gmail.com wrote: I'm working on an application something

Re: Wicket Quickstart vs WIA eclipse projects: why so different?

2009-05-30 Thread Luther Baker
For what its worth, I run a few Wicket 1.4x projects as within Eclipse/m2plugin and pages, etc refresh just fine. I use the Run/Debug Configurations and create a Maven application and then select the jetty plugin, correct workspace and jetty:run command. There are also Jetty options you can

wicket logo

2009-05-27 Thread Luther Baker
Is there an official Wicket website badge? Any problems with dropping the orange Wicket logo into a Power By Wicket slogan at the bottom of a site? -Luther

Re: Storing css and image files

2009-05-27 Thread Luther Baker
pages extend BasePage you might find it useful as well. cheers, Steve On 27 May 2009, at 06:40, Luther Baker wrote: On Tue, May 26, 2009 at 11:43 PM, Vasu Srinivasan vasy...@gmail.com wrote: @Luther: Yes - I'm using the ImageButton it to submit a form. Thanks for the suggestion

Re: Storing css and image files

2009-05-27 Thread Luther Baker
, 2009 at 8:36 AM, Luther Baker lutherba...@gmail.com wrote: Hi Steve, Continue your example and mount a url to an existing page that extends BasePage: mountBookmarkablePage(/im/going/home, About.class); and tell me what happens to your js and css references when you visit that url

Re: Storing css and image files

2009-05-27 Thread Luther Baker
The clean way in my case is as Steve suggested , to use css to display the image for button. Thanks for all the inputs. Sorry this has dragged out a bit. In my case, I am not sharing static resources across apps. I'm just looking at the best way for each page in my application to retrieve

Re: Storing css and image files

2009-05-26 Thread Luther Baker
will be encoded however wicket pleases and always served up from a path relative to the resource including it. -Luther I don't code /context/resources Martijn On Mon, May 25, 2009 at 6:38 PM, Luther Baker lutherba...@gmail.com wrote: **On Mon, May 25, 2009 at 2:34 AM, Martijn Dashorst

Re: Storing css and image files

2009-05-26 Thread Luther Baker
the window. Martijn On Mon, May 25, 2009 at 6:38 PM, Luther Baker lutherba...@gmail.com wrote: **On Mon, May 25, 2009 at 2:34 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: or, if these images and css are for your application, and application wide (i.e. all pages include

Re: Storing css and image files

2009-05-26 Thread Luther Baker
/button.gif / Wicket replaces the html with input type=image src=resources/.//images/button.gif / and obviously does not find it. Is there a clean way out of this? (ie not prepend resources/... etc) Thanks! Vasya On Tue, May 26, 2009 at 12:40 PM, Luther Baker lutherba...@gmail.com

Re: Storing css and image files

2009-05-26 Thread Luther Baker
-thunder id=i_thunder31/ -Luther On Tue, May 26, 2009 at 9:13 PM, Luther Baker lutherba...@gmail.com wrote: You may have to look at this case by case ... In this example, what are you doing with the input field? Submitting a form? Were that the case, how about using a raw input tag

Re: Storing css and image files

2009-05-26 Thread Luther Baker
On Tue, May 26, 2009 at 11:43 PM, Vasu Srinivasan vasy...@gmail.com wrote: @Luther: Yes - I'm using the ImageButton it to submit a form. Thanks for the suggestion to use the modifier. I will try that. Great. I think it should work for you. On a side note, I thought that having the

Re: Storing css and image files

2009-05-25 Thread Luther Baker
**On Mon, May 25, 2009 at 2:34 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: or, if these images and css are for your application, and application wide (i.e. all pages include them), you could put them in src/main/webapp/.. and just link src=style.css ... / them in your markup.

Re: Storing css and image files

2009-05-25 Thread Luther Baker
sure there are more. Thanks, -Luther On Mon, May 25, 2009 at 11:38 AM, Luther Baker lutherba...@gmail.comwrote: **On Mon, May 25, 2009 at 2:34 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: or, if these images and css are for your application, and application wide (i.e. all pages

Re: Generic BookmarkablePage

2009-05-24 Thread Luther Baker
Carman jcar...@carmanconsulting.com wrote: BookmarkablePageLinkVoid perhaps? On Sat, May 23, 2009 at 2:05 PM, Luther Baker lutherba...@gmail.com wrote: I'm afraid I'm late to the party and that this may have been discussed 'before' I moved to 1.4 - but is there an established best practice

Pages and Namespaces

2009-05-24 Thread Luther Baker
Assuming a parent page (Layout.html) that contains a link a href= wicket:id=a-contact with corresponding code in Layout.java ... Now, I'd like to extend that with a child page ... that happens to contain text that also embeds a link to the same place. In my child page, I just so happen to the use

Re: Ajax appends to a Table

2009-05-23 Thread Luther Baker
On Fri, May 22, 2009 at 10:01 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: better approach is outlined in one of the articles on wicketinaction.com -igor http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ Thanks Igor. -Luther

Generic BookmarkablePage

2009-05-23 Thread Luther Baker
I'm afraid I'm late to the party and that this may have been discussed 'before' I moved to 1.4 - but is there an established best practice to handle something like BookmarkablePageLink ... when I'm not going to use a model? Can I confidently just leave the Type off? Is that best practice? or

IModelT and ResourceModel

2009-05-23 Thread Luther Baker
I typically write this out longhand (is that bad or unpopular) for ez debugging): add(new Label(quote, new ResourceModel(default-quote))); would often be: IModelString model = new ResourceModel(default-quote))); Label label = new Label(quote, model); add(label); My question is,

Ajax appends to a Table

2009-05-21 Thread Luther Baker
Hi, I have an 'Add Row' Ajax link and a Table. The table contains a list of todos. To 'add' a todo, I have created a single tr full of td's and input's that, via Ajax, get shown when someone clicks on the aforementioned 'Add Row' link. Now, on submission of said row, I'd like to append it to

Re: Putting HTML files in src/main/webapp

2009-05-05 Thread Luther Baker
Separates the code from the templates so the designers don't have to checkout the whole project, also keeps all the content in one directory. Even though they are dynamic template files for wicket there is a certain amount of static stuff that would be nice to be in one place. If you simply

Re: Internationalized titles

2009-05-04 Thread Luther Baker
I've setup and used this approach with success as well ... public class ChildPage extends MasterLayoutPage { public ChildPage() { super(new Model ...); } One interesting factoid ... depending on how you actually mark this up, DEVELOPMENT mode can look a bit screwy. It is my

Re: IMPORTANT: Nabble posting disabled due to spam

2009-04-12 Thread Luther Baker
Slightly o/t ... Is there a way, in Gmane to limit the view to a bookmarkable tree of responses to a single thread? The frameset doesn't work for me since the articles I'm looking at don't appear in the URL. The article specific url doesn't work for me since it doesn't provide any context or

serialVersionUID

2009-04-11 Thread Luther Baker
A quick question - is it generally acceptable to use private static final long serialVersionUID = *1L*; for most the anonymous inner class I create using Wicket? Specifically, I'm asking about using the value (-1). I've seen this idiom in the source but wasn't sure if there was some

Re: serialVersionUID

2009-04-11 Thread Luther Baker
at 12:59 PM, John Krasnay j...@krasnay.ca wrote: On Sat, Apr 11, 2009 at 08:45:31AM -0500, Luther Baker wrote: A quick question - is it generally acceptable to use private static final long serialVersionUID = *1L*; for most the anonymous inner class I create using Wicket

Re: serialVersionUID

2009-04-11 Thread Luther Baker
You don't need a serialVersionUID for serialization to work (and certainly not a unique one, or your plan for using 1L wouldn't very well). Thanks. -Luther

Re: serialVersionUID

2009-04-11 Thread Luther Baker
This has been a good thread. I seem to remember the warning became much more over-stated when Ganymede (Eclipse 3.4) was released. An avid of user of FindBugs, I like avoiding squiggly yellow lines so I did the same here - and generating a unique id sounds so much more llike the right thing to do

Re: serialVersionUID

2009-04-11 Thread Luther Baker
I don't know much about it ... but would something like Terracotta use/require/leverage the serialVersionUID for something not so obvious in normal, singly homed deployments? I think I understand that it helps confirm or explicitly 'version' components that might be working together or across,

Re: Cache oddity ... maybe

2009-04-05 Thread Luther Baker
I've included the Projects page which lists all the projects and the AddProjectPanel which contains the logic to save a new project and go back to the Projects page. Maybe I should explicitly create a new Projects page in the onSubmit handler of my AddProjectPanel? Oddly, even today - it doesn't

feedback panel

2009-04-04 Thread Luther Baker
I'd like to turn the background of a text input yellow - if it has errors. Is there a standard way to do this? I have a feedback panel - and can write some javascript. What about scanning the page for a feedback panel, and then - reading an li attribute like id=form_name_ and corresponding that

Cache oddity ... maybe

2009-04-04 Thread Luther Baker
I have a page that displays a list of Titles. I have a few links off this page that take you to a second page where you can either a) create a new Title b) edit an existing Title c) delete an existing Title The onClick handlers for b and c create the destination page with the selected object

Forms and AjaxFallbackButton

2009-04-03 Thread Luther Baker
I keep receiving the following: - - - - - - - - - - - - - This is an automatically generated Delivery Status Notification Delivery to the following recipient failed permanently: users@wicket.apache.org Technical details of permanent failure: Google tried to deliver your message, but it was

Submitting an Ajax Modal

2009-04-03 Thread Luther Baker
I have a form with an AjaxFallbackButton that populates and displays a Modal form. It all works but when I SUBMIT the Modal form I am presented with a Confirmation Dialog: Are you sure you want to navigate away from this page? Reloading this page will cause the modal window to disappear. Press

From Window to Modal Window Form Model

2009-04-03 Thread Luther Baker
Is there a preferred way to pass information from a Form's AjaxButton submit handler to a Modal window's panel's form? I am currently manually updating individual fields on the model instance object I am assigning to the Modal Windows Panel Form FormComponents. Since the Modal window is

Re: delete onSubmit

2009-04-02 Thread Luther Baker
: Have you tried what you're trying to do in a test case? I mean, outside of Wicket? On Wed, Apr 1, 2009 at 10:19 PM, Luther Baker lutherba...@gmail.com wrote: I am trying to delete an object in my form's Submit handler. In one case, the object has references to other objects and so

View the Source

2009-04-02 Thread Luther Baker
I'd like to see how the model implementation (Model, ProeprtyModel, CompoundPropertyModel) I use affects the DropDownChoice. I can see the model get SET in the Component when I initially create the DropDownChoice. What I'd like to see is how, on a subsequent POST, the parameters I in my form get

Re: View the Source

2009-04-02 Thread Luther Baker
I recently read this http://www.angelikalanger.com/Articles/JavaSolutions/SecretsOfEquals/Equals.htmland now, at least for the time being, I take great care when writing hashCode, equals and compareTo. It is a good read if you're not already familiar with the topic. For what its worth, I tend to

Re: View the Source

2009-04-02 Thread Luther Baker
I use IntelliJ IDEA and I've never had any troubles with my equals() and hashCode() methods. That is probably fine 90% of the time but I'd be careful if you're not actually giving it a bit of thought. It is actually quite difficult to correctly implement equals in a general, universal way

DropDown Models

2009-04-01 Thread Luther Baker
This select impl works just fine ... creating a project that must include a Category from a drop down: public AddProjectForm(final String id) { super(id); this.project = new Project(); *this.setModel(new CompoundPropertyModel(this.project));*

delete onSubmit

2009-04-01 Thread Luther Baker
I am trying to delete an object in my form's Submit handler. In one case, the object has references to other objects and so it correctly complains throws a (GenericJDBCException). When the view refreshes, the Choose One method is gone and the previously selected object is selected again. If I

Feedback Panel

2009-04-01 Thread Luther Baker
I have an onSubmit handler that fails. I would like to catch the exception and explicitly write a message to the page's FeedbackPanel. The message would be a 'message' from Page.properties ... My problem is that a literal string works just fine ... this.error(something I said) but how do I get

Re: Feedback Panel

2009-04-01 Thread Luther Baker
ty. On Wed, Apr 1, 2009 at 9:33 PM, Jeremy Thomerson jer...@wickettraining.comwrote: this.error(getString('key')) -- Jeremy Thomerson http://www.wickettraining.com On Wed, Apr 1, 2009 at 9:23 PM, Luther Baker lutherba...@gmail.com wrote: I have an onSubmit handler that fails. I

Re: How To Download Excel File?

2009-03-31 Thread Luther Baker
I could be wrong - but maybe the question is about how best to structure this in Wicket .. Should it be a bookmarkable link? Should it be an action link? If I do the work in my Action style link, how does one directly return content from an action link as opposed to setting page response, etc.

Re: How To Download Excel File?

2009-03-31 Thread Luther Baker
These responses were great! I learned something from almost each variant of the answer. For what its worth, depending on how the app will be used - one might need to be careful about writing files to the filesystem ... but again, thanks for all the great examples listed here. -Luther On Tue,

Re: FeedbackPanel.isVisible override

2009-03-31 Thread Luther Baker
That was perfect. Thanks, -Luther On Sun, Mar 29, 2009 at 1:58 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: anyMessage(); On Sun, Mar 29, 2009 at 1:56 PM, Luther Baker lutherba...@gmail.com wrote: I am using the built-in functionality of the FeedbackPanel and I'd like

FeedbackPanel.isVisible override

2009-03-28 Thread Luther Baker
I am using the built-in functionality of the FeedbackPanel and I'd like to tweak it just a bit. I have some default padding/margin setup for that div ... and so even empty, it takes up some space on my page. I'd like to hide it altogether if no errors are present. Is there a well-known function

nested loop view

2009-03-26 Thread Luther Baker
I'm trying to create a page - similar to Jira's BROWSE PROJECTS. My initial take amounts to a loop in a loop. The outer loop is CATEGORIES and the inner loop is PROJECTS in said category. | CATEGORY 1 | p1 | p2 | p3 | CATEGORY 2 | p4 | p5 | p6 ... I've attached code below but if I removed

Re: nested loop view

2009-03-26 Thread Luther Baker
Ahh ... but of course! Thanks both of you. The nested structure did indeed obscure the problem. Fixed and refactored a bit - and now working as expected. Thanks for your time! -Luther On Thu, Mar 26, 2009 at 12:01 PM, Jonathan Locke jonathan.lo...@gmail.comwrote: uh, well maybe not

Re: Looking for a book on the jetty server

2009-03-25 Thread Luther Baker
I've asked this general question myself and came away with a few valuable thoughts: http://www.theserverside.com/news/thread.tss?thread_id=15073 http://developers.slashdot.org/developers/02/08/19/2042235.shtml?tid=108 http://www.webtide.com/choose/jetty.jsp

maven, eclipse and wicket

2009-03-23 Thread Luther Baker
I am having a slight bit of trouble getting Eclipse to step into the Wicket source code while using the m2eclipse plugin. The m2eclpse has successfully downloaded the Wicket 1.3.5 distribution. My application fires up and works just fine in Eclipse. I have also enabled the m2eclipse plugin to

Re: maven, eclipse and wicket

2009-03-23 Thread Luther Baker
not sure i'm using m2eclipse (but i think so). to download sources just right click on your eclipse project, go to maven download sources. if we're using the same plugin, this should work. francisco On Mon, Mar 23, 2009 at 6:23 PM, Luther Baker lutherba...@gmail.com wrote: I am having a slight

  1   2   >