WiQuery DatePicker and Ajax Request

2011-03-15 Thread Alexander Monakhov
Hi, guys. Here is a problem I met today: When I use DatePicker and I change it's model when ajax request received, on client side date picker's button image doubles. It happens because on every request date picker is initialized again and renders new image every time, but old one doesn't

Re: WiQuery DatePicker and Ajax Request

2011-03-15 Thread Alexander Monakhov
Thanks for this fast reply! Best regards, Alexander. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

CheckBox and Repeater

2011-02-16 Thread Alexander Monakhov
Hi, guys. I've got repeater, each row of which is backed by model object. Each row has check box, so I can select multiple rows and delete appropriated model objects when 'delete' button pressed. I have in mind two ways how to implement this. One is to parse raw response and retrieve post

Re: Set Current DropDownChoice Item (Selected)

2010-12-21 Thread Alexander Monakhov
Hello. Use setModel() in this case. Best regards, Alexander. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: wicket question

2010-12-01 Thread Alexander Monakhov
Hi. What's wrong with wicket's form? Best regards, Alexander. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: SV: PageableListView to work with Set

2010-11-30 Thread Alexander Monakhov
Hi. See Java Doc for PageableListView http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/html/list/PageableListView.html and it's ascendant http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/html/list/ListView.html. From Java Doc: A ListView is a repeater that makes it

Re: SetObject with PageableListView

2010-11-30 Thread Alexander Monakhov
Why are you trying to use component that is intended to work with java.util.List when your domain object is Set? Try one of AbstractPageableView implementations, f.e. DataView. Best regards, Alexander. - To unsubscribe, e-mail:

Re: DatePicker to pick a year

2010-11-30 Thread Alexander Monakhov
Hi. Why don't you use wiQuery? BTW, it's not a good idea to set markup id, because you're not sure whether it's unique across entire page. Let it be set by framework. If you don't want to use wiQuery, use header contribution to inject jquery related code from java code to page. In this case you

Re: onSubmit not getting invoked using AjaxButton

2010-11-29 Thread Alexander Monakhov
Hey, in development mode you can check ajax debug panel. So, you can see all ajax request. If it doesn't help could you, please, provide sample source? Best regards, Alexander. - To unsubscribe, e-mail:

Re: PropertyModel expression for collection object

2010-11-29 Thread Alexander Monakhov
Hello. See this link for property expression language: https://cwiki.apache.org/WICKET/property-expression-language.html property.index: If the property is a List or Array then the second property can be used as a index on that list/array like this: 'mylist.0'. Best regards, Alexander.

Re: Switching between wicket tabs

2010-11-17 Thread Alexander Monakhov
Hello. What's problem with button? Why do you need tabbed panel's markup id? If button that changes selected tab is in another panel, you could pass callback to panel's constructor Best regards, Alexander. - To unsubscribe,

Re: Switching between wicket tabs

2010-11-16 Thread Alexander Monakhov
Hello. Could you please give some details? Or sample? Best regards, Alexander. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: AjaxTabbedPanel and location line

2010-10-23 Thread Alexander Monakhov
So, any suggestion here? Best regards, Alexander.

AjaxTabbedPanel and location line

2010-10-22 Thread Alexander Monakhov
Hi, guys. I've got one page that contains AjaxTabbedPanel component. Each ITab contains AjaxTabbedPanel. So, page contains tabs and subtabs. When different tabs selected, location path isn't changed. Could you suggest me how to change location for every selected tab? For example, there are

AjaxFormComponentUpdatingBehavior and AttributeAppender

2010-05-29 Thread Alexander Monakhov
Hi, guys. I noticed AjaxFormComponentUpdatingBehavior overwrites earlier added with AttributeAppender/AttributeModifier handlers. Could you give me any suggestion how to make them coexistent? Best regards, Alexander.

set focus on IE

2010-05-26 Thread Alexander Monakhov
Hi, guys. Here is code I'm using to show modal window in response of AjaxLink onClick event: public void onClick( AjaxRequestTarget target ) { modal.show( target ); target.focusComponent( getComponentToBeFocuse() ); } It's working correctly on FireFox and Opera, but isn't working on

Google Guice and Wicket

2010-05-13 Thread Alexander Monakhov
Hi, guys. I'm trying to use wicket-guice extension in my wicket application. My application instantiates some services in my session implementation and passes some parameters to it when user is authenticated. I'm trying to inject these services using Guice. But they're not injected in my session

