Page reloading notification

2011-03-08 Thread Milan Křápek
Hi I have system based on wicket 1.3.2 (I know it is very old but it is still working good for me). Sometimes when I submit just local changes on page and operation with database take long time, It would be nice to show some notification that the request is processing and disable the whole page

Update page after redirecting to blank page

2010-06-30 Thread Milan Křápek
Hi, I have problem with updating my page with Ajax after redirecting to some new page. I have page with list view. In this list view I have some links to audio records represented by AjaxLinks. If I click to the AjaxLink, user is redirected to new _blank page that sends him an audie record.

Localization - problem with refreshing page

2008-12-18 Thread Milan Křápek
Hi, I found this problem and I cannot find any sollution by myself. So I ask you for a help. I localized my application to two languages. To all pages I added links for changing localization. The onClick() methods of those links contain just getSession.setLocale(requestedLocalization). That

PageableListView with PagingNavigator

2008-10-31 Thread Milan Křápek
Hi I need a litle bit help. In my application I have several PageableListViews. I set the number of items on one page to 10. And add some functionality that hides pagingNavigator when items.size = 10 and show the pagingNavigator when I have more than 10 items. But I have one problem with it.

Re: PageableListView with PagingNavigator

2008-10-31 Thread Milan Křápek
that is empty. Milan when you remove the item does your list still contain 11 items? because the page view should go back to the last page if this happens automatically. -igor On Fri, Oct 31, 2008 at 7:05 AM, Milan Křápek [EMAIL PROTECTED] wrote: Hi I need a litle bit help. In my application I have

Automatic inserting HTML code

2008-10-22 Thread Milan Křápek
Hi, I have probably a newbie question, but I cannot find way how to do it. I my application I use many AjaxLinks. I always want the link to be represented by an image. The image is always the same so I want to prevent myself for writing the same code. I made my component that extends AjaxLink.

Reloading page after sending file

2008-10-10 Thread Milan Křápek
Hi, I have (as usually ) some problem. :o) In my application I need to allow the users to download some stored files. But this files should not be acessible for everyone so I cannot place them to some web server. I resolve this by creating new wicket page, that just control if the user is

Localization encoding

2008-09-30 Thread Milan Křápek
Hi, I have problem with localization encoding. In my application I use the both ways how to localize it. The first: storing localization in property files wokrs perfect, but the second: defining two HTML files has some problem with encoding. I use 'cs' encoding for Czech language. The

AjaxSubmitlink vs AjaxButton

2008-08-12 Thread Milan Křápek
Hi In my web application I realized form submiting by AjaxButtons. This wokrs great. I love the possibility to refresh just part of my page after submiting the form. Then I decided to refactor my webapp tu use AjaxSubmitLink because I want to use some images and texts instead of buttons.

Re: AjaxSubmitlink vs AjaxButton

2008-08-12 Thread Milan Křápek
Thaks. You are right. I thought I need just add the AjaxSubmitLink to form as a Button but it must be set as default button. Best regards Milan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: WebPage: empty response

2008-07-24 Thread Milan Křápek
Thanks for your advices. I used getRequestCycle().setRequestTarget(new EmptyRequestTarget()); and it works good. Only thing I had to change was that EmptyRequestTarget construktor is not accessible. So the final code is getRequestCycle().setRequestTarget(EmptyRequestTarget.getInstance()); This

WebPage: empty response

2008-07-23 Thread Milan Křápek
Hi, I need your advice. I am using wicket for generating VoiceXML for my application. In response my application sends some recorded audio as multipart/form-data content. Another wicket page stores this audio to HDD. The problem is that wicket returns HTTP status code 500, because there was

Refresh ModalWindow - Impossible??

2008-06-12 Thread Milan Křápek
Hi, I think I have a problem that cannot be solved. But I must ask about it. What I have: I have some page with table. In table are stored names of some actions. Each action can be edited. When I edit the action I open new ModalWindow with following content: It contains some ListView with

Re: Refresh ModalWindow - Impossible??

2008-06-12 Thread Milan Křápek
Hi, I think this is not my problem. I forgot mention it, but I pass to Panel that I show in modal window just one parameter. And it it the parent operation. When I render the modal window I allways read all operations form database. So I thing my model is allways up-to-date. I thing problem is

Re: Refresh ModalWindow - Impossible??

2008-06-12 Thread Milan Křápek
Thanks for that. It is great that ModalWindow is updateable. I am sorry for bothering you. I try to find any note how to do it on wicket forums and try to google it, but I was not able to find anything. Plase you said that you write something about it. Can you give me link?

Re: Refresh ModalWindow - Impossible??

2008-06-12 Thread Milan Křápek
Well I have it. Thank you very very much. I give up the thing that I will refresh whole ModalWindow. I do not know why but I am not able to do. But I found another way how to do it. I do not update the whole modal window but only its content. I think this was the main problem. Best regards

How to send response without HTML code

2008-06-11 Thread Milan Křápek
Hello, I have newbie question. I am working on application that must be able to process two type of request. The users requests (send them some html pages in response) and server requests that expect only HTTP/1.0 200 OK or something similar with different return code. In my application I

Re: How to send response without HTML code

