Re: Configure Wicket to detect some special HTML characters?

2010-07-06 Thread David Chang
ng to > disable this because doing so opens > a bunch of security holes. > > -igor > > On Tue, Jul 6, 2010 at 6:30 PM, David Chang > wrote: > > > > Jeremy, thanks for the advice, which is indeed > correct. I tried it and it the default behavior for labels.

Re: Configure Wicket to detect some special HTML characters?

2010-07-06 Thread David Chang
ase excuse formatting and > spelling errors > > On Jul 6, 2010 8:27 AM, "David Chang" > wrote: > > Can Wicket be configured to do this html escape without > requiring a > programmer to manually write calls to > Strings#escapeMarkup? > > > --- On

Re: Configure Wicket to detect some special HTML characters?

2010-07-06 Thread David Chang
returned to browser. > > On Tue, Jul 6, 2010 at 9:08 AM, David Chang > wrote: > > > In Spring framework, there is a concept called "HTML > escape". Does Wicket > > have sometihng similar? > > > > Thanks. > > > > > > --- On Tue, 7/6/

Re: Configure Wicket to detect some special HTML characters?

2010-07-06 Thread David Chang
aracters? > >> To: users@wicket.apache.org > >> Date: Tuesday, July 6, 2010, 1:23 AM > >> Create a custom converter. > >> > >> Jeremy Thomerson > >> -- sent from my smartphone - please excuse > formatting and > >> spelling error

Re: Configure Wicket to detect some special HTML characters?

2010-07-06 Thread David Chang
t.apache.org > Date: Tuesday, July 6, 2010, 1:23 AM > Create a custom converter. > > Jeremy Thomerson > -- sent from my smartphone - please excuse formatting and > spelling errors > > On Jul 6, 2010 12:16 AM, "David Chang" > wrote: > > I dont want to save

Re: Configure Wicket to detect some special HTML characters?

2010-07-05 Thread David Chang
you want to do that? > > ** > Martin > > 2010/7/6 David Chang : > > If someone enters > > > > alert(1) > > > > in a wicket form's text field, > > > > can Wicket be configured to detect special characters > such as angle brackets and t

Configure Wicket to detect some special HTML characters?

2010-07-05 Thread David Chang
If someone enters alert(1) in a wicket form's text field, can Wicket be configured to detect special characters such as angle brackets and translate them into HTML entities before sending user input to database? If yes, any pointers? Best, David

Re: How to clear a TextField input?

2010-07-01 Thread David Chang
> -igor > > On Thu, Jul 1, 2010 at 3:25 PM, David Chang > wrote: > > I have a form where it has two elements: AjaxCheckbox > and TextField. When the checkbox is un-checked, the > TextField in browser should look blank. Here is the code I > have: > > > >

How to clear a TextField input?

