Dynamic wizard content

2009-01-13 Thread bjolletz
Hi! I am trying to build a wizard but have a problem with dynamic content. My problem breaks down to this: * Assume a wizard with two steps, A and B. * The content of step B depends on the user input from step A. In my particular case I want to have a gridview in step B and the data in it

Re: SV: Dynamic wizard content

2009-01-13 Thread bjolletz
Thanks for the reply, that seems lika a good approach! /Daniel * As far as I understand, all steps are constructed at the same time. How, then, can I make the content of step B dynamic? No it's rendered at render time; what you want to do is use a model which step A configures; e.g. a

Change row appearance in a DataGrid

2008-10-28 Thread bjolletz
Hi! I've just started learning Wicket and like it very much so far. I've found the very nice DataGrid component, for which I have a question: Is it possible to alter the appearance of a row in the grid in some custom way? What I want to do is that depending on my row data, I want all text in

Re: Change row appearance in a DataGrid

2008-10-28 Thread bjolletz
), but from AbstractGrid. Am I missing something obvious here? /Daniel jwcarman wrote: Override newRowItem() and decorate it however you want (using AttributeAppender behavior perhaps). On Tue, Oct 28, 2008 at 9:37 AM, bjolletz [EMAIL PROTECTED] wrote: Hi! I've just started learning

Browser file download complete callback

2008-11-03 Thread bjolletz
Hi! I would like to have a download link through which a user can download some bytearray from my database. So far no problem, I accomplish this by creating a new WebResource and implementing the getResourceStream method. My problem is that I would like to be notified when the user is finished

Re: Browser file download complete callback

2008-11-04 Thread bjolletz
. -igor On Mon, Nov 3, 2008 at 3:28 AM, bjolletz [EMAIL PROTECTED] wrote: Hi! I would like to have a download link through which a user can download some bytearray from my database. So far no problem, I accomplish this by creating a new WebResource and implementing the getResourceStream

Re: Browser file download complete callback

2008-11-05 Thread bjolletz
(), its not perfect but it will work for right now while we figure out what to do with iresourcestream#close -igor On Tue, Nov 4, 2008 at 1:35 AM, bjolletz [EMAIL PROTECTED] wrote: Thanks for the reply! So you're suggesting that the close() method of the IResourceStream should be removed

Re: component .... not found on page for a Link colun in the Datatable after self refresh using the AjaxSelfUpdatingTimerBehavior

2010-05-25 Thread bjolletz
Hi, Did you find a solution for this? I'm using wicket 1.4.8 and get almost the same error. Like you I have a customized column with a Link component in a datagrid. I have an ajax search field which updates the data (and the links) in the data grid when changing the search input. Sometimes if I

Re: component .... not found on page for a Link colun in the Datatable after self refresh using the AjaxSelfUpdatingTimerBehavior

2010-07-02 Thread bjolletz
Hi, My conclusion is that this is not really a wicket error, since we're clicking a link which no longer exists after the Ajax update. My solution to this has been to catch these exceptions in my WebRequestCycleProcessor, like this: @Override public IRequestTarget resolve(RequestCycle

Re: component .... not found on page for a Link colun in the Datatable after self refresh using the AjaxSelfUpdatingTimerBehavior

2010-08-16 Thread bjolletz
Thanks, that seems to do the trick... Fernando: Returning null does not work since the resolve method requires a not null return value. But if the AjaxLink trick works, it seems I wont be needing to modify the resolve method anyway... -- View this message in context:

Wrong path for resources on redirected login page

2011-10-19 Thread bjolletz
Hi, I have the following setup: Two pages mounted like follows: mountPage(App/StartPage, StartPage.class); mountPage(LoginPage, LoginPage.class); In my web.xml, I have added a security constraint to the /App/ path and set up the form-login-page to be /LoginPage. This means that

Re: Wrong path for resources on redirected login page

2011-10-19 Thread bjolletz
Addition to my post above: I noticed that the browser URL seems to be the same in both 1.4.18 and 1.5.1: /App/LoginPage But, in 1.4.18 the resource links looked something like this: ../resources/se.app.LoginPage/images/logo.png while in 1.5.1 it looks lke this:

