Custom PagingNavigation Back-Button -Problem

2011-07-14 Thread brazz
I wrote a custom PagingNavigation which renders page links in the form: [1-5...11-15 *16-20* 21-25...196-200]. The page size is adjustable by a DropDownChoice. Everything works fine until i hit the back-button and then click on one of the links (e.g. 11-15). What happens then is that in class

Re: Custom PagingNavigation Back-Button -Problem

2011-07-19 Thread brazz
Solved the problem. My assumption about the RequestListenerInterface was wrong. What i am doing now: In my page i prevent Browser Caching: protected void configureResponse() { super.configureResponse(); WebResponse response = getWebRequestCycle().getWebResponse();

custom (non wicket) modal dialog. Problem with urls.

2011-08-08 Thread brazz
Hello everyone, in our project i have to use our own modal dialog (application is included in a portal). I have to open the dialog with the help of a javascript function which is wrapped in a Behaviour. What i am doing now: - in the constructor of my response page i call the javascript function

Re: custom (non wicket) modal dialog. Problem with urls.

2011-08-09 Thread brazz
Hi, thank you very much for your answer. It's correct till number 3. The link in the modal dialog has to be a resourcelink, which loads a pdf document from the server. I cannot use an external link because there is a firewall between user and document server (therefore i have to open an

Re: custom (non wicket) modal dialog. Problem with urls.

2011-08-10 Thread brazz
One step further. My original assumption was wrong. It is a problem with iframes and the configuration of our firewall. But the situation hasn't improved. The url of the link is:

Re: custom (non wicket) modal dialog. Problem with urls.

2011-08-11 Thread brazz
Problem is solved now: i extract the application-relative-path with: String path = Strings.stripJSessionId(request.getRequestURI()); the trick is to overwrite method onComponentTag(ComponentTag tag) of class ResourceLink and prepend the application -relative path so i end up with e.g.:

custom url for specific pages

2011-10-07 Thread brazz
In our application (portal) we have a modal dialog that we have to use. In this modal dialog we put a page. Because the portal consists of iframes, we have to use relative urls in the modal dialog. For example instead of:

PageExpiredException: Different JSessionId after second Ajax-Call only in IE8

2011-10-27 Thread brazz
Hi, i think have read (hopefully) all the posts about PageExpiredExceptions (Serializable etc.). I have a DropDownChoice, that updates a List of Links via Ajax (please see code below). After updating the List of Links or clicking on one of the links the *second time* in IE8 i receive a

Recreate Scroll-Position after Paging (click on paging link)

2011-12-23 Thread brazz
I have created a custom paging component with the help of org.apache.wicket.markup.html.navigation.paging.PagingNavigation. In my PagingNavigator i have paging -links on top and at the bottom of the DataView. Now, when the user clicks on a link, i want to recreate the scroll-position so that the

Re: Recreate Scroll-Position after Paging (click on paging link)

2011-12-28 Thread brazz
Hello Martin, thanks for your reply. I solved it with the query parameters. Introducing AjaxLink would would have been propably to much rework as the paging component is already somewhat complex and i tried to reuse as much as possible of the PagingNavigator of wicket-extensions. Maybe next time

WicketTester functionalities

2012-02-08 Thread brazz
After working successfully with wicket for some time, I'm now trying ot set up regression tests with fitnesse and the help of WicketTester functionality or in combination with selenium if functionality of WicketTester does not fulfill my needs (probably i won't do it with selenium as i already

Delete temporary files after end of a session

2012-03-02 Thread brazz
I'm using FileUpload to upload several files to the server in javax.servlet.context.tempdir or java.io.tempdir (i don't want to store them in the session because of session size) in order to send them via Email later in the process. So it's some sort of contactor application. My problem is that

Re: Delete temporary files after end of a session

2012-03-02 Thread brazz
Hi Martin, So there is no wicket way at the moment. Thank you for your answer! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Delete-temporary-files-after-end-of-a-session-tp4438040p4438463.html Sent from the Users forum mailing list archive at Nabble.com.

CryptedUrlWebRequestCodingStrategy and bookmarkable urls

