RE: Javascript adding input

2008-05-12 Thread Dan Kaplan
the hidden data from the request: getRequest().getParameter(hidden_token); On Fri, May 9, 2008 at 2:13 PM, Dan Kaplan [EMAIL PROTECTED] wrote: That's not the point, but if you need a good reason how about this: I'm using recaptcha (it generates a captcha on the page). It works by putting

RE: Javascript adding input

2008-05-09 Thread Dan Kaplan
To: users@wicket.apache.org Subject: Re: Javascript adding input Why would you want to do that? If it happens at form load you must know about this inputfield when you create the page so why not add a wicket component for it too? Maurice On Fri, May 9, 2008 at 1:02 AM, Dan Kaplan [EMAIL

Javascript adding input

2008-05-08 Thread Dan Kaplan
Let's say that hypothetically I used javascript to add an input to a form in its onload method. How can I get wicket to become aware of that input so I can do things like validate it, etc.?

ReCaptcha Panel

2008-04-14 Thread Dan Kaplan
Here is the code for the recaptcha panel. I don't feel like creating a project for this but others have expressed interest in it. Panel: http://pastebin.org/29726 SRC: http://pastebin.org/29725 NOTE: this library has a dependency lib. You can download it here:

RE: ReCaptcha Panel

2008-04-14 Thread Dan Kaplan
exactly how it should. -Original Message- From: Michael Laccetti [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 12:08 PM To: users@wicket.apache.org Subject: Re: ReCaptcha Panel Perhaps this would do well as an addition to wicketstuff contribs? Dan Kaplan-3 wrote

RE: Removing the jsessionid for SEO

2008-04-04 Thread Dan Kaplan
Subject: Re: Removing the jsessionid for SEO We have a similar issue, and are trying the following out right now.. http://www.google.com/support/webmasters/bin/answer.py?hl=enanswer=40367 User-agent: * Disallow: /*? On Thu, Apr 3, 2008 at 9:09 PM, Dan Kaplan [EMAIL PROTECTED

RE: Removing the jsessionid for SEO

2008-04-03 Thread Dan Kaplan
Regardless, at the very least this makes your site look weird and unprofessional when google puts a jsessionid on your url. There has got to be some negative effect when google visits it the second time and the jsessionid has changed but it sees the same exact content. Worst case, it'll think

RE: Removing the jsessionid for SEO

2008-04-03 Thread Dan Kaplan
Clarifications: When I said About those 404s, I was talking about if you use the fix I provided and turn off cookies on your browser. When I said, If I ban cookies I mean to say, If I require cookies -Original Message- From: Dan Kaplan [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03

RE: Removing the jsessionid for SEO

2008-04-03 Thread Dan Kaplan
in a stateless mode, just use bookmarkable links inside it -igor On Thu, Apr 3, 2008 at 3:22 PM, Dan Kaplan [EMAIL PROTECTED] wrote: Regardless, at the very least this makes your site look weird and unprofessional when google puts a jsessionid on your url. There has got to be some negative effect when

RE: Removing the jsessionid for SEO

2008-04-03 Thread Dan Kaplan
, 2008 3:30 PM To: users@wicket.apache.org Subject: Re: Removing the jsessionid for SEO instead of item.add(new link(foo) { onclick() }); do item.add(new bookmarkablepagelink(foo, page.class)); -igor On Thu, Apr 3, 2008 at 3:28 PM, Dan Kaplan [EMAIL PROTECTED] wrote: How? I asked how to do

RE: Removing the jsessionid for SEO

2008-04-03 Thread Dan Kaplan
for all the links it uses. -igor On Thu, Apr 3, 2008 at 3:36 PM, Dan Kaplan [EMAIL PROTECTED] wrote: I wasn't talking about the links that are on the list (I already make those bookmarkable). I'm talking about the links that the Navigator generates. How do I make it so page 2

RE: Removing the jsessionid for SEO

2008-04-03 Thread Dan Kaplan
-Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2008 3:36 PM To: users@wicket.apache.org Subject: Re: Removing the jsessionid for SEO On 4/4/08, Dan Kaplan [EMAIL PROTECTED] wrote: Regardless, at the very least this makes your site look

RE: Removing the jsessionid for SEO

2008-04-03 Thread Dan Kaplan
you subclass the pagenavigator and make it use bookmarkable links also. it has factory methods for all the links it uses. -igor On Thu, Apr 3, 2008 at 3:36 PM, Dan Kaplan [EMAIL PROTECTED] wrote: I wasn't talking about the links that are on the list (I already make those bookmarkable

RE: Removing the jsessionid for SEO

2008-04-03 Thread Dan Kaplan
::: and ?wicket:interface=:0:1::: and ...? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2008 5:45 PM To: users@wicket.apache.org Subject: Re: Removing the jsessionid for SEO On Thu, Apr 3, 2008 at 5:31 PM, Dan Kaplan [EMAIL PROTECTED] wrote

ReCaptcha Panel

2008-04-02 Thread Dan Kaplan
Hello, I made a recaptcha panel for my site and I was wondering if I should share it back with the community. It's just a Panel, its template and a dependent jar. Should I just post the code here?

Removing the jsessionid for SEO

2008-04-02 Thread Dan Kaplan
victori_ provided this information on IRC and I just wanted to share it with everyone else. Googlebot and others don’t use cookies. This means when they visit your site it adds ;jsessionid=code to the end of all your urls they visit. When they re-visit it, they get a different code, consider

Wizard seems to cache pages even on model change

2008-04-01 Thread Dan Kaplan
Hello, Here is my scenario. I have a 2 page Wizard. The first page asks you to type in the primary key of a table. If that row already exists in the table, the second page gets loaded with the rest of that row's data. So, in summary, the first page of the wizard should be able to populate the

RE: Wizard seems to cache pages even on model change

2008-04-01 Thread Dan Kaplan
The most important part of this is probably HOW I update the model. I am using AJAX. -Original Message- From: Dan Kaplan [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2008 11:07 AM To: users@wicket.apache.org Subject: Wizard seems to cache pages even on model change Hello, Here

UrlValidator: optional schema or default schema?

2008-03-31 Thread Dan Kaplan
Hello, I was using the UrlValidator yesterday and I wished that there was a way for the schema to be optional. I think this would be useful most of the time as you normally expect someone to paste the URL of a website in certain situations. In that case, http:// can be assumed, if it's not

Adding new Link() to an img tag = weird default behavior

2008-03-27 Thread Dan Kaplan
Hello, Yesterday I tried adding a new Link() to an img tag. I noticed that when you hover over the image the cursor doesn't change and the status bar doesn't say anything. I bet 9 times out of 10 you wouldn't want this behavior. I already fixed the cursor problem with CSS, how do I make the

RE: Adding new Link() to an img tag = weird default behavior

2008-03-27 Thread Dan Kaplan
with an anchor tag and attach the Link component to that. Gerolf On Thu, Mar 27, 2008 at 7:15 PM, Dan Kaplan [EMAIL PROTECTED] wrote: Hello, Yesterday I tried adding a new Link() to an img tag. I noticed that when you hover over the image the cursor doesn't change and the status bar doesn't

DataView with special info on the first page

2008-03-25 Thread Dan Kaplan
I'd like to put some special info on the first page of my data view: Some info that explains what the site is about. I don't want this info to take up real estate on all the other pages because once you've read it once, it'll be annoying to have to scroll past each time. So how do I put

RE: DataView size() iterator() call order issue

2008-03-21 Thread Dan Kaplan
FYI, in oracle you can use Analytical Functions to do this in one query. In other db's you can do this: select username, x.* from customlist, (select count(*) from customlist) as x; -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2008 11:44 AM

RE: DataView size() iterator() call order issue

2008-03-21 Thread Dan Kaplan
... not to mention once you include any sort of filtering you have to repeat your where clause in both the main select and the subselect... -igor On Fri, Mar 21, 2008 at 1:23 PM, Dan Kaplan [EMAIL PROTECTED] wrote: FYI, in oracle you can use Analytical Functions to do this in one query. In other db's you

StartFound: You can now submit/edit your own content

2008-03-20 Thread Dan Kaplan
Hi, This is the second time I've mentioned StartFound. I hope it's not considered spam at this point. If so, this'll be my last update about it but this update is very important. You can now submit/edit your own content to http://www.startfound.com http://www.startfound.com/ So if anyone

RE: Pretty DataView urls

2008-03-19 Thread Dan Kaplan
you use the Ajax version? On 3/17/08, Dan Kaplan [EMAIL PROTECTED] wrote: Hello, Is it possible to have pretty dataview urls when someone clicks on different pages of the navigator? Right now it says stuff like ::interface.7.1 or something. I'd prefer it to say something like /home?page

RE: Pretty DataView urls

2008-03-19 Thread Dan Kaplan
PM, Dan Kaplan [EMAIL PROTECTED] wrote: Hello, Is it possible to have pretty dataview urls when someone clicks on different pages of the navigator? Right now it says stuff like ::interface.7.1 or something. I'd prefer it to say something like /home?page=7 -- Resizable

RE: Digg / Technorati / del.icio.us Component?

2008-03-17 Thread Dan Kaplan
You might want to look at sharethis.com I'm not affiliated with them and it's not wicket related but it may be just what you're looking for. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Saturday, March 15, 2008 12:05 AM To: users@wicket.apache.org; [EMAIL

Pretty DataView urls

2008-03-17 Thread Dan Kaplan
Hello, Is it possible to have pretty dataview urls when someone clicks on different pages of the navigator? Right now it says stuff like ::interface.7.1 or something. I'd prefer it to say something like /home?page=7

Ajax + ListView without losing focus

2008-03-14 Thread Dan Kaplan
I have a listview. This listview displays a panel that contains trtd*textbox*/tdtd*label*/td/tr Is there a way i can update the label without making the user lose focus on the textbox they're typing in?

My New Wicket Website

2008-03-14 Thread Dan Kaplan
Hello, I wanted to let you guys know about my new wicket website: http://www.startfound.com http://www.startfound.com/ I've only been working on this for about 1.5 weeks, so there's not much functionality and it's not very interactive, but I have a lot of big plans in the future.

RE: My New Wicket Website

2008-03-14 Thread Dan Kaplan
: Re: My New Wicket Website neato. couple ideas... dropdown to select startups by category (for example, all startups with a way to make money ;-)) bigger font and a bit more margin in the footer page navigator get the startups themselves into presenting their pitch Dan Kaplan-3 wrote

RE: Ajax + ListView without losing focus

2008-03-14 Thread Dan Kaplan
, Dan Kaplan [EMAIL PROTECTED] wrote: I have a listview. This listview displays a panel that contains trtd*textbox*/tdtd*label*/td/tr Is there a way i can update the label without making the user lose focus on the textbox they're typing

RE: A link-o-label needed

2008-03-14 Thread Dan Kaplan
Couldn't you just do this as a panel: wicket:panel a wicket:id=linkspan wicket:id=labellabel/span/a /wicket:panel And it has this constructor: public LabelLink(String id, IModel urlModel, IModel labelModel); I'd certainly vote for that to be added to the repo -Original Message- From:

Dynamic Forms

2008-03-11 Thread Dan Kaplan
I have a form with a text field on it. Somewhere on the form there is also a + symbol. When you click on it, a new text field appears. I know that this has been asked a bunch of times, but I can only find emails where people say, This has been asked a bunch of times when I search the mailing

RE: Wicket-FBML Released

2008-02-26 Thread Dan Kaplan
:03 AM To: users@wicket.apache.org Cc: 'Eelco Hillenius' Subject: Re: Wicket-FBML Released Hi Dan Could you provide some information about the project, im thinking of howto use it is there a maven repo etc? Dan Kaplan wrote: Wicket-FBML (facebook markup language) 0.1 has been released

AjaxFormValidatingBehavior on a form with a fileuploadfield crashes

2008-02-26 Thread Dan Kaplan
Hello, If I use: AjaxFormValidatingBehavior.addToAllFormComponents(form, onblur); On a form that has a fileuploadfield, it throws an exception when I blur another field. Is there a work around/solution to this (for now, I'd be happy to only validate the one field I want)? Here is the stack

Wicket-FBML Released

2008-02-25 Thread Dan Kaplan
Wicket-FBML (facebook markup language) 0.1 has been released on sourceforge. It doesn't have much, but I'd like to think it'll help.

fileUploadField uploads even when it shouldn't

2008-02-21 Thread Dan Kaplan
Hello, I've made an upload form and wanted to add a cancel button to it. The cancel button is clicked if the user decides he doesn't want to upload (before he uploads) and should redirect back to another page. This works pretty well except I noticed that if the user chooses a file then

RE: ComponentTag#setNamespace()

2008-02-07 Thread Dan Kaplan
Opened a bug report for this: https://issues.apache.org/jira/browse/WICKET-1330 -Original Message- From: Dan Kaplan [mailto:[EMAIL PROTECTED] Sent: Thursday, February 07, 2008 11:07 AM To: users@wicket.apache.org Subject: ComponentTag#setNamespace() I noticed yesterday

ComponentTag#setNamespace()

2008-02-07 Thread Dan Kaplan
I noticed yesterday that the ComponentTag#setNamespace() method only sets the namespace on the opening tag. The close tag is left unchanged. Is that intended functionality? If I call ComponentTag#setName(foo) it changes both the opening and closing tag so it seems inconsistent.

RE: mounted url bug or request for enhancement

2008-02-06 Thread Dan Kaplan
I didn't see any response to this so I'm going to bump it once. -Original Message- From: Dan Kaplan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 05, 2008 11:36 AM To: users@wicket.apache.org Subject: RE: mounted url bug or request for enhancement I made a very big typo in that last

RE: mounted url bug or request for enhancement

2008-02-05 Thread Dan Kaplan
I made a very big typo in that last paragraph. It should have said: But my complaint is that even though it does that, you can still type /home/foo/bar into the url and it'll render *home* for you. -Original Message- From: Dan Kaplan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 05

mounted url bug or request for enhancement

2008-02-05 Thread Dan Kaplan
Hello, I'm testing this sandbox webapp I made that looks like this: package web; import org.apache.wicket.protocol.http.WebApplication; public class SandboxApplication extends WebApplication { protected void init() { mountBookmarkablePage(/home, Home.class); }

RE: Challenge: write something really sleek for Facebook?

2008-02-04 Thread Dan Kaplan
As I understand facebook apps more, I see that this separation is distinct. That being said, I don't understand your last paragraph. I think I already accomplished that with the wiki post. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Levy Sent:

RE: Challenge: write something really sleek for Facebook?

2008-02-01 Thread Dan Kaplan
] Sent: Thursday, January 31, 2008 8:44 PM To: wicket user list Cc: Dan Kaplan Subject: Challenge: write something really sleek for Facebook? Hi, Daniel Kaplan wrote a WIKI page[1] that describes how to set up Wicket for Facebook. Someone posted a link to that on DZone[2], and that in turn prompted

Making your webapp thread safe

2008-01-31 Thread Dan Kaplan
Ok, I’ve asked this at least twice already but I’m still incredibly unsure of how to make my webapp thread safe. So this time I thought I’d take a different approach. I wrote on the wiki a short, unrelated example: http://cwiki.apache.org/confluence/display/WICKET/Facebook+Integration Is

RE: Making your webapp thread safe

2008-01-31 Thread Dan Kaplan
- From: Johan Compagner [mailto:[EMAIL PROTECTED] Sent: Thursday, January 31, 2008 12:18 PM To: users@wicket.apache.org Subject: Re: Making your webapp thread safe that looks fine i would throw a RestartResponseException in youre forcelogin method On Jan 31, 2008 8:48 PM, Dan Kaplan [EMAIL

RE: the flow of wicket

2008-01-14 Thread Dan Kaplan
. -igor On Jan 10, 2008 5:06 PM, Dan Kaplan [EMAIL PROTECTED] wrote: seconded -Original Message- From: Beyonder Unknown [mailto:[EMAIL PROTECTED] Sent: Thursday, January 10, 2008 5:05 PM To: WICKET USER Subject: the flow of wicket Hi All, I am

RE: Type safe roles for AUTH-ROLES?

2008-01-14 Thread Dan Kaplan
What? Really? Fuck. Can you please elaborate? Did I waste every second of the time I spent looking at the examples on wicketstuff? I applied these examples to my webapp. Did I implement some type of pretend authorization strategy? -Original Message- From: Igor Vaynberg

RE: Type safe roles for AUTH-ROLES?

2008-01-14 Thread Dan Kaplan
that a lot of applications can live with the 3 levels of authorization: none, user and admin provided by auth-roles. Martijn (who likes using auth-roles) On 1/14/08, Dan Kaplan [EMAIL PROTECTED] wrote: I guess I'll have to read about swarm/wasp to read about what fancy features I'm missing out

RE: Type safe roles for AUTH-ROLES?

2008-01-14 Thread Dan Kaplan
will they be added to it in the future. it is meant to serve as an example, so users can see how to implement their own authorization strategies. what more do you want me to say exactly? -igor On Jan 14, 2008 1:51 PM, Dan Kaplan [EMAIL PROTECTED] wrote: What? Really? Fuck. Can you please elaborate

RE: Type safe roles for AUTH-ROLES?

2008-01-14 Thread Dan Kaplan
, January 14, 2008 2:15 PM To: users@wicket.apache.org Subject: RE: Type safe roles for AUTH-ROLES? On Mon, 2008-01-14 at 13:51 -0800, Dan Kaplan wrote: What? Really? F***. Can you please elaborate? Did I waste every second of the time I spent looking at the examples on wicketstuff? I applied

RE: the flow of wicket

2008-01-10 Thread Dan Kaplan
seconded -Original Message- From: Beyonder Unknown [mailto:[EMAIL PROTECTED] Sent: Thursday, January 10, 2008 5:05 PM To: WICKET USER Subject: the flow of wicket Hi All, I am studying wicket from the WicketFilter to the WebApplication, but I don't understand the concept of

RE: DropDownChoice always on the top

2008-01-08 Thread Dan Kaplan
Cool. Would it be the wicket way to automatically do this in the dropdown choice so that wicket developers don't have understand this bug themselves? -Original Message- From: dariusz.holda [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 5:25 AM To: users@wicket.apache.org

RE: Wicket Session and threading

2008-01-07 Thread Dan Kaplan
that this may not be only a problem in Hibernate, but can also be a problem in other db frameworks. So do what Johan described and you will be safe... Martijn On Jan 5, 2008 3:54 AM, Eelco Hillenius [EMAIL PROTECTED] wrote: On Jan 5, 2008 5:15 AM, Dan Kaplan [EMAIL PROTECTED] wrote: Yeah that makes

RE: required for Checkbox

2008-01-07 Thread Dan Kaplan
But another way to look at it is this: When a checkbox is unchecked, it has a value of unchecked. Therefore, if you setRequired=true on a checkbox, it's always satisfied. In otherwords, a checkbox always has a value so setRequired=true has no effect on a checkbox. -Original Message-

RE: Wicket Session and threading

2008-01-07 Thread Dan Kaplan
; } protected void onDetach() { user=null; } } -igor On Jan 7, 2008 11:11 AM, Dan Kaplan [EMAIL PROTECTED] wrote: Is there an example somewhere that shows how to do this? Or can someone paste a snippet here of how to do this? I assume a lot of webapps have the concept of a User

RE: Wicket Session and threading

2008-01-07 Thread Dan Kaplan
) { user=getHibernateSession().load(User.class, userId); } } return user; } protected void onDetach() { user=null; } } -igor On Jan 7, 2008 11:11 AM, Dan Kaplan [EMAIL PROTECTED] wrote: Is there an example somewhere

RE: Is it possible to use wicket without having any html page?

2008-01-07 Thread Dan Kaplan
Am I having déjà vu? Didn't someone already post this? -Original Message- From: Jon Laidler [mailto:[EMAIL PROTECTED] Sent: Monday, January 07, 2008 3:54 PM To: users@wicket.apache.org Subject: Re: Is it possible to use wicket without having any html page? +1. If Echo (never used

RE: Wicket Session and threading

2008-01-04 Thread Dan Kaplan
To me it seems like it would be an unusual situation for two threads to access the session at the same time. Under what circumstances does this happen? -Original Message- From: Eelco Hillenius [mailto:[EMAIL PROTECTED] Sent: Thursday, January 03, 2008 10:15 PM To:

RE: Wicket Session and threading

2008-01-04 Thread Dan Kaplan
To: users@wicket.apache.org Subject: Re: Wicket Session and threading What about (i)frames with pages being loaded in every one of them at the same time? Frank On Jan 4, 2008 7:57 PM, Dan Kaplan [EMAIL PROTECTED] wrote: To me it seems like it would be an unusual situation for two threads

RE: MyWebApplication, SpringWebApplication + AuthenticatedWebApplication

2008-01-02 Thread Dan Kaplan
The wiki has a section on spring integration. You put a line in your app's init() method to accomplish this. It should be easy to find. -Original Message- From: Korbinian Bachl [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 02, 2008 1:44 PM To: users@wicket.apache.org Subject:

RE: Minor Announcement: wicket-googlecharts

2007-12-20 Thread Dan Kaplan
Wow that looks pretty cool. I'm thinking about making a website that may be able to use that. I bookmarked the article -Original Message- From: Daniel Spiewak [mailto:[EMAIL PROTECTED] Sent: Thursday, December 20, 2007 10:17 AM To: users@wicket.apache.org Subject: Minor Announcement:

RE: [AuthenticatedWebSession] Constructor called twice

2007-12-19 Thread Dan Kaplan
I see you're using eclipse. I'm using IDEA. I noticed with IDEA that when it opened the home page for me, it always hit the home page twice. Maybe Eclipse uses the same call and that's why you're seeing what you're seeing. If your IDE is the one that's starting up the homepage, you should try

WicketTester trouble resubmitting a form

2007-12-18 Thread Dan Kaplan
Hi, I'm having asserts fail when I resubmit a form with WicketTester. Here's the scenario: I go to a page with a form that has a requiredtextfield. First, I set the field to and submit it. It fails like it should. Then, in the same test, I set it to a value like blah and submit it. It fails

ListChoice gets updated BEFORE onSubmit is called

2007-12-16 Thread Dan Kaplan
Hello, I'm very new to wicket so this may be a duh situation, but here's what I'm trying to do: I have a form that shows you a ChoiceList of things. You can select one and then hit the submit button to delete that item. I've written this functionality but found that it doesn't work the way I

RE: ListChoice gets updated BEFORE onSubmit is called

2007-12-16 Thread Dan Kaplan
to get the list, because thats where the selected object comes from. What you need to do is remove the object through that list or call detach on the choice in the submit. That should also result in the list being detached/cleared. On 12/16/07, Dan Kaplan [EMAIL PROTECTED] wrote: Hello, I'm very new