Re: Google Guice and Wicket

2010-05-13 Thread Alexander Monakhov
Great! Thanks! Best regards, Alexander.

Re: TabbelPanel doesnt work in appengine

2010-05-05 Thread Alexander Monakhov
Hey. I met the same problem when I started to implement my app using Wicket and GAE. On GAE there is problem with serialization. GAE prohibits to use replacement substitution, so WIcket's methods like Component#modelChanged() or Component#modelChanging() cause AccessControlContext. To fix this

Google Charts integration

2010-04-12 Thread Alexander Monakhov
Hi, guys. Is there currently any integration of google charts with wicket? I've found some articles like that http://www.codecommit.com/blog/java/a-wicket-api-for-google-charts. But they are really old. So, I'm curious whether there is any active integration with google charts. Best regards,

Re: Google Charts integration

2010-04-12 Thread Alexander Monakhov
Thanks for replies, guys. Yes, I've checked this project. As I understand it hasn't been updates a lot of time. I guess it has lived without update from 2007. I can see that it's supporting not so many types of chart as Google Charts is providing currently. And Major Peter is right, it depends

ModalWindow and Multipart request

2010-03-05 Thread Alexander Monakhov
Hi, guys. I'm developing a form that allows user to upload file and then shows message in modal window. Modal window appears the same time user pushes upload button and shows busy indicator. When file is uploaded, modal window shows status message. This approach works fine for single requests

Re: Page Expired

2010-03-04 Thread Alexander Monakhov
Hi, I don't think that this is problem. 'Page expired' message appears immediately when I click link. There is no timeout or something like that. I serf pages, then click link and 'Page Expired' message appears. As you can see there is log's message that says there is no version manager for this

Page Expired

2010-03-02 Thread Alexander Monakhov
Hi, guys. I've got problem with 'Page Expired' message. I'm developing application that is worked on GAE. It has one page with help content. There is two help pages. Help page contains two separated divs. One div for table of content, second - for content. When user clicks on link, page is

Re: Page Expired

2010-03-02 Thread Alexander Monakhov
Hi. I'm using org.apache.wicket.protocol.http.HttpSessionStore. Guess it's not cause, because other links from other pages work well. Best regards, Alexander.

Modal Window, cookie and component update

2010-02-24 Thread Alexander Monakhov
Hi, guys. I'm trying to create sing in page in modal window. So, there is home page with sign in link. When user clicks the link modal window appears with login/password form. When user submits valid authentication credentials modal window is closed and sign in link is changed to sign out link.

Re: Modal Window, cookie and component update

2010-02-24 Thread Alexander Monakhov
Hey. Thanks a lot for help. Feedback panel is shown now and sign out link appears when it should. But firefox still doesn't want to save and insert values for username/password fields. Usually, firefox asks to save login/password when form is submitted, but when form is submitted from modal

PropertyListView problem

2010-02-08 Thread Alexander Monakhov
Hi, friends. Could you help me with subject? Here is the situation. I want to create manageable list of item, so I could add new items to it, update current state of each item and remove items. I'm using ListView for this purpose. Here is sample code that works with ListString that describes

Re: PropertyListView problem

2010-02-08 Thread Alexander Monakhov
Thanx a lot! Now it's working fine. Didn't think problem is in setReuseItems. Thanx again. Best regards, Alexander.

Re: dynamically adding components to a ListView

2010-01-22 Thread Alexander Monakhov
Hi, guys. Just use PropertyModel. Instead of this: code container.add(new ListViewMyPanel(panels, panels) { ... } /code use this code container.add( new ListViewMyPanel(panels, new PropertyModelList? extends MyPanel( this, panels ) ) { ... } /code where 'this' is referenced to instance of

Re: Component hierarchy question

2010-01-21 Thread Alexander Monakhov
Hi. I'm not sure. But when you call add() method you pass reference to the certain component. If you create new object and assign reference to it, you just create reference to new object, but old one references to old object. For example, // here is new component creation 1. Component c = new

Custom DropDownChoice with css style

2010-01-20 Thread Alexander Monakhov
Hi, guys. I'm trying to implement DropDownChoice that could render select tag with possiblity to add style with css. What do I mean: select tag rendering is OS dependent. So, plain select element is always ugly. There is no possibility to change arrow, or border of drop down list only with css.