2012-03-23 Thread brazz
Hi, i want to encrypt my urls except the bookmarkable ones. my bookmarkable pages are mounted in the contructor of my Application class. In my Application class i have this code (copied from wicket wiki page): @Override protected IRequestCycleProcessor newRequestCycleProcessor() {

Re: CryptedUrlWebRequestCodingStrategy and bookmarkable urls

2012-03-23 Thread brazz
Thanks Martin for your reply! So what i understand is: using: *@Override protected IRequestCycleProcessor newRequestCycleProcessor() { return new WebRequestCycleProcessor() { protected IRequestCodingStrategy newRequestCodingStrategy() {

common data picker component

2012-04-05 Thread brazz
Hi, is there a component in wicket which acts like a datepicker but works for any content? I mean just a box where you can put your custom panels in. I need an alernative for a DropDown Box because if have about 400 entries. so i think of a little popup box with paging and filtering elements.

FileUpload temp files never get removed also they get tracked

2012-06-13 Thread brazz
Hi, I'm using the FileUpload Component. The component creates temporary files uploadtmp. I set some breakpoints to see what happens. In DiskFileItem i can see that the File is added to the FileCleaner: FileCleaner.track(tempFile, this); but the File never gets removed from Disk. I also

Re: FileUpload temp files never get removed also they get tracked

2012-06-13 Thread brazz
Thanks for your reply Martin! After i declared the commons FileCleaner interface in my web.xml the file was removed after my session timed out. Obviously i was just to impatient. It also went through the breakpoint in the reaper thread. I thin this functionality is enough for my needs. Thank

Detach Model Objects when user leaves page

2012-06-14 Thread brazz
Hi, i have a list view with content from a Repository that is input to a wicket DataProvider with ModelObject. I get the content of the repository from a webservice. I don't want to load the data from the webservice after each request, but the model gets detached after each request and

Re: Detach Model Objects when user leaves page

2012-06-14 Thread brazz
Hi Thomas, thanks for your reply. Data is not that much, but i think it's no good practice to have data in memory that is not used any more. So i'd like to have a general solution to this. Your right, the user could leave the page by any means. But for me it would be enough to discard the data

Re: Detach Model Objects when user leaves page

2012-06-14 Thread brazz
Thanks for the link! I think i will give this one a try: https://www.42lines.net/2011/11/15/integrating-cdi-into-wicket/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Detach-Model-Objects-when-user-leaves-page-tp4649977p4649990.html Sent from the Users forum

Re: Access, read and modify td Tag (cell tag) in Datatable

2013-01-29 Thread brazz
Thanks for your reply, there is only one method in class DataTable, but it is not called. Maybe it's because i work with wicket 1.4.7. protected ItemT newRowItem(final String id, int index, final IModelT model) { return new ItemT(id, index, model); } -- View this message in context:

AjaxLazyLoadPanel update with target.addComponent

2013-03-08 Thread brazz
Hi, i'm using a Table inside an AjaxLazyLoadPanel. The table should repaint lazy (with busy icon) when i call: target.addComponent(AjaxLazyLoadPanel.this); is this possible somehow? i've read a post that i would have to replace the od AjaxLazyLoadPanel with a new instance, but this would

Re: AjaxLazyLoadPanel update with target.addComponent

2013-03-18 Thread brazz
found a solution. Here is a class which can be used for every long running interactions for which you have an AjaxRequestTarget available. You can use it instead of AjaxLazyLoadPanel, when creating a new instance of your class is inappropriate. I used the concept of callback script in

Preserve state of wicket page after page navigation

2013-07-26 Thread brazz
Hi, i have a Wicket Page that opens a modal dialog via javascript. The content of the modal dialog is again a wicket page that i forward to. The page of the modal dialog just renders a message and can be closed via javascript. The url of the target page is calculated as follows: String url =

Re: Preserve state of wicket page after page navigation

2013-07-30 Thread brazz
Now i tried to use multi window support feature of wicket. I think this would be most elegant solution. In every page i do: super(ESSession.get().createAutoPageMap()); And in the application i set: getPageSettings().setAutomaticMultiWindowSupport(true); But still the objects are getting

wicket conversation scope - weld integration

2013-10-29 Thread brazz
Hi, after fighting for several days with integrating cdi with wicket (i am interseted in this conversation scope thing). I ended up with the following stack trace: java.lang.IllegalStateException: Context is already active at

Re: wicket conversation scope - weld integration

2013-10-30 Thread brazz
Hi heapifyman, thanks for your reply. Yes i read it all. But the blog is from 2011 and is based on wicket 1.5. I downloaded the libs with maven, but it didn't work with wicket 6.11. I wanted to use the latest wicket for the new project. I also tried without seam-wicket in the classpath, but it

Re: wicket conversation scope - weld integration

2013-10-30 Thread brazz
Hello François, thanks for your reply! I double checked this. I have weld-servlet.jar in my classpath. According to the documentation this is the ueber-jar that contains all classes of other jar files. I belive so because otherwise i get NoClassDef-Errors. i changed my classpath and removed

Re: wicket conversation scope - weld integration

2013-10-30 Thread brazz
Hi Martin, thanks for your answer! With the dependencies from your link i now can see log entries of weld. So now it seems to initialize correctly. But i have to run it with wicket version 1.5.10 from the examples page? When i run the examples with wicket 6.11, i get the compile error that

Re: wicket conversation scope - weld integration

2013-10-31 Thread brazz
Hello François, thanks for your reply. yes that are exactly the dependencies that i use. I found out, that api changed between 1.5 and 1.6.. I checked out wicket examples 1.6 from wicket homepage and now it compiles. But still I get: WELD-001408 Unsatisfied dependencies for type

Re: wicket conversation scope - weld integration

2013-11-08 Thread brazz
Hi again, finally i found the last problem bei incident: I had the beans.xml under WEB-INF and WEB-INF/META-INF as described in the docs and user forums. But actually it turned out that i had to put it under classes/META-INF or whatever the class folder is named. But nevertheless your hints were

weld conversation propagation page

2013-11-13 Thread brazz
Hi, after spending a hard time debugging i found this problem: i have to pages: FirstPage.class SecondPage.class on FirstPage.class i create a new conversation with conversation.begin(); and on FirstPage.class i have a link: *setResponsePage(SecondPage.class);* this link results in a new