Re: Configure Wicket to detect some special HTML characters?

2010-07-06 Thread David Chang
? 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 errors On Jul 6, 2010 12:16 AM, David Chang david_q_zh...@yahoo.com wrote: I dont want to save

Re: Configure Wicket to detect some special HTML characters?

2010-07-06 Thread David Chang
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 david_q_zh...@yahoo.com wrote: I dont want to save these characters

Re: Configure Wicket to detect some special HTML characters?

2010-07-06 Thread David Chang
to browser. On Tue, Jul 6, 2010 at 9:08 AM, David Chang david_q_zh...@yahoo.com wrote: In Spring framework, there is a concept called HTML escape. Does Wicket have sometihng similar? Thanks. --- On Tue, 7/6/10, Jeremy Thomerson jer...@wickettraining.com wrote: From: Jeremy

Re: Configure Wicket to detect some special HTML characters?

2010-07-06 Thread David Chang
- please excuse formatting and spelling errors On Jul 6, 2010 8:27 AM, David Chang david_q_zh...@yahoo.com wrote: Can Wicket be configured to do this html escape without requiring a programmer to manually write calls to Strings#escapeMarkup? --- On Tue, 7/6/10, Pedro Santos pedros

Re: Configure Wicket to detect some special HTML characters?

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

Configure Wicket to detect some special HTML characters?

2010-07-05 Thread David Chang
If someone enters scriptalert(1)/script 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: Configure Wicket to detect some special HTML characters?

2010-07-05 Thread David Chang
Date: Tuesday, July 6, 2010, 1:09 AM Why would you want to do that? ** Martin 2010/7/6 David Chang david_q_zh...@yahoo.com: If someone enters scriptalert(1)/script in a wicket form's text field, can Wicket be configured to detect special characters such as angle brackets

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

Re: How to clear a TextField input?

2010-07-01 Thread David Chang
to null as well. -igor On Thu, Jul 1, 2010 at 3:25 PM, David Chang david_q_zh...@yahoo.com 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: final TextField

Re: How to Ajax-validate CheckBoxMultipleChoice?

2010-06-26 Thread David Chang
CheckBoxMultipleChoice? 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 david_q_zh...@yahoo.comwrote: Hi, I am unable to addres this need and have to ask the group. I

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: div wicket:id=fullNameBorder input type=text wicket:id=fullName / /div If the above field gets focus and loses the focus without any value in it,

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 david_q_zh...@yahoo.com wrote: From: David Chang david_q_zh...@yahoo.com Subject: Suggestion about wicket's Wizard

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-16 Thread David Chang
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 david_q_zh...@yahoo.comwrote: Jeremy, glad to hear from you! My situation is a little different. The CSS class is added in the following way

Re: How to remove css class from a component?

2010-06-16 Thread David Chang
isEnabled() method of it: ...new AttributeAppender(...) {    �...@override      isEnabled() { return inputComponent.getFeedbackMessage() != null } }... Cheers, Zoltan On 06/16/2010 07:48 AM, David Chang wrote: Jeremy, glad to hear from you! My situation is a little different

Re: How to remove css class from a component?

2010-06-16 Thread David Chang
On Wed, Jun 16, 2010 at 1:05 AM, David Chang david_q_zh...@yahoo.comwrote: Use a model like it's intended? You mean I should use AbstractReadOnlyModel? protected void onBeforeRender() {     super.onBeforeRender();     inputComponent.add(new SimpleAttributeModifier(class, true, new

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 ModelString(errorField), )); How can I remove this CSS class in java code? Best! - To

Re: How to remove css class from a component?

2010-06-15 Thread David Chang
, 2010 at 12:37 AM, David Chang david_q_zh...@yahoo.comwrote: Hello, I add a CSS class to component dynamcially the following way: inputComponent.add(new AttributeAppender(class, new ModelString(errorField), )); How can I remove this CSS class in java code? Best

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 appreciated.

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 alex.objel...@gmail.com wrote: From: Alex Objelean alex.objel...@gmail.com

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 ja...@kumachan.net.nz wrote: From: Jason Lea ja...@kumachan.net.nz Subject: Re: Can I develop without recompiling/restarting after every change? To:

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 jer...@wickettraining.com wrote: From: Jeremy Thomerson jer...@wickettraining.com Subject: Re: Can I develop without recompiling/restarting after every

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