2008-06-11 Thread Milan Křápek
Thanks for response but this is not th exact thing I want. I need to know the name of wicket component, where can I get access to request from user and fill the response for him. All I need is some parent class of WebPage. But this object must return just http code without any HTML. (I was not

Upload/Download file

2008-06-03 Thread Milan Křápek
Hi, I need your help. I am trying to upload and download some files via the Wicket presentation layer, but I realy do not know how to do it. I try to get some inspiration from upload example on wicket pages, but this is not what I want. Here is the description of my problem: I have some

Re: Upload/Download file

2008-06-03 Thread Milan Křápek
Well I think I have the way how to let users to download the files from server. When the request comes I just take the file from database, set the right content type of the response and then I get the outputStream of the Response and fill it with the file. Is it true? Or am I wrong? And what

Re: Upload/Download file

2008-06-03 Thread Milan Křápek
As I write the HTTP request that contains the file is generated by standalone application. And the application do not need graphical interface. It is very simple to get file contained in HTTP request in PHP, I have hoped that wicket have some easy access to this data too. To your advice to

Re: Upload/Download file

2008-06-03 Thread Milan Křápek
I have it. It was hidden under the wicket request. It can be done by cast the request to IMultipartWebRequest. This request then can access the file stored in the HTTP request. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

session expired while modal window is opened

2008-05-19 Thread Milan Křápek
Hi, I encountered this problem while I was testing my web application. In my aplication I have Modal window with some form. I have opened this window and wait 30 min to let the session expired When the session expired I try to close the Modal window but nothing happens. I cannot do anythink. I

Re: wicket xml - add label as xml element atribute

2008-05-16 Thread Milan Křápek
Yeah, thanks a lot that was the thing I was searching for. But there is one more problem. When I do that this way, I get on the output something like: loc myAttritbute=attributeValue wicket:id=thisComponent/ Is there any way to remove wicket:id attribute from the output code?

wicket xml - add label as xml element atribute

2008-05-15 Thread Milan Křápek
Hi, I want to generate XML document using wicket but I have this problem. I want to generate something like root var name=a1/ var name=a2/ var name=a3/ otherStructure/ /root I decided to generate the var elements by ListView. This has some problem, because after rendering I have in

Re: wicket xml - add label as xml element atribute

2008-05-15 Thread Milan Křápek
Thanks, the XML code is fine, but I need to know how to do it in the .java file. It seems you just use Labels that fill the value of each node. But my problem is little bit different. What I want is to be able do set there some attribute. You have in your XML code: loc

properties files

2008-04-29 Thread Milan Křápek
Hi, I have one simple question. but I had no luck in finding an answer on mailing list. I have web application with probably twenty pages. I am usisng properties files (e.g. MyPage_en_US.properties) for localization. Because I am using a lot of forms on my pages, there are some common string

Form ListView validator

2008-04-21 Thread Milan Křápek
Hi, I encountered a problem with wicket form validation, that I am not able to solve myself. The situation is that I have some form with some TextFields. These TextFields are generated from a ListView and represents ordering of user applications. I added to each TextField the

Re: page reload

2008-04-14 Thread Milan Křápek
Hi, I am still stack on this problem. It seems that page refresh does not help. I try to add javascript command window.refresh and window.reload but this does not wokr too. Only thing that helps is new call of this page constructor. (I add some refrsh link, that generates the new page)

Pass Model to ModalWindow

2008-04-14 Thread Milan Křápek
Hi, please how can I pass the model to the modal window. I have my form in modal window and I want to show there some default vaules that can be changed. But I am not able to pass the model to the window. In constructor there is not any parameter for model. I try to do this:

Re: Pass Model to ModalWindow

2008-04-14 Thread Milan Křápek
Thanks a lot, the constructor way wokrs fine. And I you were right in the other thing too. I set the model before I add the modal window, but after I create the content :o) Sorry for this dummy mistake. Milan - To

Re: page reload

2008-04-14 Thread Milan Křápek
Thanks a lot, with the LoadableDetachableModel I am now able to show the changes when I edit the item. But some problems still remain. To delete items I have just link, that on the onClick event removes the selected item. So I need to reload the page after this remove too. I try to do it

page reload

2008-04-11 Thread Milan Křápek
Hi, probably I need a very simple thing but I cannot find the solution. On my page I have table that represents some objects in database. I have there button for adding new item to database. This button opens new modal window with form for filling thenew object. After I submit this form, new

Re: page reload

2008-04-11 Thread Milan Křápek
Thanks for quick response. But I am not sure, that this what I want. I think it will need a little bit more description. As I said I have table where I listed some objects from database. I have there link which creates new modal window. But I do not give any model to this modal window. In this

Form submit button localization

2008-04-08 Thread Milan Křápek
Hi, I have just this simply questin. I am trying to localize my web pages to different languages. Because my pages are mainly composed by fomrs and I have not much texts I want to make the localization just by .properties files. All works good until I want to change the text in submit button.

menu localization

2008-04-08 Thread Milan Křápek
Hi, I have another problem with localization. I have stored some names in database. And I need to get them from database localize them and then render as some tab menu. here is the code: HTML: div id=navigation table border=0 tr td wicket:id=navigationlist a id=link

Navigation bar

2008-04-07 Thread Milan Křápek
Hi, I need your help. After few days I am out of ideas and still have no solution. What I have: I have stored users in databes and each user has some List od favourite pages URLs. This URLs links external pages. What I need: I need to do some sort of TabbedPanel or one row table without

Re: Navigation bar

2008-04-07 Thread Milan Křápek
Thanks a lot, this was the thing I was looking for. Milan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Tabbed Panel

2008-04-03 Thread Milan Křápek
Hi, I want to use tabbed panel in my web application, because this type of navigation seem good for me. I looked the examples and I have this question. Is it posible to use tabbed panel as some page navigator? The situation: My application is composed from few user models and one base

including dynamic page

2008-04-02 Thread Milan Křápek
Hi, I am newbie to wicket. And I am just discovering all beautifel thing that wicket provides to me. I am trying to add to my pages some common look. At first i would like to add to my pages some common header and footer. I am able to add to my pages some static page by inserting code.