help with Signin2 example

2008-03-12 Thread Andrew Broderick
Hi, I am new to Wicket, and trying to get the Signin2 (user authorization) example working. I am using Wicket 1.3 and JBoss 4.5. The problem is that after I sign in, it doesn't redirect to the home page. It tries to redirect to http://localhost:8080/index.jsp (which is presumably just a

span wicket:id=mainNavigation/

2008-03-12 Thread Andrew Broderick
Hi, The Signin2 example uses span wicket:id=mainNavigation/ in the page. This doesn't correspond to any components added by the page's Java class, and throws an error: WicketMessage: Unable to find component with id 'mainNavigation' in [Page class = com.company.page.auth.SignIn, id = 0,

RE: span wicket:id=mainNavigation/

2008-03-12 Thread Andrew Broderick
... -igor On Wed, Mar 12, 2008 at 11:38 AM, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, The Signin2 example uses span wicket:id=mainNavigation/ in the page. This doesn't correspond to any components added by the page's Java class, and throws an error: WicketMessage: Unable to find

downloading Wicket examples

2008-03-13 Thread Andrew Broderick
Hi, I found many useful Wicket examples at: http://wicketstuff.org/wicket13/ You can browse the source code, but not all classes are there (e.g WicketExampleApplication). Where can I download jar or zip files of the sources for these examples? Thanks

RE: downloading Wicket examples

2008-03-13 Thread Andrew Broderick
/closer.cgi/wicket/1.3.1 Download the distribution, read the readme, look in lib/ for wicket-examples.war Martijn On 3/13/08, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, I found many useful Wicket examples at: http://wicketstuff.org/wicket13/ You can browse the source code, but not all

optional components in markup

2008-03-20 Thread Andrew Broderick
Hi, Is there a way to mark a component in markup as optional, so it renders it if it's there, but leaves it out if not? Or, if I don't want a certain component to appear (decided by logic at runtime), do I just have to insert a placeholder component, such as an empty label? Thanks

newbie title attribute question

2008-03-28 Thread Andrew Broderick
Hi, I want to put a title attribute in a td tag. However, my markup would then look like this: td title=span wicket:id=title / blah blah /td Now, I know I could output the td with a label and set escaping to false, thus passing the markup through to the browser. However, that would mean

RE: newbie title attribute question

2008-03-28 Thread Andrew Broderick
); }} -igor On Fri, Mar 28, 2008 at 1:14 PM, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, I want to put a title attribute in a td tag. However, my markup would then look like this: td title=span wicket:id=title / blah blah /td Now, I know I could output the td with a label and set

Simplest way to do name-value pairs in DropDownChoice

2008-04-01 Thread Andrew Broderick
Hi, I have looked around at several examples of using DropDownChoice. I see it is a very flexible component, with models, IChoiceRenderers and so on. But, I just want to pass it simple name/value pairs to use, with a minimum of fuss. Surely there must be an easy way to do this, since this is

RE: Simplest way to do name-value pairs in DropDownChoice

2008-04-01 Thread Andrew Broderick
Jeremy On Tue, Apr 1, 2008 at 12:02 PM, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, I have looked around at several examples of using DropDownChoice. I see it is a very flexible component, with models, IChoiceRenderers and so on. But, I just want to pass it simple name/value pairs to use

RE: Simplest way to do name-value pairs in DropDownChoice

2008-04-01 Thread Andrew Broderick
To: users@wicket.apache.org Subject: Re: Simplest way to do name-value pairs in DropDownChoice Its just a class with a get/set Value and Id j On Tue, Apr 1, 2008 at 12:50 PM, Andrew Broderick [EMAIL PROTECTED] wrote: I am using Wicket 1.3. Has Wicket Extensions been updated to 1.3? I got

RE: Simplest way to do name-value pairs in DropDownChoice

2008-04-01 Thread Andrew Broderick
Since it wasn't there, I extended DropDownChoice to encapsulate the whole name/value pair thing: package ...helper.ui; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.apache.wicket.markup.html.form.ChoiceRenderer; import

refreshing page

2008-04-01 Thread Andrew Broderick
Hi, I'm sure this is a basic newbie lack of knowledge showing here, but when I save some data to my DB from my wicket page (adding an object), my master (list) page is not updated. Okay, I thought, maybe I just need to modify the model at the same time as saving it. So I did that, and the new

RE: refreshing page