2010-05-29 Thread David Chang
@wicket.apache.org 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 david_q_zh...@yahoo.com: I am using Tomcat, any tips about how to develop out recompiling/restarting after every change

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

2010-05-29 Thread David Chang
, 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 david_q_zh...@yahoo.com: Wouter, thanks for your input! I got tomcatPlugiin installed as you sugggested and I can start it from within

Re: When is AbstractBehavior#bind not called?

2010-05-18 Thread David Chang
igor.vaynb...@gmail.com Subject: 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 david_q_zh

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

Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
* to the component. 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 david_q_zh...@yahoo.com wrote: I

Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
been added is used, thus no bind call -igor On Mon, May 17, 2010 at 6:22 AM, David Chang david_q_zh...@yahoo.com wrote: 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

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 david_q_zh...@yahoo.com wrote: From: David Chang david_q_zh...@yahoo.com Subject: Re: When is AbstractBehavior#bind not called? To: users

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 david_q_zh...@yahoo.com wrote: From: David Chang david_q_zh...@yahoo.com Subject: Re: When is AbstractBehavior#bind not called? To: users@wicket.apache.org Date: Monday, May 17, 2010, 9:33 PM

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 span), the following is okay. wicket:border span wicket:id = errorIndicator/span wicket:body/ /wicket:border But the following: wicket:border span wicket:id

Re: error in customize FormComponentFeedbackBorder

2010-05-10 Thread David Chang
:16 PM you cannot change 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 david_q_zh...@yahoo.com wrote: I am hoping to write a component customizing FormComponentFeedbackBorder. In the related HTML (please ingore

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

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

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

2010-04-12 Thread David Chang
. 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 david_q_zh...@yahoo.com wrote: From: David Chang david_q_zh...@yahoo.com Subject: How to centrally handle common exceptions from the databsae layer? To: users

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);

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

2010-04-10 Thread David Chang
Hibernate Validator with Wicket? 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 polishing and is not yet released. i

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: ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: Use Spring's LocalValidatorFactoryBean

2010-04-09 Thread David Chang
: Friday, April 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 david_q_zh...@yahoo.com wrote: I am hoping

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

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 david_q_zh

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

2010-04-05 Thread David Chang
own question twice, why does anyone else need to reply? -igor On Mon, Apr 5, 2010 at 8:01 AM, David Chang david_q_zh...@yahoo.com 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 a bad or wrong question

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

2010-04-05 Thread David Chang
on the topic? It would 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 david_q_zh...@yahoo.com: thanks

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

2010-04-05 Thread David Chang
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 Chang david_q_zh...@yahoo.com wrote: thanks for chiming in. sorry

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

2010-04-05 Thread David Chang
method. Maybe bindgen project would be closest to this.. it's already working with annotations, it could perhaps parse also annotations of property target objects. ** Martin 2010/4/5 David Chang david_q_zh...@yahoo.com: Using Hibernate Validator may bring a few good things

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

2010-04-05 Thread David Chang
easy to add trivial min/max/required validators using (any) helper method. Maybe bindgen project would be closest to this.. it's already working with annotations, it could perhaps parse also annotations of property target objects. ** Martin 2010/4/5 David Chang david_q_zh

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 david_q_zh...@yahoo.com wrote: From: David Chang david_q_zh...@yahoo.com

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!

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:- html head

Re: My first WiQuery app does not work

2010-03-30 Thread David Chang
/WiQueryWebApplication.java Hope that helped you Julien Roche On Tue, Mar 30, 2010 at 1:56 PM, David Chang david_q_zh...@yahoo.comwrote: 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

Re: My first WiQuery app does not work