2010-07-01 Thread David Chang
I have a form where it has two elements: AjaxCheckbox and TextField. When the checkbox is un-checked, the TextField in browser should look blank. Here is the code I have: final TextField input = new TextField("myinput") { void onBeforeRender() { super.onBeforeRender(); if ("certain way to get mo

Re: How to Ajax-validate CheckBoxMultipleChoice?

2010-06-26 Thread David Chang
ice? > To: users@wicket.apache.org > Cc: wic...@indeterminate.org > Date: Saturday, June 26, 2010, 8:47 AM > Is that element placed / added to a > form ? > > On Sat, Jun 26, 2010 at 5:32 AM, David Chang wrote: > > > Hi, I am unable to addres this need and have to ask > t

How to Ajax-validate CheckBoxMultipleChoice?

2010-06-25 Thread David Chang
Hi, I am unable to addres this need and have to ask the group. I am using the ajax approach to validate each field on a form. See the following: If the above field gets focus and loses the focus without any value in it, there will be a red box around the input field. If it gets a value and

Re: Suggestion about wicket's Wizard

2010-06-19 Thread David Chang
Did not hear any feedback. Just curious about whether I explained clearly or about what others may think about my suggestions. Regards. --- On Fri, 6/18/10, David Chang wrote: > From: David Chang > Subject: Suggestion about wicket's Wizard > To: users@wicket.apache.org > D

Suggestion about wicket's Wizard

2010-06-18 Thread David Chang
I have been playing wicket's Wizard (1.4.9) and feel it is quite helpful but lacking in some ways. Here is what I suggest: 1. Add a method (called size or something else) to WizardModel to provide the number of wizard steps it contains. 2. Add a method to Wizard or WizardModel to provide the

Re: How to remove css class from a component?

2010-06-15 Thread David Chang
Thanks for the explanation! All the best. --- On Wed, 6/16/10, Jeremy Thomerson wrote: > From: Jeremy Thomerson > Subject: Re: How to remove css class from a component? > To: users@wicket.apache.org > Date: Wednesday, June 16, 2010, 2:10 AM > On Wed, Jun 16, 2010 at 1:05 AM

Re: How to remove css class from a component?

2010-06-15 Thread David Chang
e AttributeAppender as needed by > overriding > isEnabled() method of it: > ...new AttributeAppender(...) { >    �...@override >      isEnabled() { return > inputComponent.getFeedbackMessage() != null } > }... > > > Cheers, > Zoltan > > > On 06/16/2

Re: How to remove css class from a component?

2010-06-15 Thread David Chang
How to remove css class from a component? > To: users@wicket.apache.org > Date: Wednesday, June 16, 2010, 1:52 AM > On Wed, Jun 16, 2010 at 12:48 AM, > David Chang wrote: > > > Jeremy, glad to hear from you! > > > > My situation is a little different. The CSS class is >

Re: How to remove css class from a component?

2010-06-15 Thread David Chang
16/10, Jeremy Thomerson wrote: > From: Jeremy Thomerson > Subject: Re: How to remove css class from a component? > To: users@wicket.apache.org > Cc: "John Krasnay" > Date: Wednesday, June 16, 2010, 1:40 AM > onComponentTag(...) { > tag.remove("class"); >

How to remove css class from a component?

2010-06-15 Thread David Chang
Hello, I add a CSS class to component dynamcially the following way: inputComponent.add(new AttributeAppender("class", new Model("errorField"), " ")); How can I remove this CSS class in java code? Best! - To unsubscr

How to do a multiple page form?

2010-06-04 Thread David Chang
Hi, I would like to do a multiple page form. For example, I have a two-page form. Both pages have a few fields that need validation. The first page has a button called "Next" and the second page has a "Previous" button and a "Submit" button. Any pointers or how-to info will be greatly appreciat

Re: Can I develop without recompiling/restarting after every change?

2010-05-30 Thread David Chang
This is really a great discussion thread and turned up lot of good stuff. Love this forum! Cheers! --- On Sun, 5/30/10, Jason Lea wrote: > From: Jason Lea > Subject: Re: Can I develop without recompiling/restarting after every change? > To: users@wicket.apache.org > Date: Sunday, May 30, 2010

Re: Can I develop without recompiling/restarting after every change?

2010-05-30 Thread David Chang
Alex, > 1) Run-jetty-run plugin: http://code.google.com/p/run-jetty-run/ You are right. I googled it out yesterday and tested it. It works perfect. Thanks for chiming! Best, David --- On Sun, 5/30/10, Alex Objelean wrote: > From: Alex Objelean > Subject: Re: Can I develop without recompil

Re: Can I develop without recompiling/restarting after every change?

2010-05-29 Thread David Chang
you might need restarts, but eclipse will > prompt > when necessary. When you use a tool like JRebel these > restarts are let > frequently needed. > > Wouter > > 2010/5/29 David Chang : > > Wouter, thanks for your input! > > > > I got tomcatPlugiin installed

Re: Can I develop without recompiling/restarting after every change?

2010-05-29 Thread David Chang
rg > Date: Saturday, May 29, 2010, 9:52 AM > If you're using eclipse, use sysdeo: > > http://www.eclipsetotale.com/tomcatPlugin.html > > Wouter > > 2010/5/29 David Chang : > > I am using Tomcat, any tips about how to develop out > recompiling/restarting afte

Re: Can I develop without recompiling/restarting after every change?

2010-05-29 Thread David Chang
I am using Tomcat, any tips about how to develop out recompiling/restarting after every change? Best. --- On Fri, 5/21/10, Jeremy Thomerson wrote: > From: Jeremy Thomerson > Subject: Re: Can I develop without recompiling/restarting after every change? > To: users@wicket.apache.org > Date: Fri

Re: When is AbstractBehavior#bind not called?

2010-05-18 Thread David Chang
Re: When is AbstractBehavior#bind not called? > To: users@wicket.apache.org > Date: Monday, May 17, 2010, 10:26 PM > behaviors have onbeforerender which > will be called no matter what kind > of link is used. > > -igor > > On Mon, May 17, 2010 at 6:30 PM, David Chang > wrote

Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
Or can I trigger the bind method of the first component? Regards. --- On Mon, 5/17/10, David Chang wrote: > From: David Chang > Subject: Re: When is AbstractBehavior#bind not called? > To: users@wicket.apache.org > Date: Monday, May 17, 2010, 9:33 PM > One more thing regar

Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
One more thing regarding suggestion: The link on the second component points to a secured page (that needs login). --- On Mon, 5/17/10, David Chang wrote: > From: David Chang > Subject: Re: When is AbstractBehavior#bind not called? > To: users@wicket.apache.org > Date: Monday, May

Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
s already been added is used, thus no bind > call > > -igor > > On Mon, May 17, 2010 at 6:22 AM, David Chang > wrote: > > I have a top page which has two panel-based > components. > > > > Component 1 implements AbstractBehavior's bind > method. >

Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
; link 2 is not a bookmarkable link, it doesnt recreate the > page > instance so the behavior is not added because a page > instance where > the behavior has already been added is used, thus no bind > call > > -igor > > On Mon, May 17, 2010 at 6:22 AM, David Chang

When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
I have a top page which has two panel-based components. Component 1 implements AbstractBehavior's bind method. Component 2 has a wicket Link pointing to a child page. When I am at the top page, refresh always gets #bind called. When I click the Link in Component 2, the bind method in Compone

Is there any out-of-box form validator for checkbox input?

2010-05-10 Thread David Chang
I am curious about this. I am playing wicket based on the book WIA. I am unable to find an out-of-box form validator for checkbox input. I know I can write one. But just wanted to ask folks here to confirm. Regards, David

Re: error in customize FormComponentFeedbackBorder

2010-05-10 Thread David Chang
the nesting of > components, it has to be in sync with java code > > -igor > > On Mon, May 10, 2010 at 2:42 PM, David Chang > wrote: > > I am hoping to write a component customizing > FormComponentFeedbackBorder. > > > > In the related HTML (please i

error in customize FormComponentFeedbackBorder

2010-05-10 Thread David Chang
I am hoping to write a component customizing FormComponentFeedbackBorder. In the related HTML (please ingore the blank content for ), the following is okay. But the following: always produces runtime error saying WicketMessage: Expected close tag for The component (wi

how to build two-state (edit/view) form and form components?

2010-04-27 Thread David Chang
I would like to have a form in which each component (such as input, textarea) has two states. Clicking on a form component's label or something else switches the component between edit (shown as usual input, textarea, etc) or view (normal html display) modes. Finally when a user is okay with eve

Re: How to centrally handle common exceptions from the databsae layer?

2010-04-12 Thread David Chang
helps. I really would like to hear from folks here about how to do the right thing. Best, David --- On Sun, 4/11/10, David Chang wrote: > From: David Chang > Subject: How to centrally handle common exceptions from the databsae layer? > To: users@wicket.apache.org > Date: Sunday, A

How to centrally handle common exceptions from the databsae layer?

2010-04-11 Thread David Chang
I am hoping to understand how to write a good wicket app regarding handling exceptions from the databsae layer? For a wickt form, I can have the following to handle user submission: @Override protected void onSubmit() { User u = getModelObject(); userDao.saveUser(u); setResponsePage(Resul

Re: Any "mature" work on integrating Hibernate Validator with Wicket?

2010-04-10 Thread David Chang
ket? > To: users@wicket.apache.org > Date: Monday, April 5, 2010, 11:08 AM > David Chang schrieb: > > > Any comment or pointers regarding relatively "mature" > work in this regard? > > we did something that does not need spring, though it need > some pol

Re: Use Spring's LocalValidatorFactoryBean

2010-04-09 Thread David Chang
9, 2010, 12:54 PM > Just a quick check, in case you are > using @SpringBean outside of a Wicket > component, you have to inject it manually > using: InjectorHolder.getInjector().inject(this); > > On Fri, Apr 9, 2010 at 5:32 PM, David Chang > wrote: > > > I am hoping

Use Spring's LocalValidatorFactoryBean

2010-04-09 Thread David Chang
I am hoping to use Spring's LocalValidatorFactoryBean and define it in a Spring context file as follows: http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:tx="http://www.springframework.org/schema/tx"; xmlns:util="http://www.springframewor

Re: Properties of model are set to NULL even though we have setRequired set to true

2010-04-06 Thread David Chang
Hello Wayne, I understand your frustration. Recently, I got a similar case but it eventually turned out that it was my fault due to being new in Wicket. Long story short, for a dropdownchoice list with loadabledetachablemodel, I set up a load method, but in another place, I used dropdownchoice#

Re: Any "mature" work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread David Chang
; > > On Mon, Apr 5, 2010 at 12:15 PM, Martin Makundi < > > martin.maku...@koodaripalvelut.com> > wrote: > > > > > Hi! > > > > > > It's quite easy to add trivial min/max/required > validators using (any) > > > helper method. May

Re: Any "mature" work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread David Chang
:15 PM, Martin Makundi < > martin.maku...@koodaripalvelut.com> > wrote: > > > Hi! > > > > It's quite easy to add trivial min/max/required > validators using (any) > > helper method. Maybe bindgen project would be closest > to this.. it'

Re: Any "mature" work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread David Chang
in wicketstuff that would make it more "mature"? > > there is not much to integrating the validators with wicket > so each > project probably built out their own way to do it that > suits that > project. > > -igor > > On Mon, Apr 5, 2010 at 8:27 AM, David Chan

Re: Any "mature" work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread David Chang
be useful to > evaluate how interesting the use case is. Me myself I > cannot immagine > anything "useful" could come out of hibernate validators, > only > something very trivial. Could be wrong, thoug. > > ** > Martin > > 2010/4/5 David Chang : > > > >

Re: Any "mature" work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread David Chang
n question > twice, why does anyone else need to reply? > > -igor > > On Mon, Apr 5, 2010 at 8:01 AM, David Chang > wrote: > > > > Hi folks, I feel a bit puzzled about not getting any > response on this topic. I have to say that I am new in > Wicket. If this

Re: Any "mature" work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread David Chang
Hi folks, I feel a bit puzzled about not getting any response on this topic. I have to say that I am new in Wicket. If this a bad or wrong question or if this is something not worthy to explore, please feel free to let me know. Thanks for any input! --- On Sun, 4/4/10, David Chang wrote

Re: Any "mature" work on integrating Hibernate Validator with Wicket?

2010-04-04 Thread David Chang
Found another related work. http://42lines.net/content/integrating-hibernate-validator-and-wicket Any comment or pointers regarding relatively "mature" work in this regard? Regards. --- On Sat, 4/3/10, David Chang wrote: > From: David Chang > Subject: Any "mature

Any "mature" work on integrating Hibernate Validator with Wicket?

2010-04-03 Thread David Chang
Is there any "mature" work on integrating Hibernate Validator with Wicket? I am unable to find any at wicketstuff. Googled and found this work is interesting. http://carinae.net/tag/hibernate-validator/ Any pointers? Any comment? Thanks and Happy Easter! ---

Can I prevent Wicket from overwriting my markup IDs?

2010-03-30 Thread David Chang
I am new in wicket. Just wanted to verify my understanding is right or not. If I have the following HTML: sample text> Does Wicket (as of version 1.4.7) always overwrite my markup ID? If not, what is the way of stoping Wicket doing that (i.e., keep my original markup id)? Thanks. -

Re: better way setting up ID for a Wicket component?

2010-03-30 Thread David Chang
irement for particular IDs, then you take on the > responsibility for making sure your IDs are unique > yourself.  In this light, a setMarkupIdToWicketId() > method is a dangerous thing. > > Bng > > David Chang wrote: > > Craig, I really appreciate your input. If a panel is > reused

Re: better way setting up ID for a Wicket component?

2010-03-30 Thread David Chang
cket defaults to the > safest practice of generating an ID for you.  I > typically > avoid programmatically setting the markup ID for this very > reason.  There's > (almost) always a way around it. > > -- > Jeremy Thomerson > http://www.wickettraining.com >

About WiQueryWebApplication

2010-03-30 Thread David Chang
IMHO, I am not quite sure this class (another indirection) is really necessary. All this class does is having a member variable: private WiQueryInstantiationListener wiqueryPluginInstantiationListener; and insert the following two lines into init(). wiqueryPluginInstantiationListener = new WiQu

Re: My first WiQuery app does not work

2010-03-30 Thread David Chang
gt; > > On Tue, Mar 30, 2010 at 6:31 PM, David Chang wrote: > > > In my experiment, the app does not work without > extending > > WiQueryWebApplication. > > > > Is extending WiQueryWebApplication a must? The Hello > World example does not > > extend WiQuer

Re: better way setting up ID for a Wicket component?

2010-03-30 Thread David Chang
2 of those panels on the same > page, then your approach would break things like > document.getElementId(...) because there would be more than > 1 element w/ same ID. > > Craig > >   _  > > From: David Chang [mailto:david_q_zh...@yahoo.com] > To: users@wicket.apache

Re: better way setting up ID for a Wicket component?

2010-03-30 Thread David Chang
bc", > "abcdef").setOutputMarkupId(true).setMarkupId("foo")); > > > > -- > > Jeremy Thomerson > > http://www.wickettraining.com > > > > > > > > On Mon, Mar 29, 2010 at 10:32 PM, David Chang > > wrote: > > > &g

Re: My first WiQuery app does not work

2010-03-30 Thread David Chang
> Regards - Cemal > jWeekend > OO & Java Technologies, Wicket > Consulting, Development, Training > http://jWeekend.com > > > On 30 March 2010 15:18, David Chang > wrote: > > Julien, > > > > Thanks for your reply and it works now. Strangely, I &

Re: My first WiQuery app does not work

2010-03-30 Thread David Chang
lication. > > > > Regards - Cemal > > jWeekend > > OO & Java Technologies, Wicket > > Consulting, Development, Training > > http://jWeekend.com > > > > > > On 30 March 2010 15:18, David Chang > wrote: > > > Julien, > > > >

Re: My first WiQuery app does not work

2010-03-30 Thread David Chang
/utils/WiQueryWebApplication.java > > Hope that helped you > > Julien Roche > > > On Tue, Mar 30, 2010 at 1:56 PM, David Chang wrote: > > > Here is what I have: JDK 1.6, Wicket 1.4.7, WiQuery > 1.0, Tomcat 6.0.24 > > > > I downloaded wiquery an

My first WiQuery app does not work

2010-03-30 Thread David Chang
Here is what I have: JDK 1.6, Wicket 1.4.7, WiQuery 1.0, Tomcat 6.0.24 I downloaded wiquery and put its jar on the classpath. I copied the Hello World sample from http://code.google.com/p/wiquery/wiki/QuickStart Here is my code: HTML:- WiQuery Quicks

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread David Chang
gt; On Mon, Mar 29, 2010 at 6:18 PM, James Carman > > > wrote: > > > Perhaps.  File a JIRA report ( > > https://issues.apache.org/jira/browse/WICKET) > > > and ask for it as a "New Feature."  If the > core developers don't like the > > > idea,

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread David Chang
t; > Perhaps.  File a JIRA report (https://issues.apache.org/jira/browse/WICKET) > > and ask for it as a "New Feature."  If the core > developers don't like the > > idea, I'm sure they'll let you know. :) > > > > > > On Mon, Mar 29, 2010 at

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread David Chang
n Mon, Mar 29, 2010 at 9:03 PM, David Chang wrote: > > > Not sure whether the help method will do the trick of > one-liner code. > > > > I feel that it would be much nice if Wicket could have > the following > > additional method for a Componment: > > > >

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread David Chang
t; > protected T setMarkupId(T > component, String markupId) > { >   component.setMarkupId(markupId); >   return component; > } > > > On Mon, Mar 29, 2010 at 7:00 PM, David Chang wrote: > > > Here is what I am using the follow pattern to set up > ID for a

better way setting up ID for a Wicket component?

2010-03-29 Thread David Chang
Here is what I am using the follow pattern to set up ID for a wicket component: Label abc = new Label("abcd", "abcdedfg"); abc.setOutputMarkupId(true).setMarkupId(abc.getId()); It takes two lines to do this. Can I do something like Label abc = new Label("abcd", "abcdedfg").setOutputMarkupId(t

Prevent messages from being displayed in FeedbackPanel if displayed in ComponentFeedbackPanel

2010-03-28 Thread David Chang
I have a page which has a FeedbackPanel for collecting and displaying messages. On this page there is also a form. I use ComponentFeedbackPanel to display any validation error messages for fields. When a validation error happens, it ends up being displayed in both FeedbackPanel and ComponentFee

How to customize FormComponentFeedbackBorder's error indicator

2010-03-28 Thread David Chang
I would like to replace the default indicator asterisk with an image. How can I do it? What is the most elegant way? Thanks for any info or pointer. All the best, David - To unsubscribe, e-mail: users-unsubscr...@wicke

Re: How to put a validation error message near its field?

2010-03-27 Thread David Chang
10, 10:19 PM > http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/panel/ComponentFeedbackPanel.html > > On Sat, Mar 27, 2010 at 10:11 PM, David Chang wrote: > > > FeedbackPanel is great in in terms of gathering > messages in a central > > place. But I saw many

How to put a validation error message near its field?

2010-03-27 Thread David Chang
FeedbackPanel is great in in terms of gathering messages in a central place. But I saw many great sites have messages near their fields. How can we do this in Wicket? Thank in advance for any info or pointer! Regards. -

Re: How to provide a value to a message's argument

2010-03-24 Thread David Chang
l > > -igor > > On Wed, Mar 24, 2010 at 8:42 PM, David Chang > wrote: > > > > HTML: > > > > [sample text] > > > > Java: > > > > add(new Label("x", new ResourceModel("x"))); > > > > Resource file:

How to provide a value to a message's argument

2010-03-24 Thread David Chang
HTML: [sample text] Java: add(new Label("x", new ResourceModel("x"))); Resource file: Hello ${label} ! In the above Java, I cannot find a way to provide a value to the argument of the string. I want the program to display Hello David! Hello Carmen! Regards. ---

Re: Reload a page and component repaint

2010-03-23 Thread David Chang
e.org > Date: Tuesday, March 23, 2010, 10:24 PM > On Tue, Mar 23, 2010 at 7:13 PM, > David Chang > wrote: > > I am new in Wicket and so please bear with me if this > question is obvious. > > > > Suppose I am viewing a Wicket page in FF. At the > mome

Reload a page and component repaint

2010-03-23 Thread David Chang
I am new in Wicket and so please bear with me if this question is obvious. Suppose I am viewing a Wicket page in FF. At the moment, the link is: http://localhost:8080/f/?wicket:interface=:12 If I click the Reload button of FF, isn't Wicket supposed to call EACH component to repaint itself b

Re: Ajax has too much control?

2010-03-22 Thread David Chang
10, 10:52 AM > Hi! > > If you redraw something, you need to submit the form > values, otherwise > the redrawn state is different... if that's your case. > > ** > Martin > > 2010/3/22 David Chang : > > > > Hello Martin, > > > > Thanks for yo

Re: Reasons against using Acegi with Wicket?

2010-03-22 Thread David Chang
e ground quickly > if you want to go with Spring Security. > > James > > On Mon, Mar 22, 2010 at 8:15 AM, David Chang > wrote: > > > > Hello, I am learning Wicekt via the book WIA and I > understand that Wicket has its own way (interfaces, > components, sub-pro

Reasons against using Acegi with Wicket?

2010-03-22 Thread David Chang
Hello, I am learning Wicekt via the book WIA and I understand that Wicket has its own way (interfaces, components, sub-projects) of handling web security. I am thinking about using Acegi with Wicket. The reason is that I am familiar with Acegi, but I hope I am not going to do the wrong thing wi

Re: Ajax has too much control?

2010-03-22 Thread David Chang
>   /** >    * @param id >    * @param model >    * @param choices >    */ >   public > AjaxFormSubmittingChangeListenerDropDownChoice(String id, > IModel model, >       List choices) { >     super(id, model, choices); >   } > >   /** >    * @param id &

Re: Ajax has too much control?

2010-03-21 Thread David Chang
of the complete page. > On Ajax request only those components are rendered you > explicitely 'add' > to the request, see AjaxRequestTarget#addComponent(). > > If you want to have the same for Ajax requests, you can > just 'add' the > complete page. >

Ajax has too much control?

2010-03-20 Thread David Chang
Forgive me about this meaningless subject, but I cannot think of a better one. I have been learning Wicket through the WIA book. I just found out something interesting to me. Not sure it is a bug, design, or something I did wrong. I have a page with three Wicket elements: 1. Locale selector th

two LDM DropDownChoice behave differently ?

2010-03-19 Thread David Chang
Hello, I am playing Wicket now and came across this "strange" behavior. I have a page with two LDM-based DropDownChoice (Country and State). The Country DDC ajax-controls the State DDC. The Ajax works well. Here is something I dont understand. When the page is diplayed first time, both LDM#l

Re: JCaptcha sound with Wicket?

2010-03-19 Thread David Chang
Anybody ever got this working? Thanks for any info or ponter. Regards. --- On Thu, 3/18/10, David Chang wrote: > From: David Chang > Subject: JCaptcha sound with Wicket? > To: users@wicket.apache.org > Date: Thursday, March 18, 2010, 11:31 PM > Based on the WIA book, I am a

Re: Dynamic Image (aka Barcode) based on user input not refreshed via Ajax

2010-03-19 Thread David Chang
Exactly. That is what eventually I found out after quite some time fruitless research and test in other areas. --- On Fri, 3/19/10, Igor Vaynberg wrote: > From: Igor Vaynberg > Subject: Re: Dynamic Image (aka Barcode) based on user input not refreshed > via Ajax > To: users@wicket.apache.org

JCaptcha sound with Wicket?

2010-03-18 Thread David Chang
Based on the WIA book, I am able to have a working example of JCaptcha image. I am hoping to get JCaptcha sound working too. I tried different ways, but unable to get it working. Did anyone get JCaptcha sound working with Wicket? Could you please share your config and code? Thanks for any inpu

Re: Select the "Choose one" of a required DropDownChoice

2010-03-18 Thread David Chang
return true;//anyMessage(); } }.setOutputMarkupId(true)); --- On Thu, 3/18/10, Martin Makundi wrote: > From: Martin Makundi > Subject: Re: Select the "Choose one" of a required DropDownChoice > To: users@wicket.apache.org > Date: Thursday, March 18

Re: Select the "Choose one" of a required DropDownChoice

2010-03-18 Thread David Chang
uot; and set another dropdown list blank. Regards. --- On Thu, 3/18/10, Martin Makundi wrote: > From: Martin Makundi > Subject: Re: Select the "Choose one" of a required DropDownChoice > To: users@wicket.apache.org > Date: Thursday, March 18, 2010, 10:58 AM > setNullValid >

Re: Select the "Choose one" of a required DropDownChoice

2010-03-18 Thread David Chang
s, try  > setRequired(false) ... > > Matt > > On 2010-03-18 14:36, David Chang wrote: > > Matt, I already did that. > > > > DropDownChoice.setNullValid() makes "Choose one" > always stay there. > > I notice that DropDownChoice.se

Re: Select the "Choose one" of a required DropDownChoice

2010-03-18 Thread David Chang
er > Subject: Re: Select the "Choose one" of a required DropDownChoice > To: users@wicket.apache.org > Date: Thursday, March 18, 2010, 9:30 AM > Hi > > Have a look at DropDownChoice.setNullValid() and > .setRequired() > > Matt > > On 2010-03-18 14:

Make FeedbackPanel occupy zero space when having no messages?

2010-03-18 Thread David Chang
Hello, I am playing with FeedbackPanel. I put it in a page like this: I notice that when having no messages, it always take up some space. How can I make FeedbackPanel occupy zero space when having no messages? Wicket way? or CSS? Any help is really appreciated. Regards.

Select the "Choose one" of a required DropDownChoice

2010-03-18 Thread David Chang
Hi, I am new in Wicket and am playing with different components. I have a two dropdown lists. One is a list of countries, required field, controlling another list of states/provinces via AjaxFormComponentUpdatingBehavior. The country list always has a blank (equivalent of "Choose one") as th

RE: Replace "Choose one" from DropDownChoice?

2010-03-17 Thread David Chang
; You want a dropdownchoice with null selection, which is " > "? > > 2) > You don't want a null selection to be there at all, but > show the first element. > > Best, > Martin > > -Original Message- > From: David Chang [mailto:david_q_zh...@

Re: SV: Replace "Choose one" from DropDownChoice?

2010-03-17 Thread David Chang
rom DropDownChoice? > > > > I don't understand , Chang... > > > > If you want non selection to be " ", then say > > > > null=" " (without the quotes) > > > > Otherwise if you don't want null selection, you say > > comp

Re: Replace "Choose one" from DropDownChoice?

2010-03-17 Thread David Chang
choice. > > > On Mar 17, 2010, at 8:47 AM, David Chang wrote: > > > Martin, > > > > Thanks so much for chiming in. I tried the > > > > null= > > > > approach. The blank line in the dropdown list simply > disappears. As I said in my req

RE: Replace "Choose one" from DropDownChoice?

2010-03-17 Thread David Chang
rget to include the props files in the pom as > a resource. > > Best, > Martin > > -Original Message- > From: David Chang [mailto:david_q_zh...@yahoo.com] > > Sent: Wednesday, March 17, 2010 3:03 PM > To: users@wicket.apache.org > Subject: Replace "Choo

Replace "Choose one" from DropDownChoice?

2010-03-17 Thread David Chang
Hello, I understand that there must be a solution for this. I googled for some time and found one or two results that seem to match what I am looking but they did not answer my question. Tried myself, not successful. So I want to ask folks here. I have a form and it has a dropdown list. Here ar

Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-16 Thread David Chang
http://www.manning.com/dashorst/ > [5] http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook > > > On 16 March 2010 02:05, David Chang > wrote: > > > > Can anybody recommend to me two good complete clean > sample or open source Wicket + Spring + Hibernate

Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-16 Thread David Chang
orst/ > [5] http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook > > > On 16 March 2010 02:05, David Chang > wrote: > > > > Can anybody recommend to me two good complete clean > sample or open source Wicket + Spring + Hibernate > applications? >

Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-15 Thread David Chang
Mar 15, 2010 at 10:57 PM, > David Chang > wrote: > > James, > > > > I just downloaded your application. Do you have any > documentation/presentation about this application? > > I didn't really have a slide presentation for this > talk.  I basically > jus

Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-15 Thread David Chang
> On Mon, Mar 15, 2010 at 10:05 PM, David Chang > wrote: > > > > Can anybody recommend to me two good complete clean > sample or open source Wicket + Spring + Hibernate > applications? > > > > One of the effective ways I learn is by learning from > good

Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-15 Thread David Chang
cation I > used for my Advanced Wicket presentation: > > http://svn.carmanconsulting.com/public/wicket-advanced/trunk > > > > On Mon, Mar 15, 2010 at 10:05 PM, David Chang > wrote: > > > > Can anybody recommend to me two good complete clean > sample or

Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-15 Thread David Chang
Can anybody recommend to me two good complete clean sample or open source Wicket + Spring + Hibernate applications? One of the effective ways I learn is by learning from good examples. I would be very much grateful for any info. Hopefully, the sample or open source applications are not too big

Design of Locale-aware dropdown list?

2010-03-12 Thread David Chang
This question may be beyond Wicket’s scope but I would like to ask folks here. I am impressed by their creativity, capability, and passion. I need to display a dropdown list which is in English or Korean. The options of the dropdown list MUST be stored in database. It switches between English an

  1   2   >