2008-04-01 Thread Andrew Broderick
to google before asking you know :( http://www.theserverside.com/tt/articles/content/IntroducingApacheWicket/article.html Maurice On Tue, Apr 1, 2008 at 10:39 PM, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, I'm sure this is a basic newbie lack of knowledge showing here, but when I save some data

Wicket Extensions

2008-04-09 Thread Andrew Broderick
Hi, Is Wicket Extensions 1.2.7 compatible with Wicket 1.3? I downloaded it, but I can't find any mention of Wicket versions in the documentation Thanks ___ The information in this email or in any file attached hereto is intended only for

RE: Wicket Extensions

2008-04-09 Thread Andrew Broderick
release all projects concurrently under the same version number. Why did you download wicket extensions when it is in the distribution? Or why didn't you just add it to your pom? Martijn On 4/9/08, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, Is Wicket Extensions 1.2.7 compatible with Wicket

customize SignInPanel look and feel

2008-04-09 Thread Andrew Broderick
Hi, How do I customize the markup for the stock SignInPanel? Thanks ___ The information in this email or in any file attached hereto is intended only for the personal and confiden- tial use of the individual or entity to which it is

form-specific feedback

2008-04-10 Thread Andrew Broderick
Hi, I have two forms on the same page, that are two different classes. Each uses a FeedbackPanel. The problem is, if one of them is submitted, and error(blah) is called somewhere in the onSubmit(), they both display the message! How can I make each form only display its own messages? Thanks

Consuming a portlet in Wicket?

2008-04-14 Thread Andrew Broderick
Hi, I am trying to seamlessly integrate JForum into my Wicket application. Problem is, JForum is an entirely separate web application (running under the same domain however). JForum has a JSR-168 portlet bridge available, to allow it to run as a portlet. However, can a portlet be consumed by

Wicket is the state into which all web frameworks will eventually evolve

2008-04-15 Thread Andrew Broderick
Hi, Just wanted to take time to say I LOVE WICKET! It is a completely different approach from the other MVC frameworks. For modularity, stability, ease of use, and separation of concerns, it blows them out of the water. We have been using Wicket 1.3 intensively for a month now. We are building

DropDownChoice problem

2008-04-17 Thread Andrew Broderick
Hi, I have a DropDownChoice in a form, with markup: select wicket:id=authors / In my Form class, I add it like this: add(new DropDownChoice(authors, new PropertyModel(this.article, articleAuthorId), acService.getAuthors(), new

RE: DropDownChoice problem

2008-04-17 Thread Andrew Broderick
: Thursday, April 17, 2008 4:23 PM To: users@wicket.apache.org Subject: Re: DropDownChoice problem Use Long instead of long On Thu, Apr 17, 2008 at 5:05 PM, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, I have a DropDownChoice in a form, with markup: select wicket:id=authors / In my Form

getter called multiple times on PropertyModel with ListView

2008-04-29 Thread Andrew Broderick
Hi, I have a page where I am using a PropertyModel to populate a ListView, so it will change when the underlying contents change: ListView newsDetails = new ListView(newsDetails, new PropertyModel(this, articles)) { protected void populateItem(ListItem

RE: getter called multiple times on PropertyModel with ListView

2008-04-29 Thread Andrew Broderick
multiple times on PropertyModel with ListView ListView newsDetails = new ListView(newsDetails, new LoadableDetachableModel(new PropertyModel(this, articles))) -igor On Tue, Apr 29, 2008 at 10:46 AM, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, I have a page where I am using a PropertyModel

finding out user's original destination

2008-04-30 Thread Andrew Broderick
Hi, In the onSubmit() of my SignInPanel, I have the following: if (!continueToOriginalDestination()) { setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage( getApplication().getHomePage(),

RE: getter called multiple times on PropertyModel with ListView

2008-04-30 Thread Andrew Broderick
] */ @Override protected final void populateItem(final ListItem item) { ... } }; add(newsDetails); -Original Message- From: Andrew Broderick [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 29, 2008 2:19 PM To: 'users@wicket.apache.org' Subject: RE: getter called

RE: 答复: What is the Wicket way to redirect?

2008-05-01 Thread Andrew Broderick
If there's one fault with this otherwise great mailing list, it's the attitude that the old-timers have towards the newbies. The guy asked a simple question. FYI, what's wrong with the Javadoc is that for RestartResponseException, it says: Causes wicket to interrupt current request processing

RE: RTFM messages

2008-05-02 Thread Andrew Broderick
] wrote: On Thu, 2008-05-01 at 21:01 +0200, Martijn Dashorst wrote: On 5/1/08, Andrew Broderick [EMAIL PROTECTED] wrote: The guy asked a simple question. And I answered it is a simple manner: read the javadoc, if that doesn't help you, tell us what is wrong. All condensed in a single

RE: WicketStuff.org Is Down

2008-05-02 Thread Andrew Broderick
Also see http://www.wicket-library.com/wicket-examples/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Gravener Sent: Friday, May 02, 2008 2:58 PM To: users@wicket.apache.org Subject: Re: WicketStuff.org Is Down I have the examples running on

forcing cookies to expire

2008-05-05 Thread Andrew Broderick
Hi, I am trying to manage cookies in Wicket. I can create them and read them no problem, but forcing expiry by setting maxAge=0 does not seem to be working. Here is the code: Set cookie: public void setRememberMeCookie(String username) { Cookie cookie = new

RE: forcing cookies to expire

2008-05-06 Thread Andrew Broderick
, is it pushed to the httpservletresponse object? On 5/5/08, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, I am trying to manage cookies in Wicket. I can create them and read them no problem, but forcing expiry by setting maxAge=0 does not seem to be working. Here is the code: Set cookie

RE: forcing cookies to expire

2008-05-07 Thread Andrew Broderick
then On Tue, May 6, 2008 at 4:16 PM, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, clearCookie() is called in the constructor of a page called SignOut. The entire constructor is: public SignOut() { clearCookie(Register.REMEMBER_ME_COOKIE

DropDownChoice.onSelectionChanged() and model updating

2008-05-07 Thread Andrew Broderick
Hi, I have a form that I want to repopulate when a drop down list is changed. If I change the underlying domain object in the onSelectionChanged(), the form fields are not updated to reflect the changes (yes, they do use a dynamic model). However, if I have a button next to the drop down list

RE: DropDownChoice.onSelectionChanged() and model updating

2008-05-08 Thread Andrew Broderick
that will change values of these other form components and you want that reflected you need to call clearInput() or modelUpdated() on those form components. -igor On Wed, May 7, 2008 at 1:46 PM, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, I have a form that I want to repopulate when a drop down list

RE: form action

2008-05-09 Thread Andrew Broderick
You could just have the forms be two different classes (or instances) and have them bound via PropertyModels to different objects, in order to keep separate states. Why do you want URL query strings (and hence GET requests) with forms anyway? -Original Message- From: Joel Halbert