Problem with migrating AbstractTreeColumn to 1.5

2011-12-09 Thread Weller, Thomas
I have a problem with migration AbstractTreeColumn from 1.4 to 1.5. This is my origin code, but AbstractTreeColumn is no longer available in 1.5.3: IColumn[] columns = new IColumn[] { new AbstractTreeColumn( new ColumnLocation(Alignment.MIDDLE, 8, Unit.PROPORTIONAL),

Re: Setting the value of a HiddenField from JavaScript

2011-12-09 Thread ChambreNoire
Hi there, I'm having the same problem. Any chance of a peek at your solution? Cheers Anthony -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Setting-the-value-of-a-HiddenField-from-JavaScript-tp3539234p4175796.html Sent from the Users forum mailing list archive at

Re: Problem with migrating AbstractTreeColumn to 1.5

2011-12-09 Thread Martin Grigorov
See org.apache.wicket.extensions.markup.html.tree.table.AbstractPropertyColumn.getNodeValue(TreeNode) On Fri, Dec 9, 2011 at 9:30 AM, Weller, Thomas thomas.wel...@capgemini.com wrote: I have a problem with migration AbstractTreeColumn from 1.4 to 1.5. This is my origin code, but

Re: Any info on wasp-swarm?

2011-12-09 Thread Emond Papegaaij
Hi Dan, As Martin stated, wicket-security (wasp-swarm) is now part of wicketstuff-core and as such is released for every wicket release. It is maintained and it will continue to work, as all our major applications are built on top of it. Best regards, Emond Papegaaij On Friday 09 December

Re: Quickstart application doesn't show up with 1.5.3

2011-12-09 Thread Martin Grigorov
Hi Gabor, It looks like there is a difference in the configured context path. I'm not sure how you start it - with mvn jetty:run or with Start.java. I'd recommend you to use Start.java. It gives you much faster development cycle. On Fri, Dec 9, 2011 at 2:15 AM, Kincses, Gabor gkinc...@paypal.com

Avoid creating an HttpSession before login

2011-12-09 Thread Nazaret Kazarian
Hi there, I am using Wicket 1.4.19 and trying to do what the subject says: Avoid creating an HttpSession before the user logs in. Why would I want to allocate memory for an unauthorized user, right? I can make my login page stateless and if the user hits the login page URL no session is created

Re: Avoid creating an HttpSession before login

2011-12-09 Thread Bas Gooren
Hi, It's certainly possible, with some additional work by you. The easiest way: - redirect the user to your login page, add a variable to the PageParameters which helps you redirect them back - after logging in, check for said variable in PageParameters and redirect the user back Now the

Update from 1.4.8 to 1.4.19 breaks AjaxDownload FileStreaming

2011-12-09 Thread MattyDE
I was using the procedure which is described here: http://apache-wicket.1842946.n4.nabble.com/Initiating-File-Download-through-Ajax-is-not-working-td2289784.html all day.. but since Update to 1.4.19 the File Streaming is broken. The user is redirected to a new or empty wicket-page (looks like a

Re: Avoid creating an HttpSession before login

2011-12-09 Thread Nazaret Kazarian
Thanks for the quick reply. That's what I was thinking to do, from a high level perspective, but could anyone provide some more details regarding the implementation? First of all, how do I redirect the user and avoid the creation of a session? Just call Component.setResponsePage? This seems as

How to render a Tree with a preselected node?

2011-12-09 Thread Emmanouil Batsis (Manos)
Looking around the APIs and all, but haven't figured out how to have a LabelTree rendered with the tree expanded properly to point to a preselected node. Manos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Bypass CDATA contribution on script tags

2011-12-09 Thread Serban Balamaci
Hi all, Our javascript developer complains that Wicket automatically adds the CDATA part whenever it encounters the *script* tag. He's trying to embed a template in the html file(not in the head section) and he gets a bunch of CDATA along with the html which will get multiplied(we're creating a

Re: Bypass CDATA contribution on script tags

2011-12-09 Thread Martin Grigorov
Hi, Yes, this CDATA is there to be able to use and with XHTML. You can construct the templates directly with renderString() method to avoid the CDATA. On Fri, Dec 9, 2011 at 3:17 PM, Serban Balamaci serban.balam...@asf.ro wrote: Hi all, Our javascript developer complains that Wicket

Re: Download file from ModalWindow problem

2011-12-09 Thread heapifyman
I have narrowed down the problem to Google Chrome (both 15.x and 17.x-dev version) now. In both Firefox and IE 9 the download is working and the ajax links keep working after the download finished. I have created a quickstart application that demonstrates the thing. Are you still interested in

Re: Page Map versions and Ajax Requests

2011-12-09 Thread Nazaret Kazarian
Which version of Wicket are you using? 2011/12/7 Lichtenberg, Mark mlichtenb...@machenergy.com: I have a page containing a number of AjaxLinks that when clicked fetch data and update some panels. When a user leaves one of these pages and returns via the back button the state of the page isn't

Re: Any info on wasp-swarm?

2011-12-09 Thread Dan Alvizu
Ah, thanks for the info! @Other Dan: I poorly worded that. Role-based access is exactly what I want to do. -Dan On Fri, Dec 9, 2011 at 3:42 AM, Emond Papegaaij emond.papega...@topicus.nlwrote: Hi Dan, As Martin stated, wicket-security (wasp-swarm) is now part of wicketstuff-core and as

Re: Page Map versions and Ajax Requests

2011-12-09 Thread Mark Lichtenberg
1.5.3. I've narrowed the problem to a ListView being present on the page. Whenever there's a ListView with setReuseItems set to false (the default) the Page ID gets incremented whenever the back button is used to return to the page. I confirmed this with a call to getPage().getPageId() in an

RE: Problem with migrating AbstractTreeColumn to 1.5

2011-12-09 Thread Weller, Thomas
Now I implemented it in that way: IColumn[] columns = new IColumn[] { new AbstractPropertyColumnT( new ColumnLocation(Alignment.MIDDLE, 8, Unit.PROPORTIONAL), null, id) { /**

Re: Any info on wasp-swarm?

2011-12-09 Thread James Carman
Auth-roles has always worked fine for me. On Dec 9, 2011 10:59 AM, Dan Alvizu dalv...@pingidentity.com wrote: Ah, thanks for the info! @Other Dan: I poorly worded that. Role-based access is exactly what I want to do. -Dan On Fri, Dec 9, 2011 at 3:42 AM, Emond Papegaaij

Re: Page Map versions and Ajax Requests

2011-12-09 Thread Dan Retzlaff
Without reusing the ListView items, the item.add(...) will get called with each render. I expect that'll cause MarkupContainer#addedComponent() to WebPage#componentAdded() to WebPage#dirty() which sets a new page ID. Sorry I don't have time to test the theory at the moment. On Fri, Dec 9, 2011 at

Modal Window construction failure

2011-12-09 Thread endoplasmicR
Hi, I have recently run into a strange issue with the ModalWindow. The ModalWindow contains a page set with the method setPageCreator. And from the wicket debug window, I see the following lines when constructing the modal window: And with a bit of debugging using firebug, I see that the

Re: Page Map versions and Ajax Requests

2011-12-09 Thread Dan Retzlaff
I confirmed this behavior in our application. Simply reloading a page with a ListView a few times advances the page ID but not the URL. AJAX links know to target the new page ID, but any updates they make get lost if the page gets reloaded from the URL. Sounds like a bug to me. Wicket 1.4 didn't

Re: How to render a Tree with a preselected node?

2011-12-09 Thread Emmanouil Batsis (Manos)
On 12/09/2011 03:30 PM, Emmanouil Batsis (Manos) wrote: Looking around the APIs and all, but haven't figured out how to have a LabelTree rendered with the tr To answer my own email, it's all about // select the apropriate node, in my case a // DefaultMutableTreeNode

Re: Page Map versions and Ajax Requests

2011-12-09 Thread Mark Lichtenberg
That's exactly what I'm experiencing. In 1.5 it appears there's a few extra requests during a reload that I assume are retrieving the latest page version. I'll create a bug report. Thanks for your help. Mark On Friday, December 9, 2011 at 1:26 PM, Dan Retzlaff wrote: I confirmed this

Re: Tree selection form component?

2011-12-09 Thread Emmanouil Batsis (Manos)
On 12/06/2011 02:55 PM, Emmanouil Batsis (Manos) wrote: On 11/19/2011 05:09 PM, Emmanouil Batsis (Manos) wrote: I was wondering if anyone has implemented a reusable component for handling hierarchical/dependent dropdowns as I'm thinking of having a go at it... I hijacked the thread as it

Re: Page Map versions and Ajax Requests

2011-12-09 Thread Dan Retzlaff
I wouldn't say there are extra requests, just extra page versions due to re-population of the list view. Seems like the re-population process should be engineered in a way that doesn't advance the page number. But I'll leave that to the experts. :) On Fri, Dec 9, 2011 at 11:50 AM, Mark

Qeustions about SortedSet and ListMultipleChoice (with and without Metagen)

2011-12-09 Thread Jablow, Eric R
In my project, for business reasons, we have classes with SortedSet members. The classes and their elements are all Serializable. I'm having trouble working with a SortedSetMantechControl object; when I try creating a ListMultipleChoiceMantechControl object for it (and putting it into a

Re: Page Map versions and Ajax Requests

2011-12-09 Thread Mark Lichtenberg
I'm seeing requests logged when the RequestLogger is enabled during page reloads and when the back button is used. The same code under 1.4 does not. I assumed the extra request was to fetch the latest render of the page if it was updated via ajax. On Friday, December 9, 2011 at 1:59 PM, Dan

Re: Avoid creating an HttpSession before login

2011-12-09 Thread Bas Gooren
You can either call setResponsePage or throw a RestartResponseException. I think the main reason for implementing this is security. Since it's handled through the session, the user cannot tamper with the url. Of course it's also very easy to use. Furthermore it's very easy to implement by a

Re: Avoid creating an HttpSession before login

2011-12-09 Thread Serban Balamaci
This created session on RestartResponseAtInterceptPageException may also lead to a possible Session Fixation attack in one that a malicious user tries to access your site and is redirected to the login page but now with a session created. The malicious user could then pass to a possible victim the