configuring wicket:id from Java code in TITLE in a page

2008-07-01 Thread Rakesh Sinha
I am trying to have the title of a given page, populated from the code. HTML: == html head titlewicket:id=mysiteName/title /head body strongHomepage/strong br / br / span wicket:id=messagemessage will be here/span /body /html Java: (HomePage.java only) = public class HomePage extends

Re: configuring wicket:id from Java code in TITLE in a page

2008-07-01 Thread Rakesh Sinha
Thanks Igor. That works. Thanks Apache Wicket team once again for a wonderful framework. On Wed, Jul 2, 2008 at 12:37 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: title wicket:id=mysiteName[title will be here]/title just like the span... -igor On Tue, Jul 1, 2008 at 9:01 PM, Rakesh Sinha

ajax event handler with a textfield .. .

2008-07-02 Thread Rakesh Sinha
Hi - I have a TextField component in my page. Java : txtAge = new TextField(txtAge, Integer.class); lblAgeValidate = new Label(lblAgeValidate, ); html: tdinput type=text wicket:id=txtAge //td tdspan wicket:id=lblAgeValidate //td I want a behavior to attach an

Re: ajax event handler with a textfield .. .

2008-07-02 Thread Rakesh Sinha
[EMAIL PROTECTED] wrote: On Wed, 02 Jul 2008, Rakesh Sinha wrote: I want a behavior to attach an ajax event handler to the textfield such a way that anytime a text field changes - there would be an ajax validation performed , that would update the model behind lblAgeValidate - which

turning off autocomplete for textfield ..

2008-07-02 Thread Rakesh Sinha
on a separate note - how do we turn off autocomplete for a TextField in the java code. (other than autocomplete=off, in html). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ajax event handler with a textfield .. .

2008-07-02 Thread Rakesh Sinha
On 7/3/08, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Thu, 03 Jul 2008, Rakesh Sinha wrote: I tried something similar to this .. It works. ... txtAge.add(new AjaxFormComponentUpdatingBehavior(onkeyup) { This works otherwise but does not detect cut and paste done with mouse. Thanks

Re: ajax event handler with a textfield .. .

2008-07-03 Thread Rakesh Sinha
On 7/3/08, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Thu, 03 Jul 2008, Rakesh Sinha wrote: Thanks for pointing this one out. Can you paste / point to a code fragement for - OnChangeAjaxBehavior and how to integrate with TextField. Use the source, Luke :) Just use it instead

ajax behavior sample with radiogroup / radio

2008-07-05 Thread Rakesh Sinha
Hi - I am trying to integrate ajax behavior with a radio button such that whenever a radio button in a radio group is selected - an appropriate handler is invoked. Java: RadioGroup sex = new RadioGroup(sex); sex.add(new Radio(M, new Model(AgeValidator.SexEnum.MALE))); sex.add(new Radio(F,

Re: ajax behavior sample with radiogroup / radio

2008-07-05 Thread Rakesh Sinha
wrong with my html code. html: wicket:container wicket:id=sex tdinput wicket:id=M type=radio /Male input wicket:id=F type=radio /Female/td /wicket:container Would this be correct ? On 7/5/08, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Sat, 05 Jul 2008, Rakesh Sinha wrote

Re: ajax behavior sample with radiogroup / radio

2008-07-05 Thread Rakesh Sinha
a current selected radio model or something similar to that ? On 7/5/08, Rakesh Sinha [EMAIL PROTECTED] wrote: I changed the code to be AjaxFormComponentUpdatingBehavior (onclick) - but it still does not seem to work ( though , onclick *is* the right method to invoke from javascript

Re: ajax behavior sample with radiogroup / radio

2008-07-05 Thread Rakesh Sinha
) { // TODO Auto-generated method stub } }); This seems to work. On 7/5/08, Rakesh Sinha [EMAIL PROTECTED] wrote: Ok - my new code looks as follows: - RadioGroup sex = new RadioGroup(sex); Radio male = new

calendar control for wicket ??

2008-07-05 Thread Rakesh Sinha
Hi - Just curious if there is a Calendar control / class associated with Wicket. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: calendar control for wicket ??

2008-07-05 Thread Rakesh Sinha
. This might be more involved I believe. On 7/5/08, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: are you talking about a DatePicker? On Sun, Jul 6, 2008 at 4:11 AM, Rakesh Sinha [EMAIL PROTECTED] wrote: Hi - Just curious if there is a Calendar control / class associated with Wicket

MockWebApplication supporting https ?

2008-07-06 Thread Rakesh Sinha
Hi - Came across this class - org.apache.wicket.protocol.http.MockWebApplication internally used by WicketTester. It seems to work nice with http:// , but not with SSL. I am working with 1.3.4 . Can we have a future MockObject (may be a configurable WicketTester , that can take the

SSL support for WebApplication in development branch ..

2008-07-06 Thread Rakesh Sinha
Hi - I am looking at the following wiki - http://cwiki.apache.org/confluence/display/WICKET/How+to+switch+to+SSL+mode#HowtoswitchtoSSLmode-Edit(Wicket1.3.x)%3A . The wiki lists a whole number of options to add SSL support to a web application including that of the links of controls etc.

radiochoice signature - List vs Collection ?

2008-07-09 Thread Rakesh Sinha
Hi - I am looking at 1.4m2 codebase. One of the constructors of radio choice seem to be: public RadioChoice(final String id, final ListT choices) .. In reality the second argument seems to be more appropriate for a Collection , rather than as a list. Any specific reason why it is List?

Re: radiochoice signature - List vs Collection ?

2008-07-09 Thread Rakesh Sinha
Thanks. Here it is . I would like to volunteer to fix this as well. What are the svn commit procedures ? On 7/9/08, Igor Vaynberg [EMAIL PROTECTED] wrote: please open a jira issue -igor On Wed, Jul 9, 2008 at 6:43 PM, Rakesh Sinha [EMAIL PROTECTED] wrote: Hi - I am looking

Re: radiochoice signature - List vs Collection ?

2008-07-09 Thread Rakesh Sinha
https://issues.apache.org/jira/browse/WICKET-1744 . Sorry - forgot the url . On 7/9/08, Rakesh Sinha [EMAIL PROTECTED] wrote: Thanks. Here it is . I would like to volunteer to fix this as well. What are the svn commit procedures ? On 7/9/08, Igor Vaynberg [EMAIL PROTECTED] wrote

reusing css files across directories.

2008-07-09 Thread Rakesh Sinha
Hi - I am trying to add css to my page. Adding the following line to my WebPage , definitely works. add(new StyleSheetReference(pageCSS, getClass(), page.css)); But I am just curious - what would be the solution to share the css across the directory structures. In other words - if we were