Re: Wrong path for resources on redirected login page

2011-10-20 Thread bjolletz
Thank you for your quick replies! I have been trying to set up a quickstart with wicket version 1.5.2 to test things out, but it seems like its not totally trivial to set up security constraints in web.xml using jetty. I tried to add the following to my web.xml: security-constraint

Re: Wrong path for resources on redirected login page

2011-10-21 Thread bjolletz
Thanks Gilberto! I'll try that. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wrong-path-for-resources-on-redirected-login-page-tp3920038p3925757.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Wrong path for resources on redirected login page

2011-10-23 Thread bjolletz
Hi. I didn't get things to work with 1.5.2, seems to be the same behavior there. I've done some additional research and debugging... As far as I understand, my problem boils down to this: * Wicket creates a redirect from my StartPage (mounted as App/StartPage) to my LoginPage (mounted as

Re: Wrong path for resources on redirected login page

2011-10-24 Thread bjolletz
I also thought that Tomcat should take care of the redirect configured in web.xml by itself, but that does not seem to be the case. To me it seems like Tomcat does create its own redirect response, but that Tomcat still calls its filter chain, which will invoke my WicketFilter which leads to

Re: Wrong path for resources on redirected login page

2011-10-24 Thread bjolletz
I just realized something that should maybe have been obvious to me at once... I'm not at home and able to test this atm, but I'm quite sure that my WicketFilter is positioned before my security-constraint in my web.xml. I didn't think security-constraint was treated as a filter, so I didn't think

Re: Wrong path for resources on redirected login page

2011-10-30 Thread bjolletz
Hi! After som more hours of debugging I finally think I'm starting to understand what is happening here. The short version is that I think that this might indeed be an example of the forward problem in the case you pointed to above. Here is what I think is happening: * I point my browser to

Re: Wrong path for resources on redirected login page

2011-10-31 Thread bjolletz
Hi! I saw that you made a commit to trunk to fix the WICKET-4138 issue, so I tried running my project with the snapshot version of wicket-core, and now it seems to work as it should! Good job and a big thank you! I guess you dont need me to create a quickstart now? Also, I didn't realize that

Borders and inheritance in wicket 1.5

2011-11-01 Thread bjolletz
Hi, I have the following setup: *A border:* *Panel A* (sectionBorder refers to my border component above) *Panel B* (extends Panel A) When I add the someLabel component to Panel B, the component hierarchy will be wrong since the someLabel component will be added to the base panel (Panel

Re: Borders and inheritance in wicket 1.5

2011-11-02 Thread bjolletz
child to the base panel, without providing some extra methods (or implement IComponentResolver). I'm not saying this is a bad thing, just trying to understand how things work now. Thank you for your time! On Tue, Nov 1, 2011 at 3:15 PM, bjolletz lt;daniel.akerlund@gt; wrote: Hi, I have

Re: Borders and inheritance in wicket 1.5

2011-11-02 Thread bjolletz
If panel A was the only place where the border was used, that would surely be true. But I also use the border in other components where I want the same appearance but dont want to extend from panel A. -- View this message in context:

Re: Borders and inheritance in wicket 1.5

2011-11-02 Thread bjolletz
Oh, that would probably solve my scenario! I think add() actually was final in 1.4, but as you say that seems to have changed in 1.5. I wasn't aware of that change so did not think that was an option... Thanks you very much for your help and quick replies, much appreciated! -- View this message

Inmethod datagrid and Twitter bootstrap

2012-03-17 Thread bjolletz
Hi, I've been playing around a bit with the Twitter bootstrap css framework and think it looks really nice. Now, it would be very nice if it was possible to make the inmethod datagrid (which I use a lot) get the look and feel of the twitter bootstrap table. I'm thinking of making the inmethod

Error with link in DataTable together with AjaxEventBehavior(onclick)

2012-05-05 Thread bjolletz
Hi, I have a DataTable. In this DataTable I want to be able to click on the rows in the table to make some stuff happen (by Ajax), for example highlighting the current row. To implement this I am overriding the newRow method in DataTable and adding an AjaxEventBehavior(onclick) to each row item.