Re: RadioChoice model not updated in tomcat with liferay portal
Changed to RadioGroup and implemented following code. radioBtnOptionA.add(new AjaxEventBehavior("onclick") { @Override protected void onEvent(AjaxRequestTarget target) { // doSomething; radioGroup.setModelObject("optionA"); } }); Implemented above code also for optionB radio button. (you need to implement this for each radio button and add button to radio group) It worked. Thank you for your time. Regards, Shantanu -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RadioChoice-model-not-updated-in-tomcat-with-liferay-portal-tp3565419p3570878.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: RadioChoice model not updated in tomcat with liferay portal
Yes, Gabriel I did remote debug using eclipse. My project uses the same wicket version as yours i.e. 1.4.17 Default selection is correct as set in default model inside constructor of RadioChoice. Once OptionB is selected, one can not toggle between radio buttons. It doesn't even allow to select optionA when user tries to select it. It goes back to optionB immidietly. No wonder the getModelObject() always returns optionB. Is there any alternative implementation for RadioChoice or it's behaviour to which I can give a try? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RadioChoice-model-not-updated-in-tomcat-with-liferay-portal-tp3565419p3567585.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RadioChoice model not updated in tomcat with liferay portal
Following code works fine on jettty 6.1.22 but not on tomcat 6.0.24 with Liferay 5.2 To be specific, the following line always returns string "optionB" although other option is selected. String selectedOption = searchChoice.getModelObject(); Can anybody please point out reason for this behaviour? related code snippet from wicket Page is given below: - final RadioChoice searchChoice = new RadioChoice("searchChoice", new Model("optionA"), searchOptions); searchChoice.add(new AjaxFormChoiceComponentUpdatingBehavior() { @Override protected void onUpdate(AjaxRequestTarget target) { String selectedOption = searchChoice.getModelObject(); //*** if(selectedOption .equals("optionA")){ // doSomething }else if(selectedSearch.equals("optionB")){ // doSomethingElse } } }); - Thank you. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RadioChoice-model-not-updated-in-tomcat-with-liferay-portal-tp3565419p3565419.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Customized AjaxPagingNavigator to highlight selected page number
Thanks Clint. To start with, I chose the second option from your suggestion, spent lot of time to no avail. Then I gave try to second option (i.e. css) and within no time got the solution. In css, added a class for navigator as .navigator_Class{} // no change - kept original style as it is .navigator_Class span span em span{font-weight:bold;color: blue;} // applicable to selected page number only It is important to know tag hierarchy. If only tag is considered then all disabled link gets affected(which can include '<' and '<<' etc.) Firebug helped here to find tag hierarchy for current select page number. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customized-AjaxPagingNavigator-to-highlight-selected-page-number-tp3477625p3494597.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Customized AjaxPagingNavigator to highlight selected page number
The current page selection is noticed by disabled link of the selected page number. In our project we need to highlight (bold font and colour) selected page by means of css. How this can be achived ? Thank you. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customized-AjaxPagingNavigator-to-highlight-selected-page-number-tp3477625p3477625.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
inter application communication in wicket
Hi, Can anybody please throw some light on how two wicket applications, deployed into the same container can interact with each other? Basic requirement is, parameters should be passed from component in Application1 to component in Application2, when Application2 is called from Application1 via click of a link or button. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/inter-application-communication-in-wicket-tp3206671p3206671.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Internationalization: dynamic message for feedback Panel
That did help. Thank you Eugene and Ernesto. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-dynamic-message-for-feedback-Panel-tp3070945p3074033.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Internationalization: dynamic message for feedback Panel
ok. thank you. but is there any way when you don't have a bean? - Shantanu -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-dynamic-message-for-feedback-Panel-tp3070945p3071012.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Internationalization: dynamic message for feedback Panel
Hello, In my code following lines are present and works as expected. .java file for Panel contains a FeedbackPanel and displays warning message using following code: info(getLocalizer().getString("deleteConfirm", this)); application.properties file contains deleteConfirm: Do you want to delete user from the list? What is required now, is to include user name to the existing message. e.g. Do you want to delete user 'XYZ' from the list? Since user name will be available at runtime, dynamically how can it be included in the message? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-dynamic-message-for-feedback-Panel-tp3070945p3070945.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org