2010-03-30 Thread David Chang
http://jWeekend.com On 30 March 2010 15:18, David Chang david_q_zh...@yahoo.com wrote: Julien, Thanks for your reply and it works now. Strangely, I copied the example on that page, which does not ask me to extend WiQueryWebApplication. Something wrong with that Hello World

Re: My first WiQuery app does not work

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

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

2010-03-30 Thread David Chang
)); -- Jeremy Thomerson http://www.wickettraining.com On Mon, Mar 29, 2010 at 10:32 PM, David Chang david_q_zh...@yahoo.comwrote: Well, it is not bad to tell people what you believe is right:) We are wicket programmers, aren't we? :) Feel good to say what I wanted to say

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

2010-03-30 Thread David Chang
form components, and then put 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.org

Re: My first WiQuery app does not work

2010-03-30 Thread David Chang
30, 2010 at 6:31 PM, David Chang david_q_zh...@yahoo.comwrote: In my experiment, the app does not work without extending WiQueryWebApplication. Is extending WiQueryWebApplication a must? The Hello World example does not extend WiQueryWebApplication and I copied the example code

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

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

2010-03-30 Thread David Chang
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 On Tue, Mar 30, 2010 at 12:06 PM, David Chang david_q_zh

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

2010-03-30 Thread David Chang
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 more than one time on the same page, then the panel's components

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: span id=hello wicket:id=helloworldsample text/span 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

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,

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

2010-03-29 Thread David Chang
, 7:16 PM helper method? protected T extends Component T setMarkupId(T component, String markupId) {   component.setMarkupId(markupId);   return component; } On Mon, Mar 29, 2010 at 7:00 PM, David Chang david_q_zh...@yahoo.comwrote: Here is what I am using the follow pattern to set

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

2010-03-29 Thread David Chang
earlier. On Mon, Mar 29, 2010 at 9:03 PM, David Chang david_q_zh...@yahoo.comwrote: 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: Component

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

2010-03-29 Thread David Chang
: 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 9:13 PM, David Chang david_q_zh...@yahoo.comwrote: Using an external helper

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

2010-03-29 Thread David Chang
jcar...@carmanconsulting.com 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, I'm sure they'll let you know. :) On Mon, Mar 29, 2010 at 9:13 PM, David Chang david_q_zh

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:

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

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 put a validation error message near its field?

2010-03-27 Thread David Chang
@wicket.apache.org Date: Saturday, March 27, 2010, 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 david_q_zh...@yahoo.comwrote: FeedbackPanel is great in in terms of gathering messages

How to provide a value to a message's argument

2010-03-24 Thread David Chang
HTML: span wicket:id=x[sample text]/span Java: add(new Label(x, new ResourceModel(x))); Resource file: entry key=xHello ${label} !/entry 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!

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

2010-03-24 Thread David Chang
see StringResourceModel -igor On Wed, Mar 24, 2010 at 8:42 PM, David Chang david_q_zh...@yahoo.com wrote: HTML: span wicket:id=x[sample text]/span Java: add(new Label(x, new ResourceModel(x))); Resource file: entry key=xHello ${label} !/entry In the above Java, I

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

Re: Reload a page and component repaint

2010-03-23 Thread David Chang
repaint To: users@wicket.apache.org Date: Tuesday, March 23, 2010, 10:24 PM On Tue, Mar 23, 2010 at 7:13 PM, David Chang david_q_zh...@yahoo.com 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 moment

Re: Ajax has too much control?

2010-03-22 Thread David Chang
not ;). A quickstart would help me to understand your problem better, but perhaps others have already a clue? Sven David Chang wrote: Sven, Thanks for your input. It seems that you do not understand the problem I have (Wicket problem??? or my page problem???). I know how

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

Re: Reasons against using Acegi with Wicket?

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

Re: Ajax has too much control?

2010-03-22 Thread David Chang
? To: users@wicket.apache.org Date: Monday, March 22, 2010, 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 david_q_zh...@yahoo.com: Hello Martin, Thanks for your

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. This is not very efficient though. Sven David Chang

two LDM DropDownChoice behave differently ?

2010-03-20 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

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

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 igor.vaynb...@gmail.com wrote: From: Igor Vaynberg igor.vaynb...@gmail.com Subject: Re: Dynamic Image (aka Barcode) based on user input not

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 david_q_zh...@yahoo.com wrote: From: David Chang david_q_zh...@yahoo.com Subject: JCaptcha sound with Wicket? To: users@wicket.apache.org Date: Thursday, March 18, 2010, 11:31 PM Based

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 the

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: div wicket:id=feedbackHolder / 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

Re: Select the Choose one of a required DropDownChoice

2010-03-18 Thread David Chang
: Matthias Keller matthias.kel...@ergon.ch 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:26, David Chang wrote: Hi, I

Re: Select the Choose one of a required DropDownChoice

2010-03-18 Thread David Chang
  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.setRequired() is the reason to generate the message and not get onUpdate called. Thanks

Re: Select the Choose one of a required DropDownChoice

2010-03-18 Thread David Chang
setNullValid 2010/3/18 David Chang david_q_zh...@yahoo.com: In my case, the field is required. I make it required by setRequired(true), but I want the blank/choose one is still there. Doable? --- On Thu, 3/18/10, Matthias Keller matthias.kel...@ergon.ch wrote: From: Matthias Keller

Re: Select the Choose one of a required DropDownChoice

2010-03-18 Thread David Chang
martin.maku...@koodaripalvelut.com wrote: From: Martin Makundi martin.maku...@koodaripalvelut.com Subject: Re: Select the Choose one of a required DropDownChoice To: users@wicket.apache.org Date: Thursday, March 18, 2010, 11:50 AM Code? 2010/3/18 David Chang david_q_zh...@yahoo.com

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

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

RE: Replace Choose one from DropDownChoice?

2010-03-17 Thread David Chang
, 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 Choose one from DropDownChoice? Hello, I understand that there must be a solution for this. I googled for some

Re: Replace Choose one from DropDownChoice?

2010-03-17 Thread David Chang
their 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 requirements, I hope to have it there no matter whether a value is selected

Re: SV: Replace Choose one from DropDownChoice?

2010-03-17 Thread David Chang
to be , then say null= (without the quotes) Otherwise if you don't want null selection, you say component.setNullValid(false); and you're fine Best, Martin -Original Message- From: David Chang [mailto:david_q_zh...@yahoo.com] Sent: Wednesday, March 17, 2010 3:48 PM

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...@yahoo.com] Sent: Wednesday, March 17, 2010 4:31 PM To: users

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

2010-03-16 Thread David Chang
://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook On 16 March 2010 02:05, David Chang david_q_zh...@yahoo.com 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

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

2010-03-16 Thread David Chang
/ [5] http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook On 16 March 2010 02:05, David Chang david_q_zh...@yahoo.com wrote: Can anybody recommend to me two good complete clean sample or open source Wicket + Spring + Hibernate applications? One of the effective ways I

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

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

2010-03-15 Thread David Chang
, 10:09 PM You can try my demo application 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 david_q_zh...@yahoo.com wrote: Can anybody recommend to me two good complete clean sample

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

2010-03-15 Thread David Chang
-advanced/trunk On Mon, Mar 15, 2010 at 10:05 PM, David Chang david_q_zh...@yahoo.com 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 examples. I would

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

2010-03-15 Thread David Chang
, March 15, 2010, 11:02 PM On Mon, Mar 15, 2010 at 10:57 PM, David Chang david_q_zh...@yahoo.com 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

How to dynamtically generate an image via an Ajax link?

2010-03-12 Thread David Chang
Hello, I am playing with JCaptcha. My JCaptcha is working (thanks to WIA book). I also have an Ajax link for a visitor to change the displayed image if he wishes. I am new in Wicket and I am trying to follow the idea of defining a model for a Wicket image component. However, based on my

  1   2   >